Use it to understand how MACsec detects tampered or replayed frames.
MACsec Integrity
MACsec integrity protection adds an integrity check value to every frame so the receiver can detect any frame that was modified or injected on the link.
1. MACsec integrity (ICV) detects tampering.
2. Invalid frames dropped.
3. Replay protection.
4. Monitor ICV errors.
5. Errors may indicate key or hardware issues.
frame → ICV check → accept/drop
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
show macsec summaryVerification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Checks Verify boundary
show macsec summary
show macsec interface Te1/1/1
show mka sessions detail
show macsec statistics interface Te1/1/1
Rising InPktsNotValid or InPktsLate counters show integrity or replay failures; compare packet numbers and clocks on both sides.
Step 2 Verification & troubleshooting Narrow the fault
1. Verify link and peer identity/key policy.
2. Inspect MKA session and live peers.
3. Inspect secure channel/association state.
4. Compare encrypted, validated and dropped counters.
5. Test rekey, failover, MTU and application traffic.
Step 3 Common mistakes Narrow the fault
- Assuming MACsec encrypts end to end — it protects one link only.
- Confidentiality offset settings not matching.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
- Each hop/link is protected separately; MACsec is not end-to-end across ordinary transit devices
- MKA establishes secure channels and associations
- Cipher suite, policy, key/identity and replay settings must agree
- Overhead affects effective frame size and platform capacity.
show macsec statistics interface <interface>— ICV failures, validated frames
ReferenceWhat it is1 section · depth on demand
What it protects
Each frame gets a SecTAG with a packet number and a 16-byte ICV (integrity check value). Frames with a wrong ICV or replayed packet numbers are dropped and counted (show macsec statistics interface <if>). Integrity protection can be used without encryption (confidentiality offset or integrity-only mode) when only tampering, not confidentiality, matters.
ReferenceWhy it matters1 section · depth on demand
When to use it
Use it to protect frames on a supported point-to-point link while keeping routing and higher-layer policy independent.
ReferenceImportant terms & boundaries2 sections · depth on demand
In depth
MACsec integrity: every frame carries a cryptographic check value
MACsec (IEEE 802.1AE) protects frames between two directly connected MACsec devices. The Catalyst 9300 guide states that each frame carries an integrity check value (ICV), and frames with a mismatched ICV are dropped. Encryption is optional on top of integrity. The confidentiality offset (0, 30 or 50 bytes) decides how much of the frame stays unencrypted but integrity-protected.
Replay protection
The guide describes a replay window that defaults to 0, which enforces strict frame ordering. With Extended Packet Numbering (XPN) the window can be up to 2³⁰ − 1. A larger window tolerates reordering (for example on links through providers), but accepts older frames.
C9300(config)# key chain MKA-KEYS macsec
C9300(config-keychain-macsec)# key 01
C9300(config-keychain-macsec-key)# cryptographic-algorithm aes-256-cmac
C9300(config-keychain-macsec-key)# key-string 7 <64-hex-chars>
C9300(config)# mka policy MKA-256
C9300(config-mka-policy)# macsec-cipher-suite gcm-aes-256
C9300(config-mka-policy)# confidentiality-offset 0
C9300(config)# interface Te1/1/1
C9300(config-if)# macsec network-link
C9300(config-if)# mka policy MKA-256
C9300(config-if)# mka pre-shared-key key-chain MKA-KEYS
C9300(config-if)# macsec replay-protection window-size 0
C9300# show macsec interface Te1/1/1
C9300# show macsec statistics interface Te1/1/1
Counters that reveal integrity problems
Counter (in show macsec statistics) | Meaning |
|---|---|
| Validated / OK frames | Frames that passed the ICV check |
| Bad tag / Invalid / Not valid | ICV failure: corruption, key mismatch, or tampering |
| Late / Delayed | Replay protection dropped out-of-window frames |
| Unknown SCI / No SA | No matching secure channel or association |
Ciphers (documented)
GCM-AES-128 is the default, and GCM-AES-256 is also supported. The XPN variants (GCM-AES-XPN-128/256) need a Network Advantage licence and work only on switch-to-switch ports.
MACsec protects each link hop by hop. Frames are decrypted and re-encrypted in every MACsec switch. It doesn't replace end-to-end encryption such as TLS or IPsec.
Documented example, not captured output.
Quick reference
MACsec (IEEE 802.1AE) adds an integrity check value (ICV, GCM-AES) to every frame between two directly connected devices, so injected or modified frames are detected and dropped — even when encryption is not used (integrity-only mode).
show macsec summary
show macsec interface Te1/1/1
show mka sessions interface Te1/1/1 detail
Keys are negotiated by MKA (MACsec Key Agreement, 802.1X-2010) from a pre-shared CAK or via 802.1X/EAP.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Security → MACsec → Integrity. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://www.cisco.com/c/en/us/support/ios-nx-os-software/ios-xe-17/series.html · confidence 94%