tcp congestion avoidance
play

TCP Congestion Avoidance Joshua Gancher November 10, 2016 Joshua - PowerPoint PPT Presentation

TCP Basics The Problem: Congestion Collapse The Solution More Problems TCP Congestion Avoidance Joshua Gancher November 10, 2016 Joshua Gancher TCP Congestion Avoidance TCP Basics The Problem: Congestion Collapse The Solution More


  1. TCP Basics The Problem: Congestion Collapse The Solution More Problems TCP Congestion Avoidance Joshua Gancher November 10, 2016 Joshua Gancher TCP Congestion Avoidance

  2. TCP Basics The Problem: Congestion Collapse The Solution More Problems A little history ◮ Late 1950’s: SAGE radar station Joshua Gancher TCP Congestion Avoidance

  3. TCP Basics The Problem: Congestion Collapse The Solution More Problems A little history ◮ Late 1950’s: SAGE radar station ◮ 1961: Leonard Kleinrock – queueing theory = ⇒ packet switching Joshua Gancher TCP Congestion Avoidance

  4. TCP Basics The Problem: Congestion Collapse The Solution More Problems A little history ◮ Late 1950’s: SAGE radar station ◮ 1961: Leonard Kleinrock – queueing theory = ⇒ packet switching ◮ 1964: Dartmouth Time Sharing System Joshua Gancher TCP Congestion Avoidance

  5. TCP Basics The Problem: Congestion Collapse The Solution More Problems A little history ◮ Late 1950’s: SAGE radar station ◮ 1961: Leonard Kleinrock – queueing theory = ⇒ packet switching ◮ 1964: Dartmouth Time Sharing System ◮ 1969: Beginning of ARPANET – UCLA, SRI, UCSB, Utah ◮ Initially over NCP ”We typed the L and we asked on the phone, ”Do you see the L?” ”Yes, we see the L,” came the response. ”We typed the O, and we asked, ”Do you see the O.” ”Yes, we see the O.” ”Then we typed the G, and the system crashed... Yet a revolution had begun...” Kleinrock, at UCLA Joshua Gancher TCP Congestion Avoidance

  6. TCP Basics The Problem: Congestion Collapse The Solution More Problems TCP in One Slide ◮ 1974: RFC 675 Sender Receiver ◮ (coined the term Internet) 1:100 ACK 100 101:200 101:200 ACK 150 151:250 ( wsize = 100; rate = wsize / RTT ) Joshua Gancher TCP Congestion Avoidance

  7. TCP Basics The Problem: Congestion Collapse The Solution More Problems TCP in One Slide ◮ 1974: RFC 675 Sender Receiver ◮ (coined the term Internet) 1:100 ◮ All data carries a sequence ACK 100 number 101:200 101:200 ACK 150 151:250 ( wsize = 100; rate = wsize / RTT ) Joshua Gancher TCP Congestion Avoidance

  8. TCP Basics The Problem: Congestion Collapse The Solution More Problems TCP in One Slide ◮ 1974: RFC 675 Sender Receiver ◮ (coined the term Internet) 1:100 ◮ All data carries a sequence ACK 100 number 101:200 ◮ Receiver sends back 101:200 cumulative acknowledgement (ACKs) ACK 150 151:250 ( wsize = 100; rate = wsize / RTT ) Joshua Gancher TCP Congestion Avoidance

  9. TCP Basics The Problem: Congestion Collapse The Solution More Problems TCP in One Slide ◮ 1974: RFC 675 Sender Receiver ◮ (coined the term Internet) 1:100 ◮ All data carries a sequence ACK 100 number 101:200 ◮ Receiver sends back 101:200 cumulative acknowledgement (ACKs) ACK 150 ◮ If no ACK, retransmit 151:250 from last ACK ( wsize = 100; rate = wsize / RTT ) Joshua Gancher TCP Congestion Avoidance

  10. TCP Basics The Problem: Congestion Collapse The Solution More Problems TCP in One Slide ◮ 1974: RFC 675 Sender Receiver ◮ (coined the term Internet) 1:100 ◮ All data carries a sequence ACK 100 number 101:200 ◮ Receiver sends back 101:200 cumulative acknowledgement (ACKs) ACK 150 ◮ If no ACK, retransmit 151:250 from last ACK ◮ Receiver advertises window size in header ( wsize = 100; rate = wsize / RTT ) Joshua Gancher TCP Congestion Avoidance

  11. TCP Basics The Problem: Congestion Collapse The Solution More Problems TCP Sending Behavior Repeat: 1. Send packet 2. Wait for ack 3. If no ack within timeout, retransmit until acknowledged Joshua Gancher TCP Congestion Avoidance

  12. TCP Basics The Problem: Congestion Collapse The Solution More Problems Bottleneck Buffers A F B D E G C H Joshua Gancher TCP Congestion Avoidance

  13. TCP Basics The Problem: Congestion Collapse The Solution More Problems Bottleneck Buffers A F B D E G C H ◮ F,G,H advertise large window Joshua Gancher TCP Congestion Avoidance

  14. TCP Basics The Problem: Congestion Collapse The Solution More Problems Bottleneck Buffers A F B D E G C H ◮ F,G,H advertise large window ◮ A,B,C send large window Joshua Gancher TCP Congestion Avoidance

  15. TCP Basics The Problem: Congestion Collapse The Solution More Problems Bottleneck Buffers A F B D E G C H ◮ F,G,H advertise large window ◮ A,B,C send large window ◮ E’s buffer reaches capacity Joshua Gancher TCP Congestion Avoidance

  16. TCP Basics The Problem: Congestion Collapse The Solution More Problems Bottleneck Buffers A F B D E G C H ◮ F,G,H advertise large window ◮ A,B,C send large window ◮ E’s buffer reaches capacity = ⇒ A,B,C all must retransmit lost packets, after timeout Joshua Gancher TCP Congestion Avoidance

  17. TCP Basics The Problem: Congestion Collapse The Solution More Problems Bottleneck Buffers A F B D E G C H ◮ F,G,H advertise large window ◮ A,B,C send large window ◮ E’s buffer reaches capacity = ⇒ A,B,C all must retransmit lost packets, after timeout What if timeout range is smaller than transmit time? Joshua Gancher TCP Congestion Avoidance

  18. TCP Basics The Problem: Congestion Collapse The Solution More Problems Congestion Collapse 1986: NSFNET dropped from 32 Kb/s to 40 b/s [Hosts] will begin to introduce more and more copies of the same datagrams into the net. The network is now in serious trouble... Hosts are sending each packet several times, and eventually some copy of each packet arrives at its destination. This is congestion collapse. – RFC 896 Joshua Gancher TCP Congestion Avoidance

  19. TCP Basics The Problem: Congestion Collapse The Solution More Problems Optimistic Case / Worst Case ◮ Low demand on network ◮ No major bottleneck ◮ Little packet loss Joshua Gancher TCP Congestion Avoidance

  20. TCP Basics The Problem: Congestion Collapse The Solution More Problems Optimistic Case / Worst Case ◮ Low demand on network ◮ No major bottleneck ◮ Little packet loss ◮ Low load stable state ◮ Low round trip time Joshua Gancher TCP Congestion Avoidance

  21. TCP Basics The Problem: Congestion Collapse The Solution More Problems Optimistic Case / Worst Case ◮ Low demand on ◮ High demand on network network ◮ No major bottleneck ◮ Bottleneck ◮ Little packet loss ◮ High packet loss ◮ Low load stable state ◮ Low round trip time Joshua Gancher TCP Congestion Avoidance

  22. TCP Basics The Problem: Congestion Collapse The Solution More Problems Optimistic Case / Worst Case ◮ Low demand on ◮ High demand on network network ◮ No major bottleneck ◮ Bottleneck ◮ Little packet loss ◮ High packet loss ◮ Low load stable state ◮ High load stable state ◮ Low round trip time ◮ High round trip time Joshua Gancher TCP Congestion Avoidance

  23. TCP Basics Slow Start The Problem: Congestion Collapse Round-Trip Timing The Solution Window Resizing More Problems ◮ From Berkeley; now at UCLA ◮ Major contributions to TCP/IP ◮ Member of the Internet Hall of Fame Joshua Gancher TCP Congestion Avoidance

  24. TCP Basics Slow Start The Problem: Congestion Collapse Round-Trip Timing The Solution Window Resizing More Problems Conservation of Packets Conservation Under stable conditions, new packets enter the stream only when old packets leave. Joshua Gancher TCP Congestion Avoidance

  25. TCP Basics Slow Start The Problem: Congestion Collapse Round-Trip Timing The Solution Window Resizing More Problems Conservation of Packets Conservation Under stable conditions, new packets enter the stream only when old packets leave. Can be violated by: ◮ The connection doesn’t stabilize ◮ A new packet enters before an old packet is received ◮ In-transit packet loss Joshua Gancher TCP Congestion Avoidance

  26. TCP Basics Slow Start The Problem: Congestion Collapse Round-Trip Timing The Solution Window Resizing More Problems Stability Problem 1: Stability Joshua Gancher TCP Congestion Avoidance

  27. TCP Basics Slow Start The Problem: Congestion Collapse Round-Trip Timing The Solution Window Resizing More Problems Self-Clocking TCP Joshua Gancher TCP Congestion Avoidance

  28. TCP Basics Slow Start The Problem: Congestion Collapse Round-Trip Timing The Solution Window Resizing More Problems Slow Start Congestion Windows Initialize: cwnd := 1 On ack: cwnd++ On packet loss: set cwnd := 1 On send: send min(cwnd, receiver’s window size) Joshua Gancher TCP Congestion Avoidance

  29. TCP Basics Slow Start The Problem: Congestion Collapse Round-Trip Timing The Solution Window Resizing More Problems Slow Start Congestion Windows Initialize: cwnd := 1 On ack: cwnd++ On packet loss: set cwnd := 1 On send: send min(cwnd, receiver’s window size) ◮ Exponential acceleration to receiver’s window size ( R log W time to reach window size of W ) ◮ Reset back to 1 on failure (will be amended) Joshua Gancher TCP Congestion Avoidance

  30. TCP Basics Slow Start The Problem: Congestion Collapse Round-Trip Timing The Solution Window Resizing More Problems Execution with Slow Start Joshua Gancher TCP Congestion Avoidance

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend