The test-session bind interface command binds an interface to a TWAMP Light test session.
The undo test-session bind interface command unbinds an interface from a TWAMP Light test session.
By default, no interface is bound to a TWAMP Light test session.
Parameter | Description | Value |
---|---|---|
session-id |
Specifies the ID of a test session. |
The value is an integer ranging from 1 to 2048. |
interface-type |
Specifies the type of an interface. |
The value is a string of 1 to 63 case-sensitive characters, spaces not supported. |
interface-number |
Specifies the number of an interface. |
The value is a string of 1 to 63 case-sensitive characters, spaces not supported. |
interface-name |
Specifies the name of an interface. |
The value is a string of 1 to 63 case-sensitive characters, spaces not supported. |
Usage Scenario
You can run this command to advertise TWAMP Light statistics to an interface. After this command is configured, when TWAMP Light measures statistics, it advertises the statistics (including the remote IP address, maximum delay, minimum delay, average delay, and packet loss rate) to the bound interface. Other functional modules can use the statistics to implement more service applications. For example, an IGP can obtain the statistics from the interface and report them to the controller for path computation based on the delay or packet loss rate. In this scenario, the interface to be bound is the outbound interface of the route.
Prerequisites
A TWAMP Light test session has been created.
Precautions
The TWAMP Light test session can be of the IPv4 or IPv6 type.
TWAMP Light advertises test statistics to the bound interface only when the test start-continual or test start twamp-regular command is configured. A TWAMP Light test session can be bound to only one interface, and an interface is bound to a maximum of one IPv4 test session and one IPv6 test session.<HUAWEI> system-view [~HUAWEI] nqa twamp-light [*HUAWEI-twamp-light] client [*HUAWEI-twamp-light-client] test-session 1 sender-ip 1.1.1.1 reflector-ip 2.2.2.2 sender-port 2000 reflector-port 2001 [*HUAWEI-twamp-light-client] test-session 1 bind interface GigabitEthernet0/1/0