~/lightning

Taming the BPF LRU: Eliminating TCP Resets in Cilium

links:none on file
slides:none on file

At scale Cilium’s BPF SNAT plus an approximate LRU eviction policy is dropping active NAT entries and injecting wrong source ports, causing TCP RSTs; diagnosis uses tcpdump and PWU to trace packets to the tailcall helper and the reverse-NAT code path. The merged fix in Pull Request #37747 proactively restores original NAT entry from the reverse entry, reducing failures from single-digit percentages (reported up to 10%) to nearly zero in tests.

AI-written summary · about

  1. 0:00BPF LRU and TCP resets
  2. 1:06TCP resets in production
  3. 2:34Unexpected port changes with tcpdump
  4. 3:37BPF tracepoints for issue pinpoint
  5. 5:48BPF LRU eviction logic
  6. 7:14Reverse entry recovery fix
  7. 8:15Fix effectiveness with tests
  8. 9:20Dynamic map sizing
  9. 10:01Acknowledgments
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.