No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

Configuration Guide - Ethernet Switching

S7700 and S9700 V200R011C10

This document describes the configuration of Ethernet services, including configuring link aggregation, VLANs, Voice VLAN, VLAN mapping, QinQ, GVRP, MAC table, STP/RSTP/MSTP, SEP, and so on.
Rate and give feedback:
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
VLAN Tags

VLAN Tags

Definition and Function

A switch identifies packets from different VLANs according to the information contained in VLAN tags. IEEE 802.1Q adds a 4-byte VLAN tag between the Source address and Length/Type fields of an Ethernet frame, as shown in Figure 4-2.

Figure 4-2  IEEE 802.1Q tagged frame format

A VLAN tag contains four fields. Table 4-1 describes the fields.

Table 4-1  Fields in a VLAN tag
Field Length Description Value
TPID 2 bytes Tag Protocol Identifier (TPID), indicating the frame type.

The value 0x8100 indicates an 802.1Q-tagged frame. An 802.1Q-incapable device discards the 802.1Q frames.

IEEE 802.1Q protocol defines the value of the field as 0x8100. However, manufacturers can define their own TPID values and users can then modify the value to realize interconnection of devices from different manufacturers.

PRI 3 bits Priority (PRI), indicating the frame priority.

The value ranges from 0 to 7. A larger value indicates a higher priority. If congestion occurs, the switch sends packets with higher priorities first.

CFI 1 bit Canonical Format Indicator (CFI), indicating whether a MAC address is encapsulated in canonical format over different transmission media. CFI is used to ensure compatibility between Ethernet and token ring networks.

The value 0 indicates that the MAC address is encapsulated in canonical format, and the value 1 indicates that the MAC address is encapsulated in non-canonical format. The CFI field has a fixed value of 0 on Ethernet networks.

VID 12 bits VLAN ID (VID), indicating the VLAN to which a frame belongs. VLAN IDs range from 0 to 4095. The values 0 and 4095 are reserved, and therefore valid VLAN IDs range from 1 to 4094.

The switch identifies the VLAN that a frame belongs to according to the information contained in the VID field. Broadcast frames are forwarded only in the local VLAN. That is, a broadcast domain is confined to within a single VLAN.

VLAN Tags in Received and Sent Frames

In a VLAN, Ethernet frames are classified into the following types:
  • Tagged frame: frame with a 4-byte VLAN tag
  • Untagged frame: frame without a 4-byte VLAN tag
Common devices process tagged and untagged frames as follows:
  • User hosts, servers, hubs, and simplified Layer 2 switches can only receive and send untagged frames.
  • Switches, routers, and ACs can receive and send both tagged and untagged frames.
  • Voice terminals and APs can receive and send tagged and untagged frames simultaneously.

All frames processed in a switch carry VLAN tags to improve frame processing efficiency.

Translation
Download
Updated: 2019-10-18

Document ID: EDOC1000178310

Views: 289899

Downloads: 141

Average rating:
This Document Applies to these Products
Related Version
Related Documents
Share
Previous Next