SlideShare a Scribd company logo
1 of 11
Department of Collegiate and Technical Education
Encapsulation and Decapsulation
(Module 1-Session 7)
Course outcome: Understand the concepts of Networking
Computer Networks ( VII Semester)
Electronics and Communication Engineering
Electronics and Communication Engineering – 18EC71
Encapsulation and Decapsulation
• One of the important concepts in protocol layering in the Internet
is encapsulation/ decapsulation.
• Figure 2.8 shows this concept for the small internet.
• In Figure 2.8, we show the encapsulation in the source host,
decapsulation in the destination host, and encapsulation and
decapsulation in the router.
Electronics and Communication Engineering – 18EC71
Encapsulation and Decapsulation
Electronics and Communication Engineering – 18EC71
Encapsulation and Decapsulation
Encapsulation at the Source Host
At the source, we have only encapsulation.
1. At the application layer, the data to be exchanged is referred to as a
message. A message normally does not contain any header or trailer,
but if it does, we refer to the whole as the message. The message is
passed to the transport layer.
2. The transport layer takes the message as the payload, the load that
the transport layer should take care of. It adds the transport layer
header to the payload, which contains the identifiers of the source
and destination application programs that want to communicate plus
some more information that is needed for the end-toend delivery of
the message, such as information needed for flow, error control, or
congestion control. The result is the transport-layer packet, which is
called the segment (in TCP) and the user datagram (in UDP). The
transport layer then passes the packet to the network layer.
Electronics and Communication Engineering – 18EC71
Encapsulation and Decapsulation
Encapsulation at the Source Host
1. The network layer takes the transport-layer packet as data or
payload and adds its own header to the payload. The header
contains the addresses of the source and destination hosts and
some more information used for error checking of the header,
fragmentation information, and so on. The result is the
network-layer packet, called a datagram. The network layer
then passes the packet to the data-link layer.
2. The data-link layer takes the network-layer packet as data or
payload and adds its own header, which contains the link-
layer addresses of the host or the next hop (the router). The
result is the link-layer packet, which is called a frame. The
frame is passed to the physical layer for transmission.
Electronics and Communication Engineering – 18EC71
Encapsulation and Decapsulation
Decapsulation and Encapsulation at the Router
At the router, we have both decapsulation and encapsulation
because the router is connected to two or more links.
1. After the set of bits are delivered to the data-link layer, this
layer decapsulates the datagram from the frame and passes it to
the network layer.
2. The network layer only inspects the source and destination
addresses in the datagram header and consults its forwarding
table to find the next hop to which the datagram is to be
delivered. The contents of the datagram should not be changed
by the network layer in the router unless there is a need to
fragment the datagram if it is too big to be passed through the
next link. The datagram is then passed to the data-link layer of
the next link.
Electronics and Communication Engineering – 18EC71
Encapsulation and Decapsulation
Decapsulation and Encapsulation at the Router
3. The data-link layer of the next link encapsulates the datagram
in a frame and passes it to the physical layer for transmission.
Electronics and Communication Engineering – 18EC71
Encapsulation and Decapsulation
Decapsulation at the Destination Host
• At the destination host, each layer only decapsulates the packet
received, removes the payload, and delivers the payload to the
next-higher layer protocol until the message reaches the
application layer.
• It is necessary to say that decapsulation in the host involves
error checking.
Electronics and Communication Engineering – 18EC71
Addressing
• It is worth mentioning another concept related to protocol
layering in the Internet, addressing.
• We have logical communication between pairs of layers in this
model.
• Any communication that involves two parties needs two
addresses: source address and destination address.
• Although it looks as if we need five pairs of addresses, one
pair per layer, we normally have only four because the
physical layer does not need addresses; the unit of data
exchange at the physical layer is a bit, which definitely cannot
have an address.
• Figure 2.9 shows the addressing at each layer. As the figure
shows, there is a relationship between the layer, the address
used in that layer, and the packet name at that layer.
Electronics and Communication Engineering – 18EC71
Addressing
• At the application layer, we normally use names to define the site that
provides services, such as someorg.com, or the e-mail address, such as
somebody@coldmail.com.
• At the transport layer, addresses are called port numbers, and these
define the application-layer programs at the source and destination.
• Port numbers are local addresses that distinguish between several
programs running at the same time.
• At the network-layer, the addresses are global, with the whole Internet
as the scope.
• A network-layer address uniquely defines the connection of a device to
the Internet.
• The link-layer addresses, sometimes called MAC addresses, are locally
defined addresses, each of which defines a specific host or router in a
network (LAN or WAN).
Electronics and Communication Engineering – 18EC71
Addressing
Electronics and Communication Engineering – 18EC71

