Skip to main content

2.2. Self-Describing-Padding

2.2. Self-Describing-Padding​

Description​

This Configuration Option provides a method for an implementation to indicate to the peer that it understands self-describing pads when padding is added at the end of the PPP Information field. This option is most likely to be used when some protocols, such as network-layer or compression protocols, are configured which require detection and removal of any trailing padding. Such special protocols are identified in their respective documents. If the option is Rejected, the peer MUST NOT add any padding to the identified special protocols, but MAY add padding to other protocols. If the option is Ack'd, the peer MUST follow the procedures for adding self-describing pads, but only to the specifically identified protocols. The peer is not required to add any padding to other protocols. This is defined so that the Reject handles either case where the peer does not generate self-describing pads. When the peer never generates padding, it may safely Reject the option. When the peer does not understand the option, it also will not successfully configure a special protocol which requires elimination of pads. While some senders might only be capable of adding padding to every protocol or not adding padding to any protocol, by design the receiver need not examine those protocols which do not need the padding stripped. To avoid unnecessary configuration handshakes, an implementation which generates padding, and has a protocol configured which requires the padding to be known, SHOULD include this Option in its Configure-Request, and SHOULD Configure-Nak with this Option when it is not present in the peer's Request. Each octet of self-describing pad contains the index of that octet. The first pad octet MUST contain the value one (1), which indicates the Padding Protocol to the Compound-Frames option. After removing the FCS, the final pad octet indicates the number of pad octets to remove. For example, three pad octets would contain the values 1, 2, 3. The Maximum-Pad-Value (MPV) is also negotiated. Only the values 1 through MPV are used. When no padding would otherwise be required, but the final octet of the PPP Information field contains the value 1 through MPV, at least one self-describing pad octet MUST be added to the frame. If the final octet is greater than MPV, no additional padding is required. If any of the pad octets contain an incorrect index value, the entire frame SHOULD be silently discarded. This is intended to prevent confusion with the FCS-Alternatives option, but might not be necessary in robust implementations. Since this option is intended to support compression protocols, the Maximum-Pad-Value is specified to limit the likelihood that a frame may actually become longer. A summary of the Self-Describing-Padding Configuration Option format is shown below. The fields are transmitted from left to right. 0 1 2 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3

   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Type | Length | Maximum |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

Type​

10

Length​

3

Maximum​

This field specifies the largest number of padding octets which may be added to the frame. The value may range from 1 to 255, but values of 2, 4, or 8 are most likely.