Config Reference¶
This reference is generated from cadet/config/schema.py by
scripts/gen_config_reference.py. To regenerate it after a schema change,
re-run that script and copy the output here.
Each enumerated field lists the values a run may ask for. cadet validate
names anything else a config asks for and refuses the run.
Link backend semantics¶
links[*].network.mode selects where a link is emulated, and that changes
what the other fields mean. The two families are not interchangeable and neither
is made to imitate the other.
|
|
|
|---|---|---|
layer |
message-level: the transport’s delay line holds whole application messages |
packet-level: a kernel qdisc holds packets, and TCP reacts |
|
sampled per message, per the configured distribution |
the mean and jitter of a netem delay, applied per packet |
|
delays request messages only; replies are untouched |
delays every packet leaving the sender, including the handshake and ACKs |
|
delays reply messages only |
delays every packet leaving the listener |
|
drops application messages; a dropped message is never answered |
drops packets; TCP retransmits, so the message still arrives |
|
serialization delay computed per message |
a real rate limit on the queue |
needs |
nothing |
|
What this means in practice¶
A configured delay is reproduced at the message level, and approximately
at the packet level. Measured on a 60 ms forward link with the reference app
paced at 20 fps: delay gave p50 60.4 ms, while netem and netwaggle
both gave p50 ≈ 149 ms. The extra is not emulator error: an isolated
request/response probe over the same qdisc measures 60.1 ms. It is TCP: with
small paced messages, Nagle holds a write until the previous one is acknowledged,
and the acknowledgement is itself behind the configured delay. Setting
transport_tuning.tcp_nodelay: true on the sending node brings the same run
to p50 110.2 ms.
Configured loss means different things. delay loses messages, so a 1% loss
produced 1.25% unanswered frames. netem and netwaggle lose packets under
a reliable transport, so the same 1% produced 0% unanswered and showed up as
retransmission latency in p99 instead. If an experiment needs observable message
loss, use delay or an unreliable transport.
Choose by question, not by fidelity. Use delay to state a per-message
latency distribution and have it honoured. Use netem or netwaggle to ask
what a real protocol stack does on a delayed, lossy, rate-limited path.
netwaggle additionally gives a real topology, a wireless medium and
propagation model, and hosts in separate namespaces.
Every run writes link_report.json next to its metrics, holding the configured
parameters beside the measured per-message latency and unanswered counts, so the
gap is visible per run rather than assumed.
Schema reference¶
Config¶
A complete CADET experiment configuration.
field |
type |
default |
notes |
|---|---|---|---|
|
Experiment |
(required) |
|
|
CarlaSource | ReplaySource | SyntheticSource | LiveSource |
(required) |
|
|
Models |
(defaults) |
|
|
list[Node] |
(required) |
|
|
list[Channel] |
|
|
|
list[Link] |
|
|
|
TransportConfig |
(defaults) |
|
|
MetricsConfig |
(defaults) |
|
|
App |
(required) |
|
|
Sweep |
(defaults) |
|
|
Outputs |
(defaults) |
Experiment¶
Identity and repetition policy for a run family.
field |
type |
default |
notes |
|---|---|---|---|
|
str |
(required) |
|
|
str |
(required) |
|
|
int |
|
|
|
int (optional) |
|
|
|
float (optional) |
|
Source types¶
CarlaSource: Input from a running CARLA simulator (the only live backend today).
field |
type |
default |
notes |
|---|---|---|---|
|
|
|
|
|
str |
|
|
|
int |
|
|
|
int |
|
|
|
int |
|
|
|
bool |
|
|
|
Camera |
(defaults) |
|
|
Scenario |
(defaults) |
|
|
|
|
ReplaySource: Deterministic replay from a folder of images or a video file.
field |
type |
default |
notes |
|---|---|---|---|
|
|
|
|
|
str |
(required) |
|
|
float |
|
|
|
bool |
|
|
|
int (optional) |
|
SyntheticSource: Generated frames for tests (no files, no hardware).
field |
type |
default |
notes |
|---|---|---|---|
|
|
|
|
|
int |
|
|
|
int |
|
|
|
int |
|
|
|
float |
|
LiveSource: Live capture: a camera device index or a network stream URL.
field |
type |
default |
notes |
|---|---|---|---|
|
|
|
|
|
int (optional) |
|
|
|
str (optional) |
|
|
|
float |
|
|
|
int (optional) |
|
Camera¶
Ego camera sensor geometry.
field |
type |
default |
notes |
|---|---|---|---|
|
int |
|
|
|
int |
|
|
|
float |
|
Scenario¶
Scenario geometry and lifetime (fields optional; apps use a subset).
field |
type |
default |
notes |
|---|---|---|---|
|
str (optional) |
|
|
|
str (optional) |
|
|
|
str (optional) |
|
|
|
str (optional) |
|
|
|
Spawn (optional) |
|
|
|
Occluder (optional) |
|
|
|
Pedestrian (optional) |
|
|
|
float (optional) |
|
Spawn¶
A world pose (metres, degrees) for spawning an actor.
field |
type |
default |
notes |
|---|---|---|---|
|
float |
(required) |
|
|
float |
(required) |
|
|
float |
|
|
|
float |
|
Models¶
Pipeline component choices plus the logical-name → artifact registry.
field |
type |
default |
notes |
|---|---|---|---|
|
str |
|
|
|
str |
|
|
|
str |
|
|
|
str (optional) |
|
|
|
bool |
|
|
|
map[str → ModelEntry] |
|
Node¶
A compute node that hosts a role (client / server / sim).
field |
type |
default |
notes |
|---|---|---|---|
|
str |
(required) |
|
|
str |
(required) |
|
|
int (optional) |
|
|
|
|
|
|
|
|
(required) |
|
|
str |
|
|
|
int (optional) |
|
|
|
|
|
|
|
float (optional) |
|
|
|
int (optional) |
|
|
|
float (optional) |
|
|
|
|
|
|
|
int (optional) |
|
|
|
TransportTuning (optional) |
|
TransportTuning¶
TCP stack settings for one node, applied only in that node’s namespace.
field |
type |
default |
notes |
|---|---|---|---|
|
bool (optional) |
|
|
|
bool (optional) |
|
|
|
int (optional) |
|
Channel¶
A direct data path between two nodes (no network emulation).
field |
type |
default |
notes |
|---|---|---|---|
|
str |
(required) |
|
|
str |
(required) |
|
|
str |
(required) |
|
|
int (optional) |
|
|
|
int |
|
|
|
bool |
|
|
|
bool |
|
|
|
str (optional) |
|
Link¶
A network-emulated data path between two nodes.
field |
type |
default |
notes |
|---|---|---|---|
|
str |
(required) |
|
|
str |
(required) |
|
|
str |
(required) |
|
|
|
|
|
|
NetworkModel |
(defaults) |
NetworkModel¶
Emulated-network behaviour applied to a link’s traffic.
field |
type |
default |
notes |
|---|---|---|---|
|
|
|
implemented |
|
|
|
|
|
ConstantDist | NormalDist | LognormalDist | TraceDist |
(defaults) |
|
|
float |
|
|
|
float (optional) |
|
|
|
WifiConfig (optional) |
|
Delay distributions¶
ConstantDist: fixed per-packet delay.
field |
type |
default |
notes |
|---|---|---|---|
|
|
|
|
|
float |
|
NormalDist: Gaussian delay.
field |
type |
default |
notes |
|---|---|---|---|
|
|
|
|
|
float |
(required) |
|
|
float |
(required) |
LognormalDist: log-normal delay (long tail).
field |
type |
default |
notes |
|---|---|---|---|
|
|
|
|
|
float |
(required) |
median of the distribution |
|
float |
(required) |
99th-percentile of the distribution |
TraceDist: replay delays from a recorded trace file.
field |
type |
default |
notes |
|---|---|---|---|
|
|
|
|
|
str |
(required) |
TransportConfig¶
Wire transport for node-to-node traffic.
field |
type |
default |
notes |
|---|---|---|---|
|
|
|
|
|
|
|
MetricsConfig¶
Optional measurement collectors to run during an experiment.
field |
type |
default |
notes |
|---|---|---|---|
|
list of |
|
App¶
App selector and its raw parameters.
field |
type |
default |
notes |
|---|---|---|---|
|
str |
(required) |
|
|
map[str → Any] |
|
Sweep¶
Cartesian sweep over dotted config paths → list of values.
field |
type |
default |
notes |
|---|---|---|---|
|
map[str → list[Any]] |
|
Outputs¶
Where run artifacts go. By policy, results and weights are never committed.
field |
type |
default |
notes |
|---|---|---|---|
|
str |
|
|
|
str |
|
|
|
list[str] |
|