nqa reflector

Function

The nqa reflector command configures the reflector of a generalflow or Ethernet service activation test instance.

The undo nqa reflector command deletes the reflector.

By default, no reflector is configured.

Format

nqa reflector reflector-id interface { interface-name | interface-type interface-number } [ [ [ test-flow { testFlowId } &<1-16> ] | [ [ ipv4 ip-address | simulate-ip ipv4 ip-address2 | mac mac-address ] [ pe-vid pe-vid ce-vid ce-vid | vlan vlan-id ] [ source-port source-port ] [ destination-port destination-port ] ] ] | exclusive ] [ exchange-port ] [ agetime agetime | endtime { endtime | enddate endtime } ]

nqa reflector reflector-id interface { interface-name | interface-type interface-number } [ ipv4 ip-address | simulate-ip ipv4 ip-address2 | mac mac-address ] [ pe-vid pe-vid ce-vid ce-vid | vlan vlan-id ] [ source-port source-port ] [ destination-port destination-port ] [ exchange-port ] [ agetime agetime | endtime { endtime | enddate endtime } ] [ share-mode ]

undo nqa reflector reflector-id

undo nqa reflector all

Parameters

Parameter Description Value
reflector-id

Specifies the ID of a reflector.

The ID must be unique on a local node.

The value is an integer ranging from 1 to 65535.

interface interface-name

Specifies the name of a reflector interface. The interface is a specified User-to-Network Interface (UNI).

-

interface-type

Specifies the type of a reflector interface. The interface is a specified User-to-Network Interface (UNI).

-

interface-number

Specifies the number of a reflector interface. The interface is a specified User-to-Network Interface (UNI).

-

test-flow testFlowId

Specifies the ID of a test flow bound to a reflector.

This parameter is configured only in an NQA Ethernet service activation test instance.

The value is an integer ranging from 1 to 65535.

ipv4 ip-address

Specifies the simulated IP address used by an IP gateway network.

The simulated IP address is set to a local CE address or an IP address on the same network segment with the local CE. The simulated IP address is used to send gratuitous ARP packets.

The value is in dotted decimal notation.

ipv4 ip-address2

Specifies the simulated IP address used by an IP gateway network.

The simulated IP address is set to the local CE address or an IP address on the same network segment with the local CE.

The value is in dotted decimal notation.

simulate-ip

Specifies the simulated IP address used by an IP gateway network.

-

mac mac-address

Specifies the MAC address of packets in a Layer 2 scenario.

The value is equal to the destination MAC address configured on the initiator. The MAC address of the UNI of the reflector can be used.

The value is a 12-digit hexadecimal number, in the format of H-H-H. Each H is 4 digits. If an H contains fewer than 4 digits, the left-most digits are padded with zeros. For example, e0 is displayed as 00e0. The MAC address cannot be set to FFFF-FFFF-FFFF or a multicast address starting with 01.

pe-vid pe-vid

Specifies the outer VLAN ID.

The value is an integer ranging from 1 to 4094.

ce-vid ce-vid

Specifies the inner VLAN ID.

The value is an integer ranging from 1 to 4094.

vlan vlan-id

Specifies the VLAN ID of packets in a Layer 2 scenario.

The configuration on the reflector must be the same as that on the initiator.

The value is an integer ranging from 1 to 4094.

source-port source-port

Specifies the number of a source port of a reflector.

The source port number on the reflector must be the same as the destination port number on the initiator. This parameter is configured when a Huawei device is connected to a non-Huawei device.

The value is an integer ranging from 0 to 65535. The default value is 49184.

destination-port destination-port

Specifies the number of a destination port of a reflector.

The destination port number on the reflector must be the same as the source port number on the initiator. This parameter is configured when a Huawei device is connected to a non-Huawei device.

The value is an integer ranging from 0 to 65535. The default value is 7.

exclusive

Configures the reflector's port to work in exclusive mode.

-

exchange-port

Enables the reflector to exchange the UDP source and destination power numbers in filtered packets before looping the packets back.

If an NQA Ethernet service activation test instance is performed, this parameter is necessary. If a generalflow test instance is performed, this parameter is optional.

-

agetime agetime

Specifies the aging time of the reflector.

After the aging time elapses, the reflector is automatically deleted.

The value can be 0 or an integer ranging from 10 to 173400, in seconds. The default value is 14400. The value 0 indicates that the reflector never ages.

endtime

Indicates the end time on the reflector.

-

endtime

Specifies the end time on the reflector.

The value is in the format of HH:MM:SS. The value of HH ranges from 0 to 23 and the values of MM and SS range from 0 to 59.

enddate

Specifies the end date on the reflector.

The value is in the format of YYYY/MM/DD. The value of YYYY ranges from 2000 to 2099, the value of MM ranges from 1 to 12, and the value of DD ranges from 1 to 31.

share-mode

Specifies the type of traffic filtered by the reflector. If you configure the share-mode keyword, test flows and non-test flows are reflected.

-

all

Delete all NQA reflectors.

-

Views

System view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
sla write

Usage Guidelines

Usage Scenario

Devices performing an NQA test play two roles: initiator and reflector. An initiator sends simulated service traffic to a reflector, and the reflector reflects the service traffic. The reflector can reflect all packets on a reflector port or reflect packets matching filter conditions, such as a destination MAC address or a port number. If exclusive is specified for a port, the reflector will reflect all packets received by the port.

Note the following issues for an Ethernet service activation test:

  • If no MAC or IP address is specified, a reflector configured on a UNI loops all packets that the UNI receives without filtering packets.
  • If the test-flow parameter is configured, the reflector filters packets and loops only packet matching the configured test flow packet characters.
  • If the exchange-port parameter is configured, the reflector exchanges the UDP source and destination port numbers in packets and then loops the packets back.

Precautions

The following parameter combinations for a reflector configured on a device are unique and cannot be configured for another reflector or generalflow test or Ethernet service activation test instance on the same device:

  • interface name + PE VID + CE VID
  • interface name + VLAN ID

    You cannot change this configuration of a running test instance.

Example

# Configure a reflector and set the aging time to 180s.
<HUAWEI> system-view
[~HUAWEI] nqa reflector 1 interface GigabitEthernet 0/1/1 ipv4 10.1.1.1 agetime 180
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >