Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

header-navigation
keyboard_arrow_up
close
keyboard_arrow_left
list Table of Contents
file_download PDF
{ "lLangCode": "en", "lName": "English", "lCountryCode": "us", "transcode": "en_US" }
English
keyboard_arrow_right

Configuring Ethernet Loopback for RFC 2544-Based Benchmarking Tests

date_range 13-Jan-21

Ethernet loopback is a feature that you can use for verifying the connectivity and identifying or isolating faults in a network.

On ACX Series routers, Ethernet loopback is supported on the egress user-to-network interfaces (UNIs) direction for a bridge family configuration. In ACX Series routers, Ethernet loopback is configured on the logical interfaces. The Ethernet loopback feature can be used in performance measurements where packets are looped back to the measuring device for testing various services.

Figure 1: Testing End-to-End Service in Ethernet Loopback ModeTesting End-to-End Service in Ethernet Loopback Mode

Figure 1 shows a scenario where UNI-B interface is configured in Ethernet loopback mode in the egress direction. The packets received on the network-to-network interface (NNI) of the ACX Series router are forwarded to the UNI-B interface and looped back at the UNI-B interface after the source and destination MAC addresses are swapped. This is a use case for testing an end-to-end service.

You can use the following optional parameters to identify an egress traffic flow for Ethernet loopback:

  • Source MAC address

  • Destination MAC address

  • Source IPv4 address

  • Destination IPv4 address

  • VLAN

  • VLAN .1p priority

  • EtherType

  • Test iterator duration

While performing RFC2544 benchmarking tests, configure Ethernet loopback as the test mode on a logical interface by including the Ethernet-loopback CLI statement at the [edit services rpm rfc2544-benchmarking] hierarchy level.

If you configure Ethernet loopback on logical interfaces without configuring any of the optional parameters, then any unknown unicast traffic in the same bridge domain also gets looped back and does not get forwarded to other logical interfaces while the test is being performed.

When an RFC2544 benchmarking test is being performed, if the test-iterator-duration parameter is not configured, then Ethernet loopback continues until the test is completed or terminated.

Note:

When performing RFC2544 benchmarking tests, you can configure the test in initiator, reflector, or loopback mode. You cannot perform the RFC2544 benchmarking tests in a combination of these test modes.

The following is a sample Ethernet loopback configuration:

content_copy zoom_out_map
[edit services rpm rfc2544-benchmarking] 
    tests {
        test-name test1{
            source-mac-address 00:bb:cc:dd:ee:ff;
            destination-mac-address 00:11:22:33:44:55;
            vlan-id 100;
            vlan-priority 2;
            vlan-cfi 1;
            ip-swap;
            udp-tcp-port-swap;
            forwarding-class network-control;
            packet-loss-priority medium-high;
            mode ethernet-loopback;
            family bridge;
            reflect-etype 2048;
            direction egress;
            source-udp-port 2020;
            destination-udp-port 3030;
            test-iterator-duration 50;
            test-interface ge-0/1/6.0;
        }
    }
[edit interfaces] 
    ge-0/1/4 {
        flexible-vlan-tagging;
    encapsulation flexible-ethernet-services;
        unit 0 {
            encapsulation vlan-bridge;
            vlan-id 1000;
            family bridge {
                filter {
                    input ft1;
                }
            }
        }
    ge-0/1/6 {
        flexible-vlan-tagging;
        encapsulation flexible-ethernet-services;
        unit 0 {
            encapsulation vlan-bridge;
            vlan-id 100;
            input-vlan-map {
                push;
                vlan-id 1000;
            }
            output-vlan-map pop;
        }
    }
[edit routing-options]
    ppm {
        traceoptions {
            file ppmd size 100m;
            flag packet;
            flag event;
            flag distribute;
            flag pipe;
            flag all;
        }
    }
[edit firewall]
    family bridge {
        filter ft1 {
            term t1 {
                from {
                    user-vlan-id 100;
                }
                then count loopback;
            }
        }
    }
[edit bridge-domains]
    bd1 {
        interface ge-0/1/4.0;
        interface ge-0/1/6.0;
    }
footer-navigation