Introduction: 1-1
Chapter 1�Introduction
A note on the use of these PowerPoint slides:
We’re making these slides freely available to all (faculty, students, readers). They’re in PowerPoint form so you see the animations; and can add, modify, and delete slides (including this one) and slide content to suit your needs. They obviously represent a lot of work on our part. In return for use, we only ask the following:
For a revision history, see the slide note for this page.
Thanks and enjoy! JFK/KWR
All material copyright 1996-2023
J.F Kurose and K.W. Ross, All Rights Reserved
Computer Networking: A Top-Down Approach �8th edition �Jim Kurose, Keith Ross�Pearson, 2020
Chapter 1: introduction
Chapter goal:
Overview/roadmap:
Introduction: 1-2
The Internet: a “nuts and bolts” view
Introduction: 1-3
Internet
mobile network
home network
enterprise
network
national or global ISP
local or regional ISP
datacenter
network
content
provider
network
Packet switches: forward packets (chunks of data)
Communication links
Billions of connected computing devices:
Networks
“Fun” Internet-connected devices
Introduction: 1-4
Web-enabled toaster +
weather forecaster
Internet phones
Slingbox: remote
control cable TV
Security Camera
IP picture frame
Internet
refrigerator
Tweet-a-watt:
monitor energy use
sensorized,
bed
mattress
Amazon Echo
Others?
Gaming devices
cars
scooters
bikes
Pacemaker & Monitor
AR devices
Fitbit
diapers
The Internet: a “nuts and bolts” view
Introduction: 1-5
mobile network
home network
enterprise
network
national or global ISP
local or regional ISP
datacenter
network
content
provider
network
Ethernet
HTTP
Skype
IP
WiFi
4G
TCP
Streaming
video
The Internet: a “services” view
Introduction: 1-6
mobile network
home network
enterprise
network
national or global ISP
local or regional ISP
datacenter
network
content
provider
network
HTTP
Skype
Streaming
video
What’s a protocol?
Introduction: 1-7
Human protocols:
Network protocols:
Protocols define the format, order of messages sent and received among network entities, and actions taken on message transmission, receipt
Rules for:
… specific messages sent
… specific actions taken when message received, or other events
What’s a protocol?
Introduction: 1-8
A human protocol and a computer network protocol:
Q: other human protocols?
Hi
Hi
Got the
time?
2:00
time
TCP connection
response
<file>
TCP connection
request
GET http://gaia.cs.umass.edu/kurose_ross
Chapter 1: roadmap
Introduction: 1-9
A closer look at Internet structure
Network edge:
Introduction: 1-10
mobile network
home network
enterprise
network
national or global ISP
local or regional ISP
datacenter
network
content
provider
network
A closer look at Internet structure
Network edge:
Access networks, physical media:
Introduction: 1-11
mobile network
home network
enterprise
network
national or global ISP
local or regional ISP
datacenter
network
content
provider
network
A closer look at Internet structure
Network edge:
Access networks, physical media:
Network core:
Introduction: 1-12
mobile network
home network
enterprise
network
national or global ISP
local or regional ISP
datacenter
network
content
provider
network
Access networks and physical media
Q: How to connect end systems to edge router?
Introduction: 1-13
mobile network
home network
enterprise
network
national or global ISP
local or regional ISP
datacenter
network
content
provider
network
Access networks: cable-based access
Introduction: 1-14
cable
modem
splitter
…
cable headend
Channels
V
I
D
E
O
V
I
D
E
O
V
I
D
E
O
V
I
D
E
O
V
I
D
E
O
V
I
D
E
O
D
A
T
A
D
A
T
A
C
O
N
T
R
O
L
1
2
3
4
5
6
7
8
9
frequency division multiplexing (FDM): different channels transmitted in different frequency bands
Access networks: cable-based access
Introduction: 1-15
cable
modem
splitter
…
cable headend
data, TV transmitted at different
frequencies over shared cable
distribution network
cable modem
termination system
CMTS
ISP
Access networks: digital subscriber line (DSL)
Introduction: 1-16
ISP
central office
telephone
network
DSLAM
voice, data transmitted
at different frequencies over
dedicated line to central office
DSL
modem
splitter
DSL access
multiplexer
Access networks: home networks
Introduction: 1-17
to/from headend or central office
cable or DSL modem
router, firewall, NAT
wired Ethernet (1 Gbps)
WiFi wireless access
point (54, 450 Mbps)
Wireless and wired
devices
often combined
in single box
Wireless access networks
Introduction: 1-18
Shared wireless access network connects end system to router
Wireless local area networks (WLANs)
to Internet
to Internet
Wide-area cellular access networks
Access networks: enterprise networks
Introduction: 1-19
Ethernet
switch
institutional mail,
web servers
institutional router
Enterprise link to
ISP (Internet)
Access networks: data center networks
Introduction: 1-20
mobile network
home network
enterprise
network
national or global ISP
local or regional ISP
datacenter
network
content
provider
network
Courtesy: Massachusetts Green High Performance Computing Center (mghpcc.org)
Host: sends packets of data
Introduction: 1-21
host sending function:
R: link transmission rate
host
1
2
two packets,
L bits each
packet
transmission
delay
time needed to
transmit L-bit
packet into link
L (bits)
R (bits/sec)
=
=
Links: physical media
Introduction: 1-22
Twisted pair (TP)
Links: physical media
Introduction: 1-23
Coaxial cable:
Fiber optic cable:
Links: physical media
Introduction: 1-24
Wireless radio
Radio link types:
Chapter 1: roadmap
Introduction: 1-25
The network core
Introduction: 1-26
mobile network
home network
enterprise
network
national or global ISP
local or regional ISP
datacenter
network
content
provider
network
Two key network-core functions
Forwarding:
Introduction: 1-27
1
2
3
0111
destination address in arriving
packet’s header
routing algorithm
header value
output link
0100
0101
0111
1001
3
2
2
1
local forwarding table
local forwarding table
Routing:
routing algorithm
Introduction: 1-28
routing
Introduction: 1-29
forwarding
forwarding
Packet-switching: store-and-forward
Introduction: 1-30
source
R bps
destination
1
2
3
L bits
per packet
R bps
One-hop numerical example:
Packet-switching: queueing
Introduction: 1-31
A
B
C
R = 100 Mb/s
R = 1.5 Mb/s
D
E
queue of packets
waiting for transmission over output link
Queueing occurs when work arrives faster than it can be serviced:
Packet-switching: queueing
Packet queuing and loss: if arrival rate (in bps) to link exceeds transmission rate (bps) of link for some period of time:
Introduction: 1-32
A
B
C
R = 100 Mb/s
R = 1.5 Mb/s
D
E
queue of packets
waiting for transmission over output link
Alternative to packet switching: circuit switching
end-end resources allocated to, reserved for “call” between source and destination
Introduction: 1-33
* Check out the online interactive exercises for more examples: http://gaia.cs.umass.edu/kurose_ross/interactive
Circuit switching: FDM and TDM
Frequency Division Multiplexing (FDM)
Introduction: 1-34
frequency
time
frequency
time
4 users
Time Division Multiplexing (TDM)
Packet switching versus circuit switching
Introduction: 1-35
example:
Q: how many users can use this network under circuit-switching and packet switching?
* Check out the online interactive exercises for more examples: http://gaia.cs.umass.edu/kurose_ross/interactive
N
users
1 Gbps link
…..
Q: how did we get value 0.0004?
A: HW problem (for those with course in probability only)
Packet switching versus circuit switching
Introduction: 1-36
Is packet switching a “slam dunk winner”?
Q: human analogies of reserved resources (circuit switching) versus on-demand allocation (packet switching)?
Internet structure: a “network of networks”
Let’s take a stepwise approach to describe current Internet structure
mobile network
home network
enterprise
network
national or global ISP
local or regional ISP
datacenter
network
content
provider
network
Internet structure: a “network of networks”
Introduction: 1-38
Question: given millions of access ISPs, how to connect them together?
access
net
access
net
access
net
access
net
access
net
access
net
access
net
access
net
access
net
access
net
access
net
access
net
access
net
access
net
access
net
access
net
…
…
…
…
…
…
Internet structure: a “network of networks”
Introduction: 1-39
…
…
…
…
…
Question: given millions of access ISPs, how to connect them together?
access
net
access
net
access
net
access
net
access
net
access
net
access
net
access
net
access
net
access
net
access
net
access
net
access
net
access
net
access
net
access
net
…
…
…
…
…
…
connecting each access ISP to each other directly doesn’t scale: O(N2) connections.
Internet structure: a “network of networks”
Introduction: 1-40
Option: connect each access ISP to one global transit ISP?
Customer and provider ISPs have economic agreement.
global�ISP
access
net
access
net
access
net
access
net
access
net
access
net
access
net
access
net
access
net
access
net
access
net
access
net
access
net
access
net
access
net
access
net
…
…
…
…
…
…
Internet structure: a “network of networks”
Introduction: 1-41
ISP A
ISP C
ISP B
access
net
access
net
access
net
access
net
access
net
access
net
access
net
access
net
access
net
access
net
access
net
access
net
access
net
access
net
access
net
access
net
…
…
…
…
…
…
But if one global ISP is viable business, there will be competitors ….
Internet structure: a “network of networks”
Introduction: 1-42
ISP A
ISP C
ISP B
access
net
access
net
access
net
access
net
access
net
access
net
access
net
access
net
access
net
access
net
access
net
access
net
access
net
access
net
access
net
access
net
…
…
…
…
…
…
But if one global ISP is viable business, there will be competitors …. who will want to be connected
IXP
peering link
Internet exchange point
IXP
Internet structure: a “network of networks”
Introduction: 1-43
ISP A
ISP C
ISP B
access
net
access
net
access
net
access
net
access
net
access
net
access
net
access
net
access
net
access
net
access
net
…
…
…
…
…
…
… and regional networks may arise to connect access nets to ISPs
IXP
IXP
access
net
access
net
regional ISP
access
net
access
net
access
net
Internet structure: a “network of networks”
Introduction: 1-44
ISP A
ISP C
ISP B
access
net
access
net
access
net
access
net
access
net
access
net
access
net
access
net
access
net
access
net
access
net
…
…
…
…
…
…
… and content provider networks (e.g., Google, Microsoft, Akamai) may run their own network, to bring services, content close to end users
IXP
IXP
access
net
access
net
access
net
access
net
access
net
Content provider network
regional ISP
Internet structure: a “network of networks”
Introduction: 1-45
access
ISP
access
ISP
access
ISP
access
ISP
access
ISP
access
ISP
access
ISP
access
ISP
At “center”: small # of well-connected large networks
Regional ISP
Regional ISP
Tier 1 ISP
Tier 1 ISP
IXP
IXP
IXP
Chapter 1: roadmap
Introduction: 1-46
How do packet delay and loss occur?
Introduction: 1-47
A
B
packet being transmitted (transmission delay)
packets in buffers (queueing delay)
free (available) buffers: arriving packets
dropped (loss) if no free buffers
Packet delay: four sources
Introduction: 1-48
dproc: nodal processing
dqueue: queueing delay
propagation
nodal
processing
queueing
dnodal = dproc + dqueue + dtrans + dprop
A
B
transmission
Packet delay: four sources
Introduction: 1-49
propagation
nodal
processing
queueing
dnodal = dproc + dqueue + dtrans + dprop
A
B
transmission
dtrans: transmission delay:
dprop: propagation delay:
dtrans and dprop
very different
Caravan analogy
Introduction: 1-50
toll booth
toll booth
(aka link)
ten-car caravan
(aka 10-bit packet)
100 km
100 km
toll booth
toll booth
(aka link)
toll booth
Caravan analogy
Introduction: 1-51
toll booth
toll booth
(aka router)
ten-car caravan
(aka 10-bit packet)
100 km
100 km
A: Yes! after 7 min, first car arrives at second booth; three cars still at first booth
Packet queueing delay (revisited)
Introduction: 1-52
La/R ~ 0
La/R -> 1
traffic intensity = La/R
average queueing delay
1
service rate of bits
R
arrival rate of bits
L
a
.
:
“traffic
intensity”
“Real” Internet delays and routes
Introduction: 1-53
3 probes
3 probes
3 probes
Real Internet delays and routes
Introduction: 1-54
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 cht-vbns.gw.umass.edu (128.119.3.130) 6 ms 5 ms 5 ms
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
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
12 nio-n2.cssi.renater.fr (193.51.206.13) 111 ms 114 ms 116 ms
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 * * *
19 fantasia.eurecom.fr (193.55.113.142) 132 ms 128 ms 136 ms
traceroute: gaia.cs.umass.edu to www.eurecom.fr
* Do some traceroutes from exotic countries at www.traceroute.org
* means no response (probe lost, router not replying)
3 delay measurements from
gaia.cs.umass.edu to cs-gw.cs.umass.edu
3 delay measurements
to border1-rt-fa5-1-0.gw.umass.edu
looks like delays decrease! Why?
trans-oceanic link
Packet loss
Introduction: 1-55
A
B
packet being transmitted
buffer
(waiting area)
* Check out the Java applet for an interactive animation (on publisher’s website) of queuing and loss
packet arriving to
full buffer is lost
Throughput
Introduction: 1-56
server, with
file of F bits
to send to client
link capacity
Rs bits/sec
link capacity
Rc bits/sec
server sends bits
(fluid) into pipe
pipe that can carry
fluid at rate
(Rs bits/sec)
pipe that can carry
fluid at rate
(Rc bits/sec)
Throughput
Introduction: 1-57
Rs < Rc What is average end-end throughput?
Rs bits/sec
Rc bits/sec
Rs > Rc What is average end-end throughput?
link on end-end path that constrains end-end throughput
bottleneck link
Rs bits/sec
Rc bits/sec
Throughput: network scenario
Introduction: 1-58
10 connections (fairly) share backbone bottleneck link R bits/sec
Rs
Rs
Rs
Rc
Rc
Rc
R
* Check out the online interactive exercises for more examples: http://gaia.cs.umass.edu/kurose_ross/
Chapter 1: roadmap
Introduction: 1-59
Network security
Introduction: 1-60
Network security
Introduction: 1-61
Bad guys: packet interception
Introduction: 1-62
packet “sniffing”:
A
B
C
src:B dest:A payload
Wireshark software used for our end-of-chapter labs is a (free) packet-sniffer
Bad guys: fake identity
Introduction: 1-63
IP spoofing: injection of packet with false source address
A
B
C
src:B dest:A payload
Bad guys: denial of service
Introduction: 1-64
target
Denial of Service (DoS): attackers make resources (server, bandwidth) unavailable to legitimate traffic by overwhelming resource with bogus traffic
1. select target
2. break into hosts around the network (see botnet)
3. send packets to target from compromised hosts
Lines of defense:
Introduction: 1-65
… lots more on security (throughout, Chapter 8)
Chapter 1: roadmap
Introduction: 1-66
Protocol “layers” and reference models
Introduction: 1-67
Networks are complex,
with many “pieces”:
Question: is there any hope of organizing structure of network?
Example: organization of air travel
Introduction: 1-68
ticket (purchase)
baggage (check)
gates (load)
runway takeoff
airplane routing
ticket (complain)
baggage (claim)
gates (unload)
runway landing
airplane routing
airplane routing
How would you define/discuss the system of airline travel?
end-to-end transfer of person plus baggage
Example: organization of air travel
Introduction: 1-69
ticket (purchase)
baggage (check)
gates (load)
runway takeoff
airplane routing
ticket (complain)
baggage (claim)
gates (unload)
runway landing
airplane routing
airplane routing
ticketing service
baggage service
gate service
runway service
routing service
layers: each layer implements a service
Why layering?
Introduction: 1-70
Approach to designing/discussing complex systems:
Layered Internet protocol stack
Introduction: 1-71
link
application
network
transport
physical
application
transport
network
link
physical
Services, Layering and Encapsulation
Introduction: 1-72
source
application
transport
network
link
physical
destination
application
transport
network
link
physical
Transport-layer protocol transfers M (e.g., reliably) from one process to another, using services of network layer
Ht
M
Application exchanges messages to implement some application service using services of transport layer
M
Services, Layering and Encapsulation
Introduction: 1-73
source
Transport-layer protocol transfers M (e.g., reliably) from one process to another, using services of network layer
Ht
M
application
transport
network
link
physical
destination
M
application
transport
network
link
physical
M
Ht
Hn
Network-layer protocol transfers transport-layer segment [Ht | M] from one host to another, using link layer services
Services, Layering and Encapsulation
Introduction: 1-74
source
Ht
M
application
transport
network
link
physical
destination
M
application
transport
network
link
physical
M
Ht
Hn
Link-layer protocol transfers datagram [Hn| [Ht |M] from host to neighboring host, using network-layer services
M
Ht
Hn
Hl
M
Ht
Hn
Network-layer protocol transfers transport-layer segment [Ht | M] from one host to another, using link layer services
Encapsulation
Introduction: 1-75
message
segment
datagram
frame
Matryoshka dolls (stacking dolls)
Services, Layering and Encapsulation
Introduction: 1-76
source
application
transport
network
link
physical
destination
application
transport
network
link
physical
M
Ht
Hn
Hl
M
Ht
Hn
Ht
M
M
M
message
Ht
M
segment
M
Ht
Hn
datagram
frame
M
Ht
Hn
Hl
Encapsulation: an end-end view
Introduction: 1-77
network
link
physical
application
transport
network
link
physical
application
transport
network
link
physical
source
Ht
Hn
M
segment
Ht
datagram
destination
Ht
Hn
Hl
M
Ht
Hn
M
Ht
M
M
Ht
Hn
Hl
M
Ht
Hn
M
Ht
Hn
M
Ht
Hn
Hl
M
router
switch
message
M
Ht
M
Hn
frame
link
physical
Chapter 1: roadmap
Introduction: 1-78
Internet history
1961-1972: Early packet-switching principles
Internet history
Introduction: 1-80
1972-1980: Internetworking, new and proprietary networks
Cerf and Kahn’s internetworking principles:
define today’s Internet architecture
Internet history
Introduction: 1-81
1980-1990: new protocols, a proliferation of networks
Internet history
Introduction: 1-82
late 1990s – 2000s:
1990, 2000s: commercialization, the Web, new applications
Internet history
Introduction: 1-83
2005-present: scale, SDN, mobility, cloud
Chapter 1: summary
Introduction: 1-84
We’ve covered a “ton” of material!
You now have:
Additional Chapter 1 slides
Introduction: 1-85
ISO/OSI reference model
Introduction: 1-86
Two layers not found in Internet protocol stack!
application
presentation
session
transport
network
link
physical
The seven layer OSI/ISO
reference model
Services, Layering and Encapsulation
Introduction: 1-87
source
application
transport
network
link
physical
destination
application
transport
network
link
physical
Ht
M
M
M
Ht
Hn
M
Ht
Hn
Hl
M
Ht
Hn
Ht
M
M
message
segment
datagram
frame
M
Ht
Hn
Hl
Wireshark
Introduction: 1-88
Transport (TCP/UDP)
Network (IP)
Link (Ethernet)
Physical
application
(www browser,
email client)
application
OS
packet
capture
(pcap)
packet
analyzer
copy of all Ethernet frames sent/received