34
Step Command
Remarks
1.
Enter system view.
system-view
N/A
2.
Create a TCP template and
enter its view.
nqa template tcp
name
N/A
3.
(Optional.) Specify the
destination IPv4 or IPv6
address of the operation.
•
IPv4 address:
destination ip
ip-address
•
IPv6 address:
destination ipv6
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.) Configure the
destination port number for the
operation.
destination port
port-number
By default, no destination port
number is configured.
The destination port number must
be the same as the port number
of the listening service on the
NQA server.
5.
Specify the string to be filled in
the payload of each request.
data-fill
string
The default setting is the
hexadecimal number
00010203040506070809.
6.
(Optional.) Specify the source
IPv4 or IPv6 address for the
probe packets.
•
IPv4 address:
source ip
ip-address
•
IPv6 address:
source ipv6
ipv6-address
By default, no source IP address
is specified.
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 expected data is checked
only when you configure both
the
data-fill
and
expect-data
commands.
Configuring the HTTP template
A feature that uses the HTTP template performs the HTTP operation to measure the time it takes the NQA
client to obtain data from an HTTP server.
The expected data is checked only when the expected data is configured and the HTTP response
contains the Content-Length field in the HTTP header. The Content-Length field indicates the packet body
length, and it does not include the header length. An HTTP packet with this field indicates that the packet
data does not include the multipart type and the packet body is a data type.
The status code of the HTTP packet is a three-digit field in decimal notation, and it includes the status
information for the HTTP server. The first digit defines the class of response, and the last two digits do not
have any categorization role.
Configure the HTTP server before you perform the HTTP operation.
To configure the HTTP template: