Point-to-Point Protocol: How PPP Sets Up a Connection
A router setting labeled “PPPoE” can make an internet connection seem more mysterious than it is. The letters refer to a particular way of setting up a link, and three of them come from Point-to-Point Protocol.
Point-to-Point Protocol, or PPP, carries data between the two ends of a communication link. It gives those ends a way to agree on how the link will work before they use it to carry network traffic.
Each end is called a peer. For an internet service, the peers might be a customer's equipment and the provider's equipment. The link connects them.
It can also arrange an identity check. But a working PPP link doesn't, by itself, mean the traffic is encrypted.
What Was That Dial-Up Noise Actually Saying?
Before the Data Starts Moving
PPP's Link Control Protocol, or LCP, brings the link into operation and lets the peers agree on options. If authentication is required, the peers then perform the agreed identity check.
Next come Network Control Protocols, or NCPs. These configure the protocols, or sets of communication rules, whose data will travel over the link.
PPP wraps packets, or units of network data, with information about their contents. The base PPP standard calls this encapsulation.
PPP works at the data-link layer, handling communication between peers. Other protocol layers have jobs such as moving packets across several networks.
Checking Identity Is Optional in the Base Protocol
PPP doesn't require authentication by default. A peer that requires it must request an authentication method during setup. An internet provider can therefore require a login for its service even though the underlying protocol makes authentication optional.
Two legacy authentication methods show how the check works.
Password Authentication Protocol, or PAP, sends an identity and password to the other peer. Without separate protection, that password travels in readable form. The historical PAP specification warns that it offers no protection against replaying captured credentials or repeatedly guessing a password.
Challenge Handshake Authentication Protocol, or CHAP, works differently. One peer sends a challenge. The other calculates a response using that challenge and a shared secret. A hash, a value calculated from the inputs, forms part of that response; the shared secret itself isn't sent over the link.
The CHAP standard describes this exchange. It checks identity without encrypting the traffic sent afterward.
- Get five gigabit ports and a fast ARM processor for the price of a basic home router.
- Practice real routing at your desk on gear that network pros also deploy.
- Tuck it beside your modem: it takes up almost no room.
A Password Check Can't Hide the Traffic
Authentication asks whether the peer can supply the required proof. Encryption makes data unreadable without the means to decode it. Error detection checks whether data appears to have been damaged in transit.
PPP encryption is a separate, optional facility. The Encryption Control Protocol provides a way for both peers to configure and enable it. You'd need to check the connection's configuration to find out whether that facility is active and what it provides.
One PPP framing method includes a frame check sequence. A frame is the unit used to carry information across the link. The check sequence is a calculated value that helps detect transmission errors, and invalid frames are discarded. The PPP framing specification describes this behavior.
Detecting a damaged frame doesn't authenticate the sender, hide the contents or guarantee that the data will eventually arrive. A circuit reserved for two locations still needs separate protection to keep its contents private.
What the “oE” Adds
PPPoE means PPP over Ethernet. Ethernet is a networking technology; PPPoE defines how PPP sessions can run across it. A session is an established conversation that the two ends can identify.
PPPoE starts with a discovery phase. The customer's equipment finds an access concentrator, equipment that accepts the connection, and the two sides establish a session identifier. The session can then carry PPP traffic. The PPPoE specification describes that sequence.
For a customer filling in router settings, the provider's required connection type matters. Selecting PPPoE tells the equipment to use this discovery-and-session process. An Ethernet cable alone doesn't select it for you.
PAP: The Password Request and the Protection Around It

CHAP: A Password Can Stay Hidden and Still Be Guessed

L2TP: Carrying One Network Link Inside Another

QUOTE:
"Amateurs hack systems, professionals hack people."
