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

02-典型配置举例

58-H3C MSR系列路由器 NQA典型配置举例

本章节下载  (274.79 KB)

docurl=/cn/Service/Document_Software/Document_Center/Home/Routers/00-Public/Configure/Typical_Configuration_Example/H3C_MSR_R6728-10884/99/202305/1843913_30005_0.htm

58-H3C MSR系列路由器 NQA典型配置举例

H3C MSR系列路由器

NQA配置举例

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Copyright © 2022-2023 新华三技术有限公司 版权所有,保留一切权利。

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

除新华三技术有限公司的商标外,本手册中出现的其它公司的商标、产品标识及商品名称,由各自权利人拥有。

本文档中的信息可能变动,恕不另行通知。



1  简介

本文档介绍NQA的典型配置举例。

2  配置前提

本文档适用于使用Comware V7软件版本的MSR系列路由器,如果使用过程中与产品实际情况有差异,请参考相关产品手册,或以设备实际情况为准。

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

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

3  UDP-jitter测试配置举例

3.1  组网需求

图1所示,Device A和Device B之间的网络承载了语音、视频等实时性业务,对时延抖动(Delay jitter)的要求较高。现要求配置UDP-jitter测试方案,使用户可以根据实际需要随时调用该测试方案测试本端(Device A)和指定目的端(Device B)之间传送报文的时延抖动,从而判断网络是否可以承载实时性业务。

图1 UDP-jitter测试组网图

 

 

3.2  使用版本

本举例是在R6728版本上进行配置和验证的。

3.3  配置注意事项

·     进行NQA测试之前,请确保各设备之间路由可达。

·     测试组开始测试后就不能再进入该测试组视图和测试类型视图进行配置修改,测试结束后才可以进入该测试组视图和测试类型视图。

·     在进行UDP-jitter类型测试前,必须配置Device B为NQA服务器。

3.4  配置步骤

(1)     配置Device B

# 使能NQA服务器,配置监听的IP地址为10.2.2.2,UDP端口号为9000。

<DeviceB> system-view

[DeviceB] nqa server enable

[DeviceB] nqa server udp-echo 10.2.2.2 9000

(2)     配置Device A

# 创建UDP-jitter类型的NQA测试组。

<DeviceA> system-view

[DeviceA] nqa entry admin test

[DeviceA-nqa-admin-test] type udp-jitter

# 配置测试操作的目的地址和目的端口号

[DeviceA-nqa-admin-test-udp-jitter] destination ip 10.2.2.2

[DeviceA-nqa-admin-test-udp-jitter] destination port 9000

# 测试组每次测试之间的时间间隔为1000毫秒。

[DeviceA-nqa-admin-test-udp-jitter] frequency 1000

[DeviceA-nqa-admin-test-udp-jitter] quit

3.5  验证配置

# 启动UDP-jitter测试操作。

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

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

[DeviceA] undo nqa schedule admin test

# 以上配置完成后,显示UDP-jitter测试中最后一次测试的结果。

[DeviceA] display nqa result admin test

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

    Send operation times: 10             Receive response times: 10

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

    Square-Sum of round trip time: 10

    Last packet received time: 2014-07-30 09:46:36.9

  Extended results:

    Packet loss ratio: 0%

    Failures due to timeout: 0

    Failures due to internal error: 0

    Failures due to other errors: 0

    Packets out of sequence: 0

    Packets arrived late: 0

  UDP-jitter results:

   RTT number: 10

    Min positive SD: 1                     Min positive DS: 0

    Max positive SD: 1                     Max positive DS: 0

    Positive SD number: 1                  Positive DS number: 0

    Positive SD sum: 1                     Positive DS sum: 0

    Positive SD average: 1                 Positive DS average: 0

    Positive SD square-sum: 1              Positive DS square-sum: 0

    Min negative SD: 0                     Min negative DS: 0

    Max negative SD: 0                     Max negative DS: 0

    Negative SD number: 0                  Negative DS number: 0

    Negative SD sum: 0                     Negative DS sum: 0

    Negative SD average: 0                 Negative DS average: 0

    Negative SD square-sum: 0              Negative DS square-sum: 0

  One way results:

    Max SD delay: 0                        Max DS delay: 0

    Min SD delay: 0                        Min DS delay: 0

    Number of SD delay: 0                  Number of DS delay: 0

    Sum of SD delay: 0                     Sum of DS delay: 0

    Square-Sum of SD delay: 0              Square-Sum of DS delay: 0

    SD lost packets: 0                     DS lost packets: 0