More Related Content

Similar to Module 1 comunication network 18EC71_U1_S7_Pr-.pptx

Understanding tcp=ip
Understanding tcp=ipUnderstanding tcp=ip
Understanding tcp=ip
Ilaya Raja
 
IDC lectureA - Network Layer & IP Addressing with Cisco Notes.ppt
IDC lectureA - Network Layer & IP Addressing with Cisco Notes.pptIDC lectureA - Network Layer & IP Addressing with Cisco Notes.ppt
IDC lectureA - Network Layer & IP Addressing with Cisco Notes.ppt
Jayaprasanna4
 

Similar to Module 1 comunication network 18EC71_U1_S7_Pr-.pptx (20)

Computer Networking Tasks.docx
Computer Networking Tasks.docxComputer Networking Tasks.docx
Computer Networking Tasks.docx
 
Module_3_Part_3.pptx
Module_3_Part_3.pptxModule_3_Part_3.pptx
Module_3_Part_3.pptx
 
lecture 2.pptx
lecture 2.pptxlecture 2.pptx
lecture 2.pptx
 
MODULE-2_CCN.pptx
MODULE-2_CCN.pptxMODULE-2_CCN.pptx
MODULE-2_CCN.pptx
 
Dc2 t1
Dc2 t1Dc2 t1
Dc2 t1
 
Unit 2 ppt 3.ppt
Unit 2 ppt 3.pptUnit 2 ppt 3.ppt
Unit 2 ppt 3.ppt
 
19 20 cn q bf inal
19 20 cn q bf inal19 20 cn q bf inal
19 20 cn q bf inal
 
Transport Layer Services : Multiplexing And Demultiplexing
Transport Layer Services : Multiplexing And DemultiplexingTransport Layer Services : Multiplexing And Demultiplexing
Transport Layer Services : Multiplexing And Demultiplexing
 
Week10 transport
Week10 transportWeek10 transport
Week10 transport
 
Computer Networks Notes Complete Syllabus
Computer Networks Notes Complete SyllabusComputer Networks Notes Complete Syllabus
Computer Networks Notes Complete Syllabus
 
Understanding tcp=ip
Understanding tcp=ipUnderstanding tcp=ip
Understanding tcp=ip
 
Computer Communication Networks-Network Layer
Computer Communication Networks-Network LayerComputer Communication Networks-Network Layer
Computer Communication Networks-Network Layer
 
CN UNIT II.pptx
CN UNIT II.pptxCN UNIT II.pptx
CN UNIT II.pptx
 
Osi model
Osi modelOsi model
Osi model
 
20MCT31 - DATA COMMUNICATION NETWORKS_NOTES.pdf
20MCT31 - DATA COMMUNICATION NETWORKS_NOTES.pdf20MCT31 - DATA COMMUNICATION NETWORKS_NOTES.pdf
20MCT31 - DATA COMMUNICATION NETWORKS_NOTES.pdf
 
lecture-2-tcp-ip.ppt
lecture-2-tcp-ip.pptlecture-2-tcp-ip.ppt
lecture-2-tcp-ip.ppt
 
