Skip to main content

Module sim

Module sim 

Source
Expand description

A deterministic in-memory network for tests and benchmarks: two endpoints joined by links that can drop, duplicate, reorder and delay datagrams, with an optional bottleneck (bandwidth and queue). Time is virtual and advanced by the simulation.

Structsยง

Link
Link behaviour, per direction. Probabilities are in parts per million.
LinkStats
Pair
Two endpoints and the links between them.
Rng
xorshift64*: deterministic and good enough for simulation.