Networking

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

Environment

Environment

Two Cisco IOS-XR routers (v7.3) in same datacenter, iBGP full mesh over single-hop, TTL-security ('ip tcp adjust-mss' equivalent) recently enabled via config template pushed from Ansible.

Symptoms

Symptoms

iBGP (TCP/179) neighbors repeatedly drop and re-establish every 30–90s on both routers; traffic blackholes for BGP-learned prefixes during flaps; route-refresh process restarts.

Observations

Observations

syslog shows 'TCP reset from peer' and 'BGP peer closed connection' on both sides. tcpdump at OS shows SYN retransmits then a RST from the local interface's source IP. MTU consistent across path; no physical link errors; CPU and memory stable.

Already attempted

Already attempted

Rolled back TTL-security config on one router which stabilized neighbor on that side but other router still flapped with remaining peers. Disabled route-refresh and cleared BGP soft-reconfig with no change. Captured full pcap of 3 flaps.

Question

Question

What configuration interactions or kernel/TCP behaviors cause iBGP (same-subnet) peering to reset after enabling TTL/MD/TCP tweaks, and how to remediate without disabling whole security feature?

COMMUNITY RESPONSES

Verified community troubleshooting

0 replies

No answers yet..

Showing 0 of 0 community responses
AI DIAGNOSTICS

Incident analysis

Updated 4w ago• Trouble ID

Most likely 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%

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.

Suggested Fixes

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

Continue troubleshooting

Matched from the title, description and tags