test-session bind interface

Function

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.

Format

test-session session-id bind interface { interface-type interface-number | interface-name }

undo test-session session-id bind [ interface { interface-type interface-number | interface-name } ]

Parameters

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.

Views

TWAMP-light-client view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
twampclient write

Usage Guidelines

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.

Example

# Bind a TWAMP Light test session to Gigabit Ethernet 0/1/0.
<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
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >