PPP Authentication Protocols

Passwords are incorporated into many protocols that provide authentication services. For dial-in connections, the Point-to-Point Protocol (PPP) is most often used to establish a dial-in connection over serial lines or ISDN. PPP authentication mechanisms include the Password Authentication Protocol (PAP), the Challenge Handshake Protocol (CHAP), and the Extensible Authentication Protocol (EAP). In all these cases, the peer device is being authenticated rather than the user of the device.

The PPP Protocol

PPP is a standardized Internet encapsulation of IP over point-to-point links. PPP addresses issues including assignment and management of IP addresses, asynchronous (start/stop) and bit-oriented synchronous encapsulation, network protocol multiplexing, link configuration, link quality testing, error detection, and option negotiation for such capabilities as network-layer address negotiation and data compression negotiation. PPP addresses these issues by providing an extensible Link Control Protocol (LCP) and a family of Network Control Protocols (NCPs) to negotiate optional configuration parameters and facilities. After the link has been established, PPP provides for an optional authentication phase before proceeding to the network-layer protocol phase.

PPP Link Layer

The PPP PDU uses the HDLC frame as stipulated in ISO 3309-1979 (and amended by ISO 3309-1984/PDAD1).

Security Technologies

The PPP frame format is shown in Figure 2-6. The fields of a PPP frame are as follows:

Security Technologies

The PPP frame format is shown in Figure 2-6. The fields of a PPP frame are as follows:

Field

Description

Flag

A single byte that indicates the beginning or end of a frame. The flag field consists of the binary sequence 01111110.

Address

A single byte that contains the binary sequence 11111111, the standard broadcast address. PPP does not assign individual station addresses.

Control

A single byte that contains the binary sequence 00000011, which calls for transmission of user data in an unsequenced frame.

Protocol

Two bytes that identify the protocol encapsulated in the information field of the frame. The most up-to-date values of the protocol field are specified in the most recent Assigned Numbers Request for Comments (RFC).

Data

Zero or more bytes that contain the datagram for the protocol specified in the protocol field. The end of the information field is found by locating the closing flag sequence and allowing two bytes for the FCS field. The default maximum length of the information field is 1,500 bytes. By prior agreement, consenting PPP implementations can use other values for the maximum information field length.

Frame Check Sequence (FCS)

Normally two bytes. By prior agreement, consenting PPP implementations can use a 4-byte FCS for improved error detection.

The LCP can negotiate modifications to the standard PPP frame structure. However, modified frames will always be clearly distinguishable from standard frames.

Figure 2-6: The PPP Frame Format

PPP negotiation consists of LCP and NCP negotiation. LCP is responsible for establishing the connection with certain negotiated options, maintaining the connection, and providing procedures to terminate the connection. To perform these functions, LCP is organized into the following four phases:

1. Link establishment and configuration negotiation

2. Link quality determination

3. Network layer protocol configuration negotiation

4. Link termination

To establish communications over a point-to-point link, each end of the PPP link must first send LCP packets to configure the data link during the link establishment phase. After the link has been established, PPP provides for an optional authentication phase before proceeding to the network layer protocol phase. The NCP phase then establishes and configures different network layer protocols such as IP.

By default, authentication before the NCP phase is not mandatory. If authentication of the link is desired, an implementation will specify the authentication protocol configuration option during the link establishment phase. These authentication protocols are intended for use primarily by hosts and routers that connect to a PPP network server through switched circuits or dial-up lines, but can be applied to dedicated links as well. The server can use the identification of the connecting host or router in the selection of options for network layer negotiations.

PPP Password Authentication Protocol

The Password Authentication Protocol (PAP) provides a simple way for a peer to establish its identity to the authenticator using a two-way handshake. This is done only at initial link establishment. There exist three PAP frame types, as shown in Figure 2-7.

Figure 2-7: The Three PPP PAP Frame Types

After the link establishment phase is completed, the authenticate-request packet is used to initiate the PAP authentication. This packet contains the peer name and password, as shown in Figure 2-8.

Figure 2-8: PPP PAP Authentication Request

