Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Verify packet handling

Choose the check that answers your question. Use a disposable Linux host for privileged tests; the harness creates networking fixtures and attaches actual kernel programs. Build the release binaries first.

QuestionCheckObservable result
Does the node config parse?./target/release/velstra validate examples/rules.tomlResolved policy printed, exit 0; no interfaces touched.
Will this kernel accept the object?sudo ./tests/e2e/loadcheck.shThe real eBPF verifier accepts the programs.
Does a policy affect traffic?sudo ./tests/e2e/run.sh fw_pass fw_icmpThe namespace cases compare allowed traffic and the expected ICMP drop.
Did both overlay endpoints process a frame?sudo ./tests/e2e/run.sh srv6_roundtripSender encapsulation and receiver decapsulation counters advance.
Does the CNI create a controller-managed port?sudo ./tests/e2e/cni-controller.shCNI, the controller and the node agent agree on the allocated port and interface.

Run a focused dataplane check

sudo ./tests/e2e/run.sh fw_pass fw_icmp

The test uses interfaces joined by veth pairs so packets cross the XDP receive hook. Traffic to a local dummy address can travel through loopback and miss that hook entirely. Read the assertion next to each case; a green routing or load-balancing counter alone cannot demonstrate a full application round trip.

Troubleshoot an unexpected result

SymptomCheck next
Agent binary missingRun the release build, or set VELSTRA_BIN to the intended binary before starting the harness.
Load check failsRead the verifier output and confirm that this Linux kernel supports eBPF, XDP and TC.
ARP or ND case skipsInstall arping or ndisc6, respectively, then rerun the two cases.
A VIP rewrites requests but replies failCheck return routing, backend reachability, and that the agent sees both directions with shared NAT maps.

Scenario definitions and assertions · CNI fixture · Kubernetes lab

Scenario inventory

The runnable names below come from the scenario registry. Append one or more names to sudo ./tests/e2e/run.sh to select them.

AreaCases
Ingress policyfw_pass, fw_default_drop, fw_icmp, fw_port, fw_blocklist_v4, fw_blocklist_v6
Egress, forwarding and NATegress_blocklist, routing, lb
Tenant Ethernetoverlay_arp, overlay_nd, overlay_encap, overlay_mac_fdb, local_mac_learn
SRv6srv6_encap, srv6_roundtrip, srv6_flood, srv6_irb

Other integration fixtures target different layers:

For the original multi-terminal IPv4 NAT lab, see the versioned walkthrough. It describes checksum offload, host forwarding and return-path assumptions specific to that topology.