Course Introduction and Architecture Review

Download Report

Transcript Course Introduction and Architecture Review

CSCI566
Computer Networking
©2011, MA Doman
1
Today – General Overview




Course Overview
Introduce basic concepts and vocabulary
Networking overview
Internet:
 What is the internet
 Protocol layers
©2011 MA Doman
2
Course Objectives

Understand fundamental networking concepts

Understand important Internet protocols
Additionally
 Developing and executing a simulation and
analyzing its results.
 Apply the scientific method
 Analyze network system performance
 Gain a more solid understanding of networking
concepts
©2011 MA Doman
3
Course Methodology

Lecture
 Concept overview
 Algorithm/protocol examples

Homework exercises
 To help understanding of the material

Lab exercises
 Simulation
 Programming

Presentation/paper
©2011 MA Doman
4
Assessment Materials

Exams

Lab
 Simulation
 Security Labs
 Programming
©2011 MA Doman
5
Grading Policy
Undergraduate Students
30% Labs
20% Exam 1
20% Exam 2
20% Exam 3
10% Cumulative final exam
©2011 MA Doman
6
Final Exam
You will put together what you learned about
Internet protocols:
Suppose you walk into a room, connect to the Ethernet
and start to download a web page. What are all the
protocol steps that take place starting from powering
on your PC to getting the web page?
©2011 MA Doman
7
Chapter 1
Introduction
All material copyright 1996-2016
J.F Kurose and K.W. Ross, All Rights Reserved
Additions and modifications by L.Denoia and M Doman
Computer
Networking: A Top
Down Approach
7th edition
Jim Kurose, Keith Ross
Pearson/Addison Wesley
April 2016
Introduction
Chapter 1: introduction
our goal:
 get “feel” and
terminology
 more depth, detail
later in course
 approach:
 use Internet as
example
overview:








what’s the Internet?
what’s a protocol?
network edge; hosts, access net,
physical media
network core: packet/circuit
switching, Internet structure
performance: loss, delay,
throughput
security
protocol layers, service models
history
Introduction
1-9
Chapter 1: roadmap
Intro: What is a Network
1.1 what is the Internet?
1.2 network edge
• end systems, access networks, links
1.3 network core
• packet switching, circuit switching, network structure
1.4 delay, loss, throughput in networks
1.5 protocol layers, service models
1.6 networks under attack: security
1.7 history
Introduction 1-10
What is a Network?

Basically, the collection of elements needed to
enable information exchange between people,
systems, or people and systems
 Hardware
• End points, routers, switches..
 Software
• Protocols, end applications ..
 Transmission media
• Wires, air …
 Services
• Reliability
• Completeness of messages
©2011 MA Doman
11
Fundamental Definitions

Protocol
 rules for conversation and behavior

Architecture
 framework, blueprint
 functional perspective

Interface
 service offerings/expectations
©2005, L.A. DeNoia
12
What’s a protocol?
human protocols:



“what’s the time?”
“I have a question”
introductions
… specific msgs sent
… specific actions taken
when msgs received, or
other events
network protocols:


machines rather than
humans
all communication activity
in Internet governed by
protocols
protocols define format, order
of msgs sent and received
among network entities,
and actions taken on msg
transmission, receipt
Introduction 1-13
What’s a protocol?
a human protocol and a computer network protocol:
Hi
TCP connection
Hi
request
TCP connection
Got the
response
time?
<send file >
2:00
time
<file>
Q: other human protocols?
Introduction 1-14
Network Conversations
Requester
End-to-end
Physical
link
path
Network path
communication
Replier
15
A Layered Architecture… also known as a
Stack of Protocols




LAYERS: Each system is viewed logically as composed
of an ordered set of subsystems.
INTERFACE: Adjacent subsystems in the vertical
hierarchy (the layers) communicate through a
common boundary.
ENTITIES: Functional module of each layer. Entities in
the same layer but installed on different systems are
called “peer” entities.
PROTOCOLS: Peer entities communicate through
peer “protocols” at the appropriate (containing) layer.
16
The OSI Reference Model


Open Systems Interconnection, OSI
Adopted as an international standard in 1983
 identifies functions and services that are fundamental to providing
reliable, cost-effective, secure, and transparent communications
 defines the concept of layered architecture in terms of functions,
