interviewpath
  • 0day streak
  • 10total XP
  • Level 1
0/5

Unit 12 · Networking research · Lesson 3 of 4

Network measurement: emulation, simulation and deployment

Networking claims are tested in simulators, emulators, testbeds or real deployments, and each method trades control and reproducibility against realism. Knowing what each can and cannot show, which parameters dominate results, and how to measure at packet level and compare fairly is the methodological core of networking research.
About 4 h 30 minFocus mode

Step 1: Learn the ideas

  • Discrete-event simulation (ns-3)
  • Link emulation (netem, tbf) and virtual topologies (Mininet)
  • Trace-driven emulation (Mahimahi) and calibrated emulators (Pantheon)
  • Testbeds and deployment A/B studies
  • Topology choices: dumbbell, parking lot, data-center fabric
  • Workload models: bulk, short heavy-tailed, application-limited
  • Packet-level measurement and its artifacts
  • Fair comparison and reporting practice
  • Reproducibility artifacts

Why it matters

A networking thesis or internship project rests on an evaluation. Interviewers check whether you can choose a method, justify its parameters, avoid well-known pitfalls and state the limits of what your results show, and reviewers reject papers whose conclusions depend on unreported settings.

Core ideas

Methods and what they buy.

  • Simulation (ns-3): a discrete-event model of hosts, links and protocols. Fully controlled, repeatable given a seed and able to scale to large topologies, but protocol models may differ from real implementations, and everything outside the model (OS scheduling, NIC offloads, timer behavior) is absent.
  • Emulation (netem and tbf, Mininet, Mahimahi): real protocol implementations running over a software-shaped link or virtual topology. More faithful end hosts, but limited by the host's CPU and timer resolution at high rates, and only as realistic as the configured delay, rate, loss and queue. Trace-driven link emulation, as in Mahimahi, replays recorded cellular or Wi-Fi capacity variation; Pantheon calibrated emulators against measurements of real paths.
  • Testbeds and deployment: real paths and cross traffic, but uncontrolled, hard to reproduce and limited in what you can vary. Deployment A/B studies show aggregate effects at scale without isolating causes.

Strong evaluations combine methods: simulation or emulation to isolate a mechanism, real paths to check that the effect survives.

Topology and workload dependence. A dumbbell with one bottleneck answers different questions from a parking-lot topology with several bottlenecks or a data-center fabric. Workloads matter as much: long-lived bulk flows, short heavy-tailed web flows, application-limited video, and how flows arrive. Because the Internet is so heterogeneous, no single scenario is representative; the robust approach is to vary parameters widely and look for conclusions that hold across them.

Packet-level measurement. Capture at sender and receiver (tcpdump, kernel tracepoints, periodic ss -ti samples) to compute throughput over time, per-packet delay, queue occupancy and retransmissions. Watch for artifacts: offloads that merge segments in captures, clock offset between hosts when computing one-way delay, capture drops at high rates, and measurement tools that perturb what they measure.

Fair comparisons. Use the same bottleneck, buffer, queue policy, RTTs and cross traffic for every scheme, the same kernel and implementation versions, and the same warm-up exclusion. Run enough repetitions to report variability (medians with intervals, or full distributions), use current and well-configured baselines, and publish the full condition table with scripts so others can reproduce or extend the work.

Common misconceptions

  • "Emulation equals reality." It reproduces only what you configured; cellular schedulers, ACK aggregation and policers must be modeled explicitly.
  • "Simulation is obsolete." It remains the practical way to explore large parameter spaces and topologies, provided key results are validated elsewhere.
  • "One run per configuration is enough." Start-up timing, flow ordering and noise change outcomes; repeat runs and report the spread.
  • "Average throughput summarizes performance." Delay distributions, fairness over time and short-flow completion times often matter more.

How to approach it

For each experiment, write the question, the method, the condition table and the expected result before running anything. In interviews, defend why your method answers the question and say what a skeptical reviewer could still object to.

