1. 组网需求
使用NQA进行ICMP-echo测试,测试本端(R1)发送的报文是否可以到达指定的目的端(R2),以及报文的往返时间。
2. 组网图
R1--S0/6/0-------S0/6/0--R2
R1 s0/6/0 192.168.1.1 R2 s0/6/0 192.168.1.2
3、主要配置以及解说 所用的软件是H3C模拟器
nqa entry admin site1
type icmp-echo
destination ip 192.168.1.2
frequency 3000
probe count 3
reaction 1 checked-element probe-fail threshold-type consecutive 3 action-type trigger-only
reaction trap probe-failure 10
source ip 192.168.1.1
#
track 1 nqa entry admin site1 reaction 1
#
nqa schedule admin site1 start-time now lifetime forever
-----------------------------------------------------
nqa entry admin site1 创建NQA测试组,并进入NQA测试组视图
type icmp-echo 配置测试类型为ICMP-echo,并进入测试类型视图
destination ip 192.168.1.2 配置测试操作的目的地址
frequency 3000 配置测试组连续两次测试开始时间的时间间隔
缺省情况下,Voice测试中连续两次测试开始时间的时间间隔为60000毫秒;其他类型的测试中连续两次测试开始时间的时间间隔为0毫秒,即只进行一次测试。
通过nqa schedule命令启动NQA测试后,每隔interval时间启动一次测试。
需要注意的时,如果到达frequency指定的时间间隔时,上次测试尚未完成,则不启动新一轮测试。
probe count 3 配置一次NQA测试中进行探测的次数 times 的取值是1--15
缺省情况下,一次NQA测试中的探测次数为1次。
l 对于TCP和DLSw测试,一次探测是指一次连接;
l 对于UDP-jitter和Voice测试,一次探测发送探测报文的个数由probe packet-number命令确定;
l 对于FTP、HTTP、DHCP和DNS测试,一次探测是指完成一次相应的功能;
l 对于ICMP-echo和UDP-echo测试,一次探测发送一个探测报文;
l 对于SNMP测试,一次探测发送三个探测报文。
reaction 1 checked-element probe-fail threshold-type consecutive 3 action-type trigger-only连续探测失败3次,触发其他模块联动。
reaction trap probe-failure 10 配置ICMP-echo测试中连续探测失败10次之后发送探测失败的Trap消息。
reaction trap命令用来配置在指定条件下向网管服务器发送Trap消息。undo reaction trap命令用来恢复缺省情况。
缺省情况下,不向网管服务器发送Trap消息。
需要注意的是,Voice测试只支持reaction trap test-complete。
source ip 192.168.1.1 配置探测请求报文的源IP地址
track 1 nqa entry admin site1 reaction 1 创建与NQA测试组(admin site1)中联动项关联的Track项1。
nqa schedule bs dianxin start-time now lifetime forever 现在启动 永不失效
4、配置完成后测试
[R1]dis nqa history admin site1
NQA entry(admin admin, tag site1) history record(s):
Index Response Status Time
120 16 Succeeded 2013-03-24 23:07:16.5
119 15 Succeeded 2013-03-24 23:07:16.4
118 1 Succeeded 2013-03-24 23:07:16.4
117 21 Succeeded 2013-03-24 23:07:13.5
116 10 Succeeded 2013-03-24 23:07:13.4
115 10 Succeeded 2013-03-24 23:07:13.4
114 20 Succeeded 2013-03-24 23:07:10.4
113 1 Succeeded 2013-03-24 23:07:10.4
112 15 Succeeded 2013-03-24 23:07:10.4
111 10 Succeeded 2013-03-24 23:07:07.4
110 3000 Timeout 2013-03-24 23:07:07.4
109 4 Succeeded 2013-03-24 23:07:07.4
108 1 Succeeded 2013-03-24 23:07:04.4
107 1 Succeeded 2013-03-24 23:07:04.4
106 16 Succeeded 2013-03-24 23:07:04.4
105 16 Succeeded 2013-03-24 23:07:01.3
104 1 Succeeded 2013-03-24 23:07:01.3
103 15 Succeeded 2013-03-24 23:07:01.3
102 15 Succeeded 2013-03-24 23:06:58.3
101 16 Succeeded 2013-03-24 23:06:58.3
100 3000 Timeout 2013-03-24 23:06:58.3
99 16 Succeeded 2013-03-24 23:06:55.2
98 16 Succeeded 2013-03-24 23:06:55.2
97 15 Succeeded 2013-03-24 23:06:55.2
96 1 Succeeded 2013-03-24 23:06:52.2
95 16 Succeeded 2013-03-24 23:06:52.2
94 15 Succeeded 2013-03-24 23:06:52.2
93 10 Succeeded 2013-03-24 23:06:49.2
92 16 Succeeded 2013-03-24 23:06:49.2
91 16 Succeeded 2013-03-24 23:06:49.2
90 16 Succeeded 2013-03-24 23:06:46.2
89 16 Succeeded 2013-03-24 23:06:46.2
88 1 Succeeded 2013-03-24 23:06:46.1
87 1 Succeeded 2013-03-24 23:06:43.1
86 19 Succeeded 2013-03-24 23:06:43.1
85 26 Succeeded 2013-03-24 23:06:43.1
84 20 Succeeded 2013-03-24 23:06:40.1
83 16 Succeeded 2013-03-24 23:06:40.1
82 1 Succeeded 2013-03-24 23:06:40.1
81 16 Succeeded 2013-03-24 23:06:37.1
80 1 Succeeded 2013-03-24 23:06:37.1
79 15 Succeeded 2013-03-24 23:06:37.1
78 10 Succeeded 2013-03-24 23:06:34.0
77 3000 Timeout 2013-03-24 23:06:34.0
76 15 Succeeded 2013-03-24 23:06:34.0
75 3000 Timeout 2013-03-24 23:06:31.0
74 15 Succeeded 2013-03-24 23:06:31.0
73 1 Succeeded 2013-03-24 23:06:31.0
72 15 Succeeded 2013-03-24 23:06:28.0
71 1 Succeeded 2013-03-24 23:06:28.0
[R1]dis nqa result admin site1
NQA entry(admin admin, tag site1) test results:
Destination IP address: 192.168.1.2
Send operation times: 3 Receive response times: 3
Min/Max/Average round trip time: 1/15/5
Square-Sum of round trip time: 227
Last succeeded probe time: 2013-03-24 23:07:19.5
Extend results:
Packet lost in test: 0%
Failures due to timeout: 0
Failures due to disconnect: 0
Failures due to no connection: 0
Failures due to sequence error: 0
Failures due to internal error: 0
Failures due to other errors: 0