A router is a network device that receivespackets containing data and control information at input ports and, based on destination or other information included in the packets, routes the packets to appropriate output ports that lead to either the next router in the packet's journey or to thepacket's final destination.