Lecture 2
Lecture 2
Lecture 2
OSI
TCP/IP
MODEL
APPLICATION
7 APPLICATION
TRANSPORT
TRANSPORT
4 Tranmission Control Protocol (TCP)
User Datagram Protocol (UDP)
INTERNETWORKING
NETWORK
3 Internet Protocol (IP)
Internet Control Message Protocol (ICMP)
NETWORK INTERFACE
DATA LINK
&
2
HARDWARE
CONNECTIONS
PHYSICAL
LAN: Ethernet, Token Ring, FDDI, ATM...
1
WAN: SLIP/PPP, X.25, Frame Relay...
P2
1
Chapter 1
Introduction
A note on the use of these ppt slides:
We’re making these slides freely available to all (faculty, students, readers).
They’re in PowerPoint form so you see the animations; and can add, modify,
and delete slides (including this one) and slide content to suit your needs.
They obviously represent a lot of work on our part. In return for use, we only
Computer
ask the following:
Networking: A Top
If you use these slides (e.g., in a class) that you mention their source
Down Approach
(after all, we’d like people to use our book!) Global edition
If you post any slides on a www site, that you note that they are adapted
from (or perhaps identical to) our slides, and note our copyright of this
James Kurose, Keith Ross
material. Pearson
Thanks and enjoy! JFK/KWR
November 2016
All material copyright 1996-2016
J.F Kurose and K.W. Ross, All Rights Reserved
Introduction 1-3
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-4
2
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-5
Packet-switching: store-and-forward
L bits
per packet
3 2 1
source destination
R bps R bps
3
Packet Switching: queueing delay, loss
R = 100 Mb/s C
A
D
R = 1.5 Mb/s
B
queue of packets E
waiting for output link
Introduction 1-7
routing algorithm
4
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-9
frequency
time
TDM
frequency
time
Introduction 1-10
5
Packet switching versus circuit switching
packet switching allows more users to use network!
example:
1 Mb/s link
each user: N
users
• 100 kb/s when “active”
• active 10% of time 1 Mbps link
circuit-switching:
10 users
packet switching: Q: how did we get value 0.0004?
with 35 users, probability >
10 active at same time is less Q: what happens if > 35 users ?
than .0004 *
* Check out the online interactive exercises for more examples Introduction 1-11
6
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
access access
net net
access
net
access
net
access
net
access
net
access access
net access net
net
7
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
access
net
access
net
access
net
access
net
access access
net access net
net
global
access
net
ISP access
net
access
net
access
net
access
net
access
net
access access
net access net
net
8
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 net
net
ISP A
access access
net ISP B net
access
ISP C
net
access
net
access
net
access
net
access access
net access net
net
access
IXP access
net
net
ISP A
access
ISP C
net
access
net
9
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
access
IXP access
net
net
ISP A
access
ISP C
net
access
net
access
net regional net
access
net
access access
net access net
net
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-20
10
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)
B
packets queueing (delay)
free (available) buffers: arriving packets
dropped (loss) if no free buffers
Introduction 1-21
B
nodal
processing queueing
11
Four sources of packet delay
transmission
A propagation
B
nodal
processing queueing
Caravan analogy
100 km 100 km
ten-car toll toll
caravan booth booth
12
Caravan analogy (more)
100 km 100 km
ten-car toll toll
caravan booth booth
Introduction 1-25
* Check out the Java applet for an interactive animation on queuing and loss La/R -> 1
Introduction 1-26
13
“Real” Internet delays and routes
what do “real” Internet delay & loss look like?
traceroute program: provides delay
measurement from source to router along end-
end 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-27
14