RFC 1334

PPP Authentication Protocols

๐Ÿ“… published October 1992, from ietf

RFC 1334: PPP Authentication Protocols ๐ŸŽ€

Okay bestie, here are the deets ๐Ÿ’… This is RFC 1334, "PPP Authentication Protocols," from the Network Working Group. It was written by B. Lloyd (L&A) and W. Simpson (Daydreamer), and it's dated October 1992. It's an IAB standards track protocol for the Internet community. The header doesn't list any RFCs it obsoletes or updates ๐Ÿฆ‹


Status of This Memo โœจ

So this RFC specifies an IAB standards track protocol for the whole Internet community, and it's literally asking for discussion and suggestions for improvements ๐Ÿ’ฌ For the current standardization state and status of this protocol, check the "IAB Official Protocol Standards" doc. Distribution of this memo is unlimited ๐ŸŒธ

Abstract ๐Ÿ’œ

The Point-to-Point Protocol (PPP) [1] gives us a standard way to encapsulate Network Layer protocol information over point-to-point links ๐Ÿ”— PPP also has an extensible Link Control Protocol, which lets the two ends negotiate an Authentication Protocol for authenticating the peer before Network Layer protocols are allowed to transmit over the link. Super important gatekeeping, ngl ๐Ÿซถ

This document defines two protocols for Authentication: the Password Authentication Protocol and the Challenge-Handshake Authentication Protocol. This memo is the product of the Point-to-Point Protocol Working Group of the Internet Engineering Task Force (IETF). Comments on this memo should be submitted to the ietf-ppp@ucdavis.edu mailing list ๐Ÿ“ฌ

Table of Contents ๐Ÿงš

1.  Introduction ...............................................    2
1.1 Specification Requirements .................................    2
1.2 Terminology ................................................    3
2. Password Authentication Protocol ............................    3
2.1 Configuration Option Format ................................    4
2.2 Packet Format ..............................................    5
2.2.1 Authenticate-Request .....................................    5
2.2.2 Authenticate-Ack and Authenticate-Nak ....................    7
3. Challenge-Handshake Authentication Protocol..................    8
3.1 Configuration Option Format ................................    9
3.2 Packet Format ..............................................   10
3.2.1 Challenge and Response ...................................   11
3.2.2 Success and Failure ......................................   13
SECURITY CONSIDERATIONS ........................................   14
REFERENCES .....................................................   15
ACKNOWLEDGEMENTS ...............................................   16
CHAIR'S ADDRESS ................................................   16
AUTHOR'S ADDRESS ...............................................   16

1. Introduction โœจ

Okay so PPP has three main components ๐Ÿงฉ

  1. A method for encapsulating datagrams over serial links.
  2. A Link Control Protocol (LCP) for establishing, configuring, and testing the data-link connection.
  3. A family of Network Control Protocols (NCPs) for establishing and configuring different network-layer protocols.

To set up communications over a point-to-point link, each end of the PPP link must first send LCP packets to configure the data link during Link Establishment phase. Once the link is up, PPP gives us an optional Authentication phase before moving on to the Network-Layer Protocol phase ๐ŸŽ€

By default, authentication is not mandatory. If you want authentication on the link, an implementation MUST specify the Authentication-Protocol Configuration Option during Link Establishment phase ๐Ÿ”

These authentication protocols are mainly for hosts and routers that connect to a PPP network server over switched circuits or dial-up lines, but they might be applied to dedicated links too ๐Ÿ“ž The server can use the identity of the connecting host or router when it picks options for network layer negotiations, which is so smart ๐Ÿง 

This document defines the PPP authentication protocols. The Link Establishment and Authentication phases, and the Authentication-Protocol Configuration Option, are defined in The Point-to-Point Protocol (PPP) [1] ๐Ÿ“–

1.1. Specification Requirements ๐Ÿ’…

In this document, several words signify the requirements of the specification. These words are often capitalized ๐Ÿ”ค

MUST This word, or the adjective "required", means that the definition is an absolute requirement of the specification.

MUST NOT This phrase means that the definition is an absolute prohibition of the specification.

SHOULD This word, or the adjective "recommended", means that there may exist valid reasons in particular circumstances to ignore this item, but the full implications should be understood and carefully weighed before choosing a different course.

