Today, we will summarize the Packet Handling process for the three ports in a vlan. An Access port is generally used to connect to the Access layer and can only belong to one vlan. In general, directly connect to the Acess port of the PC. Receive a packet and check whether there is VLAN information. If no VLAN information exists, append the PVID of the port and perform exchange and forwarding. If yes, directly discard the packet (default) send a message to the Acess Port:
Today, we will summarize the Packet Handling process for the three ports in a vlan. An Access port is generally used to connect to the Access layer and can only belong to one vlan. In general, directly connect to the Acess port of the PC. Receive a packet and check whether there is VLAN information. If no VLAN information exists, append the PVID of the port and perform exchange and forwarding. If yes, directly discard the packet (default) send a message to the Acess Port:
Today, we will summarize the Packet Handling process for the three ports in a vlan.
AccessA port is generally used to connect to the access layer and can only belong to one vlan. General direct connection to PC
Acess port receipt:
When a packet is received, determine whether there is VLAN information: If there is no VLAN information, add the PVID of the port and perform exchange and forwarding. If yes, discard the packet directly (default)
Acess port sends messages:
Remove the VLAN information of the packets and send them directly.
TrunkPorts are generally used for links between switches and can belong to multiple VLANs.
Trunk port receipt:
When a packet is received, determine whether there is VLAN information: If there is no VLAN information, add the PVID of the port and perform exchange and forwarding. If so, determine whether the trunk port allows the data of the VLAN to enter:
If yes, it will be forwarded; otherwise, it will be discarded.
Trunk port sends messages:
Compare the PVID of the port with the VLAN information of the packet to be sent. If the two are the same, the VLAN information is stripped and then sent. If the two are not the same, the packets are directly sent.
1. Determine the attributes of the VLAN on the current port (The disp interface can see which VLANs are untags and which VLANs are tags)
2. If it is an untag, the VLAN information is stripped and then sent. If it is a tag, it is directly sent.