1
CS 168, Spring 2026 @ UC Berkeley
Slides credit: Sylvia Ratnasamy, Rob Shakir, Peyrin Kao
Links
Lecture 3 (Intro 3)
B1
Router
A1
A2
A3
A4
B2
B3
Bandwidth and Propagation Delay
Lecture 3, CS 168, Spring 2026
Links
Brief Preview of the Semester
Properties of Links
A link connects two devices.
Properties of a link:
B
A
Capacity = Delay × Bandwidth
Bandwidth
Propagation Delay
Measuring Packet Delay with Timing Diagrams
Suppose we have a link with:
How long does it take to send a 100-byte (800-bit) packet?
Let's draw a timing diagram to help.
Note: We measure in�bits per second, not bytes!
Measuring Packet Delay with Timing Diagrams
B
A
Bandwidth: 1,000,000 bps
Delay: 0.001s
t = 0s
t = 0.000001s
Time to transmit each bit:
1/1,000,000s
t = 0.001001s
Each bit arrives�0.001s later.
t = 0.000002s
t = 0.001002s
t = 0.000003s
t = 0.001003s
t = 0.000800s
t = 0.001800s
Time to transmit 800th bit:
800/1,000,000s
Last bit arrives 1.8 ms later.
800-bit packet
Measuring Packet Delay with Timing Diagrams
Packet Delay = Transmission Delay + Propagation Delay
Packet Delay = (Packet Size / Bandwidth) + Propagation Delay
B
A
Bandwidth: 1,000,000 bps
Delay: 0.001s
t = 0s
t = 0.000001s
t = 0.001001s
t = 0.000800s
t = 0.001800s
800-bit packet
Transmission Delay
Propagation Delay
Link Tradeoffs
Which link is better? It depends.
10-byte packet: Link 2 is better.
10,000-byte packet: Link 1 is better.
Pipe Diagrams
Lecture 3, CS 168, Spring 2026
Links
Brief Preview of the Semester
Timing Diagrams and Pipe Diagrams
B
A
Bandwidth: 5 bps
Delay: 7s
t = 0s
t = 1s
5 bits transmitted per second.
t = 8s
Each bit arrives�7s later.
t = 2s
t = 9s
t = 3s
t = 10s
t = 10s
t = 17s
10s to transmit 50 bits.
Last bit arrives 17s later.
50-bit packet
Timing Diagrams and Pipe Diagrams
The pipe diagram is an alternate view of the link.
B
A
Bandwidth: 5 bps
Delay: 7s
t = 0s
t = 1s
t = 2s
t = 3s
t = 4s
t = 5s
t = 6s
t = 7s
t = 8s
t = 9s
t = 10s
t = 11s
t = 12s
t = 13s
t = 14s
t = 15s
t = 16s
t = 17s
(This diagram needs to be viewed with animation to make sense.)
Pipe Diagrams
Pipe diagram shows the bits on the link at a frozen moment in time.
B
A
Bandwidth: 5 bps
Delay: 7s
Bandwidth
Propagation Delay
Pipe Diagrams
Shorter propagation delay: Pipe length is shorter.
B
A
Bandwidth: 5 bps
Delay: 3s
t = 0s
t = 1s
t = 2s
t = 3s
t = 4s
t = 5s
t = 6s
t = 7s
t = 8s
t = 9s
t = 10s
t = 11s
t = 12s
t = 13s
(This diagram needs to be viewed with animation to make sense.)
Pipe Diagrams
Higher bandwidth: Pipe height is taller.
B
A
Bandwidth: 10 bps
Delay: 3s
t = 0s
t = 1s
(This diagram needs to be viewed with animation to make sense.)
t = 2s
t = 3s
t = 4s
t = 5s
t = 6s
t = 7s
t = 8s
Pipe Diagrams – Transmission Delay
The width of the packet in the pipe represents the transmission delay.
B
A
Bandwidth: 5 bps
Delay: 7s
(This diagram needs to be viewed with animation to make sense.)
t = 0s
t = 1s
t = 2s
t = 3s
t = 4s
t = 5s
t = 6s
t = 7s
t = 8s
t = 9s
t = 10s
t = 11s
Pipe Diagrams – Transmission Delay
The width of the packet in the pipe represents the transmission delay.
B
A
Bandwidth: 10 bps
Delay: 7s
(This diagram needs to be viewed with animation to make sense.)
t = 0s
t = 1s
t = 2s
t = 3s
t = 4s
t = 5s
t = 6s
t = 7s
t = 8s
t = 9s
Pipe Diagrams – Transmission Delay
The width of the packet in the pipe represents the transmission delay.
Transmission Delay
Transmission Delay
Overloaded Links
Lecture 3, CS 168, Spring 2026
Links
Brief Preview of the Semester
Packet Switching at Routers
Recall: Routers receive packets, and forward them toward their destinations.
B1
Router
A1
A2
A3
A4
B2
B3
Packet Switching at Routers
Recall: Routers receive packets, and forward them toward their destinations.
Router
A1
A2
A3
A4
B2
B3
B1
Router
A2
A3
A4
B2
B3
B1
A1
Router
B2
A3
A4
B3
B1
A1
A2
Router
A3
A4
B3
B1
A1
A2
B2
Router
B3
A4
B1
A1
A2
B2
A3
Router
A4
B1
A1
A2
B2
A3
B3
Router
B1
A1
A2
B2
A3
B3
A4
Transient Overload
What happens if two packets arrive at the router simultaneously?
Router
B1
A1
A2
A3
A4
B2
B3
Queued:
Transient Overload
What happens if two packets arrive at the router simultaneously?
Router
A1
Queued:
B1
A2
A3
A4
B2
B3
Transient Overload
What happens if two packets arrive at the router simultaneously?
Router
A1
B1
Queued:
B3
A3
A4
A2
B2
Transient Overload
What happens if two packets arrive at the router simultaneously?
Router
A3
A4
B3
Queued:
B2
A1
B1
A2
Transient Overload
What happens if two packets arrive at the router simultaneously?
Router
A3
A4
B3
A1
B1
A2
B2
Queued:
Transient Overload
What happens if two packets arrive at the router simultaneously?
Router
B3
A4
A1
B1
A2
B2
A3
Queued:
Router
A4
A1
B1
A2
B2
A3
B3
Queued:
Router
A1
B1
A2
B2
A3
B3
A4
Queued:
Packet Switching at Routers
Persistent overload: Not enough capacity to handle the incoming packets!
How do we solve persistent overload?
Router
B1
A1
A2
A3
A4
A5
A6
A7
B2
B3
B4
B5
B6
B7
Uh oh...
Packet Queuing and Life of a Packet
Queues introduce extra delay.
Life of a packet:
Brief Preview of the Semester
Lecture 3, CS 168, Spring 2026
Links
Brief Preview of the Semester
Brief Preview of the Semester
Lectures 1–3: Networking Principles.
Lectures 4–9: Routing (Layer 3).
Brief Preview of the Semester
Lectures 10–13: Reliability (Layer 4).
Lectures 14–15: Applications (Layer 7).
Lectures 16–17: End-to-End Picture.
Brief Preview of the Semester
Lectures 18–21: Datacenters.
Lectures 22–23: Beyond Client-Server.
Lectures 24–25: Wireless.
Summary: Links
Transmission Delay
Bandwidth
Propagation Delay
Capacity = Delay × Bandwidth
Transmission Delay
Bandwidth: 1,000,000 bps
Delay: 0.001s
t = 0s
0.000001s
0.001001s
0.000800s
0.001800s
800-bit packet
Transmission Delay
Propagation Delay