Skip to main content

5. Bit-synchronous HDLC

This section summarizes the use of HDLC with bit-synchronous links.

Flag Sequence

The Flag Sequence indicates the beginning or end of a frame, and is used for frame synchronization. The bit stream is examined on a bit-by-bit basis for the binary sequence 01111110 (hexadecimal 0x7e).

The "shared zero mode" Flag Sequence "011111101111110" SHOULD NOT be used. When not avoidable, such an implementation MUST ensure that the first Flag Sequence detected (the end of the frame) is promptly communicated to the link layer. Use of the shared zero mode hinders interoperability with synchronous-to-asynchronous converters.

Transparency

The transmitter examines the entire frame between the two Flag Sequences. A "0" bit is inserted after all sequences of five contiguous "1" bits (including the last 5 bits of the FCS) to ensure that a Flag Sequence is not simulated.

When receiving, any "0" bit that directly follows five contiguous "1" bits is discarded.

Since the Control Escape octet-stuffing method is not used, the default receiving and sending Async-Control-Character-Maps are 0.

There may be some use of synchronous-to-asynchronous converters (some built into modems) in point-to-point links resulting in a synchronous PPP implementation on one end of a link and an asynchronous implementation on the other. It is the responsibility of the converter to do all mapping conversions during operation.

To enable this functionality, bit-synchronous PPP implementations MUST always respond to the Async-Control-Character-Map Configuration Option with an LCP Configure-Ack. However, acceptance of the Configuration Option does not imply that the bit-synchronous implementation will do any octet mapping. Instead, all such octet mapping will be performed by the asynchronous-to-synchronous converter.

Aborting a Transmission

A sequence of more than six "1" bits indicates an invalid frame, which is ignored, and not counted as a FCS error.

Inter-frame Time Fill

For bit-synchronous links, the Flag Sequence SHOULD be transmitted during inter-frame time fill. There is no provision for inter-octet time fill.

Mark idle (continuous ones) SHOULD NOT be used for inter-frame ill. However, certain types of circuit-switched links require the use of mark idle, particularly those that calculate accounting based on periods of bit activity. When mark idle is used on a bit-synchronous link, the implementation MUST ensure at least 15 consecutive "1" bits between Flags during the idle period, and that the Flag Sequence is always generated at the beginning of a frame after an idle period.

Encoding

The definition of various encodings and scrambling is the responsibility of the DTE/DCE equipment in use, and is outside the scope of this specification.

While PPP will operate without regard to the underlying representation of the bit stream, lack of standards for transmission will hinder interoperability as surely as lack of data link standards. At speeds of 56 Kbps through 2.0 Mbps, NRZ is currently most widely available, and on that basis is recommended as a default.

When configuration of the encoding is allowed, NRZI is recommended as an alternative, because of its relative immunity to signal inversion configuration errors, and instances when it MAY allow connection without an expensive DSU/CSU. Unfortunately, NRZI encoding obviates the (1 + x) factor of the 16-bit FCS, so that one error in 215 goes undetected (instead of one in 216), and triple errors are not detected. Therefore, when NRZI is in use, it is recommended that the 32-bit FCS be negotiated, which does not include the (1 + x) factor.

At higher speeds of up to 45 Mbps, some implementors have chosen the ANSI High Speed Synchronous Interface [HSSI]. While this experience is currently limited, implementors are encouraged to cooperate in choosing transmission encoding.