PacketLab
MACsec · Link security

Frames, scope and replay protection

Read a protected Ethernet frame and understand exactly where confidentiality and replay protection stop.

Prerequisite: Introduction to MACsec.

Example platform scope. CLI examples use supported Catalyst 9500 physical ports on IOS XE 17.18.x. The example port is TenGigabitEthernet1/0/1; substitute the actual supported port on your model. Verify hardware, license and release support in the linked guide. Configuration fragments state their prerequisites; all output is illustrative, with unrelated fields omitted.

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.

One protected hop in a longer pathIllustrative topology
R1R2R3Protected R1–R2 linkSeparate R2–R3 linkValidate and decrypt at R2No protection inheritedSolid lines: physical links · R2 is inside the trust boundary
Solid lines are physical links. The second link is a separate security decision, even if it carries the same IP flow.

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.

FieldPurpose and visibility
Destination/source addressesVisible for Ethernet delivery; authenticated by the MACsec integrity calculation.
SecTAGVisible security metadata including packet number and association number; authenticated, not hidden.
Secure dataIntegrity protected; encrypted when confidentiality is enabled, subject to any configured offset.
ICVCryptographic 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 orderStrict ordered reception
PN 100, then 102Both can be accepted after successful validation; a missing frame does not stall the channel.
PN 101 arrives after 102Too old for strict ordering; dropped even if authentic.
PN 100 is repeatedToo 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.

Configuration fragment · R1 and R2
configure terminal
interface TenGigabitEthernet1/0/1
 macsec replay-protection window-size 0
end
Illustrative output · R2
R2# 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 4

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

Frames, scope and replay protection Quiz

Six questions · four options each · select one answer per question. Submit all answers to see your score and explanations.

1. R1–R2 is protected and R2–R3 is not. Where is traffic decrypted?
2. Which field remains visible in this common MACsec frame?
3. Why is ICV validation alone insufficient to reject an old authentic frame?
4. Under strict ordering, PN 102 is accepted before PN 101 arrives. What happens to 101?
5. What changes when a nonzero window permits older numbers?
6. With explicit SCI and the usual 16-byte ICV, what is the common added MACsec overhead?
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.