mkaleem@comsats.edu.pk
Introduction 1-1
Data
Communication
and Computer
Networks
Computer Networking: A
Top Down Approach
6th edition
Jim Kurose, Keith Ross
Addison-Wesley
March 2012
Introduction 1-2
Introduction 2-3
Introduction
Prerequisites:
EEE 343 Computer Organization
EEE
Introduction to Communication
Textbook:
Computer Networking, J. Kurose and K. Ross, 6th
ed. Pearson, 2012
Reference Books:
Data Communications and Networking, Behrouz
A. Forouzan, 4th ed.2003.
Data and Computer Communications, William
Stallings,8th ed. Prentice Hall, 2007
Computer Networks, Andrew S. Tanenbaum
Introduction 2-4
Assessment Plan
Theory
Homework assignments
2 Sessional exams (in class, 60-80
minutes each, 10%+15%)
Terminal exam (3 hours)
Total (theory)
Lab work
2 Lab sessionals
Lab project and terminal exam
Total (lab)
Quizz 15%
(4)
10%
25%
50%
100%
Lab
25%
repot
(12)
25%
50%
100%
Introduction 2-5
Course Objectives
Focus is on the principles, architectures ,
Introduction 1-6
Course Contents
Introduction 1-7
Course Contents
Introduction 1-8
A Communications Model
Source
generates data to be transmitted
Transmitter
Converts data into transmittable signals
Transmission System
Carries data
Receiver
Converts received signal into data
Destination
Takes incoming data
Introduction 1-9
Introduction 1-10
Introduction 1-12
Networking
Introduction 1-13
Introduction 1-14
Chapter 1: introduction
our goal:
get feel and
terminology
more depth, detail
later in course
approach:
use Internet as
example
overview:
Chapter 1: roadmap
1.1 Internet
1.2 network edge
end systems, access networks, links
1.3 network core
packet switching, circuit switching, network structure
Introduction 1-16
PC
server
wireless
laptop
smartphone
of connected
computing devices:
hosts = end systems
running network apps
communication
wireless
links
wired
links
links
fiber, copper, radio,
satellite
transmission rate:
bandwidth
global ISP
home
network
regional ISP
Packet
router
switches: forward
packets (chunks of data)
routers and switches
mobile network
institutional
network
Introduction 1-17
Tweet-a-watt:
monitor energy use
Slingbox: watch,
control cable TV remotely
Internet
refrigerator
Internet phones
Introduction 1-18
mobile network
Interconnected ISPs
global ISP
Internet standards
home
network
regional ISP
institutional
network
Introduction 1-19
mobile network
global ISP
home
network
regional ISP
provides programming
interface to apps
hooks that allow sending
and receiving app programs
to connect to Internet
provides service options,
analogous to postal service
institutional
network
Introduction 1-20
Whats a protocol?
human protocols:
network protocols:
Whats 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
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
Introduction 1-23
network edge:
mobile network
global ISP
home
network
regional ISP
network core:
interconnected routers
network of networks
institutional
network
Introduction 1-24
keep in mind:
Introduction 1-25
DSL splitter
modem
telephone
network
DSLAM
ISP
DSL access
multiplexer
cable splitter
modem
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
V
I
D
E
O
D
A
T
A
D
A
T
A
C
O
N
T
R
O
L
Channels
cable splitter
modem
CMTS
cable modem
termination system
ISP
to/from headend or
central office
often combined
in single box
Introduction 1-29
institutional link to
ISP (Internet)
institutional router
Ethernet
switch
institutional mail,
web servers
wireless LANs:
within building (100 ft)
802.11b/g (WiFi): 11, 54 Mbps
transmission rate
to Internet
to Internet
Introduction 1-31
two packets,
L bits each
2 1
host
time needed to
transmit L-bit
packet into link
L (bits)
R (bits/sec)
1-32
Physical media
Introduction 1-33
Introduction 1-34
Optical Fiber
Introduction 1-35
Introduction 1-36
signal carried in
electromagnetic spectrum
no physical wire
bidirectional
propagation environment
effects:
reflection
obstruction by objects
interference
terrestrial microwave
e.g. up to 45 Mbps channels
satellite
Kbps to 45Mbps channel (or
multiple smaller channels)
270 msec end-end delay
geosynchronous versus low
altitude
A client-server system uses a satellite network, with the satellite at a height of 15,000 km.
What is the best-case delay in response to a request?
Introduction 1-37
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
Introduction 1-38
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
A signal has a spectrum with frequencies between 1000 and 2000 Hz (bandwidth of 1000 Hz).
A medium can pass frequencies from 3000 to 4000 Hz (a bandwidth of 1000 Hz). Can this
signal faithfully pass through this medium?
Introduction 1-39
Packet-switching: store-and-forward
L bits
per packet
source
3 2 1
R bps
R bps
destination
R = 100 Mb/s
R = 1.5 Mb/s
queue of packets
waiting for output link
D
E
routing algorithm
3
2
2
1
1
3 2
Introduction 1-43
FDM
4 users
frequency
time
TDM
frequency
time
Introduction 1-44
N
users
1 Mbps link
circuit-switching:
10 users
packet
switching:
Introduction 1-45
access
net
access
net
access
net
access
net
access
net
access
net
access
net
access
net
access
net
access
net
access
net
access
net
access
net
access
net
access
net
access
net
access
net
access
net
access
net
access
net
access
net
access
net
access
net
access
net
access
net
access
net
access
net
access
net
access
net
access
net
access
net
access
net
access
net
access
net
access
net
access
net
access
net
global
ISP
access
net
access
net
access
net
access
net
access
net
access
net
access
net
access
net
access
net
access
net
access
net
access
net
access
net
access
net
access
net
ISP A
access
net
access
net
access
net
ISP B
ISP C
access
net
access
net
access
net
access
net
access
net
access
net
net
access
net
access
net
access
net
IXP
access
net
ISP A
IXP
access
net
access
net
access
net
access
net
ISP B
ISP C
access
net
peering link
access
net
access
net
access
net
access
net
access
net
access
net
access
net
access
net
access
net
IXP
access
net
ISP A
IXP
access
net
access
net
access
net
access
net
ISP B
ISP C
access
net
access
net
regional net
access
net
access
net
access
net
access
net
access
net
access
net
access
net
access
net
IXP
access
net
ISP A
access
net
access
net
access
net
access
net
ISP B
ISP B
access
net
access
net
regional net
access
net
access
net
access
net
access
net
Tier 1 ISP
IXP
IXP
Regional ISP
access
ISP
access
ISP
access
ISP
access
ISP
IXP
Regional ISP
access
ISP
access
ISP
access
ISP
access
ISP
Spring 2016
Date:<25-02-2016>
Marks: <10>
Note:
Copied or plagiarized assignments will result in a zero grade.
Submission Date: 10-03-2016
Introduction 1-56
to/from backbone
peering
to/from customers
Introduction 1-57
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-58
A
B
packets queueing (delay)
propagation
B
nodal
processing
queueing
Subject Projects
Software Define Networks
System on Chip
Network on Chip
Lab on Chip
OFDM based Supper Channel for DWDM
Link performance Analysis of an Optical DWDM (QAM/QPSK).
Investigation of Foure Wave Mixing in Ultra Dense WDM Networks
Birefringence Effects in Multimode Fiber Transmission Systems
Implementation of Multimedia over IPV6
Introduction 1-61
propagation
B
nodal
processing
queueing
* Check out the Java applet for an interactive animation on trans vs. prop delay
Introduction 1-62
Caravan analogy
100 km
ten-car
caravan
toll
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?
100 km
toll
booth
toll
booth
100 km
toll
booth
Introduction 1-64
average queueing
delay
traffic intensity
= La/R
* Check out the Java applet for an interactive animation on queuing and loss
La/R ~ 0
La/R -> 1
Introduction 1-65
3 probes
3 probes
3 probes
Introduction 1-66
Introduction 1-67
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
(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-68
Throughput
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-69
Throughput
Rc bits/sec
Rc bits/sec
bottleneck link
link on end-end path that constrains end-end throughput
Introduction 1-70
Rs
Rs
Rs
R
Rc
Rc
Rc
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-72
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-73
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-74
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
Why layering?
dealing with complex systems:
Application layer
Host to host or transport layer
Internet layer
Network access layer
Physical layer
Introduction 1-77
Physical Layer
Introduction 1-78
Introduction 1-79
Introduction 1-80
Introduction 1-81
Application Layer
Introduction 1-82
Introduction 1-83
OSI Model
Introduction 1-84
application
transport
network
link
physical
application
presentation
session
transport
network
link
physical
Introduction 1-86
OSI v TCP/IP
Introduction 1-87
Encapsulation
source
message
segment
Ht
datagram Hn Ht
frame
Hl Hn Ht
application
transport
network
link
physical
link
physical
switch
M
Ht
Hn Ht
Hl Hn Ht
destination
Hn Ht
application
transport
network
link
physical
Hl Hn Ht
network
link
physical
Hn Ht
router
Introduction 1-88
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
Introduction 1-89
Network security
Introduction 1-90
Introduction 1-91
Introduction 1-92
src:B dest:A
payload
A
src:B dest:A
payload
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-95
Internet history
1961-1972: Early packet-switching principles
1972:
ARPAnet public demo
NCP (Network Control
Protocol) first host-host
protocol
first e-mail program
ARPAnet has 15 nodes
Introduction 1-96
Internet history
1972-1980: Internetworking, new and proprietary nets
Introduction 1-97
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
Introduction 1-98
Internet history
1990, 2000s: commercialization, the Web, new apps
early
1990s: ARPAnet
decommissioned
1991: NSF lifts restrictions on
commercial use of NSFnet
(decommissioned, 1995)
early 1990s: Web
hypertext [Bush 1945,
Nelson 1960s]
HTML, HTTP: Berners-Lee
1994: Mosaic, later Netscape
late 1990s:
commercialization of the Web
Introduction 1-99
Internet history
2005-present
Introduction: summary
covered a ton of material!
Internet overview
whats a protocol?
network edge, core, access
network
packet-switching versus
circuit-switching
Internet structure
performance: loss, delay,
throughput
layering, service models
security
history
Introduction 1-101