Lecture 1
Lecture 1
Basics
● IDE:
○ Python
○ Wireshark
● Online Resources
Course Contents
● Introduction to Computer
Networks
● Application Layer
● The Transport Layer
● The Network Layer
Network Basics
Chapter 1: Introduction
Introduction: 1-6
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”
○ Interconnected ISPs
WiFi
Introduction: 1-9
The Internet: a “service” view
● Infrastructure that provides mobile network
national or global ISP
services to applications:
○ Web, streaming video, multimedia
teleconferencing, email, games, e- Streaming
commerce, social media, inter- Skype video
… specific messages
sent Protocols define the format, order
… specific actions taken of messages sent and received
when message among network entities, and
received, or other
events actions taken on msg
transmission, receipt
Introduction: 1-11
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
enterprise
network
Introduction: 1-14
A closer look at Internet structure
mobile network
national or global ISP
Network edge:
● hosts: clients and servers
● servers often in data centers
local or
regional
Access networks, physical ISP
home network content
media: provider
network datacenter
●wired, wireless communication links network
enterprise
network
Introduction: 1-15
A closer look at Internet structure
mobile network
national or global ISP
Network edge:
● hosts: clients and servers
● servers often in data centers
local or
Access networks, physical media: regional
ISP
●wired, wireless communication links home network content
provider
network datacenter
▪ interconnected routers
▪ network of networks enterprise
network
Introduction: 1-16
Access networks and physical media
mobile network
Q: How to connect end systems to national or global ISP
edge router?
● residential access nets
● institutional access networks (school,
company)
● mobile access networks (WiFi, 4G/5G) local or
regional
ISP
Introduction: 1-17
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
DSL splitter
modem DSLAM
to/from headend or
central office
often combined
in single box
cable or DSL
modem
WiFi wireless router, firewall, NAT
access
point (54, 450 wired Ethernet (1
Mbps) Gbps)
Introduction: 1-21
Wireless access networks
Shared wireless access network connects end system to router
▪ via base station aka “access point”
to Internet
to Internet
Introduction: 1-22
Access networks: enterprise networks
Enterprise link to
ISP (Internet)
institutional router
Ethernet institutional mail,
switch web servers
Introduction: 1-26
Links: physical media
Wireless radio Radio link types:
▪ signal carried in ▪ terrestrial microwave
electromagnetic spectrum • up to 45 Mbps channels
▪ no physical “wire” ▪ Wireless LAN (WiFi)
• Up to 100’s Mbps
▪ broadcast and “half-
duplex” (sender to receiver) ▪ wide-area (e.g., cellular)
▪ propagation environment • 4G cellular: ~ 10’s Mbps
effects: ▪ satellite
• reflection • up to 45 Mbps per channel
• obstruction by objects • 270 msec end-end delay
• interference • geosynchronous versus low-
earth-orbit
Introduction: 1-27
Mobile Data Speed Comparison
Introduction: 1-28
Chapter 1: roadmap
routers
● packet-switching: hosts
break application-layer
messages into packets local or
regional
○ forward packets from one ISP
destination
network
Introduction: 1-30
Packet-switching: store-and-forward
L bits
per packet
3 2 1
source destination
R bps R bps
● Transmission delay: takes L/R seconds to
transmit (push out) L-bit packet into link at R
bps One-hop numerical
● Store and forward: entire packet must arrive
example:
▪ L = 10 Kbits
at router before it can be transmitted on next
▪ R = 100 Mbps
link ▪ one-hop transmission
● End-end delay: 2L/R (above), assuming zero delay = 0.1 msec
propagation delay (more on delay shortly) Introduction: 1-31
Packet-switching: queueing delay, loss
R = 100 Mb/s C
A
D
B R = 1.5 Mb/s
E
queue of packets
waiting for output
link
Introduction: 1-32
Two key network-core functions
routing Routing:
algorithm
▪ global action:
Forwarding: local forwarding
local forwarding table
table
● local action:
header value output link determine source-
0100 3
move arriving 0101 2 destination paths
0111 2
packets from 1001 1 taken by packets
router’s input link
to appropriate ▪ routing algorithms
1
router output link
3 2
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-35
Packet switching versus 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 at Q: what happens if > 35 users ?
same time is less than .0004 *
* Check out the online interactive exercises for more examples: http://gaia.cs.umass.edu/kurose_ross/interactive
Introduction: 1-36
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-37
Internet structure: a “network of networks”
Introduction: 1-38
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 access
net net
access
net
access
net
access
net
access
net
access access
net access net
net
Introduction: 1-39
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
Introduction: 1-40
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
Introduction: 1-41
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 net
net ISP A
access
net ISP B access
net
access ISP C
net
access
net
access
net
access
net
access access
net access net
net
Introduction: 1-42
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 net
net ISP A
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
Introduction: 1-43
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 net
net ISP A
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
Introduction: 1-44
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 net
net ISP A
access ISP C
net
access
net
access
net regional ISP access
net
access access
net access net
net
Introduction: 1-45
Internet structure: a “network of networks”
…
… … …
links to/from Sprint customer networks
Introduction: 1-47
Chapter 1: roadmap
B
packets in buffers (queueing delay)
free (available) buffers: arriving packets
dropped (loss) if no free buffers
Introduction: 1-49
Packet delay: four sources
transmission
A propagation
B
nodal
processing queueing
B
nodal
processing queueing
Introduction: 1-53
Packet queueing delay (revisited)
average queueing
▪ R: link bandwidth (bps)
delay
▪ L: packet length (bits)
▪ a: average packet arrival rate
▪ La/R ~ 0: avg. queueing delay
traffic intensity = La/R 1
small
▪ La/R -> 1: avg. queueing delay La/R ~ 0
large
▪ La/R > 1: more “work” arriving is
more than can be serviced -
average delay infinite!
La/R -> 1
Introduction: 1-54
“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
Introduction: 1-55
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
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-57
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
linkpipe
capacity
that can linkthat
pipe capacity
can carry
Rs bits/sec
carry R c bits/sec
fluid at rate
server sends
server, with fluid at rate (Rc bits/sec)
filebits
of F bits (Rs bits/sec)
(fluid) into pipe
to send to client
Introduction: 1-58
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
Introduction: 1-59
Throughput: network scenario
▪ per-connection end-
Rs end throughput:
Rs Rs min(Rc,Rs,R/10)
▪ in practice: Rc or Rs
R is often bottleneck
Rc Rc
Rc
* Check out the online interactive exercises for more
examples: http://gaia.cs.umass.edu/kurose_ross/
Introduction: 1-63
Bad guys: denial of service
Denial of Service (DoS): attackers make resources
(server, bandwidth) unavailable to legitimate traffic
by overwhelming resource with bogus traffic
1. select target
Introduction: 1-64
Bad guys: packet interception
packet “sniffing”:
▪ broadcast media (shared Ethernet, wireless)
▪ promiscuous network interface reads/records all packets
(e.g., including passwords!) passing by
A C
src:B dest:A
payload B
A C
src:B dest:A
payload
B
1-68
Introduction
Organization of air travel
● a series of steps
1-69
Introduction
Layering of airline functionality
airplane routing airplane routing airplane routing airplane routing airplane routing
1-71
Introduction
Internet protocol stack
1-72
Introduction
ISO/OSI reference model
1-73
Introduction
Reference Models
The OSI
reference model.
Reference Models (2)
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-77
Introduction
Chapter 1: roadmap
1-84
Introduction
Chapter 1: summary
We’ve covered a “ton” of material!
▪ Internet overview
▪ what’s a protocol? You now have:
▪ network edge, access network, core ▪ context, overview,
• packet-switching versus circuit- vocabulary, “feel”
switching
• Internet structure of networking
▪ performance: loss, delay, throughput ▪ more depth,
▪ layering, service models detail, and fun to
follow!
▪ security
▪ history
Introduction: 1-85