Download ppt

Survey
yes no Was this document useful for you?
   Thank you for your participation!

* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project

Document related concepts

Multiprotocol Label Switching wikipedia , lookup

Policies promoting wireless broadband in the United States wikipedia , lookup

TV Everywhere wikipedia , lookup

Asynchronous Transfer Mode wikipedia , lookup

Wireless security wikipedia , lookup

Peering wikipedia , lookup

Net neutrality law wikipedia , lookup

Zero-configuration networking wikipedia , lookup

Distributed firewall wikipedia , lookup

Recursive InterNetwork Architecture (RINA) wikipedia , lookup

Computer network wikipedia , lookup

Wake-on-LAN wikipedia , lookup

Network tap wikipedia , lookup

IEEE 1355 wikipedia , lookup

Airborne Networking wikipedia , lookup

Deep packet inspection wikipedia , lookup

Net bias wikipedia , lookup

Packet switching wikipedia , lookup

Cracking of wireless networks wikipedia , lookup

Piggybacking (Internet access) wikipedia , lookup

Transcript
COMP 431
Internet Services & Protocols
A Whirlwind Introduction to the Internet
(“Networking Nouns and Verbs”)
Jasleen Kaur
January 14, 2016
1
A Whirlwind Introduction to the Internet
Overview

What’s the Internet

Network core

Network edge

Access nets, physical media

Internet Structure & ISPs

Performance: loss, delay

Protocol layers, service models
Introduce the major
nouns and verbs of
networking!
local ISP*
regional ISP
company
network
*Internet Service Provider
2
Some Definitions
The “nuts and bolts” view

Millions of connected computing
devices: hosts, end-systems
local ISP
» PCs, workstations, servers
» PDAs, phones, toasters running “network
applications”

Communication links
» Different media (fiber, copper wire, radio,
satellite)
» Different transmission rates – bits
per second (bps)
 103 (Kbps) to 106 (Mbps) to 109 (Gbps)

regional ISP
company
network
Routers:
» Forward “packets” of data though the
network
router
server
workstation
mobile
3
Some Definitions
The “nuts and bolts” view

Protocols:
local ISP
» Control sending, receiving of messages
» e.g., TCP, IP, HTTP, BGP, ….

regional ISP
Internet standards
» RFC: Request for comments
» IETF: Internet Engineering Task Force

Internet: “network of networks”
company
network
» Loosely hierarchical
» Public Internet versus private intranets
router
server
workstation
mobile
4
Some Definitions
The “services” view

Internet: A communication
infrastructure enabling distributed
applications
local ISP
» WWW, email, games, e-commerce,
database, voting, ...

regional ISP
Communication services provided:
» Connectionless:
 No guarantees
» Connection-oriented:
 Guarantees order and completeness
company
network
5
Network Maps
Just how big is the Internet…?
6
7
A Whirlwind Introduction to the Internet
Overview

What’s the Internet

Network core

Network edge

Access nets, physical media

Internet Structure & ISPs

Performance: loss, delay

Protocol layers, service models
local ISP
regional ISP
company
network
8
The Structure of the Internet
The physical makeup of the Internet

Network core:
» Routers
» Network of networks

local ISP
regional ISP
Network edge:
» Applications running on hosts
 “host” = “end system”

In between: Access networks
» Physical media: communication links
company
network
9
Network Structure
The network core

A mesh of interconnected routers

The fundamental architectural question:
How is data forwarded through the network?
» Circuit switching:
 dedicated circuit (path) per call used by
all data
 e.g., telephone networks
» Packet switching:
 data sent in discrete “chunks” (packets)
 each packet has a path chosen for it
independently
10
The Network Core
Circuit Switching

Resources reserved end-to-end for
the connection (“call”)
» Resources:
 Link bandwidth, switch processing
capacity, memory buffers, etc.
» Reservation:
 Dedicated fraction of available
bandwidth, buffers, etc.

:
» Circuit-like (guaranteed) performance

