hk/~golin
• http://course.cs.ust.hk/comp361/fall2003/html/comp361.html (or
via instructor’s web site) contains all notes, announcements, etc.
Check it regularly!
1
Textbook: James Kurose and Keith Ross
Computer Networks: A Top Down Approach Featuring The Internet, 2nd ed.,
Addison Wesley, 2002
2
Chapter 1: Computer Networks and the Internet
Overview:
• 1.1 what’s the Internet?
• 1.2 what’s a protocol?
• 1.3 network edge – end devices
• 1.4 network core – circuit, packet, and
message switching
• 1.5 access networks & physical media
• 1.6 performance: loss, delay
• 1.7 protocol layers & service models
• 1.8 Internet backbones, NAPs, ISPs
3
What’s the Internet: “nuts and bolts” view
• Internet: “network of networks” router workstation
– loosely hierarchical: company
server
networks, access networks, local
ISPs (Internet Service Providers),
mobile
To backbone
regional ISPs local ISP provider
– millions of connected computing
devices: hosts, end-systems
– pc’s workstations, servers
– PDA’s phones, toasters
regional ISP
running network applications
• communication links made up of
different physical media:
– fiber, copper, radio, satellite
• routers: forward packets (chunks)
of data thru network
company
network
4
1.1 What’s the Internet: “nuts and bolts” view
• protocols control the sending and receiving of information
(messages) within the Internet
– e.g., TCP, IP, HTTP, FTP, PPP
• Internet standards
– IETF, the Internet Engineering Task Force, is where much of “standards”
in used in the Internet today were discussed and created. IETF is a forum
that is open to any interested individuals. The standards it created are
contained in documents known as RFC, Request for comments.
– Important websites:
• Internet Engineering Task Force (IETF) – www.ietf.org
• Internet Society – www.isoc.org
• The World Wide Web Consortium (W3C) – www.w3.org/Consortium
and others listed in section 1.1.3 of the text.
5
What’s the Internet: a service view
• communication infrastructure
enables distributed applications:
– WWW, email, games, e-commerce,
database, voting,
– more?
The dichotomy of
connectionless/connection-oriented
service can be applied to different
communication layers. We will return
later to the concept of layering.
6
Chapter 1: Computer Networks and the Internet
7
1.2 What’s a protocol?
protocols define format, order of … specific msgs (messages) sent
messages sent and received among … specific actions taken when
network entities, and actions taken msgs received, or other events
on msg transmission, receipt
network protocols:
• machines rather than humans
human protocols: • all communication activity in
• “what’s the time?” Internet governed by protocols
• “I have a question”
• introductions
Hi TCP connection
req.
Hi
TCP connection
Got the reply.
time? Get http://gaia.cs.umass.edu/index.htm
2:00
<file>
time
10
Chapter 1: Computer Networks and the Internet
11
1.3 The network edge:
• end systems (hosts):
– run application programs
– e.g., WWW, email
– at “edge of network”
• client/server model
– client initiates requests to and
receives service from server
– e.g., WWW client (browser)/
server; email client/server
• peer-peer model:
– host interaction is symmetric
– e.g.: teleconferencing
12
Network edge: connection-oriented service
13
Network edge: connectionless service
Goal: data transfer between
end systems App’s using TCP:
– same as before! • HTTP (WWW), FTP (file
• UDP - User Datagram transfer), Telnet (remote
Protocol [RFC 768]: login), SMTP (email)
Internet’s connectionless
service App’s using UDP:
– unreliable data transfer • streaming media,
– no flow control teleconferencing, Internet
– no congestion control telephony
– but faster!
14
Chapter 1: Computer Networks and the Internet
15
1.4 Network Core
16
Clarification
Transport Layer
TCP and UDP are Transport Layer protocols that provide connection-oriented and
connectionless services to Application Layer clients
Switching Paradigm
Circuit Switching vs Packet Switching (or Message Switching) occurs at the physical
switching layer. Circuit Switching is the system usually used by telephone networks
but is not used in the Internet (except, e.g., when you dial up to an ISP using a
modem).
17
Network Core - Circuit Switching
Circuit Switching
• call setup (and tear-down)
required
• split bandwidth into “pieces” by
– frequency division or
– time division
• Bandwidth and switch resources
reserved for the duration of a call
• dedicated resources:
no sharing
• circuit-like (guaranteed)
performance
• Ex: telephone network
18
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 transmitted at full congestion: packets
link bandwidth queue, wait for link use
• resources used as needed, store and forward:
packets move one hop
at a time
Bandwidth division into “pieces”
transmit over link
Dedicated allocation
wait turn at next link
Resource reservation
19
Network Core: Packet Switching
10 Mbs
A Ethernet statistical multiplexing C
1.5 Mbs
B
queue of packets 45 Mbs
waiting for output
link
D E
20
Packet switching versus circuit switching
Packet switching allows more users to use network!
• 1 Mbit link
• each user:
– 100Kbps when “active”
– active 10% of time N users
• circuit-switching: 1 Mbps link
– 10 users
• packet switching:
– with 35 users, the probability that
more than 10 users are active in a
given time is less than .004. When it
happens, excess packets are queued
up and suffer additional delays.
21
Packet switching versus circuit switching
Is packet switching a “slam dunk winner?”
22
Packet-switching: store-and-forward
L
R R R
23
Packet Switching: Message Segmenting
Now break up the message into
5000 packets
24
Packet-switched networks: routing
• Goal: move packets among routers from source to
destination
– we’ll study several path selection algorithms (chapter 4)
• datagram network:
– destination address determines next hop
– routes may change during session
– analogy: driving, asking directions
• virtual circuit network:
– each packet carries tag (virtual circuit ID), tag determines next hop
– fixed path determined at call setup time, remains fixed thru call
– routers maintain per-call state
25
Clarification
Transport Layer
TCP and UDP are Transport Layer protocols that provide connection-oriented and
connectionless services to Application Layer clients
Switching Paradigm
Circuit Switching vs Packet Switching (or Message Switching) occurs at the physical
switching layer. Circuit Switching is the system usually used by telephone networks
but is not used in the Internet (except, e.g., when you dial up to an ISP using a
modem).
26
Core Network - Summary
27
Chapter 1: Computer Networks and the Internet
28
1.5 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?
29
Residential access
Cable Modem
Point-to-point HFC: hybrid fiber coax
• Dialup via modem asymmetric: up to 10Mbps
– up to 56Kbps direct access to upstream, 1 Mbps downstream
router (conceptually) network of cable and fiber attaches
• ISDN: integrated services digital homes to ISP router
network: 128Kbps all-digital connect shared access to router among
homes
to router
issues: congestion, dimensioning
• ADSL: asymmetric digital subscriber
deployment: available via cable
line
companies
– up to 1 Mbps home-to-router
– up to 8 Mbps router-to-home
30
Institutional access: local area networks
• company/univ local area
network (LAN) connects end
system to edge router
• Ethernet:
– shared or dedicated cable
connects end system and
router
– 10 Mbs, 100Mbps, Gigabit
Ethernet
• deployment: institutions,
home LANs soon
• LANs: chapter 5
31
Wireless access networks
• shared wireless access
network connects end
system to router router
• wireless LANs:
– radio spectrum replaces wire base
– e.g., Lucent Wavelan 10 station
Mbps
• wider-area wireless access
– CDPD: wireless access to ISP
router via cellular network
mobile
hosts
32
Physical Media
Twisted Pair (TP)
• physical link: transmitted
data bit propagates across • two insulated copper
link wires
– Category 3: traditional
• guided media: phone wires, 10 Mbps
– signals propagate in solid Ethernet
media: copper, fiber – Category 5 TP: 100Mbps
• unguided media: Ethernet
– signals propagate freely, e.g.,
radio
33
Physical Media: coax, fiber
Coaxial cable: Fiber optic cable:
• wire (signal carrier) within a
concentric shield glass fiber carrying light
– Baseband (50 ohm): single pulses
channel on cable. ~1cm thick,
popular in old 10 Mbs high-speed operation:
Ethernet 100Mbps Ethernet
– Broadband (75 ohm): multiple
channels on cable, each high-speed point-to-point
channel shifted to a different transmission (e.g., 10 Gps)
frequency band. Thick and
stiffer, common in cable TV low error rate
systems.
• bidirectional
34
Physical media: radio
• signal carried in Radio link types:
electromagnetic spectrum microwave
• no physical “wire” e.g. up to 45 Mbps channels
36
1.6 Delay & Loss in packet-switched networks
B
packets queuing (delay)
free (available) buffers: arriving packets
dropped (loss) if no free buffers
37
Delay in packet-switched networks
packets experience delay on • 1. nodal processing:
end-to-end path – check bit errors
– determine output link
• four sources of delay at
• 2. queuing:
each hop
– time waiting at output link
for transmission
– depends on congestion
level of router
transmission
A propagation
B
nodal
processing queuing
38
Delay in packet-switched networks
3. transmission delay: 4. propagation delay:
• R=link bandwidth (bps) • d = length of physical link
• L=packet length (bits) • s = propagation speed in
• time to send bits into link medium (~2x108 m/sec)
= L/R • propagation delay = d/s
B
nodal
processing queuing
39
Queuing delay (revisited)
41
Chapter 1: Computer Networks and the Internet
42
1.7 - Protocol “Layers”
Networks are complex! Layering breaks a complex problem into
smaller pieces with clear
• many “pieces”:
relationships
– hosts
• explicit structure allows identification,
– routers relationship of complex system’s pieces
– links of various media – Provide a reference model for
– applications discussion
– protocols • modularization eases maintenance,
– hardware, software updating of system
Question: – Allow changes in implementation of
a layer without affecting the rest of
Is there any hope of organizing the system
structure of network?
Or at least our discussion of
networks?
43
Protocol Layering and Data
Each protocol layer:
• Contains “entities” implementing layer functions at each node, which
may include: Error Control, Flow Control, Segmentation and Reassembly,
Multiplexing, and Connection Setups.
• entities perform actions and exchange messages known as Protocol
Data Units (PDU) with peers. Layer n entities would exchange n-PDU
using the service of layer n-1.
• Each layer takes data from above
– adds layer header information to create new data unit
– passes new data unit to layer below
source destination
M Layer 5 M 5-PDU
Layer 5
H4 M Layer 4 Layer 4 H4 M 4-PDU
H3H4 M Layer 3 Layer 3 H3H4 M 3-PDU
H2 H3H4 M Layer 2 Layer 2 H2 H3H4 M 2-PDU
Layer 1 Layer 1
44
Internet protocol stack
• application: supporting network applications
– ftp, smtp, http
• transport: host-host data transfer application
– tcp, udp
• network: routing of datagrams from source to transport
destination
– ip, routing protocols Host
• link: data transfer between neighboring network
network elements
– ppp, ethernet link Router
• physical: bits “on the wire”, modulation scheme,
line-coding format, electrical & physical
specifications, etc. physical
Routers in the network operate only up to the
Network Layer
45
Example of Layering: logical communication
data
E.g.: transport application
• take data from app transport
transport
network
• add addressing, link
reliability check info physical
to form “datagram” ack network
application link
• send datagram to transport data physical
peer using service network
provided by the link data
Network Layer physical application application
• wait for peer to transport transport
transport
acknowledge receipt network network
link link
physical physical
46
Layering: physical communication
data
application
transport
network
link
physical
network
application link
transport physical
network
link
physical data
application application
transport transport
network network
link link
physical physical
47