This request packet is sent repeatedly until a valid reply packet is received or an optional retry counter expires. If the authenticator receives a Peer-ID/Password pair that is both recognizable and acceptable, it should reply with an Authenticate-Ack (where Ack is short for acknowledge). If the Peer-ID/Password pair is not recognizable or acceptable, the authenticator should reply with an Authenticate-Nak (where Nak is short for negative acknowledge).

Figure 2-9 shows the sequence of PPP negotiations between a branch router (the peer) trying to authenticate to the NAS, the network access server (the authenticator).

Figure 2-9: PPP PAP Authentication

PAP is not a strong authentication method. PAP authenticates only the peer, and passwords are sent over the circuit "in the clear." There is no protection from replay attacks or repeated trial-and-error attacks. The peer is in control of the frequency and timing of the attempts.

PPP Challenge-Handshake Authentication Protocol

The Challenge-Handshake Authentication Protocol (CHAP) is used to periodically verify the identity of a host or end user using a three-way handshake. CHAP is performed at initial link establishment and can be repeated any time after the link has been established. Four CHAP frame types exist, as shown in Figure 2-10.

Figure 2-10: PPP CHAP Frame Types

Figure 2-11 shows a scenario in which a branch router (the peer) is trying to authenticate to the NAS (the authenticator).

Security Technologies

CHAP imposes network security by requiring that the peers share a plaintext secret. This secret is never sent over the link. The following sequence of steps is carried out:

Step 1 After the link establishment phase is complete, the authenticator sends a challenge message to the peer. The challenge consists of an identifier (ID), a random number, and either the host name of the local device or the name of the user on the remote device.

Step 2 The receiving peer calculates a value using a one-way hash function; the secret is the input to the one-way hash function.

Step 3 The peer sends the challenge response, which consists of:

• An encrypted version of the ID

• A secret password (the calculated hash value)

• The random number

• Either the host name of the remote device, or the name of the user on the remote device

Step 4 When the authenticator receives the challenge response, it verifies the secret by looking up the name given in the response and performing the same encryption operation. The authenticator checks the response against its own calculation of the expected hash value.

Step 5 If the values match, the authenticator acknowledges the authentication and sends a success message, and the LCP establishes the link.

Figure 2-11: PPP CHAP Authentication

The secret passwords must be identical on the remote and local devices. These secrets should be agreed on, generated, and exchanged out-of-band in a secure manner. Because the secret is never transmitted, other devices are prevented from stealing it and gaining illegal access to the system. Without the proper response, the remote device cannot connect to the local device.

CHAP provides protection against playback attack through the use of an incrementally changing identifier and a variable challenge value. The use of repeated challenges is intended to limit the time of exposure to any single attack. The authenticator is in control of the frequency and timing of the challenges.

Note Typically, MD5 is used as the CHAP one-way hash function; the shared secrets are required to be stored in plaintext form. Microsoft has a variation of CHAP (MS-CHAP), in which the password is stored encrypted in both the peer and the authenticator. Therefore, MS-CHAP can take advantage of irreversibly encrypted password databases commonly available, whereas the standards-based CHAP cannot.

PPP Extensible Authentication Protocol

The PPP Extensible Authentication Protocol (EAP) is a general protocol for PPP authentication that supports multiple authentication mechanisms. EAP does not select a specific authentication mechanism at the link control phase; rather, it postpones this until the authentication phase so that the authenticator can request more information before determining the specific authen-tication mechanism. This arrangement also permits the use of a "back-end" server, which actually implements the various authentication mechanisms while the PPP authenticator merely passes through the authentication exchange.

Figure 2-12 shows how PPP EAP works. In the figure, the branch router (the peer) is trying to authenticate to the NAS (the authenticator). The sequence of steps is as follows:

Step 1 When the link establishment phase is complete, the authenticator sends one or more requests to authenticate the peer. The request has a type field to indicate what is being requested. Examples of request types include identity, MD5-challenge, S/Key, generic token card, and so on. The MD5-challenge type corresponds closely to the CHAP authentication protocol.

