< Home

service-keep-alive detect

Function

The service-keep-alive detect command sets the retransmission times and interval of HSB packets.

The undo service-keep-alive command restores the default retransmission times and interval of HSB packets.

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

Format

service-keep-alive detect retransmit retransmit-times interval interval-value

undo service-keep-alive [ detect retransmit retransmit-times interval interval-value ]

Parameters

Parameter

Description

Value

retransmit retransmit-times

Specifies the retransmission times of HSB packets.

The value is an integer that ranges from 1 to 20.

interval interval-value

Specifies the retransmission interval of HSB packets.

The value is an integer that ranges from 1 to 10, in seconds.

Views

HSB service view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

An HSB service sends and retransmits HSB packets 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 (value of retransmit-times x value of interval-value), the local device receives a message indicating the exception and then re-establishes a channel to the peer.

Prerequisites

An HSB service has been configured.

Example

# Set the retransmission times of HSB service 0 to 5, and the retransmission interval to 1 second.

<HUAWEI> system-view
[HUAWEI] hsb-service 0
[HUAWEI-hsb-service-0] service-keep-alive detect retransmit 5 interval 1
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >