119
Configuring the UDP template
This feature is available in Release 1121 and later.
A feature that uses the UDP template performs the UDP operation to test the following items:
• Reachability of a specific port on the NQA server.
• Availability of the requested service on the NQA server.
In UDP template view, you can specify the expected data to be returned. If you do not specify the
expected data, the UDP operation tests only whether the client can receive the response packet from
the server.
The UDP operation requires both the NQA server and the NQA client. Before you perform a UDP
operation, configure a UDP listening service on the NQA server. For more information about the UDP
listening service configuration, see "Configuring the NQA server."
To configure the UDP template:
1. Enter system view.
system-view
N/A
2.
and enter its view.
nqa template udp
name By default, no UDP templates exist.
3.
destination IP address of
the operation.
• IPv4 address:
ip-address
• IPv6 address:
ipv6-address
By default, no destination address is
specified.
The destination address must be the same
as the IP address of the listening service
configured on the NQA server.
4.
(Optional.) Specify the
destination port number
for the operation.
port-number
By default, no destination port number is
specified.
The destination port number must be the
same as the port number of the listening
service on the NQA server.
5.
payload fill string for the
probe packets.
data-fill
string
The default payload fill string is the
hexadecimal number
00010203040506070809.
6.
payload size
probe packets.
data-size
size The default setting is 100 bytes.
7.
source IP address for the
probe packets.
• IPv4 address:
source ip ip-address
• IPv6 address:
source ipv6
ipv6-address
By default, the packets take the primary IP
address of the output interface as their
source IP address.
The source IP address must be the IP
address of a local interface, and the
interface must be up. Otherwise, no probe
packets can be sent out.
8. (Optional.) Configure the
expected data.
expect data
expression
[
offset
number ]
By default, no expected data is configured.
If you want to configure this command,
make sure the
data-fill
command is