16-H3C SR6600-F路由器 NQA典型配置举例
本章节下载: 16-H3C SR6600-F路由器 NQA典型配置举例 (217.23 KB)
H3C SR6600-F NQA典型配置举例
Copyright © 2018 新华三技术有限公司 版权所有,保留一切权利。 非经本公司书面许可,任何单位和个人不得擅自摘抄、复制本文档内容的部分或全部, 并不得以任何形式传播。本文档中的信息可能变动,恕不另行通知。 |
|
目 录
本文档介绍了NQA(Network Quality Analyzer,网络质量分析)特性的典型配置举例。
NQA通过发送测试报文,对网络性能、网络提供的服务及服务质量进行分析,并为用户提供网络性能和服务质量的参数,如时延抖动、TCP连接时延、FTP连接时延和文件传输速率等。利用NQA的测试结果,用户可以及时了解网络的性能状况,针对不同的网络性能进行相应处理并对网络故障进行诊断和定位。
本文档中的配置均是在实验室环境下进行的配置和验证,配置前设备的所有参数均采用出厂时的缺省配置。如果您已经对设备进行了配置,为了保证配置效果,请确认现有配置和以下举例中的配置不冲突。
本文假设您已了解NQA特性。
ICMP-echo测试不支持在IPv6网络中使用,如果要测试IPv6网络中目的主机的可达性,可以使用ping ipv6命令;
当前网络如图4-1所示,Device A到Device D有两条链路,其中经过Device B的是一条次优的备份链路。现要求配置ICMP-echo测试方案,使用户可以根据实际需要随时调用该测试方案测试Device A发送的报文经过指定的下一跳(Device B)是否可以到达Device D,以及报文的往返时间。
图4-1 ICMP-echo测试组网图
本举例是在R7607版本上进行配置和验证的。
· 进行NQA测试之前,请确保各设备之间路由可达。
· 测试组开始测试后就不能再进入该测试组视图和测试类型视图进行配置修改,测试结束后才可以进入该测试组视图和测试类型视图。
# 创建ICMP-echo类型的NQA测试组(管理员为admin,操作标签为test),并配置测试操作的目的地址为60.1.1.1。
[DeviceA] nqa entry admin test
[DeviceA-nqa-admin-test] type icmp-echo
[DeviceA-nqa-admin-test-icmp-echo] destination ip 60.1.1.1
# 配置下一跳地址为10.1.1.2,以便测试报文经过指定的下一跳设备(Device B)到达目的端,而不是通过Device C到达目的端。
[DeviceA-nqa-admin-test-icmp-echo] next-hop 10.1.1.2
# 配置可选参数:一次NQA测试中探测的次数为10,探测的超时时间为500毫秒,测试组连续两次测试开始时间的时间间隔为5000毫秒。
[DeviceA-nqa-admin-test-icmp-echo] probe count 10
[DeviceA-nqa-admin-test-icmp-echo] probe timeout 500
[DeviceA-nqa-admin-test-icmp-echo] frequency 5000
# 开启NQA历史记录保存功能,并配置一个测试组中能够保存的最大历史记录个数为10。
[DeviceA-nqa-admin-test-icmp-echo] history-record enable
[DeviceA-nqa-admin-test-icmp-echo] history-record number 10
[DeviceA-nqa-admin-test-icmp-echo] quit
# 启动ICMP-echo测试方案进行测试。
[DeviceA] nqa schedule admin test start-time now lifetime forever
# 测试执行一段时间后,停止ICMP-echo测试操作。
[DeviceA] undo nqa schedule admin test
# 以上配置完成后,显示ICMP-echo测试中最后一次测试的结果。
[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: 2/5/3
Square-Sum of round trip time: 96
Last succeeded probe time: 2017-03-23 15:00:01.2
Extended results:
Packet loss ratio: 0%
Failures due to timeout: 0
Failures due to internal error: 0
Failures due to other errors: 0
# 显示ICMP-echo测试的历史记录。
[DeviceA] display nqa history admin test
NQA entry (admin admin, tag test) history records:
Index Response Status Time
370 3 Succeeded 2017-03-23 15:00:01.2
369 3 Succeeded 2017-03-23 15:00:01.2
368 3 Succeeded 2017-03-23 15:00:01.2
367 5 Succeeded 2017-03-23 15:00:01.2
366 3 Succeeded 2017-03-23 15:00:01.2
365 3 Succeeded 2017-03-23 15:00:01.2
364 3 Succeeded 2017-03-23 15:00:01.1
363 2 Succeeded 2017-03-23 15:00:01.1
362 3 Succeeded 2017-03-23 15:00:01.1
361 2 Succeeded 2017-03-23 15:00:01.1
以上显示信息表示,Device A发送的报文可以通过Device B到达Device D;测试过程中未发生丢包;报文的最小、最大、平均往返时间分别为2毫秒、5毫秒和3毫秒。
#
nqa entry admin test
type icmp-echo
destination ip 60.1.1.1
frequency 5000
history-record enable
history-record number 10
next-hop 10.1.1.2
probe count 10
probe timeout 500
#
当前网络如图5-1所示,现要求配置DHCP测试方案,使用户可以根据实际需要随时调用该测试方案测试Device A是否可以从DHCP服务器Device B申请到IP地址以及申请到IP地址所需的时间。
图5-1 DHCP测试组网图
本举例是在R7607版本上进行配置和验证的。
· 进行NQA测试之前,请确保各设备之间路由可达。
· 测试组开始测试后就不能再进入该测试组视图和测试类型视图进行配置修改,测试结束后才可以进入该测试组视图和测试类型视图。
· 在进行DHCP测试之前,需要完成DHCP服务器的配置。
# 创建DHCP类型的NQA测试组。
<DeviceA> system-view
[DeviceA] nqa entry admin test
[DeviceA-nqa-admin-test] type dhcp
# 指定进行DHCP测试的目的地址为10.1.1.2。
[DeviceA-nqa-admin-test-dhcp] destination ip 10.1.1.2
# 开启NQA测试组的历史记录保存功能。
[DeviceA-nqa-admin-test-dhcp] history-record enable
[DeviceA-nqa-admin-test-dhcp] quit
# 启动DHCP测试方案进行测试。
[DeviceA] nqa schedule admin test start-time now lifetime forever
# 测试执行一段时间后,停止DHCP测试操作。
[DeviceA] undo nqa schedule admin test
# 以上配置完成后,显示DHCP测试中最后一次测试的结果。
[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: 624/624/624
Square-Sum of round trip time: 389376
Last succeeded probe time: 2017-03-24 09:56:03.2
Extend results:
Packet lost in test: 0%
Failures due to timeout: 0
Failures due to internal error: 0
Failures due to other errors: 0
# 显示DHCP测试的历史记录。
[DeviceA] display nqa history admin test
NQA entry(admin admin, tag test) history record(s):
Index Response Status Time
1 624 Succeeded 2017-03-24 09:56:03.2
以上显示信息表示,Router A可以从DHCP服务器获取IP地址,获取IP地址所需的时间为624毫秒。
#
nqa entry admin test
type dhcp
destination ip 10.1.1.2
history-record enable
#
当前网络如图6-1所示,现要求配置DNS测试方案,使用户可以根据实际需要随时调用该测试方案测试Device A是否可以通过指定的DNS服务器将域名host.com解析为IP地址,以及域名解析所需的时间。
图6-1 DNS测试组网图
· 进行NQA测试之前,请确保各设备之间路由可达。
· 测试组开始测试后就不能再进入该测试组视图和测试类型视图进行配置修改,测试结束后才可以进入该测试组视图和测试类型视图。
# 创建DNS类型的NQA测试组。
<DeviceA> system-view
[DeviceA] nqa entry admin test
[DeviceA-nqa-admin-test] type dns
# 配置DNS服务器的IP地址为10.2.2.2,要解析的域名为host.com。
[DeviceA-nqa-admin-test-dns] destination ip 10.2.2.2
[DeviceA-nqa-admin-test-dns] resolve-target host.com
# 开启NQA测试组的历史记录保存功能。
[DeviceA-nqa-admin-test-dns] history-record enable
[DeviceA-nqa-admin-test-dns] quit
# 启动DNS测试方案进行测试。
[DeviceA] nqa schedule admin test start-time now lifetime forever
# 测试执行一段时间后,停止DNS测试操作。
[DeviceA] undo nqa schedule admin test
# 以上配置完成后,显示DNS测试中最后一次测试的结果。
[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: 62/62/62
Square-Sum of round trip time: 3844
Last succeeded probe time: 2017-03-24 10:49:37.3
Extended results:
Packet lost in test: 0%
Failures due to timeout: 0
Failures due to internal error: 0
Failures due to other errors: 0
# 显示DNS测试的历史记录。
[DeviceA] display nqa history admin test
NQA entry(admin admin, tag test) history record(s):
Index Response Status Time
1 62 Succeeded 2017-03-24 10:49:37.3
以上显示信息表示,Device A可以通过指定的DNS服务器将域名host.com解析为IP地址,域名解析所需的时间为62毫秒。
#
nqa entry admin test
type dns
destination ip 10.2.2.2
history-record enable
resolve-target host.com
#
当前网络如图7-1所示,登录FTP服务器的用户名为admin,密码为systemtest,现要求配置FTP测试方案,使用户可以根据实际需要随时调用该测试方案测试Device A是否可以与指定的FTP服务器Device B建立连接,以及与FTP服务器之间传送文件的时间,从而判断FTP服务器的连通性及性能。
图7-1 FTP测试组网图
· 进行NQA测试之前,请确保各设备之间路由可达。
· 测试组开始测试后就不能再进入该测试组视图和测试类型视图进行配置修改,测试结束后才可以进入该测试组视图和测试类型视图。
· 进行put操作时,通过filename命令指定的文件在NQA客户端对应存储介质中必须存在,否则将导致测试失败。
· 进行FTP测试时,建议选用较小的测试文件并将NQA探测超时时间调大,如果测试文件太大或探测超时时间太小,可能会导致探测超时。
# 创建FTP类型的NQA测试组。
<DeviceA> system-view
[DeviceA] nqa entry admin test
[DeviceA-nqa-admin-test] type ftp
# 配置测试操作的目的地址为FTP服务器的IP地址10.2.2.2。
[DeviceA-nqa-admin-test-ftp] url ftp://10.2.2.2
# 配置探测报文的源IP地址为10.1.1.1。
[DeviceA-nqa-admin-test-ftp] source ip 10.1.1.1
# 配置FTP操作类型。
[DeviceA-nqa-admin-test-ftp] operation put
# 配置客户端传送文件的文件名。
[DeviceA-nqa-admin-test-ftp] filename config.txt
# 配置登录FTP服务器的用户名和密码。
[DeviceA-nqa-admin-test-ftp] username admin
[DeviceA-nqa-admin-test-ftp] password simple systemtest
# 开启NQA测试组的历史记录保存功能。
[DeviceA-nqa-admin-test-ftp] history-record enable
[DeviceA-nqa-admin-test-ftp] quit
# 启动FTP测试方案进行测试。
[DeviceA] nqa schedule admin test start-time now lifetime forever
# 测试执行一段时间后,停止FTP测试操作。
[DeviceA] undo nqa schedule admin test
# 以上配置完成后,显示FTP测试中最后一次测试的结果。
[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: 173/173/173
Square-Sum of round trip time: 29929
Last succeeded probe time: 2017-03-25 10:07:28.6
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 internal error: 0
Failures due to other errors: 0
# 显示FTP测试的历史记录。
[DeviceA] display nqa history admin test
NQA entry(admin admin, tag test) history record(s):
Index Response Status Time
1 173 Succeeded 2017-03-25 10:07:28.6
以上显示信息表示,Device A可以和指定的FTP服务器Device B建立连接,向FTP服务器上传一个文件的时间是173毫秒。
#
nqa entry admin test
type ftp
filename config.txt
history-record enable
operation put
password cipher $c$3$BP255atzDilAfIPwfh+RMHqmP5LTiKWpVf/hpBs=
source ip 10.1.1.1
url ftp://10.2.2.2
username admin
#
当前网络如图8-1所示,现要求配置HTTP测试方案,使用户可以根据实际需要随时调用该测试方案测试Device A是否可以与指定的HTTP服务器建立连接,以及访问HTTP服务器网页index.htm所需的时间,从而判断HTTP服务器的连通性及性能。
图8-1 HTTP测试组网图
· 进行NQA测试之前,请确保各设备之间路由可达。
· 测试组开始测试后就不能再进入该测试组视图和测试类型视图进行配置修改,测试结束后才可以进入该测试组视图和测试类型视图。
# 创建HTTP类型的NQA测试组。
<DeviceA> system-view
[DeviceA] nqa entry admin test
[DeviceA-nqa-admin-test] type http
# 配置HTTP测试服务器的IP地址为10.2.2.2,访问的网址为/index.htm。
[DeviceA-nqa-admin-test-http] url http://10.2.2.2/index.htm
# 开启NQA测试组的历史记录保存功能。
[DeviceA-nqa-admin-test-http] history-record enable
[DeviceA-nqa-admin-test-http] quit
# 至此,已完成HTTP测试方案配置。
# 启动HTTP测试方案进行测试。
[DeviceA] nqa schedule admin test start-time now lifetime forever
# 测试执行一段时间后,停止HTTP测试操作。
[DeviceA] undo nqa schedule admin test
# 以上配置完成后,显示HTTP测试中一次测试的结果。
[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: 64/64/64
Square-Sum of round trip time: 4096
Last succeeded probe time: 2017-03-25 11:12:47.9
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 internal error: 0
Failures due to other errors: 0
# 显示HTTP测试的历史记录。
[DeviceA] display nqa history admin test
NQA entry(admin admin, tag test) history record(s):
Index Response Status Time
1 64 Succeeded 2017-03-25 11:12:47.9
以上显示信息表示,Device A可以和指定的HTTP服务器Device B建立连接,从HTTP服务器获取数据的时间为64毫秒。
#
nqa entry admin test
type http
history-record enable
url http://10.2.2.2/index.htm
#
· H3C SR6600-F 路由器 网络管理和监控配置指导-R7607
· H3C SR6600-F 路由器 网络管理和监控命令参考-R7607
不同款型规格的资料略有差异, 详细信息请向具体销售和400咨询。H3C保留在没有任何通知或提示的情况下对资料内容进行修改的权利!