Lec 4
Lec 4
Packet Dynamics
(Recommended reading: Chapter 1.4)
1
ACK: Slides use some material from Scott Shenker (UC Berkeley)
Previous Lecture
end-system
k
lin switch
2
Previous Lecture
l Key question driving the class discussion:
l How to share common network resources?
l Loss
l Throughput
Delay
l How long does it take to send a packet from its source to
destination?
Loss
l What fraction of the packets sent to a destination are dropped?
Throughput
l At what rate is the destination receiving data from the source?
Today
l Focus on delay
8
A network link
l Link bandwidth (Transmission capacity)
l Number of bits sent per unit time (bits/sec or bps)
l Propagation delay
l Time for one bit to move through the link (seconds)
l Bandwidth-Delay Product (BDP)
l Number of bits “in flight” at any time (sent, not received)
l BDP = bandwidth × propagation delay
Propagation delay
Examples of BDP
l Same city over a slow link:
l Bandwidth: ~100Mbps
l Propagation delay: ~0.1msec
l BDP: 10,000bits (1.25KBytes)
transmission
propagation
queuing
processing
transmission
propagation
queuing
processing
transmission
propagation
12
Transmission Delay
l Q: How long does it take to push all the bits of a packet into a
link?
13
Propagation Delay
l Q: How long does it take to move one bit from one end of a link to
the other?
14
Now lets ask a more practical question
l Q: How long does it take for a packet to travel from A to B?
15
Example: 100B packet from A to B
A B
1Mbps, 1ms
time=0
Time to transmit Time when that
one bit = 1/106s bit reaches B
100Byte packet
= 1/106+1/103s
Time to transmit
800 bits=800x1/106s
The last bit
This is exactly
reaches B at
transmission
Time (800x1/106)+1/103s
plus propogation
= 1.8ms
delays!
Example: 100B packet from A to B
1GB file in 100B packets
1Gbps, 1ms?
A B
1Mbps, 1ms
100Byte packet
107 x 100B packets
The last bit in the file The last bit The last bit
reaches B at reaches B at
Time reaches B at
(107x800x1/109)+1/103s (800x1/109)+1/103s (800x1/106)+1/103s
= 8001ms = 1.0008ms = 1.8ms
Example: Delays from my home to a google server
18
Technology Trends
l Propagation delay?
l No change
l Transmission delay?
l Getting smaller!
l Queueing delay?
l depends
l How does this affect applications?
l Content Distribution Networks (CDNs) work very hard to move data near
clients to decrease latency
19
Book Homework Problems
l Assess your understanding of the concepts covered in-class by
trying out the homework problems in the book
l For this lecture, try out homework problems R16-R19 from the
book, “Computer Networking: A Top-down Approach”
20
Next Class
l Live class on Monday
21