1.Intro Networks
1.Intro Networks
1
Acknowledgment
v Majority of lecture slides are from the author’s lecture slide set
§ Enhancements + additional material
2
Introduction
Our goal: Overview/roadmap:
v What is the Internet?
v Get “feel,” “big picture,” v What is a protocol?
introduction to terminology v Network edge: hosts, access network,
§ more depth, detail later in physical media
course v Network core: packet/circuit switching,
internet structure
v Approach: v Performance: loss, delay, throughput
§ use Internet as example v Protocol layers, service models
v Security (self study, not on exam)
v History (self study, not on exam)
Hobbe’s Internet Timeline - http://www.zakon.org/robert/internet/timeline/
3
Quiz: What is the Internet?
D. Something else
4
The Internet: a “nuts and bolts” view
Billions of connected mobile network
computing devices: national or global ISP
§ hosts = end systems
§ running network apps at
Internet’s “edge”
Picture frame
Fitbit
pacemaker Tweet-a-watt:
monitor energy use
Networked TV Set top Boxes
§ Interconnected ISPs
§ protocols are everywhere Skype
IP
Streaming
video
• control sending, receiving of
messages local or
regional
• e.g., HTTP (Web), streaming video, ISP
Skype, TCP, IP, WiFi, 4G, Ethernet home network content
provider
§ Internet standards HTTP network datacenter
network
Ethernet
• RFC: Request for Comments
• IETF: Internet Engineering Task TCP
Force enterprise
network
WiFi
8
The Internet: a “service” view
v Infrastructure that provides mobile network
9
while'(...)'{'
while'(...)'{' '''message'='receive'('...');'
'''message'='...;' }
'''send'('message,'...');'
}
Bob
Alice
Computer)Networks,)Fall)2015 8
10
while'(...)'{'
while'(...)'{' '''message'='receive'('...');'
'''message'='...;' }
'''send'('message,'...');'
}
ApplicaGon- Bob
Programming-
Alice Interface
Computer)Networks,)Fall)2015 9
11
facebook-
server world-of-warcraE-
server
instant-messaging
instant-messaging
world-of-warcraE- firefox-accessing-
Computer)Networks,)Fall)2015 client facebook 7
12
What’s a protocol?
Human protocols: Network protocols:
§ “what’s the time?” § computers (devices) rather than humans
§ “I have a question” § all communication activity in Internet
§ introductions governed by protocols
13
What’s a protocol?
A human protocol and a computer network protocol:
Hi TCP connection
request
Hi TCP connection
response
Got the
time? GET http://gaia.cs.umass.edu/kurose_ross
2:00
<file>
time
A. Less than 10
B. Between 10 to 20
C. Between 20 to 50
D. Between 50 to 100
15
Introduction: roadmap
v What is the Internet?
v What is a protocol?
v Network edge: hosts, access network, physical media
v Network core: packet/circuit switching, internet
structure
v Performance: loss, delay, throughput
v Security
v Protocol layers, service models
v History
16
A closer look at Internet structure
mobile network
enterprise
network
17
A closer look at Internet structure
mobile network
enterprise
network
18
A closer look at Internet structure
mobile network
Network core:
§ interconnected routers
enterprise
§ network of networks network
19
Access networks and physical media
Q: How to connect end systems to mobile network
20
Access networks: digital subscriber line (DSL)
central office telephone
network
DSL splitter
modem DSLAM
21
Access net: digital subscriber line (DSL)
DSL splitter
modem
Hig
h-p er for
as lt ADSL over POTS
da s filt ass fi
ta er -p ic e voice, data transmitted
for Low vo at different frequencies over
dedicated line to central office
22
Access net: digital subscriber line (DSL)
23
Access networks: cable-based access
cable headend
cable splitter
modem
C
O
V V V V V V N
I I I I I I D D T
D D D D D D A A R
E E E E E E T T O
O O O O O O A A L
1 2 3 4 5 6 7 8 9
Channels
26
Access networks: home networks
wireless
devices
to/from headend or
central office
often combined
in single box
to Internet
to Internet
28
Access networks: enterprise networks
Enterprise link to
ISP (Internet)
institutional router
Ethernet institutional mail,
switch web servers
30
Quiz: Your access network
Your residential ISP provides connectivity using the following technology:
A. DSL
B. Cable
D. Mobile (3G/4G/5G)
E. Satellite
F. Something Else
31
SELF STUDY
Links: physical media NOT ON EXAM
32
SELF STUDY
Links: physical media NOT ON EXAM
33
Links: physical media SELF STUDY
NOT ON EXAM
35
The network core
v mesh of interconnected routers mobile network
national or global ISP
v 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 local or
regional
§ each packet transmitted at full link capacity ISP
§ Is used in the Internet home network content
provider
network datacenter
network
v circuit-switching: an alternative used in
legacy telephone networks which was
considered during the design of the enterprise
Internet network
36
Alternative to packet switching: circuit switching
end-end resources allocated to,
reserved for “call” between source
and destination
v in diagram, each link has four circuits.
§ call gets 2nd circuit in top link and 1st
circuit in right link.
v dedicated resources: no sharing
§ circuit-like (guaranteed) performance
v circuit segment idle if not used by call (no
sharing)
v commonly used in traditional telephone
networks
37
Circuit switching: FDM and TDM
Frequency Division Multiplexing
(FDM) 4 users
v optical, electromagnetic frequencies
frequency
divided into (narrow) frequency bands
v 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
time slot(s)
38
Timing in Circuit Switching
Circuit
Establish
ment
Transfer
Information
time
Circuit
Tear-
down 39
Why circuit switching is not feasible?
Ø Inefficient
• Computer communications tends to be very bursty. For
example, viewing a sequence of web pages
• Dedicated circuit cannot be used or shared in periods of
silence
• Cannot adapt to network dynamics
Ø Fixed data rate
• Computers communicate at very diverse rates. For
example, viewing a video vs using telnet or web browsing
• Fixed data rate is not useful
1. Internet Address
2. Age (TTL)
3. Checksum to protect header
Data Header
header
01000111100010101001110100011001
payload
41
Packet Switching
42
Packet Switching
43
Peek ahead: Two key network-core functions
h
paylo d
ad r
time What about the time to process the packet at the switch?
• We’ll assume it’s relatively negligible (mostly true)
45
Timing in Packet Switching
h
paylo d
ad r
49
Packet Switching
50
Packet Switching
51
Three Flows with Bursty Traffic
Data Rate 1
Time
Data Rate 2
Capacity
Time
Data Rate 3
Time 52
When Each Flow Gets 1/3rd of Capacity
Data Rate 1 like circuit switching
Time
Data Rate 2
Time
Time
No Overloading
Statistical multiplexing relies on
the assumption that not all flows
Time burst at the same time
Time 54
Three Flows with Bursty Traffic
Data Rate 1
Time
Data Rate 2
Capacity
Time
Data Rate 3
Time 55
Three Flows with Bursty Traffic
Data Rate 1
Time
Data Rate 2
Capacity
Time
Data Rate 3
Time 56
Three Flows with Bursty Traffic
Capacity
Time
pkt tx
time
BW à
time à
58
Statistical multiplexing: pipe view
59
Statistical multiplexing: pipe view
No Overload
60
Statistical multiplexing: pipe view
Queue overload
into Buffer
Transient Overload
Not such a rare event
61
Statistical multiplexing: pipe view
Queue overload
into Buffer
Transient Overload
Not such a rare event
62
Statistical multiplexing: pipe view
Queue overload
into Buffer
Transient Overload
Not such a rare event
63
Statistical multiplexing: pipe view
Queue overload
into Buffer
Transient Overload
Not such a rare event
64
Statistical multiplexing: pipe view
Queue overload
into Buffer
Transient Overload
Not such a rare event
65
Statistical multiplexing: pipe view
Queue overload
into Buffer
Transient Overload
Buffer absorbs
Nottransient
a rarebursts
event!
66
Statistical multiplexing: pipe view
Queue overload
into Buffer
…..
• 100 kb/s when “active” users
• active 10% of time 1 Mbps link
v circuit-switching:
§ 10 users Q: how did we get value 0.0004?
v packet switching:
§ with 35 users, probability > Q: what happens if > 35 users
10 active at same time is less say 70?
than .0004
69
Binomial Distribution: Example
v Q: What is the probability of observing exactly 3 heads in a sequence
of 5 coin tosses
v A:
§ One way to get exactly 3 heads is: HHHTT
§ Probability of this sequence occurring = (1/2) x (1/2) x (1/2) x (1-1/2) x (1-1/2)
= (1/2)5
72
Packet switching versus circuit switching
A. Packet switching
B. Circuit switching
C. Both
D. None
75
Quiz: Switching-2
A. is the same
B. is independent
76
Internet structure: a “network of networks”
vHosts connect to Internet via access Internet Service
Providers (ISPs)
• residential, enterprise (company, university,
commercial) ISPs
vAccess ISPs in turn must be interconnected
• so that any two hosts can send packets to each other
vResulting network of networks is very complex
• evolution was driven by economics and national policies
vLet’s take a stepwise approach to describe current
Internet structure
77
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
…
…
access access
net net
access
net
access
net
access
net
access
net
… access
net
access
net
…
access
net
78
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
…
each other directly doesn’t scale:
…
access
O(N2) connections. access
…
net net
access
net
access
net
access
net
access
…
net
… access
net
access
net
…
access
net
79
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
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
80
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 ISP C
net
access
net
access
net
access
net
… access
net
access
net
…
access
net
81
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
net
access
net …
net
access
access net
net
IXP access
access net
net
ISP A
…
…
access
net
IXP ISP B access
net
access ISP C
net
access
net
access
net
peering link
access
net
… access
net
access
net
…
access
net
82
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 ISP C
net
access
net
access
net
regional ISP access
net
… access
net
access
net
…
access
net
83
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
… access
net
access
net
net
access
access net
net
IXP access
access net
net
ISP A
…
…
Content provider network
access
net
IXP ISP B access
net
access ISP C
net
access
net
access
net
regional ISP access
net
… access
net
access
net
…
access
net
84
Internet structure: a “network of networks”
Tier 1 ISP Tier 1 ISP Google
…
… … …
links to/from Sprint customer networks
86
AARNET: Australia’s Academic and Research Network
https://www.aarnet.edu.au/
https://www.submarinecablemap.com
87
Introduction: roadmap
v What is the Internet?
v What is a protocol?
v Network edge: hosts, access network, physical media
v Network core: packet/circuit switching, internet structure
v Performance: loss, delay, throughput
v Security
v Protocol layers, service models
v History
88
How do packet loss and delay occur?
packets queue in router buffers
§ packets queue, wait for turn
§ arrival rate to link (temporarily) exceeds output link capacity: packet
loss
packet being transmitted (transmission delay)
B
packets in buffers (queueing delay)
free (available) buffers: arriving packets
dropped (loss) if no free buffers
89
Packet delay: four sources
transmission
A propagation
B
nodal
processing queueing
90
Packet delay: four sources
transmission
A propagation
B
nodal
processing queueing
92
Caravan analogy
100 km 100 km
94
Queueing delay: One Scenario
Link bandwidth
queue = R bits/sec
1 packet arrives
every L/R seconds
95
Queueing delay: Another Scenario
Link bandwidth
queue = R bits/sec
N packet arrive simultaneously
every LN/R seconds
Note: traffic intensity is same as previous scenario, but queueing delay is different
96
Queueing delay: typical behaviour
queue
Packet arrival rate
= a packets/sec
Client R1 R2 Server
L/r1
Client
Server
d3/s
98
In the picture, r1 = r2 = r3, you may wish to consider what happens when this is not the case
End to End Delay Packet length = L
Propagation speed = s
Client R1 R2 Server
L/r1
Client
Server
d3/s
99
In the picture, r1 = r2 = r3, you may wish to consider what happens when this is not the case
“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 (with time-to-live field value of i)
• router i will return packets to sender
• sender measures time interval between transmission and reply
3 probes 3 probes
3 probes
100
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-0.gw.umass.edu
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 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 looks like delays
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 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
102
Quiz: Propagation Delay
A. True
B. False
103
Quiz: Oh these delays
104
Packet loss
v queue (aka buffer) preceding link in buffer has finite
capacity
v packet arriving to full queue dropped (aka lost)
v lost packet may be retransmitted by previous node,
source end system, or not at all
buffer
(waiting area) packet being transmitted
A
B
packet arriving to
full buffer is lost
105
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 carry linkthat
pipe capacity
can carry
Rsfluid
bits/sec
at rate R c bits/sec
fluid at rate
serverserver,
sends with
bits
(Rs bits/sec) (Rc bits/sec)
(fluid)
fileinto
of Fpipe
bits
to send to client
106
Throughput
Rs < Rc What is average end-end throughput?
Rs bits/sec Rc bits/sec
Rs bits/sec Rc bits/sec
bottleneck link
link on end-end path that constrains end-end throughput
107
Throughput: network scenario
§ per-connection end-end
Rs throughput:
Rs Rs min(Rc,Rs,R/10)
§ in practice: Rc or Rs is
R often bottleneck
Rc Rc
Rc
End of Week 1
109