Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                

Chapter 01 PDF

Download as pdf or txt
Download as pdf or txt
You are on page 1of 36

Chapter 1: roadmap

1.1 what is the Internet?


1.2 network edge
 end systems, access networks, links
1.3 network core
 packet switching, circuit switching, network
structure
1.4 delay, loss, throughput in networks
1.5 protocol layers, service models
1.6 networks under attack: security
1.7 history

Delay Samples -1
How do loss and delay occur?
packets queue in router buffers
 packet arrival rate to link (temporarily) exceeds output link
capacity
 packets queue, wait for turn
packet being transmitted (delay)

B
packets queueing (delay)
free (available) buffers: arriving packets
dropped (loss) if no free buffers

Delay Samples -2
Four sources of packet delay
transmission
A propagation

B
nodal
processing queueing

dnodal = dproc + dqueue + dtrans + dprop

dproc: nodal processing dqueue: queueing delay


 check bit errors  time waiting at output
 determine output link link for transmission
 typically < msec  depends on congestion
level of router
Delay Samples -3
Four sources of packet delay
transmission
A propagation

B
nodal
processing queueing

dnodal = dproc + dqueue + dtrans + dprop

dtrans: transmission delay: dprop: propagation delay:


 L: packet length (bits)  d: length of physical link
 R: link bandwidth (bps)  s: propagation speed in medium
 dtrans = L/R (~2x108 m/sec)
dtrans and dprop  dprop = d/s
very different
* Check out the Java applet for an interactive animation on trans vs. prop delay Delay Samples -4
Caravan analogy
100 km 100 km
ten-car toll toll
caravan booth booth

 cars “propagate” at  time to “push” entire


100 km/hr caravan through toll
 toll booth takes 12 sec to booth onto highway =
service car (bit 12*10 = 120 sec
transmission time)  time for last car to
 car~bit; caravan ~ packet propagate from 1st to
 Q: How long until caravan 2nd toll both:
is lined up before 2nd toll 100km/(100km/hr)= 1
booth? hr
 A: 62 minutes
Delay Samples -5
Caravan analogy (more)
100 km 100 km
ten-car toll toll
caravan booth booth

 suppose cars now “propagate” at 1000 km/hr


 and suppose toll booth now takes one min to service a
car
 Q: Will cars arrive to 2nd booth before all cars serviced at
first booth?
 A: Yes! after 7 min, 1st car arrives at second booth;
three cars still at 1st booth.

Delay Samples -6
Queueing delay (revisited)

average queueing
 R: link bandwidth (bps)

delay
 L: packet length (bits)
 a: average packet
arrival rate
traffic intensity
= La/R
 La/R ~ 0: avg. queueing delay small La/R ~ 0

 La/R -> 1: avg. queueing delay large


 La/R > 1: more “work” arriving
than can be serviced, average delay infinite!

* Check out the Java applet for an interactive animation on queuing and loss La/R -> 1
Delay Samples -7
“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.
3 probes 3 probes

3 probes

