Data Encapsulations
Concept Data encapsulation
• Encapsulation in networking involves wrapping data with protocol
information at each layer of the OSI model.
• The primary purpose of encapsulation is to facilitate the correct and
efficient transmission of data across a network.
• The OSI model comprises seven layers: Physical, Data Link, Network,
Transport, Session, Presentation, and Application.
• Encapsulation occurs as data passes down from the application layer
to the physical layer and is then transmitted over the network.
• At the destination, the encapsulated data is de capsulated, moving
up from the physical layer to the application layer.
• Encapsulation is the process of adding additional information when
data is traveling in an OSI or TCP/IP model. The information has been
added on the sender's side, from the Application layer to the Physical
layer.
Definitions of Data encapsulation
• Data encapsulation in computer network is the
process of adding headers and trailers around
some data.
• This is a fundamental concept used in the
communication between different devices over
a network.
• During this process, each layer of the OSI or
TCP/IP (Transmission Control Protocol/Internet
Protocol) model wraps the data with its own
header and trailer to provide relevant
information for that layer’s protocols.
TCP/IP Model and Working of Encapsulation
• 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 favorite
email program.
• the email is sent from the Application layer to the Transport layer.
• 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
• 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
• 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.
TCP/IP Model & OSI and Working of Encapsulation
• There will be no additional information added in the
user’s data in the Application layer in TCP/IP model or
Application, Presentation, Session layers in OSI model.
• Then Session layer sends data to Transport layer.
• In the Transport layer, the data broken up into
different pieces. It adds the header in each of the
broken data, which contains information like source
port, destination port, sequence number, etc. Now,
everything combined to a new form.
• 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.