:
» Call setup required
» Call rejection (“busy signal”) possible
11
Circuit Switching
Allocating fractions of bandwidth — Multiplexing

Network bandwidth divided
into transmission “slots”
» Slots allocated to calls
» Slots are unused (“idle”) if not
used by owning call
» No sharing of slots!

How to divide link
bandwidth into slots?
» Frequency division multiplexing
(FDM)
» Time division multiplexing
(TDM)
Transmission
Frequency
4 KHz
Call 1
Call 2
Call 3
Call 4
FDM
Time
Link
capacity
Call data
TDM 1 2 3 4 1 2 3 4 1 2 3 4
Slot
Frame
frames/sec X bits/slot =
TDM per-call transmission rate
12
The Network Core
Packet Switching
 Each
sender divides its messages
into “packets” (sequence of bits)
» Each packet uses full link capacity until
transmission completed
» Senders’ packets share (compete for)
network resources
» Resources allocated & used as needed



Bandwidth division into slots
Dedicated allocation
Resource reservation
 But
now we have resource
contention!
» Aggregate resource demand can
exceed amount available
» Congestion: packets queue,
wait for link availability
 Also
introduces Store-andForward delays:
» packets move one hop at a time
 Routers receive complete
packet over incoming link
 Then transmit over
outgoing link
13
Packet Switching
Statistical multiplexing
10 Mbps
Ethernet
A
B
Statistical Multiplexing
(vs TDM/FDM)
1.5 Mbps
queue of packets
waiting for output
link
45 Mbps
D

C
E
Packet-switching versus circuit switching:
» Restaurant seating analogy
» Other familiar analogies?
14
The Network Core
Packet switching v. Circuit switching
1 Mbps link
N users
Packet switching
allows more users
to use the network!

Assume that on a 1 Mbps link:
» Each user consumes 100Kbps when “active”
» Each user active 10% of time


Circuit-switching can support 10 users
Packet switching can support 33 users
» With 33 users the probability of more than 10 users active
simultaneously is less than 0.002
15
Packet Switching v. Circuit Switching
Is packet switching a “no brainer”?

:
» Great for bursty data 

Resource sharing
» No call setup
» Light-weight fault recovery

Excessive congestion: packet delay and loss 
» Protocols needed for reliable data transfer, congestion control

How to provide circuit-like behavior?
» Bandwidth guarantees needed for audio/video applications?
» Still an unsolved problem (go to grad school!)
16
Packet Switching (Store and Forward)
Why switch packets instead of entire messages?
1.5 Mbps
5 seconds
5 seconds
5 seconds
7.5 Mb
Message

“Message switching” example
» Transmit a 7.5 Mb message over a network with 1.5 Mbps links

Assume negligible propagation delay
» What is the total elapsed time?
17
Packet Switching (Store and Forward)
Why switch packets instead of entire messages?
1.5 Mbps
Time
7.5 Mb
Message
1
2
3
4
0.001
1
2
3
0.002
1
2
0.003
0.004
...
...
...
...

0.000
...
5,000
Packets
1
2
3
4
5
4999
4998
4997
4996
4.998
5000
4999
4998
4997
4.999
5000
4999
4998
5.000
5000
4999
5.001
5000
5.002
Packet-switching: store and forward behavior
» 1,500 bit packets, 1 packet forwarded every 1 ms
http://media.pearsoncmg.com/aw/aw_kurose_network_2/applets/message/messagesegmentation.html
Animation
18
Packet Switching
Forwarding

Forwarding:
local ISP
» The process of moving packets among
routers from source to destination

regional ISP
Datagram network:
» Each packet carries a destination address
» Destination address used to look up next hop
» Route (next hop) may change at any time

Virtual circuit (path) network:
company
network
» Packets carry a “tag” (virtual circuit ID) that determines the next hop
» Path determined at call setup time & remains fixed throughout call
» Routers maintain per-call path state
19
Forwarding in Packet Switched Networks
Virtual circuit forwarding
a
b
c
...
...
Outbound New VC
Interface Number
b
19
b
8
c
63
...
VC
Number
127
32
84
...
Inbound
Interface
a
a
b

