The difference between a layer 2 switch and a layer 3 switch

1. Refer to different

        1. Two-layer switch: It works on the second layer (data link layer) of the OSI model, so it is called a two-layer switch.

        2. Layer 3 switch: A switch with partial router functions, working on the third layer of the OSI network standard model.

Two, different functions

        1. Two-layer switch: It is a data link layer device that can identify the MAC address information in the data packet , forward it according to the MAC address, and record these MAC addresses and corresponding ports in an internal address table .

        2. Layer 3 switch: It is to speed up the data exchange within the large LAN, and the routing function it has is also for this purpose, and it can achieve one routing and multiple forwarding.

Three, different characteristics

        1. Two-layer switch: A two-layer switch has N ports, the bandwidth of each port is M, and the switch bus bandwidth exceeds N×M, then this switch can realize wire-speed switching.

        2. Layer 3 switch: Regular processes such as data packet forwarding are implemented by hardware at high speed , while functions such as routing information update, routing table maintenance, routing calculation, and routing determination are implemented by software .

 

Guess you like

Origin blog.csdn.net/liuqinhou/article/details/131775982