Configuring an HTTP Test Instance on Huawei Switch
How to Configure an HTTP Test Instance on Huawei Switch
Before configuring an HTTP test instance, configure an HTTP server and ensure reachable routes between the HTTP client and the HTTP server.
Through an NQA HTTP test, you can obtain the response speed in three phases:
DNS resolution time: indicates the time taken to resolve the HTTP server domain name into its IP address. During this process, the NQA client sends a DNS request to the DNS server. The DNS server resolves the domain name of the HTTP server to an IP address and returns a DNS response.
TCP connection setup time: indicates the time spent in setting up a TCP connection between the NQA client and the HTTP server through three-way handshake.
Transaction time: indicates a period from the time the client sends a Get packet to the HTTP server to the time a response packet sent by the client reaches the HTTP server.
The NQA client also functions as the HTTP client. Perform the following steps on the NQA client.
The configuration overview, taking the switch S5352C-EI and S2700-9TP-SI-AC for the example.
The system view is displayed.
nqa test-instance admin-name test-name
An NQA test instance is created, and the NQA view is displayed.
The test type is set to HTTP.
destination-address ipv4 ipv4-address
The destination address is configured.
Step 5 (Optional) Run the following commands as required to configure parameters for the HTTP test.
A description is configured for the test instance.
The test period is set for the NQA test instance.
The timeout period of a probe is set for the NQA test instance.
dns-server ipv4 ip-address
The DNS server address is configured.
destination-port port-number
The destination port number is configured.
source-address ipv4 ipv4-address
The source IP address is configured.
The source port number is configured.
The TTL value in the NQA test packet is set.
The NQA test instance is configured to send packets without searching the routing table.
The number of probes in a test is set.
Type of Service (TOS) is set for the test packet.
The failure percentage is set for the NQA test instance.
vpn-instance vpn-instance-name
The VPN instance name is configured.
The maximum number of historical records is set for the NQA test instance.
The maximum number of result records is set for the NQA test instance.
The aging time is set for the NQA test instance.
The HTTP operation type is set to Get.
http-url deststring [ verstring ]
The URL of the web page that the HTTP test accesses and the HTTP version are configured.
If no HTTP version is configured, HTTP1.0 is supported by default. You can set the version to HTTP1.1.
Note: this configuration also works for the Huawei s2700, s5700, s6700.