NQA(Network Quality Analyzer,网络质量分析)通过发送测试报文,对网络性能、网络提供的服务及服务质量进行分析,并为用户提供网络性能和服务质量的参数。利用NQA 的测试结果,用户可以及时了解网络的性能状况,针对不同的网络性能进行相应处理并对网络故障进行诊断和定位。
创建NQA的ICMP-echo的测试:
[S3100]nqa entry admin test #创建管理员为admin,操作标签为test。
[S3100-nqa-admin-test]type icmp-echo
[S3100-nqa-admin-test-icmp-echo]destination ip 220.178.251.1 #配置测试类型,指定测试目的ip。
[S3100-nqa-admin-test-icmp-echo]next-hop ip 192.168.1.1 #在交换机有多个出口时指定走哪条出口。
[S3100-nqa-admin-test-icmp-echo]probe count 10
[S3100-nqa-admin-test-icmp-echo]probe timeout 500
[S3100-nqa-admin-test-icmp-echo]frequency 5000
#一次NQA测试中探测的次数为10,探测超时500毫秒,两次开始探测时间间隔5000毫秒。
[S3100-nqa-admin-test-icmp-echo]history-record enable
[S3100-nqa-admin-test-icmp-echo]history-record number 10
#开启NQA历史保存记录,并配置一个测试组中保存的最大历史记录数为10。
[S3100-nqa-admin-test-icmp-echo]quit
验证:
[S3100]nqa schedule admin test start-time now lifetime forever #启动测试。
[S3100]undo nqa schedule admin test #测试一段时间后关闭测试。
[S3100]display nqa result admin test #显示最后一次ICMP-echo的测试结果。
NQA entry (admin admin, tag test) test results:
Send operation times: 10 Receive response times: 10
Min/Max/Average round trip time: 27/44/31 #最小、最大、平均延迟
Square-Sum of round trip time: 10283
Last succeeded probe time: 2019-06-07 14:57:53.2
Extended results:
Packet loss ratio: 0%
Failures due to timeout: 0
Failures due to internal error: 0
Failures due to other errors: 0
[S3100]display nqa history admin test #显示历史测试记录,
NQA entry (admin admin, tag test) history records:
Index Response Status Time
830 30 Succeeded 2019-06-07 14:57:53.2
829 36 Succeeded 2019-06-07 14:57:53.2
828 27 Succeeded 2019-06-07 14:57:53.1
827 30 Succeeded 2019-06-07 14:57:53.1
826 32 Succeeded 2019-06-07 14:57:53.1
825 28 Succeeded 2019-06-07 14:57:53.0
824 27 Succeeded 2019-06-07 14:57:53.0
823 44 Succeeded 2019-06-07 14:57:53.0
822 31 Succeeded 2019-06-07 14:57:52.9
821 32 Succeeded 2019-06-07 14:57:52.9
创建NQA的DHCP测试:
[S3100]nqa entry admin test
[S3100-nqa-admin-test]type dhcp
[S3100-nqa-admin-test-dhcp]destination ip 192.168.1.1 #指定测试DHCP服务器地址。
[S3100-nqa-admin-test-dhcp]history-record enable #开启NQA测试的历史记录保存功能。
[S3100-nqa-admin-test-dhcp]quit
验证:
[S3100]nqa schedule admin test start-time now lifetime forever #启动测试。
[S3100]undo nqa schedule admin test #测试一段时间后关闭测试。
[S3100]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: 508/508/508
Square-Sum of round trip time: 258064
Last succeeded probe time: 2019-06-07 15:20:33.0
Extended results:
Packet loss ratio: 0%
Failures due to timeout: 0
Failures due to internal error: 0
Failures due to other errors: 0
[S3100]display nqa history admin test #从服务器获取的ip所需时间508毫秒。
NQA entry (admin admin, tag test) history records:
Index Response Status Time
1 508 Succeeded 2019-06-07 15:20:33.0
创建NQA的DNS测试:
[S3100]nqa entry admin test
[S3100-nqa-admin-test]type dns #配置dns解析测试
[S3100-nqa-admin-test-dns]destination ip 202.96.134.133
[S3100-nqa-admin-test-dns]resolve-target www.sina.com
#指定dns,和指定需要解析的域名
[S3100-nqa-admin-test-dns]history-record e
[S3100-nqa-admin-test-dns]history-record enable
#开启dns解析记录功能
[S3100-nqa-admin-test-dns]quit
验证:
[S3100]nqa schedule admin test start-time now lifetime forever #启动测试。
[S3100]undo nqa schedule admin test #测试一段时间后关闭测试。
[S3100]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: 11/11/11
Square-Sum of round trip time: 121
Last succeeded probe time: 2019-06-07 15:46:40.4
Extended results:
Packet loss ratio: 0%
Failures due to timeout: 0
Failures due to internal error: 0
Failures due to other errors: 0
[S3100]display nqa history admin test
NQA entry (admin admin, tag test) history records:
Index Response Status Time
1 11 Succeeded 2019-06-07 15:46:40.4
创建NQA的HTTP测试:
[S3100]nqa entry admin test
[S3100-nqa-admin-test]type http
[S3100-nqa-admin-test-http]url http://www.baidu.com/index.html
[S3100-nqa-admin-test-http]history-record enable
[S3100-nqa-admin-test-http]quit
验证:
[S3100]nqa schedule admin test start-time now lifetime forever #启动测试。
[S3100]undo nqa schedule admin test #测试一段时间后关闭测试。
[S3100]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: 40/40/40
Square-Sum of round trip time: 1600
Last succeeded probe time: 2019-06-07 16:01:26.3
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
[S3100]display nqa history admin test
NQA entry (admin admin, tag test) history records:
Index Response Status Time
1 40 Succeeded 2019-06-07 16:01:26.3