▸Protocol notes for this page (click to expand)

PPP (Point-to-Point Protocol) / PPPoE (PPP over Ethernet)

What it is for

Ethernet is multipoint and shared: any device that connects can transmit. A carrier needs to authenticate the user before providing service, for billing and to know which account a line belongs to.

PPP provides three things Ethernet lacks: authentication, IP negotiation and liveness detection. PPPoE carries PPP inside Ethernet frames, so dial-up works over an Ethernet metro network.

HDLC is an older encapsulation of the same kind, used on serial leased lines (with no Ethernet layer).

Dial-up in four steps

(1) Discovery: the client broadcasts PADI to find a BRAS, and the BRAS replies with PADO;
(2) Session: PADR / PADS obtain a Session ID, carried by every packet afterwards;
(3) Authentication: CHAP or PAP; only correct credentials continue, and billing is based on this step;
(4) Get an IP: IPCP negotiates, and the BRAS assigns an IP and DNS.

When broadband will not connect, first determine whether it is stuck at authentication (an account problem) or at discovery (a line problem).

The 1492 MTU

A 6-byte PPPoE header plus a 2-byte PPP protocol field is 8 bytes of overhead, so the MTU drops from 1500 to 1492.

The typical symptom: ping works (small packets) while web pages hang (large packets). Large packets with DF set exceed 1492 bytes and are dropped; the ICMP message sent back is often filtered by firewalls, so the sender never learns to send smaller packets and the transfer stalls.

This is a PMTUD black hole. The fix is to clamp TCP MSS to 1452 on the router.