services, and protocols
 became a framework for defining standards for linking
heterogeneous computers… NO precise definition of how the
functions would be accomplished
 is the basis for connecting “open” systems for distributed
application processing by creating and implementing a protocol
stack
©2005, L.A. DeNoia
17
OSI Layers
OSI Reference
Application
FTAM, X.400, etc.
Presentation
ISO 8823
Session
ISO 8327
Transport
ISO 8073
Network
ISO 8473
Data Link
ISO 8802.x LLC/MAC
Physical
physical
©2005, L.A. DeNoia
18
Chapter 1: roadmap
1.1 what is the Internet?
1.2 network edge
• end systems, access networks, links
1.3 network core
• packet switching, circuit switching, network structure
1.4 delay, loss, throughput in networks
1.5 protocol layers, service models
1.6 networks under attack: security
1.7 history
Introduction 1-19
What about the Internet?
The “big I”
Internet
Regional
network
ISP network
ISP network
Regional
network
ISP network
Web
client
©2005, L.A. DeNoia
Web
server
20
What’s the Internet ?

Internet: “network of networks”
mobile network
 Interconnected ISPs

protocols control sending,
receiving of msgs
 e.g., TCP, IP, HTTP, Skype, 802.11

global ISP
Internet standards
home
network
regional ISP
 RFC: Request for comments
 IETF: Internet Engineering Task
Force
institutional
network
Introduction 1-21
What’s the Internet: “nuts and bolts” view
PC

server
wireless
laptop
smartphone
wireless
links
wired
links
router
billions of connected
computing devices:
 hosts = end systems
 running network apps
 communication links
• fiber, copper, radio,
satellite
• transmission rate:
bandwidth
 packet switches:
forward packets
(chunks of data)
• routers and switches
mobile network
global ISP
home
network
regional ISP
institutional
network
Introduction 1-22
What’s the Internet: a service view

infrastructure that provides
services to applications:
 Web, VoIP, email, games, ecommerce, social nets, …

provides programming
interface to apps
mobile network
global ISP
home
network
regional ISP
 hooks that allow sending
and receiving app programs
to “connect” to Internet
 provides service options,
analogous to postal service
institutional
network
Introduction 1-23
Internet Engineering Task Force
(IETF)


The IETF's mission is "to make the Internet work
better," but it is the Internet Engineering Task
Force, so this means: make the Internet work
better from an engineering point of view.
Manages the Request for Comment (RFC)
publication process
Request for Comment (RFC)
 Format to request changes or updates to the
protocols and architecture for internet
communications implementations.
http://www.ietf.org/
24
Internet Society
Mission:
To promote the open development, evolution, and
use of the Internet for the benefit of all people
throughout the world.


Focused more on policy
http://www.internetsociety.org/
25
Internet protocol stack

application: supporting network
applications
 FTP, SMTP, HTTP

transport: process-process data
transfer
Application
network: routing of datagrams
from source to destination
Network
 TCP, UDP

 IP, routing protocols

link: data transfer between
neighboring network elements
 Ethernet, 802.111 (WiFi), PPP

Transport
Link
Physical
physical: bits “on the wire”
Introduction 1-26
Internet (TCP/IP) and OSI Layers
Internet Suite
OSI Reference
Application
Telnet, FTP,
SMTP, HTTP,
etc.
Application
TCP, UDP
FTAM, X.400, etc.
Presentation ISO 8823
Session
ISO 8327
Host-tohost
Transport
ISO 8073
Network
IP, ICMP,
etc.
Network
ISO 8473
Link
802.x MAC
Data Link
ISO 8802.x
LLC/MAC
Physical
802.x phys
Physical
physical
©2005, L.A. DeNoia
27
Up and Down the Layers
server
TCP
HTTP msg
TCP segment
Network pkt
Link
frame
Phys
bits
Network
Link
Link
Phy
Phys
Open System
A
Relay
Node
browser
TCP
Network
Link
Phys
Open System
B
router
©2005, L.A. DeNoia
28
TCP/IP View of Encapsulation
TCP hdr
IP hdr
Link
hdr
MAC
hdr
User Data
TCP segment
Network segment
Link layer segment
MAC
trlr
MAC frame
©2005, L.A. DeNoia
29
TCP/IP Message Flow
Application Layer
Service
Access
Point
HTTP messages
Application Layer
Transport Layer
TCP segments
Transport Layer
Network Layer
IP packets
Network Layer
Data Link Layer
Ethernet frames
Data Link Layer
Interface
Physical Layer
Physical Layer
bits
©2005, L.A. DeNoia
30
Chapter 1: roadmap
1.1 what is the Internet?
1.2 network edge
• end systems, access networks, links
1.3 network core
• packet switching, circuit switching, network structure
1.4 delay, loss, throughput in networks
1.5 protocol layers, service models
1.6 networks under attack: security
1.7 history
Introduction 1-31
A closer look at network structure:

