Lec 3 Computer Network
Lec 3 Computer Network
Networks
enterprise
▪ collection of devices, routers, network
links: managed by an
organization
“Fun” Internet-connected devices
Tweet-a-watt:
monitor energy use
bikes
Gaming devices
Others?
Internet phones diapers
The Internet: a view
mobile network
4G
Internet: “network of networks” national or global ISP
Interconnected ISPs
Streaming
▪ protocols are everywhere Skype
IP
video
• control sending, receiving of
messages local or
regional
• e.g., HTTP (Web), streaming video, ISP
WiFi
The Internet: a “services” view
Infrastructure that provides services to mobile network
applications: national or global ISP
Web, streaming video, multimedia
teleconferencing, email, games, e-commerce,
social media, inter-connected appliances, … Streaming
Skype video
▪ provides programming local or
interface to distributed regional
ISP
applications: home network content
• “hooks” allowing HTTP
provider
network
sending/receiving apps to
datacenter
network
Rules for:
Protocols define the format,
… specific messages sent
order of messages sent and
… specific actions taken
when message received, received among network
or other events entities, and actions taken on
message transmission, receipt
What’s a protocol?
A human protocol and a computer network protocol:
Hi TCP connection
request
Hi TCP connection
response
Got the
time? GET
http://gaia.cs.umass.edu/kurose_ross
2:00
<file>
time
Network edge:
hosts: clients and servers
servers often in data centers local or
regional ISP
enterprise
network
A closer look at Internet
structure mobile network
national or global ISP
Network edge:
hosts: clients and servers
servers often in data centers
local or
Access networks, physical media: regional ISP
enterprise
network
A closer look at Internet
structure mobile network
national or global ISP
Network edge:
hosts: clients and servers
servers often in data centers
local or
Access networks, physical media: regional ISP
▪ interconnected routers
▪ network of networks enterprise
network
Access networks and physical media
Q: How to connect end mobile network
enterprise
network
Access networks: cable-based access
cable headend
cable splitter
modem
C
O
V V V V V V N
I I I I I I D D T
D D D D D D A A R
E E E E E E T T O
O O O O O O A A L
1 2 3 4 5 6 7 8 9
Channels
DSL splitter
modem DSLAM
to/from headend or
central office
often combined
in single box
to Internet
to Internet
Access networks: enterprise networks
Enterprise link to
ISP (Internet)
institutional router
Ethernet institutional mail,
switch web servers
local or
regional ISP
enterprise
network
Two key network-core functions
L bits
per packet
3 2 1
source destination
R bps R bps
D
B R = 1.5 Mb/s
E
queue of packets
waiting for transmission
over output link
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
packets can be dropped (lost) if memory (buffer) in router fills up
Alternative to packet switching: circuit switching
end-end resources allocated to, reserved for “call”
between source and destination
* Check out the online interactive exercises for more examples: http://gaia.cs.umass.edu/kurose_ross/interactive
Circuit switching: FDM and TDM
frequency
frequencies divided into (narrow)
frequency bands
▪ each call allocated its own band, can
transmit at max rate of that narrow time
band
frequency
▪ time divided into slots
▪ each call allocated periodic slot(s), can
transmit at maximum rate of (wider) time
frequency band (only) during its time
slot(s)
Packet switching versus circuit switching
example:
▪ 1 Gb/s link
N
▪ each user: users 1 Gbps link
• 100 Mb/s when “active”
• active 10% of time
Q: how many users can use this network under circuit-switching and packet switching?
▪ circuit-switching: 10 users
▪ packet switching: with 35 users, Q: how did we get value 0.0004?
probability > 10 active at same time
is less than .0004 *
A: HW problem (for those with
course in probability only)
* Check out the online interactive exercises for more examples: http://gaia.cs.umass.edu/kurose_ross/interactive
Packet switching versus circuit switching
Is packet switching a “slam dunk winner”?
▪ great for “bursty” data – sometimes has data to send, but at other times not
• resource sharing
• simpler, no call setup
▪ excessive congestion possible: packet delay and loss due to buffer overflow
• protocols needed for reliable data transfer, congestion control
▪ Q: How to provide circuit-like behavior with packet-switching?
• “It’s complicated.” We’ll study various techniques that try to make packet
switching as “circuit-like” as possible.
national policies
Let’s take a stepwise approach to describe current Internet structure
Internet structure: a “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
net
access access
net access net
net
Internet structure: a “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
net
access
net
access
net
access
net
access access
net access net
net
Internet structure: a “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
access
net
ISP access
net
access
net
access
net
access
net
access
net
access access
net access net
net
Internet structure: a “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
net ISP B access
net
access ISP C
net
access
net
access
net
access
net
access access
net access net
net
Internet structure: a “network of networks”
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
Internet structure: a “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
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
Internet structure: a “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
access net
net ISP A
access ISP C
net
access
net
access
net
regional ISP access
net
access access
net access net
net
Internet structure: a “network of networks”