The document discusses the Point-to-Point Protocol (PPP) and PPP over Ethernet (PPPoE). PPP provides a standard method for transporting multi-protocol datagrams over point-to-point links and includes authentication, link configuration, and network control protocols. PPPoE was created to allow the use of PPP over broadcast networks, and involves a discovery phase to identify peers and a session phase for negotiations and data transmission using a session ID.
The document discusses the Point-to-Point Protocol (PPP) and PPP over Ethernet (PPPoE). PPP provides a standard method for transporting multi-protocol datagrams over point-to-point links and includes authentication, link configuration, and network control protocols. PPPoE was created to allow the use of PPP over broadcast networks, and involves a discovery phase to identify peers and a session phase for negotiations and data transmission using a session ID.
The document discusses the Point-to-Point Protocol (PPP) and PPP over Ethernet (PPPoE). PPP provides a standard method for transporting multi-protocol datagrams over point-to-point links and includes authentication, link configuration, and network control protocols. PPPoE was created to allow the use of PPP over broadcast networks, and involves a discovery phase to identify peers and a session phase for negotiations and data transmission using a session ID.
The document discusses the Point-to-Point Protocol (PPP) and PPP over Ethernet (PPPoE). PPP provides a standard method for transporting multi-protocol datagrams over point-to-point links and includes authentication, link configuration, and network control protocols. PPPoE was created to allow the use of PPP over broadcast networks, and involves a discovery phase to identify peers and a session phase for negotiations and data transmission using a session ID.
Download as PPT, PDF, TXT or read online from Scribd
Download as ppt, pdf, or txt
You are on page 1/ 45
HUAWEI TECHNOLOGIES CO., LTD.
All rights reserved
www.huawei.com Internal Broadband Access Services HUAWEI TECHNOLOGIES CO., LTD. All rights reserved HUAWEI TECHNOLOGIES CO., LTD. All rights reserved HUAWEI TECHNOLOGIES CO., LTD. All rights reserved Page 4 Characteristics of PPP PPP provides CHAP and PAP authentication to enhance the network security. The physical layer of PPP supports asynchronous mode and synchronous mode. PPP has network control protocols for different network layers. HUAWEI TECHNOLOGIES CO., LTD. All rights reserved Page 5 Chapter 1 PPP Protocol Chapter 2 PPPoE Protocol HUAWEI TECHNOLOGIES CO., LTD. All rights reserved Page 6 Overview of PPP Definition of PPP: The Point-to-Point Protocol (PPP) provides a standard method for transporting multi-protocol datagrams over point-to-point links. Correspondence between the PPP and the protocol stack PPP protocol Physical layer Network layer Transport layer Session layer Presentation layer Application layer Data Link Layer HUAWEI TECHNOLOGIES CO., LTD. All rights reserved Page 7 Characteristics of PPP PPP provides CHAP and PAP authentication to enhance the network security. The physical layer of PPP supports asynchronous mode and synchronous mode. PPP has network control protocols for different network layers. HUAWEI TECHNOLOGIES CO., LTD. All rights reserved Page 8 Components of PPP A Link Control Protocol (LCP) for establishing, configuring, and testing the data-link connection. A family of Network Control Protocols (NCPs) for establishing and configuring different network-layer protocols. PPP extend protocols. (For example, Multilink protocol) HUAWEI TECHNOLOGIES CO., LTD. All rights reserved Page 9 Format of the PPP Data Frame Check Flag Flag Address Information field Control Protocol field 1B 1B 2B 1500B by default 1B 2B 1B 0x7E 0x7E 0xFF 0x03 Fixed value 1B=1Byte HUAWEI TECHNOLOGIES CO., LTD. All rights reserved Page 10 Common Packets Carried by PPP Frame Check IP data packet 0x0021 Check LCP data packet 0xC021 Check NCP data packet 0x8021 The protocol field has two bytes and it indicates the protocol type used in the information field. Its structure is consistent with the ISO3309 address field extension mechanism. Protocol field Information field HUAWEI TECHNOLOGIES CO., LTD. All rights reserved Page 11 PPP Phase Diagram Dead Establish Authenticate Network Terminate Success/None Up Opened Closing Down Fail Fail LCP PAP/CHAP IPCP HUAWEI TECHNOLOGIES CO., LTD. All rights reserved Page 12 PPP Phase Diagram LCP Config_Req LCP Config_Rej LCP Config_Req LCP Config_Nak LCP Config_Req LCP Config_Ack LCP Config_Req LCP Config_Ack Authentication_Req Authentication_Ack Challenge Authentication_Req Authentication_Ack When the attribute in Config-req packet does not support, reject packet is returned with the attribute contained When the attribute in Config-req packet supports but the value not, nak packet is returned with the attribute and the value contained LCP negotiation succeeds, responding with ack packet LCP negotiation is of two-way Pap authentication process and modes are optional Chap authentication process and modes are optional HUAWEI TECHNOLOGIES CO., LTD. All rights reserved Page 13 Format of the LCP Data Packet Flag 01111110 Address 11111111 Control 00000011 Protocol 8/16 bits Information * FCS 16 bits Flag 01111110 Configuration options format: Frame format Code 8 bits Identifier 8 bits Length 16 bits Data
Type 8 bits Length 8 bits Data
Type 8 bits Length 8 bits
HUAWEI TECHNOLOGIES CO., LTD. All rights reserved Page 14 Common Field Values Type
0021 IP 8021 IPCP C021 LCP C023 PAP C223 CHAP HUAWEI TECHNOLOGIES CO., LTD. All rights reserved Page 15 Types of LCP Data Packets Link configuration packet Configure-Request, Configure-Ack, Configure-Nak and Configure-Reject. Link termination packet Terminate-Request and Terminate-Reply. Link maintenance packet Code-Reject, Protocol-Reject, Echo-Request, Echo-Reply and Discard-Request. HUAWEI TECHNOLOGIES CO., LTD. All rights reserved Page 16 Examples of Link Configuration Packets 7E FF 03 C0 21 01 01 00 17 02 06 00 0A 00 00 05 06 00 0B 42 CB 07 02 08 02 0D 03 06 7E 7E FF 03 C0 21 02 01 00 17 02 06 00 0A 00 00 05 06 00 0B 42 CB 07 02 08 02 0D 03 06 7E One end of the p2p communication sends a Config-Request packet with the following content: After correctly receiving the packet, the peer returns a Config-Ack packet as following: HUAWEI TECHNOLOGIES CO., LTD. All rights reserved Page 17 Link Configuration Process (1) One-off interaction 1 2 Config-Request Config-Ack Router A Router B HUAWEI TECHNOLOGIES CO., LTD. All rights reserved Page 18 Examples of Link Configuration Packets One end of the p2p communication sends a Config-Request packet with the following content: 7E FF 03 C0 21 01 01 00 17 02 06 00 0A 00 00 05 06 00 0B 42 CB 07 02 08 02 0D 03 06 7E After correctly receiving the packet, the peer can identify the option 0x02 but not support the value. Then it returns a Config-Nak packet back: 7E FF 03 C0 21 03 01 00 0A 02 06 00 0E 00 00 7E after receiving the returned packet, the first end will resend a Config- Request packet again with the following content: 7E FF 03 C0 21 01 04 00 17 02 06 00 0E 00 00 05 06 00 0B 42 CB 07 02 08 02 0D 03 06 7E The peer returns a Config-Ack packet as following: 7E FF 03 C0 21 01 04 00 17 02 06 00 0E 00 00 05 06 00 0B 42 CB 07 02 08 02 0D 03 06 7E HUAWEI TECHNOLOGIES CO., LTD. All rights reserved Page 19 Link Configuration Process (2) Twice interaction (1) 1 2 Config-Request Config-Nak Router A Router B 3 4 Config-Request Config-Ack HUAWEI TECHNOLOGIES CO., LTD. All rights reserved Page 20 Examples of Link Configuration Packets 7E FF 03 C0 21 01 01 00 17 02 06 00 0A 00 00 05 06 00 0B 42 CB 07 02 08 02 0D 03 06 7E One end of the p2p communication sends a Config-Request packet with the following content: After correctly receiving the packet, the peer cannot identify the option 0x02 and returns a Config-Reject packet : 7E FF 03 C0 21 04 01 00 0A 02 06 00 0A 00 00 7E the original transmit end resend a Config-Request packet again as following : 7E FF 03 C0 21 01 04 00 11 05 06 00 0B 42 CB 07 02 08 02 0D 03 06 7E The peer returns a Config-Ack packet as following: 7E FF 03 C0 21 01 04 00 11 05 06 00 0B 42 CB 07 02 08 02 0D 03 06 7E HUAWEI TECHNOLOGIES CO., LTD. All rights reserved Page 21 Link Configuration Process (3) Twice interaction (2) 1 2 Config-Request Config-Reject Router A Router B 3 4 Config-Request Config-Ack HUAWEI TECHNOLOGIES CO., LTD. All rights reserved Page 22 Link Configuration Process (4) Multiple interactions 1 2 Config-Request Config-Reject Router A Router B 3 4 Config-Request Config-Nak 5 6 Config-Request Config-Ack HUAWEI TECHNOLOGIES CO., LTD. All rights reserved Page 23 PAP Authentication (Two Handshakes) User name/password Accept/reject PPP encapsulation Router A Router B Authenticated Authenticator Question 1: As shown in the figure, Router B is the authenticator and Router A is the supplicant. How to configure both routers? HUAWEI TECHNOLOGIES CO., LTD. All rights reserved Page 24 CHAP Authentication (Three Handshakes) Response Challenge Question 2: As shown in the figure, Router B is the authenticator and Router A is the supplicant. How to configure both routers? Accept/reject PPP encapsulation Router A Router B Authenticated Authenticator HUAWEI TECHNOLOGIES CO., LTD. All rights reserved Page 25 Classification of NCP PPP has network control protocols for different network layers. IPCP IPXCP AppleTalk HUAWEI TECHNOLOGIES CO., LTD. All rights reserved Page 26 IPCP Static Address Negotiation The point-to-point communication devices are all configured with IP addresses. I see. My IP address is 192.168.0.1. Router B Router A 192.168.0.1 192.168.0.2 I see My IP address is 192.168.0.2. HUAWEI TECHNOLOGIES CO., LTD. All rights reserved Page 27 IPCP Dynamic Address Negotiation One of the point-to-point ends is configured with an IP address and the other end obtains an IP address from the peer end. This address is illegal. Use IP address 192.168.0.1. My IP address is 0.0.0.0. Router B Router A 192.168.0.2 I see My IP address is 192.168.0.2. My IP address is 192.168.0.1. I see HUAWEI TECHNOLOGIES CO., LTD. All rights reserved Page 28 Chapter 1 PPP Protocol Chapter 2 PPPoE Protocol HUAWEI TECHNOLOGIES CO., LTD. All rights reserved Page 29 Overview of the PPPoE Why is PPPoE required? The PPP is not applicable to the broadcast networks or some other networks of multi-point access. Hence, the PPPoE emerged. HUAWEI TECHNOLOGIES CO., LTD. All rights reserved Page 30 Overview of the PPPoE The PPPoE is comprised of two phases: the discovery phase the PPP session phase. HUAWEI TECHNOLOGIES CO., LTD. All rights reserved Page 31 Discovery Phase Execute a discovery procedure to identify the peer MAC address and then create a unique PPPoE session ID. When a PPP session is established, the PPPoE discovery phase is completed. HUAWEI TECHNOLOGIES CO., LTD. All rights reserved Page 32 Session Phase Peers transmit PPP data to each other for negotiations and data transmission. The packets transmitted in this phase must keep the session ID determined in the discovery phase. HUAWEI TECHNOLOGIES CO., LTD. All rights reserved Page 33 Frame Format of the PPPoE (1) Ethernet frame format Ethernet broadcast address Ethernet Unicast address Host Ethernet address Host Ethernet address 0x8863 0x8864 Data area Data area Data frame check Data frame check Ethernet frame format in the PPPoE discovery phase Ethernet frame format in the PPPoE session phase Frame type field (2 octets) Destination address (6 octets) Source address (6 octets) Payload1500bytes Frame check (4 octets) HUAWEI TECHNOLOGIES CO., LTD. All rights reserved Page 34 Frame Format of the PPPoE (2) Version Type Code Session ID Length Payload 4 4 8 16 16 Some tags are carried in the discovery phase PPP data packets are carried in the session phase HUAWEI TECHNOLOGIES CO., LTD. All rights reserved Page 35 Frame Format of the PPPoE (3) TAG Tag type 16 Tag length 16 Tag value 0x0000 0x0102 0x0104 0x0110 0x0101 0x0103 0x0105 0x0201 End-of-list AC-Name AC-Cookie Relay-Session-ID Service-Name Service-Name-Error Host-Uniq Verdor-Specific 0x0202 0x0203 AC-System-Error Generic-Error HUAWEI TECHNOLOGIES CO., LTD. All rights reserved Page 36 Packet Types in Discovery Phase PADI (PPPoE Active Discovery Initiation) PADO (PPPoE Active Discovery Offer) PADR (PPPoE Active Discovery Request) PADS (PPPoE Active Discovery Session-confirmation) PADT (PPPoE Active Discovery Terminate) 09 a7 07 65 19 Value in code field HUAWEI TECHNOLOGIES CO., LTD. All rights reserved Page 37 PADI Packet Ethernet The destination address is broadcast address 0xffffffff and the source address is the Ethernet address of the host. The value of ETHER_TYPE is 0x8863, the code value is 0x09, and SESSION-ID is 0x0000. TAG_TYPE: There is one and only one Service-Name that indicates the service requested by the host. There can be other TAG_TYPE of any quantity. HUAWEI TECHNOLOGIES CO., LTD. All rights reserved Page 38 PADO Packet Ethernet The destination address is the Ethernet address of the host. The source address is the Ethernet address of the access concentrator. The value of ETHER_TYPE is 0x8863, the code value is 0x07 and SESSION-ID is 0x0000. TAG_TYPE: There must be one AC-Name TAG that comprises the name of the access concentrator, one Service- Name TAG that is the same as the received PADI and other Service-Name TAGs of any quantity to indicate the services that can be provided by the concentrator. HUAWEI TECHNOLOGIES CO., LTD. All rights reserved Page 39 PADR Packet The destination address is the Ethernet address of the access concentrator and the source address is the Ethernet address of the host. The value of ETHER_TYPE is 0x8863, the code value is 0x19, and SESSION-ID is 0x0000. TAG_TYPE: There must be a TAG of Service-Name type to indicate the requested service to the concentrator. There can be other TAGs of any quantity. Ethernet HUAWEI TECHNOLOGIES CO., LTD. All rights reserved Page 40 PADS Packet The destination address is the Ethernet address of the host and the source address is the Ethernet address of the access concentrator. The value of ETHER_TYPE is 0x8863, the code value is 0x65, and SESSION-ID is the value specified by the concentrator to uniquely identify a PPPoE session. TAG_ TYPE: It comprises a TAG of Service-Name type to indicate the service provided by the concentrator to the session. It can comprise other TAGs of any quantity. Ethernet HUAWEI TECHNOLOGIES CO., LTD. All rights reserved Page 41 PADT Packet PADT can be sent by the host or the concentrator at any time after the session is establishedand the destination address is unique address. The value of ETHER_TYPE is 0x8863, the code value is 0xa7, and SESSION-ID is the session to be terminated. TAG is not required. HUAWEI TECHNOLOGIES CO., LTD. All rights reserved Page 42 Packet Format in the Session Phase The LCP packet of PPP in the PPPoE data packet Frame type=0x8864 Destination address (6 octets) Source address (6 octets) PPP payload Version=0x1 Type=0x1 Code=0x00 Session ID=0x0001 Length (2 octets) PPP protocol ID=0xc021 Once a PPPoE session is established, the host and the access concentrator start to transmit the PPP data via PPP. All the Ethernet frames have unique addresses. Now the value of frame type is 0x8864, the code value is 0x00, and the SESSION-ID remains the same in the whole session process. The PPPoE payload field comprises a PPP data packet. HUAWEI TECHNOLOGIES CO., LTD. All rights reserved Page 43 Summary The PPP has three components: PPP extend Protocol, LCP protocol and NCP protocol. The PPP completes data link configuration and test via the LCP. The PPP completes the configuration of parameters needed for the network layer communication via the NCP protocol. PAP and CHAP working mechanism. HUAWEI TECHNOLOGIES CO., LTD. All rights reserved Page 44 Summary The PPPoE comprises the PPPoE discovery phase and the PPPoE session phase. The PPPoE discovery phase comprises four types of packets: PADI, PADO, PADR and PADS. The PADT packet is used to terminate a session. During the PPPoE discovery phase, the value of the Ethernet protocol field is 0x8863. During the PPPoE session phase, the value of the Ethernet protocol field is 0x8864. www.huawei.com Thank You