network edge:


mobile network
hosts: clients and servers
servers often in data
centers
global ISP
home
network
regional ISP
institutional
network
Introduction 1-32
Access net: digital subscriber line (DSL)
central office
telephone
network
DSL
splitter
modem
DSLAM
ISP
voice, data transmitted
at different frequencies over
dedicated line to central office
DSL access
multiplexer
use existing telephone line to central office DSLAM
 data over DSL phone line goes to Internet
 voice over DSL phone line goes to telephone net
 < 2.5 Mbps upstream transmission rate (typically < 1 Mbps)
 < 24 Mbps downstream transmission rate ( <10Mbps)

Introduction 1-33
Enterprise access networks (Ethernet)
institutional link to
ISP (Internet)
institutional router
Ethernet
institutional mail,
switch
web servers
typically used in companies, universities, etc.
 10 Mbps, 100Mbps, 1Gbps, 10Gbps transmission rates
 today, end systems typically connect into Ethernet switch

Introduction 1-34
Wireless access networks

shared wireless access network connects end system to router
 via base station aka “access point”
wireless LANs:
 within building (100 ft.)
 802.11b/g/n (WiFi): 11, 54, 450
Mbps transmission rate
wide-area wireless access
 provided by telco (cellular)
operator, 10’s km
 between 1 and 10 Mbps
 3G, 4G: LTE
to Internet
to Internet
Introduction 1-35
Chapter 1: roadmap
1.1 what is the Internet?
1.2 network edge
• end systems, access networks, links
1.3 network core
• packet switching, circuit switching, network structure
1.4 delay, loss, throughput in networks
1.5 protocol layers, service models
1.6 networks under attack: security
1.7 history
Introduction 1-36
A closer look at network structure:

network edge:


mobile network
hosts: clients and servers
servers often in data
centers
global ISP
home

access networks, physical
media: wired, wireless
communication links
network core:
 interconnected
routers
 network of
networks
network
regional ISP

institutional
network
Introduction 1-37
Internet structure: network of networks
 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
 Resulting network of networks is very complex
• evolution was driven by economics and national policies
 Let’s take a stepwise approach to describe current Internet
structure
Introduction 1-38
Internet structure: 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
access
net
access
access
net
net
net
Introduction 1-39
Internet structure: network of networks
Option: connect each access ISP to every other access ISP?
access
access
net
net
access
net
access
access
net
net
access
access
net
net
connecting each access ISP
to each other directly doesn’t
scale: O(N2) connections.
access
net
access
net
access
net
access
net
access
net
access
access
net
access
access
net
net
net
Introduction 1-40
Internet structure: 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
ISP
access
net
access
net
access
net
access
net
access
net
access
access
net
access
access
net
net
net
Introduction 1-41
Internet structure: 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
ISP A
net
net
ISP B
access
net
access
net
ISP C
access
net
access
net
access
net
access
access
net
access
access
net
net
net
Introduction 1-42
Internet structure: network of networks
But if one global ISP is viable business, there will be competitors
…. which must be interconnected
Internet exchange point
access
access
net
net
access
net
access
access
net
net
IXP
access
ISP A
net
access
net
ISP B
IXP
access
net
access
net
ISP C
access
net
access
net
peering link
access
net
access
access
net
access
access
net
net
net
Introduction 1-43
Internet structure: 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
ISP A
net
access
net
ISP B
IXP
access
net
access
net
ISP C
access
net
access
net
access
regional net
net
access
net
access
access
access
net
net
net
Introduction 1-44
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
IXP
access
ISP A
net
access
net
Content provider network
IXP
ISP B
access
net
access
net
ISP C
access
net
access
net
access
regional net
net
access
net
access
access
access
net
net
net
Introduction 1-45
Internet structure: network of networks
Tier 1 ISP
Tier 1 ISP
IX
P
IX
P
Regional ISP

