Router is a device which is used to connect different network. A device or setup that finds the best route between any two networks, even if there are several networks to traverse. Like bridges, remote sites can be connected using routers over dedicated or switched lines to create WANs.
Process of delivering a message across one or more networks via the most appropriate path.
<b>Dynamic Routing and Static Routing: </b>
Dynamic routing performs the same function as static routing except it is more robust. Static routing allows routing tables in specific routers to be set up in a static manner so network routes for packets are set. If a router on the route goes down the destination may become unreachable. Dynamic routing allows routing tables in routers to change as the possible routes change. There are several protocols used to support dynamic routing including RIP and OSPF.
<b>HUB and SWITCH:</b>
Switch is expensive than hub. If more than one user try to send packet at a time collision will occure but in switch we can send. Switch is full duplex. Data can be sent in both directions simultaneously, the most useful available bandwidth is 10 Mbps, 100 Mbps and 1000 Mbps each way, and there are no other PC’s with which the bandwidth must be shared.
Routers are designed to pass traffic between more than one individual network. Hubs are half-duplex devices that share bandwidth and communication channels (which is why replacing hubs with switches at every opportunity is best)