華為交換機(jī)配置NQA TCP檢測(cè)IP網(wǎng)絡(luò)響應(yīng)時(shí)間
發(fā)布作者:微思網(wǎng)絡(luò) 發(fā)布時(shí)間:2024-01-10 瀏覽量:0次
組網(wǎng)需求
如圖1所示,總部和子公司之間需要跨越外部網(wǎng)絡(luò)進(jìn)行通信,DeviceA和DeviceD為總部和子公司的網(wǎng)絡(luò)出口設(shè)備,DeviceB和DeviceC為外部網(wǎng)絡(luò)提供商的邊緣設(shè)備。
總部和子公司之間經(jīng)常需要使用某TCP傳輸程序傳輸業(yè)務(wù)文件,要求傳輸響應(yīng)時(shí)間小于800ms。此時(shí),可以使用NQA的TCP測(cè)試檢測(cè)企業(yè)網(wǎng)出口設(shè)備DeviceA和DeviceD之間的TCP響應(yīng)時(shí)間。
圖1 配置NQA檢測(cè)IP網(wǎng)絡(luò)響應(yīng)時(shí)間組網(wǎng)圖
配置思路
采用如下思路配置NQA檢測(cè)IP網(wǎng)絡(luò)響應(yīng)時(shí)間:
1.DeviceD為NQA客戶端,DeviceA為NQA服務(wù)器端,配置TCP測(cè)試例。
數(shù)據(jù)準(zhǔn)備
為完成此配置例,需準(zhǔn)備如下的數(shù)據(jù):
?企業(yè)網(wǎng)邊緣設(shè)備DeviceA和企業(yè)網(wǎng)邊緣設(shè)備DeviceD的IP地址。
?TCP服務(wù)的偵聽(tīng)端口號(hào)。
操作步驟
1.配置NQA服務(wù)器端DeviceA。
<HUAWEI>system-view
[HUAWEI] sysname DeviceA
[DeviceA] nqa server tcpconnect 10.1.1.1 4000
2.配置NQA客戶端DeviceD,創(chuàng)建TCP測(cè)試?yán)⑴渲媚康牡刂窞镈eviceA的IP地址。
<HUAWEI>system-view
[HUAWEI] sysname DeviceD
[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
3.立即啟動(dòng)測(cè)試。
[DeviceD-nqa-admin-tcp] start now
檢查配置結(jié)果
驗(yàn)證測(cè)試結(jié)果,可以看到響應(yīng)時(shí)間小于800ms。
[DeviceD-nqa-admin-tcp] display nqa results test-instance admin tcp
NQA entry(admin, tcp): test flag is active, test type is TCP
1 . Test 1 result The test is finished
Send operation times: 3 Receive response times: 3
Completion: success RTD over thresholds 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 response packet receiving time: 2020-04-16 12:59:41.6
Lost packet ratio: 0 %
配置腳本
?DeviceA
sysname DeviceA
nqa server tcpconnect 10.1.1.1 4000
isis 1
network-entity 00.0000.0000.0001.00
interface 10GE1/0/1
undo portswitch
ip address 10.1.1.1 255.255.255.0
isis enable 1
return
?DeviceD
sysname DeviceD
isis 1
network-entity 00.0000.0000.0002.00
interface 10GE1/0/1
undo portswitch
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
return