UDP tracert operation configuration example

Network requirements

As shown in Figure 17, configure a UDP tracert operation to determine the routing path from Device A to Device B.

Figure 17: Network diagram

Configuration procedure

  1. Assign IP addresses to interfaces, as shown in Figure 17. (Details not shown.)

  2. Configure static routes or a routing protocol to make sure the devices can reach each other. (Details not shown.)

  3. Execute the ip ttl-expires enable command on the intermediate devices and execute the ip unreachables enable command on Device B.

  4. Configure Device A:

    # Create a UDP tracert operation.

    <DeviceA> system-view
    [DeviceA] nqa entry admin test1
    [DeviceA-nqa-admin-test1] type udp-tracert
    

    # Specify 10.2.2.2 as the destination IP address.

    [DeviceA-nqa-admin-test1-udp-tracert] destination ip 10.2.2.2
    

    # Set the destination port number to 33434.

    [DeviceA-nqa-admin-test1-udp-tracert] destination port 33434
    

    # Configure Device A to perform three probes to each hop.

    [DeviceA-nqa-admin-test1-udp-tracert] probe count 3
    

    # Set the probe timeout time to 500 milliseconds.

    [DeviceA-nqa-admin-test1-udp-tracert] probe timeout 500
    

    # Configure the UDP tracert operation to repeat every 5000 milliseconds.

    [DeviceA-nqa-admin-test1-udp-tracert] frequency 5000
    

    # Specify Ten-GigabitEthernet 1/0/1 as the output interface for UDP packets.

    [DeviceA-nqa-admin-test1-udp-tracert] out interface ten-gigabitethernet 1/0/1
    

    # Enable the no-fragmentation feature.

    [DeviceA-nqa-admin-test1-udp-tracert] no-fragment enable
    

    # Set the maximum number of consecutive probe failures to 6.

    [DeviceA-nqa-admin-test1-udp-tracert] max-failure 6
    

    # Set the TTL value to 1 for UDP packets in the start round of the UDP tracert operation.

    [DeviceA-nqa-admin-test1-udp-tracert] init-ttl 1
    

    # Start the UDP tracert operation.

    [DeviceA] nqa schedule admin test1 start-time now lifetime forever
    

    # After the UDP tracert operation runs for a period of time, stop the operation.

    [DeviceA] undo nqa schedule admin test1
    

    # Display the most recent result of the UDP tracert operation.

    [DeviceA] display nqa result admin test1
    NQA entry (admin admin, tag test1) test results:
        Send operation times: 6              Receive response times: 6
        Min/Max/Average round trip time: 1/1/1
        Square-Sum of round trip time: 1
        Last succeeded probe time: 2013-09-09 14:46:06.2
      Extended results:
        Packet loss in test: 0%
        Failures due to timeout: 0
        Failures due to internal error: 0
    Failures due to other errors: 0
      UDP-tracert results:
        TTL    Hop IP             Time
        1      3.1.1.1            2013-09-09 14:46:03.2
        2      10.2.2.2           2013-09-09 14:46:06.2
    

    # Display the history records of the UDP tracert operation.

    [DeviceA] display nqa history admin test1
    NQA entry (admin admin, tag test1) history records:
    Index      TTL  Response  Hop IP           Status          Time
    1          2    2         10.2.2.2         Succeeded       2013-09-09 14:46:06.2
    1          2    1         10.2.2.2         Succeeded       2013-09-09 14:46:05.2
    1          2    2         10.2.2.2         Succeeded       2013-09-09 14:46:04.2
    1          1    1         3.1.1.1          Succeeded       2013-09-09 14:46:03.2
    1          1    2         3.1.1.1          Succeeded       2013-09-09 14:46:02.2
    1          1    1         3.1.1.1          Succeeded       2013-09-09 14:46:01.2