Same layer and adjacent layer interactions

When we look at data in a network we can look ‘horizontally’ at a single layer in the network stack or ‘vertically’ as data moves up and down the stack between adjacent layers.

Same Layer Interaction

Same layer interaction is when we look at communication between two devices using a single protocol at a single layer. It allows us to abstract away higher and lower layers to focus on the services provided by the given layer.

For example we might look at same-layer interaction between a web browser and a web server at the application layer, ignoring how the lower layers are transporting the data. Another example is looking at the route an IP packet takes across a network – addresses and routing – without needing to know what physical media is used or what application layer protocol is being transported.

Adjacent Layer Interaction

On a given network device, it will likely provide some form of network stack. On a switch this could just support the Link Layer, on a router it could be the Link Layer and the Internet Layer or on a computer you would support all layers of the TCP/IP network stack. Each layer provides a service to the layer above it. For example at the transport layer, TCP provides error recover. Adjacent-layer interaction is the passing of data between adjacent layers in the network stack.


As data is passed to a lower adjacent layer, that layer will add its own header (and possibly also a trailer) before passing it to the layer below. This process of wrapping up higher layer data in a header and/or trailer is called encapsulation. The higher layer data being encapsulated is often referred to as the payload or 'client data'.

When the data is passed back up the stack, each layer pops off its respective header / trailer – this is called decapsulation or de-encapsulation.

Protocol Data Units

At each layer, we refer to the combination of header/trailer and the data being encapsulated as a Protocol Data Unit (PDU).

In TCP/IP, each layer has specific terminology for a PDU:

  • Transport Layer: Segment

  • Internet Layer: Packet

  • Link Layer: Frame


Question 1

What is the protocol data unit for the TCP/IP link layer?

Question 2

What is the protocol data unit for the TCP/IP network layer?

Question 3

What is the protocol data unit for the TCP/IP transport layer?

Question 4

Define de-encapsulation.

Question 5

Define encapsulation.

Question 6

Define same layer interaction.

Question 7

Define adjacent layer interaction.

Question 8

Removal and processing of a header (and potentially trailer) as data moves up the network stack is referred to as ...

  1. Decapsulation or de-encapsulation.

  2. Encapsulation.

  3. Disassembly.

  4. Same layer interaction.

Question 9

The wrapping of data with a header, and potentially trailer, is referred to as ...

  1. Encapsulation

  2. Framing

  3. Same layer interaction

  4. Decapsulation

Question 10

Which of the following is the term for a Transport layer Protocol Data Unit (PDU)?

  1. Block

  2. Segment

  3. Packet

  4. Frame

Question 11

HTTP's reliance on TCP to provide a reliable connection is an example of ...

  1. Adjacent layer interaction.

  2. A connectionless protocol.

  3. The link layer.

  4. Same layer interaction.

Prerequisite Skills


Summary of the TCP/IP Model

Introduction The TCP/IP suite of protocols is what most modern computer networks, including the Internet, are built upon. It can be viewed…

Follow On Cyber Learning


Ethernet at the Data-Link Layer

At the data-link layer, Ethernet provides an interface between the physical layer and the higher network layers. It also specifies MAC address formats.


TCP: The Transmission Control Protocol

TCP is a connection-oriented protocol used at the transport layer to support protocols such as HTTP.


UDP: User Datagram Protocol

UDP is a simple transport layer protocol.

Related Training Courses


Computer Networking Foundations

Understand how modern computer networks work.