BEN GREWELL
01PROJECT // SHIPPED

WEMO

A WAN emulator for Linux — rate limits, delay, jitter, loss and reordering per direction, with an exact data path, a CLI and a web console over one API.

WEMO turns a Linux host into the far end of a bad network. It bridges or routes between interfaces and applies the impairments of a real wide-area link to the traffic that crosses it, so software can be tested against the network it will actually meet.

Links are described in configuration or created live through the API. The daemon checks everything before it touches the host, and gives the network back exactly as it found it when it stops.

WEMO has been in use since 2012. The current version is a from-scratch rewrite begun in 2019, and it is still gaining features.

TTYwemo — shaping a link
wemo link create wan --source bridge:eth1 --destination l3:10.0.0.1/24@blue --rate 10mbit --delay 20ms
wemo link tune wan --round-trip-delay 600ms --remove loss
wemo link get wan -o yaml > wan.yaml   # the link as a document to apply
wemo apply -f links/ --dry-run         # what would change; nothing is
wemo status --watch                    # every link, live, until Ctrl-C
yamlconfig.yaml
emulator:
  links:
    - name: wan
      precision: max_throughput    # per_packet (exact) is the default
      emulation: {latency: 50, loss: 1}
Status
shipped
Year
2012
Role
Author
Stack
Go · Linux · Traffic control · Web console
← All projects