Hasty Briefsbeta

Bilingual

QUIC restarts, slow problems: udpgrm to the rescue

a year ago
  • #Graceful Restart
  • #UDP
  • #Cloudflare
  • Cloudflare developed udpgrm for zero-downtime UDP server upgrades, addressing challenges with stateful protocols like QUIC.
  • UDP graceful restarts are complex due to stateful flows in modern protocols, unlike stateless UDP uses like DNS.
  • Linux's SO_REUSEPORT API and eBPF enable flow stickiness and routing to correct server instances during restarts.
  • udpgrm manages socket generations, distinguishing between new and existing flows for seamless transitions.
  • The tool supports configurable flow dissectors for various UDP protocols, ensuring flexibility in handling different traffic types.
  • Integration with systemd and a clean API via setsockopt calls simplify udpgrm's adoption in server environments.
  • udpgrm aims to fill a gap in Linux's Sockets API, offering a reusable solution for UDP server graceful restarts.