Team: Nikhil Handigol, Brandon Heller, Vimal Jeyakumar, and Bob Lantz.
Key Result(s): DCTCP consistently maintains a small queue occupancy while maintaining high throughput.
- M. Alizadeh, A. Greenberg, D.A. Maltz, J. Padhye, P. Patel, B. Prab- hakar, S. Sengupta, and M. Sridharan. Data center tcp (dctcp). In Proceedings of the ACM SIGCOMM 2010 conference on SIGCOMM, pages 63–74. ACM, 2010.
- Dctcp patches. http://www.stanford.edu/~alizade/Site/DCTCP.html.
- M. Alizadeh, A. Javanmard, and B. Prabhakar. Analysis of dctcp: stability, convergence, and fairness. In Proceedings of the ACM SIGMETRICS joint international conference on Measurement and modeling of computer systems, pages 73–84. ACM, 2011.
- K. Ramakrishnan and S. Floyd. A proposal to add explicit congestion notification (ecn) to ip. 1999.
Contacts: Nikhil Handigol (email@example.com), Brandon Heller (firstname.lastname@example.org), Vimal Jeyakumar (email@example.com), Bob Lantz (firstname.lastname@example.org)
Data-Center TCP, or DCTCP was proposed in Sigcomm 2010 , as a modification to TCP’s congestion control algorithm. DCTCP simultaneously achieves high throughput and low latency. DCTCP leverages Explicit Congestion Notification  feature in commodity switches to detect and react—not only to the presence of network congestion—but also to its extent, signaled by the sequence of ECN marks stamped by the switch.
One experiment in the paper is a micro-benchmark that verifies if DCTCP consistently maintains a small queue occupancy while maintaining high throughput. To test this, the authors used an ECN-capable switch which had support for monitoring a metric of interest—the output queue occupancy. This support is readily available in a software queue. To replicate the experiment, we used the publicly available DCTCP patch  in our setup.
In both Mininet-HiFi and hardware, we created a simple topology of three hosts A, B and C connected to a single 100Mb/s switch. In Mininet-HiFi, we configured ECN through Linux Traffic Control’s RED queuing discipline, and set a marking threshold of 20 packets. Hosts A and B each start one long lived TCP flow to host C. We monitor the instantaneous output queue occupancy of the switch interface connected to host C.
Figure 2: Reproduced results for DCTCP  with Mininet-HiFi and a identically configured hardware setup. Figure 2(b) shows that the queue occupancy with Mininet-HiFi stays within 2 packets of hardware.
Figure 2(c) shows the queue behavior in Mininet-HiFi running DCTCP, and from an identically configured hardware setup. Both TCP and DCTCP running in Mininet-HiFi exhibit nearly identical behavior of queue occupancies over time, when compared to hardware. The main takeaway is that the simple micro-benchmark, and perhaps even testing the convergence and stability of the dynamics of DCTCP  over a wide range of topologies and RTT could be emulated by Mininet-HiFi.
Since DCTCP’s dynamics depend on queue occupancy at the switch, the outcome of this experiment relies on accurate link emulation in the network. An ideal 100Mb/s link would take 120μs to transmit a 1500 byte packet, and a 1Gb/s link takes 12μs. To verify this was indeed the case in Mininet-HiFi, we monitored the dequeue times of every link in Mininet-HiFi. To avoid startup/teardown effects, we collect samples after the experiment stabilizes, from which we compute the percentage deviation of observed inter-dequeue time deltas from the ideal (120μs for 100Mb/s). That is, if xi is a sample, the percentage deviation is 100 × |xi − 120|/120. Figure 3 visualizes these deviations as a Complementary CDF, for the experiment with links rate limited to 100Mb/s and 1Gb/s.
We find that htb emulates 100Mb/s quite well: the inter-dequeue times are (in the worst case) within 10% of what would be exhibited by an ideal link, for 0.1% of all packets observed in a 3s window of time. However, when all links operate at 1Gb/s, we lose fidelity in multiple aspects: shown in Figure 3, the inter-dequeue time deviations are far (100%) from ideal for over 10% of all packets in the same 3s window of time. Though not shown, the average bottleneck link utilization (over a period of 1s) drops to ∼ 80% of the what was observed on hardware, as the CPU is completely saturated.
Limits of Mininet-HiFi:
The DCTCP paper had experimental results for 10Gb/s bottleneck links. Emulating a 10Gb/s link would require full-sized packets to be dequeued every 1.2μs, which stretches the limits of today’s hardware support for timers. In particular, we found that the best timer resolution offered by Linux’s ‘High Resolution Timers’ (hrtimer) subsystem was about 1.8μs. (This value depends on the frequency of the hardware clock and overheads in programming them.)
Instructions to Replicate This Experiment:
git clone https://bitbucket.org/nikhilh/mininet_tests.git cd mininet_tests/dctcp
Follow the instructions in the README file there: