This section provides an example for configuring an NQA TCP test to measure the response time on an IP network.
On the network shown in Figure 1, the headquarters and a subsidiary of a company often need to use TCP to exchange files with each other. The time taken to respond to a TCP transmission request must be less than 800 ms. The NQA TCP test can be configured to measure the TCP response time between Device A and Device D that are connected to the IP backbone network.
The configuration roadmap is as follows:
Configure Device D as the NQA client and Device A as the NQA server, and create a TCP test instance.
Configure the test instance to start at 10:00 o'clock every day and start the test instance.
To complete the configuration, you need the following data:
IP addresses of Device A and Device D that are connected to the IP backbone network
Number of the port used to monitor TCP services
<DeviceA> system-view [~DeviceA] nqa-server tcpconnect 10.1.1.1 4000 [*DeviceA] commit
<DeviceD> system-view [*DeviceD] nqa test-instance admin tcp [*DeviceD-nqa-admin-tcp] test-type tcp [*DeviceD-nqa-admin-tcp] destination-address ipv4 10.1.1.1 [*DeviceD-nqa-admin-tcp] destination-port 4000 [*DeviceD-nqa-admin-tcp] commit
[*DeviceD-nqa-admin-tcp] start now [*DeviceD-nqa-admin-tcp] commit
[~DeviceD-nqa-admin-tcp] display nqa results test-instance admin tcp NQA entry(admin, tcp) :testflag is active ,testtype is tcp 1 . Test 1 result The test is finished Send operation times: 3 Receive response times: 3 Completion:success RTD OverThresholds number:0 Attempts number:1 Drop operation number:0 Disconnect operation number:0 Operation timeout number:0 System busy operation number:0 Connection fail number:0 Operation sequence errors number:0 RTT Stats errors number:0 Destination ip address:10.1.1.1 Min/Max/Average Completion Time: 600/610/603 Sum/Square-Sum Completion Time: 1810/1092100 Last Good Probe Time: 2011-01-16 02:59:41.6 Lost packet ratio: 0 %
[~DeviceD-nqa-admin-tcp] stop [*DeviceD-nqa-admin-tcp] start daily 10:00:00 to 10:30:00 [*DeviceD-nqa-admin-tcp] commit
Device A configuration file
# sysname DeviceA # nqa-server tcpconnect 10.1.1.1 4000 # isis 1 network-entity 00.0000.0000.0001.00 # interface GigabitEthernet0/1/0 undo shutdown ip address 10.1.1.1 255.255.255.0 isis enable 1 # return
Device D configuration file
# sysname DeviceD # isis 1 network-entity 00.0000.0000.0002.00 # interface GigabitEthernet0/1/0 undo shutdown ip address 10.2.2.1 255.255.255.0 isis enable 1 # nqa test-instance admin tcp test-type tcp destination-address ipv4 10.1.1.1 destination-port 4000 start daily 10:00:00 to 10:30:00 # return