Beruflich Dokumente
Kultur Dokumente
i
NQA Configuration
NQA Overview
Introduction to NQA
Network Quality Analyzer (NQA) analyzes network performance, services and service quality through
sending test packets, and provides you with network performance and service quality parameters such
as delay jitter, TCP connection delay, FTP connection delay and file transfer rate.
With the NQA test results, you can:
1. Know network performance in time and then take corresponding measures.
2. Diagnose and locate network faults.
Features of NQA
Supporting multiple test types
Ping can use only the Internet Control Message Protocol (ICMP) to test the reachability of the destination
host and the round-trip time of a packet to the destination. As an enhancement to the Ping tool, NQA
provides multiple test types and more functions.
At present, NQA supports 11 test types: ICMP echo, DHCP, DNS, FTP, HTTP, UDP jitter, SNMP, TCP, UDP
echo, voice and DLSw.
In an NQA test, the client sends different types of test packets to the peer to detect the availability and
the response time of the peer, helping you know protocol availability and network performance based
on the test results.
1
Supporting the collaboration function
Collaboration is implemented by establishing reaction entries to monitor the detection results of the
current test group. If the number of consecutive probe failures reaches a certain limit, NQA’s
collaboration with other modules is triggered. The implementation of collaboration is shown in Figure 1.
Figure 1 Implementation of collaboration
The collaboration involves three parts: the application modules, the track module, and the detection
modules.
• The detection modules monitor the link status, network performance and so on, and inform the track
module of the detection result.
• Upon receiving the detection result, the track module changes the status of the track entry
accordingly and informs the application modules. The track module works between the application
modules and the detection modules and is mainly used to obscure the difference of various
detection modules to provide a unified interface for application modules.
• The application modules then deal with the changes accordingly based on the status of the track
entry, and thus collaboration is implemented.
Take static routing as an example. You have configured a static route with the next hop 192.168.0.88. If
192.168.0.88 is reachable, the static route is valid; if 192.168.0.88 is unreachable, the static route is
invalid. With the collaboration between NQA, track module and application modules, real time
monitoring of reachability of the static route can be implemented:
1. Monitor reachability of the destination 192.168.0.88 through NQA.
2. If 192.168.0.88 is detected to be unreachable, NQA will inform the static routing module through
track module.
3. The static routing module then can know that the static route is invalid.
NOTE:
For more information about the track module, see Track Configuration in the System Volume.
2
Table 1 describes the monitored elements and the NQA test types in which the elements can be
monitored.
Table 1 Monitored elements and NQA test types
Count of probe failures Tests excluding UDP jitter test and voice test
One-way delay (source-to-destination and destination-to-source) UDP jitter test and voice test
2. Threshold types
The following threshold types are supported:
• average: Monitors the average value of monitored data in a test. If the average value in a test
exceeds the upper threshold or goes below the lower threshold, a threshold violation occurs. For
example, you can monitor the average probe duration in a test.
• accumulate: Monitors total number of times the monitored data violates the threshold in a test. If
the total number of times reaches or exceeds a specified value, a threshold violation occurs.
• consecutive: Monitors the number of consecutive times the monitored data violates the threshold
since the test group starts. If the monitored data violates the threshold consecutively for a specified
number of times, a threshold violation occurs.
TIP:
The accounting for the average or accumulate threshold type is performed per test, but that for the
consecutive type is performed since the test group is started.
3. Triggered actions
The following actions may be triggered:
• none: NQA only records such events for terminal display; it does not send trap information to the
network management server.
• trap-only: NQA records such events and sends trap messages to the network management
server.
NOTE:
NQA DNS tests do not support the action of sending trap messages. In other words, the action to be
triggered in DNS tests can only be the default one, none.
4. Reaction entry
3
In a reaction entry, a monitored element, a threshold type, and the action to be triggered are configured
to implement threshold monitoring.
The state of a reaction entry can be invalid, over-threshold, or below-threshold.
• Before an NQA test group starts, the reaction entry is in the state of invalid.
• After each test or probe, threshold violations are counted according to the threshold type and range
configured in the entry. If the threshold is violated consecutively or accumulatively for a specified
number of times, the state of the entry is set to over-threshold; otherwise, the state of the entry is set
to below-threshold.
If the action to be triggered is configured as trap-only for a reaction entry, when the state of the entry
changes, a trap message is generated and sent to the network management server.
NOTE:
Only one probe can be made in one voice test.
4
Figure 2 Relationship between the NQA client and NQA server
In most NQA tests, you only need to configure the NQA client; while in TCP, UDP echo, UDP jitter, and
voice tests, you must configure the NQA server.
You can create multiple TCP or UDP listening services on the NQA server, each of which corresponds to
a specified destination address and port number. The IP address and port number specified for a
listening service on the server must be consistent with those on the client and must be different from those
of an existing listening service.
To perform an NQA test successfully, make the following configurations on the NQA client:
1. Enable the NQA client;
2. Create a test group and configure test parameters according to the test type. The test parameters
may vary with test types;
3. Start the NQA test.
To view test results about the test, use the display or debug commands.
Complete these tasks to configure NQA client:
Task Remarks
Enabling the NQA Client Required
Required
Configuring an NQA Test Group Configuring an ICMP Echo Test
Use any of the approaches
5
Task Remarks
Required
Enable the NQA server nqa server enable
Disabled by default.
Required
6
Enabling the NQA Client
Configurations on the NQA client take effect only when the NQA client is enabled.
Follow these steps to enable the NQA client:
To do… Use the command… Remarks
Enter system view system-view —
Optional
Enable the NQA client nqa agent enable
Enabled by default.
NOTE:
If you execute the nqa entry command to enter the test group view with test type configured, you directly
enter the test type view of the test group.
7
To do… Use the command… Remarks
Required
Configure the destination address By default, no destination IP
destination ip ip-address
for a test operation address is configured for a test
operation.
Optional
Optional
Specify a VPN instance vpn-instance instance
Not specified by default.
Optional
By default, no interface address is
specified as the source IP address
of ICMP probe requests.
Optional
By default, no source IP address is
specified.
If no source IP address is specified,
but the source interface is
Configure the source IP address of specified, the IP address of the
source ip ip-address source interface is taken as the
a probe request
source IP address of ICMP probe
requests.
The source IP address must be that
of an interface on the device and
the interface must be up.
Otherwise, the probe will fail.
Optional
Configure the next hop IP address
next-hop ip-address By default, no next hop IP address
for an ICMP echo request
is configured.
8
Configuring a DHCP Test
A DHCP test is mainly used to test the existence of a DHCP server on the network as well as the time
necessary for the DHCP server to respond to a client request and assign an IP address to the client.
Configuration prerequisites
Before performing a DHCP test, configure the DHCP server. If the NQA (DHCP client) and the DHCP
server are not in the same network segment, configure a DHCP relay agent. For more information about
DHCP server and DHCP relay, see DHCP Configuration in the Firewall Web Configuration Manual.
Required
By default, no interface is specified
Specify an interface for a DHCP operation interface to perform a DHCP test.
test interface-type interface-number The interface specified by the
source interface command must
be up; otherwise, the test fails.
NOTE:
• Because a DHCP test is a process to simulate address allocation in DHCP, the IP address of the interface
that performs the DHCP test does not change.
• When the DHCP test is completed, the NQA client sends a DHCP-RELEASE packet to release the
obtained IP address.
Configuration prerequisites
Before performing a DNS test, configure the mapping between a domain name and an IP address on a
DNS server.
9
To do… Use the command… Remarks
Enter system view system-view —
Required
By default, no destination IP
address is configured for a test
Specify a destination address for
destination ip ip-address operation.
a DNS test
The destination IP address must
be the IP address of the DNS
server.
Required
Configure the domain name resolve-target domain-name By default, no domain name is
configured for a DNS test.
NOTE:
Because a DNS test is a process to simulate the domain name resolution, the mapping between the
domain name and the IP address is not saved.
Configuration prerequisites
Before an FTP test, perform some configurations on the FTP server. For example, configure the username
and password that are used to log in to the FTP server. For more information about FTP server
configuration, see FTP and TFTP Configuration in the IP Services Volume.
10
To do… Use the command… Remarks
Required
By default, no destination IP
address is configured for a test
Configure the destination address
destination ip ip-address operation.
for a test operation
The destination IP address for a test
operation is the IP address of the
FTP server.
Required
By default, no source IP address is
specified.
Configure the source IP address of
source ip ip-address The source IP address must be that
a probe request
of an interface on the device and
the interface must be up.
Otherwise, the test will fail.
Optional
Configure the operation type operation { get | put } By default, the operation type for
the FTP is get, which means
obtaining files from the FTP server.
Required
Configure a login username username name By default, no login username is
configured.
Required
Configure a login password password password By default, no login password is
configured.
NOTE:
• When you execute the put command, a file file-name with fixed size and content is created on the FTP
server. When you execute the get command, the device does not save the files obtained from the FTP
server.
• When you execute the get command, the FTP test cannot succeed if a file named file-name does not exist
on the FTP server.
• When you execute the get command, use a file with a smaller size because a big file may result in test
failure due to timeout, or may affect other services because of occupying too much network bandwidth.
11
Configuring an HTTP Test
An HTTP test is used to test the connection between the NQA client and a specified HTTP server and the
time required to obtain data from the HTTP server, thus detecting the connectivity and performance of the
HTTP server.
Configuration prerequisites
Before performing an HTTP test, configure the HTTP server.
Required
By default, no destination IP
address is configured for a test
Configure the destination address
destination ip ip-address operation.
for a test operation
The destination IP address for a test
operation is the IP address of the
HTTP server.
Optional
By default, no source IP address is
specified.
Configure the source IP address of
source ip ip-address The source IP address must be that
a probe request
of an interface on the device and
the interface must be up.
Otherwise, the test will fail.
Optional
By default, the operation type for
Configure the operation type operation { get | post } the HTTP is get, which means
obtaining data from the HTTP
server.
Optional
Configure the HTTP version used in
http-version v1.0 By default, HTTP 1.0 is used in an
the HTTP test
HTTP test.
12
NOTE:
The TCP port number for the HTTP server must be 80 in an HTTP test. Otherwise, the test will fail.
Real-time services such as voice and video have high requirements on delay jitters. With the UDP jitter
test, uni/bi-directional delay jitters can be obtained to judge whether a network can carry real-time
services.
Delay jitter refers to the difference between the interval of receiving two packets consecutively and the
interval of sending these two packets. The procedure of a UDP jitter test is as follows:
• The source sends packets at regular intervals to the destination port.
• The destination affixes a time stamp to each packet that it receives and then sends it back to the
source.
• Upon receiving the packet, the source calculates the delay jitter, and the network status can be
analyzed.
Configuration prerequisites
A UDP jitter test requires cooperation between the NQA server and the NQA client. Before the UDP jitter
test, make sure that the UDP listening function is configured on the NQA server. For the configuration of
the UDP listening function, see Configuring the NQA Server.
Required
By default, no destination IP
address is configured for a test
Configure the destination address operation.
destination ip ip-address
for a test operation The destination IP address must be
consistent with that of the existing
listening service on the NQA
server.
13
To do… Use the command… Remarks
Required
By default, no destination port
number is configured for a test
Configure the destination port for a operation.
destination port port-number
test operation The destination port must be
consistent with that of the existing
listening service on the NQA
server.
Optional
Specify the source port number for
source port port-number By default, no source port number
a request
is specified.
Optional
Optional
By default, no source IP address is
specified.
Configure the source IP address of
source ip ip-address The source IP address must be that
a probe request in a test operation
of an interface on the device and
the interface must be up.
Otherwise, the test will fail.
NOTE:
The number of probes made in a UDP jitter test depends on the probe count command. The number of
probe packets sent in each probe depends on the configuration of the probe packet-number command.
14
Configuration prerequisites
The SNMP agent function must be enabled on the device that serves as an SNMP agent before an SNMP
test. For the configuration of SNMP agent, see SNMP Configuration in the System Volume.
Required
Configure the destination address By default, no destination IP
destination ip ip-address
for a test operation address is configured for a test
operation.
Optional
Specify the source port number for
source port port-number By default, no source port number
a probe request in a test operation
is specified.
Optional
By default, no source IP address is
specified.
Configure the source IP address of
source ip ip-address The source IP address must be that
a probe request in a test operation
of an interface on the device and
the interface must be up.
Otherwise, the test will fail.
Configuration prerequisites
A TCP test requires cooperation between the NQA server and the NQA client. Configure the TCP
listening function on the NQA server before the TCP test. For the configuration of the TCP listening
function, see Configuring the NQA Server.
15
To do… Use the command… Remarks
nqa entry admin-name
Enter NQA test group view —
operation-tag
Required
By default, no destination IP
address is configured for a test
Configure the destination address operation.
destination ip ip-address
for a test operation The destination address must be
the IP address of the listening
service configured on the NQA
server.
Required
By default, no destination port
number is configured for a test
operation.
Configure the destination port destination port port-number
The destination port number must
be consistent with port number of
the listening service configured on
the NQA server.
Optional
By default, no source IP address is
specified.
Configure the source IP address of
source ip ip-address The source IP address must be that
a probe request in a test operation
of an interface on the device and
the interface must be up.
Otherwise, the test will fail.
Configuration prerequisites
A UDP echo test requires cooperation between the NQA server and the NQA client. Configure the UDP
listening function on the NQA server before the UDP echo test. For the configuration of the UDP listening
function, see Configuring the NQA Server.
16
To do… Use the command… Remarks
nqa entry admin-name
Enter NQA test group view —
operation-tag
Required
By default, no destination IP
address is configured for a test
Configure the destination address operation.
destination ip ip-address
for a test operation The destination address must be
the IP address of the listening
service configured on the NQA
server.
Required
By default, no destination port
number is configured for a test
operation.
Configure the destination port destination port port-number
The destination port number must
be the port number of the listening
service configured on the NQA
server.
Optional
Optional
Specify a source port number for a
source port port-number By default, no source port number
probe request in a test operation
is specified.
Optional
By default, no source IP address is
specified.
Configure the source IP address of
source ip ip-address The source IP address must be that
a probe request in a test operation
of an interface on the device and
the interface must be up.
Otherwise, the test will fail.
17
NOTE:
It is recommended not to perform an NQA UDP jitter test on known ports, namely, ports from 1 to 1023.
Otherwise, the NQA test will fail or the corresponding services of these ports will be unavailable.
A voice test is used to test voice over IP (VoIP) network status, and collect VoIP network parameters so that
users can adjust the network according the network status. The procedure of a voice test is as follows:
1. The source (NQA client) sends voice packets of G.711 A-law, G.711 μ-law or G.729 A-law
codec type at regular intervals to the destination (NQA server).
2. The destination affixes a time stamp to each packet that it receives and then sends it back to the
source.
3. Upon receiving the packets, the source calculates the delay jitter and delay by calculating the
difference between the interval for the destination to receive two successive packets and the
interval for the source to send these two successive packets, and thus the network status can be
analyzed.
The voice parameter values that indicate VoIP network status can also be calculated in a voice test,
including:
• Calculated Planning Impairment Factor (ICPIF): Measures attenuation of voice data in a network,
depending on packet loss and delay. A higher value represents a lower network quality.
• Mean Opinion Scores (MOS): Measures quality of a VoIP network. A MOS value can be evaluated
by using the ICPIF value, in the range 1 to 5. A higher value represents a higher quality of a VoIP
network.
The evaluation of voice quality depends on users’ tolerance to voice quality, which should be taken into
consideration. For users with higher tolerance to voice quality, use the advantage-factor command
to configure the advantage factor. When the system calculates the ICPIF value, this advantage factor is
subtracted to modify ICPIF and MOS values and thus both the objective and subjective factors are
considered when you evaluate the voice quality.
Configuration prerequisites
A voice test requires cooperation between the NQA server and the NQA client. Before a voice test, make
sure that the UDP listening function is configured on the NQA server. For the configuration of UDP
listening function, see Configuring the NQA Server.
18
To do… Use the command… Remarks
Required
By default, no destination IP
address is configured for a test
Configure the destination address operation.
destination ip ip-address
for a test operation The destination IP address must be
consistent with that of the existing
listening service on the NQA
server.
Required
By default, no destination port
number is configured for a test
Configure the destination port for a operation.
destination port port-number
test operation The destination port must be
consistent with that of the existing
listening service on the NQA
server.
Optional
codec-type { g711a | g711u
Configure the codec type By default, the codec type is
| g729a }
G.711 A-law.
Optional
Configure the advantage factor for
advantage-factor factor By default, the advantage factor is
calculating MOS and ICPIF values
0.
Optional
By default, no source IP address is
specified.
Specify the source IP address for
source ip ip-address The source IP address must be that
the requests in a test operation
of an interface on the device and
the interface must be up.
Otherwise, the test will fail.
Optional
Specify the source port number for
source port port-number By default, no source port number
the requests in a test operation
is specified.
Optional
By default, the probe packet size
Configure the size of a probe depends on the codec type. The
data-size size default packet size is 172 bytes for
packet to be sent
G.711A-law and G.711 μ-law
codec type, and is 32 bytes for
G.729 A-law codec type.
Optional
19
To do… Use the command… Remarks
Configure the interval for sending probe packet-interval Optional
packets in a voice probe packet-interval 20 milliseconds by default.
NOTE:
Only one probe can be made in one voice test, and the number of probe packets sent in each probe
depends on the configuration of the probe packet-number command.
Configuration prerequisites
Enable the DLSw function on the peer device before DLSw test.
Required
Configure the destination address By default, no destination IP
destination ip ip-address
for a test operation address is configured for a test
operation.
Optional
By default, no source IP address is
specified.
Configure the source IP address of
source ip ip-address The source IP address must be that
a probe request in a test operation
of an interface on the device and
the interface must be up.
Otherwise, the test will fail.
20
Configuring the Collaboration Function
Collaboration is implemented by establishing reaction entries to monitor the detection results of the
current test group. If the number of consecutive probe failures reaches the threshold, the configured action
is triggered.
Follow these steps to configure the collaboration function:
To do… Use the command… Remarks
Enter system view system-view —
reaction item-number
checked-element probe-fail Required
Configure a reaction entry threshold-type consecutive
consecutive-occurrences Not created by default.
action-type trigger-only
NOTE:
• You cannot modify the content of a reaction entry by using the reaction command after the reaction
entry is created.
• The collaboration function is not supported in a UDP jitter or voice test.
21
To do… Use the command… Remarks
type { dhcp | dlsw | dns | ftp | http |
Enter test type view of the test
icmp-echo | snmp | tcp | udp-echo | —
group
udp-jitter | voice }
22
NOTE:
• NQA DNS tests do not support the action of sending trap messages. In other words, the action to be
triggered in DNS tests can only be the default one, none.
• Only the test-complete keyword is supported for the reaction trap command in a voice test.
Optional
2 by default.
Configure the maximum number of
statistics max-group number If the maximum number is 0, it
statistics groups that can be kept
indicates that no statistics is
performed.
NOTE:
• The NQA statistics function is not supported in a DHCP test.
• If you specify the interval argument in the frequency interval command as 0, no statistics group
information is generated.
23
Configuring the History Records Saving Function
With the history records saving function enabled, the system saves the history records of the NQA test.
To view the history records of a test group, use the display nqa history command.
The configuration task also allows you to configure:
• Lifetime of the history records: The records are removed when the lifetime is reached.
• The maximum number of history records that can be saved in a test group: If the number of history
records in a test group exceeds the maximum number, the earliest history records are removed.
Follow these steps to configure the history records saving function of an NQA test group:
To do… Use the command… Remarks
Enter system view system-view —
Required
Enable the saving of the
history records of the NQA history-record enable By default, history records of
test group the NQA test group are not
saved.
Optional
Set the lifetime of the history
records in an NQA test history-record keep-time keep-time By default, the history records in
group the NQA test group are kept for
120 minutes.
24
To do… Use the command… Remarks
type { dhcp | dlsw | dns | ftp
| http | icmp-echo | snmp |
Enter test type view of a test group —
tcp | udp-echo | udp-jitter |
voice }
Optional
Configure the descriptive string for
description text By default, no descriptive string is
a test group
available for a test group.
Optional
By default, the interval between
two consecutive tests for a test
group is 0 milliseconds, that is,
Configure the interval between two
frequency interval only one test is performed.
consecutive tests for a test group
If the last test is not completed
when the interval specified by the
frequency command is reached,
a new test is not started.
Optional
By default, one probe is performed
in a test.
Configure the number of probes in
probe count times Only one probe can be made in
an NQA test
one voice test. Therefore, this
command is not available in a
voice test.
Optional
By default, the timeout time is 3000
Configure the NQA probe timeout
probe timeout timeout milliseconds.
time
This parameter is not available for
a UDP jitter test.
Optional
Configure the maximum number of
20 by default.
hops a probe packet traverses in ttl value
the network This parameter is not available for
a DHCP test.
Optional
Configure the ToS field in an IP
0 by default.
packet header in an NQA probe tos value
packet This parameter is not available for
a DHCP test.
Optional
Enable the routing table bypass Disabled by default.
route-option bypass-route
function This parameter is not available for
a DHCP test.
25
Scheduling an NQA Test Group
By configuring NQA test group scheduling, you can set the start time and test duration for a test group
to perform NQA tests. The start time can take a specific value or can be now, which indicates that a test
is started immediately; the test duration can take a specific value or can be forever, which indicates
that a test does not stop until you use the undo nqa schedule command to stop the test.
A test group performs tests when the system time is between the start time and the end time (the start time
plus test duration). If the system time is behind the start time when you execute the nqa schedule
command, a test is started when the system time reaches the start time. If the system time is between the
start time and the end time, a test is started at once. If the system time is ahead of the end time, no test
is started. To view the current system time, use the display clock command.
Configuration prerequisites
Before scheduling an NQA test group, make sure:
• Required test parameters corresponding to a test type have been configured;
• For a test that needs the cooperation with the NQA server, configuration on the NQA server has
been completed.
CAUTION:
• After an NQA test group is scheduled, you cannot enter the test group view or test type view.
• A started test group or a test group that has completed tests will not be influenced by the system time
change; only a test group that is waiting to perform tests will be influenced by the system time change.
Display the results of the last NQA display nqa result [ admin-name
test operation-tag ]
26
To do… Use the command… Remarks
Display the statistics of a type of display nqa statistics [ admin-name
NQA test operation-tag ]
Device A Device B
Configuration procedure
# Create an ICMP echo test group and configure related test parameters.
<DeviceA> system-view
[DeviceA] nqa entry admin test
[DeviceA-nqa-admin-test] type icmp-echo
[DeviceA-nqa-admin-test-icmp-echo] destination ip 10.2.2.2
# Disable ICMP echo test after the test begins for a period of time.
[DeviceA] undo nqa schedule admin test
27
Min/Max/Average round trip time: 2/5/3
Square-Sum of round trip time: 96
Last succeeded probe time: 2007-08-23 15:00:01.2
Extended results:
Packet loss in test: 0%
Failures due to timeout: 0
Failures due to disconnect: 0
Failures due to no connection: 0
Failures due to sequence error: 0
Failures due to internal error: 0
Failures due to other errors: 0
Packet(s) arrived late: 0
10.1.1.1/16 10.2.2.2/16
IP network
Device A Device B
Configuration procedure
# Create a DHCP test group and configure related test parameters.
<DeviceA> system-view
[DeviceA] nqa entry admin test
[DeviceA-nqa-admin-test] type dhcp
[DeviceA-nqa-admin-test-dhcp] operation interface gigabitethernet 0/1
28
[DeviceA-nqa-admin-test-dhcp] history-record enable
[DeviceA-nqa-admin-test-dhcp] quit
# Disable DHCP test after the test begins for a period of time.
[DeviceA] undo nqa schedule admin test
Device A
Configuration procedure
# Create a DNS test group and configure related test parameters.
<DeviceA> system-view
[DeviceA] nqa entry admin test
[DeviceA-nqa-admin-test] type dns
29
[DeviceA-nqa-admin-test-dns] destination ip 10.2.2.2
[DeviceA-nqa-admin-test-dns] resolve-target host.com
# Disable DNS test after the test begins for a period of time.
[DeviceA] undo nqa schedule admin test
30
Configuration procedure
# Create an FTP test group and configure related test parameters.
<DeviceA> system-view
[DeviceA] nqa entry admin test
[DeviceA-nqa-admin-test] type ftp
[DeviceA-nqa-admin-test-ftp] destination ip 10.2.2.2
[DeviceA-nqa-admin-test-ftp] source ip 10.1.1.1
[DeviceA-nqa-admin-test-ftp] operation put
[DeviceA-nqa-admin-test-ftp] username admin
[DeviceA-nqa-admin-test-ftp] password systemtest
[DeviceA-nqa-admin-test-ftp] filename config.txt
# Disable FTP test after the test begins for a period of time.
[DeviceA] undo nqa schedule admin test
31
Figure 7 Network diagram for the HTTP tests
Configuration procedure
# Create an HTTP test group and configure related test parameters.
<DeviceA> system-view
[DeviceA] nqa entry admin test
[DeviceA-nqa-admin-test] type http
[DeviceA-nqa-admin-test-http] destination ip 10.2.2.2
[DeviceA-nqa-admin-test-http] operation get
[DeviceA-nqa-admin-test-http] url /index.htm
[DeviceA-nqa-admin-test-http] http-version v1.0
# Disable HTTP test after the test begins for a period of time.
[DeviceA] undo nqa schedule admin test
32
UDP Jitter Test Configuration Example
Network requirements
As shown in Figure 8, use the NQA UDP jitter function to test the delay jitter of packet transmission
between Device A and Device B.
Figure 8 Network diagram for UDP jitter tests
Configuration procedure
Step1 Configure Device B
# Enable the NQA server and configure the listening IP address as 10.2.2.2 and port number as 9000.
<DeviceB> system-view
[DeviceB] nqa server enable
[DeviceB] nqa server udp-echo 10.2.2.2 9000
# Disable UDP jitter test after the test begins for a period of time.
[DeviceA] undo nqa schedule admin test
33
Failures due to internal error: 0
Failures due to other errors: 0
Packet(s) arrived late: 0
UDP-jitter results:
RTT number: 10
Min positive SD: 4 Min positive DS: 1
Max positive SD: 21 Max positive DS: 28
Positive SD number: 5 Positive DS number: 4
Positive SD sum: 52 Positive DS sum: 38
Positive SD average: 10 Positive DS average: 10
Positive SD square sum: 754 Positive DS square sum: 460
Min negative SD: 1 Min negative DS: 6
Max negative SD: 13 Max negative DS: 22
Negative SD number: 4 Negative DS number: 5
Negative SD sum: 38 Negative DS sum: 52
Negative SD average: 10 Negative DS average: 10
Negative SD square sum: 460 Negative DS square sum: 754
One way results:
Max SD delay: 15 Max DS delay: 16
Min SD delay: 7 Min DS delay: 7
Number of SD delay: 10 Number of DS delay: 10
Sum of SD delay: 78 Sum of DS delay: 85
Square sum of SD delay: 666 Square sum of DS delay: 787
SD lost packet(s): 0 DS lost packet(s): 0
Lost packet(s) for unknown reason: 0
34
Positive SD number: 186 Positive DS number: 158
Positive SD sum: 2602 Positive DS sum: 1928
Positive SD average: 13 Positive DS average: 12
Positive SD square sum: 45304 Positive DS square sum: 31682
Min negative SD: 1 Min negative DS: 1
Max negative SD: 30 Max negative DS: 78
Negative SD number: 181 Negative DS number: 209
Negative SD sum: 181 Negative DS sum: 209
Negative SD average: 13 Negative DS average: 14
Negative SD square sum: 46994 Negative DS square sum: 3030
One way results:
Max SD delay: 46 Max DS delay: 46
Min SD delay: 7 Min DS delay: 7
Number of SD delay: 410 Number of DS delay: 410
Sum of SD delay: 3705 Sum of DS delay: 3891
Square sum of SD delay: 45987 Square sum of DS delay: 49393
SD lost packet(s): 0 DS lost packet(s): 0
Lost packet(s) for unknown reason: 0
NOTE:
The display nqa history command does not show the results of UDP jitter tests. Therefore, to know the result
of a UDP jitter test, you are recommended to use the display nqa result command to view the probe results
of the latest NQA test, or use the display nqa statistics command to view the statistics of NQA tests.
Configuration procedure
Step1 Configurations on SNMP agent
# Enable the SNMP agent service and set the SNMP version to all, the read community to public, and
the write community to private.
<DeviceB> system-view
[DeviceB] snmp-agent sys-info version all
[DeviceB] snmp-agent community read public
[DeviceB] snmp-agent community write private
35
<DeviceA> system-view
[DeviceA] nqa entry admin test
[DeviceA-nqa-admin-test] type snmp
[DeviceA-nqa-admin-test-snmp] destination ip 10.2.2.2
# Disable SNMP query test after the test begins for a period of time.
[DeviceA] undo nqa schedule admin test
36
Configuration procedure
Step1 Configure Device B
# Enable the NQA server and configure the listening IP address as 10.2.2.2 and port number as 9000.
<DeviceB> system-view
[DeviceB] nqa server enable
[DeviceB] nqa server tcp-connect 10.2.2.2 9000
# Disable TCP test after the test begins for a period of time.
[DeviceA] undo nqa schedule admin test
37
UDP Echo Test Configuration Example
Network requirements
As shown in Figure 11, use the NQA UDP echo function to test the round-trip time between Device A and
Device B. The port number is 8000.
Figure 11 Network diagram for the UDP echo tests
Configuration procedure
Step1 Configure Device B
# Enable the NQA server and configure the listening IP address as 10.2.2.2 and port number as 8000.
<DeviceB> system-view
[DeviceB] nqa server enable
[DeviceB] nqa server udp-echo 10.2.2.2 8000
# Disable UDP echo test after the test begins for a period of time.
[DeviceA] undo nqa schedule admin test
38
Failures due to no connection: 0
Failures due to sequence error: 0
Failures due to internal error: 0
Failures due to other errors: 0
Packet(s) arrived late: 0
Configuration procedure
Step1 Configure Device B
# Enable the NQA server and configure the listening IP address as 10.2.2.2 and port number as 9000.
<DeviceB> system-view
[DeviceB] nqa server enable
[DeviceB] nqa server udp-echo 10.2.2.2 9000
# Disable the voice test after the test begins for a period of time.
[DeviceA] undo nqa schedule admin test
39
Send operation times: 1000 Receive response times: 1000
Min/Max/Average round trip time: 31/1328/33
Square-Sum of round trip time: 2844813
Last succeeded probe time: 2008-06-13 09:49:31.1
Extended results:
Packet loss in test: 0%
Failures due to timeout: 0
Failures due to disconnect: 0
Failures due to no connection: 0
Failures due to sequence error: 0
Failures due to internal error: 0
Failures due to other errors: 0
Packet(s) arrived late: 0
Voice results:
RTT number: 1000
Min positive SD: 1 Min positive DS: 1
Max positive SD: 204 Max positive DS: 1297
Positive SD number: 257 Positive DS number: 259
Positive SD sum: 759 Positive DS sum: 1797
Positive SD average: 2 Positive DS average: 6
Positive SD square sum: 54127 Positive DS square sum: 1691967
Min negative SD: 1 Min negative DS: 1
Max negative SD: 203 Max negative DS: 1297
Negative SD number: 255 Negative DS number: 259
Negative SD sum: 759 Negative DS sum: 1796
Negative SD average: 2 Negative DS average: 6
Negative SD square sum: 53655 Negative DS square sum: 1691776
One way results:
Max SD delay: 343 Max DS delay: 985
Min SD delay: 343 Min DS delay: 985
Number of SD delay: 1 Number of DS delay: 1
Sum of SD delay: 343 Sum of DS delay: 985
Square sum of SD delay: 117649 Square sum of DS delay: 970225
SD lost packet(s): 0 DS lost packet(s): 0
Lost packet(s) for unknown reason: 0
Voice scores:
MOS value: 4.38 ICPIF value: 0
40
Packet loss in test: 0%
Failures due to timeout: 0
Failures due to disconnect: 0
Failures due to no connection: 0
Failures due to sequence error: 0
Failures due to internal error: 0
Failures due to other errors: 0
Packet(s) arrived late: 0
Voice results:
RTT number: 4000
Min positive SD: 1 Min positive DS: 1
Max positive SD: 360 Max positive DS: 1297
Positive SD number: 1030 Positive DS number: 1024
Positive SD sum: 4363 Positive DS sum: 5423
Positive SD average: 4 Positive DS average: 5
Positive SD square sum: 497725 Positive DS square sum: 2254957
Min negative SD: 1 Min negative DS: 1
Max negative SD: 360 Max negative DS: 1297
Negative SD number: 1028 Negative DS number: 1022
Negative SD sum: 1028 Negative DS sum: 1022
Negative SD average: 4 Negative DS average: 5
Negative SD square sum: 495901 Negative DS square sum: 5419
One way results:
Max SD delay: 359 Max DS delay: 985
Min SD delay: 0 Min DS delay: 0
Number of SD delay: 4 Number of DS delay: 4
Sum of SD delay: 1390 Sum of DS delay: 1079
Square sum of SD delay: 483202 Square sum of DS delay: 973651
SD lost packet(s): 0 DS lost packet(s): 0
Lost packet(s) for unknown reason: 0
Voice scores:
Max MOS value: 4.38 Min MOS value: 4.38
Max ICPIF value: 0 Min ICPIF value: 0
NOTE:
The display nqa history command cannot show you the results of voice tests. Therefore, to know the result
of a voice test, you are recommended to use the display nqa result command to view the probe results of
the latest NQA test, or use the display nqa statistics command to view the statistics of NQA tests.
41
Figure 13 Network diagram for the DLSw tests
Configuration procedure
# Create a DLSw test group and configure related test parameters.
<DeviceA> system-view
[DeviceA] nqa entry admin test
[DeviceA-nqa-admin-test] type dlsw
[DeviceA-nqa-admin-test-dlsw] destination ip 10.2.2.2
# Disable DLSw test after the test begins for a period of time.
[DeviceA] undo nqa schedule admin test
42
NQA Collaboration Configuration Example
Network requirements
As shown in Figure 14, configure a static route to Device C on Device A, with Device B as the next hop.
Associate the static route, track entry, and NQA test group to verify whether the static route is active in
real time.
Figure 14 Network diagram for NQA collaboration configuration example
Configuration procedure
Step1 Assign each interface an IP address. (omitted)
Step2 On Device A, configure a unicast static route and associate the static route with a track entry.
# Configure a static route, whose destination address is 10.2.1.1, and associate the static route with track
entry 1.
<DeviceA> system-view
[DeviceA] ip route-static 10.1.1.2 24 10.2.1.1 track 1
# Configure the test type of the NQA test group as ICMP echo.
[DeviceA-nqa-admin-test] type icmp-echo
# Configure the destination IP address of the ICMP echo test operation as 10.2.1.1.
[DeviceA-nqa-admin-test-icmp-echo] destination ip 10.2.1.1
# Create reaction entry 1. If the number of consecutive probe failures reaches 5, collaboration with other
modules is triggered.
[DeviceA-nqa-admin-test-icmp-echo] reaction 1 checked-element probe-fail threshold-type
consecutive 5 action-type trigger-only
[DeviceA-nqa-admin-test-icmp-echo] quit
# Configure the test start time and test duration for the test group.
[DeviceA] nqa schedule admin test start-time now lifetime forever
43
[DeviceA] track 1 nqa entry admin test reaction 1
# Display brief information about active routes in the routing table on Device A.
[DeviceA] display ip routing-table
Routing Tables: Public
Destinations : 5 Routes : 5
The information shows that the static route with the next hop 10.2.1.1 is active, and the status of the track
entry is positive. The static route configuration works.
# Remove the IP address of Ethernet 1/1 on Device B.
<DeviceB> system-view
[DeviceB] interface ethernet 1/1
[DeviceB-Ethernet1/1] undo ip address
# Display brief information about active routes in the routing table on Device A.
[DeviceA] display ip routing-table
Routing Tables: Public
Destinations : 4 Routes : 4
44
127.0.0.1/32 Direct 0 0 127.0.0.1 InLoop0
The information shows that the next hop 10.2.1.1 of the static route is not reachable, and the status of the
track entry is negative. The static route does not work.
45