Lecture - 12 - Chapter 3 - 03 Oct 2024
Lecture - 12 - Chapter 3 - 03 Oct 2024
Lecture 12
Chapter 3
window size
Acknowledgements: N
User types‘C’
Seq=42, ACK=79, data = ‘C’
host ACKs receipt
of‘C’, echoes back ‘C’
Seq=79, ACK=43, data = ‘C’
host ACKs receipt
of echoed ‘C’
Seq=43, ACK=80
RTT (milliseconds)
300
250
RTT (milliseconds)
200
sampleRTT
150
EstimatedRTT
100
1 8 15 22 29 36 43 50 57 64 71 78 85 92 99 106
time (seconnds)
time Estimated RTT
SampleRTT
Transport Layer: 3-5
(seconds)
TCP round trip time, timeout
timeout interval: EstimatedRTT plus “safety margin”
• large variation in EstimatedRTT: want a larger safety margin
TimeoutInterval = EstimatedRTT + 4*DevRTT
* Check out the online interactive exercises for more examples: http://gaia.cs.umass.edu/kurose_ross/interactive/
Transport Layer: 3-6
Doubling the Timeout Interval
This modification provides a limited form of congestion
control
SendBase=92
Seq=92, 8 bytes of data Seq=92, 8 bytes of data
timeout
ACK=100
X
ACK=100
ACK=120
SendBase=120
timeout
lost, so don’t wait for timeout
- TCP (error / loss recovery mechanism) is best categorized as a hybrid of GBN & SR
- Please refer to Page 246 of the Course Textbook for further details.
Chapter 3: roadmap
Transport-layer services
Multiplexing and demultiplexing
Connectionless transport: UDP
Principles of reliable data transfer
Connection-oriented transport: TCP
• segment structure
• reliable data transfer
• flow control
• connection management
Principles of congestion control
TCP congestion control
Sender
Sender
Feedback:
“Not much
Feedback:
getting through”
“Receiver
overflowing”
Receiver
Receiver
TCP flow control
application
Q: What happens if network Application removing
process
from sender
from sender
receive window
flow control: # bytes
receiver willing to accept IP
code
from sender
(Since TCP is not permitted to overflow the allocated buffer, we must have)
- RcvBuffer is the size of the buffer allocated at the receiver for this connection,
- LastByteRcvd is the number of the last byte in the data stream received from the
network and placed in the receive buffer, &
- LastByteRead is the number of the last byte in the data stream read by the
application process from the receive buffer), thus
Midterm 1 Solution
was discussed
Quiz # 3 (Chapter – 3)
- On: Tuesday, 15th October, 2024 (During the lecture)