Professional Documents
Culture Documents
9 RDT Part3 Jan 23 24
9 RDT Part3 Jan 23 24
9 RDT Part3 Jan 23 24
Gaurav S. Kasbekar
Dept. of Electrical Engineering
IIT Bombay
1-1
Reference
These are a modified version of slides by
Kurose and Ross available at:
http://ctas.poly.asu.edu/millard/CET459/lectno/K%
20-%20R%20stuff/index.html
1-2
Reliable Data Transfer
3-4
Packet Re-ordering (contd.)
Basic Idea
upper bound the amt of time a pkt can stay in n/w
seq. no. 𝑥 not reused until sender reasonably sure
that previous packet with seq. no 𝑥 no longer in
network
Want to upper bound the amt of time a pkt can stay in
n/w
Attempt: sender stamps each pkt with current time,
other nodes drop old pkts
But nodes not necessarily synchronized in practice
Solution: routers drop packets that have travelled more
than a predetermined no. of hops
implemented using “Time to live” (TTL) field in header
3-5
Performance Analysis of Reliable
Data Transfer Protocols
Simplified model of channel between
sender and receiver
Large file transferred from sender to
receiver
infinite number of data pkts
Want
maximum throughput of any reliable data
transfer protocol (𝑅max )
throughput of Stop-and-Wait, Go-Back-N and
Selective Repeat protocols
• 𝑅𝑆𝑊 , 𝑅𝐺𝐵𝑁 , 𝑅𝑆𝑅
3-6
Model
Want 𝑅𝑆𝑊
Time divided into
intervals 𝑋1 , 𝑋2 , 𝑋3 , …
𝑋𝑖 : time spent on
transmission of pkt 𝑖
𝑅𝑆𝑊 in terms of 𝑋𝑖 :
𝐿
𝐸(𝑋𝑖 )
formal proof later
3-9
Computation of 𝐸(𝑋𝑖 )
𝑡0 :
𝐿
+ 2𝑡prop
𝑅
𝑌𝑖 : number of attempts for
successful transmission of pkt 𝑖
What kind of random var. is 𝑌𝑖 ?
geometric 1 − 𝑃𝑓
𝑋𝑖 in terms of 𝑌𝑖 :
𝑋𝑖 = 𝑡0 𝑌𝑖
𝐸 𝑌𝑖 :
1
1−𝑃𝑓
𝐸 𝑋𝑖 :
𝑡0
1−𝑃𝑓 3-10
𝑅𝑆𝑊
𝑅𝑆𝑊 :
1
𝑅(1 − 𝑃𝑓 ) 2𝑅𝑡prop
1+ 𝐿
1
𝑅max 2𝑅𝑡prop
1+
𝐿
Intuition:
Only 1 packet transmitted in interval in which 1 +
2𝑅𝑡prop
packets could have been transmitted
𝐿
Throughput depends on the quantity 2𝑅𝑡prop
product of bandwidth and RTT of channel
“Bandwidth-delay product”
3-11
Bandwidth-Delay Product
Large when one or both of 𝑅 and RTT large
E.g.:
Bandwidth One-way 2𝑅𝑡prop
distance
Wi-Fi 54 Mbps 50 m 18 bits
Satellite 45 Mbps 35,000 km 10 Mb
Cross-country 10 Gbps 4000 km 400 Mb
fiber
3-13
Generalization
Time divided into intervals 𝑋1 , 𝑋2 , 𝑋3 , …
i.i.d. random variables
3-14