Wire lab

VLAN QoS Wire-Level Proof

Packet captures and counters check how VLAN QoS maps translate packet priority into 802.1p tags and back.

Daemon

Two network namespaces are joined by a veth pair. One side has a VLAN sub-interface with egress/ingress QoS maps; the other is a raw capture/inject endpoint. On egress, the lab sends UDP with a given SO_PRIORITY, the egress map stamps the matching PCP bit in the 802.1Q header, and a capture on the peer side confirms it. On ingress, a raw 802.1Q frame with a given PCP arrives, the 8021q module strips the tag, and the ingress map translates PCP back to skb->priority, verified with an nftables counter.

The lab checks software veth pairs; physical NICs with hardware VLAN offload need separate testing. It covers single-tag 802.1Q, with QinQ outside its scope. Its assertions check marking correctness; QoS scheduling, throughput, and latency remain untested by this lab.

Proves 802.1p PCP tagging/classification actually on the wire (AF_PACKET capture + nftables counters)
Scenarios Egress (PCP on the wire), Ingress (PCP classification), Full chain (DSCP to PCP)
Requires Linux with network namespace support, root (CAP_NET_ADMIN), iproute2, nftables
vlan-qos
# run the wire-level Go integration proof (requires Linux root)
$ sudo -E env "PATH=$PATH" go test -tags integration -count=1 ./internal/plugins/iface/netlink -run TestVLANQoS
Prerequisites

Linux with network namespace support and root (CAP_NET_ADMIN). No Docker, no QEMU needed.