MAY This word, or the adjective "optional", means that this item is one of an allowed set of alternatives. An implementation which does not include this option MUST be prepared to interoperate with another implementation which does include the option. โญ

1.2. Terminology ๐Ÿ“š

This document frequently uses the following terms:

authenticator The end of the link requiring the authentication. The authenticator specifies the authentication protocol to be used in the Configure-Request during Link Establishment phase.

peer The other end of the point-to-point link; the end which is being authenticated by the authenticator.

silently discard This means the implementation discards the packet without further processing. The implementation SHOULD provide the capability of logging the error, including the contents of the silently discarded packet, and SHOULD record the event in a statistics counter. ๐Ÿ™ˆ

2. Password Authentication Protocol ๐Ÿ”‘

The Password Authentication Protocol (PAP) gives a simple method for the peer to establish its identity using a 2-way handshake. This is done only upon initial link establishment ๐Ÿค

After the Link Establishment phase is complete, an Id/Password pair is repeatedly sent by the peer to the authenticator until authentication is acknowledged or the connection is terminated ๐Ÿ”

PAP is not a strong authentication method. Passwords are sent over the circuit "in the clear," and there is no protection from playback or repeated trial and error attacks. The peer is in control of the frequency and timing of the attempts. ๐Ÿ’€ This is a big deal, so please read it twice.

Any implementations which include a stronger authentication method (such as CHAP, described below) MUST offer to negotiate that method prior to PAP ๐Ÿ’ช

This authentication method is most appropriately used where a plaintext password must be available to simulate a login at a remote host. In such use, this method provides a similar level of security to the usual user login at the remote host ๐Ÿ–ฅ๏ธ

Implementation Note: It is possible to limit the exposure of the plaintext password to transmission over the PPP link, and avoid sending the plaintext password over the entire network. When the remote host password is kept as a one-way transformed value, and the algorithm for the transform function is implemented in the local server, the plaintext password SHOULD be locally transformed before comparison with the transformed password from the remote host. ๐Ÿง

2.1. Configuration Option Format ๐ŸŽ€

A summary of the Authentication-Protocol Configuration Option format to negotiate the Password Authentication Protocol is shown below. The fields are transmitted from left to right ๐Ÿ‘€

    0                   1                   2                   3
    0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |     Type      |    Length     |     Authentication-Protocol   |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

Type

3

Length

4

Authentication-Protocol

c023 (hex) for Password Authentication Protocol.

Data

There is no Data field.

2.2. Packet Format ๐Ÿงพ

Exactly one Password Authentication Protocol packet is encapsulated in the Information field of a PPP Data Link Layer frame where the protocol field indicates type hex c023 (Password Authentication Protocol). A summary of the PAP packet format is shown below. The fields are transmitted from left to right ๐Ÿ“ฆ

    0                   1                   2                   3
    0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |     Code      |  Identifier   |            Length             |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |    Data ...
   +-+-+-+-+

Code

The Code field is one octet and identifies the type of PAP packet. PAP Codes are assigned as follows:

   1       Authenticate-Request
   2       Authenticate-Ack
   3       Authenticate-Nak

Identifier

The Identifier field is one octet and aids in matching requests and replies. ๐Ÿค

Length

The Length field is two octets and indicates the length of the PAP packet including the Code, Identifier, Length and Data fields. Octets outside the range of the Length field should be treated as Data Link Layer padding and should be ignored on reception. ๐Ÿงน

Data

The Data field is zero or more octets. The format of the Data field is determined by the Code field. โœจ


2.2.1. Authenticate-Request ๐Ÿ’–

Description ๐ŸŒธ

okay bestie, the Authenticate-Request packet is how the Password Authentication Protocol gets kicked off ๐Ÿฆ‹ The link peer MUST transmit a PAP packet with the Code field set to 1 (Authenticate-Request) during the Authentication phase. The Authenticate-Request packet MUST be repeated until a valid reply packet is received, or an optional retry counter expires. โณ

The authenticator SHOULD expect the peer to send an Authenticate-Request packet. When one arrives, some type of Authenticate reply (described below) MUST be returned. ๐Ÿ’…

Implementation Note: Because the Authenticate-Ack might be lost, the authenticator MUST allow repeated Authenticate-Request packets after completing the Authentication phase. Protocol phase MUST return the same reply Code returned when the Authentication phase completed (the message portion MAY be different). Any Authenticate-Request packets received during any other phase MUST be silently discarded. ๐Ÿ™ˆ When the Authenticate-Nak is lost, and the authenticator terminates the link, the LCP Terminate-Request and Terminate-Ack provide an alternative indication that authentication failed. ๐Ÿงš

A summary of the Authenticate-Request packet format is shown below. The fields are transmitted from left to right. ๐ŸŽ€

    0                   1                   2                   3
    0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |     Code      |  Identifier   |            Length             |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   | Peer-ID Length|  Peer-Id ...
   +-+-+-+-+-+-+-+-+-+-+-+-+
   | Passwd-Length |  Password  ...
   +-+-+-+-+-+-+-+-+-+-+-+-+-+

Code ๐Ÿ“ 1 for Authenticate-Request.

Identifier ๐Ÿฆ‹ The Identifier field is one octet and aids in matching requests and replies. The Identifier field MUST be changed each time an Authenticate-Request packet is issued.

Peer-ID-Length โœจ The Peer-ID-Length field is one octet and indicates the length of the Peer-ID field.

Peer-ID ๐ŸŒˆ The Peer-ID field is zero or more octets and indicates the name of the peer to be authenticated.

Passwd-Length ๐Ÿ’œ The Passwd-Length field is one octet and indicates the length of the Password field.

Password ๐Ÿ”ฅ The Password field is zero or more octets and indicates the password to be used for authentication.


2.2.2. Authenticate-Ack and Authenticate-Nak ๐Ÿ‘‘

Description ๐Ÿ’–

if the Peer-ID/Password pair received in an Authenticate-Request is both recognizable and acceptable, then the authenticator MUST transmit a PAP packet with the Code field set to 2 (Authenticate-Ack). โœ…

if the Peer-ID/Password pair received in an Authenticate-Request is not recognizable or acceptable, then the authenticator MUST transmit a PAP packet with the Code field set to 3 (Authenticate-Nak), and SHOULD take action to terminate the link. ๐Ÿ’€

A summary of the Authenticate-Ack and Authenticate-Nak packet format is shown below. The fields are transmitted from left to right. ๐ŸŒธ

    0                   1                   2                   3
    0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |     Code      |  Identifier   |            Length             |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |  Msg-Length   |  Message  ...
   +-+-+-+-+-+-+-+-+-+-+-+-+-

Code ๐Ÿซถ

  • 2 for Authenticate-Ack;
  • 3 for Authenticate-Nak.

Identifier ๐Ÿงš The Identifier field is one octet and aids in matching requests and replies. The Identifier field MUST be copied from the Identifier field of the Authenticate-Request which caused this reply.

Msg-Length ๐Ÿ“ The Msg-Length field is one octet and indicates the length of the Message field.

Message ๐Ÿ’œ The Message field is zero or more octets, and its contents are implementation dependent. It is intended to be human readable, and MUST NOT affect operation of the protocol. It is recommended that the message contain displayable ASCII characters 32 through 126 decimal. Mechanisms for extension to other character sets are the topic of future research. ๐Ÿ”ฎ


3. Challenge-Handshake Authentication Protocol ๐ŸŒˆ

okay, the Challenge-Handshake Authentication Protocol (CHAP) is the one that periodically checks who the peer is, using a 3-way handshake ๐Ÿค This is done upon initial link establishment, and MAY be repeated anytime after the link has been established. ๐Ÿ”

After the Link Establishment phase is complete, the authenticator sends a "challenge" message to the peer. The peer responds with a value calculated using a "one-way hash" function. The authenticator checks the response against its own calculation of the expected hash value. If the values match, the authentication is acknowledged; otherwise the connection SHOULD be terminated. ๐Ÿšซ

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

This authentication method depends upon a "secret" known only to the authenticator and that peer. The secret is not sent over the link. This method is most likely used where the same secret is easily accessed from both ends of the link. ๐Ÿ”

