Encapsulation (networking)

From Wikipedia, the free encyclopedia
Jump to: navigation, search
Encapsulation of user data, in the Unix-style UDP stack. Each new layer includes the data from the previous layer, but each new layer is not able to identify which part of the data is the header or trailer from the previous layer. This effectively hides the information from lower layers.[1]

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.

The physical layer is responsible for physical transmission of the data. Link encapsulation allows local area networking and Internet Protocol (IP) provides global addressing of individual computers; Transmission Control Protocol (TCP) adds application or process selection, i.e., the port specifies the service such as a Web or TFTP server.[2]

During encapsulation, each layer builds a protocol data unit (PDU) by adding a header (and sometimes trailer) of control information to the PDU from the layer above. For example in the Internet Protocol Suite, the contents of a web page are encapsulated with an HTTP header, which is encapsulated by a TCP header, which is encapsulated by an IP header, which is encapsulated by a frame header and trailer. The frame is forwarded to the destination node as a stream of bits, where it is decapsulated (or de-encapsulated) into the respective PDUs and interpreted at each layer by the receiving node.[3]

The result of encapsulation is that each lower layer provides a service to the layer or layers above it, while at the same time, each layer communicates with its corresponding layer on the receiving node. These are known as adjacent-layer interaction and same-layer interaction, respectively.[3]

In discussions of encapsulation, the more abstract layer is often called the upper layer protocol while the more specific layer is called the lower layer protocol. Sometimes, however, the terms upper layer protocols and lower layer protocols are used to describe the layers above and below IP, respectively.[2]

Encapsulation is a characteristic feature of most networking models, including both the OSI Model and TCP/IP suite of protocols.

See also[edit]

References[edit]

  1. ^ Forouzan, Behrouz A. (2010). TCP/IP protocol suite (4th ed.). Boston: McGraw-Hill Higher Education. p. 23. ISBN 0073376043. 
  2. ^ a b "How Encapsulation Works Within the TCP/IP Model". learn-networking.com. 2008-01-27. Retrieved 2013-11-22. 
  3. ^ a b Odom, Wendell (2013). Cisco CCENT/ CCNA ICND1 100-101 Official Cert Guide. Pearson Education. pp. Ch. 1. ISBN 978-1-58714-385-4.