• 产品与解决方案
  • 行业解决方案
  • 服务
  • 支持
  • 合作伙伴
  • 新华三人才研学中心
  • 关于我们

12-网络管理和监控配置举例

目录

01-H3C SR8800 NQA典型配置举例

本章节下载 01-H3C SR8800 NQA典型配置举例  (211.83 KB)

docurl=/cn/Service/Document_Software/Document_Center/Routers/Catalog/SR_Router/SR8800/Configure/Typical_Configuration_Example/H3C_SR8800-R3725-6W100/12/201407/834736_30005_0.htm

01-H3C SR8800 NQA典型配置举例

H3C SR8800 NQA配置举例

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Copyright © 2014 杭州华三通信技术有限公司 版权所有,保留一切权利。

非经本公司书面许可,任何单位和个人不得擅自摘抄、复制本文档内容的部分或全部,

并不得以任何形式传播。本文档中的信息可能变动,恕不另行通知。

H3C_彩色.emf

 



1  简介

本文档介绍了NQA测试及NQA联动的配置举例。

NQA(Network Quality Analyzer,网络质量分析)通过发送测试报文,对网络性能、网络提供的服务及服务质量进行分析,并为用户提供网络性能和服务质量的参数,如时延抖动、TCP连接时延、FTP连接时延和文件传输速率等。利用NQA的测试结果,用户可以及时了解网络的性能状况,针对不同的网络性能进行相应处理并对网络故障进行诊断和定位。

目前NQA支持11种测试类型:ICMP-echo、DHCP、DNS、FTP、HTTP、UDP-jitter、SNMP、TCP、UDP-echo、Voice和DLSw测试。

2  配置前提

本文档中的配置均是在实验室环境下进行的配置和验证,配置前设备的所有参数均采用出厂时的缺省配置。如果您已经对设备进行了配置,为了保证配置效果,请确认现有配置和以下举例中的配置不冲突。

本文假设您已了解NQA特性。

3  使用限制

ICMP-echo测试不支持在IPv6网络中使用,如果要测试IPv6网络中目的主机的可达性,可以使用ping ipv6命令;

4  ICMP-echo测试配置举例

4.1  组网需求

图1所示,Router A与Router B直连,Router B和Router C通过公网(IP network)连接。使用ICMP-echo测试测试本端(Router A)发送的报文经过下一跳设备(Router B)是否可以到达目的端(Router C),以及报文的往返时间。为了更好的查询探测结果,本例中将配置一次NQA测试中进行探测的次数为10、NQA探测超时时间为500ms、测试组连续两次测试开始时间的时间间隔为5000ms等参数来进行探测。

图1 ICMP-echo配置组网图

 

4.2  使用版本

本举例是在SR8800-CMW520-R3725版本上进行配置和验证的

4.3  配置步骤

# 按照图1配置各接口的IP地址,并配置静态或动态路由协议,确保各设备之间路由均可达,具体配置过程略。

# 在Router A上创建ICMP-echo类型的NQA测试组并指定目的端设备。

<RouterA> system-view

[RouterA] nqa entry admin test

[RouterA-nqa-admin-test] type icmp-echo

[RouterA-nqa-admin-test-icmp-echo] destination ip 10.3.3.3

# 配置NQA测试报文的下一跳地址。

[RouterA-nqa-admin-test-icmp-echo] next-hop 10.1.1.2

# 配置相关测试参数:一次NQA测试中进行探测的次数为10、NQA探测超时时间为500ms、测试组连续两次测试开始时间的时间间隔为5000ms。

[RouterA-nqa-admin-test-icmp-echo] probe count 10

[RouterA-nqa-admin-test-icmp-echo] probe timeout 500

[RouterA-nqa-admin-test-icmp-echo] frequency 5000

[RouterA-nqa-admin-test-icmp-echo] quit

# 启动ICMP-echo测试操作。

[RouterA] nqa schedule admin test start-time now lifetime forever

# 测试执行一段时间后,停止ICMP-echo测试操作。

[RouterA] undo nqa schedule admin test

4.4  验证结果

# 显示ICMP-echo测试中测试的结果,从显示结果中可以看出到目的端(10.3.3.3)的报文可达,报文平均往返时间为3ms。

[RouterA] display nqa result admin test

  NQA entry(admin admin, tag test) test results:

    Destination IP address: 10.3.3.3

      Send operation times: 10             Receive response times: 10

      Min/Max/Average round trip time: 2/5/3

      Square-Sum of round trip time: 96

      Last succeeded probe time: 2013-04-01 15:00:01.2

    Extended 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

      Packet(s) arrived late: 0

4.5  配置文件

#

nqa entry admin test

 type icmp-echo

  destination ip 10.3.3.3

  frequency 5000

  next-hop 10.1.1.2

  probe count 10

  probe timeout 500

#

 nqa schedule admin test start-time now lifetime forever

5  DHCP测试配置举例

5.1  组网需求

图2所示,Router B是DHCP Server。使用DHCP测试测试Router A是否能收到DHCP服务器的响应报文,以及DHCP服务器响应客户端请求、为客户端分配IP地址所需的时间。

