1
CS 3640: Introduction to Networks and Their Applications
Fall 2018, Lecture 5: The Link Layer I – Errors and medium access Instructor: Rishab Nithyanand Teaching Assistant: Md. Kowsar Hossain
CS 3640: Introduction to Networks and Their Applications Fall 2018, - - PowerPoint PPT Presentation
CS 3640: Introduction to Networks and Their Applications Fall 2018, Lecture 5: The Link Layer I Errors and medium access Instructor: Rishab Nithyanand Teaching Assistant: Md. Kowsar Hossain 1 You should Be checking Piazza regularly
1
Fall 2018, Lecture 5: The Link Layer I – Errors and medium access Instructor: Rishab Nithyanand Teaching Assistant: Md. Kowsar Hossain
2
You should…
3
This week in class
Recap: How do we assess the performance of a packet-switched network?
Recap: What is the end-to-end transmission delay? Transmission delay: How much time for the switch/router to put all bits on the link? Source transmission delay: 8x109 b/1x109 bps = 8s Switch 1 transmission delay: 8x109 b/100x109 bps = .08s Switch 2 transmission delay: 8x109 b/.5x109 bps = 16s End-to-end transmission delay: 24.08s Switch 1 100 Gbps Switch 2 .5 Gbps
Recap: What is the end-to-end propagation delay? Propagation delay: How much time for the link to send data from one end to the other? Source -> switch 1 propagation delay: 2x103m/2x108mps = 10-5s Switch 1 -> switch 2 propagation delay: 2x103m/2x108mps = 10-5s Switch 2 -> destination propagation delay: 4x103m/2x108mps = 2x10-5s End-to-end transmission delay: 10-5 + 10-5 + 2x10-5s = 4x10-5s Switch 1 100 Gbps Switch 2 .5 Gbps 2000m 2000m 4000m
Recap: What is the end-to-end processing delay? Processing delay: How much time to check packet for errors and decide next hop? Switch 1 processing delay per packet: 1000 cycles per packet/2x109 cycles per second = .5x10-6 seconds per packet Switch 2 processing delay per packet: 1000 cycles per packet/.5x109 cycles per second = 2x10-6 seconds per packet End-to-end processing delay per packet: 2.5x10-6 seconds per packet Switch 1 100 Gbps 2 GHz Switch 2 .5 Gbps 1 GHz 2000m 2000m 4000m
Recap: What is the end-to-end (average) queueing delay? Queueing delay: How much time, on average, does data spend in buffers? Switch 1. Arrival rate: 1 Gbps Departure rate: 100 Gbps A packet comes in. Queue is empty. It gets sent out. Average queueing delay at switch 1 = 0 s Switch 1 100 Gbps Switch 2 .5 Gbps
Recap: What is the end-to-end (average) queueing delay? Queueing delay: How much time, on average, does data spend in buffers? Switch 2. Arrival rate: 1 Gbps (bottlenecked by source sending rate). Departure rate: .5 Gbps For every 2 bits coming in, 1 has to wait in the queue. First bit arrives at t0 sec. Last bit arrives at t0 + 8s (time for a 1 GB file to arrive at 1Gbps). Last bit leaves at t0 + 16s (time for a 1 GB file to leave at .5Gbps). Maximum queueing delay: 8s. Total bits: 8x109 Average queueing delay for a bit at switch 2: (0 + a + 2a + … + (8x109-1)a)/8x109 = a(.5x(8x109)x(8x109-1))/8x109 = .5x(8x109-1)a = .5x8 = 4 s. Switch 1 100 Gbps Switch 2 .5 Gbps
10
This week in class
Recap: The link layer
protocol.
Recap: The link layer
Recap: The link layer
The link layer: Error detection and correction
The link layer: Error detection and correction
The link layer: Error detection and correction
The link layer: Error detection and correction
this to fail?
The link layer: Error detection and correction
to fail?
The link layer: Error detection and correction
The link layer: Error detection and correction
bits to get a semi-unique value.
The link layer: Error detection and correction
The link layer: Error detection and correction
in x ms, I’ll resend the frame.
Time Time
The link layer: Error detection and correction
Time Time
1 2 3 1 2 3
The link layer: Medium access protocols
unintelligible data.
The link layer: Medium access protocols
fixed share (time or frequency band) in the medium.
☺) to answer.
The link layer: Medium access protocols
The link layer: The ALOHA MAC protocol (1970s)
should start within T time before or after you.
The link layer: The Slotted ALOHA MAC protocol (1970s)
period for transmissions reduces.
29
Announcement
the material we’ve covered so far.
30
What you should remember from this lecture