8000 vivarium: a UML guest has no traffic control, so a test cannot add delay, loss or a rate limit · Issue #858 · nixidae/nixidae · GitHub
[go: up one dir, main page]

Skip to content

vivarium: a UML guest has no traffic control, so a test cannot add delay, loss or a rate limit #858

Open

Description

@Lillecarl

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.

Assisted-By: Claude Opus 5.5

Activity

  1. added
    source: vivarium
    on Oct 19, 2026
  2. Lillecarl commented on Nov 13, 2026

    @Lillecarl
    ContributorAuthor

    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.


    Assisted-By: Claude Opus 5.5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    source: vivarium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      0