Note Typically, the authenticator sends an initial identity request followed by one or more requests for authentication information. However, an initial identity request is not required and may be bypassed in cases where the identity is presumed (for example, with leased lines, dedicated dial-ups, and so on).

Step 2 The peer sends a response packet in reply to each request. As with the request packet, the response packet contains a type field that corresponds to the type field of the request.

Step 3 The authenticator ends the authentication phase with a success or failure packet.

EAP adds more flexibility to PPP authentication and provides the capability to use new technologies---such as digital certificates---when they become widely available.

Figure 2-12: PPP EAP Authentication

PPP Authentication Summary

PPP authentication is required for dial-in connectivity. Any of the three standard mechanisms---PAP, CHAP, and EAP---can be used. Table 2-1 gives a summary of the strengths and weak-nesses of these mechanisms.

Table 2-1: PPP Authentication Summary

Protocol

Strength

Weakness

PAP

Easy to implement

Does not have strong authentication; password is sent in the clear between client and server; no playback protection

CHAP

Password encrypted

Password must be between client and stored in cleartext on server; both client and server playback protection

EAP

Flexible, more robust authentication support

New; may not yet be widely deployed

Continue reading here: Protocols Using Authentication Mechanisms

Was this article helpful?

+1 0

Readers' Questions

  • taimi
    Which network package supports ppp?
    15 days ago
  • Most network packages, including widely used protocols such as TCP/IP and Ethernet, support Point-to-Point Protocol (PPP). However, PPP is commonly used over legacy networks, dial-up connections, or as a tunnelling protocol. It may not be the primary choice for modern broadband connections, which often utilize protocols like Ethernet or wireless (Wi-Fi).
    • RUGGERO
      Which of the following technologies is not a shared authentication protocol?
      6 months ago
    • There are no list of options provided in the question. Can you please provide the options?
      • Cora
        What is chap in cyber security?
        6 months ago
      • In cyber security, "chap" is an abbreviation for Challenge-Handshake Authentication Protocol (CHAP). It is a security protocol used to authenticate parties in a network connection. CHAP provides mutual authentication between a client and a server by requesting and verifying a unique identifier or secret code known only to the two parties. This protocol helps prevent unauthorized access and protects against certain types of attacks, such as replay attacks.
        • luwam
          Which of the following security functions does chap perform?
          8 months ago
        • CHAP (Challenge Handshake Authentication Protocol) performs the security functions of authentication and encryption. It provides a secure authentication process that enables two parties to negotiate a authentication session and authenticate one another using a one-way hash method. CHAP also provides a level of encryption to secure the authentication process, thus preventing malicious users from intercepting and decoding the data being transmitted.
          • juhana
            Which of the following authentication protocols are supported by ppp pap eaptls eapmd5 chap?
            10 months ago
          • PPP, PAP, EAP-TLS, and CHAP.
            • linda
              Which of the following packet types are used during ppp negotiation?
              10 months ago
              1. Link Control Protocol (LCP)
              2. Network Control Protocol (NCP)
              3. Authentication Protocols (PAP/CHAP)
              • NEGISTI
                Which of the following is the microsoft version of chap?
                12 months ago
              • Microsoft Challenge Handshake Authentication Protocol (MS-CHAP)
                • REBECCA CAMERON
                  Which of the following authentication methods does a password follow?
                  12 months ago
                • Password authentication is a type of authentication method that requires the user to provide a valid username and password in order to gain access to a system.
                  • Bruce McGregor
                    Which protocol will terminate the ppp link after the exchange of data is complete?
                    12 months ago
                  • The Point-to-Point Protocol (PPP) will terminate the link after exchanging a special packet known as the Link Shutdown packet. The Link Shutdown packet signals the end of a communication session between two peers and terminates the PPP link.
                    • Lucas
                      Which of the following protocols does a dialup client use to connect to a remote access server?
                      12 months ago
                    • The Dialup client typically uses the Point-to-Point Protocol (PPP) to connect to a remote access server.
                      • hayley
                        Which authentication protocol uses a locally stored shared secret that is encrypted?
                        1 year ago
                      • A challenge-response authentication protocol using a locally stored shared secret that is encrypted is known as EAP-OTP (Extensible Authentication Protocol-One Time Password).
                        • Autumn
                          What authentication protocol sends authentication information in cleartext without encryption?
                          1 year ago
                        • The Authentication Header (AH) protocol, which is a part of the IPsec (Internet Protocol Security) suite, does not provide encryption for the authentication information it carries. This means that authentication information is sent in cleartext without encryption when using the AH protocol. However, the AH protocol does provide integrity and data origin authentication for IP packets.
                          • ALMAZ
                            Which address is used in the address field of a ppp frame?
                            1 year ago
                          • The Address field in a PPP frame contains the two-octet address of the receiver. The value of this field determines the type of PPP frame, as a control frame will have a value of 0x0C03, while a data frame will have the two-octet address of the device that the data is intended for.
                            • aira
                              Which network package support ppp?
                              1 year ago
                            • The network package 'pppd' (Point-to-Point Protocol Daemon) is the most commonly used package for supporting PPP (Point-to-Point Protocol) connections. It is part of the Linux networking stack and can be used on Windows and Mac OS X systems.
                              • eija
                                What is chap in networking?
                                1 year ago
                              • CHAP (Challenge Handshake Authentication Protocol) is a network authentication protocol that is used to verify the identity of the remote nodes on a network. It works by sending a challenge packet to the remote node, which is then hashed using a shared secret key. The authenticated node then sends back the hashed response, which is then checked against the expected result to verify the identity of the remote node.
                                • quinn
                                  Which of the following authentication protocols is based on a challenge/response mechanism?
                                  1 year ago
                                • Kerberos
                                  • kaj
                                    Which of the following authentication protocols uses a threeway handshake?
                                    1 year ago
                                  • TLS (Transport Layer Security)
                                    • Donnie
                                      What are the two commonly available ppp authentication mechanisms?
                                      1 year ago
                                      1. Password Authentication Protocol (PAP)
                                      2. Challenge Handshake Authentication Protocol (CHAP)
                                      • fabio
                                        What protocol is DialUp PPP Extensible Authentication Protocol?
                                        1 year ago
                                      • PPP (Point-to-Point Protocol) EAP (Extensible Authentication Protocol)
                                        • daniela
                                          Which of the following authentication protocols supported by PPP should be used?
                                          1 year ago
                                        • The choice of authentication protocol supported by PPP depends on the specific requirements and preferences of the network or system administrator. Some commonly used authentication protocols supported by PPP include:
                                          1. Password Authentication Protocol (PAP): PAP is the simplest form of authentication where the username and password are sent in clear text. It is a less secure option compared to others.
                                          2. Challenge-Handshake Authentication Protocol (CHAP): CHAP is a more secure option than PAP. It uses a three-way authentication mechanism where the server sends a challenge to the client, and the client responds with a hash value using a shared secret.
                                          3. Microsoft Challenge-Handshake Authentication Protocol (MS-CHAP): MS-CHAP is an extension of CHAP and provides additional security features. It supports mutual authentication and uses stronger encryption algorithms.
                                          4. Extensible Authentication Protocol (EAP): EAP is an extensible framework that allows for various authentication methods to be used within PPP. EAP provides greater flexibility and supports a wider range of authentication mechanisms, including strong authentication methods like certificates and smart cards.The choice of protocol will depend on factors such as the desired level of security, compatibility with client devices, and specific network requirements.
                                          • amalda
                                            Which network security protocol relies on PPP for authentication?
                                            1 year ago
                                          • Point-to-Point Protocol (PPP) Challenge Handshake Authentication Protocol (CHAP)
                                            • isabelle
                                              Which protocol is used by PPP to provide authentication and protection from playback attacks?
                                              1 year ago
                                            • The Point-to-Point Protocol (PPP) uses the Challenge Handshake Authentication Protocol (CHAP) for authentication and Message-Digest Algorithm-5 (MD5) for protection from playback attacks.
                                              • mitchell
                                                What protocol does PPP uses to identity network layout protocol?
                                                1 year ago
                                              • PPP uses the Network Control Protocol (NCP) to identify network layer protocol configurations.