Lecture 2
Lecture 2
Lecture 2
Lecture 2
Prepared by:
Computer Science and Engineering Department
1
Lecture 2
Agenda
mobile network
◼ mesh of interconnected routers national or global ISP
◼ packet-switching: hosts break
application-layer messages into
packets
◼ network forwards packets from local or
regional
one router to the next, across ISP
home network
links on path from source to content
provider
network
destination datacenter
network
enterprise
network
routing algorithm
algorithm Routing:
Forwarding: local forwarding table
▪ global action:
header value output link determine source-
◼ aka “switching” 0100
0101
3
2 destination paths
◼ local action:
move arriving
0111
1001
2
1 taken by packets
packets from ▪ routing algorithms
router’s input link 1
to appropriate
3 2
router output link
L bits
per packet
321
source destination
R bps R bps
R = 100 Mb/s
A C
D
B R = 1.5 Mb/s
E
queue of packets
waiting for transmission
over output link
R = 100 Mb/s
A C
D
B R = 1.5 Mb/s
E
queue of packets
waiting for transmission
over output link
Packet queuing and loss: if arrival rate (in bps) to link exceeds
transmission rate (bps) of link for some period of time:
◼ packets will queue, waiting to be transmitted on output link
◼ Not expensive
◼ not secured
performance
◼ circuit segment idle if not used by call
(no sharing)
▪ commonly used in traditional telephone networks
frequency
◼ optical, electromagnetic
frequencies divided into (narrow)
frequency bands
▪ each call allocated its own band, can
transmit at max rate of that narrow time
band
4 users
Time Division Multiplexing (TDM)
frequency
▪ time divided into slots
▪ each call allocated periodic slot(s),
can transmit at maximum rate of time
(wider) frequency band (only) during
its time slot(s)
1) Guaranteed bandwidth
◼ Predictable communication performance
2) Simple abstraction
◼ Reliable communication channel between hosts
3) Simple forwarding
◼ Forwarding based on time slot or frequency
1) Wasted bandwidth
◼ Bursty traffic leads to idle connection during silent period
2) Blocked connections
◼ Connection refused when resources are not sufficient
4) Network state
◼ Network nodes must store per-connection information
example:
▪ 1 Gb/s link
N
▪ each user: users 1 Gbps link
• 100 Mb/s when “active”
• active 10% of time
Q: can you estimate how many users can use this network under circuit-switching and
packet switching?
▪ circuit-switching: 10 users
▪ packet-switching: with 35 users, probability > 10 active at same time is less
than .0004 (not covered by the course)
◼ Choose one the following two definitions that makes the correct
distinction between routing versus forwarding.
mobile network
◼ hosts connect to Internet via national or global ISP
access Internet Service Providers
(ISPs)
◼ access ISPs in turn must be
local or
interconnected regional
◼so that any two hosts (anywhere!) ISP
home network
can send packets to each other content
provider
◼ resulting network of networks is network datacenter
network
national policies
Let’s take a stepwise approach to describe current Internet structure
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
net
access access
net access net
net
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
access access
net net
access
net
access
access net
net
access
access net
net ISP A
access
net
ISP B access
net
access ISP C
net
access
net
access
net
access
net
access access
net access net
net
But if one global ISP is viable business, there will be competitors …. who will
want to be connected
Internet exchange point
access access
net net
access
net
access
access net
net
IXP access
access net
net ISP A
access
net
IXP ISP B access
net
access ISP C
net
access
net
access
net
peering link
access
net
access access
net access net
net
access access
net net
access
net
access
access net
net
IXP access
access net
net ISP A
access
net
IXP ISP B access
net
access ISP C
net
access
net
access
net regional ISP access
net
access access
net access net
net
access ISP C
net
access
net
access
net regional ISP access
net
access access
net access net
net
◼ Reference:
◼ Ref1: Chapter 1 , 1.2 to 1.3