wire / wire-format / vlan-tag

VLAN tag (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).

wire-format kind wire-format status standard verification verified tier B wire-format@1

aka: VLAN tag (802.1Q)

wire format

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).

fieldsizemeaning
TPID2 bytesTag Protocol Identifier: 0x8100 (802.1Q). Other values: 0x88A8 (QinQ outer), 0x9100 (legacy QinQ).
PCP3 bitsPriority Code Point: 0 (best effort) to 7 (highest). Maps to 802.1p priority.
DEI1 bitDrop Eligible Indicator: 1 = frame may be dropped under congestion.
VID12 bitsVLAN 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


provenance

agent: curl -H 'accept: application/json' wire.phall.io/wire-format/vlan-tag or /wire-format/vlan-tag.json