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.
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:
Configure a test flow.
Configure a test instance.
The system view is displayed.
A test flow is configured, and the test flow view is displayed.
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.
A single VLAN ID is specified for Ethernet packets in the NQA test flow view.
Double VLAN IDs are specified for Ethernet packets in the NQA test flow view.
A destination UDP port number or range is specified.
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.
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.
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.
The simple CIR test is enabled.
Run traffic-policing test enable
A traffic policing test is enabled.
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.
Run description description-string
A description is configured for the test flow.
The configuration is committed.