A router is a network device that is connected to two or more networks and builds a routing table with destinations that is used to figure out where to forward traffic to. It is able to communicate with other routers to exchange routing information, which is used to fill the routing table. Examples of routing protocols that are used between routers are RIP, OSPF, EIGRP and BGP.