Delay Samples -8
“Real” Internet delays, routes
traceroute: gaia.cs.umass.edu to www.eurecom.fr
3 delay measurements from
gaia.cs.umass.edu to cs-gw.cs.umass.edu
1 cs-gw (128.119.240.254) 1 ms 1 ms 2 ms
2 border1-rt-fa5-1-0.gw.umass.edu (128.119.3.145) 1 ms 1 ms 2 ms
3 cht-vbns.gw.umass.edu (128.119.3.130) 6 ms 5 ms 5 ms
4 jn1-at1-0-0-19.wor.vbns.net (204.147.132.129) 16 ms 11 ms 13 ms
5 jn1-so7-0-0-0.wae.vbns.net (204.147.136.136) 21 ms 18 ms 18 ms
6 abilene-vbns.abilene.ucaid.edu (198.32.11.9) 22 ms 18 ms 22 ms
7 nycm-wash.abilene.ucaid.edu (198.32.8.46) 22 ms 22 ms 22 ms trans-oceanic
8 62.40.103.253 (62.40.103.253) 104 ms 109 ms 106 ms
9 de2-1.de1.de.geant.net (62.40.96.129) 109 ms 102 ms 104 ms link
10 de.fr1.fr.geant.net (62.40.96.50) 113 ms 121 ms 114 ms
11 renater-gw.fr1.fr.geant.net (62.40.103.54) 112 ms 114 ms 112 ms
12 nio-n2.cssi.renater.fr (193.51.206.13) 111 ms 114 ms 116 ms
13 nice.cssi.renater.fr (195.220.98.102) 123 ms 125 ms 124 ms
14 r3t2-nice.cssi.renater.fr (195.220.98.110) 126 ms 126 ms 124 ms
15 eurecom-valbonne.r3t2.ft.net (193.48.50.54) 135 ms 128 ms 133 ms
16 194.214.211.25 (194.214.211.25) 126 ms 128 ms 126 ms
17 * * *
18 * * * * means no response (probe lost, router not replying)
19 fantasia.eurecom.fr (193.55.113.142) 132 ms 128 ms 136 ms

* Do some traceroutes from exotic countries at www.traceroute.org


Delay Samples -9
Packet loss
 queue (aka buffer) preceding link in buffer has
finite capacity
 packet arriving to full queue dropped (aka lost)
 lost packet may be retransmitted by previous
node, by source end system, or not at all

buffer
(waiting area) packet being transmitted
A

B
packet arriving to
full buffer is lost
* Check out the Java applet for an interactive animation on queuing and loss Delay Samples -10
Throughput
 throughput: rate (bits/time unit) at which bits
transferred between sender/receiver
 instantaneous: rate at given point in time
 average: rate over longer period of time

server,
server with bits
sends linkpipe
capacity
that can carry linkpipe
capacity
that can carry
file of into
(fluid) F bits
pipe Rs bits/sec
fluid at rate Rc bits/sec
fluid at rate
to send to client Rs bits/sec) Rc bits/sec)

Delay Samples -11


Throughput (more)
 Rs < Rc What is average end-end throughput?

Rs bits/sec Rc bits/sec

 Rs > Rc What is average end-end throughput?

Rs bits/sec Rc bits/sec

bottleneck link
link on end-end path that constrains end-end throughput

Delay Samples -12


Throughput: Internet scenario

 per-connection
end-end Rs
throughput: Rs Rs
min(Rc,Rs,R/10)
 in practice: Rc or
R
Rs is often
bottleneck Rc Rc

Rc

10 connections (fairly) share


backbone bottleneck link R bits/sec
Delay Samples -13
Sample#1
L
R R R

Takes L/R seconds to Example:


transmit (push out) • L = 7.5 Mbits; message
packet of L bits on to link size
R bps • R = 1.5 Mbps; link
Entire packet must bandwidth
arrive at router before it • message transmission
can be transmitted on time = L/R = 5 sec
next link: store and • delay = 3L/R = 15 sec
forward
delay = 3L/R

Delay Samples -14


Sample#2
L

Now break up the message


into 5000 packets

 Each packet 1,500 bits


 1 msec to transmit
packet on one link
 pipelining: each link
works in parallel
 Delay reduced from 15
sec to 5.002 sec

Delay Samples -15


Sample#2
Calculate the total time required to
transfer a 1,000-KB file in the following
cases, assuming an RTT of 100 ms, a
packet size of 1-KB data, and an initial
2×RTT of “handshaking” before data is
sent.
(a)The bandwidth is 1.5 Mbps, and data
packets can be sent continuously.

Delay Samples -16


Sample#2 sol part a
 Initial+ transmit time + Propagation
Time=
 2*RTT + Data/BW + 0.5*RTT
 =2.5*RTT + 8*Mb/1.5Mb
 =250ms+ 5.33sec= 0.25+5.33 = 5.58