A (static) route is computed before
any data is sent

Packets contain a VC identifier

Routers maintain perconnection state
» And perform set-up/teardown operations
(Why not choose a single VC
identifier for the entire path and
avoid replacing it at each hop?)
» Identifier replaced at every hop
20
Forwarding in Packet Switched Networks
Datagram forwarding
a
Network
ID
xxx.yyy.
uuu.vvv.
sss.ttt.
c
...
...

Next
Hop
b
b
c
b
Packets contain complete destination address
» Address specifies both a network and a host

Each router examines the destination address
» And forwards packet to the next router closest to the destination network
 Routers maintain a table of “next hops” to all destination networks

Routers maintain no per-connection state
21
The Structure of the Internet
The physical makeup of the Internet

Network core:
local ISP
» Routers
» Network of networks

regional ISP
Network edge:
» Applications and hosts

In between: Access networks
» Physical media: communication links
company
network
22
Network Structure
The network edge

End systems (hosts)
» Live at the “edge of network”
» Run applications

Interaction paradigms:
» Client/server model
 Client requests, receives service
from server
 WWW browser/server; email
client/server
» Peer-to-peer model:
 Host interactions symmetric
 File sharing (Napster,
Gnutella,…)

What about?
» Remote login?
» Newsgroups?
» Telephony?
23
Transport Services @ The Network Edge
Connection-oriented service

Goal: Transfer data between
end systems
» handshaking: setup data transfer
ahead of time
 “Hello, hello-back” human
protocol
 Set up “state” in two
communicating hosts
» Transmit data

Connection-oriented service on
the Internet:
» TCP - Transmission Control
Protocol [RFC 793]

TCP service model
» reliable, in-order, byte-stream
 Losses detected and recovered
from
» flow control:
 Sender won’t overwhelm
receiver
» congestion control:
 Senders “slow down sending
rate” when network congested
Each of the above services can
be defined only in the context of
a “connection” !
24
Transport Services @ The Network Edge
Connectionless service

Goal: Transfer data between
end systems

» HTTP (WWW), FTP (file
transfer), Telnet (remote login),
SMTP (email)
» Same as before!

Connectionless service on the
Internet:
» UDP - User Datagram Protocol
[RFC 768]
 Unreliable data transfer
 No flow control
 No congestion control
Applications using TCP:

Applications using UDP:
» DNS (name to address mapping),
streaming media (traditionally),
teleconferencing, Internet
telephony
25
Network Taxonomy
Telecommunication
networks
Circuit-switched
networks
FDM
TDM

Packet-switched
networks
Networks
with VCs
Datagram
Networks
The Internet
» Is a Datagram network
» Provides two types of services to applications:
 Connectionless (UDP)
 Connection-oriented (TCP)
26
The Structure of the Internet
The physical makeup of the Internet

Network core:
local ISP
» Routers
» Network of networks

regional ISP
Network edge:
» Applications and hosts

In between: Access networks
» Physical media: communication links
company
network
27
Network Structure
Access networks and physical media

How to connect end-systems to
edge router?
» Residential access nets
» Institutional/enterprise access
networks
» Mobile access networks

Issues:
» Transmission speed (bits per second)
of access network?
» Shared or dedicated?
28
Access Networks and Physical Media
Physical Media


Transmission is the propagation of an electro-magnetic
wave (or optical pulse) through
a physical medium

What do you use?
» Twisted Pair (UTP) — Two
insulated copper wires
Media types
» Guided media — signals
propagate in solid media (copper,
fiber)
» Unguided media — signals
propagate freely (radio, infrared)

Category 3 UTP:
» Traditional phone wires,
10 Mbps Ethernet

Category 5 UTP:
» 100Mbps Ethernet
» Gigabit possible
» Distance limited (100 m)
29
Physical Media
Coaxial and fiber optic cable