Implementation Note: CHAP requires that the secret be available in plaintext form. To avoid sending the secret over other links in the network, it is recommended that the challenge and response values be examined at a central server, rather than each network access server. Otherwise, the secret SHOULD be sent to such servers in a reversibly encrypted form. ๐Ÿ™ˆ

The CHAP algorithm requires that the length of the secret MUST be at least 1 octet. The secret SHOULD be at least as large and unguessable as a well-chosen password. It is preferred that the secret be at least the length of the hash value for the hashing algorithm chosen (16 octets for MD5). This is to ensure a sufficiently large range for the secret to provide protection against exhaustive search attacks. ๐Ÿ’ช

The one-way hash algorithm is chosen such that it is computationally infeasible to determine the secret from the known challenge and response values. ๐Ÿงฎ

The challenge value SHOULD satisfy two criteria: uniqueness and unpredictability. Each challenge value SHOULD be unique, since repetition of a challenge value in conjunction with the same secret would permit an attacker to reply with a previously intercepted response. Since it is expected that the same secret MAY be used to authenticate with servers in disparate geographic regions, the challenge SHOULD exhibit global and temporal uniqueness. Each challenge value SHOULD also be unpredictable, lest an attacker trick a peer into responding to a predicted future challenge, and then use the response to masquerade as that peer to an authenticator. Although protocols such as CHAP are incapable of protecting against realtime active wiretapping attacks, generation of unique unpredictable challenges can protect against a wide range of active attacks. ๐Ÿ›ก๏ธ

A discussion of sources of uniqueness and probability of divergence is included in the Magic-Number Configuration Option [1]. ๐Ÿ“š

3.1. Configuration Option Format ๐ŸŽ€

A summary of the Authentication-Protocol Configuration Option format to negotiate the Challenge-Handshake Authentication Protocol is shown below. The fields are transmitted from left to right. ๐Ÿฆ‹

    0                   1                   2                   3
    0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |     Type      |    Length     |     Authentication-Protocol   |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |   Algorithm   |
   +-+-+-+-+-+-+-+-+

Type ๐Ÿ’– 3

Length โœจ 5

Authentication-Protocol ๐Ÿ’œ c223 (hex) for Challenge-Handshake Authentication Protocol.

Algorithm ๐Ÿ”ฅ The Algorithm field is one octet and indicates the one-way hash method to be used. The most up-to-date values of the CHAP Algorithm field are specified in the most recent "Assigned Numbers" RFC [2]. Current values are assigned as follows:

   0-4     unused (reserved)
   5       MD5 [3]

3.2. Packet Format ๐ŸŒธ

Exactly one Challenge-Handshake Authentication Protocol packet is encapsulated in the Information field of a PPP Data Link Layer frame where the protocol field indicates type hex c223 (Challenge-Handshake Authentication Protocol). A summary of the CHAP packet format is shown below. The fields are transmitted from left to right. ๐Ÿงš

    0                   1                   2                   3
    0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |     Code      |  Identifier   |            Length             |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |    Data ...
   +-+-+-+-+

Code ๐Ÿ‘‘ The Code field is one octet and identifies the type of CHAP packet. CHAP Codes are assigned as follows:

   1       Challenge
   2       Response
   3       Success
   4       Failure

Identifier ๐Ÿฆ‹ The Identifier field is one octet and aids in matching challenges, responses and replies.

Length ๐Ÿ“ The Length field is two octets and indicates the length of the CHAP packet including the Code, Identifier, Length and Data fields. Octets outside the range of the Length field should be treated as Data Link Layer padding and should be ignored on reception. ๐Ÿงน

Data ๐ŸŒˆ The Data field is zero or more octets. The format of the Data field is determined by the Code field. ๐Ÿ’…

3.2.1. Challenge and Response โœจ

Description

okay bestie, the Challenge packet is how the Challenge-Handshake Authentication Protocol gets started ๐ŸŽ€ The authenticator MUST send a CHAP packet with the Code field set to 1 (Challenge). Additional Challenge packets MUST be sent until a valid Response packet shows up, or an optional retry counter runs out โณ

A Challenge packet MAY also be sent at any time during the Network-Layer Protocol phase, just to make sure the connection hasn't been messed with ๐Ÿ•ต๏ธโ€โ™€๏ธ

