Cisco HDLC

转自:http://en.wikipedia.org/wiki/Cisco_HDLC

Cisco HDLC (also known as cHDLC) is an extension to the High-Level Data Link Control protocol created by Cisco Systems, Inc. HDLC is a bit-oriented synchronous data link layer protocol that was originally developed by the International Organization for Standardization (ISO). Often described as being a 'proprietary' extension, the workings of cHDLC have in fact been openly and widely distributed, and the protocol has been implemented by many different network equipment vendors.

Contents

[hide]

<script type="text/javascript"></script>

Framing

Cisco HDLC frames make use of an alternative framing structure to the standard ISO HDLC. One of the primary reasons for the creation of cHDLC was to address the HDLC protocol's inability to provide multiprotocol support. Thus, cHDLC frames contain a field for identifying the network protocol being encapsulated.

SLARP

The Cisco HDLC extensions also include the definition of SLARP or the Serial Line Address Resolution Protocol (ARP). SLARP is used to provide dynamic address assignment between two endpoints across a serial line, a keep-alive mechanism for ensuring the availability of a given link, and finally a method for determining link health.

The keep-alive mechanism works in a request/response fashion between the two serial line endpoints. Sequence numbers carried inside the SLARP frames are incremented for each keep-alive sent, and as such the health of the link can be determined by each endpoint by keeping track of the sequence. If a certain count of sequence numbers is missed, the keep-alive frames are deemed to be lost, and an alert is pushed up through higher layer protocols to say that the frame has most likely been lost.

Structure

cHDLC Frame Structure

The following table describes the make up of a cHDLC frame on the wire.

AddressControlProtocol CodeInformationFrame Check Sequence (FCS)Flag
8 bits 8 bits 16 bits Variable length, 0 or more bits, in multiples of 8 16 bits 8 bits
  • The Address field is used to specify the type of packet contained in the cHDLC frame; 0x0F for Unicast and 0x8F for Broadcast packets.
  • The Control field is always set to zero (0x00).
  • The Protocol Code field is used to specify the protocol type encapsulated within the cHDLC frame (e.g. 0x0800 for Internet Protocol).

SLARP Address Request/Response Frame Structure

A SLARP frame is designated by a specific cHDLC Protocol Code field value of 0x8035.

Currently only 3 types of SLARP frame are defined; address requests (0x00), address replies (0x01), and keep-alive frames (0x02).

The following table shows the makeup of a SLARP cHDLC address request/response frame.

AddressControlProtocol CodeSLARP Op-CodeAddressMaskReservedFrame Check Sequence (FCS)Flag
8 bits 8 bits 16 bits (0x8035) 32 bits 32 bits 32 bits 8 bits 16 bits 8 bits
  • The Op-Code will be 0x00 for address requests and 0x01 for address responses.
  • The Address and Mask fields are used to contain a 4-octet IP address and mask.
  • The 1-byte Reserved field is currently unused and is always set to 0xFF.

SLARP Keep-Alive Frame Structure

The following table shows the makeup of a SLARP cHDLC keep-alive frame.

AddressControlProtocol CodeSLARP Op-CodeSequence Number (Sender)Sequence Number (Last Received)ReservedFrame Check Sequence (FCS)Flag
8 bits 8 bits 16 bits (0x8035) 32 bits 32 bits 32 bits 8 bits 16 bits 8 bits

发布了38 篇原创文章 · 获赞 1 · 访问量 13万+
展开阅读全文

没有更多推荐了,返回首页

©️2019 CSDN 皮肤主题: 大白 设计师: CSDN官方博客

分享到微信朋友圈

×

扫一扫,手机浏览