What do you call the data at the network layer which is added with IP address and capsulated?

The term encapsulation describes a process of putting headers (and sometimes trailers) around some data. Each layer adds its own header (Data Link protocols also add a trailer) to  the data supplied by the higher layer. This process can be explained with the five-layer TCP/IP model (the Link layer of the TCP/IP model is sometimes divided into two  layers, Data Link and Physical, hence the five-layer TCP/IP model), with each step corresponding to the role of each layer.

Consider the following example. Let’s say that you are browsing a web site. The web server on which the website is hosted will create and encapsulate the application data with the Application layer headers. For example, the HTTP OK message will be stored in the header, followed by the requested content of the web page.

The encapsulated data will then be  forwarded to the next layer, the Transport layer. The Transport layer will add its own header around the encapsulated data. In the case of the TCP protocol, this can be something like the source and destination ports or the sequence number.

The data will then be forwarded to the next layer – the Network layer. The Network layer will  store the source and destination IP addresses in its header and forward the data to the Data Link layer. The Data Link layer is the only layer that uses both the header and trailer.

The data is then sent through a  physical network link.

Here is a graphical representation of these five steps:

What do you call the data at the network layer which is added with IP address and capsulated?

Each data packet (header + encapsulated data) defined by a particular layer has a specific name:

  • Frame – encapsulated data defined by the Network Access layer. A frame can have both header and trailer.
  • Packet – encapsulated data defined by the Network layer. A header contains the source and destination IP addresses.
  • Segment – encapsulated data defined by the Transport layer. Information such as the source and destination ports or sequence and acknowledgment numbers are included in the header.

The term decapsulation describes a process of removing headers and trailers as data passes from a lower to the upper layer. This process transpires on a computer that is receiving data.

  • TCP/IP reference model
  • Data encapsulation in the OSI model

What do you call the data at the network layer which is added with IP address and capsulated?

This tutorial explains how the OSI model and TCP/IP model encapsulate and de-encapsulate the data when it passes through the layers.

In a networking model, the term encapsulation refers to a process in which protocol information is added to the data. The term de-encapsulation refers to a process in which information added through the encapsulation process is removed.

Protocol information can be added before and after the data. If the information is added before the data, it is known as a header. If the information is added after the data, it is known as a trailer.

The following image explains the data encapsulation and de-encapsulation process.

What do you call the data at the network layer which is added with IP address and capsulated?

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 do you call the data at the network layer which is added with IP address and capsulated?

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

What do you call the data at the network layer which is added with IP address and capsulated?

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 encapsulation in network layer?

In computer networking, encapsulation is a method of designing modular communication protocols in which logically separate functions in the network are abstracted from their underlying structures by inclusion or information hiding within higher-level objects.

What is data in network layer called?

Packets are data units within the network layer in the OSI model.

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

Data is passed to IP typically from one of the two main transport layer protocols: TCP or UDP. This data is already in the form of a TCP or UDP message with TCP or UDP headers. This is then encapsulated into the body of an IP message, usually called an IP datagram or IP packet.

What type of data is in the data encapsulation?

Data Encapsulation is an Object Oriented Programming concept that bind a group of related properties, functions, and other members are treated as a single unit. Class is the best example of Data Encapsulation. It sometimes referred to as data hiding that prevents the user to access the implementation details.