Guide

Features by Data Plane: Linux Kernel and VPP

Ze can forward packets through the Linux kernel or through VPP. Most of Ze is control plane and is the same on both. The features that write forwarding state are different: each one has a kernel implementation, a VPP implementation, or both. This page lists them, so that you can see what a VPP deployment keeps and what it loses before you select it.

For how Ze starts and supervises VPP, see the VPP guide.

How the data plane is selected

No single switch selects VPP. Four parts of the configuration each select their own backend.

Configuration Values Default What it selects
interface backend netlink, vpp netlink Who creates and configures interfaces. PPPoE subscriber sessions and the automatic route writer follow this leaf.
firewall backend nft, vpp nft Who carries the firewall and NAT rules: nftables, or VPP ACL and NAT44.
traffic control backend tc, vpp tc Who shapes traffic: Linux queueing disciplines, or VPP policers.
fib kernel, fib vpp a block for each writer none Who writes routes. Without a fib block, Ze loads the writer for the data plane that interface backend names.

The vpp value of each leaf exists only in a build that has the ze_vpp tag. A build without the tag refuses the configuration and names the tag.

Ze checks each selection against the features under it. Ze does not compare the selections with each other. For example, a configuration with interface backend vpp and the default firewall backend nft commits. The section Features that only program the kernel says what that combination does.

Summary

"Refused" means that the commit, the daemon start and ze config validate all refuse the configuration and name the path. "Not built" in the VPP column means that the feature has a kernel implementation only. Ze accepts its configuration and programs the kernel, whichever interface backend is selected.

Feature Linux kernel VPP Detail
Ethernet, dummy, loopback, VLAN units ✓ ✓ Interfaces
Bridge, veth ✓ Refused Interfaces
GRE, GRETAP, IPIP, VXLAN tunnels ✓ ✓ Interfaces
IP6GRE, IP6GRETAP, SIT, IP6TNL, IPIP6 tunnels ✓ Refused Interfaces
WireGuard ✓ ✓ Interfaces
XFRM interface, PPPoE client ✓ Refused Interfaces
Port mirroring ✓ ✓ Interfaces
DHCP client, SLAAC, router advertisements, reverse path check ✓ Refused Interfaces
VRRP ✓ Refused Interfaces
Container networks ✓ Refused Interfaces
VRF on an interface unit Not built Not built Interfaces
IPv4 and IPv6 route install ✓ ✓ Routes and MPLS
MPLS push, swap and pop ✓ ✓ Routes and MPLS
SRv6 service routes ✓ ✓ Routes and MPLS
Stateless packet filter ✓ ✓ Firewall and NAT
Connection tracking matches and helpers ✓ Refused Firewall and NAT
NAT ✓ IPv4 only, a subset Firewall and NAT
Traffic shaping ✓ HTB and TBF as policers Traffic control
Ingress policer ✓ Refused Traffic control
PPPoE subscriber access ✓ ✓ Subscriber access
L2TP ✓ Not built Features that only program the kernel
IPsec ✓ Not built Features that only program the kernel
Flow export packet sampling ✓ Not built Features that only program the kernel
Policy routing ✓ Not built Features that only program the kernel
Kernel tunables (sysctl) ✓ ✓ Features that only program the kernel

Interfaces

interface backend selects the backend. The schema marks each node that only some backends implement, and the commit refuses a marked node that the selected backend does not implement.

Feature netlink vpp Limits
ethernet, dummy, loopback, VLAN units, addresses, MTU, MAC address ✓ ✓ On VPP a dummy interface is a VPP loopback.
bridge ✓ Refused
veth ✓ Refused
tunnel with gre, gretap, ipip ✓ ✓ The ttl leaf is refused on VPP: the VPP GRE and IPIP calls that Ze uses carry no hop limit.
tunnel with vxlan ✓ ✓
tunnel with ip6gre, ip6gretap, sit, ip6tnl, ipip6 ✓ Refused
wireguard ✓ ✓ VPP needs vpp plugins wireguard true. The commit does not check that leaf. ze doctor reports doctor-vpp-wireguard when it is off.
xfrm ✓ Refused
pppoe-client ✓ Refused
mirror on a unit ✓ ✓ The kernel mirrors with tc. VPP mirrors with SPAN, as a port mirror of the device.
mpls enable on a unit ✓ ✓
dhcp, dhcpv6, delegated-prefix on a unit ✓ Refused
autoconf, accept-ra on a unit ✓ Refused
router-advertisement on a unit ✓ Refused
rpf-check on a unit ✓ Refused
vrrp on a unit ✓ Refused VRRP needs macvlan devices and raw sockets. Native VPP VRRP is not built.
vrf on a unit Not built Not built Ze refuses the leaf on both backends.
Container network ✓ Refused A network with masquerade, and a container that publishes a port, also need firewall backend nft.

A refusal names the path, the selected backend and the backends that implement the node:

<path>: feature not supported by backend "vpp" (supported: netlink)

On VPP, BGP still uses Linux sockets. The VPP Linux Control Plane plugin shows each VPP interface to Linux as a TAP device, and BGP binds on that device. The VPP guide describes the namespace limit of that arrangement.

Routes and MPLS

One plugin writes routes for each data plane: fib-kernel for the kernel and fib-vpp for VPP. Ze refuses a second writer for the same data plane. fib p4 is in the schema and reaches no data plane today.