Delay Samples -17


Sample#2
(b) The bandwidth is 1.5 Mbps,
but after we finish sending each
data packet
we must wait one RTT before
sending the next.

Delay Samples -18


Sample#2 sol part b
• part(a)+ 999*RTT
• = 5.58 + 999*RTT
• = 5.58 + 99.9
• = 105.48

Delay Samples -19


Sample#2
(c) The bandwidth is
“infinite,” meaning that we
take transmit time to be
zero, and up to 20 packets
can be sent per RTT.

Delay Samples -20


Sample#2 sol part c
 2*RTT + 49*RTT + 0.5 * RTT
 = 51.5 RTT
 = 5.15 sec

Delay Samples -21


Sample#2
(d) The bandwidth is infinite, and
during the first RTT we can send one
packet (2^1−1), during the second
RTT we can send two packets
(2^2−1),during the third we can send
four (2^3−1), and so on.

Delay Samples -22


Sample#2 sol part d
???

Delay Samples -23


Sample#3
Calculate the latency (from first bit sent to last
bit received) for the following:
(a) A 10-Mbps Ethernet with a single store-and-
forward switch in the path, and a packet size of
5,000 bits. Assume that each link introduces a
propagation delay of 10µs, and that the switch
begins retransmitting immediately after it has
finished receiving the packet.

10 10
Mbps Mbps

Delay Samples -24


Sample#3 sol part a
 2* 10 micro sec + 2* 500
micro sec
 = 20+ 1000
 == 1020 micro sec

Delay Samples -25


Sample#3
(b) Same as (a) but with three switches.

Delay Samples -26


Sample#3 sol part b
 4* 10 + 4*500
 = 2040 mic s

Delay Samples -27


Sample#3
(c) Same as (a) but assume the switch
implements “cut-through” switching: it is able to
begin retransmitting the packet after the first
200 bits have been received.

Delay Samples -28


Sample#3 sol part c
 2*10 + (20 + 500)
 =540

Delay Samples -29


Sample#3
(d) Same as (c) but with three switches.

Delay Samples -30


Sample#3 sol part d
 4*10 + (500+60)
 =600

Delay Samples -31


‫‪Sample#4‬‬
‫فریمی ‪1500‬بایتی قرار است بر روی لینکی با پهنای باند‪100‬‬
‫مگابیتبرثانیه ارسال گردد‪ .‬با فرض بر اینکه فاصله بین مبداء و مقصد‬
‫برابر ‪ 250‬کیلومتر باشد‪:‬‬
‫الف‪ -‬اگر بیت اول در لحظه صفر ارسال گردد‪ ،‬بیت آخر در چه زمانی‬
‫ارسال خواهد شد؟‬
‫ب‪ -‬اگر سرعت انتشار برابر ‪ 2×10^8‬باشد‪ ،‬چه زمانی بیت اول به مقصد‬
‫میرسد؟‬
‫ج‪ -‬چه زمانی بیت آخر به مقصد میرسد؟‬

‫‪Delay Samples‬‬ ‫‪-32‬‬


Sample#4 sol parts a,b
 a) Transmission Delay:
 (1500*8)/(100*10^6)= 120 micro sec

 b)Propagation Delay:
 (25*10^3)/(2*10^8)= 1250 micro sec

Delay Samples -33


Sample#5

All link have the same Bitrate: R


All distances are the same: L
Source Data Size: M bits
Number of Packets: n
Switches are Store and Forward.
Tp= L/(2*10^8)
Tt= (M/n)/R
Sample#5
Phone

R1
T= 3Tp+(n+2)Tt
R2

Dest

T= 3Tp+2Tt
T= 3Tp+3TT= 3Tp+4Tt T= 3Tp+5Tt
t
Sample#5
 Please calculate total delay, if number of
intermediate switches reach to k?

T= (k+1)Tp+(n+k)Tt

Delay Samples -36

You might also like