Skip to content

v0.9.3: NAT replies survive neighbor entry ageing

Choose a tag to compare

@scotwells scotwells released this 13 Nov 17:17
b9b0425

Galactic v0.9.3 stops an egress shard dropping replies to a tenant node for several seconds at a time when the kernel collects its next hop's neighbor entry.

Fixes

  • NAT replies no longer drop when a next hop's neighbor entry ages out. The return leg reaches the tenant node through a fabric next hop that only the datapath uses. The kernel never confirms that entry, so it goes stale, and once the node holds more than gc_thresh1 neighbors the kernel's neighbor GC deletes it. Every reply to that node then failed its FIB lookup and was dropped until other traffic recreated the entry (#1393, fixes #1392). The return leg now hands such a packet to the kernel, encapsulated, as the gateway's edge_lb already does. The kernel forwards it and resolves the neighbor, and later packets stay in XDP.

Additions

  • galactic_nat_neigh_fallbacks_total counts those handoffs. They are no longer counted as fib_no_neigh drops (#1393).
  • Gateway reply counters per listener. Reply traffic is now counted per listener, not only per VIP address, so the return series gain protocol and port labels. Replies that match no listener report under port 0, so the per-VIP sum is unchanged (#1391, fixes #1377).
  • Unprogrammed-interface gauge carries VPC IDs. The gauge gains vpc_id and vpc_attachment_id labels, matching the datapath series' base62 IDs, so dashboards can join them (#1388, fixes #1351).

Upgrade notes

  • A handed-off reply crosses the node's netfilter hooks and policy routing, unlike the XDP path. A strict IPv6 reverse-path filter on a shard's uplink drops it, so shard nodes must not run one.
  • Upgrading recreates the gateway's reply counter map, so galactic_edge_return_* counters restart from zero.
  • Every Galactic component rolls, including the fabric routers.