Lost packets for unknown reason: 0

# 显示UDP-jitter测试的统计结果。

[DeviceA] display nqa statistics admin test

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

  NO. : 1

    Start time: 2014-07-30 09:46:22.7

    Life time: 14 seconds

    Send operation times: 150            Receive response times: 150

    Min/Max/Average round trip time: 1/4/1

    Square-Sum of round trip time: 165

  Extended results:

    Packet loss ratio: 0%

    Failures due to timeout: 0

    Failures due to internal error: 0

    Failures due to other errors: 0

    Packets out of sequence: 0

    Packets arrived late: 0

  UDP-jitter results:

   RTT number: 150

    Min positive SD: 1                     Min positive DS: 1

    Max positive SD: 6                     Max positive DS: 1

    Positive SD number: 11                 Positive DS number: 5

    Positive SD sum: 16                    Positive DS sum: 5

    Positive SD average: 1                 Positive DS average: 1

    Positive SD square-sum: 46             Positive DS square-sum: 5

    Min negative SD: 5                     Min negative DS: 1

    Max negative SD: 5                     Max negative DS: 1

    Negative SD number: 1                  Negative DS number: 1

    Negative SD sum: 5                     Negative DS sum: 1

    Negative SD average: 5                 Negative DS average: 1

    Negative SD square-sum: 25             Negative DS square-sum: 1

  One way results:

    Max SD delay: 0                        Max DS delay: 0

    Min SD delay: 0                        Min DS delay: 0

    Number of SD delay: 0                  Number of DS delay: 0

    Sum of SD delay: 0                     Sum of DS delay: 0

    Square-Sum of SD delay: 0              Square-Sum of DS delay: 0

    SD lost packets: 0                     DS lost packets: 0

    Lost packets for unknown reason: 0

3.6  配置文件

·     Device B:

#

 nqa server enable

 nqa server udp-echo 10.2.2.2 9000

#

·     Device A:

#

nqa entry admin test

 type udp-jitter

  destination ip 10.2.2.2

  destination port 9000

  frequency 1000

#

4  SNMP测试配置举例

4.1  组网需求

图2所示,Device A为NQA客户端,现要求配置SNMP测试方案,使用户可以根据实际需要随时调用该测试方案测试从Device A发出SNMP协议查询报文到收到SNMP agent(Device B)响应报文所用的时间。

图2 SNMP测试配置组网图

 

4.2  使用版本

本举例是在R6728版本上进行配置和验证的。

4.3  配置注意事项

·     进行NQA测试之前,请确保各设备之间路由可达。

·     在进行SNMP类型测试前,必须在Device B上配置SNMP功能。

·     测试组开始测试后就不能再进入该测试组视图和测试类型视图进行配置修改,测试结束后才可以进入该测试组视图和测试类型视图。

4.4  配置步骤

(1)     配置Device B(SNMP Agent)

# 启动SNMP Agent服务,设置SNMP版本为all、只读团体名为public、读写团体名为private。

<DeviceB> system-view

[DeviceB] snmp-agent

[DeviceB] snmp-agent sys-info version all

[DeviceB] snmp-agent community read public

[DeviceB] snmp-agent community write private

(2)     配置Device A

# 创建SNMP查询类型的测试组。

<DeviceA> system-view

[DeviceA] nqa entry admin test

[DeviceA-nqa-admin-test] type snmp

# 配置测试操作的目的地址为SNMP agent的IP地址。

[DeviceA-nqa-admin-test-snmp] destination ip 10.2.2.2

# 开启NQA测试组的历史记录保存功能。

[DeviceA-nqa-admin-test-snmp] history-record enable

[DeviceA-nqa-admin-test-snmp] quit

4.5  验证配置

# 启动测试操作。

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

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

[DeviceA] undo nqa schedule admin test

# 以上配置完成后,显示SNMP测试中最后一次测试的结果。

[DeviceA] 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: 1/1/1

    Square-Sum of round trip time: 1

    Last succeeded probe time: 2014-07-30 10:07:28.2

  Extended results:

    Packet loss ratio: 0%

    Failures due to timeout: 0

    Failures due to internal error: 0

    Failures due to other errors: 0

# 显示SNMP测试的历史记录。

[DeviceA] display nqa history admin test

NQA entry (admin admin, tag test) history record(s):

Index      Response     Status           Time

