Chapter 1 - Computer Networks and The Internet
Chapter 1 - Computer Networks and The Internet
Introduction
Introduction
1-1
Definition
What is a Computer Network
Interconnected Collection of autonomous Computers
Computer Networks are Ubiquitous
Cellular telephones
Cyber cafes
Home networks
Networked PCs in the office
Networked cars
Networked environmental sensors
Interplanetary Internet
Introduction
1-2
Chapter 1: Introduction
Our goal:
Overview:
Introduce basic
terminology and
concepts
Pieces of Computer
Network
more depth, detail
later in course
approach:
use Internet as
example
whats a protocol?
network edge
network core
access net, physical media
Internet/ISP structure
performance: loss, delay
network modeling (Quantitative
1-3
Chapter 1: roadmap
1.1 What is the Internet?
1.2 Network edge
1.3 Network core
1.4 Network access and physical media
1.5 Internet structure and ISPs
1.6 Delay & loss in packet-switched networks
1.7 Protocol layers, service models
Introduction
1-4
Introduction
1-5
Traditional
nontraditional
router
server
workstation
mobile
local ISP
network apps
communication links
running
regional ISP
company
network
Introduction
1-6
router
server
mobile
local ISP
Route or Path
Packet switching
regional ISP
workstation
1-7
ISP
router
server
workstation
mobile
local ISP
regional ISP
company
network
Introduction
1-8
Dialup
Broadband(cable/DSL)
High speed LAN access
Wireless Access
Internet access to content
providers (Connecting web
sites directly to the
Internet)
router
server
workstation
mobile
local ISP
regional ISP
Tier of ISP
company
network
Introduction
1-9
Internet: network of
networks
router
server
workstation
mobile
local ISP
loosely hierarchical
public Internet versus
private intranet (firewall)
regional ISP
Internet standards
company
network
Introduction
1-10
communication
infrastructure enables
distributed applications:
communication services
provided to apps:
connection-oriented reliable
Reliable
Connectionless unreliable
No guarantees
Introduction
1-11
Internet is an infrastructure
in which new applications are
being constantly invented and
deployed
Introduction
1-12
Whats a protocol?
human protocols:
What do we do when
we want to ask
someone for the time
of day?
whats the time?
I have a question
introductions
specific msgs sent
specific actions taken
when msgs received, or
other events
Hi
Hi
Got the
time?
2:00
time
time
Introduction
1-13
H/W implemented
protocols in the NIC
Congestion control
protocols in end
systems
Protocols in routers
TCP connection
req
TCP connection
response
Get http://www.awl.com/kurose-ross
<file>
time
time
Introduction
1-14
Web client
Web server
TCP connection
req
TCP connection
response
Get http://www.awl.com/kurose-ross
<file>
time
time
Introduction
1-15
TCP connection
req
Hi
TCP connection
response
Got the
time?
Get http://www.awl.com/kurose-ross
2:00
<file>
time
Introduction
1-16
exchanged
between
two
or
more
Introduction
1-17
Chapter 1: roadmap
1.1 What is the Internet?
1.2 Network edge
1.3 Network core
1.4 Network access and physical media
1.5 Internet structure and ISPs
1.6 Delay & loss in packet-switched networks
1.7 Protocol layers, service models
Introduction
1-18
and hosts
network core:
routers
network of networks
Introduction
1-19
Desktop computers
Servers
Mobile computers
Other devices
Thin clients
Household appliances etc.
at edge of network
Hosts client and server
Introduction
1-20
the conetext of
networking software)
1-21
Introduction
1-22
each other.
What are the characteristics of the communication
services that the Internet provides to its end
systems.
TCP/IP networks and in particular the Internet,
provide two types of services to end-systems
applications:
Connection-oriented service
Connectionless service
Introduction
1-23
TCP - Transmission
Control Protocol
flow control:
loss: acknowledgements
and retransmissions
sender wont overwhelm
receiver
congestion control:
1-24
same as before!
No handshaking
connectionless
unreliable data transfer
no flow control
no congestion control
transfer), Telnet
(remote login), SMTP
(email)
teleconferencing, DNS,
Internet telephony
Introduction
1-25
Chapter 1: roadmap
1.1 What is the Internet?
1.2 Network edge
1.3 Network core
1.4 Network access and physical media
1.5 Internet structure and ISPs
1.6 Delay & loss in packet-switched networks
1.7 Protocol layers, service models
Introduction
1-26
1-27
Analogy
Introduction
1-28
capacity
dedicated resources:
no sharing
circuit-like
(guaranteed)
performance
call setup required
Introduction
1-29
idle if
not used by owning call
(no sharing)
resource piece
into pieces
frequency division
Ex telephone
networks, FM
radio stations
time division
Introduction
1-30
FDM
4 users
frequency
time
TDM
frequency
time
Introduction
1-31
Numerical example
How long does it take to send a file of
Work it out!
Introduction
1-32
resource contention:
aggregate resource
demand can exceed
amount available
congestion: packets
queue, wait for link use
store and forward:
packets move one hop
at a time
Introduction
1-33
Introduction
1-34
Introduction
1-35
A
B
statistical multiplexing
1.5 Mb/s
queue of packets
waiting for output
link
1-36
Packet Switching:
L
A
1-37
Packet-switching: store-and-forward
L
R
Example:
L = 7.5 Mbits
R = 1.5 Mbps
delay = 15 sec
Introduction
1-38
services
Introduction
1-39
Introduction
1-40
N users
1 Mbps link
Introduction
1-41
N users
1 Mbps link
Introduction
1-42
Introduction
1-43
Suppose there are 10 users and that user one suddenly generates
one thousand 1000-bit packets, while other users remain idle and
do not generate packets.
Circuit switching
With TDM circuit switching with 10 slots per frame and each slot consisting of
1000 bits, the active user can only use its one time slot per frame to transmit
data, while the remaining nine slots in each frame remain idle.
It will be 10 seconds before all of the active users one million bits of data has
been transmitted.
Packet switching
The active user can continuously send its packets at the full link rate of 1 mbps,
since there are no other users generating packets that need to be multiplexed
with the active users packets.
All of the active users data will be transmitted within 1 second.
Introduction
1-44
demand
Introduction
1-45
Introduction
1-46
Introduction
1-47
A
B
statistical multiplexing
1.5 Mb/s
queue of packets
waiting for output
link
1-48
datagram network:
each packet carries tag (virtual circuit ID), tag determines next
hop, Translation Table
Ex : X.25, frame relay, ATM
fixed path determined at call setup time, remains fixed thru call
routers maintain connection-state information
Introduction
1-49
Network Taxonomy
Telecommunication
networks
Circuit-switched
networks
FDM
TDM
Packet-switched
networks
Networks
with VCs
Datagram
Networks
Introduction
1-50
Chapter 1: roadmap
1.1 What is the Internet?
1.2 Network edge
1.3 Network core
1.4 Network access and physical media
1.5 Internet structure and ISPs
1.6 Delay & loss in packet-switched networks
1.7 Protocol layers, service models
Introduction
1-51
the infrastructure to
connect the customer
premises into the network
infrastructure.
Introduction
1-52
Introduction
1-53
Residential access:
Dialup via modem
Broadband access technologies
DSL
HFC
Introduction
1-54
Introduction
1-55
subscriber line
Surf and phone at the same
time always on
Higher bit rates
up to 1 Mbps upstream (today typically < 256 kbps)
up to 8 Mbps downstream (today typically < 1 Mbps)
FDM: 50 kHz - 1 MHz for downstream
4 kHz - 50 kHz for upstream
0 kHz - 4 kHz for ordinary telephone
Introduction
1-56
Introduction
1-57
ISP router
1-58
Introduction
1-59
cable headend
cable distribution
network (simplified)
home
Introduction
1-60
cable headend
cable distribution
network (simplified)
home
Introduction
1-61
cable headend
cable distribution
network
home
Introduction
1-62
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
Channels
cable headend
cable distribution
network
home
Introduction
1-63
LANs: chapter 5
Introduction
1-64
shared
wireless LANs:
802.11b (WiFi): 11 Mbps
wider-area wireless access
provided by telco operator
3G ~ 384 kbps
Will it happen??
WAP/GPRS in Europe
router
base
station
mobile
hosts
Introduction
1-65
Home networks
Typical home network components:
ADSL or cable modem
router/firewall/NAT
Ethernet
wireless access
point
to/from
cable
headend
cable
modem
router/
firewall
Ethernet
wireless
laptops
wireless
access
point
Introduction
1-66
Physical Media
Bit: propagates between
transmitter/rcvr pairs
physical link: what lies
between transmitter &
receiver
guided media:
Category 3: traditional
phone wires, 10 Mbps
Ethernet
Category 5:
100Mbps Ethernet
unguided media:
signals propagate freely,
e.g., radio
Introduction
1-67
1-68
Introduction
1-69
electromagnetic noise
Backbone of the Internet
High cost of optical devices transmitters, receivers and
switches
Introduction
1-70
Introduction
1-71
Introduction
1-72
Introduction
1-73
satellite
up to 50Mbps channel (or multiple smaller channels)
270 msec end-end delay
geosynchronous versus low altitude
Introduction
1-74
Introduction
1-75
Introduction
1-76
Chapter 1: roadmap
1.1 What is the Internet?
1.2 Network edge
1.3 Network core
1.4 Network access and physical media
1.5 Internet structure and ISPs
1.6 Delay & loss in packet-switched networks
1.7 Protocol layers, service models
Introduction
1-77
Tier 1 ISP
Tier 1 ISP
NAP
also interconnect
at public network
access points
(NAPs)
Tier 1 ISP
POP Points
of Presence
Introduction
1-78
Introduction
1-79
Tier-2
ISP pays
tier-1 ISP for
connectivity to
rest of Internet
tier-2 ISP is
customer of
tier-1 provider
Tier-2 ISP
Tier-2 ISP
Tier 1 ISP
Tier 1 ISP
Tier-2 ISP
NAP
Tier 1 ISP
Tier-2 ISPs
also peer
privately with
each other,
interconnect
at NAP
Tier-2 ISP
Tier-2 ISP
Introduction
1-80
Tier 3
ISP
Tier-2 ISP
local
ISP
local
ISP
local
ISP
Tier-2 ISP
Tier 1 ISP
Tier 1 ISP
Tier-2 ISP
local
local
ISP
ISP
NAP
Tier 1 ISP
Tier-2 ISP
local
ISP
Tier-2 ISP
local
ISP
Introduction
1-81
local
ISP
Tier 3
ISP
Tier-2 ISP
local
ISP
local
ISP
local
ISP
Tier-2 ISP
Tier 1 ISP
Tier 1 ISP
Tier-2 ISP
local
local
ISP
ISP
NAP
Tier 1 ISP
Tier-2 ISP
local
ISP
Tier-2 ISP
local
ISP
Introduction
1-82
Chapter 1: roadmap
1.1 What is the Internet?
1.2 Network edge
1.3 Network core
1.4 Network access and physical media
1.5 Internet structure and ISPs
1.6 Delay & loss in packet-switched networks
1.7 Protocol layers, service models
1.8 History
Introduction
1-83
Introduction
What can happen to a
packet as it travels
from its source to its
destination?
router
server
workstation
mobile
local ISP
Types of delays
Nodal processing delay
Queuing delay
Transmission delay
Propagation delay
Total Nodal Delay
regional ISP
company
network
Introduction
1-84
R1
A
B
R2
Introduction
1-85
2. queueing delay
transmission
propagation
nodal
processing
queueing
Introduction
1-86
3. Transmission delay:
Amount of time required to
R1
transmission
propagation
R2
B
nodal
processing
queueing
Introduction
1-87
Caravan analogy
100 km
ten-car
caravan
toll
booth
10 cars
Cars propagate at
100 km/hr
Toll booth takes 12 sec to
service a car (transmission
time)
car~bit; caravan ~ packet
Q: How long until caravan is
lined up before 2nd toll booth?
100 km
toll
booth
1-88
toll
booth
1000 km/hr
Toll booth now takes 1
min to service a car
Q: Will cars arrive to
2nd booth before all
cars serviced at 1st
booth?
100 km
toll
booth
Introduction
1-89
Nodal delay
d nodal d proc d queue d trans d prop
Contribution of these delay components
dproc = processing delay
depends on congestion
1-90
1-91
periodically
o Arrival process to a queue is random
1-92
Packet loss
queue (aka buffer) preceding link in buffer
1-93
End-to-End Delay
Nodal delay
Delay from source to destination
Suppose
N-1 routers between source and destination
Network is uncongested
Queuing delay negligible
R bps=transmission rate
dtrans =L/R
1-94
1-95
Trip delays
1-96
3 probes
3 probes
3 probes
Introduction
1-97
1-98
Chapter 1: roadmap
1.1 What is the Internet?
1.2 Network edge
1.3 Network core
1.4 Network access and physical media
1.5 Internet structure and ISPs
1.6 Delay & loss in packet-switched networks
1.7 Protocol layers, service models
Introduction
1-99
Protocol Layers
Networks are complex!
many pieces:
hosts
routers
links of various
media
applications
protocols
hardware,
software
Question:
Is there any hope of
organizing structure of
network?
Or at least our discussion of
networks?
Introduction
1-100
ticket (complain)
baggage (check)
baggage (claim)
gates (load)
gates (unload)
runway takeoff
runway landing
airplane routing
airplane routing
airplane routing
a series of steps/actions
functionality
Introduction
1-101
ticket (complain)
ticket
baggage (check)
baggage (claim
baggage
gates (load)
gates (unload)
gate
runway (takeoff)
runway (land)
takeoff/landing
airplane routing
airplane routing
airplane routing
departure
airport
airplane routing
airplane routing
intermediate air-traffic
control centers
arrival
airport
1-102
Why layering?
Dealing with complex systems:
explicit structure allows identification,
Introduction
1-103
Drawback of layering?
One layer may duplicate lower layer functionality
For example, many protocol stacks provide error
recovery on both a link basis and an end-to-end basis.
Functionality at one layer may need information
Introduction
1-104
source to destination
network elements
application
transport
network
link
physical
PPP, Ethernet
Introduction
1-105
source
message
segment Ht
datagram Hn Ht
frame Hl Hn Ht
M
M
M
M
Encapsulation
application
transport
network
link
physical
Hl Hn Ht
link
physical
Hl Hn Ht
switch
destination
M
Ht
Hn Ht
Hl Hn Ht
application
transport
network
link
physical
Hn Ht
Hl Hn Ht
network
link
physical
Hn Ht
Hl Hn Ht
router
Introduction
1-106
Introduction: Summary
Covered a ton of material!
Internet overview
whats a protocol?
network edge, core, access
network
packet-switching versus
circuit-switching
Internet/ISP structure
performance: loss, delay
layering and service
models
history
Introduction
1-107
End
Introduction
1-108