SONiC BGP Loading Optimization - Joy Qin & Eddie Ruan, Alibaba Cloud#
ONE Summit 2024 digest Program Core pick 29 April – 1 May 2024
Joy Qin, Software Engineer, and Eddie Ruan, Alibaba Cloud
- Why: Control-plane convergence time is a real production constraint in large SONiC fabrics — loading tens of thousands of BGP routes through SONiC's Redis-based internal state path is a known bottleneck. This is production engineering from a hyperscaler, not a benchmark exercise.
- What: Alibaba's work to double SONiC's route-loading throughput: a batch-publish feature that cuts FPMSyncD Redis traffic, a redesigned Redis pipeline flush policy, and a restructuring of Orchagent and Syncd around a singleton templated ring buffer with lambda-based offload of the module main thread. (from abstract only)
- How: Attacks the problem at three layers — reduce per-route Redis messages (batching), avoid needless pipeline flushes, and restructure the long-running SONiC daemons so their main threads can offload work generically via a ring-buffer + lambda pattern.
- Where applicable: SONiC NOS deployments specifically; the daemon-restructuring pattern (ring buffer + lambda offload) is a general technique for any single-threaded state-sync daemon. Alibaba-specific engineering, but on an open, widely deployed codebase.