1          1            Succeeded        2014-07-30 10:07:28.2

4.6  配置文件

·     Device B:

#

 snmp-agent

 snmp-agent local-engineid 800063A20300E0FC123456

 snmp-agent community read public

 snmp-agent community write private

 snmp-agent sys-info version all

#

·     Device A:

#

nqa entry admin test

 type snmp

  destination ip 10.2.2.2

  history-record enable

#

5  TCP测试配置举例

5.1  组网需求

图3所示,客户端(Device A)和服务器(Device B)指定端口(9000)之间建立TCP连接,现要求配置TCP测试方案,使用户可以根据实际需要测试建立TCP连接所需的时间,从而判断服务器指定端口上提供的服务是否可用,以及服务性能。

图3 TCP测试配置组网图

 

5.2  使用版本

本举例是在R6728版本上进行配置和验证的。

5.3  配置注意事项

·     进行NQA测试之前,请确保各设备之间路由可达。

·     在进行TCP类型测试前,必须配置Device B为NQA服务器。

·     测试组开始测试后就不能再进入该测试组视图和测试类型视图进行配置修改,测试结束后才可以进入该测试组视图和测试类型视图。

5.4  配置步骤

(1)     配置Device B

# 使能NQA服务器,配置监听的IP地址为10.2.2.2,TCP端口号为9000。

<DeviceB> system-view

[DeviceB] nqa server enable

[DeviceB] nqa server tcp-connect 10.2.2.2 9000

(2)     配置Device A

# 创建TCP类型的测试组。

<DeviceA> system-view

[DeviceA] nqa entry admin test

[DeviceA-nqa-admin-test] type tcp

# 配置测试操作的目的地址和目的端口号

[DeviceA-nqa-admin-test-tcp] destination ip 10.2.2.2

[DeviceA-nqa-admin-test-tcp] destination port 9000

# 开启NQA测试组的历史记录保存功能。

[DeviceA-nqa-admin-test-tcp] history-record enable

[DeviceA-nqa-admin-test-tcp] quit

5.5  验证配置

# 启动测试操作。

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

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

[DeviceA] undo nqa schedule admin test

# 以上配置完成后,显示TCP测试中最后一次测试的结果。

[DeviceA] 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: 1/1/1

    Square-Sum of round trip time: 1

    Last succeeded probe time: 2014-07-30 10:37:29.5

  Extended results:

    Packet loss ratio: 0%

    Failures due to timeout: 0

    Failures due to disconnect: 0

    Failures due to no connection: 0

    Failures due to internal error: 0

    Failures due to other errors: 0

# 显示TCP测试的历史记录。

[DeviceA] display nqa history admin test

NQA entry (admin admin, tag test) history record(s):

Index      Response     Status           Time

2          1            Succeeded        2014-07-30 10:37:29.5

1          0            Unknown error    2014-07-30 10:34:55.9

5.6  配置文件

·     Device B:

#

 nqa server enable

 nqa server tcp-connect 10.2.2.2 9000

#

·     Device A:

#

nqa entry admin test

 type tcp

  destination ip 10.2.2.2

  destination port 9000

  history-record enable

#

6  UDP-echo测试配置举例

6.1  组网需求

图4所示,客户端(Device A)和服务器(Device B)指定端口之间建立UDP连接,现要求配置UDP-echo测试方案,使用户可以根据实际需要随时调用该测试方案测试本端(Device A)和指定目的端(Device B)的端口8000之间的连通性以及UDP报文的往返时间。

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

 

6.2  使用版本

本举例是在R6728版本上进行配置和验证的。

6.3  配置注意事项

·     进行NQA测试之前,请确保各设备之间路由可达。

·     在进行UDP-echo类型测试前,必须配置DeviceB为NQA服务器。

·     测试组开始测试后就不能再进入该测试组视图和测试类型视图进行配置修改,测试结束后才可以进入该测试组视图和测试类型视图。

6.4  配置步骤

(1)     配置Device B

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

<DeviceB> system-view

[DeviceB] nqa server enable

[DeviceB] nqa server udp-echo 10.2.2.2 8000

(2)     配置Device A

# 创建UDP-echo类型的测试组。

<DeviceA> system-view

[DeviceA] nqa entry admin test

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

# 配置测试操作的目的地址和目的端口号。

[DeviceA-nqa-admin-test-udp-echo] destination ip 10.2.2.2

[DeviceA-nqa-admin-test-udp-echo] destination port 8000

