< Home

Configuring an HSB Service

Context

An HSB service establishes an HSB channel for transmitting packets of other services and maintains the link status by notifying the HSB group of the faulty link.

An HSB service provides the following functions:
  • Establishing an HSB channel: A TCP channel is established for sending HSB packets by setting the IP addresses and port numbers of the local and peer devices. The HSB service provides packet sending and receiving for other services and notifies link status changes.
  • Maintaining the link status of the HSB channel: HSB packets are sent and retransmitted to prevent long TCP interruption that is not detected by the protocol stack. If a device does not receive an HSB packet from the peer device within the period (retransmission interval x retransmission times), the local device receives a message indicating the exception and then re-establishes a channel to the peer.
  • Parameters for the HSB channel must be configured on the local and remote ends at the same time. The source IP address, destination IP address, source port, and destination port of the local end are the destination IP address, source IP address, destination port, and source port of the remote end, respectively. In addition, the IP address protocol stacks of the local and remote ends must be the same and must be IPv4 or IPv6 at the same time.
  • Parameters of HSB service packets, including the interval and packet retransmission times, must be the same on both ends.
  • Pay attention to the following points when configuring a shared key:
    • Configuring a shared key for HSB service is not recommended in a secure network environment because this configuration will degrade the HSB performance. If the shared key is required, ensure that the same shared key is configured at both ends of the HSB service. Inconsistent keys on both ends will cause frequent interruption of the HSB channel.
    • The key command must be configured before the service-ip-port command; otherwise, the key command will fail to be configured.

Procedure

  1. Run system-view

    The system view is displayed.

  2. Run hsb-service service-index

    An HSB service is created and the HSB service view is displayed.

    By default, no HSB service is created.

  3. (Optional) Run key cipher key-string

    The key used by the HSB devices is configured.

    By default, the key used by HSB devices is not configured.

  4. Run service-ip-port local-ip { local-ipv4-address | local-ipv6-address } peer-ip { peer-ipv4-address | peer-ipv6-address } local-data-port local-port peer-data-port peer-port

    The IP address and port number of an HSB channel is configured.

    By default, the IP address and port number of an HSB channel are not configured.

  5. (Optional) Run service-keep-alive detect retransmit retransmit-times interval interval-value

    The retransmission times and interval of HSB packets are set.

    The default number of retransmission times is 5, and the default retransmission interval is 3 seconds.

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >