ar2200 配置nqa 使能后不生效

发布时间:  2014-12-13 浏览次数:  281 下载次数:  0
问题描述
ar2200通过nqa联动静态路由,配置成功后故障恢复后路由不能正常切换
处理过程
1、通过查看配置,用户按照配置案例配置。配置没有问题
ip route-static 192.168.200.0 255.255.255.0 10.100.111.2 track nqa admin icmp
#
nqa test-instance admin icmp
test-type icmp
destination-address ipv4 10.100.111.2
frequency 2
timeout 1
start now
2、通过查看路由,路由表都是按照正常路由进行转发的,但是ping目的地址的时候是不通的
[zdwl-R-A-nqa-admin-icmp]dis ip routing-table | include 10.100.111.2
Route Flags: R - relay, D - download to fib
------------------------------------------------------------------------------
Routing Tables: Public
         Destinations : 120      Routes : 77      

Destination/Mask    Proto   Pre  Cost      Flags NextHop         Interface

  192.168.200.0/24  Static  60   0          RD   10.100.111.2    Ethernet2/0/0

[zdwl-R-A-nqa-admin-icmp]ping 10.100.111.2
  PING 10.100.111.2: 56  data bytes, press CTRL_C to break
    Request time out
    Request time out
    Request time out
    Request time out
3、通过查看nqa的发包情况都是正常发包的
[zdwl-R-A-nqa-admin-icmp]display nqa results test-instance admin icmp

NQA entry(admin, icmp) :testflag is active ,testtype is icmp
  1 . Test 280 result   The test is finished
   Send operation times: 1              Receive response times: 0         
   Completion:no result                 RTD OverThresholds number: 0      
   Attempts number:1                    Drop operation number:0           
   Disconnect operation number:0        Operation timeout number:1        
   System busy operation number:0       Connection fail number:0          
   Operation sequence errors number:0   RTT Status errors number:0        
   Destination ip address:10.100.111.2                                  
   Min/Max/Average Completion Time: 0/0/0                               
   Sum/Square-Sum  Completion Time: 0/0                                 
   Last Good Probe Time: 0000-00-00 00:00:00.0                          
   Lost packet ratio: 100 %                                             
  2 . Test 281 result   The test is finished
   Send operation times: 1              Receive response times: 0         
   Completion:no result                 RTD OverThresholds number: 0      
   Attempts number:1                    Drop operation number:0           
   Disconnect operation number:0        Operation timeout number:1        
   System busy operation number:0       Connection fail number:0          
   Operation sequence errors number:0   RTT Status errors number:0        
   Destination ip address:10.100.111.2                                  
   Min/Max/Average Completion Time: 0/0/0                               
   Sum/Square-Sum  Completion Time: 0/0                                 
   Last Good Probe Time: 0000-00
    Request time out
4、通过再次确认配置其中frequency 自动测试时间间隔配置有问题
根因
在ICMP、SNMP、TCP或UDP类型的测试例中,frequency取值必须大于interval和probe-count取值的乘积
默认情况下icmp的interval时间间隔是4秒,缺省情况下,probe-count一次测试探针数目是3

解决方案
将frequency的数值配置大于12
建议与总结
自动执行测试的时间间隔frequency取值有以下三种情况:
在DHCP、DNS、FTP、HTTP或Trace类型的测试例中,frequency取值必须大于timeout和probe-count取值的乘积。

在ICMP、SNMP、TCP或UDP类型的测试例中,frequency取值必须大于interval和probe-count取值的乘积。

在Jitter测试例中有如下关系:

frequency > probe-count × jitter-packetnum × interval + timeout

在基于硬件发包的Jitter测试例中有如下关系:

frequency > probe-count × jitter-packetnum × interval + 6200 + (5 × timeout/3)

6200的单位为ms。

trace和lsptrace测试例的frequency设置不能小于60s。

如果没有配置结束时间,测试不能自动停止,必须通过手动停止。不能更改正在运行的测试例的测试周期。

END