先决条件 – 网络设备
Router和Switch都是网络中的连接设备。路由器用于确定数据包到达目的地的最短路径。
路由器的主要目的是同时连接各种网络,它工作在网络层,而交换机的主要目的是同时连接各种设备,它工作在数据链路层。
让我们看看路由器和交换机的区别:
Sr.No. | Router | Switch |
---|---|---|
1. | The main objective of router is to connect various networks simultaneously. | While the main objective of switch is to connect various devices simultaneously. |
2. | It works in network layer. | While it works in data link layer. |
3. | Router is used by LAN as well as MAN. | While switch is used by only LAN. |
4. | Through router data is sent in the form of packet. | While through switch data is sent in the form of packet and frame. |
5. | There is less collision take place in router. | While there is no collision take place in full duplex switch. |
6. | Router is compatible with NAT. | While it is not compatible with NAT. |
7. | The types of routing are: Adaptive and Non-adaptive routing. | The types of switching are: Circuit, Packet and Message Switching. |