Configuring an Initiator

This section describes how to configure an initiator that sends simulated service traffic. You can set initiator parameters based on usage scenarios and test counter types.

Context

On the network shown in Figure 1 of "Configuring an RFC 2544 Generalflow Test Instance", the following two roles are involved in a generalflow test:

  • Initiator: sends simulated service traffic to a reflector.
  • Reflector: loops the service traffic to the initiator.

The process of configuring the initiator is as follows:

  1. Create a generalflow test instance.

  2. Set basic simulated service parameters.

  3. Set key test parameters based on counters.

  4. Set generalflow test parameters.

  5. Start the generalflow test instance.

Procedure

  1. Create a generalflow test instance.
    1. Run system-view

      The system view is displayed.

    2. Run nqa test-instance admin-name test-name

      An NQA test instance is created, and the test instance view is displayed.

    3. Run test-type generalflow

      The test type is set to generalflow.

    4. Run measure { throughput | loss | delay }

      A test counter is specified.

  2. Set basic simulated service parameters.

    The basic simulated service parameters on the initiator must be the same as those configured on the reflector.

    Usage Scenario

    Configuration Procedure

    Configuration Note

    Layer 2

    1. Run the destination-address mac macAddress command to specify the destination MAC address of test packets.

    2. (Optional) Run the source-address mac mac-address command to specify the source MAC address of test packets.

    3. Run the forwarding-simulation inbound-interface interface-type interface-number [ share-mode ]command to specify the inbound interface of simulated service packets.

      NOTE:

      If share-mode is set, both test flows and non-test flows can pass through, otherwise, only test flows can pass through.

    4. Run the vlan vlan-id or pe-vid pe-vid ce-vid ce-vid command to set VLAN IDs of simulated service packets.

    The initiator shown in Figure 1 of "Configuring an RFC 2544 Generalflow Test Instance" has the following parameters:

    • Destination MAC address: the MAC address of the reflector's UNI-B or a MAC address that has never been used

    • Source MAC address: the MAC address of the initiator's UNI-A or a MAC address that has never been used
    • Simulated inbound interface: UNI-A

    • VLAN ID: VLAN IDs configured on interfaces

    NOTE:

    The display nqa reflector command can be used on the reflector to display the configured destination MAC address.

    Layer 3

    1. Run the destination-address ipv4 destAddress command to specify the destination IP address of test packets.

    2. Run the source-address ipv4 srcAddress command to specify the source IP address of test packets.

    3. Run the forwarding-simulation inbound-interface interface-type interface-number command to specify the inbound interface of simulated service packets.

    4. (Optional) Run the vlan vlan-id or pe-vid pe-vid ce-vid ce-vid command to set VLAN IDs of simulated service packets.

    NOTE:
    • If the initiator does not have an ARP entry corresponding to the source IP address in test packets, run the arp static ip-address mac-address command to configure a static ARP entry for the source IP address.
    • In a Layer 3 scenario, the outbound interface must be specified when static ARP is configured on the initiator.

    The initiator shown in Figure 1 of "Configuring an RFC 2544 Generalflow Test Instance" has the following parameters:

    • Destination IP address: an IP address on the same network segment as the reflector's UNI-B

    • Source IP address: an IP address on the same network segment as UNI-A's IP address
    • Simulated inbound interface: UNI-A

    IP gateway

    1. Run the destination-address ipv4 destAddress command to specify the destination IP address of test packets.

    2. Run the source-address ipv4 srcAddress command to specify the source IP address of test packets.

    3. Run the source-interface ifType ifNum command to specify the outbound interface of test packets.

    4. (Optional) Run the vlan vlan-id or pe-vid pe-vid ce-vid ce-vid command to set VLAN IDs of simulated service packets.

    The initiator shown in Figure 1 of "Configuring an RFC 2544 Generalflow Test Instance" has the following parameters:

    • Destination IP address: the CE's IP address or an IP address on the same network segment as the CE.

    • Source IP address: an IP address on the same network segment as UNI-A's IP address

    L2VPN accessing L3VPN

    1. Run the destination-address ipv4 destAddress mac macAddress command to specify the destination IP and MAC addresses of test packets.

    2. Run the source-address ipv4 srcAddress command to specify the source IP address of test packets.

    3. Run the forwarding-simulation inbound-interface interface-type interface-number command to specify the inbound interface of simulated service packets.

    The initiator shown in Figure 1 of "Configuring an RFC 2544 Generalflow Test Instance" has the following parameters:

    • Destination IP address: the CE's IP address or an IP address on the same network segment as the CE.

    • Destination MAC address: MAC address of the Layer 3 gateway interface.

    • Source IP address: an IP address on the same network segment as UNI-A's IP address
    • Simulated inbound interface: UNI-A

  3. Set key test parameters based on counters.

    Counter

    Configuration Procedure

    Throughput

    1. Run the rate rateL rateH command to set the upper and lower rate thresholds.
    2. Run the interval seconds interval command to set the interval at which test packets are transmitted at a specific rate.

    3. Run the precision precision-value command to set the throughput precision.

    4. Run the fail-ratio fail-ratio-value command to set the packet loss rate during a throughput test. The value is expressed in 1/10000. If the actual packet loss rate is less than 1/10000, the test is successful and continues.

    Latency

    1. Run the rate rateL command to set the rate at which test packets are sent.
    2. Run the interval seconds interval command to set the interval at which test packets are sent.

    Packet loss rate

    1. Run the rate rateL command to set the rate at which test packets are sent.

  4. Configure common parameters for an NQA test instance.
    1. Run datasize datasizeValue & <1-7>

      The size of the data field in an NQA test packet is set.

      In Layer 2 and Layer 3 scenarios, the data size of a generalflow test packet cannot be greater than the maximum transmission unit (MTU) of the simulated inbound interface.

    2. Run duration duration

      The test instance duration is set.

      The duration value must be greater than twice the interval value in throughput and delay tests.

    3. Run records result number

      The maximum number of results that can be recorded is set.

    4. Run priority 8021p priority-value

      The 802.1p priority is set for generalflow test packets in an Ethernet scenario.

    5. Run tos tos-value

      The IP packet priority is set.

    6. (Optional) Run exchange-port enable

      A UDP source port number is enabled to be switched with a UDP destination port number.

  5. Run start now

    The NQA test instance is started.

    Running the start now command interrupts user services temporarily.

  6. Run commit

    The configuration is committed.

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >