background image
80
Chapter 3: OSI Reference Model & Layered Communication
Figure 3-2
Example for Discussion of Adjacent-Layer Interactions
The data is created by some application on Host A. For example, an e-mail message is typed by
the user. Each layer creates a header and passes the data down to the next layer. (The arrows in
Figure 3-2, Step 1, denote the passing of data between layers.) Passing the data down to the next
layer implies that the lower layer needs to perform some services for the higher layer; to
perform these services, the lower layer adds some information in a header or trailer. For
example, the transport layer hands off its data and header; the network layer adds a header with
the correct destination network layer address so that the packet can be delivered to the other
computer.
From each layer's perspective, the bits after that layer's header are considered to be data. For
instance, Layer 4 considers the Layer 5, 6, and 7 headers, along with the original user data, to
be one large data field.
After the application creates the data, the software and hardware implementing each layer
perform their work, adding the appropriate header and trailer. The physical layer can use the
media to send a signal for physical transmission, as shown in Step 2 in Figure 3-2.
Upon receipt (Step 3), Host B begins the adjacent layer interactions on Host B. The right side
of Figure 3-2 shows an arrow pointing next to the computer (Step 4), signifying that the
received data is being processed as it goes up the protocol stack. In fact, thinking about what
each layer does in the OSI model can help you decide what information could be in each header.
Application
L7
Data
Presentation
L6
L7
Data
Session
L5
L6
L7
Data
Transport
L4
L5
L6
L7
Data
Network
L3
L4
L5
L6
L7
Data
Data Link
L2H L3
L4
L5
L6
L7
Data
L2T
Physical
Application
L7
Data
Presentation
L6
L7
Data
Session
L5
L6
L7
Data
Transport
L4
L5
L6
L7
Data
Network
L3
L4
L5
L6
L7
Data
Data Link
L2H L3
L4
L5
L6
L7
Data
L2T
Physical
2
3
1
4
L# ­ Layer # Header
L#H ­ Layer # Header
L#T ­ Layer # Trailer
ch03.fm Page 80 Monday, March 20, 2000 4:58 PM