The peer SHOULD expect Challenge packets during both the Authentication phase and the Network-Layer Protocol phase ๐Ÿ’… Whenever a Challenge arrives, the peer MUST send a CHAP packet with the Code field set to 2 (Response). It's a whole call-and-response situation ๐ŸŽถ

When a Response comes in, the authenticator compares the Response Value with its own calculation of what the expected value should be ๐Ÿงฎ Based on that comparison, the authenticator MUST send either a Success or a Failure packet (more on those below) ๐Ÿ’–

Implementation Note: Because the Success might be lost, the authenticator MUST allow repeated Response packets after finishing the Authentication phase ๐Ÿซถ To keep anyone from figuring out alternative Names and Secrets, any Response packets that show up with the current Challenge Identifier MUST return the same reply Code that was returned when the Authentication phase completed (the message portion MAY be different). Any Response packets received during any other phase MUST be silently discarded ๐Ÿ™ˆ When the Failure gets lost and the authenticator terminates the link, the LCP Terminate-Request and Terminate-Ack give you another way to tell that authentication failed ๐ŸŒธ

A summary of the Challenge and Response packet format is shown below. The fields are transmitted from left to right ๐Ÿ“

    0                   1                   2                   3
    0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |     Code      |  Identifier   |            Length             |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |  Value-Size   |  Value ...
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |  Name ...
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

Code

  • 1 for Challenge;
  • 2 for Response.

Identifier

The Identifier field is one octet. The Identifier field MUST be changed each time a Challenge is sent ๐Ÿ”„

The Response Identifier MUST be copied from the Identifier field of the Challenge that caused the Response ๐Ÿ’Œ

Value-Size

This field is one octet and tells you how long the Value field is ๐Ÿ“

Value

The Value field is one or more octets. The most significant octet is transmitted first ๐Ÿง 

The Challenge Value is a variable stream of octets. The importance of the Challenge Value being unique, and how it relates to the secret, is described above ๐Ÿ” The Challenge Value MUST be changed each time a Challenge is sent. How long the Challenge Value is depends on the method used to generate the octets, and it doesn't depend on the hash algorithm used ๐Ÿฆ‹

The Response Value is the one-way hash calculated over a stream of octets made of the Identifier, followed by (concatenated with) the "secret", followed by (concatenated with) the Challenge Value. How long the Response Value is depends on the hash algorithm used (16 octets for MD5) โœจ

Name

The Name field is one or more octets that identify the system sending the packet. There are no limitations on what goes in this field. For example, it MAY contain ASCII character strings or globally unique identifiers in ASN.1 syntax ๐ŸŒˆ The Name should not be NUL or CR/LF terminated. The size is determined from the Length field ๐Ÿ“

Since CHAP may be used to authenticate lots of different systems, the content of the name field(s) can be used as a key to look up the right secret in a database of secrets ๐Ÿ—๏ธ This also makes it possible to support more than one name/secret pair per system ๐Ÿ‘‘

3.2.2. Success and Failure ๐ŸŽ‰

Description

If the Value received in a Response is equal to the expected value, then the implementation MUST send a CHAP packet with the Code field set to 3 (Success) ๐Ÿฅณ

If the Value received in a Response is not equal to the expected value, then the implementation MUST send a CHAP packet with the Code field set to 4 (Failure), and SHOULD take action to terminate the link ๐Ÿ’€

A summary of the Success and Failure packet format is shown below. The fields are transmitted from left to right ๐Ÿ’œ

    0                   1                   2                   3
    0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |     Code      |  Identifier   |            Length             |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |  Message  ...
   +-+-+-+-+-+-+-+-+-+-+-+-+-

Code

  • 3 for Success;
  • 4 for Failure.

Identifier

The Identifier field is one octet and helps match requests and replies ๐Ÿงฉ The Identifier field MUST be copied from the Identifier field of the Response that caused this reply ๐ŸŽ€

Message

The Message field is zero or more octets, and what's in it is implementation dependent ๐ŸŒธ It's meant to be human readable, and it MUST NOT affect operation of the protocol ๐Ÿ™…โ€โ™€๏ธ It is recommended that the message contain displayable ASCII characters 32 through 126 decimal. Ways to extend this to other character sets are the topic of future research ๐Ÿ”ฌ The size is determined from the Length field ๐Ÿ“

Security Considerations ๐Ÿ”’

Okay, this part is seriously important, so pay attention ๐Ÿ˜ญ Security issues are the primary topic of this RFC ๐Ÿšจ

How the authentication protocols work inside PPP is highly implementation dependent. That's why SHOULD shows up all over the document ๐Ÿ’…

For example, when authentication fails, some implementations don't terminate the link. Instead, they limit the Network-Layer Protocols traffic to a filtered subset, which gives the user a chance to update their secrets or email the network administrator about the problem ๐Ÿ“ง

There's no provision for retries of failed authentication. However, the LCP state machine can renegotiate the authentication protocol at any time, which allows a new attempt ๐Ÿ” It is recommended that any counters used for authentication failure not be reset until after successful authentication, or until the failed link is terminated ๐Ÿงฎ

There's no requirement that authentication be full duplex, or that the same protocol be used in both directions. It is perfectly acceptable for different protocols to be used in each direction. Of course, this depends on which specific protocols get negotiated ๐Ÿค

In practice, within or alongside each PPP server, there's a database that links "user" names to authentication information ("secrets") ๐Ÿ—„๏ธ It isn't expected that a particular named user would be authenticated by multiple methods. That would make the user vulnerable to attacks that negotiate the least secure method from a set (like PAP instead of CHAP) ๐Ÿšซ Instead, each named user should have exactly one method indicated for authenticating that user name. If a user needs different authentication methods under different circumstances, then distinct user names SHOULD be used, and each one should identify exactly one authentication method ๐Ÿงธ

Passwords and other secrets should be stored at each end in a way that keeps access to them as limited as possible. Ideally, the secrets should only be accessible to the process that needs them to perform the authentication ๐Ÿ”‘

The secrets should be distributed with a mechanism that limits how many entities handle them (and so gain knowledge of them). Ideally, no unauthorized person should ever learn the secrets ๐Ÿ˜ค It is possible to achieve this with SNMP Security Protocols [4], but that mechanism is outside the scope of this specification ๐Ÿ™ƒ

Other distribution methods are currently being researched and experimented with. The SNMP Security document also has an excellent overview of threats to network protocols ๐Ÿ“š

References ๐Ÿ“–

  • [1] Simpson, W., "The Point-to-Point Protocol (PPP)", RFC 1331, Daydreamer, May 1992.
  • [2] Reynolds, J., and J. Postel, "Assigned Numbers", RFC 1340, USC/Information Sciences Institute, July 1992.
  • [3] Rivest, R., and S. Dusse, "The MD5 Message-Digest Algorithm", MIT Laboratory for Computer Science and RSA Data Security, Inc. RFC 1321, April 1992.
  • [4] Galvin, J., McCloghrie, K., and J. Davin, "SNMP Security Protocols", Trusted Information Systems, Inc., Hughes LAN Systems, Inc., MIT Laboratory for Computer Science, RFC 1352, July 1992.

Acknowledgments ๐Ÿซถ

Some of the text in this document is taken from RFC 1172, by Drew Perkins of Carnegie Mellon University, and by Russ Hobby of the University of California at Davis ๐ŸŒŸ

Special thanks to Dave Balenson, Steve Crocker, James Galvin, and Steve Kent, for their extensive explanations and suggestions. Now, if only we could get them to agree with each other ๐Ÿ˜‚

Chair's Address ๐Ÿ“ฎ

The working group can be contacted via the current chair:

   Brian Lloyd
   Lloyd & Associates
   3420 Sudbury Road
   Cameron Park, California 95682

   Phone: (916) 676-1147

   EMail: brian@lloyd.com

Author's Address ๐Ÿ’Œ

Questions about this memo can also be directed to:

   William Allen Simpson
   Daydreamer
   Computer Systems Consulting Services
   P O Box 6205
   East Lansing, MI  48826-6205

   EMail: Bill.Simpson@um.cc.umich.edu

That's the whole RFC, bestie! ๐ŸŒˆโœจ๐Ÿ’–

๐Ÿ“ฆ where this page comes from