Routers with Small Buffers Yashar Ganjali High Performance Networking Group Stanford University

Slides:



Advertisements
Similar presentations
EE384Y: Packet Switch Architectures
Advertisements

Helping TCP Work at Gbps Cheng Jin the FAST project at Caltech
Introducing optical switching into the network
1 Understanding Buffer Size Requirements in a Router Thanks to Nick McKeown and John Lockwood for numerous slides.
Router Buffer Sizing and Reliability Challenges in Multicast Aditya Akella 02/28.
Simulating Large Networks using Fluid Flow Model Yong Liu Joint work with Francesco LoPresti, Vishal Misra Don Towsley, Yu Gu.
XCP: Congestion Control for High Bandwidth-Delay Product Network Dina Katabi, Mark Handley and Charlie Rohrs Presented by Ao-Jan Su.
Fair queueing and congestion control Jim Roberts (France Telecom) Joint work with Jordan Augé Workshop on Congestion Control Hamilton Institute, Sept 2005.
Sizing Router Buffers Guido Appenzeller Isaac Keslassy Nick McKeown Stanford University.
On Modeling Feedback Congestion Control Mechanism of TCP using Fluid Flow Approximation and Queuing Theory  Hisamatu Hiroyuki Department of Infomatics.
Volcano Routing Scheme Routing in a Highly Dynamic Environment Yashar Ganjali Stanford University Joint work with: Nick McKeown SECON 2005, Santa Clara,
Designing Networks with Little or No Buffers or Can Gulliver Survive in Lilliput? Yashar Ganjali High Performance Networking Group Stanford University.
High Performance All-Optical Networks with Small Buffers Yashar Ganjali High Performance Networking Group Stanford University
AQM for Congestion Control1 A Study of Active Queue Management for Congestion Control Victor Firoiu Marty Borden.
Buffer Sizing for Congested Internet Links Chi Yin Cheung Cs 395 Advanced Networking.
High Performance Networking with Little or No Buffers Yashar Ganjali High Performance Networking Group Stanford University
A simulation-based comparative evaluation of transport protocols for SIP Authors: M.Lulling*, J.Vaughan Department of Computer science, University college.
Internet Research Needs a Critical Perspective Towards Models –Sally Floyd –IMA Workshop, January 2004.
Network Processors and their memory Network Processor Workshop, Madrid 2004 Nick McKeown Departments of Electrical Engineering and Computer Science, Stanford.
TCP on High-Speed Networks Sangtae Ha and Injong Rhee North Carolina State University.
High Performance Networking with Little or No Buffers Yashar Ganjali on behalf of Prof. Nick McKeown High Performance Networking Group Stanford University.
Sizing Router Buffers (Summary)
Sizing Router Buffers Nick McKeown Guido Appenzeller & Isaac Keslassy SNRC Review May 27 th, 2004.
1 Minseok Kwon and Sonia Fahmy Department of Computer Sciences Purdue University {kwonm, TCP Increase/Decrease.
Modeling TCP in Small-Buffer Networks
A TCP With Guaranteed Performance in Networks with Dynamic Congestion and Random Wireless Losses Stefan Schmid, ETH Zurich Roger Wattenhofer, ETH Zurich.
The Crosspoint Queued Switch Yossi Kanizo (Technion, Israel) Joint work with Isaac Keslassy (Technion, Israel) and David Hay (Politecnico di Torino, Italy)
The Effect of Router Buffer Size on HighSpeed TCP Performance Dhiman Barman Joint work with Georgios Smaragdakis and Ibrahim Matta.
Reducing the Buffer Size in Backbone Routers Yashar Ganjali High Performance Networking Group Stanford University February 23, 2005
Isaac Keslassy (Technion) Guido Appenzeller & Nick McKeown (Stanford)
FTDCS 2003 Network Tomography based Unresponsive Flow Detection and Control Authors Ahsan Habib, Bharat Bhragava Presenter Mohamed.
The Gaussian Nature of TCP Mark Shifrin Supervisor: Supervisor: Dr. Isaac Keslassy M.Sc Seminar Faculty of Electrical Engineering.
UCB Improvements in Core-Stateless Fair Queueing (CSFQ) Ling Huang U.C. Berkeley cml.me.berkeley.edu/~hlion.
Junxian Huang 1 Feng Qian 2 Yihua Guo 1 Yuanyuan Zhou 1 Qiang Xu 1 Z. Morley Mao 1 Subhabrata Sen 2 Oliver Spatscheck 2 1 University of Michigan 2 AT&T.
Not All Microseconds are Equal: Fine-Grained Per-Flow Measurements with Reference Latency Interpolation Myungjin Lee †, Nick Duffield‡, Ramana Rao Kompella†
Path selection Packet scheduling and multipath Sebastian Siikavirta and Antti aalto.
Buffer requirements for TCP: queueing theory & synchronization analysis Gaurav RainaDamon Wischik CambridgeUCL.
Open Issues in Buffer Sizing Amogh Dhamdhere Constantine Dovrolis College of Computing Georgia Tech.
Buffer requirements for TCP Damon Wischik DARPA grant W911NF
TCP Enhancement for Random Loss Jiang Wu Computer Science Lakehead University.
CS144 An Introduction to Computer Networks
Congestion models for bursty TCP traffic Damon Wischik + Mark Handley University College London DARPA grant W911NF
1 - CS7701 – Fall 2004 Review of: Sizing Router Buffers Paper by: – Guido Appenzeller (Stanford) – Isaac Keslassy (Stanford) – Nick McKeown (Stanford)
Sizing Router Buffers How much packet buffers does a router need? C Router Source Destination 2T The current “Rule of Thumb” A router needs a buffer size:
Router Buffer Sizes in the WAN draft-ksubram-lmap-router-buffer-sizes- 00 Kamala Subramaniam Microsoft IETF 91 Honolulu Hawaii.
TFRC: TCP Friendly Rate Control using TCP Equation Based Congestion Model CS 218 W 2003 Oct 29, 2003.
Understanding the Performance of TCP Pacing Amit Aggarwal, Stefan Savage, Thomas Anderson Department of Computer Science and Engineering University of.
Univ. of TehranComputer Network1 Computer Networks Computer Networks (Graduate level) University of Tehran Dept. of EE and Computer Engineering By: Dr.
1 TCP-BFA: Buffer Fill Avoidance September 1998 Amr A. Awadallah Chetan Rai Computer Systems.
High-speed TCP  FAST TCP: motivation, architecture, algorithms, performance (by Cheng Jin, David X. Wei and Steven H. Low)  Modifying TCP's Congestion.
Analysis of Buffer Size in Core Routers by Arthur Dick Supervisor Anirban Mahanti.
Hybrid Modeling of TCP Congestion Control João P. Hespanha, Stephan Bohacek, Katia Obraczka, Junsoo Lee University of Southern California.
CS640: Introduction to Computer Networks Aditya Akella Lecture 15 TCP – III Reliability and Implementation Issues.
Winter 2008CS244a Handout 81 CS244a: An Introduction to Computer Networks Handout 8: Congestion Avoidance and Active Queue Management Nick McKeown Professor.
Analysis of RED Goal: impact of RED on loss and delay of bursty (TCP) and less bursty or smooth (UDP) traffic RED eliminates loss bias against bursty traffic.
We used ns-2 network simulator [5] to evaluate RED-DT and compare its performance to RED [1], FRED [2], LQD [3], and CHOKe [4]. All simulation scenarios.
Achievable Service Differentiation with Token Bucket Marking for TCP S. Sahu, D.Towsley University of Massachusetts P. Nain INRIA C. Diot Sprint Labs V.
Queueing theory, control theory, & buffer sizing Damon Wischik DARPA grant W911NF
Buffers: How we fell in love with them, and why we need a divorce Hot Interconnects, Stanford 2004 Nick McKeown High Performance Networking Group Stanford.
Networks with Very Small Buffers Yashar Ganjali, Guido Appenzeller, High Performance Networking Group Prof. Ashish Goel, Prof. Tim Roughgarden, Prof. Nick.
Sachin Katti, CS244 Slides courtesy: Nick McKeown
Understanding Buffer Size Requirements in a Router
Queue Dynamics with Window Flow Control
Open Issues in Router Buffer Sizing
Columbia University in the city of New York
Amogh Dhamdhere, Hao Jiang and Constantinos Dovrolis
FAST TCP : From Theory to Experiments
The University of Adelaide, School of Computer Science
Project-2 (20%) – DiffServ and TCP Congestion Control
Routers with Very Small Buffers
Presentation transcript:

Routers with Small Buffers Yashar Ganjali High Performance Networking Group Stanford University Joint work with: Guido Appenzeller, Mihaela Enachescu, Ashish Goel, Tim Roughgarden, Nick McKeown Special thanks to: Level 3 Communications NANOG, October 25, 2005

October 2005 Routers with Small Buffers 2 The Story (1)Assume: Large number of desynchronized flows; 100% utilization (2)Assume: Large number of flows; <100% utilization 1,000,000 10, # packets at 10Gb/s Sawtooth Peak-to-trough Smoothing of many sawtooths Non-bursty arrivals Intuition & Proofs Simulated Single TCP Flow Simulations, Experiments Simulated Many TCP Flows Evidence

October 2005 Routers with Small Buffers 3 Universally applied rule-of-thumb:  A router needs a buffer size: 2T is the two-way propagation delay (or just 250ms) C is capacity of bottleneck link Context  Mandated in backbone and edge routers.  Appears in RFPs and IETF architectural guidelines.  Usually referenced to Villamizar and Song: “High Performance TCP in ANSNET”, CCR,  Already known by inventors of TCP [Van Jacobson, 1988]  Has major consequences for router design C Router Source Destination 2T Backbone Router Buffers

October 2005 Routers with Small Buffers 4 Rule for adjusting W  If an ACK is received:W ← W+1/W  If a packet is lost:W ← W/2 Single TCP Flow Only W packets may be outstanding

October 2005 Routers with Small Buffers 5 Rule for adjusting W  If an ACK is received:W ← W+1/W  If a packet is lost:W ← W/2 Single TCP Flow Only W packets may be outstanding SourceDest t Window size

October 2005 Routers with Small Buffers 6 Time evolution of a single TCP flow through a router. Buffer is < 2T*C Time Evolution of a Single TCP Flow Time evolution of a single TCP flow through a router. Buffer is 2T*C

October 2005 Routers with Small Buffers 7 Synchronized Flows Aggregate window has same dynamics Therefore buffer occupancy has same dynamics Rule-of-thumb still holds. t

October 2005 Routers with Small Buffers 8 Probability Distribution B 0 Buffer Size Many TCP Flows

October 2005 Routers with Small Buffers 9 Simulation Required Buffer Size

October 2005 Routers with Small Buffers 10 Real Network Experiments Stanford University dorm traffic Network Lab (Cisco routers) at University of Wisconsin Internet2 Operational Internet backbone

October 2005 Routers with Small Buffers 11 Internet Backbone Experiment Buffer sizes 190ms, 10ms, 5ms, 2.5 and 1ms Load balancing High link utilization Long duration (about two weeks) Drops, utilization data collected every 30 seconds Test flows

October 2005 Routers with Small Buffers 12 Packet Drops vs. Link Load Buffer size = 190ms, 10ms, 5ms MAX

October 2005 Routers with Small Buffers 13 Packet Drops vs. Link Load Buffer size = 1ms

October 2005 Routers with Small Buffers 14 Relative Link Utilization Utilization of the link with 1ms buffer / Utilization of the link with 190ms buffer

October 2005 Routers with Small Buffers 15 Relative Utilization (Cont’d)

October 2005 Routers with Small Buffers 16 Theory vs. Practice M/D/1 Theory (benign conditions) Practice Typical OC192 router linecard buffers over 1,000,000 packets Can we make traffic look “Poisson-enough” when it arrives to the routers…? Poisson B D Loss independent of link rate, RTT, number of flows, etc. 5 orders of magnitude difference! 5 orders of magnitude difference!

October 2005 Routers with Small Buffers 17 Assume:  Buffer size >  Distance between consecutive packets of a single flow S > Limited injection rate  Flows are not synchronized; and  Start times picked randomly and independently We can prove that the packet drop probability is very low. Paced Injections Similar results from Cambridge/UCL, UMass and Stanford See papers in: ACM Computer Communications Review, July 2005 Similar results from Cambridge/UCL, UMass and Stanford See papers in: ACM Computer Communications Review, July 2005

October 2005 Routers with Small Buffers 18 O(log W) Buffers Assumptions:  Internet core is over-provisioned Example: Load < 80%  There is spacing between packets of the same flow: Natural: Slow access links Artificial: Paced TCP Result: Traffic is very smooth, and loss rate is very low, independent of RTT, and number of flows. With a buffer size of just packets we can gain high throughput.

October 2005 Routers with Small Buffers 19 Leaky Bucket – Paced vs. Reno Bucket drains with a constant rate. Load is 90% for both cases.

October 2005 Routers with Small Buffers 20 TCP Reno TCP Reno sends packets in a burst  High drop rate

October 2005 Routers with Small Buffers 21 Paced TCP Spacing packets  Much lower drop rate

October 2005 Routers with Small Buffers 22 O(log W) Buffers Regular TCP TCP With Pacing TCP With Pacing

October 2005 Routers with Small Buffers 23 O(log W) Buffers

October 2005 Routers with Small Buffers 24 Ideal Experiment Highly loaded link, with real/realistic traffic Precisely controlled router buffers Packet traces with precise timestamps Work in progress: Sprint, Verizion, Telcordia, Lucent, … Packet Trace Monitor Packet Trace Monitor

October 2005 Routers with Small Buffers 25 Conclusion and Future Work Theory:  Reducing buffer sizes by a factor of sqrt(N) does not affect the network performance.  Reducing the buffer sizes to O(logW) does not affect the network performance if: The network is over provisioned; and We use Paced TCP; or Have slow access links Experimental Validation:  Thousands of ns2 simulations  Stanford dorm, University of Wisconsin Testbed, Internet2, Level 3 Communications, …  Ongoing work and need your help

October 2005 Routers with Small Buffers 26 Thanks! More Info?

October 2005 Routers with Small Buffers 27 O(log W) Buffers With a large ratio between core and access link bandwidth Bottleneck Bandwidth = 1Gb/s