31.07.2015 Views

network protocols handbook.pdf

network protocols handbook.pdf

network protocols handbook.pdf

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

187Protocols GuideWAN - PPP ProtocolsProtocol NamePPPoE: PPP over EthernetProtocol DescriptionPPP over Ethernet (PPPoE) provides the ability to connect a<strong>network</strong> of hosts over a simple bridging access device to a remoteAccess Concentrator. With this model, each host utilizesits own PPP stack and the user is presented with a familiar userinterface. Access control, billing and type of service can be doneon a per-user, rather than per-site, basis.To provide a point-to-point connection over Ethernet, each PPPsession must learn the Ethernet address of the remote peer, aswell as establish a unique session identifier. PPPoE includes adiscovery protocol that provides this.PPPoE has two distinct stages. There is a Discovery stage anda PPP Session stage. When a Host wishes to initiate a PPPoEsession, it must first perform Discovery to identify the EthernetMAC address of the peer and establish a PPPoE SESSION_ID.While PPP defines a peer-to-peer relationship, Discovery is inherentlya client-server relationship. In the Discovery process, aHost (the client) discovers an Access Concentrator (the server).Based on the <strong>network</strong> topology, there may be more than oneAccess Concentrator that the Host can communicate with. TheDiscovery stage allows the Host to discover all Access Concentratorsand then select one. When Discovery completes successfully,both the Host and the selected Access Concentratorhave the information they will use to build their point-to-pointconnection over Ethernet.The Discovery stage remains stateless until a PPP session isestablished. Once a PPP session is established, both the Hostand the Access Concentrator MUST allocate the resources for aPPP virtual interface.Protocol StructureThe Ethernet payload for PPPoE is as follows:NOT be used• LENGTH - The value, in <strong>network</strong> byte order, indicatesthe length of the PPPoE payload. It does not includethe length of the Ethernet or PPPoE headers.Related <strong>protocols</strong>PPP, 802.3Sponsor SourcePPPoE is defined by IETF (http://www.ietf.org) RFC 2516.Referencehttp://www.javvin.com/protocol/rfc2516.<strong>pdf</strong>A Method for Transmitting PPP Over Ethernet (PPPoE)4 8 16 32bitVer Type Code Session-IDLengthPayload• VER – version of PPPOE MUST be set to 0x1.• TYPE - MUST be set to 0x1.• CODE - is defined below for the Discovery and PPPSession stages.• SESSION_ID - is an unsigned value in <strong>network</strong> byteorder. It’s value is defined below for Discovery packets.The value is fixed for a given PPP session and,in fact, defines a PPP session along with the EthernetSOURCE_ADDR and DESTINATION_ADDR. Avalue of 0xffff is reserved for future use and MUST

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!