Feature Kernel (fib-kernel) VPP (fib-vpp) Limits
IPv4 and IPv6 routes from the system RIB ✓ ✓ VPP routes go to the table that fib vpp table-id names.
Automatic writer for static, OSPF, IS-IS, LDP, RSVP-TE and BGP EPE routes ✓ ✓ Ze loads the writer for the selected interface backend. A build without that writer refuses to start.
MPLS label push on an IP route ✓ ✓ The kernel must have MPLS support. Ze refuses to start when it does not.
MPLS transit swap and pop ✓ ✓ VPP uses MPLS table 0. VPP has no MTU for each route, so Ze does not install the path MTU of an entry and logs one warning.
MPLS push into a private table (RSVP-TE facility backup) ✓ Refused when the entry arrives VPP has no packet mark context.
SRv6 service routes ✓ ✓ VPP: one encapsulation policy for each Service SID. Ze allocates no egress Service SID and installs no remote endpoint behavior.
show mpls forwarding ✓ ✓ The command reads the data plane that interface backend selects.

fib vpp needs interface backend vpp. fib-vpp resolves each next-hop interface to a VPP interface index, and that lookup refuses while another interface backend is active. The commit does not check this pair, so the refusal comes when a route is installed.

Firewall and NAT

firewall backend selects the backend. The vpp backend translates filter chains to VPP ACL rules and NAT chains to VPP NAT44. It refuses at commit every rule that it cannot translate exactly, and the refusal names the table, the chain and the term.

Feature nft vpp Limits on VPP
Match on source or destination address, protocol, ICMP type, ICMPv6 type, TCP flags ✓ ✓
Match on source or destination port ✓ ✓ One port range in a term.
accept, drop ✓ ✓
Rate limit in a term ✓ ✓ IPv4 addresses and exact ports only.
connection-state, connection-mark ✓ Refused
notrack, flow-offload, flowtable ✓ Refused
mark-set, connection-mark-set, mark match ✓ Refused
tcp-mss-clamp-to-pmtu, TCP MSS set, DSCP match, DSCP set ✓ Refused
reject, redirect, counter, log ✓ Refused VPP ACL denies without a response and has no named counter for a rule.
jump, goto, return, chains that are not base chains ✓ Refused A VPP ACL is a flat list of rules.
Named sets ✓ Refused
Match on input or output interface ✓ Refused A VPP ACL is bound to an interface.
Match on destination-local, link-layer unicast, IPsec transform ✓ Refused
Conntrack helpers (system conntrack module) ✓ Refused
snat, masquerade ✓ IPv4 only ✕
dnat ✓ IPv4 only Needs a protocol match and a destination port match.
The ruleset, group and conntrack show commands ✓ Refused

Control-plane policing, policy routing, the local DDoS responder and the FlowSpec firewall bridge add their own tables to the same backend. The vpp backend checks those tables against the same limits when Ze applies them.

Traffic control

traffic control backend selects the backend. The vpp backend has no queueing scheduler. It builds each class as a VPP policer, and it refuses at commit what a policer cannot do.

Feature tc vpp Limits on VPP
htb, tbf ✓ ✓ At least one class. With more than one class, each class needs a protocol or dscp filter.
hfsc, fq, fq_codel, sfq, netem, prio ✓ Refused
Filter on protocol, dscp ✓ ✓ One value steers to one class.
Filter on mark ✓ Refused The Linux packet mark has no VPP equivalent.
Root rate of a qdisc ✓ Refused The class policers carry the rates.
Ingress policer ✓ Refused The L2TP shaper uses it for the upload rate of a subscriber.

Subscriber access

Feature Kernel VPP Limits
PPPoE access interfaces ✓ ✓ Sessions follow interface backend. On VPP the configuration must enable vpp and vpp lcp, and Ze loads the VPP PPPoE plugin. The commit refuses a backend that has no session provider in the build.
L2TP ✓ Not built L2TP sessions use the kernel L2TP and PPP drivers.
PPPoE client ✓ Refused

Features that only program the kernel

These features have one implementation, and it writes Linux kernel state. They have no backend leaf, and the commit does not look at interface backend for them.

Feature What Ze programs
IPsec Kernel XFRM states and policies. The configuration has no way to select another IPsec data plane.
L2TP Kernel L2TP tunnels and PPP interfaces.
Flow export packet sampling A tc sample action on each listed interface, read through the kernel psample channel.
Policy routing ip rule entries, and firewall tables on the selected firewall backend.
firewall backend nft nftables tables in the kernel.
traffic control backend tc Queueing disciplines on kernel interfaces.
sysctl Kernel tunables. They are applied to the Linux kernel whatever the data plane, so a setting about kernel behaviour works the same on a VPP box. A key about packet forwarding, such as rp_filter, acts only on the packets that reach Linux, not on the packets VPP forwards.

With interface backend vpp, VPP owns the network cards and forwards transit packets itself. Linux sees a VPP interface only as the TAP device that the VPP Linux Control Plane plugin creates. A feature in the table above that handles packets then acts on the packets that reach Linux through that TAP device. It does not act on the packets that VPP forwards. Ze accepts such a configuration today and does not warn about it. sysctl is the exception for settings about kernel behaviour: those apply to the Linux kernel as they do on any data plane.

To filter or shape the traffic that VPP forwards, select firewall backend vpp and traffic control backend vpp. IPsec, L2TP, flow export sampling and policy routing have no VPP implementation.

BFD and the DHCP server have no code that is specific to a data plane.