Google
IX
P
Regional ISP
access
access
access
access
access
access
access
access
ISP
ISP
ISP
ISP
ISP
ISP
ISP
ISP
at center: small # of well-connected large networks
 “tier-1” commercial ISPs (e.g., Level 3, Sprint, AT&T, NTT), national &
international coverage
 content provider network (e.g., Google): private network that connects
it data centers to Internet, often bypassing tier-1, regional ISPs Introduction
1-46
Chapter 1: roadmap
1.1 what is the Internet?
1.2 network edge
• end systems, access networks, links
1.3 network core
• packet switching, circuit switching, network structure
1.4 delay, loss, throughput in networks
1.5 protocol layers, service models
1.6 networks under attack: security
1.7 history
Introduction 1-47
“Real” Internet delays and routes


what do “real” Internet delay & loss look like?
traceroute program: provides delay
measurement from source to router along endend Internet path towards destination. For all i:
 sends three packets that will reach router i on path
towards destination
 router i will return packets to sender
 sender times interval between transmission and reply.
3 probes
3 probes
3 probes
Introduction 1-48
“Real” Internet delays, 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
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
trans-oceanic
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
link
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
* means no response (probe lost, router not replying)
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
* Do some traceroutes from exotic countries at www.traceroute.org
14 r3t2-nice.cssi.renater.fr (195.220.98.110) 126 ms 126 ms 124Introduction
ms
1-49
Throughput: Internet scenario


per-connection endend throughput:
min(Rc,Rs,R/10)
in practice: Rc or Rs
is often bottleneck
Rs
Rs
Rs
R
Rc
Rc
Rc
10 connections (fairly) share
backbone bottleneck link R bits/sec
* Check out the online interactive exercises for more
examples: http://gaia.cs.umass.edu/kurose_ross/interactive/
Introduction 1-50
Chapter 1: roadmap
1.1 what is the Internet?
1.2 network edge
• end systems, access networks, links
1.3 network core
• packet switching, circuit switching, network structure
1.4 delay, loss, throughput in networks
1.5 protocol layers, service models
1.6 networks under attack: security
1.7 history
Introduction 1-51
Internet protocol stack

application: supporting network
applications
 FTP, SMTP, HTTP

transport: process-process data
transfer
 TCP, UDP

network: routing of datagrams from
source to destination
 IP, routing protocols

link: data transfer between
neighboring network elements
 Ethernet, 802.111 (WiFi), PPP

application
transport
network
link
physical: bits “on the wire”
physical
Introduction
1-52
ISO/OSI reference model
presentation: allow applications
to interpret meaning of data,
e.g., encryption, compression,
machine-specific conventions
 session: synchronization,
checkpointing, recovery of data
exchange
 Internet stack “missing” these
layers!

 these services, if needed, must be
implemented in application
 needed?
application
presentation
session
transport
network
linkIntroduction
1-53
Chapter 1: roadmap
1.1 what is the Internet?
1.2 network edge
• end systems, access networks, links
1.3 network core
• packet switching, circuit switching, network structure
1.4 delay, loss, throughput in networks
1.5 protocol layers, service models
1.6 networks under attack: security
1.7 history
Introduction 1-54
Network security

field of network security:
 how bad guys can attack computer networks
 how we can defend networks against attacks
 how to design architectures that are immune to attacks

Internet not originally designed with (much)
security in mind
 original vision: “a group of mutually trusting users
attached to a transparent network” 
 Internet protocol designers playing “catch-up”
 security considerations in all layers!
Introduction 1-55
Bad guys: put malware into hosts via Internet

malware can get in host from:
 virus: self-replicating infection by receiving/executing
object (e.g., e-mail attachment)
 worm: self-replicating infection by passively receiving
object that gets itself executed


spyware malware can record keystrokes, web
sites visited, upload info to collection site
infected host can be enrolled in botnet, used for
spam. DDoS attacks
Introduction 1-56
Chapter 1: roadmap
1.1 what is the Internet?
1.2 network edge
• end systems, access networks, links
1.3 network core
• packet switching, circuit switching, network structure
1.4 delay, loss, throughput in networks
1.5 protocol layers, service models
1.6 networks under attack: security
1.7 history
Introduction 1-57
Internet history
1961-1972: Early packet-switching principles