TCPIP SLIDES.ppt
TCPIP SLIDES.pptTCPIP SLIDES.ppt
TCPIP SLIDES.ppt
 
TCP/IP Protocols With All Layer Description
TCP/IP Protocols With All Layer DescriptionTCP/IP Protocols With All Layer Description
TCP/IP Protocols With All Layer Description
 
Transport laye
Transport laye Transport laye
Transport laye
 
IDC lectureA - Network Layer & IP Addressing with Cisco Notes.ppt
IDC lectureA - Network Layer & IP Addressing with Cisco Notes.pptIDC lectureA - Network Layer & IP Addressing with Cisco Notes.ppt
IDC lectureA - Network Layer & IP Addressing with Cisco Notes.ppt
 

Recently uploaded

Spellings Wk 4 and Wk 5 for Grade 4 at CAPS
Spellings Wk 4 and Wk 5 for Grade 4 at CAPSSpellings Wk 4 and Wk 5 for Grade 4 at CAPS
Spellings Wk 4 and Wk 5 for Grade 4 at CAPS
AnaAcapella
 

Recently uploaded (20)

Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
How to Add a Tool Tip to a Field in Odoo 17
How to Add a Tool Tip to a Field in Odoo 17How to Add a Tool Tip to a Field in Odoo 17
How to Add a Tool Tip to a Field in Odoo 17
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17
 
latest AZ-104 Exam Questions and Answers
latest AZ-104 Exam Questions and Answerslatest AZ-104 Exam Questions and Answers
latest AZ-104 Exam Questions and Answers
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
AIM of Education-Teachers Training-2024.ppt
AIM of Education-Teachers Training-2024.pptAIM of Education-Teachers Training-2024.ppt
AIM of Education-Teachers Training-2024.ppt
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentation
 
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptxOn_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
 
21st_Century_Skills_Framework_Final_Presentation_2.pptx
21st_Century_Skills_Framework_Final_Presentation_2.pptx21st_Century_Skills_Framework_Final_Presentation_2.pptx
21st_Century_Skills_Framework_Final_Presentation_2.pptx
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptx
 
Tatlong Kwento ni Lola basyang-1.pdf arts
Tatlong Kwento ni Lola basyang-1.pdf artsTatlong Kwento ni Lola basyang-1.pdf arts
Tatlong Kwento ni Lola basyang-1.pdf arts
 
Philosophy of china and it's charactistics
Philosophy of china and it's charactisticsPhilosophy of china and it's charactistics
Philosophy of china and it's charactistics
 
REMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxREMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptx
 
Spellings Wk 4 and Wk 5 for Grade 4 at CAPS
Spellings Wk 4 and Wk 5 for Grade 4 at CAPSSpellings Wk 4 and Wk 5 for Grade 4 at CAPS
Spellings Wk 4 and Wk 5 for Grade 4 at CAPS
 
How to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxHow to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptx
 
FICTIONAL SALESMAN/SALESMAN SNSW 2024.pdf
FICTIONAL SALESMAN/SALESMAN SNSW 2024.pdfFICTIONAL SALESMAN/SALESMAN SNSW 2024.pdf
FICTIONAL SALESMAN/SALESMAN SNSW 2024.pdf
 

