Discovery stage
PPPoE functions as a client/server model in the discovery
stage. Before a host tries to initiate a PPP session, it searches
for a suitable PPPoE server (access concentrator) that can provide
the services required by the host. The host then learns the server’s
Media Access Control (MAC) address and a unique session number
called the session ID. During this process, if the host finds more than
one access concentrator, it chooses the most appropriate one with
which to establish connection. After the host selects the access concentrator,
both the host and the chosen access concentrator have the necessary
information to establish their PPP connection over the Ethernet.
The host and the server exchange packets as follows:
The host broadcasts
the initiation packet, PPPoE Active Discovery Initiation (
PADI).
One or more access concentrators
(servers) send offer packets, PPPoE Active Discover Offer (
PADO), to the host.
The host sends the unicast
session request packet, PPPoE Active Discovery Request (
PADR), to the access concentrator from which it requests
service.
The selected access concentrator
sends the confirmation packet, PPPoE Active Discovery Session-confirmation
(PADS), to the host.
Either the host or the access
concentrator sends the termination packet, PPPoE Active Discovery
Terminate (PADT), to indicate the close of a session.