The difference between Tagged ports and Untagged ports
In Ethernet switches, ports can be divided into Tagged ports and Untagged ports, and there are differences in their data processing methods.
Tagged Port
- The transmitted data frame contains a tag (tag), which is used to identify the VLAN (virtual LAN) to which the data frame belongs.
- When the data frame enters the switch from the Tagged port, the switch routes the data frame to the corresponding VLAN based on the tag information.
- When the data frame leaves the switch from the Tagged port, the switch retains the tag information in the data frame so that subsequent switches can continue to route the data frame.
Untagged port
- The transmitted data frame does not contain tags, so it can only belong to one VLAN.
- When a data frame enters the switch from the Untagged port, the switch assigns the data frame to the VLAN to which the port belongs by default.
- When the data frame leaves the switch from the Untagged port, the switch removes the tag information from the data frame.
Main Differences
Features |
Tagged Port |
Untagged Port |
Tag |
Contains |
Does not contain |
##VLAN Association | Can belong to multiple VLANs | Can only belong to one VLAN |
Exchange process | Route to the specified VLAN | Default Route to the VLAN to which the port belongs |
Data frame modification | Keep tag | Delete tag |
##Device Compatibility
Need to support VLAN |
No need to support VLAN |
|
Usage scenarios
Tagged Port: - Used to connect devices that support VLAN, such as routers, servers or other switches.
Untagged Port: - Used to connect devices that do not support VLAN, such as PCs, printers, or IP phones.
The above is the detailed content of Introduction to the difference between tagged ports and untagged ports. For more information, please follow other related articles on the PHP Chinese website!