The test-session command creates a TWAMP Light test session on the Session-Reflector.
The undo test-session command deletes a TWAMP Light test session on the Session-Reflector.
By default, no TWAMP Light test session is created on the Session-Reflector.
test-session session-id { local-ip local-ip-address remote-ip remote-ip-address | local-ipv6 local-ipv6-address remote-ipv6 remote-ipv6-address } local-port local-port remote-port remote-port [ vpn-instance vpn-instance-name ] [ link-bundle-interface { link-bundle-interface-type link-bundle-interface-number | link-bundle-interface-name } ] [ anti-loop-on ] [ description description ]
test-session session-id { local-ip local-ip-address remote-ip remote-ip-address | local-ipv6 local-ipv6-address remote-ipv6 remote-ipv6-address } local-port local-port remote-port remote-port interface { interface-type interface-number | interface-name } [ anti-loop-on ] [ description description ]
undo test-session session-id [ { local-ip local-ip-address remote-ip remote-ip-address | local-ipv6 local-ipv6-address remote-ipv6 remote-ipv6-address } local-port local-port remote-port remote-port [ vpn-instance vpn-instance-name ] [ link-bundle-interface { link-bundle-interface-type link-bundle-interface-number | link-bundle-interface-name } ] [ anti-loop-on ] [ description description ] ]
undo test-session session-id { local-ip local-ip-address remote-ip remote-ip-address | local-ipv6 local-ipv6-address remote-ipv6 remote-ipv6-address } local-port local-port remote-port remote-port interface { interface-type interface-number | interface-name } [ anti-loop-on ] [ description description ]
Parameter | Description | Value |
---|---|---|
session-id |
Specifies the ID of a test session. |
The value is an integer ranging from 1 to 2048. |
local-ip local-ip-address |
Indicates the IP address of a Session-Reflector. |
This value is in dotted decimal notation. |
remote-ip remote-ip-address |
Indicates the IP address of a Session-Sender. |
This value is in dotted decimal notation. |
local-ipv6 local-ipv6-address |
Indicates the IPv6 address of a Session-Reflector. |
The value is a 32-digit hexadecimal number, in the format of X:X:X:X:X:X:X:X. |
remote-ipv6 remote-ipv6-address |
Indicates the IPv6 address of a Session-Sender. |
The value is a 32-digit hexadecimal number, in the format of X:X:X:X:X:X:X:X. |
local-port local-port |
Indicates the UDP port number of a Session-Reflector. |
The value can be 862, 863 or is an integer ranging from 1025 to 65535. |
remote-port remote-port |
Indicates the UDP port number of a Session-Sender. |
The value can be 862, 863 or is an integer ranging from 1025 to 65535. |
interface interface-name |
Specifies the name of an interface. |
- |
interface-type |
Specifies the type of an interface. |
- |
interface-number |
Specifies the number of an interface. |
- |
description description |
Indicates the description of a test session. You can add a description for a test session to facilitate information query and session maintenance. |
The value is a string of 3 to 32 characters, spaces not supported. The character string can contain spaces if it is enclosed with double quotation marks ("). |
vpn-instance vpn-instance-name |
Indicates the name of a VPN instance. |
The value is a string of 1 to 31 case-sensitive characters, spaces not supported. In addition, the VPN instance name must not be _public_. When double quotation marks are used around the string, spaces are allowed in the string. |
link-bundle-interface link-bundle-interface-name |
Specifies the name of a link-bundle interface. |
- |
link-bundle-interface-type |
Specifies the type of a link-bundle interface. |
- |
link-bundle-interface-number |
Specifies the number of a link-bundle interface. |
- |
anti-loop-on |
Enable a reflector from breaking a loop. |
- |
Usage Scenario
Before implementing TWAMP Light, create a TWAMP Light test session and configure the 5-tuple parameters, including the IP address and UDP port number of a Session-Sender, IP address and UDP port number of a Session-Reflector, and VPN instance name, for the test session. After a test session is created, you can run specific commands to start a TWAMP Light test.
Precautions
<HUAWEI> system-view [~HUAWEI] nqa twamp-light [*HUAWEI-twamp-light] responder [*HUAWEI-twamp-light-responder] test-session 1 local-ipv6 2001:db8:1::1 remote-ipv6 2001:db8:2::2 local-port 1235 remote-port 1234
<HUAWEI> system-view [~HUAWEI] ip vpn-instance vpn1 [*HUAWEI-vpn-instance-vpn1] ipv4-family [*HUAWEI-vpn-instance-vpn1-af-ipv4] quit [*HUAWEI-vpn-instance-vpn1] route-distinguisher 1:1 [*HUAWEI-vpn-instance-vpn1-af-ipv4] quit [*HUAWEI-vpn-instance-vpn1] quit [*HUAWEI] nqa twamp-light [*HUAWEI-twamp-light] responder [*HUAWEI-twamp-light-responder] test-session 1 local-ip 10.1.1.1 remote-ip 10.1.1.2 local-port 3000 remote-port 3000 vpn-instance vpn1