R3204P16-HP Load Balancing Module High Availability Configuration Guide-6PW101
82
UDP echo test configuration example
Network requirements
As shown in Figure 42, configure NQA UDP echo tests to test the round-trip time between LB module and
Device. The destination port number is 8000.
Figure 42 Network diagram for the UDP echo tests
Configuration procedure
NOTE:
Before you make the configuration, make sure the devices can reach each other.
1. Configure Device
# Enable the NQA server and configure a listening service to listen to IP address 10.2.2.2 and UDP port
8000.
<Device> system-view
[Device] nqa server enable
[Device] nqa server udp-echo 10.2.2.2 8000
2. Configure LB
# Create a UDP echo test group.
<LB> system-view
[LB] nqa entry admin test
[LB-nqa-admin-test] type udp-echo
# Configure UDP packets to use 10.2.2.2 as the destination IP address and port 8000 as the destination
port.
[LB-nqa-admin-test-udp-echo] destination ip 10.2.2.2
[LB-nqa-admin-test-udp-echo] destination port 8000
# Enable the saving of history records.
[LB-nqa-admin-test-udp-echo] history-record enable
[LB-nqa-admin-test-udp-echo] quit
# Start UDP echo tests.
[LB] nqa schedule admin test start-time now lifetime forever
# Stop UDP echo tests after a period of time.
[LB] undo nqa schedule admin test
# Display the results of the last UDP echo test.
[LB] display nqa result admin test
NQA entry (admin admin, tag test) test results:
Destination IP address: 10.2.2.2
Send operation times: 1 Receive response times: 1
Min/Max/Average round trip time: 25/25/25