w1 Overview of Computer Network 2024
w1 Overview of Computer Network 2024
Overview of
Computer Network
Introduction 1-1
Chapter 1: Introduction
Our goal: Overview:
get “feel” and what’s the Internet?
terminology
what’s a protocol?
more depth, detail
later in course network edge; hosts, access
approach:
net, physical media
use Internet as network core: packet/circuit
example switching, Internet structure
performance: loss, delay,
throughput
security
protocol layers, service models
history
Introduction 1-2
Chapter 1: roadmap
1.1 What is the Internet?
1.2 Network edge
end systems, access networks, links
1.3 Network core
circuit switching, packet switching, network structure
1.4 Delay, loss and throughput in packet-switched
networks
1.5 Protocol layers, service models
1.6 Networks under attack: security
1.7 History
Introduction 1-3
What’s the Internet: “nuts and bolts” view
PC millions of connected Mobile network
server computing devices: Global ISP
wireless hosts = end systems
laptop
running network
cellular
handheld apps Home network
Regional ISP
communication links
access fiber, copper,
points
wired
radio, satellite Institutional network
links
transmission
rate = bandwidth
routers: forward
router
packets (chunks of
data)
Introduction 1-4
“Cool” internet appliances
IP picture frame
http://www.ceiva.com/
Web-enabled toaster +
weather forecaster
Introduction 1-6
Network Component
The Network System consists of 5 interconnected
components, namely:
1. Hardware / Network equipment consists of Data
Terminating Equipment (DTE): the starting and ending
place of sending and receiving data, for example: PC,
laptop, server, host, printer, etc. Data communicating
equipment (DCE) as an interface / network core, for
example router, switch, modem, hub
2. Software / Network operating system
3. Transmission medium / transmission link such as cable
and wireless
4. Communication protocol
5. Content / message sent / received
Introduction 1-7
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://www.awl.com/kurose-ross
2:00
<file>
time
Introduction 1-10
Internet structure: network of networks
roughly hierarchical
End systems connect to Internet via access ISPs (Internet
Service Providers)
Residential, company and university ISPs
Access ISPs in turn must be interconnected.
So that any two hosts can send packets to each other
See warrior of the net film
at center: “tier-1” ISPs (e.g., Verizon, Sprint, AT&T, Cable and
Wireless), national/international coverage
treat each other as equals
Tier-1
providers
Tier 1 ISP
interconnect
(peer)
privately
Tier 1 ISP Tier 1 ISP
Introduction 1-11
Internet structure: 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
access
IXP access
net
net
ISP A
Content provider network
access IXP access
net ISP B net
access
ISP B
net
access
net
access
net regional net
access
net
access access
net access net
net
Tier-1 ISP: e.g., Sprint
POP: point-of-presence
to/from backbone
peering
… …
.
…
…
to/from customers
Introduction 1-13
Internet structure: network of networks
Tier-2 ISPs
Tier-2 ISP pays Tier-2 ISP also peer
Tier-2 ISP privately with
tier-1 ISP for
connectivity to Tier 1 ISP each other.
rest of Internet
tier-2 ISP is
customer of
tier-1 provider Tier 1 ISP Tier 1 ISP Tier-2 ISP
Introduction 1-14
Internet structure: network of networks
local
ISP Tier 3 local
local local
ISP ISP
ISP ISP
Local and tier- Tier-2 ISP Tier-2 ISP
3 ISPs are
customers of Tier 1 ISP
higher tier
ISPs
connecting
them to rest
Tier 1 ISP Tier 1 ISP Tier-2 ISP
of Internet
local
Tier-2 ISP Tier-2 ISP
ISP
local local local
ISP ISP ISP Introduction 1-15
Internet structure: network of networks
local
ISP Tier 3 local
local local
ISP ISP
ISP ISP
Tier-2 ISP Tier-2 ISP
Tier 1 ISP
Introduction 1-17
The network edge:
end systems (hosts):
run application programs
e.g. Web, email
at “edge of network” peer-peer
client/server model
client host requests, receives
service from always-on server
client/server
e.g. Web browser/server;
email client/server
peer-peer model:
minimal (or no) use of
dedicated servers
e.g. Skype, BitTorrent
Introduction 1-18
Q/A
explain what are the advantages and
disadvantages of client/server model based
network services
explain what are the advantages and
disadvantages of peer to peer model based
network services
Introduction 1-19
Access networks and physical media
Q: How to connect end
systems to edge router?
residential access nets
institutional access
networks (school,
company)
mobile access networks
Keep in mind:
bandwidth (bits per
second) of access
network?
shared or dedicated?
Introduction 1-20
Q/A
What is the difference between data
transfer speeds in terms of bandwidth,
throughput, and goodput?
What is the difference between the terms
internet, intranet and extranet? and give
examples
Introduction 1-21
Enterprise access networks (Ethernet)
institutional link to
ISP (Internet)
institutional router
wireless LANs:
within building (100 ft) wide-area wireless access
802.11b/g (WiFi): 11, 54 Mbps provided by telco (cellular)
transmission rate operator, 10’s km
between 1 and 10 Mbps
3G, 4G: LTE
to Internet
to Internet
Introduction 1-23
Host: sends packets of data
host sending function:
takes application message
breaks into smaller chunks,
known as packets, of length two packets,
L bits L bits each
transmits packet into
access network at
transmission rate R 2 1
link transmission rate, R: link transmission rate
aka link capacity, aka link host
bandwidth
Introduction 1-25
Physical Media: coax, fiber
Fiber optic cable:
Coaxial cable:
glass fiber carrying light
two concentric pulses, each pulse a bit
copper high-speed operation:
conductors high-speed point-to-point
transmission (e.g., 10’s-
bidirectional 100’s Gps)
broadband: low error rate: repeaters
spaced far apart ; immune
multiple channels
to electromagnetic noise
on cable
Introduction 1-26
Physical media: radio
signal carried in Radio link types:
electromagnetic terrestrial microwave
spectrum e.g. up to 45 Mbps channels
reflection satellite
obstruction by objects Kbps to 45Mbps channel (or
interference multiple smaller channels)
270 msec end-end delay
geosynchronous versus low
altitude
Introduction 1-27
Chapter 1: roadmap
1.1 What is the Internet?
1.2 Network edge
end systems, access networks, links
1.3 Network core
circuit switching, packet switching, network structure
1.4 Delay, loss and throughput in packet-switched
networks
1.5 Protocol layers, service models
1.6 Networks under attack: security
1.7 History
Introduction 1-28
The network core
mesh of interconnected
routers
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
each packet transmitted
at full link capacity
Introduction 1-29
Alternative core: circuit switching
end-end resources allocated
to, reserved for “call”
between source & dest:
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
Introduction 1-30
Circuit Switching: FDM and TDM
Example:
FDM
4 users
frequency
time
TDM
frequency
time
Introduction 1-31
Network Core: Packet Switching
each end-end data stream resource contention:
divided into packets aggregate resource
user A, B packets share demand can exceed
network resources amount available
each packet uses full link congestion: packets
bandwidth queue, wait for link use
resources used as needed store and forward:
packets move one hop
at a time
Node receives complete
packet before forwarding
Introduction 1-32
Packet-switching: store-and-forward
L bits
per packet
3 2 1
source destination
R bps R bps
1.5 Mb/s
B
queue of packets
waiting for output
link
D E
Sequence of A & B packets does not have fixed pattern, bandwidth
shared on demand statistical multiplexing.
TDM: each host gets same slot in revolving TDM frame.
queuing and loss:
If arrival rate (in bits) to link exceeds transmission rate of link for a
period of time:
packets will queue, wait to be transmitted on link
packets can be dropped (lost) if memory (buffer) fills up
Introduction 1-34
Two key network-core functions
routing: determines source- forwarding: move packets
destination route taken by from router’s input to
packets
routing algorithms appropriate router output
routing algorithm
Introduction 1-36
Chapter 1: roadmap
1.1 What is the Internet?
1.2 Network edge
end systems, access networks, links
1.3 Network core
circuit switching, packet switching, network structure
1.4 Delay, loss and throughput in packet-switched
networks
1.5 Protocol layers, service models
1.6 Networks under attack: security
1.7 History
Introduction 1-37
How do loss and delay occur?
packets queue in router buffers
packet arrival rate to link exceeds output link
capacity
packets queue, wait for turn
B
packets queueing (delay)
free (available) buffers: arriving packets
dropped (loss) if no free buffers
Introduction 1-38
Four sources of packet delay
1. dproc: nodal processing 2. dqueue: queueing delay
check bit errors time waiting at output link
determine output link for transmission
typically < msec depends on congestion
level of router
transmission
A propagation
B
nodal
processing queueing
Introduction 1-39
Delay in packet-switched networks
3. dtrans: transmission delay 4. dprop: propagation delay:
R=link bandwidth (bps) d = length of physical link
L=packet length (bits) s = propagation speed in
time to send bits into medium (equal.~3x108
link = dtrans = L/R m/sec)
propagation delay = d/s
typically < msec
transmission
A propagation
B
nodal Note: s and R are very different
processing queueing quantities!
Read in book chap 1
Introduction 1-40
Caravan analogy
100 km 100 km
ten-car toll toll
caravan booth booth
cars “propagate” at Time to “push” entire
100 km/hr caravan through toll
toll booth takes 12 sec to booth onto highway =
service car (transmission 12*10 = 120 sec
time) Time for last car to
car~bit; caravan ~ packet propagate from 1st to
2nd toll both:
Q: How long until caravan
100km/(100km/hr)= 1 hr
is lined up before 2nd toll
booth? A: 62 minutes
Introduction 1-41
Caravan analogy (more)
100 km 100 km
ten-car toll toll
caravan booth booth
Yes! After 7 min, 1st car
Cars now “propagate” at at 2nd booth and 3 cars
1000 km/hr still at 1st booth.
Toll booth now takes 1 1st bit of packet can
min to service a car arrive at 2nd router
Q: Will cars arrive to before packet is fully
2nd booth before all transmitted at 1st router!
cars serviced at 1st
booth?
Introduction 1-42
Nodal delay
dnodal dproc dqueue d trans dprop
average queueing
R: link bandwidth (bps)
delay
L: packet length (bits)
a: average packet
arrival rate
traffic intensity
La/R ~ 0: avg. queueing delay small = La/R
La/R -> 1: avg. queueing delay large La/R ~ 0
La/R > 1: more “work” arriving
than can be serviced, average delay infinite!
* Check out the Java applet for an interactive animation on queuing and loss La/R > 1
Introduction 1-44
“Real” Internet delays and routes
3 probes 3 probes
3 probes
Introduction 1-45
“Real” Internet delays and routes
traceroute: gaia.cs.umass.edu to www.eurecom.fr
Three packets 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 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 trans-oceanic
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 link
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 * * * * 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
Introduction 1-47