117
the IP address of a local
interface, and the interface must
be up. Otherwise, no probe
packets can be sent out.
8. (Optional.) Specify the source
port for probe packets.
source port
port-number
By default, no source port
number is specified.
9.
(Optional.) Specify the IP
address that is expected to be
returned.
• IPv4 address:
expect ip ip-address
• IPv6 address:
ipv6-address
By default, no expected IP
address is specified.
Configuring the TCP template
A feature that uses the TCP template performs the TCP operation to test whether the NQA client can
establish a TCP connection to a specific port on the server.
In TCP template view, you can specify the expected data to be returned. If you do not specify the
expected data, the TCP operation tests only whether the client can establish a TCP connection to the
server.
The TCP operation requires both the NQA server and the NQA client. Before you perform a TCP
operation, configure a TCP listening service on the NQA server. For more information about the TCP
listening service configuration, see "Configuring the NQA server."
To configure the TCP template:
1. Enter system view.
system-view
N/A
2.
and enter its view.
nqa template tcp
name By default, no TCP 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.
destination p
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 fil
requests.
data-fill
string
The default payload fill string is the
hexadecimal number
00010203040506070809.
6.
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.
7. (Optional.) Configure the
expected data.
expect data
expression
[
offset
number ]
By default, no expected data is configured.
The NQA client performs expect data