Vlan tagging – Allied Telesis Rapier Switch User Manual
Page 39

Layer 2 Switching
39
Software Release 2.5.1
C613-02025-00 REV B
VLAN. The default VLAN cannot be added to any STP, but always belongs to
the default STP. If all the devices on the physical LAN are to belong to the same
logical LAN, that is, the same broadcast domain, then the default settings will
be acceptable, and no additional VLAN configuration is required.
VLAN Tagging
An Ethernet packet can contain a VLAN tag, with fields that specify VLAN
membership and user priority. The VLAN tag is described in IEEE Standard
802.3ac, and is four octets that can be inserted between the Source Address and
the Type/Length fields in the Ethernet packet (Figure 1-1 on page 39). To
accommodate the tag, Standard 802.3ac also increased the maximum allowable
length for an Ethernet frame to 1522 octets (the minimum size is 64 octets).
IEEE Standard 802.1Q specifies how the data in the VLAN tag is used to switch
frames. VLAN-aware devices are able to add the VLAN tag to the packet
header. VLAN-unaware devices cannot set or read the VLAN tag.
Table 9 on page 39 lists the meaning and use of the fields in the Ethernet frame.
Figure 1-1 on page 39 shows the format of VLAN data in an Ethernet frame.
Twelve bits of the tag are the VLAN Identifier (VID), which indicates the
VLAN that the packet belongs to. Table 10 on page 40 lists the VLAN Identifier
values that have specific meaning.
Figure 1-1: Format of user priority and VLAN data in an Ethernet frame.
Table 9: Fields in the Ethernet frame for QoS and VLAN switching.
Field
Length
Meaning and use
TPID
2 octets
The Tag Protocol Identifier (TPID) is defined by IEEE Standard
802.1Q as 0x81-00.
User Priority
3 bits
The User Priority field is the priority tag for the frame, which
can be used by the switch to determine the Quality of
Service to apply to the frame. The three bit binary number
represents eight priority levels, 0 to 7.
CFI
1 bit
The Canonical Format Indicator (CFI flag) is used to indicate
whether all MAC address information that may be present
in the MAC data carried by the frame is in canonical format.
VID
12 bits
The VLAN Identifier (VID) field uniquely identifies the VLAN
to which the frame belongs.
TPID
16 bits
1 bit
3 bits
12 bits
User
Priority CFI
VID
0x81-00
Preamble
Destination
Address
Source
Address
Type/
Length Frame Data
CRC
64 bits
48 bits
48 bits
16
bits
368-12000
32 bits
SWITCH6