图2 DHCP测试配置举例组网图

 

5.2  使用版本

本举例是在SR8800-CMW520-R3725版本上进行配置和验证的

5.3  配置步骤

# 按照图2配置各接口的IP地址,具体配置过程略。

# 测试Router A与Router B之间的连通性。

<RouterA>ping 10.1.1.2

  PING 10.1.1.2: 56  data bytes, press CTRL_C to break

    Reply from 10.1.1.2: bytes=56 Sequence=0 ttl=128 time=1 ms

    Reply from 10.1.1.2: bytes=56 Sequence=1 ttl=128 time=1 ms

    Reply from 10.1.1.2: bytes=56 Sequence=2 ttl=128 time=1 ms

    Reply from 10.1.1.2: bytes=56 Sequence=3 ttl=128 time=1 ms

    Reply from 10.1.1.2: bytes=56 Sequence=4 ttl=128 time=1 ms

 

  --- 10.1.1.2 ping statistics ---

    5 packet(s) transmitted

    5 packet(s) received

    0.00% packet loss

    round-trip min/avg/max = 1/1/1 ms

以上信息表明Router A  与Router B之间是互通的。

# 在Router A上创建DHCP类型的NQA测试组并配置指定进行DHCP测试的接口。

<RouterA> system-view

[RouterA] nqa entry admin test

[RouterA-nqa-admin-test] type dhcp

[RouterA-nqa-admin-test-dhcp] operation interface GigabitEthernet3/1/1

[RouterA-nqa-admin-test-dhcp] quit

# 启动DHCP测试操作。

[RouterA] nqa schedule admin test start-time now lifetime forever

# 测试执行一段时间后,停止DHCP测试操作。

[RouterA] undo nqa schedule admin test

5.4  验证结果

# 显示DHCP测试中测试的结果。

[RouterA] display nqa result admin test

  NQA entry(admin admin, tag test) test results:

      Send operation times: 1              Receive response times: 1

      Min/Max/Average round trip time: 624/624/624

      Square-Sum of round trip time: 389376

      Last succeeded probe time: 2013-04-01 09:56:03.2

    Extended 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

      Packet(s) arrived late: 0

以上显示信息表示,Router A可以从DHCP服务器获取IP地址,以及DHCP服务器响应客户端请求、为客户端分配IP地址所需的时间为624毫秒。

5.5  配置文件

#

nqa entry admin test

 type dhcp

  operation interface  GigabitEthernet3/1/1

#

 nqa schedule admin test start-time now lifetime forever

#

6  UDP-echo测试配置举例

6.1  组网需求

图3所示, Router A、Router B位于不同的IP网段。使用UDP-echo测试测试Router A与Router B的UDP端口8000之间的可达性及UDP-echo协议报文的往返时间。

图3 UDP-echo测试配置组网图

 

6.2  使用版本

本举例是在SR8800-CMW520-R3725版本上进行配置和验证的

6.3  配置注意事项

·     在进行UDP-echo类型测试前,必须在目的端设备上配置NQA服务器。

·     在一个NQA服务器上配置的监听IP地址和端口号必须与NQA客户端上配置的目的IP地址和目的端口号一致,且不能与已有的TCP(或UDP)监听服务冲突。

6.4  配置步骤

(1)     按照图3配置各接口的IP地址,并配置静态或动态路由协议,确保各设备之间路由均可达,具体配置过程略。

(2)     在RouterA上配置UDP-echo测试基本功能。

# 创建UDP-echo类型的NQA测试组并配置测试操作的目的地址和目的端口。

<RouterA> system-view

[RouterA] nqa entry admin test

[RouterA-nqa-admin-test] type udp-echo

[RouterA-nqa-admin-test1-udp-echo] destination ip 10.2.2.2

[RouterA-nqa-admin-test1-udp-echo] destination port 8000

(3)     在RouterB上配置NQA服务器基本功能

# 开启NQA服务器功能。

<RouterB> system-view

[RouterB] nqa server enable

# 在NQA服务器上配置UDP监听服务,监听的IP地址为10.2.2.2,端口号为8000。

[RouterB] nqa server udp-echo 10.2.2.2 8000

(4)     在RouterA上启动UDP-echo测试操作。

[RouterA] nqa schedule admin test start-time now lifetime forever

# 测试执行一段时间后,停止UDP-echo测试操作。

[RouterA] undo nqa schedule admin test

6.5  验证结果

# 显示UDP-echo测试中最后一次测试的结果。

[RouterA] display nqa result admin test

  NQA entry(admin admin, tag test) test results:

    Destination IP address: 10.2.2.2

      Send operation times: 1              Receive response times: 1

      Min/Max/Average round trip time: 25/25/25

      Square-Sum of round trip time: 625

      Last succeeded probe time: 2007-11-22 10:36:17.9

 

    Extended 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

      Packet(s) arrived late: 0

以上显示信息表示,Router A和Router B的端口8000之间UDP协议报文的往返时间为25毫秒。

6.6  配置文件

·     Router A

#

nqa entry admin test

 type udp-echo

  destination ip 10.2.2.2

  destination port 8000

