Frames, scope and replay protection
Read a protected Ethernet frame and understand exactly where confidentiality and replay protection stop.
Prerequisite: Introduction to MACsec.
Find the protection boundary
R1 sends traffic through R2 to R3. Only the R1–R2 link has MACsec enabled in this example. R2 is a trusted termination point: it validates received frames and exposes their contents to its normal forwarding functions. R3 does not inherit protection from R1.
A switch can similarly terminate a protected link and forward on another protected link with different keys. A transparent carrier service can instead carry frames between distant MACsec endpoints, if it supports the required frame types, size and control traffic. A normal routed IP path does not transparently transport Ethernet MKA messages.
Read the frame fields
For the common GCM-AES profile, a protected frame retains destination and source MAC addresses, followed by the MACsec EtherType 0x88E5, SecTAG, secure data and ICV, with an Ethernet FCS on the wire. The normal client's EtherType is carried within the secure data. An included SCI identifies the sending secure channel using a system identifier and port identifier; the association number selects a secure association within that channel.
| Field | Purpose and visibility |
|---|---|
| Destination/source addresses | Visible for Ethernet delivery; authenticated by the MACsec integrity calculation. |
| SecTAG | Visible security metadata including packet number and association number; authenticated, not hidden. |
| Secure data | Integrity protected; encrypted when confidentiality is enabled, subject to any configured offset. |
| ICV | Cryptographic integrity value; a valid Ethernet FCS alone is not evidence of authenticity. |
The SecTAG occupies 8 bytes without an explicit SCI or 16 bytes with it, including the MACsec EtherType. The usual 16-byte ICV makes the added overhead 24 or 32 bytes before considering extra outer VLAN tags or other encapsulation. Budget actual wire size rather than subtracting a universal value from every interface MTU.
Offset zero encrypts the complete secure data. A nonzero confidentiality offset deliberately leaves initial data bytes visible while retaining integrity protection. Integrity-only operation, VLAN clear-tag options and newer privacy features must be checked against the actual cipher and platform; they are not implied by the word “MACsec”.
Follow the packet number
Integrity detects modification but does not by itself prove freshness. A previously valid frame still has a valid ICV. Replay enforcement uses packet numbers and receive state for the secure association. A non-XPN packet number is 32 bits; key replacement must occur before exhaustion or reuse. XPN extends the numbering space on compatible peers.
| Arrival order | Strict ordered reception |
|---|---|
| PN 100, then 102 | Both can be accepted after successful validation; a missing frame does not stall the channel. |
| PN 101 arrives after 102 | Too old for strict ordering; dropped even if authentic. |
| PN 100 is repeated | Too old and rejected by the same boundary. |
These numbers describe one receiving association, not a sequence shared by both directions. A nonzero replay window tolerates bounded reordering by accepting some older numbers. Do not assume an IPsec-style duplicate bitmap: on the documented MACsec implementation, frames still inside the permitted window are not replay protected. A larger window therefore changes both availability and replay exposure.
Choose and verify a receive policy
The following fragment applies to the already protected direct R1–R2 link from the introduction. It retains strict reception order. Apply the intended receive policy at both ends.
configure terminal
interface TenGigabitEthernet1/0/1
macsec replay-protection window-size 0
endR2# show macsec interface TenGigabitEthernet1/0/1
MACsec is enabled
Replay protect : enabled
Replay window : 0
Cipher : GCM-AES-128
Confidentiality Offset : 0
Receive Secure Channels
SA Statistics
Valid pkts 1200
Late pkts 4The configuration is strict and four received frames were late relative to the active receive boundary. This does not identify an attack: legitimate reordering can produce the same symptom. Compare counter changes during an isolated test and inspect the transport before changing the policy. The failure lesson separates reordering from key and reachability problems.
Key Takeaways
- MACsec protection terminates at each participating peer; another link requires its own protection.
- Visible addresses and SecTAG metadata differ from the encrypted secure data.
- A valid ICV proves integrity under the key, while packet-number policy supplies freshness checks.
- Window zero enforces ordered reception; a larger window tolerates reordering with weaker replay exclusion.
- Budget actual encapsulation overhead and verify the active cipher, confidentiality and receive counters.
Technical references and example notes
IEEE 802.1AE · IEEE 802.1X and MKA · Platform configuration and verification · Topology-symbol attribution.
Diagrams, frame sequences and command results are constructed teaching examples, not recorded captures or lab measurements.