# 开启NQA测试组的历史记录保存功能。

[DeviceA-nqa-admin-test-udp-echo] history-record enable

[DeviceA-nqa-admin-test-udp-echo] quit

6.5  验证配置

# 启动测试操作。

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

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

[DeviceA] undo nqa schedule admin test

# 以上配置完成后,显示UDP-echo测试中一次测试的结果。

[DeviceA] 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: 1/1/1

    Square-Sum of round trip time: 1

    Last succeeded probe time: 2014-07-30 11:10:35.2

  Extended results:

    Packet loss ratio: 0%

    Failures due to timeout: 0

    Failures due to internal error: 0

    Failures due to other errors: 0

# 显示UDP-echo测试的历史记录。

[DeviceA] display nqa history admin test

NQA entry (admin admin, tag test) history record(s):

Index      Response     Status           Time

1          1            Succeeded        2014-07-30 11:10:35.2

6.6  配置文件

·     Device B:

#

 nqa server enable

 nqa server udp-echo 10.2.2.2 8000

#

·     Device A:

#

nqa entry admin test

 type udp-echo

  destination ip 10.2.2.2

  destination port 8000

  history-record enable

#

7  Voice测试配置举例

7.1  组网需求

图5所示,Device A和Device B之间的网络承载了语音业务,现要求配置Voice测试方案,使用户可以根据实际需要随时调用该测试方案测试本端(Device A)和指定的目的端(Device B)之间传送语音报文的时延抖动和网络语音质量参数。

图5 Voice测试配置组网图

 

7.2  使用版本

本举例是在R6728版本上进行配置和验证的。

7.3  配置注意事项

·     进行NQA测试之前,请确保各设备之间路由可达。

·     在进行Voice类型测试前,必须配置Device B为NQA服务器。

·     测试组开始测试后就不能再进入该测试组视图和测试类型视图进行配置修改,测试结束后才可以进入该测试组视图和测试类型视图。

7.4  配置步骤

(1)     配置Device B

# 使能NQA服务器,配置监听的IP地址为10.2.2.2,UDP端口号为9000。

<DeviceB> system-view

[DeviceB] nqa server enable

[DeviceB] nqa server udp-echo 10.2.2.2 9000

(2)     配置Device A

# 创建Voice类型的测试组。

<DeviceA> system-view

[DeviceA] nqa entry admin test

[DeviceA-nqa-admin-test] type voice

# 配置测试操作的目的地址和目的端口号

[DeviceA-nqa-admin-test-voice] destination ip 10.2.2.2

[DeviceA-nqa-admin-test-voice] destination port 9000

[DeviceA-nqa-admin-test-voice] quit

7.5  验证配置

# 启动测试操作。

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

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

[DeviceA] undo nqa schedule admin test

# 以上配置完成后,显示Voice测试中一次测试的结果。

[DeviceA] display nqa result admin test

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

    Send operation times: 157            Receive response times: 157

    Min/Max/Average round trip time: 1/3/1

    Square-Sum of round trip time: 165

    Last packet received time: 2014-07-30 14:27:52.8

  Extended results:

    Packet loss ratio: 0%

    Failures due to timeout: 0

    Failures due to internal error: 0

    Failures due to other errors: 0

    Packets out of sequence: 0

    Packets arrived late: 0

  Voice results:

   RTT number: 157

    Min positive SD: 2                     Min positive DS: 1

    Max positive SD: 4                     Max positive DS: 1

    Positive SD number: 2                  Positive DS number: 5

    Positive SD sum: 6                     Positive DS sum: 5

    Positive SD average: 3                 Positive DS average: 1

    Positive SD square-sum: 20             Positive DS square-sum: 5

    Min negative SD: 2                     Min negative DS: 1

    Max negative SD: 4                     Max negative DS: 1

    Negative SD number: 2                  Negative DS number: 6

    Negative SD sum: 6                     Negative DS sum: 6

    Negative SD average: 3                 Negative DS average: 1

    Negative SD square-sum: 20             Negative DS square-sum: 6

  One way results:

    Max SD delay: 0                        Max DS delay: 0

    Min SD delay: 0                        Min DS delay: 0

    Number of SD delay: 0                  Number of DS delay: 0

    Sum of SD delay: 0                     Sum of DS delay: 0

    Square-Sum of SD delay: 0              Square-Sum of DS delay: 0

    SD lost packets: 0                     DS lost packets: 0

    Lost packets for unknown reason: 0

  Voice scores:

    MOS value: 0.00                        ICPIF value: 0

