Configuring the UDP template
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:
Step | Command | Remarks |
---|---|---|
1. Enter system view. | system-view | N/A |
2. Create a UDP template and enter its view. | nqa template udp name | By default, no UDP templates exist. |
3. (Optional.) Specify the destination IP address of the operation. |
| 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. | destination port 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. (Optional.) Specify the payload fill string for the probe packets. | data-fill string | The default payload fill string is the hexadecimal string 00010203040506070809. |
6. (Optional.) Set the payload size for the probe packets. | data-size size | The default setting is 100 bytes. |
7. (Optional.) Specify the source IP address for the probe packets. |
| 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 already executed. |