Download Chapter 1: Roadmap - Assignment 1 | CS 3251 and more Assignments Computer Systems Networking and Telecommunications in PDF only on Docsity!
CS 3251 - Computer Networks I
Tech
CS 3251- Computer
Networks I:
Intro (contd)
Professor Patrick Traynor
Lecture 02
CS 3251 - Computer Networks I
Tech
Announcements
Homework 1 posted
‣ (^) Due Thursday, January 22nd ‣ (^) Get started early - there is a good deal to be done.
Today’s office hours cancelled
CS 3251 - Computer Networks I
Tech
What Took You So Long?
The time it takes you to get to class depends on a lot of
different factors.
‣ (^) How congested were the sidewalks? Any construction? ‣ (^) Was there a line outside the building? The classroom? ‣ (^) Were you carrying more things than usual?
Network traffic is similarly influenced.
‣ (^) After all, traffic is not transmitted instantaneously. ‣ (^) Why?
CS 3251 - Computer Networks I
Tech
How do loss and delay occur? packets queue in router buffers
- packet arrival rate to link exceeds output link capacity
- packets queue, wait for turn
A
B
CS 3251 - Computer Networks I
Tech
How do loss and delay occur? packets queue in router buffers
- packet arrival rate to link exceeds output link capacity
- packets queue, wait for turn
A
B
packet being transmitted (delay) packets queueing (delay)
CS 3251 - Computer Networks I
Tech
How do loss and delay occur? packets queue in router buffers
- packet arrival rate to link exceeds output link capacity
- packets queue, wait for turn
A
B
packet being transmitted (delay) packets queueing (delay) free (available) buffers: arriving packets dropped (loss) if no free buffers
CS 3251 - Computer Networks I
Tech
Delay in packet-switched networks
- Transmission delay:
- R=link bandwidth (bps)
- L=packet length (bits)
- time to send bits into link = L/R 4. Propagation delay: - d = length of physical link - s = propagation speed in medium (~2x 8 m/sec) - propagation delay = d/s
A
B
propagation transmission nodal processing queueing Note: s and R are very different quantities!
CS 3251 - Computer Networks I
Tech
Caravan analogy
- Cars “propagate” at 100 km/hr
- Toll booth takes 12 sec to service a car (transmission time)
- car~bit; caravan ~ packet
- Q: How long until caravan is lined up before 2nd toll booth? toll booth toll booth ten-car caravan 100 km 100 km
CS 3251 - Computer Networks I
Tech
Caravan analogy
- Cars “propagate” at 100 km/hr
- Toll booth takes 12 sec to service a car (transmission time)
- car~bit; caravan ~ packet
- Q: How long until caravan is lined up before 2nd toll booth? - Time to “push” entire caravan through toll booth onto highway = 12*10 = 120 sec - Time for last car to propagate from 1st to 2nd toll both: 100km/(100km/hr)= 1 hr - A: 62 minutes toll booth toll booth ten-car caravan 100 km 100 km transmission delay propagation delay
CS 3251 - Computer Networks I
Tech
Caravan analogy (more)
- Cars now “propagate” at 1000 km/hr
- Toll booth now takes 1 min to service a car
- Q: Will cars arrive to 2nd booth before all cars serviced at 1st booth? toll booth toll booth ten-car caravan 100 km 100 km
CS 3251 - Computer Networks I
Tech
Nodal delay
- d proc = processing delay ‣ (^) typically a few microsecs or less
- d queue = queuing delay ‣ (^) depends on congestion
- d trans = transmission delay ‣ (^) = L/R, significant for low-speed links
- d prop = propagation delay ‣ (^) a few microsecs to hundreds of msecs
CS 3251 - Computer Networks I
Tech
Queueing delay (revisited)
- R=link bandwidth (bps)
- L=packet length (bits)
- a=average packet arrival rate traffic intensity = La/R
- La/R ~ 0: average queueing delay small
- La/R -> 1: delays become large
- La/R > 1: more “work” arriving than can be serviced, average delay infinite!
CS 3251 - Computer Networks I
Tech
Packet loss
queue (aka buffer) preceding link in buffer has finite
capacity
when packet arrives to full queue, packet is dropped
(aka lost)
lost packet may be retransmitted by previous node, by
source end system, or not retransmitted at all
CS 3251 - Computer Networks I
Tech
“Real” Internet delays and routes
- What do “real” Internet delay & loss look like?
Traceroute program: provides delay measurement from
source to router along end-end Internet path towards
destination. For all i :
‣ (^) sends three packets that will reach router i on path towards destination ‣ (^) router i will return packets to sender ‣ (^) sender times interval between transmission and reply.