#

 nqa schedule admin test start-time now lifetime forever

#

·     Router B

#

 nqa server enable

 nqa server udp-echo 10.2.2.2 8000

#

7  NQA联动配置举例

7.1  组网需求

图4所示,Router A和Router C通过Router B相连。Router A到达Router C的静态路由下一跳为Router B;现要求:使用Track联动测试实现对Router A到达Router C的静态路由有效性进行实时判断。

图4 NQA联动配置组网图

 

7.2  使用版本

本举例是在SR8800-CMW520-R3725版本上进行配置和验证的

7.3  配置步骤

(1)     按照图4配置各接口的IP地址,并配置静态或动态路由协议,确保各设备之间路由均可达,具体配置过程略。

(2)     在Router A上配置Track项。

# 配置Track项1,关联NQA测试组(管理员为admin,操作标签为test)的联动项1。

[RouterA] track 1 nqa entry admin test reaction 1

(3)     在Router A上配置静态路由,并与Track项关联。

# 配置到达Router C的静态路由下一跳地址为10.2.1.1,并配置静态路由与Track项1关联。

<RouterA> system-view

[RouterA] ip route-static 10.1.1.2 24 10.2.1.1 track 1

(4)     在Router A上配置NQA测试组,并配置Track与NQA联动。

# 创建管理员名为admin、操作标签为test的NQA测试组。

[RouterA] nqa entry admin test

# 配置测试类型为ICMP-echo。

[RouterA-nqa-admin-test] type icmp-echo

# 配置目的地址为10.2.1.1。

[RouterA-nqa-admin-test-icmp-echo] destination ip 10.2.1.1

#配置测试组连续两次测试时间间隔为100ms。

[RouterA-nqa-admin-test-icmp-echo] frequency 100

# 配置联动项1(连续失败5次触发联动)。

[RouterA-nqa-admin-test-icmp-echo] reaction 1 checked-element probe-fail threshold-type consecutive 5 action-type trigger-only

[RouterA-nqa-admin-test-icmp-echo] quit

(5)      立刻启动NQA联动探测。

[RouterA] nqa schedule admin test start-time now lifetime forever

7.4  验证结果

# 显示Router A上Track项的信息。

[RouterA] display track all

Track ID: 1

  Status: Positive

  Notification delay: Positive 0, Negative 0 (in seconds)

  Reference object:

    NQA entry: admin test

    Reaction: 1

# 显示Router A的路由表。

[RouterA] display ip routing-table

Routing Tables: Public

         Destinations : 5        Routes : 5

 

Destination/Mask    Proto  Pre  Cost         NextHop         Interface

 

10.1.1.0/24         Static 60   0            10.2.1.1        GE3/1/1

10.2.1.0/24         Direct 0    0            10.2.1.2        GE3/1/1

10.2.1.2/32         Direct 0    0            127.0.0.1       InLoop0

127.0.0.0/8         Direct 0    0            127.0.0.1       InLoop0

127.0.0.1/32        Direct 0    0            127.0.0.1       InLoop0

以上显示信息表示,NQA测试的结果为下一跳地址10.2.1.1可达(Track项状态为Positive),配置的静态路由生效。

# 在Router B上删除GE3/1/1的IP地址。

<RouterB> system-view

[RouterB] interface  GigabitEthernet3/1/1

[RouterB-GigabitEthernet3/1/1] undo ip address

# 显示Router A上Track项的信息。

[RouterA] display track all

Track ID: 1

  Status: Negative

  Notification delay: Positive 0, Negative 0 (in seconds)

  Reference object:

    NQA entry: admin test

    Reaction: 1

# 显示Router A的路由表。

[RouterA] display ip routing-table

Routing Tables: Public

         Destinations : 4        Routes : 4

 

Destination/Mask    Proto  Pre  Cost         NextHop         Interface

 

10.2.1.0/24         Direct 0    0            10.2.1.2        GE3/1/1

10.2.1.2/32         Direct 0    0            127.0.0.1       InLoop0

127.0.0.0/8         Direct 0    0            127.0.0.1       InLoop0

127.0.0.1/32        Direct 0    0            127.0.0.1       InLoop0

以上显示信息表示,NQA测试的结果为下一跳地址10.2.1.1不可达(Track项状态为Negative),配置的静态路由无效。

7.5  配置文件

#

ip route-static 10.1.1.2 24 10.2.1.1 track 1

#

nqa entry admin test

 type icmp-echo

  destination ip 10.2.1.1

  frequency 100

reaction 1 checked-element probe-fail threshold-type consecutive 5 action-type trigger-only

#

 nqa schedule admin test start-time now lifetime forever

#

track 1 nqa entry admin test reaction 1

#

8  相关资料

·     《H3C SR8800系列万兆核心路由器  网络管理和监控配置指导》中的“NQA”

·     《H3C SR8800系列万兆核心路由器  网络管理和监控命令参考》中的“NQA”

 

不同款型规格的资料略有差异, 详细信息请向具体销售和400咨询。H3C保留在没有任何通知或提示的情况下对资料内容进行修改的权利!

新华三官网
联系我们