blank.gif (43 bytes)

Church Of The
Swimming Elephant

HDLC Protocol Overview Connected: An Internet Encyclopedia
HDLC Protocol Overview

Up: Connected: An Internet Encyclopedia
Up: Topics
Up: Hardware
Up: Serial Links
Prev: Serial Links
Next: PPP Protocol Overview

HDLC Protocol Overview

HDLC Protocol Overview High-level data link control (HDLC), documented in ISO 3309, specifies a packitization standard for serial links. HDLC supports several modes of operation, including a simple sliding window mode for reliable delivery. Since Internet provide retransmission at higher levels (i.e, TCP), most Internet applications use HDLC's unreliable delivery mode, Unnumbered Information.

HDLC's frame structure:

The beginning and end of an HDLC frame are marked by flag characters - 01111110 binary. No flag character may appear in the intervening data. To enforce this requirement, the data may need to be modified (in a transparent manner). On bit-synchronous links, a binary 0 is inserted after every sequence of five 1s (bit stuffing). Thus, the longest sequence of 1s that may appear of the link is 0111110 - one less than the flag character. The receiver, upon seeing five 1s, examines the next bit. If 0, the bit is discarded and the frame continues. If 1, then this must be the flag sequence at the end of the frame.

At the end of the frame, a Frame Check Sequence (FCS) is used to verify the data integrity. The FCS is a CRC calculated using polynomial x^16 + x^12 + x^5 + 1.

Between HDLC frames, the link idles. Most synchronous links constantly transmit data; these links can transmit all 1s during the inter-frame period (mark idle), or all flag characters (flag idle).

Many varients of HDLC have been developed. Both PPP and SLIP use a subnet of HDLC's functionality. ISDN's D channel uses a slightly modified version of HDLC. Cisco routers' default serial link encapsulation is HDLC.

Next: PPP Protocol Overview

Connected: An Internet Encyclopedia
HDLC Protocol Overview


Protect yourself from cyberstalkers, identity thieves, and those who would snoop on you.
Stop spam from invading your inbox without losing the mail you want. We give you more control over your e-mail than any other service.
Block popups, ads, and malicious scripts while you surf the net through our anonymous proxies.
Participate in Usenet, host your web files, easily send anonymous messages, and more, much more.
All private, all encrypted, all secure, all in an easy to use service, and all for only $5.95 a month!

Service Details

Have you gone to church today?
All pages ©1999, 2000, 2001, 2002, 2003 Church of the Swimming Elephant unless otherwise stated
Church of the Swimming Elephant©1999, 2000, 2001, 2002, 2003 is a wholly owned subsidiary of Packetderm, LLC.

Packetderm, LLC
210 Park Ave #308
Worcester, MA 01609