HN825: Faster Than Dijkstra? Exploring a New Shortest-Path Algorithm with Bruce Davie
Bruce Davie joins Heavy Networking to discuss a new shortest-path algorithm claimed to be faster than Dijkstra's, which has been foundational to link-state routing protocols since 1959. While the academic breakthrough is legitimate, Davie argues it has negligible practical impact on network routing because the SPF calculation represents only a tiny fraction of total convergence time. The real bottlenecks are failure detection, packet propagation at the speed of light, and forwarding table updates.
Summary
The episode begins with host Ethan Banks introducing Bruce Davie, a veteran networking engineer who worked at Bellcore, Cisco (where he helped develop MPLS), Nicira, and VMware, and now runs Systems Approach, a nonprofit educational organization co-founded with Larry Peterson that publishes open-source networking textbooks.
Davie was motivated to write about a new shortest-path algorithm after a Quanta Magazine article drew attention to academic research presented at the ACM STOC conference, which reportedly won best paper. The research claims to have found an algorithm asymptotically faster than Dijkstra's for computing shortest paths in graphs.
The hosts walk through Dijkstra's algorithm in detail: routers flood link-state advertisements containing direct neighbor costs, then each router builds a confirmed list and tentative list, iteratively moving the lowest-cost node from tentative to confirmed while updating neighbor costs. This sorting operation — finding the minimum-cost node on the tentative list — is a core computational step with a theoretical complexity of approximately O(n log n).
The new algorithm reportedly eliminates the sorting requirement by incorporating elements of Bellman-Ford and working through node neighborhoods differently, achieving complexity closer to O(m log^(2/3) n). However, Davie is candid that the theoretical details exceed his expertise.
The central argument of the episode is that even if the new algorithm is faster, it doesn't meaningfully improve real-world routing convergence. Davie references a 2003 Cisco presentation by Fellow Clarence Filsfils that decomposed all the steps in convergence: physical failure detection, generating and transmitting link-state packets, flooding across the network at the speed of light, OS dispatch, SPF calculation, forwarding table generation, and hardware table updates. The SPF calculation itself already runs in milliseconds on modern hardware and represents a small fraction of total convergence time.
Davie highlights that the biggest historical improvement came from fast failure detection via BFD (Bidirectional Forwarding Detection), which replaced slow hello-based detection that could take 30 seconds. MPLS Fast Reroute and segment routing-based local protection further reduced convergence to near-detection-time by making local rerouting decisions without requiring network-wide propagation.
Additionally, Davie raises the asymptotic complexity caveat: a new algorithm being faster for very large N doesn't mean it's faster for practical routing topologies of thousands of nodes, especially when constant factors are unknown. The existing Dijkstra implementation is also decades-hardened, well-understood, and relatively simple to implement correctly — qualities the new algorithm lacks.
Davie suggests the new algorithm may find practical use in domains requiring millions of nodes, such as mapping, chip layout, or other graph problems — but not in routing protocols. The episode closes with discussion of Systems Approach's ongoing work on the seventh edition of their textbook and their mission to make networking education freely accessible globally.
About this episode
Dijkstra’s algorithm is the foundation of shortest path calculations for link state routing protocols. But researchers have developed a new algorithm that improves on this decades-old approach. Today’s Heavy Networking welcomes Dr. Bruce Davie to discuss the potential of this new algorithm to unseat Dijkstra. After thoughtful consideration, and consultation with others, his opinion is<a class="excerpt-read-more" href="https://packetpushers.net/podcasts/heavy-networking/hn825-faster-than-dijkstra-exploring-a-new-shortest-path-algorithm-with-bruce-davie/" title="ReadHN825: Faster Than Dijkstra? Exploring a New Shortest-Path Algorithm with Bruce Davie">... Read more »</a>
Key Insights
- Davie argues that even though the new algorithm is a legitimate academic breakthrough that won best paper at STOC, its practical impact on network routing is negligible because the SPF calculation already runs in milliseconds on modern hardware.
- Davie points out that Dijkstra's algorithm has persisted for decades in part because of its implementation simplicity — it's simple enough that coders can read the OSPF RFC and correctly implement it, reducing the risk of corner-case bugs.
- Davie contends that the biggest historical improvement to routing convergence was not a faster SPF algorithm but the introduction of BFD (Bidirectional Forwarding Detection), which replaced slow hello-based failure detection that could take up to 30 seconds.
- Davie references a 2003 Cisco analysis by Clarence Filsfils showing that convergence time is distributed across many steps — failure detection, packet generation, flooding, OS dispatch, SPF calculation, FIB generation, and hardware table updates — and optimizing only the SPF step yields diminishing returns.
- Davie argues that speed-of-light propagation across wide-area networks represents a fundamental, irreducible limit to convergence time that cannot be improved by any algorithmic optimization.
- Davie suggests that MPLS Fast Reroute and segment routing local protection achieve faster convergence than any SPF improvement because they enable purely local rerouting decisions that avoid the need to propagate topology changes network-wide.
- Davie notes that asymptotic complexity improvements only matter at very large values of N, and that routing topologies of thousands of nodes likely fall in the regime where constant factors dominate, making the new algorithm's theoretical advantage practically irrelevant.
- Davie suggests the new shortest-path algorithm is more likely to find practical applications in domains like geographic mapping or chip layout design, where graph sizes reach millions of nodes, rather than in network routing protocols.
Topics
Transcript
Today's episode is sponsored by Meter, delivering a complete network-as-a-service offering. Wired, wireless, and cellular in a unified solution. Find out more at meter.com slash heavy networking. Welcome to Heavy Networking, the flagship podcast from the Pocket Pushers podcast network, a fine IT engineering show for your education and with a bit of luck entertainment. And if you're the kind of person who looks at data sheets for network switches with skepticism because you know those numbers are a best-case scenario, hey, you found your tribe. I'm Ethan Banks with Drew Conroy-Murray. You can follow us on LinkedIn or the Pocket Pushers community Slack group, and please do. On today's show, we consider Dijkstra's algorithm a foundation of shortest-path calculations…
Full transcript available for MurmurCast members
Sign Up to AccessMore from The Everything Feed - All Packet Pushers Pods
TNO071: The Network Team Is Drowning. Is AI the Life Raft? (Sponsored)
Rekha Shenoy and Irfan Kimji from Backbox discuss how the exponential growth of vulnerabilities (49,000 CVEs annually) has made manual network operations unsustainable, and how AI-powered automation can help network teams manage patches and security updates at scale while maintaining human control and oversight.
HN840: How to Make a Technology Buying Decision
Sean Morgan, a research director at Deloro Group, discusses how technology buying decisions should extend beyond engineering specifications to include business alignment, ROI calculations, and understanding total cost of ownership. Engineers must shift from viewing IT as a cost center to positioning it as a business enabler by connecting technical decisions to revenue impact and organizational objectives.
IPB207: Flying Blind: Monitoring Might Not See IPv6
The IPv6 Buzz hosts discuss critical gaps in IPv6 monitoring across enterprise networks, highlighting that many monitoring platforms lack IPv6 awareness, vendor parity, and advanced analytical capabilities. They emphasize that while basic IPv6 data ingestion has improved, sophisticated features like cross-protocol event correlation, extension header analysis, and device identity tracking remain significant industry challenges.
N4N063: Link Layer Discovery Protocol
Link Layer Discovery Protocol (LLDP) is a standardized Layer 2 protocol that enables network devices to announce information about themselves to directly connected neighbors, facilitating network topology discovery and device identification in multi-vendor environments. The protocol uses Ethernet frames with special multicast destination MAC addresses to ensure frames don't propagate beyond immediate neighbors, and includes mandatory TLVs (Type-Length-Values) like chassis ID, port ID, and TTL alongside optional ones for extended information.
TCG083: Superintelligence for Everyone: Who Actually Holds the Power?
Three technology experts discuss Mark Zuckerberg's manifesto on distributed superintelligence, examining whether his promises of universal access and individual empowerment align with infrastructure realities. They conclude that while decentralized AI is theoretically safer than centralized control, the manifesto fails to account for human complexity, existing inequalities, and the enormous capital requirements that will likely concentrate power rather than distribute it.