Home > Common Problem > body text

Introduction to the difference between tagged ports and untagged ports

小老鼠
Release: 2024-04-07 12:21:24
Original
632 people have browsed it

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

##VLAN AssociationCan belong to multiple VLANsCan only belong to one VLANExchange processRoute to the specified VLANDefault Route to the VLAN to which the port belongsData frame modificationKeep tagDelete tag##Device Compatibility
Features Tagged Port Untagged Port
Tag Contains Does not contain
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!

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!