Adjacent-layer and same-layer interactions
A networking model defines the process by which two computers communicate and transfer data within a network. The OSI and TCP/IP are the two most widely recognized networking models. Both frameworks segment the communication process into multiple layers. The OSI Reference Model consists of seven layers, whereas the TCP/IP model comprises five.
Each layer in both models offers distinct functionalities within the communication process. To deliver these functions, layers interact with other layers on the same device and with corresponding layers on remote devices. These interactions are categorized as adjacent-layer and same-layer interactions.
Adjacent-Layer Interaction
The adjacent-layer interaction describes how layers on the same computer interact with one another. On the same computer, if an application or a lower-layer hardware component wants to use a service available in the next layer, it requests that layer to provide that service. The software or hardware implemented in the lower layer provides the requested service. A layer can request a service only from the layer below it. It cannot request that the higher layer provide a service or function. For example, the presentation layer can request the session, transport, network, data link, and physical layers, but it cannot request the application layer for a service or a function. The application layer is the topmost layer. Protocols and devices running in this layer can request services or functions from all other layers. The physical layer is the lowest. Protocols and services running in this layer cannot request services or functions from any other layer.
For example, web browsers use the HTTP protocol to retrieve web content from servers. HTTP operates at the application layer, which does not provide error recovery. However, HTTP relies on error recovery, a function provided by the TCP protocol in the transport layer. In this case, the application layer (HTTP) requests error recovery from the transport layer (TCP), illustrating adjacent-layer interaction.
Same-Layer Interaction
Same-layer interaction describes how corresponding layers on different computers communicate. Layers on separate devices can only interact with their counterparts at the same level. For instance, the application layer of one computer communicates exclusively with the application layer of another computer.
During communication, protocols and devices encrypt and encode data to ensure that only the intended layers can decrypt and decode it. For example, on the sender device, the transport layer divides the data stream into segments and adds a header to each segment that contains information necessary for reassembly. Only the transport layer can interpret this header. On the receiving device, the transport layer reads the header information from all segments to reconstruct the original data stream.
Differences Between Adjacent-Layer and Same-Layer Interactions
| Same-layer interaction | Adjacent-layer interaction |
| Same-layer interaction occurs between different computers. | Adjacent-layer interaction takes place within the same computer. |
| Same-layer interaction involves communication between identical layers. | Adjacent-layer interaction involves communication between different layers within a device. |
| Services and devices use the same-layer interaction to encode and decode data. | Adjacent-layer interaction is used to request specific functions from other layers. |
This tutorial is part of the tutorial series "Networking reference models explained in detail with examples". Other parts of this series are the following.
Chapter 1 What is a Networking Model Explained
Chapter 2 OSI Model Advantages and Basic Purpose Explained
Chapter 3 Difference between original and modern TCP/IP models
Chapter 4 Similarities and Differences between the OSI and TCP/IP models
Chapter 5 Adjacent-layer and same-layer interactions
Chapter 6 Data Encapsulation and De-encapsulation Explained
Chapter 7 OSI Seven Layers Model Explained with Examples
Chapter 8 TCP/IP Reference Model Explained
Chapter 9 Application layer in the OSI and TCP IP layers models
Chapter 10 Presentation layer and Session layer of the OSI model
Chapter 11 The Transport Layer Explained
Chapter 12 Segmentation Explained with TCP and UDP Headers
Chapter 13 Connection Multiplexing Explained with Examples
Chapter 14 TCP Features and Functions Explained with Examples
Chapter 15 The Network Layer Explained
Chapter 16 The Data Link and Physical layers Explained
Conclusion
A thorough understanding of adjacent-layer and same-layer interactions is essential for comprehending the operation of network communication models such as OSI and TCP/IP. These interactions explain how data and services are managed within individual devices and across networks, supporting efficient and reliable communication. Distinguishing between these interaction types is crucial for troubleshooting, designing, and implementing network protocols.
By ComputerNetworkingNotes Updated on 2026-02-24