Suggested order

  1. 1Read "Difficulties in Simulating the Internet" (Floyd and Paxson) and list the sources of heterogeneity it identifies.
  2. 2Read RFC 9743 Section 5 (Evaluation Criteria) and skim Sections 6 and 7 for the path types and special cases a new algorithm should be tested against.
  3. 3Read TCP Congestion Control: A Systems Approach Section 3.4 (Experimental Methodology) and note its topologies and multi-flow tests.
  4. 4Read the Pantheon paper for how it calibrates emulators to real paths and what its results archive shows; note that the platform is no longer maintained.
  5. 5Read the Mahimahi paper sections on its shells and on trace-driven link emulation.
  6. 6Do the ns-3 dumbbell project and the tc bottleneck project with the same parameters, and explain the differences.

Paper guides: BBR: Congestion-Based Congestion Control

Step 2: Check off what you can do

Tap each one you can genuinely do or explain. Each earns 10 XP.

Step 3: Go deeper

  • Difficulties in Simulating the InternetStart here

    ICSI (author copy)

    Why no single simulated scenario represents the Internet and how to vary parameters to find robust results.

    Open(opens in a new tab)Link responded, 5 Oct 2026
  • RFC 9743: Specifying New Congestion Control Algorithms (BCP 133)Start here

    IETF (RFC Editor)

    Section: Section 5: Evaluation Criteria

    IETF guidance on what a new congestion-control algorithm must be evaluated against, including mixed-algorithm behavior and difficult paths.

    Open(opens in a new tab)Not checkable automatically, 5 Oct 2026
  • TCP Congestion Control: A Systems Approach

    Systems Approach (open online edition)

    Section: 3.4 Experimental Methodology

    A concrete emulation setup (netem, tbf, tcpdump) with stated topologies and multi-flow tests.

    Open(opens in a new tab)Link responded, 5 Oct 2026
  • Pantheon: the training ground for Internet congestion-control research

    Stanford University

    Calibrated emulators, real-path measurements and an archive of results across many schemes; a model of reproducible comparison.

    Open(opens in a new tab)Link responded, 5 Oct 2026
  • Mahimahi: Accurate Record-and-Replay for HTTP

    USENIX

    Record-and-replay and trace-driven link emulation for repeatable experiments over variable links.

    Open(opens in a new tab)Link responded, 5 Oct 2026

Step 4: Practice

Run one dumbbell experiment three ways: in ns-3, over an emulated bottleneck with tc or Mininet, and, if you can, over a real path between two cloud VMs. Keep one condition table for all three, explain every difference, and separate differences caused by the method from differences caused by the algorithm. If you are taking CS144, its measurement checkpoint ("measuring the real world") is a good additional exercise.

Record attempts on each problem’s page (+15 XP, +10 more when solved on your own).

Step 5: Test yourself

Answer each one out loud or on paper before you finish the lesson.

  1. Question 1What can ns-3 tell you that an emulator cannot, and the other way round?
  2. Question 2Why might a congestion-control result from a 10 Mbit/s netem link not hold at 10 Gbit/s on the same machine?
  3. Question 3Which bottleneck parameters must be reported so that someone else can reproduce your result?
  4. Question 4How would you measure one-way delay, and what makes it hard?
  5. Question 5Which problems does a single-bottleneck dumbbell topology hide?
  6. Question 6What does a deployment A/B test show that a lab experiment cannot, and what can it not show?

You’re done when you can

  • Choose and justify a method (simulation, emulation, testbed or deployment) for three different research questions.
  • Write a complete condition table for an emulated experiment and reproduce one of your own runs from it.
  • Name three measurement artifacts and how you would detect each.
  • Present a comparison protocol that a skeptical reviewer would accept, including repetitions and uncertainty.

Finish the lesson

How confident do you feel?

Lesson complete!

+50 XP

Reviews will come up on the Practice tab so it sticks.

Your notes and study time

Log study time