Layered Standards Architectures Chapter 2 Panko’s Business Data Networks and Telecommunications, 5 th edition Copyright 2005 Prentice-Hall 2 Breaking up large tasks into smaller tasks and assigning tasks to different individuals is common in all fields Specialization in standards design (EEs for physical layer, application specialists for application layer, etc.) Simplification in standards design for individual standards If you change a standard at one layer, you do not have to change standards at other layers Why Layers
51
Embed
Not for distribution to students Layered Standards ...CSIE/ycliaw/BDC/02_Layered.pdf · Not for distribution to students Not for distribution to students 13 25 Figure 2-19: OSI and
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
Not for distribution to students
Not for distribution to students 1
Layered StandardsArchitectures
Chapter 2
Panko’s Business Data Networks andTelecommunications, 5th editionCopyright 2005 Prentice-Hall
2
Breaking up large tasks into smaller tasks andassigning tasks to different individuals is common in allfields
Specialization in standards design (EEs for physicallayer, application specialists for application layer, etc.)
Simplification in standards design for individualstandards
If you change a standard at one layer, you do not haveto change standards at other layers
Why Layers
Not for distribution to students
Not for distribution to students 2
OSI, TCP/IP, and Other StandardsArchitectures
4
ISO/OSI Model
OSI(Open Systems Interface) Model :developed by ISO
International Organization for Standardization
Open system means thatit can communicate with any other systems thatfollows the specified standards (semantics,syntaxs, timing)
seven layers
Not for distribution to students
Not for distribution to students 3
5
ISO/OSI Model, Continued
第七層 應用層
第六層 展示層
第五層 會議層
第四層 傳輸層
第三層 網路層
第二層 資料連結層
第一層 實體層
6
ISO/OSI Model, Continued
HTTP, SMTP
Not for distribution to students
Not for distribution to students 4
7
ISO/OSI Model - Application Layer Downward
The application layer governs how two applications workwith each other, even if they are from different vendors
8
ISO/OSI Model - Presentation LayerDownward
Not for distribution to students
Not for distribution to students 5
9
ISO/OSI Model - Session LayerDownward
10
ISO/OSI Model - Transport LayerDownward
Not for distribution to students
Not for distribution to students 6
11
ISO/OSI Model - Network LayerDownward
12
ISO/OSI Model - Data Link LayerDownward
Not for distribution to students
Not for distribution to students 7
13
ISO/OSI Model - Physical LayerDownward and Upward
SerDes: Serialize and Deserialize
14
ISO/OSI Model - Data Link LayerUpward
Not for distribution to students
Not for distribution to students 8
15
ISO/OSI Model - Network LayerUpward
16
ISO/OSI Model - Transport LayerUpward
Not for distribution to students
Not for distribution to students 9
17
ISO/OSI Model - Session LayerUpward
18
ISO/OSI Model - Presentation LayerUpward
Not for distribution to students
Not for distribution to students 10
19
ISO/OSI Model - Application LayerUpward
20
ISO/OSI Model, Continued
Not for distribution to students
Not for distribution to students 11
21
TCP/IP Model
22
TCP/IP Model, Continued
Not for distribution to students
Not for distribution to students 12
23
OSI and TCP/IP
OSI TCP/IP
StandardsAgency(ies)
ISO (InternationalOrganization for Standardization)
Dominance Nearly 100% at physical and datalink layers
70% to 80% at theInternet and transportlayers. Also strongat the application layer
Documents areCalled
Various Mostly RFCs (requestsfor comment)
Not for distribution to students
Not for distribution to students 13
25
Figure 2-19: OSI and TCP/IP, Continued
Do not confuse OSI (the architecture) with ISO(the organization)
The acronyms for ISO and ITU-T do not matchtheir names, but these are the official namesand acronyms
26
Figure 2-20: The Hybrid TCP/IP-OSIArchitecture
TCP/IP OSI Hybrid TCP/IP-OSI Broad Purpose
Application
Application
Presentation
Session
Application(Layer 5) Applications
Transport
Internet
Transport
Network
Transport (Layer 4)
Internet (Layer 3)Internetworking
Use OSI Standards Here
Data Link
Physical
Data Link (Layer 2)
Physical (Layer 1)
Communicationwithin a singleLAN or WAN
Not for distribution to students
Not for distribution to students 14
27
Figure 2-20: The Hybrid TCP/IP-OSIArchitecture, Continued
Notes:
The Hybrid TCP/IP-OSI Architecture is used on theInternet and dominates internal corporate networks
OSI standards are used almost universally at thephysical and data link layers (which governcommunication within individual networks)
TCP/IP is used for 70% to 80% of all corporatetraffic at the internet and transport layers and isused heavily at the application layer.
28
Figure 2-7: TCP/IP-OSI Architecture
Device-deviceconnection
Physical (1)
Transmission across asingle network (LAN orWAN)
Frame delivery across anetwork
Data Link (2)
Packet delivery acrossan internet
Internet (3)
Transmission across aninternet
Host-hostcommunication
Transport (4)
Application-applicationinterworking
Application-applicationinterworking
Application (5)
General PurposeSpecific PurposeLayer
Not for distribution to students
Not for distribution to students 15
29
Figure 2-7: TCP/IP-OSI Architecture, Continued
Physical and Data Link Layer StandardsGovern Communication Through a SingleNetwork
LAN or WAN
30
Figure 2-7: TCP/IP-OSI Architecture, Continued
Physical Layer
Physical layer standards govern transmissionbetween adjacent devices connected by atransmission medium
Switch X1
Physical LinkA-X1
Host A
Not for distribution to students
Not for distribution to students 16
31
Figure 2-7: TCP/IP-OSI Architecture, Continued
Data Link Layer
Data link layer standards govern thetransmission of frames across a singlenetwork—typically by sending them throughseveral switches along the data link
Data link layer standards also govern frameorganization, timing constraints, andreliability
32
Figure 2-8: Physical and Data Link LayerStandards
Host A
Mobile ClientStation
ServerStation
Switch
SwitchX2
Switch X1
Switch
Data LinkA-R1
Physical LinkA-X1
PhysicalLink
X1-X2
Router R1
PhysicalLink
X2-R13 Physical Link
1 Data Link2 Switches
Not for distribution to students
Not for distribution to students 17
33
Figure 2-7: TCP/IP-OSI Architecture, Continued
Internet and Transport Layers
An internet is a group of networks connectedby routers so that any application on anyhost on any network can communicate withany application on any other host on anyother network
Internet and transport layer standardsgovern communication across an internetcomposed of two or more single networks
34
Figure 2-7: TCP/IP-OSI Architecture, Continued
Internet Layer
Internet layer standards govern thetransmission of packets across aninternet—typically by sending them throughseveral routers along the route
Internet layer standards also govern packetorganization, timing constraints, andreliability
Not for distribution to students
Not for distribution to students 18
35
Figure 2-9: Internet and Data Link LayerStandards
Host B
Host A
Network XNetwork Y
Network Z
R1
R2
Data Link A-R1
Data Link R2-B
DataLink
R1-R2Route A-B
3 Data Links: One per Network1 Route per Internet
36
Figure 2-9: Internet and Data Link LayerStandards, Continued
Host A
Mobile ClientStation
ServerStation
Switch
SwitchX2
SwitchX1
Switch
Data LinkA-R1
Router R1
PacketFrame X
Network X
RouteA-B
Details inNetwork X
Frame X Destination Addresses:Packet: Host B (Destination Host)
Frame: Router R1
Not for distribution to students
Not for distribution to students 19
37
Figure 2-9: Internet and Data Link LayerStandards, Continued
Router R1
Router R2
Packet
Frame Y
ToNetwork X
ToNetwork Z
Network Y
Data LinkR1-R2
RouteA-B
Details inNetwork Y
Frame Y Destination Addresses:Packet: Host B (Destination Host)
Frame: Router R2
38
Figure 2-9: Internet and Data Link LayerStandards, Continued
Host B
Mobile ClientStations
SwitchZ1
SwitchX2
SwitchZ2
Switch
Packet
Frame Z
Network Z
Router R2
Router
Data LinkR2-B
Details inNetwork Z
Frame Z Destination Addresses:Packet: Host B (Destination Host)
Frame: Host B
Not for distribution to students
Not for distribution to students 20
39
Frames and Packets
In an internet with hosts separated by Nnetworks, there will be:
2 hosts
One route (between the two hosts)
N frames (one in each network)
N-1 routers (change frames between each pair ofnetworks)
40
Figure 2-7: TCP/IP-OSI Architecture, Continued
Transport Layer
Transport layer standards govern aspects ofend-to-end communication between two endhosts that are not handled by the data linklayer
These standards also allow hosts to worktogether even if the two computers are fromdifferent vendors and have different internaldesigns
Not for distribution to students
Not for distribution to students 21
41
Figure 2-10: Internet and Transport LayerStandards
Transport Layerend-to-end (host-to-host)
TCP is connection-oriented, reliable
Internet Layer(usually IP)
hop-by-hop (host-router or router-router)connectionless, unreliable
Router 1 Router 2 Router 3
Client PC Server
Data Link Layer
Data Link Layer Data Link Layer
Data Link Layer
42
Figure 2-7: TCP/IP-OSI Architecture, Continued
Application Layer
The application layer governs how twoapplications work with each other, even ifthey are from different vendors
Not for distribution to students
Not for distribution to students 22
43
Transport and Application Layer Standards
Transport Layerend-to-end (host-to-host)
(Client PC – Server)Client PC Server
App A App B App C App D
Application Layer(App B – App C)
Most hosts are multitasking machinesthat run multiple applications simultaneously.
Hosts need to communicate; So do pairs of applications
44
Figure 2-21: OSI Session Layer
Network orInternet
Client PC Server
Transport Layer
Session Layer(Manages a series of transactions)App
1App
2App
3App
4
Not for distribution to students
Not for distribution to students 23
45
Figure 2-21: OSI Session Layer, Continued
OSI Session LayerManages a series of transactions closely
If there is a connection break, only have toretransmit transactions since the last rollback point
TCP/IP Has No Session LayerThe few applications that need to managetransaction series closely provide their ownmechanisms
In HTTP, cookies provide continuity acrossapplications
46
Figure 2-22: OSI Presentation Layer
Presentation Layer(Transfer Syntax C)App 2
InternalSyntax A
App 3Internal
Syntax B
Presentation standards also includecompression standards and
data formatting standards (jpeg, etc.)
Not for distribution to students
Not for distribution to students 24
47
Figure 2-22: OSI Presentation Layer, Continued
OSI Presentation LayerTransfer syntax
Layer for application standards, such as jpeg
TCP/IP Has No Presentation LayerMIME at least allows the sender to indicate theformat of file delivered in a message
48
Other Major Standards Architectures
IPX/SPXUsed by older Novell NetWare file servers
Popular option for newer Novell NetWare fileservers
SNA (Systems Network Architecture)Used by IBM mainframe computers
AppleTalkUsed by Apple Macintoshes
Not for distribution to students
Not for distribution to students 25
Messages
50
Figure 2-1: How Standards GovernInteractions
StandardsGovern the Exchange ofMessages
Messages must begoverned by strict rules
Semantics
Syntax
Timing網路傳輸協定要素網路傳輸協定要素
Not for distribution to students
Not for distribution to students 26
51
Figure 2-1: How Standards GovernInteractions, Continued
Message Semantics (Meaning)
訊息所代表的意義
Only a few message types areallowed because computers do nothave the intelligence to handleopen-ended communication
In HTTP, request and responsemessages
52
Figure 2-2: Hypertext Transfer Protocol(HTTP) Interactions
Client PC Webserver
Browser WebserverApplication
1.HTTP Request Message
Asking for a File
2.HTTP Response Message
Delivering the File
Not for distribution to students
Not for distribution to students 27
53
Figure 2-1: How Standards GovernInteractions, Continued
Message Syntax (Organization)
訊息格式需事先制定
Rigidly structured
In HTTP, lines of text(Figure 2-3)
Most lines are of the form“Keyword: Information”
54
Figure 2-3: Syntax of HTTP Request andResponse Messages
[CRLF]Carriage return and line feed (starts a new line)
Figure 2-15: Layered Communication onthe Source Host
ApplicationProcess
HTTPMessage
TransportProcess
HTTPMessage
TCPHdr
Encapsulation of HTTP Messagein Data Field of TCP Segment
Not for distribution to students
Not for distribution to students 40
79
Figure 2-15: Layered Communication on theSource Host, Continued
When a layer process (N) creates a message,it passes it down to the next-lower-layerprocess (N-1) immediately
The receiving process (N-1) will encapsulatethe Layer N message, that is, place it in thedata field of its own (N-1) message
80
Figure 2-15: Layered Communication onthe Source Host, Continued
TransportProcess
HTTPMessage
TCPHdr
InternetProcess
HTTPMessage
TCPHdr
IPHdr
Encapsulation of TCP Segmentin Data Field of IP Packet
Not for distribution to students
Not for distribution to students 41
81
Figure 2-15: Layered Communication onthe Source Host, Continued
InternetProcess
HTTPMessage
TCPHdr
IPHdr
Data LinkProcess
HTTPMessage
TCPHdr
IPHdr
EthHdr
EthTrlr
Encapsulation of IP Packetin Data Field of Ethernet Frame
82
Figure 2-15: Layered Communication onthe Source Host, Continued
Data LinkProcess
HTTPMessage
TCPHdr
IPHdr
EthHdr
EthTrlr
Physical Process
Not for distribution to students
Not for distribution to students 42
83
Figure 2-15: Layered Communication onthe Source Host, Continued
The following is the final frame for a packet carryingan HTTP message on an Ethernet LAN
HTTPMessage
TCPHdr
IPHdr
EthHdr
EthTrlr
L5 L4 L3 L2L2
84
Figure 2-15: Layered Communication onthe Source Host, Continued
SMTPMessage
TCPHdr
IPHdr
PPPHdr
PPPTrlr
L5 L4 L3 L2L2
The following is the final frame for a packet carryingan SMTP (e-mail) message on PPP telephone modem connection
Note: HTTP is NOT the application layer message, as it is in webservice.
PPP replaces Ethernet.
Not for distribution to students
Not for distribution to students 43
85
Figure 2-15: Layered Communication onthe Source Host, Continued
TCPHdr
IPHdr
EthHdr
EthTrlr
The following is the final framefor a packet carrying a supervisory TCP segment:
L4 L3 L2L2
Supervisory TCP segments are initiated by the Transport layer process(Layer 4), so Layer 5 is not involved.
TCP supervisory messages consist entirely of headers. The headercarries supervisory information, so no TCP data field exists in supervisoryTCP messages.
86
Figure 2-16: Decapsulation on theDestination Host
HTTPMessage
TCPHdr
IPHdr
EthHdr
EthTrlr
Data LinkProcess
Physical Process
Not for distribution to students
Not for distribution to students 44
87
Figure 2-16: Decapsulation on theDestination Host, Continued
HTTPMessage
TCPHdr
IPHdr
EthHdr
EthTrlr
Data LinkProcess
InternetProcess
HTTPMessage
TCPHdr
IPHdr
Decapsulation of IP Packetfrom Data Field of Ethernet Frame
88
Figure 2-16: Decapsulation on theDestination Host, Continued
InternetProcess
HTTPMessage
TCPHdr
IPHdr
TransportProcess
HTTPMessage
TCPHdr
Decapsulation of TCP Segmentfrom Data Field of IP Packet
Not for distribution to students
Not for distribution to students 45
89
Figure 2-16: Decapsulation on theDestination Host, Continued
TransportProcess
HTTPMessage
TCPHdr
ApplicationProcess
HTTPMessage
Decapsulation of HTTP Messagefrom Data Field of TCP Segment
90
Sample Frame - captured using sniffer
Ethernet Frame
PPPOEIP
TCP
HTTP
Not for distribution to students
Not for distribution to students 46
91
Figure 2-17: Layered End-to-End Communication
Int
App
DL
Trans
Phy
SourceHost
DestinationHost
Switch 1 Switch 2 Router 1 Switch 3 Router 2
Source andDestinationHosts Have
5 Layers
SwitchesHave Two
Layers---
Each SwitchPort
Has OneLayer
RoutersHave Three
Layers---
Each RouterPort
Has TwoLayers
92
Figure 2-18: Protocols
Protocols are standards that governinteractions between hardware and softwareprocesses at the same layer but on differenthosts
Int
App
DL
Trans
Phy
SourceHost
DestinationHost
Switch 1 Switch 2 Router 1 Switch 3 Router 2
Hypertext Transfer Protocol
Not for distribution to students
Not for distribution to students 47
93
Figure 2-18: Protocols, Continued
Int
App
DL
Trans
Phy
SourceHost
DestinationHost
Switch 1 Switch 2 Router 1 Switch 3 Router 2
Hypertext Transfer Protocol
Transmission Control Protocol
Internet Protocol
94
Figure 2-24: Characteristics of ProtocolsDiscussed in the Chapter
Standards govern the semantics, syntax andtiming of message exchanges
Data field, header, and trailerHeader and trailer subdivided into fields
HTTP: Text request and response messages
Connection-oriented versus connectionless
TCP connections3-way opens, data exchanges, 4-way closes
Not for distribution to students
Not for distribution to students 50
99
Topics Covered
ReliabilityIn TCP, receiver sends ACKs
Senders retransmit non-acknowledged segments
TCP/IP-OSI ArchitectureOSI is 100% dominant at Layers 1 and 2
TCP/IP is 70% to 80% dominant at Layers 3 and 4
TCP/IP is used heavily at Layer 5
100
Topics Covered
Ethernet PacketSource and destination addresses are 48 bits longSwitches base output port decisions on 48-bitEthernet addressesUnreliable: if detects an error, drops the frame
Internet Protocol (IP)32-bit addressesShow 32 bits on each lineUnreliable: checks headers for errors but discards
Not for distribution to students
Not for distribution to students 51
101
Topics Covered
Vertical Communication on the Source HostLayer process send message to the next-lower layer
Encapsulation
Final frame
Vertical Communication on the DestinationHost
Decapsulation and passing up
102
Topics Covered
Not All Devises Have All LayersHosts: all five
Routers: three
Switches: two
ProtocolsStandards that govern interactions betweenhardware and software practices at the same layerbut on different hosts