The Network Core: - Mesh of Interconnected Routers
The Network Core: - Mesh of Interconnected Routers
• mesh of interconnected
routers
• packet-switching: hosts break
application-layer messages
into packets
– forward packets from one
router to the next, across
links on path from source
to destination
– each packet transmitted at
full link capacity
L bits
per packet
3 2 1
source destination
R bps R bps
• takes L/R seconds to transmit
(push out) L-bit packet into link one-hop numerical example:
at R bps L = 7.5 Mbps
• store and forward: entire packet R = 1.5 Mbps
must arrive at router before it one-hop transmission delay
can be transmitted on next link = 5 sec
R = 100 Mb/s C
A
D
R = 1.5 Mb/s
B
queue of packets E
waiting for output link
Example:
FDM
4 users
frequency
time
TDM
frequency
time
07/22/2021 Networks and Data Communications 8
Packet switching versus circuit switching
…..
• each user: users
• 100 kb/s when “active” 1 Mbps link
• active 10% of time
• circuit-switching:
– 10 users Q: how did we get value 0.0004?
• packet switching: Q: what happens if > 35 users ?
– with 35 users, probability >
10 active at same time is less
/
than .0004
07/22/2021 Networks and Data Communications 9
Packet switching versus circuit switching
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
net
access
net
…
access
net
access
… access
net
access
net …
net
access
access
net
… … net
access
access net
net
…
each other directly doesn’t scale:
…
access access
…
net
O(N2) connections. net
access
net
access
net
access
net
access
…
… net
access
net
access
net
…
access
net
access
… access
net
access
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
net
access
net
…
access
net
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
net
access
net
…
access
net
access
IXP 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
net
access
net
…
access
net
access
… access
net
access
net …
net
access
access net
net
access
IXP access
net
net
ISP A
…
…
access
net
IXP ISP B access
net
access
net
ISP C
access
net
access
net regional net
access
… … net
access access
net access net
net
access
IXP access
net
net
ISP A
…
…
Content provider network
access
net
IXP ISP B access
net
access
net
ISP C
access
net
access
net regional net
access
… net
access
net
access
net
…
access
net
POP: point-of-presence
to/from backbone
peering
… … …
…
to/from customers
B
packets queuing (delay)
free (available) buffers: arriving packets
dropped (loss) if no free buffers
07/22/2021 Networks and Data Communications 21
Four sources of packet delay
transmission
A propagation
B
nodal
processing queuing
dtotal = dproc + dqueue + dtrans + dprop
transmission
A propagation
B
nodal
processing queueing
dtotal = dproc + dqueue + dtrans + dprop
100 km 100 km
ten-car toll toll
caravan booth booth
100 km 100 km
ten-car toll toll
caravan booth booth
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
07/22/2021 Networks and Data Communications 26
Packet loss
buffer
(waiting area) packet being transmitted
A
B
packet arriving to
full buffer is lost
07/22/2021 Networks and Data Communications 27
Throughput
server,
server withbits
sends linkpipe
capacity
that can carry linkpipe
capacity
that can carry
file of into
(fluid) F bits
pipe fluid at rate
Rs bits/sec fluid at rate
R bits/sec
to send to client c
Rs bits/sec) Rc bits/sec)
Rs bits/sec Rc bits/sec
Rs bits/sec
Rc bits/sec
bottleneck link
link on end-end path that constrains end-end throughput
• per-connection end-end
throughput: Rs
min(Rc,Rs,R/10) Rs Rs
• in practice: Rc or Rs is
often bottleneck
R
Rc Rc
Rc
airplane routing airplane routing airplane routing airplane routing airplane routing
switch
destination Hn Ht M network
M application
Hl Hn Ht M link Hn Ht M
Ht M transport physical
Hn Ht M network
Hl Hn Ht M link router
physical
1. select target
2. break into hosts around the
network (see botnet)
3. send packets to target from
compromised hosts
target
packet “sniffing”:
broadcast media (shared Ethernet, wireless)
promiscuous network interface reads/records all packets (e.g.,
including passwords!) passing by
A C
A C