Module 1 comunication network 18EC71_U1_S7_Pr-.pptx

  • 1. Department of Collegiate and Technical Education Encapsulation and Decapsulation (Module 1-Session 7) Course outcome: Understand the concepts of Networking Computer Networks ( VII Semester) Electronics and Communication Engineering Electronics and Communication Engineering – 18EC71
  • 2. Encapsulation and Decapsulation • One of the important concepts in protocol layering in the Internet is encapsulation/ decapsulation. • Figure 2.8 shows this concept for the small internet. • In Figure 2.8, we show the encapsulation in the source host, decapsulation in the destination host, and encapsulation and decapsulation in the router. Electronics and Communication Engineering – 18EC71
  • 3. Encapsulation and Decapsulation Electronics and Communication Engineering – 18EC71
  • 4. Encapsulation and Decapsulation Encapsulation at the Source Host At the source, we have only encapsulation. 1. At the application layer, the data to be exchanged is referred to as a message. A message normally does not contain any header or trailer, but if it does, we refer to the whole as the message. The message is passed to the transport layer. 2. The transport layer takes the message as the payload, the load that the transport layer should take care of. It adds the transport layer header to the payload, which contains the identifiers of the source and destination application programs that want to communicate plus some more information that is needed for the end-toend delivery of the message, such as information needed for flow, error control, or congestion control. The result is the transport-layer packet, which is called the segment (in TCP) and the user datagram (in UDP). The transport layer then passes the packet to the network layer. Electronics and Communication Engineering – 18EC71
  • 5. Encapsulation and Decapsulation Encapsulation at the Source Host 1. The network layer takes the transport-layer packet as data or payload and adds its own header to the payload. The header contains the addresses of the source and destination hosts and some more information used for error checking of the header, fragmentation information, and so on. The result is the network-layer packet, called a datagram. The network layer then passes the packet to the data-link layer. 2. The data-link layer takes the network-layer packet as data or payload and adds its own header, which contains the link- layer addresses of the host or the next hop (the router). The result is the link-layer packet, which is called a frame. The frame is passed to the physical layer for transmission. Electronics and Communication Engineering – 18EC71
  • 6. Encapsulation and Decapsulation Decapsulation and Encapsulation at the Router At the router, we have both decapsulation and encapsulation because the router is connected to two or more links. 1. After the set of bits are delivered to the data-link layer, this layer decapsulates the datagram from the frame and passes it to the network layer. 2. The network layer only inspects the source and destination addresses in the datagram header and consults its forwarding table to find the next hop to which the datagram is to be delivered. The contents of the datagram should not be changed by the network layer in the router unless there is a need to fragment the datagram if it is too big to be passed through the next link. The datagram is then passed to the data-link layer of the next link. Electronics and Communication Engineering – 18EC71
  • 7. Encapsulation and Decapsulation Decapsulation and Encapsulation at the Router 3. The data-link layer of the next link encapsulates the datagram in a frame and passes it to the physical layer for transmission. Electronics and Communication Engineering – 18EC71
  • 8. Encapsulation and Decapsulation Decapsulation at the Destination Host • At the destination host, each layer only decapsulates the packet received, removes the payload, and delivers the payload to the next-higher layer protocol until the message reaches the application layer. • It is necessary to say that decapsulation in the host involves error checking. Electronics and Communication Engineering – 18EC71
  • 9. Addressing • It is worth mentioning another concept related to protocol layering in the Internet, addressing. • We have logical communication between pairs of layers in this model. • Any communication that involves two parties needs two addresses: source address and destination address. • Although it looks as if we need five pairs of addresses, one pair per layer, we normally have only four because the physical layer does not need addresses; the unit of data exchange at the physical layer is a bit, which definitely cannot have an address. • Figure 2.9 shows the addressing at each layer. As the figure shows, there is a relationship between the layer, the address used in that layer, and the packet name at that layer. Electronics and Communication Engineering – 18EC71
  • 10. Addressing • At the application layer, we normally use names to define the site that provides services, such as someorg.com, or the e-mail address, such as somebody@coldmail.com. • At the transport layer, addresses are called port numbers, and these define the application-layer programs at the source and destination. • Port numbers are local addresses that distinguish between several programs running at the same time. • At the network-layer, the addresses are global, with the whole Internet as the scope. • A network-layer address uniquely defines the connection of a device to the Internet. • The link-layer addresses, sometimes called MAC addresses, are locally defined addresses, each of which defines a specific host or router in a network (LAN or WAN). Electronics and Communication Engineering – 18EC71