Skip to main content
QUICK REVIEW

[Paper Review] Flexible failure detection and fast reroute using eBPF and SRv6

Mathieu Xhonneux, Olivier Bonaventure|arXiv (Cornell University)|Oct 24, 2018
Software-Defined Networks and 5GComputer Science10 references10 citations
TL;DR

This paper proposes an eBPF-based fast failure detection and SRv6 TI-LFA fast reroute mechanism in Linux, leveraging kernel-space execution for low-latency, high-robustness monitoring. It achieves sub-10ms failure detection under CPU stress, outperforming user-space BFD implementations by eliminating scheduler jitter and enabling kernel-triggered, interrupt-driven processing with only 8% throughput overhead.

ABSTRACT

Segment Routing is a modern variant of source routing that is being gradually deployed by network operators. Large ISPs use it for traffic engineering and fast reroute purposes. Its IPv6 dataplane, named SRv6, goes beyond the initial MPLS dataplane, notably by enabling network programmability. With SRv6, it becomes possible to define transparent network functions on routers and endhosts. These functions are mapped to IPv6 addresses and their execution is scheduled by segments placed in the forwarded packets. We have recently extended the Linux SRv6 implementation to enable the execution of specific eBPF code upon reception of an SRv6 packet containing local segments. eBPF is a virtual machine that is included in the Linux kernel. We leverage this new feature of Linux 4.18 to propose and implement flexible eBPF-based fast-reroute and failure detection schemes. Our lab measurements confirm that they provide good performance and enable faster failure detections than existing BFD implementations on Linux routers and servers.

Motivation & Objective

  • To address the performance limitations of user-space BFD daemons in Linux routers under high CPU load.
  • To enable flexible, low-overhead failure detection and fast reroute using eBPF and SRv6 in the Linux kernel.
  • To reduce configuration complexity and improve robustness compared to traditional BFD by offloading monitoring logic to the kernel.
  • To demonstrate that kernel-based eBPF functions can achieve faster and more reliable failure detection than user-space daemons.
  • To provide a lightweight, integrated solution for liveness monitoring and fast reroute that avoids application-layer protocols.

Proposed method

  • Extends Linux SRv6 with eBPF support to execute custom network functions directly in kernel space using the End.BPF hook.
  • Implements a BPF-based slave function that monitors link liveness by tracking probe timestamps and detecting timeouts.
  • Uses kernel-level interrupts instead of system scheduling to trigger failure detection, reducing jitter and improving responsiveness.
  • Integrates the eBPF-based failure detection with SRv6 TI-LFA for fast rerouting, enabling topology-independent backup paths.
  • Employs eBPF maps for persistent state storage and BPF helper functions for packet manipulation and encapsulation.
  • Deploys the solution in a lab environment with controlled CPU load to compare performance against traditional BFD and bird's user-space implementation.

Experimental results

Research questions

  • RQ1Can eBPF-based failure detection in the kernel achieve lower detection latency and higher robustness than user-space BFD daemons under CPU stress?
  • RQ2To what extent does the performance of eBPF-based monitoring degrade under high system load compared to traditional BFD?
  • RQ3How does the integration of eBPF with SRv6 enable efficient, flexible fast reroute without requiring additional network state or configuration?
  • RQ4What is the performance overhead of executing eBPF programs for failure detection and TI-LFA rerouting in the Linux kernel?
  • RQ5Can a minimal, kernel-space implementation of a BFD-like function be achieved without relying on application-layer protocols?

Key findings

  • The eBPF-based slave function achieved flawless failure detection with 10ms probe intervals and 30ms detection time, even under high CPU load, while user-space BFD implementations failed.
  • The eBPF slave function reduced jitter and improved reliability by using interrupt-driven processing instead of system scheduler polling.
  • The eBPF-based failure detection scheme achieved sub-10ms detection times with aggressive timers, outperforming traditional BFD implementations.
  • The SRv6 TI-LFA implementation using eBPF introduced only an 8% throughput overhead in normal operation and 25% during active rerouting, with the majority of the overhead due to SRH encapsulation.
  • The eBPF slave function is only 150 lines of code, demonstrating that lightweight, high-performance monitoring can be implemented entirely in kernel space.
  • The solution enables asymmetric monitoring, where only the master sends probes, and the slave runs in kernel space without requiring a symmetric application-layer protocol.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.