以 Linux XDP (eXpress Data Path) 為基礎的高效率網路負載平衡器


COSCUP 2020

馮會鈞


Agenda

  • What is XDP
  • A load balancer based on XDP
  • XDP playground

What is XDP?

  • a subset of eBPF program
  • early network packet processing
  • attached to the network device driver

Execution mode


Action

  • XDP_DROP
  • XDP_ABORTED
  • XDP_PASS
  • XDP_TX
  • XDP_REDIRECT

Layer 4 load balancer



Benefits of XDP based LB

  • fewer resources spent on each packet
  • higher availability
  • higher capacity

How XDP load balancer works


Routing decision algorithm


XLB



Reference


Thank you!


Q&A

Select a repo