Coaxial cable
» Wire (signal carrier) within a wire (shield)
 Baseband: single channel on cable
 Broadband: multiple channel on cable
» Bi-directional transmission
» Largely used for cable TV

Fiber optic cable
» Glass fiber carrying light pulses
» Higher-speed operation:
 100-1,000 Mbps Ethernet
 High-speed point-to-point transmission (e.g., 10
Gbps)
» Low signal attenuation – long distances
» Low error rate
30
Physical Media
Radio

Signal carried in electromagnetic spectrum
» No physical “wire”


Bi-directional
Physical environment effects
propagation
» Reflection
» Obstruction by objects
» Interference

Radio link types:
» Microwave
 Up to 45 Mbps channels
» LAN (e.g., 802.11)
 2 Mbps, 11, 56 Mbps
» Wide-area (e.g., cellular)
 CDPD, 10’s Kbps
» Satellite
 Up to 50Mbps channel (or
multiple smaller channels)
 270 msec end-end delay
 Geosynchronous versus
LEOS
uplink
base
station
31
Access Networks and Physical Media
Residential access: point-to-point access

Dialup via modem
» Modem (modulator-demodulator) does
digitalanalog signal conversions
» Up to 56Kbps direct access to router
ISDN: Integrated Services Digital
Network
...

» 128Kbps all-digital connection to
router

DSL: Digital Subscriber Line
» Asymmetric speeds
 Up to 8 Mbps to the home
 Up to 1 Mbps from the home
 Distance-dependent, typical is 1-2 Mbps to home
» Dedicated access
32
Access Networks and Physical Media
Residential access: cable modems

HFC (Hybrid Fiber-Coax)
» Asymmetric speeds
» Shared access

Issues:
» Congestion
» Provisioning

200,000 – 400,000
homes (e.g. RTP
Metro)
20,000 – 40,000
homes (e.g.,
Chapel Hill)
500 – 1,000
homes
Providers:
»
»
»
»
»
Time Warner
AT&T
Cox
Comcast
…..
2 Mbps to home
0.5 Mbps from home
33
Cable Network Architecture: Overview
cable headend
cable distribution
network (simplified)
home
34
Cable Network Architecture: Overview
FDM:
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
1
2
3
4
5
6
7
8
9
Channels
cable headend
cable distribution
network
home
35
Residential Broadband Deployment
(Kinetic Strategies, 12/2001)
US Cable Internet Share
North America Residental Broadband
18%
22%
8,000,000
*
AT&T
Time Warner
7,000,000
Comcast
13%
Charter
Cox
6,000,000
Other
8%
26%
5,000,000
13%
Cable
4,000,000
DSL
*
*pending merger of AT&T Broadband and Comcast
US DSL Internet Share
3,000,000
2,000,000
10%
2%
1,000,000
34%
13%
SBC
Verizon
0
Qwest
Q3 2000
Q4 2000
Q1 2001
Q2 2001
BellSouth
Q3 2001
Broadwing
12%
Covad
29%
36
Access Networks and Physical Media
Institutional access: local area networks
Local area network (LAN) connects
end system to edge router

Ethernet is the dominant technology

Deployment: institutions, home
LANs
...
» Shared or dedicated cable connects end
system and router
» 10 Mbps, 100Mbps, 1Gbps Ethernet
...

37
Access Networks and Physical Media
Wireless access networks


Shared wireless access network
connects end-system to router
router
Wireless LANs:
» Radio spectrum replaces wire.
e.g., Lucent Wavelan (2-12 Mbps)

Wider-area wireless access
» CDPD: wireless access to ISP router via
cellular network
base
station
mobile hosts
38
Home networks
Typical home network components:
 ADSL or cable modem
 router/firewall/NAT
 Ethernet
 wireless access
point
to/from
cable
headend
cable
modem
wireless
laptops
router/
firewall
Ethernet
wireless
access
point
39