802.1Q VLAN (dot1q)
- Layer: L2 (data link)
- Header: 4 octets (fixed)
- Notes: User-defined protocols (protocols.d)
Reached from
| Lower layer | Selector | Value |
|---|---|---|
ethernet2 | ethertype | 33024 (0x8100) |
dot1q | ethertype | 33024 (0x8100) |
dot1ad | ethertype | 33024 (0x8100) |
snap | pid | 33024 (0x8100) |
Fields
| Field | Type | Default | Auto | Description |
|---|---|---|---|---|
pcp | uint(3) | 0 | Priority code point (802.1p class of service, 0 to 7). | |
dei | uint(1) | 0 | Drop eligible indicator. | |
vid | uint(12) | 1 | VLAN identifier (1 to 4094; 0 = priority tag only, 4095 is reserved). | |
ethertype | enum(16) | 34997 (local_experimental) | Protocol number of the next layer (see Next layer) | EtherType of the layer after the tag (Auto; 0x8100 for another 802.1Q tag). |
ethertype
| Value | Name |
|---|---|
| 2048 (0x0800) | ipv4 |
| 2054 (0x0806) | arp |
| 33024 (0x8100) | vlan |
| 34525 (0x86dd) | ipv6 |
| 34997 (0x88b5) | local_experimental |
| 35045 (0x88e5) | macsec |
| 35063 (0x88f7) | ptp |
| 35074 (0x8902) | cfm |
Next layer
The next layer is selected by ethertype; when the field is Auto the builder writes the value of the protocol stacked above.
| Value | Protocol | Note |
|---|---|---|
| 2048 (0x0800) | ipv4 | |
| 34525 (0x86dd) | ipv6 | |
| 2054 (0x0806) | arp | |
| 33024 (0x8100) | dot1q | |
| 34984 (0x88a8) | dot1ad | |
| 35045 (0x88e5) | macsec | |
| 35063 (0x88f7) | ptp | |
| 35063 (0x88f7) | ptp_sync | |
| 35063 (0x88f7) | ptp_delay_req | |
| 35063 (0x88f7) | ptp_pdelay_req | |
| 35063 (0x88f7) | ptp_pdelay_resp | |
| 35063 (0x88f7) | ptp_follow_up | |
| 35063 (0x88f7) | ptp_delay_resp | |
| 35063 (0x88f7) | ptp_pdelay_resp_follow_up | |
| 35063 (0x88f7) | ptp_announce | |
| 35063 (0x88f7) | ptp_signaling | |
| 35063 (0x88f7) | ptp_management | |
| 35074 (0x8902) | cfm | |
| 35074 (0x8902) | cfm_ccm | |
| 35074 (0x8902) | cfm_lbr | |
| 35074 (0x8902) | cfm_lbm | |
| 35074 (0x8902) | cfm_ltr | |
| 35074 (0x8902) | cfm_ltm | |
| 35074 (0x8902) | cfm_ais | |
| 35074 (0x8902) | cfm_lck | |
| 35074 (0x8902) | cfm_tst | |
| 35074 (0x8902) | cfm_raps | |
| 35074 (0x8902) | cfm_lmr | |
| 35074 (0x8902) | cfm_lmm | |
| 35074 (0x8902) | cfm_1dm | |
| 35074 (0x8902) | cfm_dmr | |
| 35074 (0x8902) | cfm_dmm | |
| 35074 (0x8902) | cfm_csf | |
| 35074 (0x8902) | cfm_1sl | |
| 35074 (0x8902) | cfm_slr | |
| 35074 (0x8902) | cfm_slm |
Constraints
| Level | Rule |
|---|---|
| warning | vid ≠ 4095 |
Sample templates
- dot1ad-qinq-frame —
templates/protocols/l2/dot1ad.wpg.yaml - dot1q-frame —
templates/protocols/l2/dot1q.wpg.yaml - cfm-ccm —
templates/protocols/oam/cfm-ccm.wpg.yaml - erps-raps-nr-rb —
templates/protocols/oam/erps-raps-nr-rb.wpg.yaml - erps-raps-sf —
templates/protocols/oam/erps-raps-sf.wpg.yaml - scenario-qinq-service-sweep —
templates/scenarios/qinq-service-sweep.wpg.yaml - scenario-vlan-arp-sweep —
templates/scenarios/vlan-arp-sweep.wpg.yaml - scenario-vlan-id-sweep —
templates/scenarios/vlan-id-sweep.wpg.yaml - scenario-vlan-syn-flood —
templates/scenarios/vlan-syn-flood.wpg.yaml