wire / wire-format / vlan-tag
An 802.1Q VLAN tag is a 4-byte field inserted into an Ethernet frame between the source MAC and the EtherType. Fields: TPID (Tag Protocol Identifier, 2 bytes, 0x8100), PCP (Priority Code Point, 3 bits, 0-7), DEI (Drop Eligible Indicator, 1 bit), VID (VLAN Identifier, 12 bits, 1-4094).
aka: VLAN tag (802.1Q)
spec: IEEE 802.1Q
An 802.1Q VLAN tag is a 4-byte field inserted into an Ethernet frame between the source MAC and the EtherType. Fields: TPID (Tag Protocol Identifier, 2 bytes, 0x8100), PCP (Priority Code Point, 3 bits, 0-7), DEI (Drop Eligible Indicator, 1 bit), VID (VLAN Identifier, 12 bits, 1-4094).
| field | size | meaning |
|---|---|---|
| TPID | 2 bytes | Tag Protocol Identifier: 0x8100 (802.1Q). Other values: 0x88A8 (QinQ outer), 0x9100 (legacy QinQ). |
| PCP | 3 bits | Priority Code Point: 0 (best effort) to 7 (highest). Maps to 802.1p priority. |
| DEI | 1 bit | Drop Eligible Indicator: 1 = frame may be dropped under congestion. |
| VID | 12 bits | VLAN Identifier: 1-4094 (0 and 4095 are reserved). 4094 possible VLANs. |
example:
81 00 00 01
VLAN tag: TPID 0x8100, PCP 0, DEI 0, VID 1
agent: curl -H 'accept: application/json' wire.phall.io/wire-format/vlan-tag
or /wire-format/vlan-tag.json