Documente Academic
Documente Profesional
Documente Cultură
Layered Architecture
Reference: Chapter 2.1-2.2, 2.3.1
Page 1
The Internet :
- Collection of networks and routers that span the world and use the TCP/IP protocols to form a single, cooperative virtual network
Elements of a Network
Hosts, end-systems
pcs, workstations, servers PDAs, phones, toasters router server local ISP workstation mobile
regional ISP
company network
4
Page 2
Internet Architecture
International lines
NAP
regional network
university company
- Tier-1 ISPs (e.g., AT&T, Sprint, UUNet, BBN/Genuity) providing national/international coverage
Page 3
NSP: National Service Provider (Tier 1 Backbones) NAP: National Access Point
Example: Internet MCI, Sprint Link, UUNET
National Provider
POP
NAP
National Provider
Regional Provider
customers
Internet Network
Private Peering
Pacific Bell Exchange Point
Private Peering Private Peering Private Peering Private Peering Private Peering 8
Page 4
Sprint Network
Seattle Tacoma
Legend
Click here for a closer look at the Sprint network in Washington state
Cheyenne
Chicago Roachdale
Kansas City
Click here for a closer look at the Sprint network in Northern California
Anaheim Atlanta Pearl City in Hawaii is a future network location Fort Worth Orlando
10
Page 5
11
Types of links
- DS1/T1: 1.544 Mbps (24x 64Kbps) - DS3/T3: 44.736 Mbps - STS-1/OC-1: 51.84 Mbps
Possibilities
- IP over SONET - IP over ATM - IP over Frame Relay - IP over WDM
STS-3/OC-3: 155.2 Mbps STS-12/OC-12: 622.080 Mbps STS-48/OC-48: 2.488 Gbps STS-192/OC-192: 9.953 Gbps
12
Page 6
How was it designed? Why is the Internet the way it is today? Can we reduce its complexity to something tractable?
13
Layered Architecture
Layering simplifies the architecture of complex system Layer N relies on services from layer N-1 to provide a service to layer N+1 Interfaces define the services offered Service required from a lower layer is independent of its implementation
- Information/complexity hiding - Layer N change doesnt affect other layers - Similar to object oriented methodology
14
Page 7
Protocols
Protocol: rules by which network elements communicate Protocols define the agreement between peering entities
- The format and the meaning of messages exchanged
15
16
Page 8
ISO International Standard Organization OSI Open System Interconnection Started to 1978; first standard 1979
- ARPANET started in 1969; TCP/IP protocols ready by 1974
17
OSI: conceptually define service, interface, & protocol Service says what a layer does Interface says how to access the service Protocol says how is the service implemented
- A set of rules and formats that govern the communication between two peers
18
Page 9
Seven layers
- Lower three layers are peer-to-peer - Next four layers are end-to-end
Layer-to -layer communication
19
Data Transmission
A layer can use only the service provided by the layer immediate below it Each layer may change and add a header to data packet
data data data data data data data data data data data data data data
20
Page 10
Protocol Packets
Protocol data units (PDUs): packets exchanged between peer entities Service data units (SDUs): packets handed to a layer by an upper layer Data at one layer is encapsulated in packet at a lower layer
- Envelope within envelope: PDU = SDU + (optional) header or trailer
21
Implementation of Layers
22
Page 11
Service: transmitting raw bits (0/1) over wire/physical link between two systems Interface: specifies how to send a bit Protocol: coding scheme used to represent a bit, voltage levels, duration of a bit Examples: coaxial cable, optical fiber links; transmitters, receivers
0 0 1 0 1 1 1 1 0 1 0 0 0 0 0 1
Bits
+V
NRZ
Chuah, Fall 2004
-V
23
Service:
- Framing, i.e., attach frames separator - Send data frames between peers attached to the same physical media - Others (optional): Arbitrate the access to common physical media Ensure reliable transmission Provide flow control
Interface: send a data unit (packet) to a machine connected to the same physical media Protocol: layer addresses, implement Medium Access Control (MAC) (e.g., CSMA/CD) Example: Ethernet, PPP
24
Page 12
Service:
- Deliver a packet to specified destination Naming and addressing Routing of packets within a network Avoidance of failed links - Perform segmentation/reassemble (fragmentation/defragmentation) - Others: Packet scheduling Buffer management
Interface: send a packet to a specified destination Protocol: define global unique addresses; construct routing tables Example: IP
25
Service:
- Provide an error -free and flow-controlled end-host to end-host connection - Multiplex multiple transport connections to one network connection - Split one transport connection in multiple network connections
Interface: send a packet to specify destination Protocol: implement reliability and flow control Examples: TCP and UDP
26
Page 13
Service:
- Session setup (authentication) - Recovery from failure (broken session) - Full-duplex - Access management, e.g., token control - Synchronization, e.g., provide check points for long transfers
27
Service: convert data between various representations to common format Interface: depends on service Protocol: define data formats, and rules to convert from one format to another Example: Little endian vs big endian byte orders
http://www.cs.umass.edu/~verts/cs32/endian.html
28
Page 14
Interface: depends on the application Protocol: depends on the application Examples: FTP, Telnet, HTTP
29
Why layering?
Key technique to implement complex systems & communication protocols
Abstraction
- Explicit structure allows identification, relationship of different pieces
Modularity -> eases maintenance, updating of system - Change of implementation of layers service transparent to rest of system - e.g., change in gate procedure doesnt affect rest of system Resuse
- Software/code, system component, protocol
30
Page 15
Design Challenges
31
Control Plane: concerned with installing and maintaining state for data plane
32
Page 16
Example: Routing
Data plane: use Forwarding Table to forward packets Control plane: construct and maintain Forwarding Tables (e.g., Distance Vector, Link State protocols)
Fwd table H2 R4 R1 R3 R2 R5
33
Fwd table H2 R6 H2 R4 R6
H1
OSI: conceptually define: service, interface, protocol Internet: provide a successful implementation
Application
host-host data transfer
TCP IP LAN
UDP
Packet radio
Page 17
applicatio n
SMTP
HTTP
Telnet FTP
35
Internet Architecture
TCP
UDP
36
Page 18
Network layer
routing table
37
Virtual overlay network Globally unique logical address for a host Address resolution
- logical to physical address mapping
38
Page 19
Internet Protocol
Connectionless unreliable datagram service Packets carry a source and a destination address Each packet routed independently No guarantee that network will not lose packets
Error recovery is up to end-to-end protocols
39
40
Page 20
UDP service:
Connection-oriented: setup required between client, server Reliable transport between sender and receiver Flow control: sender wont overwhelm receiver Congestion control: throttle sender when network overloaded
Unreliable data transfer between sender and receiver Does not provide: connection setup, reliability, flow control, congestion control
Q:Why UDP?
41
World-Wide Web
Hypertext transfer protocol
Webs application layer protocol Client/server model - client: browser that requests, receives, displays Web objects - server: Web server sends objects in response to requests
PC running Explorer
42
Page 21
HTTP Protocol
Uses TCP transport service:
Client initiates TCP connection (creates socket) to server, port 80 Server accepts TCP connection from client Http messages (application-layer protocol messages) exchanged between browser (http client) and Web server (http server) TCP connection closed
43
Summary
44
Page 22
Proof-of-Concept
With layered architecture, it doesnt matter how you implement the layer, as long as it provides the service follows the protocol as specified! The Bongo Project: http://eagle.auc.ca/~dreid/
45
Types of links
- DS1/T1: 1.544 Mbps (24x 64Kbps) - DS3/T3: 44.736 Mbps - STS-1/OC-1: 51.84 Mbps
Possibilities
- IP over SONET - IP over ATM - IP over Frame Relay - IP over WDM
STS-3/OC-3: 155.2 Mbps STS-12/OC-12: 622.080 Mbps STS-48/OC-48: 2.488 Gbps STS-192/OC-192: 9.953 Gbps
46
Page 23