The router is a network device that connects two or more network segments. It is used to transfer information from the source to the destination.
Routers send the information in terms of data packets and when these data packets are forwarded from one router to another router then the router reads the network address in the packets and identifies the destination network.