Contents Menu Expand Light mode Dark mode Auto light/dark, in light mode Auto light/dark, in dark mode Skip to content
CADET
CADET

Getting started

  • Quickstart
  • Installation
  • Version Matrix

Research goals

  • Choose Your Research Goal
    • Cooperative Driving
    • Computation Placement
    • Communication
    • Model Benchmarking
    • Distributed Sensing
  • Cooperative Driving
  • Computation Placement
  • Communication
  • Model Benchmarking
  • Distributed Sensing

Using CADET

  • Ways to Use CADET

Tutorials

  • Tutorial 1: First Experiment (Replay + Reference App + Delay Link)
  • Tutorial 2: CARLA Braking Experiment
  • Tutorial 3: Comparing Network Backends
  • Tutorial 4: Multi-Device Deployment
  • Tutorial 5: Sweeps and Reproducibility
  • Tutorial 6: Write an App Plugin
  • Tutorial 7: V2V and V2I Experiments

How-to guides

  • Use the replay source
  • Use the synthetic source
  • Live source
  • Register per-device model artifacts
  • Configure link distributions
  • Wi-Fi cell
  • Transport tuning
  • Run and resume sweeps
  • Dashboard
  • Read outputs and run.json
  • Recovery with cadet down

Reference

  • Config Reference
  • CLI Reference
  • Metrics Reference
  • Output Format
  • Tested configurations
  • API Reference
    • cadet.cli
    • cadet.config
    • cadet.core
    • cadet.orchestrator
    • cadet.network
    • cadet.roles
    • cadet.sources
    • cadet.metrics

Explanation

  • Architecture
  • Data Source Layer
  • Processing Core Layer
  • NetWaggle Layer
  • Analysis Layer
  • Network Backend Semantics
  • Reproducibility
  • Design Goals
  • Dataset Mode
  • Requirements and scope

Apps

  • App Plugin Guide

Examples

  • Examples Gallery
    • Distributed Sensing
    • Dataset-mode VLM serving
  • Dataset-mode VLM serving

Help

  • Frequently Asked Questions

Community

  • Citing CADET
  • Contributing
Back to top
View this page
Edit this page

Configure link distributions¶

Each link has a network block that selects the backend and the latency distribution. The three backends apply distributions differently; choose based on what you want to measure.

Backend summary¶

Mode

Granularity

Use when

delay

Message-level

You want the configured distribution honoured per message, with no TCP interaction

netem

Packet-level

You want to see how a real TCP stack behaves on a degraded path

netwaggle

Packet-level

You need a real network topology, wireless medium, or separate namespaces

delay backend¶

Supports all distribution kinds: constant, normal, lognormal, and trace. No additional fields required.

links:
  - name: inference_link
    from: client
    to: server
    network:
      mode: delay
      distribution:
        kind: constant
        value_ms: 60.0

For a lognormal distribution:

links:
  - name: inference_link
    from: client
    to: server
    network:
      mode: delay
      distribution:
        kind: lognormal
        p50_ms: 30.0
        p99_ms: 100.0

netem backend¶

Supports constant, normal, and lognormal only. The trace kind is not supported by packet-level backends; use mode: delay for trace-driven emulation.

``bandwidth_mbps`` is required when jitter is non-zero. Without a rate stage, netem assigns each packet an independent delay and releases it when that delay expires, so a later packet with a shorter delay overtakes an earlier one. Providing bandwidth_mbps adds a serialiser that preserves order.

links:
  - name: inference_link
    from: client
    to: server
    network:
      mode: netem
      distribution:
        kind: lognormal
        p50_ms: 30.0
        p99_ms: 51.6
      bandwidth_mbps: 10.0

Refusal rules¶

CADET refuses a netem or netwaggle link if:

  1. p99 > 2 * p50 — the symmetric jitter would need negative delays to achieve the low side.

  2. Jitter is non-zero and bandwidth_mbps is not set.

For a lognormal distribution with p50_ms: 30 and p99_ms: 51.6, the p99 is 51.6 ms, well within the 60 ms limit (2 × 30 ms). Using p99_ms: 307 with p50_ms: 30 would exceed the limit and be refused.

netwaggle backend¶

Uses the same distribution rules as netem. Requires the emulation container (cadet emulate). For wired links:

links:
  - name: v2i_link
    from: client
    to: server
    network:
      mode: netwaggle
      medium: wired
      distribution:
        kind: lognormal
        p50_ms: 30.0
        p99_ms: 51.6
      bandwidth_mbps: 10.0

For a Wi-Fi link, add medium: wifi and a wifi block with AP and station positions. See Network Backend Semantics for the full netwaggle Wi-Fi configuration.

Loss¶

Add loss: 0.01 (1%) to any backend:

mode: delay
loss: 0.01

With delay, messages are dropped at the application layer, so 1% loss produces roughly 1% unanswered frames. With netem and netwaggle, packets are dropped at the kernel layer; TCP retransmits them, so 1% packet loss appears as elevated p99 latency rather than missing frames.

Next
Wi-Fi cell
Previous
Register per-device model artifacts
Made with Furo
On this page
  • Configure link distributions
    • Backend summary
    • delay backend
    • netem backend
      • Refusal rules
    • netwaggle backend
    • Loss