This exact tag decode is not a full switching model.

highlighted = computed this step

The inner type remains explicit

After the tag, inner EtherType 0x0800 still names the payload as IP version 4.

inner EtherType=0x0800\text{inner EtherType}=0x0800
VLAN honesty boundaryThe inner EtherType and payload marker remain explicit after the tag.VLAN honesty boundary160 bits / 20 bytes0xaabbccddeeff0011223344558100002a08004500byte 0byte 1byte 2byte 310101010101110111100110011011101byte 4byte 5byte 6byte 711101110111111110000000000010001byte 8byte 9byte 10byte 1100100010001100110100010001010101byte 12byte 13byte 14byte 1510000001000000000000000000101010byte 16byte 17byte 18byte 1900001000000000000100010100000000dst-mac0xaabbccddeeff(cont.)(cont.)src-mac0x001122334455tpid0x8100tci0x002ainner-ethertype0x0800payload-marker0x4500

Checked fields

The parser checks TPID, TCI, VLAN ID 42, inner EtherType, and payload marker from the pinned bytes.

VID=42\text{VID}=42
VLAN honesty boundaryThe inner EtherType and payload marker remain explicit after the tag.VLAN honesty boundary160 bits / 20 bytes0xaabbccddeeff0011223344558100002a08004500byte 0byte 1byte 2byte 310101010101110111100110011011101byte 4byte 5byte 6byte 711101110111111110000000000010001byte 8byte 9byte 10byte 1100100010001100110100010001010101byte 12byte 13byte 14byte 1510000001000000000000000000101010byte 16byte 17byte 18byte 1900001000000000000100010100000000dst-mac0xaabbccddeeff(cont.)(cont.)src-mac0x001122334455tpid0x8100tci0x002ainner-ethertype0x0800payload-marker0x4500

What this does not model

NOTE: toy Ethernet VLAN header only; not switch trunk configuration, native VLANs, stacked tags, spanning tree, MTU effects, FCS, or real capture behavior.

tag bytes=4\text{tag bytes}=4
VLAN honesty boundaryThe inner EtherType and payload marker remain explicit after the tag.VLAN honesty boundary160 bits / 20 bytes0xaabbccddeeff0011223344558100002a08004500byte 0byte 1byte 2byte 310101010101110111100110011011101byte 4byte 5byte 6byte 711101110111111110000000000010001byte 8byte 9byte 10byte 1100100010001100110100010001010101byte 12byte 13byte 14byte 1510000001000000000000000000101010byte 16byte 17byte 18byte 1900001000000000000100010100000000dst-mac0xaabbccddeeff(cont.)(cont.)src-mac0x001122334455tpid0x8100tci0x002ainner-ethertype0x0800payload-marker0x4500

Summary

A VLAN tag inserts four bytes, TCI names the VLAN ID, and the inner EtherType still identifies the payload.

VID=42\text{VID}=42
VLAN honesty boundaryThe inner EtherType and payload marker remain explicit after the tag.VLAN honesty boundary160 bits / 20 bytes0xaabbccddeeff0011223344558100002a08004500byte 0byte 1byte 2byte 310101010101110111100110011011101byte 4byte 5byte 6byte 711101110111111110000000000010001byte 8byte 9byte 10byte 1100100010001100110100010001010101byte 12byte 13byte 14byte 1510000001000000000000000000101010byte 16byte 17byte 18byte 1900001000000000000100010100000000dst-mac0xaabbccddeeff(cont.)(cont.)src-mac0x001122334455tpid0x8100tci0x002ainner-ethertype0x0800payload-marker0x4500