# 显示Voice测试的统计结果。

[DeviceA] display nqa statistics admin test

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

  NO. : 1

    Start time: 2014-07-30 14:30:30.0

    Life time: 204 seconds

    Send operation times: 4000           Receive response times: 4000

    Min/Max/Average round trip time: 1/32/1

    Square-Sum of round trip time: 12853

  Extended results:

    Packet loss ratio: 0%

    Failures due to timeout: 0

    Failures due to internal error: 0

    Failures due to other errors: 0

    Packets out of sequence: 0

    Packets arrived late: 0

  Voice results:

   RTT number: 4000

    Min positive SD: 1                     Min positive DS: 1

    Max positive SD: 32                    Max positive DS: 1

    Positive SD number: 76                 Positive DS number: 72

    Positive SD sum: 567                   Positive DS sum: 72

    Positive SD average: 7                 Positive DS average: 1

    Positive SD square-sum: 9011           Positive DS square-sum: 72

    Min negative SD: 1                     Min negative DS: 1

    Max negative SD: 20                    Max negative DS: 1

    Negative SD number: 87                 Negative DS number: 67

    Negative SD sum: 569                   Negative DS sum: 67

    Negative SD average: 7                 Negative DS average: 1

    Negative SD square-sum: 6715           Negative DS square-sum: 67

  One way results:

    Max SD delay: 0                        Max DS delay: 0

    Min SD delay: 0                        Min DS delay: 0

    Number of SD delay: 0                  Number of DS delay: 0

    Sum of SD delay: 0                     Sum of DS delay: 0

    Square-Sum of SD delay: 0              Square-Sum of DS delay: 0

    SD lost packets: 0                     DS lost packets: 0

    Lost packets for unknown reason: 0

  Voice scores:

    Max MOS value: 4.40                    Min MOS value: 4.40

Max ICPIF value: 0                     Min ICPIF value: 0

7.6  配置文件

·     Device B:

#

 nqa server enable

 nqa server udp-echo 10.2.2.2 8000

#

·     Device A:

#

nqa entry admin test

 type voice

  destination ip 10.2.2.2

  destination port 9000

#

8  DLSw测试配置举例

8.1  组网需求

图6所示,Device B为支持DLSw的设备,现要求配置DLSw测试方案,使用户可以根据实际需要随时调用该测试方案测试DLSw设备的响应时间。

图6 DLSw测试配置组网图

8.2  使用版本

本举例是在R6728版本上进行配置和验证的。

8.3  配置注意事项

·     进行NQA测试之前,请确保各设备之间路由可达。

·     测试组开始测试后就不能再进入该测试组视图和测试类型视图进行配置修改,测试结束后才可以进入该测试组视图和测试类型视图。

8.4  配置步骤

# 创建DLSw类型的测试组。

<DeviceA> system-view

[DeviceA] nqa entry admin test

[DeviceA-nqa-admin-test] type dlsw

# 配置测试操作的目的地址。

[DeviceA-nqa-admin-test-dlsw] destination ip 10.2.2.2

# 开启NQA测试组的历史记录保存功能。

[DeviceA-nqa-admin-test-dlsw] history-record enable

[DeviceA-nqa-admin-test-dlsw] quit

8.5  验证配置

# 启动测试操作。

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

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

[DeviceA] undo nqa schedule admin test

# 以上配置完成后,显示DLSw测试中最后一次测试的结果。

[DeviceA] 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: 19/19/19

    Square-Sum of round trip time: 361

    Last succeeded probe time: 2014-07-22 10:40:27.7

  Extended results:

    Packet loss ratio: 0%

    Failures due to timeout: 0

    Failures due to disconnect: 0

    Failures due to no connection: 0

    Failures due to internal error: 0

    Failures due to other errors: 0

# 显示DLSw测试的历史记录。

[DeviceA] display nqa history admin test

NQA entry (admin admin, tag test) history records:

  Index      Response     Status           Time

  1          19           Succeeded        2014-07-22 10:40:27.7

8.6  配置文件

#

nqa entry admin test

 type dlsw

  destination ip 10.2.2.2

  history-record enable

#

9  相关资料

·     《H3C MSR 系列路由器 命令参考(V7)》中的“网络管理和监控命令参考”

·     《H3C MSR 系列路由器 配置指导(V7)》中的“网络管理和监控配置指导”

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

新华三官网
联系我们