1961: Kleinrock queueing theory shows
effectiveness of packetswitching
1964: Baran - packetswitching in military nets
1967: ARPAnet
conceived by Advanced
Research Projects
Agency
1969: first ARPAnet node
operational

1972:
 ARPAnet public demo
 NCP (Network Control
Protocol) first host-host
protocol
 first e-mail program
 ARPAnet has 15 nodes
Introduction 1-58
Internet history
1972-1980: Internetworking, new and proprietary nets






1970: ALOHAnet satellite
network in Hawaii
1974: Cerf and Kahn architecture for interconnecting
networks
1976: Ethernet at Xerox PARC
late70’s: proprietary
architectures: DECnet, SNA,
XNA
late 70’s: switching fixed length
packets (ATM precursor)
1979: ARPAnet has 200 nodes
Cerf and Kahn’s
internetworking principles:
 minimalism, autonomy - no
internal changes required to
interconnect networks
 best effort service model
 stateless routers
 decentralized control
define today’s Internet
architecture
Introduction 1-59
Internet history
1980-1990: new protocols, a proliferation of networks





1983: deployment of
TCP/IP
1982: smtp e-mail
protocol defined
1983: DNS defined for
name-to-IP-address
translation
1985: ftp protocol defined
1988: TCP congestion
control


new national networks:
CSnet, BITnet, NSFnet,
Minitel
100,000 hosts connected
to confederation of
networks
Introduction 1-60
Internet history
1990, 2000’s: commercialization, the Web, new apps



early 1990’s: ARPAnet
decommissioned
1991: NSF lifts restrictions on
commercial use of NSFnet
(decommissioned, 1995)
early 1990s: Web
 hypertext [Bush 1945,
Nelson 1960’s]
 HTML, HTTP: Berners-Lee
 1994: Mosaic, later Netscape
 late 1990’s:
commercialization of the Web
late 1990’s – 2000’s:
 more killer apps: instant
messaging, P2P file sharing
 network security to
forefront
 est. 50 million host, 100
million+ users
 backbone links running at
Gbps
Introduction 1-61
Internet history
2005-present

~5B devices attached to Internet (2016)
 smartphones and tablets



aggressive deployment of broadband access
increasing ubiquity of high-speed wireless access
emergence of online social networks:
 Facebook: ~ one billion users


service providers (Google, Microsoft) create their own
networks
 bypass Internet, providing “instantaneous” access to
search, video content, email, etc.
e-commerce, universities, enterprises running their
services in “cloud” (e.g., Amazon EC2)
Introduction 1-62
Introduction: summary
covered a “ton” of material!







Internet overview
what’s a protocol?
network edge, core, access
network
 packet-switching versus
circuit-switching
 Internet structure
performance: loss, delay,
throughput
layering, service models
security
history
you now have:


context, overview, “feel”
of networking
more depth, detail to
follow!
Introduction 1-63
Access network: home network
wireless
devices
to/from headend or
central office
often combined
in single box
cable or DSL modem
wireless access
point (54 Mbps)
router, firewall, NAT
wired Ethernet (1 Gbps)
Introduction 1-64
Host: sends packets of data
host sending function:
 takes application message
 breaks into smaller
chunks, known as packets,
of length L bits
 transmits packet into
access network at
transmission rate R
• link transmission rate,
aka link capacity, aka
link bandwidth
packet
transmission
delay
=
two packets,
L bits each
2 1
R: link transmission rate
host
time needed to
transmit L-bit
packet into link
=
L (bits)
R (bits/sec)
Introduction 1-65
Physical media




bit: propagates between
transmitter/receiver pairs
physical link: what lies
between transmitter &
receiver
guided media:
 signals propagate in solid
media: copper, fiber, coax
unguided media:
 signals propagate freely,
e.g., radio
twisted pair (TP)
 two insulated copper
wires
• Category 5: 100 Mbps, 1
Gbps Ethernet
• Category 6: 10Gbps
Introduction 1-66
Physical media: coax, fiber
coaxial cable:



two concentric copper
conductors
bidirectional
broadband:
• multiple channels on cable
• HFC Hybrid Fiber-Coaxial
fiber optic cable:
 glass fiber carrying light
pulses, each pulse a bit
 high-speed operation:
• high-speed point-to-point
transmission (e.g., 10’s-100’s
Gbps transmission rate)
 low error rate:
• repeaters spaced far apart
• immune to electromagnetic
noise
Introduction 1-67
Physical media: radio




signal carried in
electromagnetic spectrum
no physical “wire”
bidirectional
propagation environment
effects:
 reflection
 obstruction by objects
 interference
radio link types:
 terrestrial microwave
• e.g. up to 45 Mbps channels
 LAN (e.g., WiFi)
• 54 Mbps
 wide-area (e.g., cellular)
• 4G cellular: ~ 10 Mbps
 Satellite
• Kbps to 45Mbps channel (or
multiple smaller channels)
• 270 msec end-end delay
• geosynchronous versus low
altitude
Introduction 1-68
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-69
Packet-switching: store-and-forward
L bits
per packet
source
3 2 1
R bps
R bps
destination
takes L/R seconds to transmit
one-hop numerical example:
(push out) L-bit packet into
 L = 7.5 Mbits
link at R bps
 R = 1.5 Mbps
 store and forward: entire
packet must arrive at router
 one-hop transmission
before it can be transmitted
delay = 5 sec
on next link
 end-end delay = 2L/R (assuming
more on delay shortly …
zero propagation delay)

Introduction 1-70
Packet Switching: queueing delay, loss
A
B
C
R = 100 Mb/s
R = 1.5 Mb/s
queue of packets
D
E
waiting for output link
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-71
Two key network-core functions
routing: determines sourcedestination route taken by
packets
 routing algorithms
forwarding: move packets from
router’s input to appropriate
router output
routing algorithm
local forwarding table
header value output link
0100
3
0101
2
0111
2
1001
1
1
3 2
destination address in arriving
packet’s header
Introduction 1-72
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-73
Circuit switching: FDM versus TDM
Example:
FDM
4 users
frequency
time
TDM
frequency
time
Introduction 1-74
Packet switching versus circuit switching
packet switching allows more users to use network!
example:
1 Mb/s link
each user:
• 100 kb/s when “active”
• active 10% of time
N
users
1 Mbps link
 circuit-switching:
 10 users
 packet
switching:
 with 35 users, probability >
10 active at same time is less
than .0004 *
Q: how did we get value 0.0004?
Q: what happens if > 35 users ?
* Check out the online interactive exercises for more examples: http://gaia.cs.umass.edu/kurose_ross/interactive/
Introduction 1-75
Packet switching versus circuit switching
is packet switching a “slam dunk winner?”



great for bursty data
 resource sharing
 simpler, no call setup
excessive congestion possible: packet delay and loss
 protocols needed for reliable data transfer, congestion
control
Q: How to provide circuit-like behavior?
 bandwidth guarantees needed for audio/video apps
 still an unsolved problem (chapter 7)
Q: human analogies of reserved resources (circuit switching)
versus on-demand allocation (packet-switching)?
Introduction 1-76
How do loss and delay occur?
packets queue in router buffers


packet arrival rate to link (temporarily) exceeds output link
capacity
packets queue, wait for turn
packet being transmitted (delay)
A
B
packets queueing (delay)
free (available) buffers: arriving packets
dropped (loss) if no free buffers
Introduction 1-78
Four sources of packet delay
transmission
A
propagation
B
nodal
processing
queueing
dnodal = dproc + dqueue + dtrans + dprop
dproc: nodal processing
 check bit errors
 determine output link
 typically < msec
dqueue: queueing delay
 time waiting at output
link for transmission
 depends on congestion
level of router
Introduction 1-79
Four sources of packet delay
transmission
A
propagation
B
nodal
processing
queueing
dnodal = dproc + dqueue + dtrans + dprop
dtrans: transmission delay:
dprop: propagation delay:
 L: packet length (bits)
 d: length of physical link
 R: link bandwidth (bps)
 s: propagation speed (~2x108 m/sec)
 dtrans = L/R
dtrans and dprop
 dprop = d/s
very different
* Check out the online interactive exercises for more examples: http://gaia.cs.umass.edu/kurose_ross/interactive
* Check out the Java applet for an interactive animation on trans vs. prop delay
Introduction 1-80
Caravan analogy
100 km




100 km
ten-car
toll
toll
caravan
booth
booth
cars “propagate” at
100 km/hr
toll booth takes 12 sec to
service car (bit transmission
time)
car ~ bit; caravan ~ packet
Q: How long until caravan is
lined up before 2nd toll
booth?
time to “push” entire
caravan through toll
booth onto highway =
12*10 = 120 sec
time for last car to
propagate from 1st to
2nd toll both:
100km/(100km/hr)= 1
hr
A: 62 minutes
Introduction 1-81
Caravan analogy (more)
100 km



100 km
ten-car
toll
toll
caravan
booth
booth
suppose cars now “propagate” at 1000 km/hr
and suppose toll booth now takes one min to service a car
Q: Will cars arrive to 2nd booth before all cars serviced at first
booth?
• A: Yes! after 7 min, first car arrives at second booth; three
cars still at first booth
Introduction 1-82
Packet loss
queue (aka buffer) preceding link in buffer has finite
capacity
 packet arriving to full queue dropped (aka lost)
 lost packet may be retransmitted by previous
node, by source end system, or not at all

buffer
A
packet being transmitted
(waiting area)
B
packet arriving to
full buffer is lost
* Check out the Java applet for an interactive animation on queuing and loss
Introduction 1-84
Throughput

throughput: rate (bits/time unit) at which bits
transferred between sender/receiver
 instantaneous: rate at given point in time
 average: rate over longer period of time
server,
withbits
server
sends
file of into
F bitspipe
(fluid)
to send to client
linkpipe
capacity
that can carry
Rs bits/sec
fluid at rate
Rs bits/sec)
linkpipe
capacity
that can carry
Rc bits/sec
fluid at rate
Rc bits/sec)
Introduction 1-85
Throughput (more)

Rs < Rc What is average end-end throughput?
Rs bits/sec
Rc bits/sec
 Rs > Rc What is average end-end throughput?
Rs bits/sec
Rc bits/sec
bottleneck link
link on end-end path that constrains end-end throughput
Introduction 1-86
Protocol “layers”
Networks are complex,
with 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-87
Organization of air travel
ticket (purchase)
ticket (complain)
baggage (check)
baggage (claim)
gates (load)
gates (unload)
runway takeoff
runway landing
airplane routing
airplane routing

airplane routing
a series of steps
Introduction 1-88
Layering of airline functionality
ticket (purchase)
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
airplane routing
airplane routing
departure
intermediate air-traffic
arrival
airport
control centers
airport
layers: each layer implements a service
 via its own internal-layer actions
 relying on services provided by layer below
Introduction 1-89
Why layering?
dealing with complex systems:

explicit structure allows identification,
relationship of complex system’s pieces
 layered reference model for discussion

modularization eases maintenance, updating of
system
 change of implementation of layer’s service
transparent to rest of system
 e.g., change in gate procedure doesn’t affect rest of
system
Introduction 1-90
Encapsulation
source
M
application
Ht
M
transport
datagram Hn Ht
M
network
frame
M
link
message
segment
Hl Hn Ht
physical
link
physical
switch
destination
M
application
Ht
M
transport
Hn Ht
M
network
Hl Hn Ht
M
Link
Hn Ht
M
network
Hl Hn Ht
M
link
Hn Ht
M
physical
router
physical
Introduction 1-91
Bad guys: attack server, network infrastructure
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
target
Introduction 1-92
Bad guys can sniff packets
packet “sniffing”:
 broadcast media (shared Ethernet, wireless)
 promiscuous network interface reads/records all packets
(e.g., including passwords!) passing by
C
A
src:B dest:A
payload
B
 wireshark software used for end-of-chapter
labs is a (free) packet-sniffer
Introduction 1-93
Bad guys can use fake addresses
IP spoofing: send packet with false source address
C
A
src:B dest:A
payload
B
… lots more on security (throughout, Chapter 8)
Introduction 1-94
Chapter 1
Additional Slides
Introduction 1-95
application
packet
(www browser,
analyzer
email client)
application
OS
Transport (TCP/UDP)
packet
capture
(pcap)
copy of all
Ethernet
frames
sent/receive
d
Network (IP)
Link (Ethernet)
Physical