Using NetLogger and Web100 for TCP analysis

Slides:



Advertisements
Similar presentations
Using NetLogger and Web100 for TCP analysis Data Intensive Distributed Computing Group Lawrence Berkeley National Laboratory Brian L. Tierney.
Advertisements

Simulation-based Comparison of Tahoe, Reno, and SACK TCP Kevin Fall & Sally Floyd Presented: Heather Heiman September 10, 2002.
IS333, Ch. 26: TCP Victor Norman Calvin College 1.
BZUPAGES.COM 1 User Datagram Protocol - UDP RFC 768, Protocol 17 Provides unreliable, connectionless on top of IP Minimal overhead, high performance –No.
Congestion Control Created by M Bateman, A Ruddle & C Allison As part of the TCP View project.
Restricted Slow-Start for TCP William Allcock 1,2, Sanjay Hegde 3 and Rajkumar Kettimuthu 1,2 1 Argonne National Laboratory 2 The University of Chicago.
Computer Networks: TCP Congestion Control 1 TCP Congestion Control Lecture material taken from “Computer Networks A Systems Approach”, Fourth Edition,Peterson.
- Reliable Stream Transport Service
School of Information Technologies TCP Congestion Control NETS3303/3603 Week 9.
Computer Networks: TCP Congestion Control 1 TCP Congestion Control Lecture material taken from “Computer Networks A Systems Approach”, Third Ed.,Peterson.
1 Spring Semester 2007, Dept. of Computer Science, Technion Internet Networking recitation #7 TCP New Reno Vs. Reno.
1 Internet Networking Spring 2002 Tutorial 10 TCP NewReno.
Computer Networks : TCP Congestion Control1 TCP Congestion Control.
1 Chapter 3 Transport Layer. 2 Chapter 3 outline 3.1 Transport-layer services 3.2 Multiplexing and demultiplexing 3.3 Connectionless transport: UDP 3.4.
1 Internet Networking Spring 2004 Tutorial 10 TCP NewReno.
Networks : TCP Congestion Control1 TCP Congestion Control.
Networks : TCP Congestion Control1 TCP Congestion Control Presented by Bob Kinicki.
Advanced Computer Networks: TCP Congestion Control 1 TCP Congestion Control Lecture material taken from “Computer Networks A Systems Approach”, Fourth.
Lect3..ppt - 09/12/04 CIS 4100 Systems Performance and Evaluation Lecture 3 by Zornitza Genova Prodanoff.
Development of network-aware operating systems Tom Dunigan
An End-to-end Approach to Increase TCP Throughput Over Ad-hoc Networks Sarah Sharafkandi and Naceur Malouch.
TFRC: TCP Friendly Rate Control using TCP Equation Based Congestion Model CS 218 W 2003 Oct 29, 2003.
CSE 461 University of Washington1 Topic How TCP implements AIMD, part 1 – “Slow start” is a component of the AI portion of AIMD Slow-start.
SELECTIVE ACKNOWLEDGEMENT (SACK) DUPLICATE SELECTIVE ACKNOWLEDGMENT
27th, Nov 2001 GLOBECOM /16 Analysis of Dynamic Behaviors of Many TCP Connections Sharing Tail-Drop / RED Routers Go Hasegawa Osaka University, Japan.
HighSpeed TCP for High Bandwidth-Delay Product Networks Raj Kettimuthu.
NET100 Development of network-aware operating systems Tom Dunigan
CS640: Introduction to Computer Networks Aditya Akella Lecture 15 TCP – III Reliability and Implementation Issues.
Computer Networking Lecture 18 – More TCP & Congestion Control.
TCP: Transmission Control Protocol Part II : Protocol Mechanisms Computer Network System Sirak Kaewjamnong Semester 1st, 2004.
1 CS 4396 Computer Networks Lab TCP – Part II. 2 Flow Control Congestion Control Retransmission Timeout TCP:
Web100/Net100 at Oak Ridge National Lab Tom Dunigan August 1, 2002.
CS640: Introduction to Computer Networks Aditya Akella Lecture 15 TCP – III Reliability and Implementation Issues.
1 Computer Networks Congestion Avoidance. 2 Recall TCP Sliding Window Operation.
Advance Computer Networks Lecture#09 & 10 Instructor: Engr. Muhammad Mateen Yaqoob.
Internet Networking recitation #11
NET100 Development of network-aware operating systems Tom Dunigan
TCP continued. Discussion – TCP Throughput TCP will most likely generate the saw tooth type of traffic. – A rough estimate is that the congestion window.
UT-BATTELLE U.S. Department of Energy Oak Ridge National Laboratory Net100: developing network-aware operating systems New (9/01) DOE-funded (Office of.
Congestion Control CS 168 Discussion Week 7. RECAP: How does TCP set rate? How much data can be outstanding? – min{RWND, CWND} RWND: do not overload the.
© Janice Regan, CMPT 128, CMPT 371 Data Communications and Networking Congestion Control 0.
TCP over Wireless PROF. MICHAEL TSAI 2016/6/3. TCP Congestion Control (TCP Tahoe) Only ACK correctly received packets Congestion Window Size: Maximum.
Sandeep Kakumanu Smita Vemulapalli Gnan
CS450 – Introduction to Networking Lecture 19 – Congestion Control (2)
Internet Networking recitation #9
Topics discussed in this section:
Chapter 3 outline 3.1 transport-layer services
Chapter 6 TCP Congestion Control
TCP Vegas: New Techniques for Congestion Detection and Avoidance
Limited Transmit for TCP
Chapter 3 outline 3.1 Transport-layer services
Transport Protocols over Circuits/VCs
End-to-End Monitoring and
Flow and Congestion Control
Lecture 19 – TCP Performance
ECE 599: Multimedia Networking Thinh Nguyen
So far, On the networking side, we looked at mechanisms to links hosts using direct linked networks and then forming a network of these networks. We introduced.
Brian L. Tierney, Dan Gunter
CS640: Introduction to Computer Networks
Internet Networking recitation #10
CS4470 Computer Networking Protocols
TCP Congestion Control
TCP Overview.
Computer Science Division
Transport Layer: Congestion Control
Chapter 3 outline 3.1 Transport-layer services
TCP flow and congestion control
Anant Mudambi, U. Virginia
TCP: Transmission Control Protocol Part II : Protocol Mechanisms
Presentation transcript:

Using NetLogger and Web100 for TCP analysis Brian L. Tierney Data Intensive Distributed Computing Group Lawrence Berkeley National Laboratory

The Problem The Problem: TCP throughput on very high-speed networks is often disappointing. Why is this? What is the cause? Using tuned TCP buffers, txqueuelen, and see no loss, but performance is still poor. Why!? Want to test a modification to TCP (eg.: HS-TCP, Fast TCP,etc) What are the effects of this modification? The Solution Instrumented TCP and analysis tools

Web100 + NetLogger Web100 (PSC + NCAR) provides Ability to instrument TCP stack in detail NetLogger (LBNL) provides Ability to correlate data from varies sources based on time Easy way to collect data from multiple clients/servers reliably Visualization and analysis tools

Important Web100 Variables for understanding TCP TCP throughput directly related to the Congestion Window size (CWND) The following may restrict/reduce CWND CongestionSignals (includes Retransmits, FastRetransmits, & ECN) MaxRwinRcvd: receiver advertised maximum SendStall: Interface queue is full (txqueuelen) X_OtherReductionsCV: TCP Congestion Window Validation (RFC2861). Reduce CWND when the actual window is smaller than CWND for more than 1 RTT X_OtherReductionsCM: Linux “CWND Moderation” (explained below) These variables indicate if the throughput is limited by the sender, the receiver, or the network SndLimTimeRwin SndLimTimeCwnd SndLimTimeSender

Net100 pyWAD WAD = Work Around Daemon pyWAD: python version implemented by Jason Lee, LBNL Originally conceived as a tuning daemon E.g: auto-tune TCP buffer size, etc. Can also be used for transparent instrumentation, and can generate derived events Sample Configuration file [monitor iperf_client] src_addr: 0.0.0.0 # all source addresses src_port: 0 # any source port dst_addr: 0.0.0.0 # any destination address dst_port: 5005 # all traffic on port 5555 [NetLogger] web100.CongestionSignals: CongestionSignals web100.SendStall: SendStall web100.CurCwnd: CurCwnd web100.SmoothedRTT: SmoothedRTT web100.OtherReductions: OtherReductions AveBW1: (DataBytesOut*8)/(SndLimTimeRwin + SndLimTimeCwnd + SndLimTimeSender) [PyWAD] outputdest: file:///tmp/iperf.test.2.log polltime: 0.5

“Normal” Plot: Standard TCP

Network speed = Measured UDP throughput SC02 Test Environment ANL test host 1.13 GHz NIKHEF test host 2.4 GHz LBL test host 1.4 GHz 900 Mbps 900 Mbps 780 Mbps NERSC test host 2 x 1 Ghz SC02 test host 2 x 1.4 GHz 580 Mbps Network speed = Measured UDP throughput

With Net100 Mods: HS-TCP + IFQ Amsterdam to SC02

Uneven Parallel Streams Amsterdam to LBNL Note variation of smoothedRTT varies on slow stream

OtherReductions reduce CWND Amsterdam to SC02 HS-TCP turned on

Coloration of Sack and OtherReductionsCM CWND drops SACKs OtherReductionsCM

Linux OtherReductionsCM Code /* CWND moderation, preventing bursts due to too big ACKs in dubious situations. */ static __inline__ void tcp_moderate_cwnd(struct tcp_opt *tp) { tp->snd_cwnd = min(tp->snd_cwnd, tcp_packets_in_flight(tp)+tcp_max_burst(tp)); tp->snd_cwnd_stamp = tcp_time_stamp; } /* Slow start with delack produces 3 packets of burst */ static __inline__ __u32 tcp_max_burst(struct tcp_opt *tp) { return 3; } /* This determines how many packets are "in the network" to the best of our knowledge. Read this equation as: * "Packets sent once on transmission queue" MINUS * "Packets left network, but not honestly ACKed yet" PLUS * "Packets fast retransmitted" */ static __inline__ unsigned int tcp_packets_in_flight(struct tcp_opt *tp) { return tp->packets_out - tp->left_out + tp->retrans_out;

Linux TCP Bug Path = Amsterdam to LBL This happens when CWND gets too large

Conclusions and Recommendations Web100 + NetLogger provide a very useful method for analyzing Linux TCP behavior Parallel streams may be a bad idea with well tuned streams Personal Recommendation: All Linux-based TCP testing be based on the Web100 kernel, and always run pyWAD to collect TCP instrumentation data during all tests This will can always help answer the question: “Why did that happen?”

For More Information Web100: http://www.web100.org/ NetLogger: http://www-didc.lbl.gov/NetLogger/ pyWAD: http://www-didc.lbl.gov/net100/pyWAD.html Email: BLTierney@LBL.GOV

Extra Slides

Summary Results Things to note: TCP was typically 5 times slower than UDP Parallel streams VERY uneven on paths 1 and 2 Parallel streams slower than single stream on path 1 SendStalls were only seen on paths 1 and 2, so net100 IFQ setting will only effect these paths Floyd High-Speed TCP helped on paths 3 and 4 Large standard deviation on all measurements

SendStalls Reducing CWND Amsterdam to SC02; HS-TCP

Bursty Sender Oakland to SC02 Send bursts due to large txqueuelen on send host

Uneven Parallel Streams Amsterdam to SC02 Note variation of smoothedRTT varies on different streams

Zoom on Slow Start ANL to SC02

Zoom on Parallel Streams LBL to SC02