FULL AI ANALYSIS

iBGP sessions begin flapping after enabling TTL-security on internal router pair

Generated Oct 29, 2026, 9:46:59 AM

Analysis summary

Enabling TTL/related TCP tweaks can change TCP sequence/ack handling or provoke kernel-level TCP RST behavior when the packet's TTL/TTL-signed behavior mismatches expectation. On same-subnet iBGP, devices expect TTL=255; adding TTL-security or TCP MD5 alters packet handling or triggers mismatched checksum/MD5 verification, producing RSTs. Other likely contributors include kernel-level TCP offload/segmentation offloading producing unexpected MSS/flags and middleboxes rewriting TCP options or dropping packets flagged by new security options.

Possible causes

Mismatch in TTL-security/MD5/TCP option settings between peers (one side expecting MD5 or adjusted TTL while the other is not)

85%

Network equipment or middlebox rewriting/modifying TCP options (eg. NAT, firewall, TCP proxy) causing TCP checksum mismatches leading to RSTs

60%

Host TCP offloads (TSO/GSO/GRO) interacting with router TCP option handling producing malformed segments on wire

40%

Bugs in the platform IOS-XR version's TCP stack or in the feature implementation that drop sessions when TTL checks enabled

30%

Suggested fixes

1

Diagnostic step 1

Verify both peers have identical TTL/MD5/TCP option settings: show running-config|include neighbor.*password/ttl-security and validate across both routers.

2

Diagnostic step 2

Temporarily disable TCP offloads on any directly connected Linux/hypervisor boxes used for packet capture (ethtool -K ethX tso off gso off gro off) and re-run capture to see raw packets.

3

Diagnostic step 3

Use tcpdump on both router-facing interfaces (host capture or SPAN) to compare SYN/SYN-ACK options, sequence numbers, and identify which side sends the RST.

4

Diagnostic step 4

If MD5 is used, verify keys match and key-ID usage is identical; if TTL-security used, confirm TTL values configured match expected 255 decrement behavior.

5

Diagnostic step 5

If a firewall/IPS sits inline, place a mirror port to capture traffic before the device or temporarily bypass it to rule out mutation by middlebox.