PPP Frame Decoder
Decode raw PPP frames and inspect HDLC-like flags, optional Address and Control fields, PPP Protocol field, payload, protocol name and optional CRC-16/X.25 frame check sequence.
7E FF 03 Protocol Information FCS 7E. Address/Control compression
can remove FF 03, while Protocol-Field-Compression can reduce
certain two-byte protocol values to one byte.
—
—
—
—
What Is a PPP Frame?
PPP, or Point-to-Point Protocol, carries network-layer and control protocols over point-to-point links. On asynchronous links it commonly uses an HDLC-like framing format with 0x7E flags, optional address and control fields, a protocol field, information data and a frame check sequence.
Flag
Address
Control
Protocol
Information
FCS
FlagPPP Address and Control Fields
The traditional PPP frame contains an Address field of 0xFF and a Control field of 0x03.
Address:
FF
Control:
03If Address-and-Control-Field-Compression is negotiated, both bytes can be omitted.
PPP Protocol Field
The Protocol field identifies the payload carried by PPP. It normally occupies two bytes, although Protocol-Field-Compression can reduce eligible protocol values to one byte.
| Protocol | Value |
|---|---|
| IPv4 | 0x0021 |
| IPv6 | 0x0057 |
| IPCP | 0x8021 |
| IPv6CP | 0x8057 |
| LCP | 0xC021 |
| PAP | 0xC023 |
| CHAP | 0xC223 |
PPP LCP
Link Control Protocol uses PPP protocol value 0xC021. LCP establishes, configures, tests and terminates the data-link connection.
LCP Header:
Code
Identifier
Length
Options...PPP LCP Codes
| Code | Meaning |
|---|---|
| 1 | Configure-Request |
| 2 | Configure-Ack |
| 3 | Configure-Nak |
| 4 | Configure-Reject |
| 5 | Terminate-Request |
| 6 | Terminate-Ack |
| 9 | Echo-Request |
| 10 | Echo-Reply |
PPP PAP
Password Authentication Protocol uses protocol value 0xC023. PAP packets include a Code, Identifier and Length, followed by authentication-specific fields.
PPP CHAP
Challenge Handshake Authentication Protocol uses protocol value 0xC223. CHAP exchanges challenge, response, success and failure packets rather than sending the password in the same form as PAP.
PPP Protocol Field Compression
When Protocol-Field-Compression is negotiated, protocol values whose first octet would be zero can be transmitted using only the low-order octet.
Normal IPv4 Protocol:
00 21
Compressed:
21PPP Frame Check Sequence
Asynchronous PPP commonly uses a 16-bit FCS based on the same reflected CRC-16/X.25 algorithm associated with HDLC framing.
Polynomial:
0x1021
Reflected polynomial:
0x8408
Initial:
0xFFFF
Final XOR:
0xFFFF