Professional Documents
Culture Documents
Through the trunk technology, you can aggregate many physical interfaces into an
aggregation group to balance received and sent data among these interfaces and to provide
more highly-reliable connections.
HDLC
Compared with other data link layer protocols, HDLC has the following features:
l Full-duplex communication, which can send data continuously without waiting for
acknowledgment and has high data transmission efficiency.
l All frames adopt the Circle Redundancy Check (CRC) that numbers information frames.
In this way, the information frames can be prevented from being lost or received
repeatedly; therefore, the transmission reliability is improved.
l Transmission control function is separated from process function. Therefore, HDLC has
high flexibility and excellent control function.
l HDLC does not depend on any character set and can transmit data transparently.
l Zero-Bit Insertion, which is used to perform transparent transmission, is easy to be
applied on hardware.
HDLC Features
HDLC is a bit-oriented code-transparent synchronous data link layer protocol. It provides the
following features:
l HDLC works in full-duplex mode and can transmit data continuously without waiting
for acknowledgement. Therefore, HDLC features high data link transmission efficiency.
l HDLC uses cyclic redundancy check (CRC) for all frames and numbers them. This helps
you know which frames are dropped and which frames are repeatedly transmitted.
HDLC ensures high transmission reliability.
l HDLC separates the transmission control function from the processing function and
features high flexibility and perfect control capabilities.
l HDLC is independent of any character encoding set and transparently transmits data.
l Zero-bit insertion, which is used for transparent data transmission, is easy to implement
on hardware.
HDLC is especially used to logically transmit data that is segmented into physical blocks or
packages. These blocks or packages are called frames, each of which is identified by a start
flag and an end flag. In HDLC, all bit-oriented data link control protocols use a unified frame
format, and both data and control information are transmitted in frames. Each frame begins at
and ends with a frame delimiter, which is a unique sequence of bits of 01111110. The frame
delimiter marks the start or end of a frame or marks for synchronization. The frame delimiter
is invisible inside a frame to avoid confusion.
Zero-bit insertion is used to ensure that the sequence of bits used for the flag does not appear
in normal data. On the transmit end, zero-bit insertion monitors all fields except the flag and
places a 0 after five consecutive 1s. On the receive end, zero-bit insertion also monitors all
fields except the flag. After five consecutive 1s are found, if the following bit is a 0, the 0 is
automatically deleted to restore the former bit flow. If the following bit is a 1, it means that an
error has occurred or an end delimit is received. In this case, the frame receive procedure is
generally either restarted or aborted.
Introduction
Nodes on a network running HDLC are called stations. HDLC specifies three types of
stations: primary, secondary, and combined.
A primary station is the controlling station on a link. It controls the secondary stations on the
link and manages data flow and error recovery.
A secondary station is present on a link where there is a primary station. The secondary
station is controlled by the primary station, and has no direct responsibility for controlling the
link. Under normal circumstances, a secondary station will transfer frames only when
requested to do so by the primary station, and will respond only to the primary station.
Frames transferred by a primary station to a secondary station are called commands, and
frames transferred by a secondary station to a primary station are called responses.
On a point to multipoint (P2MP) link, there is a primary station and several secondary
stations. The primary station polls the secondary stations to determine whether they have data
to transmit, and then selects one to transmit its data. On a point to point (P2P) link, both ends
can be combined stations. If a node is connected to multiple links, the node can be the primary
station for some links and a secondary station for the other links.
4.2.5 IP-Trunk
A trunk can aggregate many interfaces into an aggregation group to implement load balancing
on member interfaces. Therefore, link connectivity is of higher reliability. Trunk interfaces are
classified as Eth-Trunk interfaces and IP-Trunk interfaces. An IP-Trunk can only be
composed of POS links. It has the following characteristics:
l Increased bandwidth: An IP-Trunk obtains the sum of bandwidths of all member
interfaces.
l Improved reliability: When a link fails, traffic is automatically switched to other links,
which improves connection reliability.
Member interfaces of an IP-Trunk interface must be encapsulated with HDLC. IP-Trunk and
Eth-Trunk technologies have similar principles. For details, see the chapter about trunk in the
NE40E Feature Description - LAN Access and MAN Access.
Implementation Principles
HDLC flapping suppression involves the following concepts:
l Penalty value: This value is calculated based on the HDLC protocol status of the
interface using the suppression algorithm. The core of the suppression algorithm is that
the penalty value increases with the changing times of the interface status and decreases
exponentially.
l Suppression threshold: The HDLC protocol status of an interface remains Down when
the penalty value is greater than the suppression threshold.
l Reuse threshold: The HDLC protocol status of an interface is no longer suppressed when
the penalty value is smaller than the reuse threshold.
l Ceiling threshold: The penalty value no longer increases when the penalty value reaches
the ceiling threshold, preventing the HDLC protocol status of an interface from being
suppressed for a long time. The ceiling value can be calculated using the following
formula: ceiling = reuse x 2(MaxSuppressTime/HalfLifeTime).
l Half-life-period: period that the penalty value takes to decrease to half. A half-life-period
begins to elapse when the HDLC protocol status of an interface goes Down for the first
time. If the specific half life expires, the penalty value decreases by half. Once a half life
ends, another half life starts.
l Max-suppress-time: maximum period during which the HDLC protocol status of an
interface is suppressed. After a max-suppress-time elapses, the HDLC protocol status of
the interface is renegotiated and reported.
Figure 4-2 shows the relationships between these parameters.
At t1, the HDLC protocol status of an interface goes Down, and its penalty value increases by
1000. Then, the interface goes Up, and its penalty value decreases exponentially based on the
half-life rule. At t2, the HDLC protocol status of the interface goes Down again, and its
penalty value increases by 1000, reaching 1600, which has exceeded the suppression
threshold of 1500. The HDLC protocol status of the interface is therefore suppressed. As the
interface keeps flapping, its penalty value keeps increasing until it reaches the ceiling
threshold of 10000 at tA. As time goes by, the penalty value decreases and reaches the reuse
value of 750 at tB. The HDLC protocol status of the interface is then no longer suppressed.
IP-Trunk
For an IP-Trunk interface, you can configure weights for member interfaces to implement
load balancing among member interfaces. There are two load balancing modes, namely, per-
destination and per-packet load balancing.
l Per-destination load balancing: packets with the same source and destination IP
addresses are transmitted over one member link.
l Per-packet load balancing: packets are transmitted over different member links.
As shown in Figure 4-4, two routers are connected through POS interfaces that are bundled
into an IP-Trunk interface to transmit IPv4, IPv6, and MPLS packets.
Aggregation Two or more interfaces are bundled together so that they function as a
single interface for load balancing and link protection.
Bundling Two boards can be bundled together and considered as one board.