What is the name of a piece of data that is encapsulated in IP?

The term encapsulation is used to describe a process of adding headers and trailers around some data. This process can be explained with the four-layer TCP/IP model, with each step describing the role of the layer.  For example, here is what happens when you send an email using your favourite email program (such as Outlook or Thunderbird):

  1. the email is sent from the Application layer to the Transport layer.
  2. the Transport layer encapsulates the data and adds its own header with its own information, such as which port will be used and passes the data to the Internet layer
  3. the Internet layer encapsulates the received data and adds its own header, usually with information about the source and destination IP addresses. The Internet layer than passes the data to the Network Access layer
  4. the Network Access layer is the only layer that adds both a header and a trailer. The data is then sent through a physical network link.

Here is a graphical representation of how each layer add its own information:

What is the name of a piece of data that is encapsulated in IP?

The header and trailer added by a layer on the sending computer can only be removed by the peer layer on the receiving computer. For example, the header and trailer added by the Transport layer on the sending computer can only be removed by the Transport layer on the receiving computer.

Data encapsulated by a layer on the sending computer is de-encapsulated by the same layer on the receiving computer. This process is known as the same layer interaction.

The encapsulation process takes place on the sending computer. The de-encapsulation process takes place on the receiving computer. After doing the encapsulation, each layer uses a specific name or term to represent the encapsulated data.

The following table lists the terms used by the layers in both models to represent the encapsulated data.

Term OSI layer TCP/IP layer
Data Application Application
Data Presentation
Data Session
Segment Transport Transport
Packet Network Network
Frame Data Link Data Link
Bits Physical Physical

Let’s understand each term and the data encapsulation process in detail.

Data

The upper layer (the Application layer in the TCP/IP model) or the layers (the Application, Presentation, and Session layers in the OSI model) create a data stream and transfer it to the Transport layer.

The upper layers do not attach headers and trailers to the data. But if required, the application that initiates the connection can add a header and trailer to the data. For example, browsers use the HTTP protocol to fetch websites from webservers. The HTTP protocol uses a header to transfer the data.

The encapsulation process describes the headers and trailers that are added by the layers. It does not describe application-specific headers and trailers. Since the upper layers do not add any header or trailer to the data, the encapsulation process does not use any particular term to refer to the encapsulated data in the upper layers.

Segment

The Transport layer receives the data stream from the upper layers. It breaks the received data stream into smaller pieces. This process is known as segmentation. After segmentation, it creates a header for each data piece and attaches that header to the data piece. Headers contain the information that the remote host needs to reassemble all data pieces. Once the header is attached, a data piece is known as the segment. The Transport layer transfers segments to the Network layer for further processing.

Packet

The Network layer creates a header for each received segment from the Transport layer. This header contains the information that is required for addressing and routing, such as the source software address and destination software address. Once the header is attached, a segment is known as the packet. Packets are handed down to the Data link layer.

In the original TCP/IP model, the term packet is mentioned as the term datagram. Both terms are identical and interchangeable. A packet or a datagram contains a network layer header and an encapsulated segment.

Frame

The Data link layer receives packets from the Network layer. Unlike the Transport layer and Network layer which only create a header, it also creates a trailer along with the header for each received packet. The header contains information that is required for the switching, such as the source hardware address and destination hardware address. The trailer contains information that is required to detect and drop the corrupt data packages in the earliest stage of the de-encapsulation. Once the header and trailer are attached, a packet is known as the frame. Frames are passed down to the Physical layer.

Bits

The Physical layer receives frames from the Data link layer and converts them into a format that the attached media can carry. For example, if the host is connected through a copper wire, the Physical layer converts frames into voltages. And if the host is connected through a wireless network, the physical layer converts them into radio signals.

De-encapsulation

De-encapsulation takes place on the receiving computer. The de-encapsulation process is the opposite of the encapsulation process. In this process, the headers and trailers that are attached by the encapsulation process are removed.

The Physical layer picks encoded signals from the media and converts them into frames and hands them over to the Data link layer.

The Data-link layer reads the trailer of the frame and confirms that the received frame is in the correct shape. If the frame is in the correct shape, it reads the destination hardware address of the frame to determine whether the fame is intended for it.

If the frame is not intended for it, it will discard the frame. If the frame is intended for it, it will remove the header and the trailer from the frame. Once the data link layer’s header and trailer are removed from the frame, it becomes the packet. Packets are handed over to the Network layer.

The Network layer checks the destination software address in the header of each packet. If the packet is not intended for it, it will discard the packet. If the packet is intended for it, it will remove the header. Once the network layer’s header is removed, the packet becomes the segment. Segments are handed over to the Transport layer.

The Transport layer receives segments from the Network layer. From segment headers, it collects all necessary information, and based on that information it arranges all segments back to the correct order. Next, it removes the segment header from all segments and reassembles them in the original data stream. The data stream is handed over to the upper layers.

Upper layers convert the data stream in such a format that the target application can understand.

The following figure shows the encapsulation and de-encapsulation process in the OSI model.

What is the name of a piece of data that is encapsulated in IP?

The following figure shows the encapsulation and de-encapsulation process in the TCP/IP model.

What is the name of a piece of data that is encapsulated in IP?

That’s all for this article. If you like this article, please don’t forget to share it with friends through your favorite social site.

By ComputerNetworkingNotes Updated on 2021-05-20 05:46:24 IST

What is the name of a piece of data that is encapsulated in Ethernet?

The packet is encapsulated inside an Ethernet header and trailer. The Ethernet frame is encoded in electrical bits, transmitted over the physical medium, and delivered to the interface of the destination host.

What is the name of a piece of data that is encapsulated in TCP?

The encapsulated data in Transport layer is called Segments or Datagrams. If the transmission uses TCP, then it is called Segments, or UDP is called Datagrams.

What is encapsulated IP?

As the packet travels through the TCP/IP protocol stack, the protocols at each layer either add or remove fields from the basic header. When a protocol on the sending host adds data to the packet header, the process is called data encapsulation.

What information is encapsulated in the network IP header?

The IP header contains source and destination host IP addresses, as well as information necessary to deliver the packet to its corresponding destination process. Next, the IP packet is sent to the network access layer where it is encapsulated within a frame header and trailer.