< Home

lacp timeout

Function

The lacp timeout command configures the timeout period for an Eth-Trunk interface in static Link Aggregation Control Protocol (LACP) mode to receive LACP packets.

The undo lacp timeout command restores the timeout period to the default value.

By default, the timeout period for receiving LACPDUs is 90s.

Format

lacp timeout { fast [ user-defined user-defined ] | slow }

undo lacp timeout

Parameters

Parameter Description Value
fast Indicates that the timeout period of Eth-Trunk interfaces in static LACP mode to receive packets is 3 seconds.

If fast is configured, the peer sends an LACP packet every 1s. In this case, the device responds to the LACP packets from the peer rapidly but consumes more system resources compared with the situation where slow is configured. In this mode, you can specify user-defined user-defined to modify the timeout period.

-
user-defined user-defined

Specifies the timeout period for an Eth-Trunk interface to receive packets when fast is specified.

The value is an integer ranging from 3 to 90, in seconds.

slow Indicates that the timeout period of Eth-Trunk interfaces in static LACP mode to receive packets is 90 seconds.

If slow is configured, the peer sends an LACP packet every 30 seconds. In this case, the device responds to the LACP packets from the peer slowly but consumes fewer system resources compared with the situation that fast is configured.

The timeout periods set for the two ends can be different. For facilitating maintenance, setting the same timeout period for both ends is recommended.

-

Views

Eth-Trunk interface view, Layer-2 Eth-Trunk interface view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

If two devices are connected through three GE interfaces on each end, the least active-linknumber link-number command is used to set the minimum number of active member links to 2.

When an Eth-Trunk member interface on the peer end goes Down, the Eth-Trunk interface on the local end cannot detect the fault immediately. As a result, the local Eth-Trunk interface still has three member interfaces in the Up state. Data is balanced among the three member interfaces, and therefore certain data is lost. To ensure data transmission, you can run the lacp timeout command to configure the timeout period for the Eth-Trunk interface to receive packets. If a local member interface does not receive any LACP packet within the configured timeout period, it turns unselect immediately and no longer forwards data.

As the number of Up member interfaces does not fall below the configured minimum number of Up member interfaces, the Eth-Trunk interface is still Up. In this case, data is balanced between the two member interfaces in the Up state, therefore ensuring the reliability of data transmission.

Prerequisites

Configuration Impact

After the timeout period is successfully configured, the interval for the peer to send LACP packets is set. Details are described as follows:

  • If the parameter fast is configured, the peer sends an LACP packet every 1 second.
  • If the parameter slow is configured, the peer sends an LACP packet every 30 seconds.

The timeout period configured on an Eth-Trunk interface takes effect on all its member interfaces.

Example

# Set the timeout period for Eth-Trunk 1 to receive LACPDUs to 3s.
<sysname> system-view
[sysname] interface eth-trunk 1
[sysname-Eth-Trunk1] lacp timeout fast
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >