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

Devices performing an Ethernet service activation test play two roles: initiator and reflector. An initiator sends simulated service traffic to a reflector, and the reflector reflects the service traffic.

The process of configuring the initiator is as follows:

  1. Configure a test flow.

  2. Configure a test instance.

Procedure

  1. Run system-view

    The system view is displayed.

  2. Run nqa test-flow flow-id

    A test flow is configured, and the test flow view is displayed.

  3. Specify service flow characteristics.

    1. Run:
      • traffic-type mac { destination destination-mac [ end-destination-mac ] | source source-mac [ end-source-mac ] }
      • traffic-type ipv4 { destination destination-ip [ end-destination-ip ] | source source-ip [ end-source-ip ] }

        A traffic type is configured, and the MAC or IP address of test packets is specified. An address range can be specified here.

      Services may be forwarded based on the MAC or IP address or using MPLS based on the service type, such as Ethernet, IP, L2VPN, L2VPN accessing L3VPN, and L3VPN. When testing a service network, you must determine the specific service forwarding mode before configuring a traffic type for the service flow to be tested.

      • For Ethernet Layer 2 switching and L2VPN services, a MAC address must be specified, and an IP address is optional.
      • For IP routing and L3VPN services, an IP address and a MAC address must be specified. If no IP address or MAC address is specified, the reflector will reflect all the traffic, which affects other service functions.
      • For L2VPN accessing L3VPN, both MAC and IP addresses must be specified.
    2. Configure the following parameters as needed:
      • Run vlan vlan-id [ end-vlan-vid ]

        A single VLAN ID is specified for Ethernet packets in the NQA test flow view.

      • Run pe-vid pe-vid ce-vid ce-vid [ ce-vid-end ]

        Double VLAN IDs are specified for Ethernet packets in the NQA test flow view.

      • Run udp destination-port destination-port [ end-destination-port ]

        A destination UDP port number or range is specified.

      • Run udp source-port source-port [ end-source-port ]

        A source UDP port number or range is specified.

      • For the same test flow, a range can be specified only in one of the traffic-type, vlan, pe-vid, udp destination-port, and udp source-port commands. In addition, the difference between the start and end values cannot be more than 127, and the end value must be greater than the start value.

      • In the traffic-type command, the start MAC or IP address has only one different octet from the end MAC or IP address. For example, the start IP address is set to 1.1.1.1, and the end IP address can only be set to an IP address in the network segment 1.1.1.0.

  4. Run bandwidth cir cir-value [ eir eir-value ]

    A bandwidth profile, including the CIR, is specified for the NQA test flow.

    The default EIR is 0 kbit/s. If the eireir-value parameter is not configured, the EIR is not tested.

  5. Run sac flr flr-value ftd ftd-value fdv fdv-value

    The frame loss ratio (FLR) is specified, expressed in 1/100000, the frame transfer delay (FTD) is specified, expressed in us, and the frame delay variation (FDV) is specified, expressed in us.

  6. Enable the simple CIR test, enable traffic policing test, configure the color mode, and configure a test flow description as needed:

    1. Run cir simple-test enable

      The simple CIR test is enabled.

    2. Run traffic-policing test enable

      A traffic policing test is enabled.

    3. Run color-mode { 8021p green begin-8021p-value [ end-8021p-value ] yellow begin-8021p-value [ end-8021p-value ] | dscp green begin-dscp-value [ end-dscp-value ] yellow begin-dscp-value [ end-dscp-value ] } *

      The color mode is enabled, and the mapping between packet priorities and colors is configured.

    4. Run description description-string

      A description is configured for the test flow.

  7. Configure an Ethernet service activation test.
    1. Run nqa test-instance admin-name test-name

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

    2. Run test-type ethernet-service

      The test type is set to the Ethernet service activation test.

    3. Run test-flow flow-id & <1-16>

      A test flow is referenced. Multiple test flows can be specified.

    4. Run forwarding-simulation inbound-interface { ifName | ifType ifNum }

      A simulated inbound interface is configured.

    5. (Optional) Run packet-sizepacket-size & <1-10>

      Different packet sizes are configured.

    6. (Optional) Run duration { configuration-test configuration-test-time | performance-test performance-test-time }

      The periods of the configuration and performance tests are set.

    7. Run start now

      The test instance is started.

  8. Run commit

    The configuration is committed.

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