Professional Documents
Culture Documents
Introduction 1-1
Class web pages
Main page on remus
http://remus.rutgers.edu/cs352/F07/
Check Thursday PM for the page
• “read only”
Introduction 1-2
Course Work
2 Mid-terms (15% each)
No electronic devices or notes allowed. No cheat sheets
allowed
Final (35%)
You must send the instructor email at least 2 weeks
before the final if you need to take the makeup!
Project (35%)
Part 1 (10%)
Part 2 (10%)
Part 3 (15%)
Introduction 1-3
Programming assignments
Single long project
Broken into three parts
Introduction 1-4
Programming Assignment
2 Code reviews
10-15 minute oral question and answer period.
TA and instructor will critically review your assignment.
“lost art” of program design.
Introduction 1-5
Academic integrity
No cheating on projects and exams
Run code similarity detectors on the projects &
code review
Scrutinize exams for copying
Introduction 1-6
Facilities
“Cereal” machines and lab
~20 UltraSparc machines
~30+ Linux machines
Cardkey Access: student ID card
Introduction 1-7
CS352 Fundamentals
Introduction 1-8
Why Study Networks?
Integral part of society
• Work, entertainment, community
Pervasive
• Home, car, office, school, mall …
Huge impact on people and society
Introduction 1-9
Impact of the Net on People
Anytime access to remote information
HW assignments from my server
Introduction 1-10
Impact of the Net on Society
Huge impact!
Continuation of technologies that reduce
problems of time & space
• (e.g. railroads,phone,autos,TV)
Good, bad and ugly
mirror of society
Introduction 1-11
Example Impacts
Economic impacts
Productivity
Nature of work
• Open source movement
• Vacation days?
Leisure
Music industy
Social
Who can contact me, and when?
Introduction 1-12
Chapter 1: Introduction
Introduction 1-13
Chapter 1: Introduction
Our goal:
get “feel” and terminology
more depth, detail later in course
approach:
use Internet as example
Introduction 1-14
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-15
Concepts for this chapter
What is the Internet?
Core and Edge of the Internet
Core Network - Circuit, message and packet
switching
Network delay analysis
Single link
Multi-link
Layering and encapsulation
Introduction 1-16
What is the Internet?
What is an internet?
Network of networks
Introduction 1-17
Architecture-wise
Introduction 1-18
Architecture-wise
Introduction 1-19
Architecture-wise
Media: Physical process used (copper wire, fiber optics, satellite link)
Introduction 1-20
Architecture-wise
Introduction 1-21
Architecture-wise
Introduction 1-22
Architecture-wise
Company A
Company B
Introduction 1-23
Architecture-wise
Internet Service Provider 1
ISP 2
Introduction 1-25
Service-wise (applications)
IP picture frame
http://www.ceiva.com/
Web-enabled toaster +
weather forecaster
Internet phones
Introduction 1-26
Protocol wise
Protocol
• Architecture Service
• Rules of communication
Hi
TCP connection
request
Hi
TCP connection
Got the response
time?
2:00
<file>
time
Introduction 1-27
Protocol wise
Protocol
• Architecture Service
• Rules of communication
Introduction 1-28
Protocol wise
Protocol
• Architecture Service
• Rules of communication
TCP UDP
IP
Introduction 1-29
Core Networks
Internet Service Provider 1
ISP 2
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 NAP
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-31
Core Networks: ISP Tiers
a packet passes through many networks!
local
ISP Tier 3 local
local local
ISP ISP
ISP ISP
Tier-2 ISP Tier-2 ISP
Tier 1 ISP
NAP
Introduction 1-33
Switching Schemes
Introduction 1-34
Circuit Switching
Introduction 1-35
Circuit Switching (cont’d)
1. Control message sets up a path from origin
to destination
2. Return signal informs source that data
transmission may proceed
3. Data transmission begins
4. Entire path remains allocated to the
transmission (whether used or not)
5. When transmission is complete, source
releases the circuit
Introduction 1-36
Circuit Switching (cont’d)
Call request signal
Propagation Delay
Time
Transmission
Delay
Data
Transmission
Pros & Cons ?
Time
Data
A B C D Routers/Switches
Introduction 1-37
Message Switching
Each message is addressed to a destination
When the entire message is received at a router,
the next step in its journey is selected; if this
selected channel is busy, the message waits in a
queue until the channel becomes free
Thus, the message “hops” from node to node
through a network while allocating only one
channel at a time
Analogy: Postal service
Introduction 1-38
Message Switching (cont’d)
Entire message must arrive at router before it can
be transmitted on next link: store and forward
Header
Msg
Time
Transmission
Delay
Msg
Queueing
Delay
Msg
A B C D Routers/switches
Introduction 1-39
Packet Switching
Introduction 1-40
Packet Switching (cont’d)
Pkt 1
Header
Pkt 2
Time
Pkt 1
Pkt 3
Transmission
Pkt 2
Delay
Pkt 1
Pkt 3
Pkt 2
Pkt 3
Pipelining
A B C D
Introduction 1-41
Comparisons
(1) Header Overhead
Circuit < Message < Packet
(2) Transmission Delay
Short Bursty Messages:
Packet < Message < Circuit
Long Continuous Messages:
Circuit < Message < Packet
Introduction 1-42
Circuit Switching – still multiplexing
Example:
FDM
4 users
frequency
time
TDM
frequency
time
Introduction 1-43
Packet Switching: Statistical Multiplexing
100 Mb/s
A Ethernet statistical multiplexing C
1.5 Mb/s
B
queue of packets
waiting for output
link
D E
N users
circuit-switching:
1 Mbps link
10 users
packet switching:
with 35 users,
Q: how did we get value 0.0004?
probability > 10 active
less than .0004
Introduction 1-45
Concepts for this chapter
What is the Internet?
Core and Edge of the Internet
Core Network - Circuit, message and packet
switching
Network delay analysis
Single link
Multi-link
Layering and encapsulation
Introduction 1-46
Why Study Network
Performance like Delay Analysis
Networks cost $
OC-3 line ~= $10,000/month
Cable modem: $40/month
Are you getting your $/worth?
Why is the network “slow”?
Approach:
Build abstract models of network performance
Observe where real networks deviate from model
Simple Models: Tells us average/best/worse cases->useful,
practical
Complex Models: Hard to understand -> useless
Introduction 1-47
Units
Bits are the units used to describe an amount of data in a network
1 kilobit (Kbit) = 1 x 103 bits = 1,000 bits
1 megabit (Mbit) = 1 x 106 bits = 1,000,000 bits
1 gigabit (Gbit) = 1 x 109 bits = 1,000,000,000 bits
Seconds are the units used to measure time
1 millisecond (msec) = 1 x 10-3 seconds = 0.001 seconds
1 microsecond (µ sec) = 1 x 10-6 seconds = 0.000001 seconds
1 nanosecond (nsec) = 1 x 10-9 seconds = 0.000000001 seconds
Bits per second are the units used to measure channel
capacity/bandwidth and throughput
bit per second (bps)
kilobits per second (Kbps)
megabits per second (Mbps)
Introduction 1-48
Four sources of packet delay
1. nodal processing delay: 2. queueing
execute protocol code time waiting at output
check bit errors
link for transmission
determine output link
depends on congestion
level of router
transmission
A propagation
B
nodal
processing queueing
Introduction 1-49
Four sources of packet delay
3. Transmission delay: 4. Propagation delay:
Time to “get bits on Time for bits to “move
wires” across wires”
R=link bandwidth (bps) d = length of physical link
L=packet length (bits) s = propagation speed in
Transmission delay = medium (~2x108 m/sec)
L/R propagation delay = d/s
transmission
A propagation
B
nodal
processing queueing
Introduction 1-50
Transmission vs. Prop. delay
1. The thicker the pipe, the more water it can carry from one end
to the other in each unit time
2. Water is carried from one end of the pipe to the other at
constant speed, no matter how thick the pipe is
Introduction 1-51
Transmission vs. Prop. Delay
(cont)
pipe
Introduction 1-52
Transmission Time
How long does it take A to transmit an entire packet onto the link?
Introduction 1-53
Propagation Delay
How long does it take a single bit to travel on the link from A
to B?
Introduction 1-54
Caravan analogy
100 km 100 km
ten-car toll toll
caravan booth booth
Cars “propagate” at Time for last car to
100 km/hr propagate from 1st to 2nd
Toll booth takes 12 sec to toll both: 100km/
service a car (transmission time) (100km/hr)= 1 hr
car~bit; caravan ~ packet
Time to “push” entire
Q: How long until caravan is
caravan through toll booth
lined up before 2nd toll booth?
onto highway = 12*10 = 120
sec
A: 62 minutes
Introduction 1-55
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 min to
service a car 1st bit of packet can
Q: Will cars arrive to 2nd arrive at 2nd router
booth before all cars before packet is fully
serviced at 1st booth? transmitted at 1st router!
Introduction 1-56
Nodal delay
d nodal = d proc + d queue + d trans + d prop
Introduction 1-57
Single Link Example
A B
500 m
Time
120 Transmission time
last bit
40 Protocol Delay
Processing delay T1
Message Size (bits, bytes) N
Link bandwidth (bps) B
Propagation delay (seconds) T2
T1+N/B+T2
Introduction 1-60
Multiple Link Delay Modeling
A B C P Q
Processing delay T1
Message Size (bits, bytes) N
Link bandwidth (bps) B
Propagation delay (seconds) T2
Introduction 1-61
Multiple Link Delay Modeling
A B C P Q
Processing delay T1
Message Size (bits, bytes) N
Per-Link bandwidth (bps) B
Propagation delay (seconds) T2
Number of switches (in-between stations) s
Time to set up circuit: c
Size of the packet: p
Size of the header: h
Introduction 1-62
Circuit Switching Time
N
C+
B
Introduction 1-63
Packet switching
Packet 1
Propagation
Packet 2 Delay
Packet 3
Time
Packet 4
Bandwidth
Delay
Introduction 1-64
Packet Switching Time
Delay = Transmission + “Propagation” delays
“Propagation” delay:
Time for a single packet to cross
- not really prop. delay in the traditional sense
( p + h) N ( p + h)
( S + 1) * + ( − 1) *
B P B
Introduction 1-65
Packet Switching Time
Transmission delay
“Propagation” delay
Number of packets
Number of links/hops
( p + h) N ( p + h)
( S + 1) * + ( − 1) *
B P B
Time for each packet to
go through each link
Introduction 1-66
Note on Pipelining
The above analysis is very general:
Packets in a computer network
• Messages/packets are the unit of work.
Instructions in a processor
• Instructions are the unit of work.
Jobs through a batch Q in an operating system.
• Processes are the unit of work.
Introduction 1-67
Switching schemes Comparison
Given choice of 2 switching schemes, how
would you compare their performance?
Eg. Circuit switching or packet switching?
Goal: Determine which is faster
Formal definition: Least time to move a fixed
amount of data
Could you come up with a closed form
expression based on your choices?
Introduction 1-68
Circuit switching vs. packet
switching
N p + h N
C+ ? + S
B B P
Introduction 1-69
Questions
How does packet switching reduce the
impact of increasing s?
Show, using an equation, how reducing the
packet size and packet switching reduces
the impact of increasing s.
Where does the approach of reducing
packet size fail to give any benefit?
Introduction 1-70
Queuing Delay
B
queueing
Introduction 1-71
Queueing delay
Introduction 1-72
Queuing Delay Packet Loss
queue (aka buffer) has finite capacity
when packet arrives to full queue, packet is
dropped (aka lost)
lost packet may be retransmitted by
previous node, by source end system, or not
retransmitted at all
A
B
queueing
Introduction 1-73
Concepts for this chapter
What is the Internet?
Core and Edge of the Internet
Core Network - Circuit, message and packet
switching
Network delay analysis
Single link
Multi-link
Layering and encapsulation
Introduction 1-74
Why Layering?
Networks are complex!
Hosts, routers, links of various media,
applications, protocols, hardware, software
Layering provides separation of concerns
Different vendors and organizations responsible
for different layers
Testing and maintenance is simplified
Easy to replace a single layer with a different
version
Introduction 1-75
Protocol Hierarchy
Use layers to hide complexity
Each layer implements a service
• Layer N uses service provided by layer N-1
• layer N-1 provides a service to layer N
Protocols
• Each layer communicates with its peer by a set of rules
Introduction 1-76
Protocol Hierarchy (cont’d)
Host A Host B
Layer 7
Layer 7 Protocol Layer 7
Layer 6 Protocol
Layer 6 Layer 6
Layer 5 Protocol
Layer 5 Layer 5
Layer 4 Protocol
Layer 4 Layer 4
Layer 3 Protocol
Layer 3 Layer 3
Layer 2 Protocol
Layer 2 Layer 2
Layer 1 Protocol
Layer 1 Layer 1
Physical Medium
Introduction 1-77
Layering of airline functionality
airplane routing airplane routing airplane routing airplane routing airplane routing
Introduction 1-78
Different Layering
Architectures
ISO OSI 7-Layer Architecture
TCP/IP 4-Layer Architecture
+ application layer = 5 layers in Kurose
Introduction 1-79
Standards Making
Organizations
ISO = International Standards Organization
ITU = International Telecommunication Union
(formerly CCITT)
ANSI = American National Standards Institute
IEEE = Institute of Electrical and Electronic
Engineers
IETF = Internet Engineering Task Force
ATM Forum = ATM standards-making body
Introduction 1-80
Why So Many Standards
Organizations?
Multiple technologies
Different areas of emphasis and history
Telecommunications/telephones
• ITU,ISO,ATM
Local area networking/computers
• IETF, IEEE
System area networks/storage
• ANSI
Introduction 1-81
ISO OSI Layering
Architecture
Host A Host B
Application Application Protocol Application
Layer Layer
Introduction 1 -84
Layer 2: Data Link Layer
Functions:
Provides reliable transfer of information
between two adjacent nodes
Creates frames from bits and vice versa
Provides frame-level error control
Provides flow control
In summary, the data link layer provides
the network layer with what appears to be
an error-free link for packets
Introduction 1 -85
Layer 3: Network Layer
Functions:
Responsible for routing decisions
• Dynamic routing
• Fixed routing
Performs congestion control
Introduction 1 -86
Layer 4: Transport Layer
Functions:
Hide the details of the network from the session
layer
• Example: If we want replace a point-to-point link with a
satellite link, this change should not affect the behavior
of the upper layers
Provides reliable end-to-end communication
Introduction 1 -87
Transport Layer (cont’d)
Host A Host B
Application Application Protocol Application
Layer Layer
first
end-to-end
Presentation Presentation Protocol Presentation
layer Layer Layer
Functions (cont’d):
Perform end-to-end flow control
Perform packet retransmission when packets
are lost by the network
Introduction 1-89
Layer 5: Session Layer
May perform synchronization between
several communicating applications or
logical transmissions
Groups several user-level connections into a
single “session”
Examples:
Banking session
Network meetings
Introduction 1-90
Layer 6: Presentation Layer
Performs specific functions that are
requested regularly by applications
Examples:
encryption
ASCII to Unicode, Unicode to ASCII
LSB-first representations to MSB-first
representations
Introduction 1-91
Layer 7: Application Layer
Application layer protocols are application-
dependent
Implements communication between two
applications of the same type
Examples:
FTP
HTTP
SMTP (email)
Introduction 1-92
TCP/IP Layering Architecture
A simplified model
The network layer
Application Hosts drop packets into
this layer, layer routes
Transport towards destination-
only promise- try my
best
Internet/Network
The transport layer
reliable byte-oriented
Host-to-Net stream
Introduction 1-93
TCP/IP Layering Architecture
(cont’d)
Host A Host B
Application Application Protocol Application
Layer Layer
Network
IP Network
IP Network
IP Network
Layer Layer Layer Layer
Introduction 1-94
Internet “Hourglass”
Architecture
• Defined by Internet Engineering Task Force (IETF)
• “Hourglass” Design
TCP UDP
IP
Introduction 1-95
Encapsulation
Treat the neighboring layer’s information as
a “black box”, can’t look inside or break
message
Sending: add information needed by the
current layer “around” the higher layers’
data
headers in front
trailers in back
Receiving: Strip off headers and trailers
before handing up the stack
Introduction 1-96
Encapsulation
Data
Application
AH Data
Layer
Headers
Presentation
PH Data
Layer
Session
SH Data
Layer
Transport
TH Data
Trailer
Layer
Network
NH Data
Layer
Data Link
DH Data DT
Layer
Physical
PH Data
Layer
Introduction 1-97
message M
source
application
Encapsulation
segment Ht M transport
datagram Hn Ht M network
frame Hl Hn Ht M link
physical
link
physical
switch
destination Hn Ht M network
M application
Hl Hn Ht M link Hn Ht M
Ht M transport physical
Hn Ht M network
Hl Hn Ht M link router
physical
Introduction 1-98
Concepts for this chapter
What is the Internet?
Core and Edge of the Internet
Core Network - Circuit, message and packet
switching
Network delay analysis
Single link
Multi-link
Layering and encapsulation
Introduction 1-99