Repository navigation
Description
The UDP floor (proposal 018 Phase 3b) cannot deliver a datagram to any backend that speaks only UDP on its application port — which is every real UDP service. udp_proxy receives the datagram and drops it with no log, no NACK, and no stat.
This is the cause of the l4-routes T3.1 failure in #927. Reproduced locally in kind and isolated to a single variable.
The chain
- Aether active-health-checks each backend's application port with a bare
tcp_health_check: {}. - A UDP-only workload (here
l4echo --mode=udp, bound to UDP 9001) has nothing listening on TCP 9001, so the check can never pass. Envoy marks the endpointfailed_active_health_check: trueand the service EDS goesUNHEALTHY. UDPLoadAssignment(agent/internal/xds/proxy/egress.go:421) clones that load assignment to rewrite address/port for the plaintext UDP hop — andproto.Clonecarrieshealth_statusacross verbatim.NewUDPServiceClustersetsHealthyPanicThreshold: 0, which disables panic routing. With the default 50% Envoy would have routed to the unhealthy host anyway; at 0 it refuses.udp_proxyhas zero healthy hosts, so it never opens a session and silently discards the datagram.
Step 3 is a category error on its own: the source EDS describes readiness of the mesh inbound :18008 TCP hop, and the UDP floor deliberately bypasses that hop entirely — the function's own doc comment says so ("the UDP floor has no inbound mTLS proxy, so udp_proxy reaches the application port directly"). Inheriting that verdict applies one port's health to a different port on a different protocol.
The proof
nft counters in three netns (client pod, node host, backend pod), one datagram at a time.
Backend l4udp-a — UDP-only, udp: cluster UNHEALTHY:
pod netns A-client-send-preNAT (udp dport 18081) 3
pod netns D-postNAT (udp dport 18001) 3 <- CNI REDIRECT fired
pod netns B-delivered-local (udp dport 18001) 3 <- reached Envoy's socket
host netns C-host-fwd-9001 (udp dport 9001) 0 <- never forwarded
backend ns E-backend-input (udp dport 9001) 0
Same listener, same redirect, same socket — UDPRoute repointed at l4-a, a TCP workload whose health check passes, so its udp: cluster is HEALTHY:
host netns F-host-fwd-9000 (udp dport 9000) 1 <- forwarded
Endpoint health is the only variable changed. cluster.aether-test/l4-a.udp.sess_tx_datagrams: 1 confirms the send, and udp.sess_rx_errors: 1 is the expected ICMP port-unreachable (nothing listens on UDP 9000 there).
It is silent, which is the worse half
udp.capture_udp_client-<pod>.downstream_sess_rx_datagrams: 1
One, after four datagrams reached the socket. udp_proxy counts a datagram only once a session exists, and session creation needs a host — so the three dropped datagrams incremented nothing. downstream_rx_datagram_dropped is 0. The agent log is clean; there is no UDPRoute input discarded line because nothing was discarded at projection time. From every vantage point aether exposes, the config is correct and healthy.
This is the same class of silent blackhole that UnsupportedUDPRouteShapes (#873/#874) was built to make visible for a different cause, and it is not covered by that detector.
Scope
Not a test-fixture artifact. l4echo --mode=udp is a faithful model of a real UDP backend; DNS, syslog, QUIC and game servers are all UDP-only on their app port. Any of them behind a UDPRoute is blackholed today. //test/envoy_validate cannot catch it — the generated config is correct; the defect is in the health verdict attached to it at runtime.
The tcp: clusters for these same pods are UNHEALTHY too, so the TCP floor would blackhole a UDP-only backend as well — the UDP path is just where it shows.
Options
- Stop propagating the inbound TCP health verdict into the UDP load assignment — clear
health_statusinUDPLoadAssignment. Small and principled: we have no UDP health signal, soUNKNOWN(treated healthy) states that honestly instead of asserting a TCP result about a UDP port. Leaves the UDP floor with no health signal at all. - Give the registry a UDP notion so the health checker knows not to TCP-connect a UDP port. Correct but large —
api/aether/registry/v1/service.proto:17has onlyUNSPECIFIED/HTTP/TCP, ande2e/l4routes.sh:492documents the workaround that depends on it. - Raise
HealthyPanicThreshold— masks it; rejected.
(1) is the targeted fix for the blackhole; (2) is what makes UDP a first-class protocol. Whichever lands, the silence in the "Options" section above needs its own answer — a datagram dropped for want of a host should increment something.
Repro
./e2e/l4routes.sh up && ./e2e/l4routes.sh verify # T3.1 fails, NOREPLY=10
Then, in the client pod's netns, nft shows the redirect firing and ss -lunp shows 0.0.0.0:18001 bound, while /clusters?format=json on the proxy's admin (127.0.0.1:9901, host netns) shows udp:l4udp-a.aether-test.aether.internal with its one host UNHEALTHY.
Activity
feat(registry): add UDP as a third mesh protocol (vocabulary only) (#933
feat(registry): carry UDP services through the control plane (#934)
feat(agent): build udp: cluster entries for PROTOCOL_UDP services (#935)
fix(agent): probe UDP workloads at the mesh inbound port, not their a…
feat(agent): count and log a udp: cluster with no routable endpoint (#…
test(e2e): register the UDP workloads as protocol "udp" and keep the #…
fix(agent): drop waypointed endpoints from the UDP load assignment (#939
docs(038): fold east-west QUIC in as a requirement and reassess the w…