802.1Q Frame Format

32 bits added to a ethernet frame to multiplex VLANs

                                   ┌────── Priority Code Point(PCP)
                                   │         Used for LAN CoS
                                   │
                                   │   ┌── Drop Elgible Indicator (DEI)
                                   │   │
                                   ▼   ▼
┌───────────────────────────────┬─────┬─┬───────────────────────┐
│    Tag Protocol Identifier    │     │ │                       │
│     (TPID) Set to 0x8100      │ PCP │ │       VLAN ID         │
│                               │     │ │                       │
│1 2 3 4 5 6 7 8 1 2 3 4 5 6 7 8│1 2 3│4│5 6 7 8 1 2 3 4 5 6 7 8│
└───────────────────────────────┴─────┴─┴───────────────────────┘
            16 bits                3   1        12 bits
VLAN IDPurpose
0reserved for 802.1P
1default vlan
2-1001normal network operations
1002-1005reserved
1006-4094extended vlan range