1 / 15

Understanding TCP Sequence Numbers and Congestion Control Mechanisms

This discussion explores the fundamentals of TCP (Transmission Control Protocol) sequence numbers and congestion control strategies. It elaborates on the significance of the initial sequence number in establishing a TCP connection, and how sequence numbers are essential for data integrity. Additionally, it delves into congestion control mechanisms such as slow-start and AIMD (Additive Increase Multiplicative Decrease), emphasizing the importance of the congestion window (cwnd) and how TCP mitigates network congestion while ensuring data is transmitted effectively.

plato-russo
Télécharger la présentation

Understanding TCP Sequence Numbers and Congestion Control Mechanisms

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. TCP EE122 Discussion 10/18/13

  2. TCP Sequence Numbers • Initial sequence number for the connection is not zero • Sequence number refers to the first byte in the TCP packet payload

  3. Example (from class) • Packet arrives: – Seq: 2323 – Ack: 4001 – W=3000 – [no payload] • Appropriate response? Seq: 4001, payload: 4001-8000 Seq: 2001, payload: 2001-5000 Seq: 4001, payload: 4001-5000 Seq: 5001, payload: 5001-6001 Seq: 8001, payload: 8001-9000

  4. Congestion Control [1] • Avoid overwhelming the network • cwnd – congestion window• SSTHRESH –threshold until which exponential slow-start happens • TCP is either in slow-start mode or AIMD mode

  5. Congestion Control [2] • TCP is either in slow-start mode or AIMD mode • Slow-start: for every ACK, increase cwnd by MSS • “AI”: for every window of packets being ACK-ed, increase cwnd by MSS

  6. ‘Vanilla’ TCP • Exponential slow-start till SSTHRESH • Set timer, which expires when packets are lost • At each new data ACK the timeout is RESET • On time-out, set SSTHRESH to (cwnd/2), and cwnd itself to 1 – Timeout = receiving nothing for an entire RTO • Usually a disaster!

More Related