IEEE 802.1Q VLAN Tag Structure Explained | Generated by AI

Home 2026.03

Question: Provide a detailed extension and explanation of the structure of the VLAN Tag as defined in the IEEE 802.1Q standard, including the fields TPID and TCI with their sub-components.

Answer:

The VLAN Tag (also called the 802.1Q tag) is a 4-byte (32-bit) field that is inserted into the Ethernet frame to support Virtual LANs (VLANs) as defined in the IEEE 802.1Q standard. It is placed between the Source MAC Address and the EtherType/Length field of the original Ethernet II frame.

The complete structure of the VLAN Tag is:

Full bit layout of the 32-bit VLAN Tag:

Bits:    15 14 13 12 11 10 9  8  7  6  5  4  3  2  1  0
         ┌──┴──┴──┴──┴──┴──┴──┴──┴──┴──┴──┴──┴──┴──┴──┴──┐  ← TPID (16 bits)
         │                 0x8100 (fixed)                 │
         └─────────────────────────────────────────────────┘
Bits:    15 14 13 12 11 10 9  8  7  6  5  4  3  2  1  0
         ┌───┴───┴───┴───┴───┴───┴───┴───┴───┴───┴───┴───┐  ← TCI (16 bits)
         │ PCP     │ DEI │          VID (12 bits)         │
         └─────────┴─────┴─────────────────────────────────┘

Total: 4 bytes = 32 bits = TPID (16 bits) + TCI (16 bits).

This tag enables:

References:


Back Donate