Solstice PPP 3.0.1 Administration Guide

Link Control Protocol (LCP) Frames

The link control protocol (LCP) frames are transmitted during the link establishment and termination phases, and periodically during the life of the link. They are used to negotiate the configuration of the PPP link, and to test and maintain the link, once it is established. LCP frames have the general form shown in Figure A-3.

Figure A-3 LCP Frame Format

Graphic

Address Field

The address field is one octet in length, and is part of the HDLC-like framing for PPP. It is always set to 0xff.

Control Field

The control field is one octet in length, and is part of the HDLC-like framing for PPP. It is always set to 0x03.

Protocol Id

The protocol id identifies the type of information contained in the information field of the frame, and is always 0xc021 for LCP frames.

Code Field

The code field is one octet in length and identifies the type of LCP frame, based on the following codes:

0x01 Configure-request 0x07 Code-reject

0x02 Configure-ack 0x08 Protocol-reject

0x03 Configure-nak 0x09 Echo-request

0x04 Configure-reject 0x0a Echo-reply

0x05 Terminate-request 0x0b Discard-request

0x06 Terminate-ack

Id Field

The id field is one octet in length, and carries an identifier that is used to match associated requests and replies.

Length Field

The length field is two octets in length, and indicates the total length of the LCP frame including the Code, Id, length, and data fields. The length must not exceed the maximum receive unit (MRU).

Data Field

The data field is zero or more octets in length, as indicated by the length field. It contains the information associated with the frame, which may be configuration options, frame information, or simple data.

In some cases, the data field includes a magic number, which is four octets in length, and which is used to detect a looped-back condition and other link level anomalies. The magic number is a negotiated parameter, and is set to zero by default. When set, it contains a unique, randomly-generated sequence of digits that identifies the initial source of the frame. If two frames of the same type with the same magic number are received, there is a high probability that the link is looped back, and that the second frame is a reflection of the original.

Link Configuration Frames

Link configuration frames are transmitted during the link establishment phase. The data field of a link configuration frame carries information used to negotiate the configuration options for the link. The Link configuration frames are:

Link Termination Frames

Link termination frames are transmitted during the link termination phase. The link termination frames are:

Link Maintenance Frames

Link maintenance frames are transmitted periodically to test and maintain the link. The link termination frames are: