Documente Academic
Documente Profesional
Documente Cultură
Layered Architectures
Chapter 2
2-3
Figure 2-1: Standards Govern the Exchange of Messages (Continued) Standards Govern Syntax
Syntax: the organization of the message
Human example: Susan thanked Tom This sentence has a subject-verb-object syntax
Client PC
Host: voyager.cba.Hawaii.edu[CRLF]
The host to be sent the request message
2-6
Figure 2-3: Syntax of HTTP Request and Response Messages, Continued HTTP Response Message
Syntax is very rigid
HTTP/1.1 200 OK[CRLF] Date: Tuesday, 20-JAN-2006 18:32:15 GMT[CRLF] Server: name of server software[CRLF] MIME-version: 1.0[CRLF] Content-type: text/plain[CRLF] [CRLF] File to be downloaded (byte stream)
Destination Address Field is Used by Switches and Routers Like the Address on an Envelope 2-9
Data Field
Header
2-10
e.g. TCP supervisory messages are pure headers (there is no data field content to deliver)
2-11
2. Reliability
Error Handling
Connection-oriented protocols have Formal openings and closings like Telephone calls Also have sequence numbers so that the receiver can put messages in order And so the receiver can send Acknowledgments for specific messages 2-17
Webserver Application
In TCP
Connection-Opening Messages
Time
Connection-Closing Messages
2-19
2-21
Standards Architecture
A Standards Architecture is a Broad Plan for Creating Standards
Break the problem of effective communication into smaller pieces for ease of development Develop standards for the individual pieces Just as a building architect creating a general plan for a house before designing the individual rooms in detail The dominant architecture today is the hybrid TCP/IPOSI standards architecture shown in the next slide
2-23
General Purpose (Core Later) Application-application communication Transmission of a packet across an internet
Layer Application (5) Transport (4) Internet (3) Data Link (2) Physical (1)
Specific Layer Purpose Application-application interworking Host-host communication Packet delivery across an internet Frame delivery across a network Device-device connection 2-24
2-25
Figure 2-9: Physical and Data Link Layer Standards in a Single Network
Physical Layer
Physical layer standards govern transmission between adjacent devices connected by a transmission medium
Switch X1 Switch X2
2-26
Figure 2-9: Physical and Data Link Layer Standards in a Single Network, Continued Data Link Layer
Data link layer standards govern the transmission of frames across a single networktypically by sending them through several switches along the data link
Frame Data Link A-B Switch X1 Switch X2 2-27 Host B
Host A
Figure 2-9: Physical and Data Link Layer Standards in a Single Network, Continued
Data Link Layer
Data link layer standards also govern
Frame organization Switch operation
2-28
Figure 2-9: Physical and Data Link Layer Standards in a Single Network, Continued
3 Physical Links 1 Data Link 2 Switches
Host A Data Link A-R1 Physical Link A-X1 Switch X1 Physical Link X1-X2 Mobile Client Station
Switch
Switch
Server Station
Switch X2
Router R1
2-29
Figure 2-10: Internet and Data Link Layers in an Internet Internet and Transport Layers
An internet is a group of networks connected by routers so that any application on any host on any network can communicate with any application on any other host on any other network
Internet and transport layer standards govern communication across an internet composed of two or more single networks
2-30
Router 1
Router 2
2-31
Host A
R1
Network X 3 Data Links: One per Network 1 Route per Internet Network Y Data Link R1-R2 R2 Host B Data Link R3-B 2-32
Network Z
Route A-B
Host A
Router R1
To Network X
Route A-B Router R1 Frame Y Packet
Data Link In Network Y: R1-R2 Two Destination Addresses: Packet: Host B (Destination Host) Frame: Router R2 To Network Z Router R2
Network Y
2-34
Switch Z1
Router R2
In Network Z: Two Destination Addresses: Switch Packet: Host B (Destination Host) Z2 Frame: Host B
Mobile Client Stations Network Z 2-35 Switch X2 Router
Frames and Packets In an internet with hosts separated by N networks, there will be:
2 hosts One packet (going all the way between hosts) One route (between the two hosts) N frames (one in each network) There usually are many switches within single networks There usually are many physical links within networks
2-36
2-37
Client PC
Server
Router 1
Router 2
Router 3 2-38
Browser
Client PC
Figure 2-12: Application Layer Standards There are more application layer standards than any other type of standard because there are many applications
HTTP
E-Mail
Database Instant Messaging FTP Etc.
2-40
Transport (4)
Internet (3)
2-41
Octets
Field length may be measured in octets An octet is a group of eight bits
Preamble (7 octets) 10101010 Start of Frame Delimiter (1 octet) 10101011 Destination Ethernet (MAC) Address (48 bits) Source Ethernet (MAC) Address (48 bits) Length (2 octets) Length of Data Field
Header
The Ethernet frame has 48-bit destination and source address fields. 2-44
Data Field
PAD (added if data field < 46 octets) Frame Check Sequence (32 bits) The Ethernet frames data field contains a IP packet (preceded by an LLC subheader). PAD is added if the data field is less than 46 octets long PAD length is set to keep the data field plus PAD 46 octets 2-45
Sender computes the frame check sequence field value based on contents of other fields
Receiver recomputes the field value
If the values match, there have been no errors If the values do not match, there has been an error
The receiver simply discards the frame
Bit 31
Identification (16 bits) Time to Live Protocol (8 bits) (8 bits) Version is Bits 0-3
Source IP Address (32 bits) Destination IP Address (32 bits) Options (if any) Padding (to 32-bit boundary)
Data Field (dozens, hundreds, or thousands of bits) Often contains a TCP segment 2-48
2-49
Layer
Connection-Oriented? Reliable? Burden on the two hosts Burden on the network
Transport
Yes Yes High High
Transport
No No Low Low
2-50
Figure 2-17: A Complex Application Protocol: The Simple Mail Transfer Protocol (SMTP)
Some application protocols are simple
HTTP: Simple request-response message cycle shown in Figure 2-2
HTTP Message
2-55
Transport Process
Internet Process
Internet Process
Physical Process
2-58
Notice the Pattern: From Right to Left: L2, L3, L4, L5, maybe L2 Start with the highest-layer message (in this case, 5) Add headers for each lower layer (L4, L3, and L2, in this case)
Physical Process
2-60
Internet Process
Transport Process
Internet Process
HTTP Message
Application Process
Transport Process
Switches Have Two Layers --Each Switch Port Has One Layer (1)
Routers Have Three Layers --Each Router Port Has Two Layers (1&2)
Source Host
Switch 1
Switch 2
Router 1
Switch 3
Hypertext Transfer Protocol App Trans Int DL Phy Source Host Transmission Control Protocol Internet Protocol
Switch 1
Switch 2
Router 1
Switch 3
Broad Purpose Hybrid TCP/IP-OSI OSI Communication between applications Internetworking Transmission within a single LAN or WAN Application Application (Layer 5) Presentation Session
TCP/IP
Application
Transport (Layer 4)
Internet (Layer 3) Data Link (Layer 2)
Transport
Network Data Link
Transport
Internet Use OSI Standards Here
Physical (Layer 1)
Physical
2-67
OSI
Standards Agency or Agencies ISO (International Organization for Standardization) ITU-T (International Telecommunications Union Telecommunications Standards Sector)
TCP/IP
IETF (Internet Engineering Task Force)
2-68
OSI
Dominance Nearly 100% dominant at physical and data link layers Various
TCP/IP
70%-80% dominant at the internet and transport layers. Mostly RFCs (requests for comments)
2-69
2-70
Rarely used
2-71
2-72
2-74
AppleTalk
Used by Apple Macintoshes
2-75
Connectionoriented
Connectionless Connectionless Connectionless
8. Topics Covered
Topics Covered
Standards govern the semantics and syntax of messages
HTTP: Text request and response messages Data field, header, and trailer
Reliability
In TCP, receiver sends ACKs Senders retransmit non-acknowledged segments
2-78
Topics Covered
Connection-oriented versus connectionless
TCP is connection-oriented
HTTP is connectionless
2-79
2-80
Topics Covered
2-83
Topics Covered
OSI Architecture
Divides application layer into three layers Session Presentation Application