Introduction To CN-Parte-3
Introduction To CN-Parte-3
If you use these slides (e.g., in a class) that you mention their
source (after all, we’d like people to use our book!)
If you post any slides on a www site, that you note that they are
adapted from (or perhaps identical to) our slides, and note our
copyright of this material.
Computer
For a revision history, see the slide note for this page.
Networking: A Top-
Thanks and enjoy! JFK/KWR
Down Approach
All material copyright 1996-2020 8th edition
J.F Kurose and K.W. Ross, All Rights Reserved
Jim Kurose, Keith Ross
Pearson, 2020
Introduction: 1-1
Alternative to packet switching: circuit switching
end-end resources allocated to,
reserved for “call” between
source and destination
in diagram, each link has four
circuits.
• call gets 2nd circuit in top link
and 1st circuit in right link.
dedicated resources: no sharing
• circuit-like (guaranteed)
performance
circuit segment idle if not used by
call (no sharing)
commonly used in traditional
telephone networks
Introduction: 1-52
Circuit switching: FDM and TDM
Frequency Division Multiplexing (FDM)
optical, electromagnetic frequencies 4 users
frequency
divided into (narrow) frequency
bands
each call allocated its own band, can
transmit at max rate of that narrow
band
time
Time Division Multiplexing (TDM)
frequency
time divided into slots
each call allocated periodic
slot(s), can transmit at maximum
rate of (wider) frequency band,
but only during its time slot(s) time
Introduction: 1-53
Numerical example
How long does it take to send a file of 640,000 bits from host A
to host B over a circuit-switched network?
All links are 536 Mbps
Each link uses TDM with 24 slots/sec
500 msec to establish end-to-end circuit
Demand access
Distributed control
Packet switching vs circuit switching
packet switching allows more users to use network ?
Example:
1 Gb/s link
each user:
…..
N
• 100 Mb/s when “active” users 1 Gbps link
• active 10% of time
circuit-switching: 10 users
Q: how did we get value 0.0004?
packet switching: with 35
users, probability > 10 active Q: what happens if > 35 users ?
at same time is less
than .0004 *
* Check out the online interactive exercises for more examples: h ttp://gaia.cs.umass.edu/kurose_ross/interactive
Introduction: 1-57
Recordemos la distribución binomial
n usuarios activo no activo
A=
(1-p) (1-p) p (1-p) p p p (1-p) p p
35−6 6
P ( A)=(1− p) p
35 35−6 6
P ( seis activos)=
6 ( )
(1− p) p
1 - CDF[BinomialDistribution[35, 0.1], 10]
0.000424298
Q: how did we get value 0.0004?
Q: what happens if > 35 users ?
* Check out the online interactive exercises for more examples: tttp://gaia.cs.umass.edu/kurose_ross/interactive /
Blocking probability
35 users, 10 channels
Packet switching versus circuit switching
Is packet switching a “slam dunk winner”?
great for “bursty” data – sometimes has data to send, but at
other times not
• resource sharing
• simpler, no call setup
excessive congestion possible: packet delay and loss due to
buffer overflow
• protocols needed for reliable data transfer, congestion control
Q: How to provide circuit-like behavior?
• bandwidth guarantees traditionally used for audio/video
applications
Q: human analogies of reserved resources (circuit switching) versus
on-demand allocation (packet switching)?
Introduction: 1-61
Is packet Switching that beautiful?
El cubrimiento de la banda ancha residencial y móvil es cada vez
mayor.
El acceso banda ancha sirve no solo para el servicio de Internet si
no de otros servicios como TV (IPTV) y voz (VoIP).
Packet switching brinda flexibilidad para llevar estos servicios
sobre la misma red
¿Qué ocurre si muchas fuentes a la vez demandan los recursos de
tx simultáneamente?
¿Cómo resolver este problema?
Priorization principle
AF = Assured forwarding
BE = Best effort
B
packets in buffers (queueing delay)
free (available) buffers: arriving packets
dropped (loss) if no free buffers
Introduction: 1-66
Packet delay: four sources
transmission
A propagation
B
nodal
processing queueing
B
nodal
processing queueing
average queueing
delay
R: link bandwidth (bps)
L: packet length (bits)
a: average packet arrival rate
3 probes 3 probes
3 probes
Introduction: 1-73
Real Internet delays and 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 3 delay measurements
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 to border1-rt-fa5-1-
4 jn1-at1-0-0-19.wor.vbns.net (204.147.132.129) 16 ms 11 ms 13 ms 0.gw.umass.edu
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 link
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
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 looks like delays
12 nio-n2.cssi.renater.fr (193.51.206.13) 111 ms 114 ms 116 ms decrease! Why?
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
B
packet arriving to
full buffer is lost
* Check out the Java applet for an interactive animation on queuing and loss
Introduction: 1-76
Throughput
throughput: rate (bits/time unit) at which bits are being
sent from sender to receiver
• instantaneous: rate at given point in time
• average: rate over longer period of time
link capacity
pipe that can link
pipecapacity
that can carry
server sends R carry
bits/sec
server, with fluid at rate
s Rc fluid at rate
bits/sec
bits
file of F bits (Rc bits/sec)
(fluid) client (Rs bits/sec)
intotopipe
to send
Introduction: 1-77
Alcance mediciones ISP
Rs bits/sec Rc bits/sec
Rs bits/sec Rc bits/sec
bottleneck link
link on end-end path that constrains end-end
throughput
Introduction: 1-79
Throughput: network scenario
per-connection
Rs end-end
Rs Rs throughput:
min(Rc,Rs,R/10)
R in practice: Rc or Rs
Rc Rc
is often bottleneck
Rc
* Check out the online interactive exercises for more
examples: http://gaia.cs.umass.edu/kurose_ross/
access
… access
net
access
net …
net
access
access net
net
access
access net
net
…
…
access access
net net
access
net
access
net
access
net
access
… net
access access …
net access net
net
Introduction: 1-82
Internet structure: a “network of networks”
Question: given millions of access ISPs, how to connect them together?
access
… access
net
access
net …
net
access
access
net
… … net
access
access net
net
…
ISP to each other directly
…
access
access
doesn’t scale: O(N2)
…
net net
access
connections.
net
access
net
access
net
access
…
… net
access access …
net access net
net
Introduction: 1-83
Internet structure: a “network of networks”
Option: connect each access ISP to one global
transit ISP?
Customer and provider ISPs have economic
agreement. access
access
…access
net net …
net
access
access net
net
access
access net
net
…
…
global
access
net
ISP access
net
access
net
access
net
access
net
access
… net
access access …
net access net
net
Introduction: 1-84
Internet structure: a “network of networks”
But if one global ISP is viable business, there will be
competitors ….
access
… access
net
access
net …
net
access
access net
net
access
access net
net
ISP A
…
…
access
net ISP B access
net
access
net
ISP C
access
net
access
net
access
… net
access access …
net access net
net
Introduction: 1-85
Internet structure: a “network of networks”
But if one global ISP is viable business, there will be
competitors …. who will want to be connected
Internet exchange point
access
access
…
access
net net …
net
access
access net
net
IXP access
access net
net
ISP A
…
…
access
net
IXP ISP B access
net
access
net
ISP C
access
net
access
net
peering link
access
… net
access access …
net access net
net
Introduction: 1-86
Internet structure: a “network of networks”
… and regional networks may arise to connect
access nets to ISPs
… …
access
access
net
access
net
net
access
access net
net
IXP access
access net
net
ISP A
…
…
access
net
IXP ISP B access
net
access
net
ISP C
access
net
access
net
regional ISP access
… net
access access …
net access net
net
Introduction: 1-87
Internet structure: a “network of networks”
… and content provider networks (e.g., Google, Microsoft,
Akamai) may run their own network, to bring services,
content close to end
… users … access
net
access
net
access
net
access
access net
net
IXP access
access net
net
ISP A
…
…
Content provider network
access
net
IXP ISP B access
net
access
net
ISP C
access
net
access
net
regional ISP access
… net
access access …
net access net
net
Introduction: 1-88
Basic network topologies
Fuente: Wikipedia.org
The Internet is an interconnected collection of many
networks
Computer Networks, Fifth Edition by Andrew Tanenbaum and David Wetherall, © Pearson Education-Prentice Hall, 2011
Internet2
Canet4
Geant
Ejemplos redes
académicas
Figura propiedad de IEEE Communications Magazine
1-92
Ejemplo red óptica
Architecture of the Internet
POP: point-of-presence
to/from other Sprint PoPS
links to
peering
networks
…
… … …
links to/from Sprint customer networ
Introduction: 1-97
Los cuatro grandes actores de Internet:
1) End users
2) Broadband providers
3) Backbone networks (long-haul firber-optic links
and high-speed routers)
4) Edge providers (provide content, services, and
applications over the Internet.)