IPng Networks
Read post

VPP with Maglev Loadbalancing

A deep dive into VPP's load balancer plugin using Google's Maglev consistent hashing algorithm. Covers how Maglev works (pre-computed lookup table + per-CPU flow hash LRU cache), the plugin's internal data structures (VIPs, Application Servers, new-flow table, flow hash table), and a collection of API bugs fixed in Gerrit. Two new features are introduced: per-AS weights (0–100) enabling lameduck draining and gradual canary rollouts without disrupting existing TCP sessions, and a 'punt' flag for port-based VIPs that routes non-matching traffic (ICMP, traceroute) to the local IP stack instead of dropping it. New API calls (lb_as_add_del_v2, lb_as_set_weight, lb_add_del_vip_v3, etc.) are added to expose these capabilities without breaking existing API contracts.

Apr 30•18m read time•From ipng.ch
Post cover image
Table of contents
IntroductionIntroducing MaglevWhat’s Next
169 Impressions
IPng Networks's image
IPng Networks

Feisty Duck's resource offers insights, tutorials, and resources for cybersecurity professionals and...

24 Followers

•

55 Upvotes

Would you recommend this post?

Copy link
WhatsApp
Facebook
X
New Squad
  • © 2026 Daily Dev Ltd.
  • Guidelines
  • Explore
  • Tags
  • Sources
  • Squads
  • Leaderboard