Answer:
A router can be used to connect a LAN to the internet. A router works on the basis of an IP address. Every router has built-in operating system known as IOS. A router works on the network layer of the OS model and it routes the data towards the optimal path. Router uses the header information of the packets and forwarding table to define the best shortest possible path of the data.