8000
You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
vivarium: a UML guest has no traffic control, so a test cannot add delay, loss or a rate limit #858
The UML kernel is built without CONFIG_NET_SCHED (/nix/store/…-linux-uml-7.2.9/config: # CONFIG_NET_SCHED is not set). So tc and netem do nothing in a UML guest.
A network test wants WAN behaviour between guests: latency, jitter, loss, a slow link. examples/ipsec fakes a failed path and a narrow hop with nftables drops instead, because nothing else is available. It cannot show, for example, DPD and BGP timers under 2% loss, or rekey on a 200 ms link.
Want: NET_SCHED, NET_SCH_NETEM, NET_SCH_TBF (and NET_SCH_FQ_CODEL, the default qdisc) in the UML kernel, next to the other networking options. Perhaps also a per-segment impairment setting, so a test declares "this segment has 50 ms and 1% loss" instead of writing tc in a phase. QEMU guests run the nixpkgs kernel and already have netem.
A second route to impairment, which also reaches guests whose kernel vivarium does not build (RouterOS, SONiC, VyOS): the host-side Lan hub in net.py. Every backend reads its segment fds from there. Loss is a random drop in Lan._flood; delay needs a timer queue in the hub, so it costs more. The setting would live on the segment option asked for in #1326. In-guest netem (this issue) stays useful for impairment on one direction or one interface.
Activity
Lillecarl commentedon Nov 13, 2026
A second route to impairment, which also reaches guests whose kernel vivarium does not build (RouterOS, SONiC, VyOS): the host-side
Lanhub innet.py. Every backend reads its segment fds from there. Loss is a random drop inLan._flood; delay needs a timer queue in the hub, so it costs more. The setting would live on the segment option asked for in #1326. In-guest netem (this issue) stays useful for impairment on one direction or one interface.Assisted-By: Claude Opus 5.5