1.intro Networks-Ans
1.intro Networks-Ans
Week 1
1
Acknowledgment
❖ Majority of lecture slides are from the author’s lecture slide set
▪ Enhancements + additional material
2
Introduction
Our goal: Overview/roadmap:
❖ What is the Internet?
❖ Get “feel,” “big picture,” ❖ What is a protocol?
introduction to terminology ❖ Network edge: hosts, access network,
▪ more depth, detail later in physical media
course ❖ Network core: packet/circuit switching,
internet structure
❖ Approach: ❖ Performance: loss, delay, throughput
▪ use Internet as example ❖ Protocol layers, service models
D. Something else
Answer: B and C as explained on the next
few slides
Answer: B and C as explained on the next few slides
car
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
WiFi
8
The Internet: a “service” view
❖ Infrastructure that provides mobile network
transport service
• provides service options, analogous enterprise
to postal service 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
D. Between 50 to 100
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
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
E. Satellite
F. Something Else
32
Links: physical media SELF STUDY
NOT ON EXAM
33
Links: physical media SELF STUDY
NOT ON EXAM
35
The network core
❖ mesh of interconnected routers mobile network
national or global ISP
❖ 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
▪ each packet transmitted at full link capacity regional
ISP
▪ Is used in the Internet home network content
provider
network datacenter
36
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
37
Circuit switching: FDM and TDM
Frequency Division Multiplexing
(FDM) 4 users
❖ optical, electromagnetic frequencies
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
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
Data Rate 3
Overloaded
Time 53
When Flows Share Total Capacity
packet switching
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
❖ circuit-switching:
▪ 10 users Q: how did we get value 0.0004?
❖ 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
❖ Q: What is the probability of observing exactly 3 heads in a sequence
of 5 coin tosses
❖ 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
Answer: A
D. None
B. is independent
access access
net net
access
net
access
net
access
net
access
net
access access
net access net
net
78
Internet structure: a “network of networks”
Question: given millions of access ISPs, how to connect them together?
access access
net net
access
net
access
access net
net
access
access net
net
access
net
access
net
access
net
access
net
access access
net access net
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 net
access
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
80
Internet structure: a “network of networks”
But if one global ISP is viable business, there will be competitors ….
access access
net net
access
net
access
access net
net
access
access
ISP A
net
net
access
net ISP B access
net
access ISP C
net
access
net
access
net
access
net
access access
net access net
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 net
access
net
access
access net
net
IXP access
access
ISP A
net
net
access
net
IXP ISP B access
net
access ISP C
net
access
net
access
net
peering link
access
net
access access
net access net
net
82
Internet structure: a “network of networks”
… and regional networks may arise to connect access nets to ISPs
access access
net net
access
net
access
access net
net
IXP access
access
ISP A
net
net
access
net
IXP ISP B access
net
access ISP C
net
access
net
access
net
regional ISP access
net
access access
net access net
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 net
access
net
access
access net
net
IXP access
access
ISP A
net
net
access ISP C
net
access
net
access
net
regional ISP access
net
access access
net access net
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
❖ What is the Internet?
❖ What is a protocol?
❖ Network edge: hosts, access network, physical media
❖ Network core: packet/circuit switching, internet structure
❖ Performance: loss, delay, throughput
❖ Security
❖ Protocol layers, service models
❖ 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
2 border1-rt-fa5-1-0.gw.umass.edu (128.119.3.145) 1 ms 1 ms 2 ms
3 delay measurements
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
Answer: B
103
Quiz: Oh these delays
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 Rfluid
c bits/sec
at rate
serverserver,
sends with
bits
(fluid) into pipe (Rs bits/sec) (Rc bits/sec)
file of F 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
109
A
S C
B
A B C
1-110