Sagar Sharma: Accurate Traffic Generation in the CheesePi Network

Student: Sagar Sharma
Thesis: Accurate Traffic Generation in the CheesePi Network
University: KTH, School of Information and Communication Technology (ICT)
Year: 2016
Co-advisor: Robert Olsson
Now at: Scania, Sweden

Links

About the thesis

Programme: Electrical Engineering, KTH (30 credits), 2017
Supervisors: Ian Marsh and Liam McNamara (SICS Swedish ICT) · KTH supervisor: Robert Olsson
Project: CheesePi

Internet service providers need to know whether a link can carry capacity-hungry services such as video. One way to find out is to send traffic, for example with iperf, and measure the throughput. Short bursts at high utilisation tell whether a connection can support such services; repeating them over a day shows day–night effects, so links can be classified for management decisions.

But measurement traffic is itself load. On a shared network, a long test at full speed disturbs everyone else. The thesis's central problem is minimising measurement impact: how short can a high-rate test be and still give an accurate answer? It also extends CheesePi, the SICS home-measurement platform, to gigabit rates.

Set-up

  • Hardware: measurement agents (MAs) on Raspberry Pi 1 and 2 and an ODROID-XU4, tested back-to-back, through a switch, and across real networks.
  • Network: CheesePi nodes at SICS and KTH in Kista, a student residence, and universities in Karlstad, Luleå and Västerås, mostly on the Swedish research network SUNET.
  • Tools: iperf for TCP and UDP throughput and jitter; ping for round-trip time; Linux netem to emulate the measured paths in the lab.
CheesePi nodes used in the thesis
Measurement agents in Kista, Karlstad, Luleå and Västerås, with the paths between them.

Results

Hardware limits. Raspberry Pis cannot saturate a gigabit link: their Ethernet goes through USB, and they topped out below 100 Mbit/s. The ODROID-XU4 reached roughly 0.8 Gbit/s for TCP, which is why it was chosen when an ISP asked for higher-rate tests.

Maximum TCP throughput of each measurement agent back-to-back
Maximum TCP throughput back-to-back: the two Raspberry Pis (left) against the ODROID-XU4 (right).

Day-long behaviour. Hourly iperf tests between Kista and Karlstad over 24 hours showed stable throughput, around 72–74 Mbit/s median for Pi-based nodes, with little day–night variation on the research network.

24 hours of iperf TCP throughput between SICS and Karlstad
24 hours of TCP throughput between SICS and Karlstad on two Saturdays, sampled three times an hour.

Emulation works. Paths recreated in the lab with netem, using the measured RTT, produced throughput surprisingly close to the real paths.

Emulated against actual throughput, SICS to Karlstad
Emulated (netem) and actual throughput for increasing applied bandwidth between SICS and Karlstad.

Short tests are enough. Comparing throughput after the first second(s) of a TCP test with the final value showed that, on these paths, TCP throughput can be estimated nationwide within 3 seconds of the start of a session. The thesis quantifies the trade-off between test duration and accuracy.

Absolute estimation error against test duration, SICS to Karlstad
Absolute error of the throughput estimate against test duration for 75 TCP flows between SICS and Karlstad: the error falls sharply within the first seconds.

Conclusions and future work

The thesis characterised network links by hardware, transport protocol, connection duration and RTT, showed long-term RTT and throughput in the CheesePi network, validated netem emulation, and showed that short TCP tests give accurate throughput estimates, reducing measurement load.

Future work listed: comparing iperf with other generators (netperf, nuttcp, pktgen); other hardware (Banana Pi, FPGA-based); wireless links; short UDP bursts (efficient but risky for the network); paths with longer RTTs than Sweden's; emulating loss and cross-traffic as well as delay; and using the evolution of TCP's congestion window to stop a test as soon as the estimate is good enough.

Results from this thesis appear in CheesePi: Research, Results, and the Regulator (ANRW 2017).

Thesis

Full text (DiVA)

Original entry

Sagar Sharma, Accurate Traffic Generation in the CheesePi Network, KTH, 2016, now at Scania, Sweden, thesis page (Co-advised with Robert Olsson).

Project

Related publications

BibTeX

@mastersthesis{Sharma1085428,
  author   = {Sharma, Sagar},
  title    = {Accurate Traffic Generation in the CheesePi Network},
  school   = {KTH, School of Information and Communication Technology (ICT)},
  series   = {TRITA-ICT-EX},
  number   = {2016:192},
  pages    = {64},
  year     = {2016},
  url      = {http://www.diva-portal.org/smash/record.jsf?pid=diva2:1085428},
  keywords = {Network characterization, Traffic generation, Throughput estimation, Nätverkskarakterisering, Trafikgenerering, Genomströmningsuppskattning}
}

Source: DiVA record diva2:1085428

More in Masters theses: ← Cosar Ghandeharioon (2018)  |  Rebecca Portelli (2016) →

← All supervised theses