Chapter 1 Introduction Introduction 1-1 What’s the Internet: a service view communication infrastructure enables distributed applications: ❍ Web, VoIP, email, games, e-commerce, file sharing communication services Introduction 1-2 communication services provided to apps: ❍ reliable data delivery from source to destination ❍ “best effort” (unreliable) data delivery What’s the Internet: “nuts and bolts” view millions of connected computing devices: hosts = end systems ❍ running network apps Home network Mobile network Global ISP Regional ISP PC server wireless laptop cellular handheld communication links Introduction 1-3 Institutional network Regional ISP router wired links access points communication links fiber, copper, radio, satellite transmission rate = bandwidth routers: forward packets (chunks of data) What’s the Internet: “nuts and bolts” view protocols control sending, receiving of msgs ❍ e.g., TCP, IP, HTTP, Skype, Ethernet Internet: “network of networks” Home network Mobile network Global ISP Regional ISP Introduction 1-4 networks” ❍ loosely hierarchical ❍ public Internet versus private intranet Internet standards ❍ RFC: Request for comments ❍ IETF: Internet Engineering Task Force Institutional network Regional ISP
25
Embed
What’s the Internet: a service vielopresti/Didattica/RetiWeb/RetiWeb...Chapter 1 Introduction Introduction 1-1 What’s the Internet: a service view communication infrastructure
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Chapter 1Introduction
Introduction 1-1
What’s the Internet: a service view
� communication infrastructure enables distributed applications:
� low error rate: repeaters spaced far apart; immune to electromagnetic noise
Physical Media: radio
� signal carried in electromagnetic spectrum
� no physical “wire”
� bidirectional
propagation
Radio link types:� terrestrial microwave
❍ e.g. up to 45 Mbps channels
� LAN (e.g., WiFi)❍ 11Mbps, 54Mbps
Introduction 1-15
� propagation environment effects:
❍ reflection
❍ obstruction by objects
❍ interference
11Mbps, 54Mbps
� wide-area (e.g., cellular)❍ e.g. 3G: hundreds of kbps
� satellite❍ up to 50Mbps channel (or
multiple smaller channels)
❍ 270 msec end-end delay
❍ geosynchronous versus LEOS
Access networks and physical media
Q: How to connect end systems to edge router?
� residential access nets
� institutional access networks (school, company)
Introduction 1-16
company)
� mobile access networks
Keep in mind: � bandwidth (bits per
second) of access network?
� shared or dedicated?
Residential access: point to point access
� Dialup via modem
❍ up to 56Kbps direct access to router (often less)
❍ Can’t surf and phone at same time: can’t be “always on”
Introduction 1-17
time: can’t be “always on”
� ADSL: asymmetric digital subscriber line
❍ up to 1 Mbps upstream (today typically < 256 kbps)
❍ up to 8 Mbps downstream (today typically < 1 Mbps)
❍ FDM: 50 kHz - 1 MHz for downstream4 kHz - 50 kHz for upstream
0 kHz - 4 kHz for ordinary telephone
Residential access: cable modems
� HFC: hybrid fiber coax
❍ asymmetric: up to 10Mbps downstream, 1 Mbps upstream
� network of cable and fiber attaches homes to ISP router
shared access to router among home
Introduction 1-18
❍ shared access to router among home
❍ issues: congestion, dimensioning
� deployment: available via cable companies, e.g., MediaOne
Cable Network Architecture: Overview
Typically 500 to 5,000 homes
Introduction 1-19
home
cable headend
cable distributionnetwork (simplified)
Typically 500 to 5,000 homes
Company access: local area networks
� company/univ local area network (LAN) connects end system to edge router
� Ethernet:
❍ shared or dedicated link connects end system
Introduction 1-20
connects end system and router
❍ 10 Mbs, 100Mbps, Gigabit Ethernet
� deployment: institutions, home LANs happening now
� LANs: chapter 5
Wireless access networks
� shared wireless access network connects end system to router
❍ via base station aka “access point”
� wireless LANs:base
station
router
Introduction 1-21
� wireless LANs:❍ 802.11g: 54 Mbps
� wider-area wireless access❍ provided by telco operator
❍ 3G ~ 384 kbps
• Will it happen??
❍ WAP/GPRS/EDGE/UMTS in Europe
station
mobilehosts
Home networks
Typical home network components:
� DSL or cable modem
� router/firewall/NAT
� Ethernet
� wireless access
Introduction 1-22
wireless access
point
wireless
access
point
wireless
laptopsrouter/
firewall
cable
modem
to/from
cable
headend
Ethernet
Router
� Forward a chunk of information (called packet) arriving on one of its communication links to one of its outgoing communications link (the next hop on the source-to-destination path)
AB
Introduction 1-23
-Receives the packet-Based on a routing table and the destination address, computes the ‘next hop’ to the destination-Forwards the packet to the next hop-The process of computing and maintaining the routing table is called Routing
-Receives the packet-Based on a routing table and the destination address, computes the ‘next hop’ to the destination-Forwards the packet to the next hop-The process of computing and maintaining the routing table is called Routing
forwardingRouting table
Dest. AddressNext Hop
The Network Core
� mesh of interconnected routers
� fundamental questions: how is data transferred through net? How are network resources shared?
Introduction 1-24
resources shared?❍ circuit switching:dedicated resources (circuit) per call: telephone net
❍ packet-switching: data sent thru net in discrete “chunks”. Resources allocated on demand
Network Core: Circuit Switching
End-end resources reserved for “call”
� link bandwidth, switch capacity
dedicated resources:
Introduction 1-25
� dedicated resources: no sharing
� circuit-like (guaranteed) performance
� call setup required
Network Core: Circuit Switching
� 3 phases1. Call setup
❒ Resources Allocation
2. Data transfer❒ Resources Usage
Call Teardown
Introduction 1-26
3. Call Teardown❒ Resources Release
❒ required for all connection-based services
Network Core: Circuit Switching
� network resources (e.g., bandwidth) divided into “pieces”
❍ pieces allocated to calls
Introduction 1-27
TXRX
TXTXRX
RX
Physical linkTXRX
Network Core: Circuit Switching
� FDM: Frequency Division Multiplexing❍ Different frequency intervals allocated to different calls
Introduction 1-28
TXRX
TXTXRX
RX
Physical linkTXRX
time
freq
uenc
y
Network Core: Circuit Switching
� TDM: Time Division Multiplexing❍ Different time intervals allocated to different calls
❍ For each call: one slot per frame
slot frame
Introduction 1-29
TXRX
TXTXRX
RX
Physical linkTXRX
time
freq
uenc
y
Network Core: Packet Switching
A
B
C10 MbsEthernet
1.5 Mbs
queue of packetswaiting for output
Introduction 1-30
each end-end data stream divided into packets� user A, B packets share network resources� each packet uses full link bandwidth store and forward� Entire packet must arrive at router before it can be
transmitted on next link� packets move one hop at a time
❍ transmit over link❍ wait turn at next link
waiting for outputlink
Network Core: Packet Switching
A
B
C10 MbsEthernet
1.5 Mbs
queue of packetswaiting for output
statistical multiplexing
Introduction 1-31
Statistical Multiplexing: Sequence of A & B packets does not have fixed pattern
� resources used as neededresource contention:� aggregate resource demand can exceed
amount available� congestion: packets queue, wait for link
use❍ May get dropped if buffer gets full
waiting for outputlink
Bandwidth division into “pieces”
Dedicated allocation
Resource reservation
Packet switching versus circuit switching
� 1 Mbit link
� each user: ❍ 100 kbps when “active”
❍ active 10% of time
Packet switching allows more users to use network!
Introduction 1-32
❍ active 10% of time
� circuit-switching: ❍ 10 users
� packet switching: ❍ with 35 users,
probability > 10 active less than .0004
N users
1 Mbps link
Packet switching versus circuit switching
� Packet switching: Great for bursty data
❍ resource sharing
❍ simpler, no call setup
� Excessive congestion: packet delay and loss
❍ protocols needed for reliable data transfer,
Introduction 1-33
❍ protocols needed for reliable data transfer, congestion control
� Q: How to provide circuit-like behavior?
❍ bandwidth guarantees needed for audio/video apps
❍ still an unsolved problem (chapter 6)
Packet-switching vs Message Switching
� Takes L/R seconds to transmit (push out) packet of L bits on to link or R bps
Example:
� L = 7.5 Mbits
� R = 1.5 Mbps
R R R
L
Introduction 1-34
packet of L bits on to link or R bps
� Entire packet must arrive at router before it can be transmitted on next link: store and forward
� delay = 3L/R
� R = 1.5 Mbps
� delay = 15 sec
Packet Switching: Message Segmenting
Now break up the message into 5000 packets
� Each packet 1,500 bits
� 1 msec to transmit packet on one link
Introduction 1-35
packet on one link
� pipelining: each link works in parallel
� Delay reduced from 15 sec to 5.002 sec
Packet Switching: Virtual Circuits Networks� Connection Based
1. Call setup❍ fixed path determined
at call setup time, remains fixed
❍ link, bandwidth, buffers may be allocated to VC
2. Data transfer❍ each packet carries VC
identifier
3. Teardown
Introduction 1-36
applicationtransportnetworkdata linkphysical
applicationtransportnetworkdata linkphysical
1. Initiate call 2. incoming call
3. Accept call4. Call connected5. Data flow begins 6. Receive data
may be allocated to VC• to get circuit-like perf
Packet Switching: Datagram Networks(The Internet Model)
� no call setup
� routers: no state about end-to-end connections❍ no network-level concept of “connection”
� packets forwarded using destination host address❍ packets between same source-dest pair may take
� dprop = propagation delay❍ a few microsecs to hundreds of msecs
Queueing delay (revisited)
� R=link bandwidth (bps)
� L=packet length (bits)
� a=average packet arrival rate
Introduction 1-48
traffic intensity = La/R
� La/R ~ 0: average queueing delay small
� La/R -> 1: delays become large
� La/R > 1: more “work” arriving than can be serviced, average delay infinite!
Packet loss
� queue (aka buffer) preceding link in buffer has finite capacity
� when packet arrives to full queue, packet is dropped (aka lost)
� lost packet may be retransmitted by
Introduction 1-49
� lost packet may be retransmitted by previous node, by source end system, or not retransmitted at all
Throughput
� throughput: rate (bits/time unit) at which bits transferred between sender/receiver❍ instantaneous: rate at given point in time❍ average: rate over longer period of time
Introduction 1-50
server, with
file of F bits
to send to client
link capacity
Rs bits/sec
link capacity
Rc bits/sec
pipe that can carry
fluid at rate
Rs bits/sec)
pipe that can carry
fluid at rate
Rc bits/sec)
server sends bits
(fluid) into pipe
Throughput (more)
� Rs < Rc What is average end-end throughput?
Rs bits/sec Rc bits/sec
R > R What is average end-end throughput?
Introduction 1-51
� Rs > Rc What is average end-end throughput?
Rs bits/sec Rc bits/sec
link on end-end path that constrains end-end throughput
bottleneck link
Throughput: Internet scenario
Rs
Rs
Rs
R
� per-connection end-end throughput:
Introduction 1-52
10 connections (fairly) share backbone bottleneck link R bits/sec
Rc
Rc
Rc
Rthroughput: min(Rc,Rs,R/10)
� in practice: Rc or Rs is often bottleneck
Protocol “Layers”
Networks are complex!
� many “pieces”:
❍ hosts
❍ routers
❍ links of various
Question:Is there any hope of organizing structure of
Introduction 1-53
❍ links of various media
❍ applications
❍ protocols
❍ hardware, software
organizing structure of network?
Or at least our discussion of networks?
Example: Plato and Archimedes…
Philosopher (Plato)
Secretary
Philosopher (Archimedes)
Secretary
Message to Archimedes
Introduction 1-54
� a series of steps
Mailbox
Mail Truck
Mailbox
Mail TruckMail Truck
Mailbox
Mail Truck
Plato & Archimedes: a different view
Philosopher (Plato)
Secretary
Philosopher (Archimedes)
SecretaryTransfer message from sender to receiver
Discuss Metaphysic’s Principles
Introduction 1-55
Mailbox
Mail Truck
Mailbox
Mail TruckMail Truck
Mailbox
Mail Truck
� Layers: each layer implements a service❍ relying on services provided by layer below
Move mail from one mailbox to the next
Transfer mail from sender to receiver
Plato & Archimedes: a different view
Philosopher (Plato)
Secretary
Philosopher (Archimedes)
Secretary
Exchange Ideas
Exchange Letters
Move Move
Introduction 1-56
Mailbox
Mail Truck
Mailbox
Mail TruckMail Truck
Mailbox
Mail Truck
� Layers: each layer implements a service❍ via its own internal-layer actions
• governed by rules (protocols)
Move Mail
Move Mail
Move Truck
Move Truck
Why layering?
Dealing with complex systems:� Decompose the system into subsystems
❍ Each implementing a subset of overall functionalities
� layered subsystems as reference model for discussion
� modularization eases maintenance, updating of
Introduction 1-57
� modularization eases maintenance, updating of system❍ change of implementation of layer’s service transparent to rest of system
❍ e.g., change from mail-truck to bike (environmental concerns…)
� layering considered harmful?
Layered Architecture
� Network provides communications services to applications
Introduction 1-58
Process A
ProcessB
Message exchange
Host A Host B
Network
Layered Architecture
� Network provides communications services to applications
Introduction 1-59
Process A
ProcessB
Message exchange
Host A Host B
Layered Architecture
� Abstract Model of the communication environment
� Communication system as composed of ordered set of layers
❍ Each implementing a subset of overall functionalities
Introduction 1-60
Process A
ProcessB
Message exchange
Host A Host B
Physical media
Process A
ProcessB
Message exchange
Layered Architecture
� Systems logically decomposed in subsystems
� Layer: collection of subsystems at the same level❍ (N) Layer: Layer at level N
Introduction 1-61
Physical media
(3)-Layer
Process A
ProcessB
Message exchange
Layered Architecture
� Each layer provides a service (to the layer above)❍ Service: set of functions offered to the layer above
• Error Control, Flow Control
❍ relying on services provided by layer below❍ via its own internal-layer actions
Introduction 1-62
Physical media
(3)-Layer
Process A
ProcessB
Message exchange
Layered Architecture
� Each layer provides a “value added” (communication) service with respect to the service provided by the layer below