Point-to-Point Protocol (PPP) Encapsulation
Point-to-Point Protocol (PPP) is basically a Wide Area Network (WAN) protocol that performs or works at layer 2 by simply encapsulating frames for transmission or transferring over different physical links or connections like serial cables, cell phones, fiber optic cable among others, etc. Encapsulation is basically a process in which lower-layer protocol basically receives data from higher layer protocol and then further places this data portion of its frame. In simple words, we can say the encapsulation is process of enclosing one type of packing with help of other types of packet. PPP generally provides encapsulation so that various protocols at the network get supported simultaneously. PPP connections also deliver or transmit packets in sequence and provide full-duplex simultaneous bi-directional operation. PPP usually encapsulates any of the network layer packets in its frame that makes it possible for PPP layer three protocol to become independent and even capable of carrying multiple-layer three packets through a single link or connection. PPP Encapsulation is also required to disambiguate multiprotocol datagrams i.e. removal of ambiguity to make the multiprotocol datagrams clear and easy to be understood. PPP puts data in a frame and transmit it through PPP connection or link. A frame is basically defined as a unit of transmission in Data Link Layer (DLL) of the OSI protocol stack. To form encapsulation, a total of 8-bytes are required. Data is usually transmitted from left to right in frames. General Structure of PPP encapsulation is shown below :
PPP encapsulation frame basically contains three types of fields as given below :
- Protocol Field – This field is of 1 or 2 bytes i.e., 8 or 16 bits that are used to identify datagram that is being encapsulated in the information field of packet. It simply indicates protocol that is used in the frame. Least significant bit of lower bytes is usually set to 1 and on the other hand, most significant bit is usually set to 0. Types of protocols that can be present are Link Control Protocol (LCP), Password Authentication Protocol (PAP), Challenge Handshake Authentication Protocol (CHAP), etc.
|0003 to 001f
||Reserved (transparency inefficient)
||Reserved (PPP NLPID)
|8001 to 801
||IP (Internet Protocol)
||IPCP (Internet Protocol Control Protocol) (NCP for IP)
||Van Jacobson TCP/IP header compression (RFC 1144)
||Van Jacobson IP header compression
||Link Control Protocol
||Password Authentication Protocol
||Link Quality Report
||Challenge Handshake Authentication Protocol
- Information Field – This field is of 0 or more bytes. It also has maximum length of 1500 bytes including padding and excluding protocol field. It usually contains datagram for the protocol that is specified and identified in protocol field. A datagram is basically a transfer unit that is associated with networking.
- Padding Field – This field is optional. On transmission, Information field may be padded up to the Maximum Receive Unit (MRU). Both of peers must be capable of recognizing and distinguish padding bytes from true data or real information.
Unlock the Power of Placement Preparation!
Feeling lost in OS, DBMS, CN, SQL, and DSA chaos? Our Complete Interview Preparation
Course is the ultimate guide to conquer placements. Trusted by over 100,000+ geeks, this course is your roadmap to interview triumph.
Ready to dive in? Explore our Free Demo Content and join our Complete Interview Preparation