This section describes how to configure a reflector, which loops traffic to an initiator. Parameters configured on the reflector vary according to a specific scenario.
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 reflector must be specified before a test is started.
A reflector can loop traffic based on either an interface or a flow.
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 VPN ID is specified for Ethernet packets in the NQA test flow view.
Double VPN IDs are specified for Ethernet packets in the NQA test flow view.
A destination 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.
Return to the system view.
The reflector is specified.
The test-flow flow-id & <1-16> command configures the reflector to reflect based on a specified flow. If the flow ID is not specified, the reflector performs interface-based reflection. The agetime age-time parameter is optional, and the default value is 14400s.
The configuration is committed.