PPP ECP: The PPP Encryption Control Protocol (ECP)
How the two ends of a PPP link agree to encrypt their traffic, and which cipher to use.
Meyer, G., "The PPP Encryption Control Protocol (ECP)", RFC 1968, DOI 10.17487/RFC1968, June 1996, <https://www.rfc-editor.org/info/rfc1968>.
@misc{rfc1968,
series = {Request for Comments},
number = 1968,
howpublished = {RFC 1968},
publisher = {RFC Editor},
doi = {10.17487/RFC1968},
url = {https://www.rfc-editor.org/info/rfc1968},
author = {G. Meyer},
title = {{The PPP Encryption Control Protocol (ECP)}},
pagetotal = 11,
year = 1996,
month = jun,
} RFC text
Contents
Network Working Group G. Meyer
Request for Comments: 1968 Spider Systems
Category: Standards Track June 1996
The PPP Encryption Control Protocol (ECP)
Status of this Memo
This document specifies an Internet standards track protocol for the
Internet community, and requests discussion and suggestions for
improvements. Please refer to the current edition of the "Internet
Official Protocol Standards" (STD 1) for the standardization state
and status of this protocol. Distribution of this memo is unlimited.
Abstract
The Point-to-Point Protocol (PPP) [1] provides a standard method for
transporting multi-protocol datagrams over point-to-point links. PPP
also defines an extensible Link Control Protocol.
This document defines a method for negotiating data encryption over
PPP links.
Conventions
The following language conventions are used in the items of
specification in this document:
o MUST -- the item is an absolute requirement of the specification.
MUST is only used where it is actually required for interopera-
tion, not to try to impose a particular method on implementors
where not required for interoperability.
o SHOULD -- the item should be followed for all but exceptional cir-
cumstances.
o MAY or optional -- the item is truly optional and may be followed
or ignored according to the needs of the implementor.
The words "should" and "may" are also used, in lower case, in
their more ordinary senses.
Table of Contents
1. Introduction ........................................... 2
2. Encryption Control Protocol (ECP) ...................... 2
2.1 Sending Encrypted Datagrams ....................... 3
3. Additional Packets ..................................... 4
3.1 Reset-Request and Reset-Ack ....................... 5
4. ECP Configuration Options .............................. 6
4.1 Proprietary Encryption OUI ........................ 7
4.2 Publicly Available Encryption Types ............... 8
4.3 Negotiating an Encryption Algorithm ............... 9
5. Security Considerations ................................ 10
1. Introduction
In order to establish communications over a PPP link, each end of the
link must first send LCP packets to configure and test the data link
during Link Establishment phase. After the link has been
established, optional facilities may be negotiated as needed.
One such facility is data encryption. A wide variety of encryption
methods may be negotiated, although typically only one method is used
in each direction of the link.
A different encryption algorithm may be negotiated in each direction,
for speed, cost, memory or other considerations.
2. Encryption Control Protocol (ECP)
The Encryption Control Protocol (ECP) is responsible for configuring
and enabling data encryption algorithms on both ends of the point-
to-point link.
ECP uses the same packet exchange mechanism as the Link Control
Protocol (LCP). ECP packets may not be exchanged until PPP has
reached the Network-Layer Protocol phase. ECP packets received
before this phase is reached should be silently discarded.
The Encryption Control Protocol is exactly the same as LCP [1] with
the following exceptions:
Frame Modifications
The packet may utilise any modifications to the basic frame
format which have been negotiated during the Link Establishment
phase.
Data Link Layer Protocol Field
Exactly one ECP packet is encapsulated in the PPP Information
field, where the PPP Protocol field indicates type hex 8053
(Encryption Control Protocol).
When individual link data encryption is used in a multiple link
connection to a single destination [2], the PPP Protocol field
indicates type hex 8055 (Individual link Encryption Control
Protocol).
Code field
ECP uses (decimal) codes 1 through 7 (Configure-Request,
Configure-Ack, Configure-Nak, Configure-Reject, Terminate-
Request, Terminate-Ack and Code-Reject); And may also use code
14 (Reset-Request) and code 15 (Reset-Ack). Other codes should
be treated as unrecognised and should result in Code-Rejects.
Negotiation
ECP packets may not be exchanged until PPP has reached the
Network-Layer Protocol phase. An implementation should be
prepared to wait for Authentication and Link Quality
Determination to finish before timing out waiting for a
Configure-Ack or other response.
An implementation MUST NOT transmit data until ECP negotiation
has completed successfully. If ECP negotiation is not
successful the link SHOULD be brought down.
Configuration Option Types
ECP has a distinct set of Configuration Options.
2.1 Sending Encrypted Datagrams
Before any encrypted packets may be communicated, PPP must reach the
Network-Layer Protocol phase, and the Encryption Control Protocol
must reach the Opened state.
An encrypted packet is encapsulated in the PPP Information field,
where the PPP Protocol field indicates type hex 0053 (Encrypted
datagram).
When using multiple PPP links to a single destination [2], there are
two methods of employing data encryption:
o The first method is to encrypt the data prior to sending it out
through the multiple links.
The PPP Protocol field MUST indicate type hex 0053.
o The second is to treat each link as a separate connection, that
may or may not have encryption enabled.
On links which have negotiated encryption, the PPP Protocol field
MUST be type hex 0055 (Individual link encrypted datagram).
Only one encryption algorithm in each direction is in use at a time,
and that is negotiated prior to sending the first encrypted frame.
The PPP Protocol field of the encrypted datagram indicates that the
frame is encrypted, but not the algorithm with which it was
encrypted.
The maximum length of an encrypted packet transmitted over a PPP link
is the same as the maximum length of the Information field of a PPP
encapsulated packet. If the encryption algorithm is likely to
increase the size of the message beyond that, multilink should also
be negotiated to allow fragmentation of the frames (even if only
using a single link).
If the encryption algorithm carries history between frames, the
encryption algorithm must supply a way of determining if it is
passing data reliably, or it must require the use of a reliable
transport such as LAPB [3].
Compression may also be negotiated using the Compression Control
Protocol [5]. To ensure interoperability, plain text MUST be:
o First compressed.
o Then encrypted.
This order has been chosen since it should result in smaller output
and more secure encryption.
3. Additional Packets
The Packet format and basic facilities are already defined for LCP
[1].
Up-to-date values of the ECP Code field are specified in the most
recent "Assigned Numbers" RFC [4]. This specification concerns the
following values:
14 Reset-Request
15 Reset-Ack
3.1 Reset-Request and Reset-Ack
Description
ECP includes Reset-Request and Reset-Ack Codes in order to provide
a mechanism for indicating a decryption failure in one direction
of a decrypted link without affecting traffic in the other
direction. Some encryption algorithms may not require this
mechanism.
Individual algorithms need to specify a mechanism for determining
how to detect a decryption failure. On initial detection of a
decryption failure, an ECP implementation SHOULD transmit an ECP
packet with the Code field set to 14 (Reset-Request). The Data
field may be filled with any desired data.
Once a Reset-Request has been sent, any encrypted packets received
are discarded. Further Reset-Requests MAY be sent with the same
Identifier, until a valid Reset-Ack is received.
When the link is busy, one decryption error is usually followed by
several more before the Reset-Ack can be received. It is
undesirable to transmit Reset-Requests more frequently than the
round-trip-time of the link, since this will result in redundant
Reset-Requests and Reset-Acks being transmitted and processed.
The receiver MAY elect to limit transmission of Reset-Requests (to
say one per second) while a Reset-Ack is outstanding.
Upon reception of a Reset-Request, the transmitting encrypter is
reset to an initial state. An ECP packet MUST be transmitted with
the Code field set to 15 (Reset-Ack), the Identifier field copied
from the Reset-Request packet, and the Data field filled with any
desired data.
On receipt of a Reset-Ack, the receiving decrypter is reset to an
initial state. Since there may be several Reset-Acks in the pipe,
the decrypter MUST be reset for each Reset-Ack which matches the
currently expected identifier.
A summary of the Reset-Request and Reset-Ack packet formats 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
14 for Reset-Request;
15 for Reset-Ack.
Identifier
On transmission, the Identifier field MUST be changed whenever the
content of the Data field changes, and whenever a valid reply has
been received for a previous request. For retransmissions, the
Identifier SHOULD remain unchanged.
On reception, the Identifier field of the Reset-Request is copied
into the Identifier field of the Reset-Ack packet.
Data
The Data field is zero or more octets and contains uninterpreted
data for use by the sender. The data may consist of any binary
value and may be of any length from zero to the peer's established
MRU minus four.
4. ECP Configuration Options
ECP Configuration Options allow negotiation of encryption algorithms
and their parameters. ECP uses the same Configuration Option format
defined for LCP [1], with a separate set of Options.
Configuration Options, in this protocol, indicate algorithms that the
receiver is willing or able to use to decrypt data sent by the
sender. Systems may offer to accept several algorithms, and
negotiate a single one that will be used.
Up-to-date values of the ECP Option Type field are specified in the
most recent "Assigned Numbers" RFC [4]. Current values are assigned
as follows:
ECP Option Encryption type
0 OUI
1 DESE
All compliant ECP implementations SHOULD implement ECP option 1 - the
PPP DES Encryption Protocol (DESE) [6].
Vendors who want to use proprietary encryption MAY use the OUI
mechanism to negotiate these without recourse to requesting an
assigned option number from the Internet Assigned Numbers Authority.
All other encryption options are registered by IANA. At the time of
writing only DESE (option 1) is registered. Other registered options
may be found by referring to future versions of the Assigned Numbers
RFC.
4.1 Proprietary Encryption OUI
Description
This Configuration Option provides a way to negotiate the use of a
proprietary encryption protocol.
Vendor's encryption protocols are distinguished from each other by
means of an Organisationally Unique Identifier (OUI), namely the
first three octets of a Vendor's Ethernet address assigned by IEEE
802.
Since the first matching encryption will be used, it is
recommended that any known OUI encryption options be transmitted
first, before the common options are used.
Before accepting this option, the implementation must verify that
the OUI identifies a proprietary algorithm that the implementation
can decrypt, and that any vendor specific negotiation values are
fully understood.
A summary of the Proprietary Encryption OUI Configuration Option
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
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Type | Length | OUI ...
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
OUI | Subtype | Values...
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-
Type
0
Length
>= 6
IEEE OUI
The IEEE OUI is the most significant three octets of an Ethernet
Physical Address, assigned to the vendor by IEEE 802. This
identifies the option as being proprietary to the indicated
vendor. The bits within the octet are in canonical order, and the
most significant octet is transmitted first.
Subtype
This field is specific to each OUI, and indicates an encryption
type for that OUI. There is no standardisation for this field.
Each OUI implements its own values.
Values
This field is zero or more octets, and contains additional data as
determined by the vendor's encryption protocol.
4.2 Publicly Available Encryption Types
Description
These Configuration Options provide a way to negotiate the use of
a publicly defined encryption algorithm.
These protocols should be made available to interested parties,
but may have certain licencing or export restrictions associated
with them. For additional information, refer to the encryption
protocol documents that define each of the encryption types.
A summary of the Encryption Type Configuration Option 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
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Type | Length | Values...
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-
Type
1 to 254, indicating the encryption protocol option
being negotiated. DESE [6] is option type 1. Refer to the
latest Assigned Numbers RFC for other encryption protocols.
Length
>= 2
Values
This field is zero or more octets, and contains additional data as
determined by the encryption protocol.
4.3 Negotiating an Encryption Algorithm
ECP uses LCP option negotiation techniques to negotiate encryption
algorithms. In contrast with most other LCP or NCP negotiation of
multiple options, ECP negotiation is expected to converge on a single
mutually agreeable option (encryption algorithm) - or none.
Encryption SHOULD be negotiated in both directions, but the
algorithms MAY be different.
An implementation willing to decrypt using a particular encryption
algorithm (or one of a set of algorithms) offers the algorithm(s) as
an option (or options) in an ECP Configure-Request - call this end
the Decrypter; call the peer the Encrypter.
A Decrypter supporting more than one encryption algorithm may send a
Configure-Request containing either:
o an ordered list of options, with the most-preferred encryption
algorithm coming first.
o Or may just offer its preferred (not already Rejected) option.
An Encrypter wishing to accept the first option (of several) MAY
Configure-Ack ALL Options to indicate complete acceptance of the
first-listed, preferred, algorithm.
Otherwise, if the Encrypter does not recognise - or is unwilling to
support - an option it MUST send a Configure-Reject for that option.
Where more than one option is offered, the Encrypter SHOULD
Configure-Reject all but a single preferred option.
If the Encrypter Configure-Rejects all offered ECP options - and the
Decrypter has no further (non-rejected) options it can offer in a
Configure-Request - the Encrypter SHOULD take the link down.
If the Encrypter recognises an option, but it is not acceptable due
to values in the request (or optional parameters not in the request),
it MUST send a Configure-Nak with the option modified appropriately.
The Configure-Nak MUST contain only those options that will be
acceptable. The Decrypter SHOULD send a new Configure-Request with
only the single preferred option, adjusted as specified in the
Configure-Nak.
5. Security Considerations
Negotiation of encryption using PPP is designed to provide protection
against eavesdropping on that link. The strength of the protection
is dependent on the encryption algorithm used and the care with which
any 'secret' used by the encryption algorithm is protected.
It must be recognised that complete security can only be obtained
through end-to-end security between hosts.
References
[1] Simpson, W., Editor; "The Point-to-Point Protocol (PPP)", STD
51, RFC 1661, Daydreamer, July 1994.
[2] Sklower, K., Lloyd, B., McGregor, G. and and D. Carr, "The PPP
Multilink Protocol (MP)", RFC 1717, University of California,
Berkeley, November 1994.
[3] Rand, D., "PPP Reliable Transmission", RFC 1663, Novell, July
1994.
[4] Reynolds, J., and Postel, J.; "ASSIGNED NUMBERS", STD 2,
RFC 1700, USC/Information Sciences Institute, October 1994.
[5] Rand, D., "The PPP Compression Control Protocol (CCP)", RFC
1962, Novell, June 1996.
[6] Sklower, K., and G. Meyer, "The PPP DES Encryption Protocol
(DESE)", RFC 1969, University of California, Berkeley, June
1996.
Acknowledgements
The style and approach of this proposal owes much to the work on the
Compression CP [5].
Chair's Address
The working group can be contacted via the current chair:
Karl Fox
Ascend Communications
3518 Riverside Drive, Suite 101
Columbus, Ohio 43221
EMail: karl@ascend.com
Author's Address
Gerry Meyer
Spider Systems
Stanwell Street
Edinburgh EH6 5NG
Scotland, UK
Phone: (UK) 131 554 9424
Fax: (UK) 131 554 0649
EMail: gerry@spider.co.uk
ISO Plain Language
On this page
§1Introduction
The Point-to-Point Protocol (PPP) provides a standard method for transporting multi-protocol datagrams over point-to-point links, and it defines an extensible Link Control Protocol (LCP). To establish communications over a PPP link, each end of the link must first send LCP packets to configure and test the data link during the Link Establishment phase. After the link has been established, optional facilities may be negotiated as needed.
One such facility is data encryption. A wide variety of encryption methods may be negotiated, although typically only one method is used in each direction of the link. A different encryption algorithm may be negotiated in each direction, for speed, cost, memory or other considerations.
PPP links are set up in stages. First the two ends configure and test the link itself. After that they can agree on extras, and one of those extras is encryption. The two directions may end up using different ciphers, for instance because one direction is slower and cheaper to encrypt.
§2The Encryption Control Protocol
The Encryption Control Protocol (ECP) is responsible for configuring and enabling data encryption algorithms on both ends of the point-to-point link. It uses the same packet exchange mechanism as LCP, and ECP packets may not be exchanged until PPP has reached the Network-Layer Protocol phase; ECP packets received before that phase is reached should be silently discarded.
ECP is exactly the same as LCP with a few exceptions. Its packets may use any modifications to the basic frame format that were negotiated during the Link Establishment phase. Exactly one ECP packet is encapsulated in the PPP Information field, where the PPP Protocol field indicates type hex 8053 for the Encryption Control Protocol. When individual link data encryption is used in a multiple link connection to a single destination, the PPP Protocol field indicates type hex 8055 for the Individual link Encryption Control Protocol. ECP also has its own distinct set of Configuration Options.
On negotiation, an implementation must not transmit data until ECP negotiation has completed successfully, and if the ECP negotiation is not successful the link should be brought down. An implementation should also be prepared to wait for Authentication and Link Quality Determination to finish before timing out waiting for a Configure-Ack or another response.
ECP reuses the link setup protocol, with encryption added. It runs only once the link is already carrying network traffic, and it is marked in the packet header by a special protocol number so the two ends know the packets belong to it. No data may be sent until the negotiation has succeeded, and a failed negotiation should close the link.
- 1Configure-Request — A decrypter offers the encryption algorithms it is willing to use.
- 2Configure-Ack — The encrypter accepts the option; it may ack all options to select the first listed.
- 3Configure-Nak — The option is recognised but its values are not acceptable.
- 4Configure-Reject — The option is not recognised, or the encrypter is unwilling to support it.
- 5Terminate-Request — An LCP code, reused by ECP.
- 6Terminate-Ack — An LCP code, reused by ECP.
- 7Code-Reject — An LCP code, reused by ECP; other unrecognised codes are answered with it.
- 14Reset-Request — Reports a decryption failure in one direction of the link.
- 15Reset-Ack — Answers a Reset-Request and resets the sending encrypter.
§2.1Sending Encrypted Datagrams
Before any encrypted packets may be communicated, PPP must reach the Network-Layer Protocol phase and ECP must reach the Opened state. An encrypted packet is encapsulated in the PPP Information field, where the PPP Protocol field indicates type hex 0053, encrypted datagram.
When multiple PPP links lead to a single destination there are two ways to use encryption. The first encrypts the data before sending it out through the multiple links, and the PPP Protocol field must indicate type hex 0053. The second treats each link as a separate connection that may or may not have encryption enabled, and on links that have negotiated encryption the PPP Protocol field must be type hex 0055, individual link encrypted datagram.
Only one encryption algorithm is in use in each direction at a time, and it is negotiated before the first encrypted frame is sent. The PPP Protocol field of the encrypted datagram says that the frame is encrypted, but not which algorithm was used.
The maximum length of an encrypted packet transmitted over a PPP link is the same as the maximum length of the Information field of a PPP encapsulated packet. If the encryption algorithm is likely to make the message longer than that, multilink should also be negotiated to allow fragmentation of the frames, even if only a single link is used. If the encryption algorithm carries history between frames, the algorithm must supply a way of determining whether it is passing data reliably, or it must require the use of a reliable transport such as LAPB.
Compression may also be negotiated with the Compression Control Protocol. To ensure interoperability, plain text must be compressed first and then encrypted. That order was chosen because it should give smaller output and more secure encryption.
Once the negotiation has finished, encrypted frames go out in the same place as ordinary PPP frames, with a protocol number that says the contents are encrypted. If the cipher makes frames longer than the link can take, the two ends must also agree to split them up. When compression is used as well, the data is compressed first and encrypted second.
§3.1Reset-Request and Reset-Ack
ECP includes Reset-Request and Reset-Ack codes so that a decryption failure in one direction of the link can be signalled without affecting traffic in the other direction. Some encryption algorithms may not need this mechanism, and each algorithm has to specify how a decryption failure is detected. On the initial detection of a failure, an ECP implementation should transmit an ECP packet with the Code field set to 14, Reset-Request; the Data field may be filled with any desired data. Once a Reset-Request has been sent, any encrypted packets received are discarded, and further Reset-Requests may be sent with the same Identifier until a valid Reset-Ack is received.
When the link is busy, one decryption error is usually followed by several more before the Reset-Ack can be received. It is undesirable to transmit Reset-Requests more frequently than the round-trip time of the link, because that results in redundant Reset-Requests and Reset-Acks being transmitted and processed. The receiver may limit transmission of Reset-Requests, to say one per second, while a Reset-Ack is outstanding.
On reception of a Reset-Request, the transmitting encrypter is reset to an initial state, and an ECP packet must be transmitted with the Code field set to 15, Reset-Ack, the Identifier field copied from the Reset-Request packet, and the Data field filled with any desired data. On receipt of a Reset-Ack, the receiving decrypter is reset to an initial state. Since several Reset-Acks may be in the pipe, the decrypter must be reset for each Reset-Ack that matches the currently expected identifier.
The packet format is the one LCP defines: a Code field, an Identifier field, a Length field and a Data field. The Identifier must change whenever the content of the Data field changes and whenever a valid reply has been received for a previous request, but it should stay unchanged for retransmissions. The Data field is zero or more octets of uninterpreted data for the sender's use, of any length from zero to the peer's established MRU minus four.
If a frame cannot be decrypted, the two ends need to start the cipher again from a known point, in one direction only. The end that noticed the problem sends a Reset-Request; the other end puts its sending side back to its starting state and answers with a Reset-Ack. Frames that arrive in between are thrown away, and the request is repeated until the answer comes back.
| Field | Name | Size | Value | Description |
|---|---|---|---|---|
CODE | Code | 1 byte | 14 for Reset-Request, 15 for Reset-Ack. | |
IDENTIFIER | Identifier | 1 byte | Copied from the Reset-Request into the Reset-Ack; unchanged for retransmissions. | |
LENGTH | Length | 2 bytes | Length field of the packet, followed by the Data field. |
§4ECP Configuration Options
ECP Configuration Options allow encryption algorithms and their parameters to be negotiated. ECP uses the same Configuration Option format LCP defines, with a separate set of options. An option indicates an algorithm that the receiver is willing or able to use to decrypt data sent by the sender, so a system may offer to accept several algorithms and negotiate a single one that will be used.
Two option types are defined. Option 0 is the OUI, which provides a way to negotiate a proprietary encryption protocol. It distinguishes one vendor's protocol from another's by means of the Organisationally Unique Identifier (OUI), namely the first three octets of the vendor's Ethernet address assigned by IEEE 802. Since the first matching encryption will be used, the document recommends that any known OUI encryption options be transmitted first, before the common options. Before accepting the option, the implementation must verify that the OUI identifies a proprietary algorithm it can decrypt and that any vendor specific negotiation values are fully understood.
Option 1 is the publicly available encryption type, whose format is a Type field, a Length field and a Values field. The Type field carries a value from 1 to 254 indicating the encryption protocol option being negotiated, and DESE, the PPP DES Encryption Protocol, is option type 1. Vendors who want to use proprietary encryption may use the OUI mechanism instead of asking the Internet Assigned Numbers Authority for an assigned option number. All compliant ECP implementations should implement option 1, DESE, and at the time of writing only DESE is registered.
The options are how the two ends name the ciphers they understand. There is one option for ciphers defined in public standards and one for a vendor's own cipher, which is identified by the first three bytes of the vendor's hardware address. At the time of writing, the only publicly registered cipher was DESE, the PPP DES Encryption Protocol.
| Field | Name | Size | Value | Description |
|---|---|---|---|---|
TYPE | Type | 1 byte | 0 for the OUI option. | |
LENGTH | Length | 1 byte | At least 6. | |
OUI | IEEE OUI | 3 bytes | The first three octets of the vendor's Ethernet address. | |
SUBTYPE | Subtype | 1 byte | Specific to each OUI; there is no standardisation for this field. |
§4.3Negotiating an Encryption Algorithm
ECP uses LCP option negotiation techniques to negotiate encryption algorithms. In contrast with most other LCP or NCP negotiation of multiple options, ECP negotiation is expected to converge on a single mutually agreeable option, one encryption algorithm, or on none. Encryption should be negotiated in both directions, but the algorithms may be different.
The end that is willing to decrypt using a particular encryption algorithm is called the Decrypter, and its peer is the Encrypter. A Decrypter supporting more than one algorithm may send a Configure-Request containing either an ordered list of options with the most-preferred algorithm first, or just its preferred option that has not already been rejected.
An Encrypter wishing to accept the first of several options may Configure-Ack all the options, which indicates complete acceptance of the first-listed, preferred, algorithm. If the Encrypter does not recognise an option, or is unwilling to support it, it must send a Configure-Reject for that option, and where more than one option is offered it should Configure-Reject all but a single preferred option. If the Encrypter Configure-Rejects all the offered ECP options and the Decrypter has no further options it can offer, the Encrypter should take the link down.
If the Encrypter recognises an option but cannot accept it because of the values in the request, or because of optional parameters missing from the request, it must send a Configure-Nak with the option modified appropriately. The Configure-Nak must contain only those options that would be acceptable, and the Decrypter should send a new Configure-Request with only the single preferred option, adjusted as the Configure-Nak specifies.
One end offers the ciphers it can handle, most preferred first. The other end either accepts the first one, refuses the ones it does not want, or asks for different settings within one it recognises. The exchange ends with both ends on the same cipher, or with the link being closed. The two ends may end up on different ciphers in each direction.
- Configure-Request: option 1, option 5An ordered list, most preferred first.
- Configure-AckAccepts the first-listed algorithm.
- Configure-Request: option 7
- Configure-RejectThe option is not recognised or not supported.
- Configure-Request: option 1 with values
- Configure-NakThe option is recognised but the values are not acceptable.
- Configure-Request: option 1 adjusted
- Configure-AckOne algorithm has been agreed.
§5Security Considerations
Negotiating encryption using PPP is designed to provide protection against eavesdropping on that link. The strength of the protection is dependent on the encryption algorithm used and on the care with which any secret used by the algorithm is protected.
The document is explicit that complete security can only be obtained through end-to-end security between hosts. Encrypting the link protects the traffic between the two ends of the link; it does not protect the traffic once it has left the link.
Encrypting a link protects what travels over it, but only for as long as the traffic stays on that link. The document says plainly that real end-to-end protection has to come from securing the connection between the two hosts themselves.