• 產品與解決方案
  • 行業解決方案
  • 服務
  • 支持
  • 合作夥伴
  • 關於我們

11-網絡管理和監控配置舉例

目錄

01-H3C_NQA典型配置舉例

本章節下載 01-H3C_NQA典型配置舉例  (393.81 KB)

01-H3C_NQA典型配置舉例

H3C NQA典型配置舉例

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

資料版本:6W100-20190330

產品版本:Release 7577P04

 

Copyright © 2019 bobty下载软件 版權所有,保留一切權利。

非經本公司書麵許可,任何單位和個人不得擅自摘抄、複製本文檔內容的部分或全部,並不得以任何形式傳播。

除bobty下载软件 的商標外,本手冊中出現的其它公司的商標、產品標識及商品名稱,由各自權利人擁有。

本文檔中的信息可能變動,恕不另行通知。

 


目  錄

1 簡介

2 配置前提

3 使用限製

4 ICMP-echo測試配置指導

4.1 組網需求

4.2 使用版本

4.3 配置注意事項

4.4 配置步驟

4.5 驗證配置

4.6 配置文件

5 ICMP-jitter測試配置舉例

5.1 組網需求

5.2 使用版本

5.3 配置注意事項

5.4 配置步驟

5.5 驗證配置

5.6 配置文件

6 DHCP測試配置舉例

6.1 組網需求

6.2 使用版本

6.3 配置注意事項

6.4 配置步驟

6.5 驗證配置

6.6 配置文件

7 DNS測試配置舉例

7.1 組網需求

7.2 使用版本

7.3 配置注意事項

7.4 配置步驟

7.5 驗證配置

7.6 配置文件

8 FTP測試配置舉例

8.1 組網需求

8.2 使用版本

8.3 配置注意事項

8.4 配置步驟

8.5 驗證配置

8.6 配置文件

9 HTTP測試配置舉例

9.1 組網需求

9.2 使用版本

9.3 配置注意事項

9.4 配置步驟

9.5 驗證配置

9.6 配置文件

10 UDP-jitter測試配置舉例

10.1 組網需求

10.2 使用版本

10.3 配置注意事項

10.4 配置步驟

10.5 驗證配置

10.6 配置文件

11 SNMP測試配置舉例

11.1 組網需求

11.2 使用版本

11.3 配置注意事項

11.4 配置步驟

11.5 驗證配置

11.6 配置文件

12 TCP測試配置舉例

12.1 組網需求

12.2 使用版本

12.3 配置注意事項

12.4 配置步驟

12.5 驗證配置

12.6 配置文件

13 UDP-echo測試配置舉例

13.1 組網需求

13.2 使用版本

13.3 配置注意事項

13.4 配置步驟

13.5 驗證配置

13.6 配置文件

14 UDP-tracert測試配置舉例

14.1 組網需求

14.2 使用版本

14.3 配置注意事項

14.4 配置步驟

14.5 驗證配置

14.6 配置文件

15 Voice測試配置舉例

15.1 組網需求

15.2 使用版本

15.3 配置注意事項

15.4 配置步驟

15.5 驗證配置

15.6 配置文件

16 DLSw測試配置舉例

16.1 組網需求

16.2 使用版本

16.3 配置注意事項

16.4 配置步驟

16.5 驗證配置

16.6 配置文件

17 Path-jitter測試配置舉例

17.1 組網需求

17.2 使用版本

17.3 配置注意事項

17.4 配置步驟

17.5 驗證配置

17.6 配置文件

18 相關資料

 


1  簡介

本文檔介紹了NQA(Network Quality Analyzer,網絡質量分析)特性的典型配置舉例。

NQA通過發送測試報文,對網絡性能、網絡提供的服務及服務質量進行分析,並為用戶提供網絡性能和服務質量的參數,如時延抖動、TCP連接時延、FTP連接時延和文件傳輸速率等。利用NQA的測試結果,用戶可以及時了解網絡的性能狀況,針對不同的網絡性能進行相應處理並對網絡故障進行診斷和定位。

2  配置前提

本文檔中的配置均是在實驗室環境下進行的配置和驗證,配置前設備的所有參數均采用出廠時的缺省配置。如果您已經對設備進行了配置,為了保證配置效果,請確認現有配置和以下舉例中的配置不衝突。

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

3  使用限製

ICMP-echo測試不支持在IPv6網絡中使用,如果要測試IPv6網絡中目的主機的可達性,可以使用ping ipv6命令;

4  ICMP-echo測試配置指導

4.1  組網需求

當前網絡如圖1所示,Switch A到Switch D有兩條鏈路,其中經過Switch B的是一條次優的備份鏈路。現要求配置ICMP-echo測試方案,使用戶可以根據實際需要隨時調用該測試方案測試Switch A發送的報文經過指定的下一跳(Switch B)是否可以到達Switch D,以及報文的往返時間。

圖1 ICMP-echo測試組網圖

 

4.2  使用版本

本舉例是在S7600X-CMW710-R7577P01版本上進行配置和驗證的

4.3  配置注意事項

·              進行NQA測試之前,請確保各設備之間路由可達。

·              測試組開始測試後就不能再進入該測試組視圖和測試類型視圖進行配置修改,測試結束後才可以進入該測試組視圖和測試類型視圖。

4.4  配置步驟

# 創建ICMP-echo類型的NQA測試組(管理員為admin,操作標簽為test),並配置測試操作的目的地址為60.1.1.1。

<SwitchA> system-view

[SwitchA] nqa entry admin test

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

[SwitchA-nqa-admin-test-icmp-echo] destination ip 60.1.1.1

# 配置下一跳地址為10.1.1.2,以便測試報文經過指定的下一跳設備(Switch B)到達目的端,而不是通過Switch C到達目的端。

[SwitchA-nqa-admin-test-icmp-echo] next-hop ip 10.1.1.2

# 配置可選參數:一次NQA測試中探測的次數為10,探測的超時時間為500毫秒,測試組連續兩次測試開始時間的時間間隔為5000毫秒。

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

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

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

# 開啟NQA曆史記錄保存功能,並配置一個測試組中能夠保存的最大曆史記錄個數為10。

[SwitchA-nqa-admin-test-icmp-echo] history-record enable

[SwitchA-nqa-admin-test-icmp-echo] history-record number 10

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

4.5  驗證配置

# 啟動ICMP-echo測試方案進行測試。

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

# 測試執行一段時間後,停止ICMP-echo測試操作。

[SwitchA] undo nqa schedule admin test

# 以上配置完成後,顯示ICMP-echo測試中最後一次測試的結果。

[SwitchA] 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: 2014-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測試的曆史記錄。

[SwitchA] display nqa history admin test

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

  Index      Response     Status           Time

  370        3            Succeeded        2014-03-23 15:00:01.2

  369        3            Succeeded        2014-03-23 15:00:01.2

  368        3            Succeeded        2014-03-23 15:00:01.2

  367        5            Succeeded        2014-03-23 15:00:01.2

  366        3            Succeeded        2014-03-23 15:00:01.2

  365        3            Succeeded        2014-03-23 15:00:01.2

  364        3            Succeeded        2014-03-23 15:00:01.1

  363        2            Succeeded        2014-03-23 15:00:01.1

  362        3            Succeeded        2014-03-23 15:00:01.1

  361        2            Succeeded        2014-03-23 15:00:01.1

以上顯示信息表示,Switch A發送的報文可以通過Switch B到達Switch D;測試過程中未發生丟包;報文的最小、最大、平均往返時間分別為2毫秒、5毫秒和3毫秒。

4.6  配置文件

#

nqa entry admin test

 type icmp-echo

  destination ip 60.1.1.1

  frequency 5000

  history-record enable

  history-record number 10

  next-hop ip 10.1.1.2

  probe count 10

  probe timeout 500

#

5  ICMP-jitter測試配置舉例

5.1  組網需求

圖2所示,Device A和Device B之間的網絡承載了語音、視頻等實時性業務,對時延抖動(Delay jitter)的要求較高。現要求配置ICMP-jitter測試方案,使用戶可以根據實際需要隨時調用該測試方案測試本端(Device A)和指定目的端(Device B)之間傳送報文的單向和雙向時延抖動,從而判斷網絡是否可以承載實時性業務。

圖2 ICMP-jitter測試組網圖

 

5.2  使用版本

本舉例是在S7600X-CMW710-R7577P01版本上進行配置和驗證的

5.3  配置注意事項

·              進行NQA測試之前,請確保各設備之間路由可達。

·              測試組開始測試後就不能再進入該測試組視圖和測試類型視圖進行配置修改,測試結束後才可以進入該測試組視圖和測試類型視圖。

·              用戶需要根據網絡實際情況配置測試運行時間。

5.4  配置步驟

# 創建ICMP-jitter類型的NQA測試組。

<DeviceA> system-view

[DeviceA] nqa entry admin test

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

# 配置測試操作的探測報文的目的地址為10.2.2.2。

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

# 配置可選參數:測試組連續兩次測試開始時間的時間間隔為1000毫秒。

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

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

5.5  驗證配置

# 啟動ICMP-jitter測試方案進行測試。

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

# 測試執行一段時間後,停止ICMP-jitter測試操作。

[DeviceA] undo nqa schedule admin test

# 以上配置完成後,顯示ICMP-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/2/1

    Square-Sum of round trip time: 13

    Last packet received time: 2015-03-09 17:40:29.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

  ICMP-jitter results:

   RTT number: 10

    Min positive SD: 0                     Min positive DS: 0

    Max positive SD: 0                     Max positive DS: 0

    Positive SD number: 0                  Positive DS number: 0

    Positive SD sum: 0                     Positive DS sum: 0

    Positive SD average: 0                 Positive DS average: 0

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

    Min negative SD: 1                     Min negative DS: 2

    Max negative SD: 1                     Max negative DS: 2

    Negative SD number: 1                  Negative DS number: 1

    Negative SD sum: 1                     Negative DS sum: 2

    Negative SD average: 1                 Negative DS average: 2

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

  One way results:

    Max SD delay: 1                        Max DS delay: 2

    Min SD delay: 1                        Min DS delay: 2

    Number of SD delay: 1                  Number of DS delay: 1

    Sum of SD delay: 1                     Sum of DS delay: 2

    Square-Sum of SD delay: 1              Square-Sum of DS delay: 4

    Lost packets for unknown reason: 0

# 顯示ICMP-jitter測試的統計結果。

[DeviceA] display nqa statistics admin test

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

  NO. : 1

    Start time: 2015-03-09 17:42:10.7

    Life time: 156 seconds

    Send operation times: 1560           Receive response times: 1560

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

    Square-Sum of round trip time: 1563

  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

  ICMP-jitter results:

   RTT number: 1560

    Min positive SD: 1                     Min positive DS: 1

    Max positive SD: 1                     Max positive DS: 2

    Positive SD number: 18                 Positive DS number: 46

    Positive SD sum: 18                    Positive DS sum: 49

    Positive SD average: 1                 Positive DS average: 1

    Positive SD square-sum: 18             Positive DS square-sum: 55

    Min negative SD: 1                     Min negative DS: 1

    Max negative SD: 1                     Max negative DS: 2

    Negative SD number: 24                 Negative DS number: 57

    Negative SD sum: 24                    Negative DS sum: 58

    Negative SD average: 1                 Negative DS average: 1

    Negative SD square-sum: 24             Negative DS square-sum: 60

  One way results:

    Max SD delay: 1                        Max DS delay: 2

    Min SD delay: 1                        Min DS delay: 1

    Number of SD delay: 4                  Number of DS delay: 4

    Sum of SD delay: 4                     Sum of DS delay: 5

    Square-Sum of SD delay: 4              Square-Sum of DS delay: 7

Lost packets for unknown reason: 0

5.6  配置文件

#

nqa entry admin test

 type icmp-jitter

  destination ip 10.2.2.2

  frequency 1000

#

6  DHCP測試配置舉例

6.1  組網需求

當前網絡如圖3所示,現要求配置DHCP測試方案,使用戶可以根據實際需要隨時調用該測試方案測試Switch A是否可以從DHCP服務器Switch B申請到IP地址以及申請到IP地址所需的時間。

圖3 DHCP測試組網圖

 

6.2  使用版本

本舉例是在S7600X-CMW710-R7577P01版本上進行配置和驗證的

6.3  配置注意事項

·              進行NQA測試之前,請確保各設備之間路由可達。

·              測試組開始測試後就不能再進入該測試組視圖和測試類型視圖進行配置修改,測試結束後才可以進入該測試組視圖和測試類型視圖。

·              在進行DHCP測試之前,需要完成DHCP服務器的配置。

6.4  配置步驟

# 創建DHCP類型的NQA測試組。

<SwitchA> system-view

[SwitchA] nqa entry admin test

[SwitchA-nqa-admin-test] type dhcp

# 指定進行DHCP測試的目的地址為10.1.1.2。

[SwitchA-nqa-admin-test-dhcp] destination ip 10.1.1.2

# 開啟NQA測試組的曆史記錄保存功能。

[SwitchA-nqa-admin-test-dhcp] history-record enable

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

6.5  驗證配置

# 啟動DHCP測試方案進行測試。

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

# 測試執行一段時間後,停止DHCP測試操作。

[SwitchA] undo nqa schedule admin test

# 以上配置完成後,顯示DHCP測試中最後一次測試的結果。

[SwitchA] 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: 2014-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測試的曆史記錄。

[SwitchA] display nqa history admin test

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

    Index      Response     Status           Time

1          624          Succeeded        2014-03-24 09:56:03.2

以上顯示信息表示,Router A可以從DHCP服務器獲取IP地址,獲取IP地址所需的時間為624毫秒。

6.6  配置文件

#

nqa entry admin test

 type dhcp

  destination ip 10.1.1.2

  history-record enable

#

7  DNS測試配置舉例

7.1  組網需求

當前網絡如圖4所示,現要求配置DNS測試方案,使用戶可以根據實際需要隨時調用該測試方案測試Switch A是否可以通過指定的DNS服務器將域名host.com解析為IP地址,以及域名解析所需的時間。

圖4 DNS測試組網圖

 

7.2  使用版本

本舉例是在S7600X-CMW710-R7577P01版本上進行配置和驗證的

7.3  配置注意事項

·              進行NQA測試之前,請確保各設備之間路由可達。

·              測試組開始測試後就不能再進入該測試組視圖和測試類型視圖進行配置修改,測試結束後才可以進入該測試組視圖和測試類型視圖。

7.4  配置步驟

# 創建DNS類型的NQA測試組。

<SwitchA> system-view

[SwitchA] nqa entry admin test

[SwitchA-nqa-admin-test] type dns

# 配置DNS服務器的IP地址為10.2.2.2,要解析的域名為host.com。

[SwitchA-nqa-admin-test-dns] destination ip 10.2.2.2

[SwitchA-nqa-admin-test-dns] resolve-target host.com

# 開啟NQA測試組的曆史記錄保存功能。

[SwitchA-nqa-admin-test-dns] history-record enable

[SwitchA-nqa-admin-test-dns] quit

7.5  驗證配置

# 啟動DNS測試方案進行測試。

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

# 測試執行一段時間後,停止DNS測試操作。

[SwitchA] undo nqa schedule admin test

# 以上配置完成後,顯示DNS測試中最後一次測試的結果。

[SwitchA] 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: 2014-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測試的曆史記錄。

[SwitchA] display nqa history admin test

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

    Index      Response     Status           Time

    1          62           Succeeded        2014-03-24 10:49:37.3

以上顯示信息表示,Switch A可以通過指定的DNS服務器將域名host.com解析為IP地址,域名解析所需的時間為62毫秒。

7.6  配置文件

#

nqa entry admin test

 type dns

  destination ip 10.2.2.2

  history-record enable

  resolve-target host.com

#

8  FTP測試配置舉例

8.1  組網需求

當前網絡如圖5所示,登錄FTP服務器的用戶名為admin,密碼為systemtest,現要求配置FTP測試方案,使用戶可以根據實際需要隨時調用該測試方案測試Switch A是否可以與指定的FTP服務器Switch B建立連接,以及與FTP服務器之間傳送文件的時間,從而判斷FTP服務器的連通性及性能。

 

圖5 FTP測試組網圖

 

8.2  使用版本

本舉例是在S7600X-CMW710-R7577P01版本上進行配置和驗證的

8.3  配置注意事項

·              進行NQA測試之前,請確保各設備之間路由可達。

·              測試組開始測試後就不能再進入該測試組視圖和測試類型視圖進行配置修改,測試結束後才可以進入該測試組視圖和測試類型視圖。

·              進行put操作時,通過filename命令指定的文件在NQA客戶端對應存儲介質中必須存在,否則將導致測試失敗。

·              進行FTP測試時,建議選用較小的測試文件並將NQA探測超時時間調大,如果測試文件太大或探測超時時間太小,可能會導致探測超時。

8.4  配置步驟

# 創建FTP類型的NQA測試組。

<SwitchA> system-view

[SwitchA] nqa entry admin test

[SwitchA-nqa-admin-test] type ftp

# 配置測試操作的目的地址為FTP服務器的IP地址10.2.2.2。

[SwitchA-nqa-admin-test-ftp] url ftp://10.2.2.2

# 配置探測報文的源IP地址為10.1.1.1。

[SwitchA-nqa-admin-test-ftp] source ip 10.1.1.1

# 配置FTP操作類型。

[SwitchA-nqa-admin-test-ftp] operation put

# 配置客戶端傳送文件的文件名。

[SwitchA-nqa-admin-test-ftp] filename config.txt

# 配置登錄FTP服務器的用戶名和密碼。

[SwitchA-nqa-admin-test-ftp] username admin

[SwitchA-nqa-admin-test-ftp] password simple systemtest

# 開啟NQA測試組的曆史記錄保存功能。

[SwitchA-nqa-admin-test-ftp] history-record enable

[SwitchA-nqa-admin-test-ftp] quit

8.5  驗證配置

# 啟動FTP測試方案進行測試。

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

# 測試執行一段時間後,停止FTP測試操作。

[SwitchA] undo nqa schedule admin test

# 以上配置完成後,顯示FTP測試中最後一次測試的結果。

[SwitchA] 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: 2014-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測試的曆史記錄。

[SwitchA] display nqa history admin test

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

    Index      Response     Status           Time

1           173          Succeeded        2014-03-25 10:07:28.6

以上顯示信息表示,Switch A可以和指定的FTP服務器Switch B建立連接,向FTP服務器上傳一個文件的時間是173毫秒。

8.6  配置文件

#

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

#

9  HTTP測試配置舉例

9.1  組網需求

當前網絡如圖6所示,現要求配置HTTP測試方案,使用戶可以根據實際需要隨時調用該測試方案測試Switch A是否可以與指定的HTTP服務器建立連接,以及訪問HTTP服務器網頁index.htm所需的時間,從而判斷HTTP服務器的連通性及性能。

圖6 HTTP測試組網圖

 

9.2  使用版本

本舉例是在S7600X-CMW710-R7577P01版本上進行配置和驗證的

9.3  配置注意事項

·              進行NQA測試之前,請確保各設備之間路由可達。

·              測試組開始測試後就不能再進入該測試組視圖和測試類型視圖進行配置修改,測試結束後才可以進入該測試組視圖和測試類型視圖。

9.4  配置步驟

# 創建HTTP類型的NQA測試組。

<SwitchA> system-view

[SwitchA] nqa entry admin test

[SwitchA-nqa-admin-test] type http

# 配置HTTP測試服務器的IP地址為10.2.2.2,訪問的網址為/index.htm。

[SwitchA-nqa-admin-test-http] url http://10.2.2.2/index.htm

# 開啟NQA測試組的曆史記錄保存功能。

[SwitchA-nqa-admin-test-http] history-record enable

[SwitchA-nqa-admin-test-http] quit

# 至此,已完成HTTP測試方案配置。

9.5  驗證配置

# 啟動HTTP測試方案進行測試。

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

# 測試執行一段時間後,停止HTTP測試操作。

[SwitchA] undo nqa schedule admin test

# 以上配置完成後,顯示HTTP測試中一次測試的結果。

[SwitchA] 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: 2014-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測試的曆史記錄。

[SwitchA] display nqa history admin test

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

    Index      Response     Status           Time

1          64           Succeeded        2014-03-25 11:12:47.9

以上顯示信息表示,Switch A可以和指定的HTTP服務器Switch B建立連接,從HTTP服務器獲取數據的時間為64毫秒。

9.6  配置文件

#

nqa entry admin test

 type http

  history-record enable

  url http://10.2.2.2/index.htm

#

10  UDP-jitter測試配置舉例

10.1  組網需求

圖7所示,Device A和Device B之間的網絡承載了語音、視頻等實時性業務,對時延抖動(Delay jitter)的要求較高。現要求配置UDP-jitter測試方案,使用戶可以根據實際需要隨時調用該測試方案測試本端(Device A)和指定目的端(Device B)之間傳送報文的時延抖動,從而判斷網絡是否可以承載實時性業務。

圖7 UDP-jitter測試組網圖

 

 

10.2  使用版本

本舉例是在S7600X-CMW710-R7577P01版本上進行配置和驗證的

10.3  配置注意事項

·              進行NQA測試之前,請確保各設備之間路由可達。

·              測試組開始測試後就不能再進入該測試組視圖和測試類型視圖進行配置修改,測試結束後才可以進入該測試組視圖和測試類型視圖。

·              在進行UDP-jitter類型測試前,必須配置Device B為NQA服務器。

10.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

10.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

10.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

#

11  SNMP測試配置舉例

11.1  組網需求

圖8所示,Device A為NQA客戶端,現要求配置SNMP測試方案,使用戶可以根據實際需要隨時調用該測試方案測試從Device A發出SNMP協議查詢報文到收到SNMP agent(Device B)響應報文所用的時間。

圖8 SNMP測試配置組網圖

 

11.2  使用版本

本舉例是在S7600X-CMW710-R7577P01版本上進行配置和驗證的

11.3  配置注意事項

·              進行NQA測試之前,請確保各設備之間路由可達。

·              在進行SNMP類型測試前,必須在Device B上配置SNMP功能。

·              測試組開始測試後就不能再進入該測試組視圖和測試類型視圖進行配置修改,測試結束後才可以進入該測試組視圖和測試類型視圖。

11.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

11.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

11.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

#

12  TCP測試配置舉例

12.1  組網需求

圖9所示,客戶端(Device A)和服務器(Device B)指定端口(9000)之間建立TCP連接,現要求配置TCP測試方案,使用戶可以根據實際需要測試建立TCP連接所需的時間,從而判斷服務器指定端口上提供的服務是否可用,以及服務性能。

圖9 TCP測試配置組網圖

 

12.2  使用版本

本舉例是在S7600X-CMW710-R7577P01版本上進行配置和驗證的

12.3  配置注意事項

·              進行NQA測試之前,請確保各設備之間路由可達。

·              在進行TCP類型測試前,必須配置Device B為NQA服務器。

·              測試組開始測試後就不能再進入該測試組視圖和測試類型視圖進行配置修改,測試結束後才可以進入該測試組視圖和測試類型視圖。

12.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

12.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

12.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

#

13  UDP-echo測試配置舉例

13.1  組網需求

圖10所示,客戶端(Device A)和服務器(Device B)指定端口之間建立UDP連接,現要求配置UDP-echo測試方案,使用戶可以根據實際需要隨時調用該測試方案測試本端(Device A)和指定目的端(Device B)的端口8000之間的連通性以及UDP報文的往返時間。

圖10 UDP-echo測試配置組網圖

 

13.2  使用版本

本舉例是在S7600X-CMW710-R7577P01版本上進行配置和驗證的

13.3  配置注意事項

·              進行NQA測試之前,請確保各設備之間路由可達。

·              在進行UDP-echo類型測試前,必須配置DeviceB為NQA服務器。

·              測試組開始測試後就不能再進入該測試組視圖和測試類型視圖進行配置修改,測試結束後才可以進入該測試組視圖和測試類型視圖。

13.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

13.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

13.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

#

14  UDP-tracert測試配置舉例

14.1  組網需求

圖11所示,客戶端(Device A)和服務器(Device B)指定端口之間建立UDP連接,現要求配置UDP-tracert測試方案,使用戶可以根據實際需要隨時調用該測試方案測試本端(Device A)到指定目的端(Device B)之間經過的路徑信息。

圖11 UDP-tracert測試組網圖

 

14.2  使用版本

本舉例是在S7600X-CMW710-R7577P01版本上進行配置和驗證的

14.3  配置注意事項

·              進行NQA測試之前,請確保各設備之間路由可達。

·              需要在中間設備上配置ip ttl-expires enable命令,在Device B上配置ip unreachables enable命令。

·              測試組開始測試後就不能再進入該測試組視圖和測試類型視圖進行配置修改,測試結束後才可以進入該測試組視圖和測試類型視圖。

·              用戶需要根據網絡實際情況配置測試運行時間。

14.4  配置步驟

# 創建UDP-tracert類型的測試組。

<DeviceA> system-view

[DeviceA] nqa entry admin test

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

# 配置測試操作的目的地址為10.2.2.2,目的端口號為33434。(目的端口號為33434是缺省操作方式,因此,可以不執行本配置)

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

[DeviceA-nqa-admin-test-udp-tracert] destination port 33434

# 配置可選參數:對一個TTL值的節點的探測次數為3(探測次數為3是缺省操作方式,因此,可以不執行本配置),探測的超時時間為500毫秒,測試組連續兩次測試開始時間的時間間隔為5000毫秒。

[DeviceA-nqa-admin-test-udp-tracert] probe count 3

[DeviceA-nqa-admin-test-udp-tracert] probe timeout 500

[DeviceA-nqa-admin-test-udp-tracert] frequency 5000

# 配置UDP-tracert測試的出接口為M-GigabitEthernet0/0/0。

[DeviceA-nqa-admin-test-udp-tracert] out interface m-gigabitethernet0/0/0

# 開啟UDP-tracert測試的禁止報文分片功能。

[DeviceA-nqa-admin-test-udp-tracert] no-fragment enable

# 配置最大連續失敗次數為6次,配置初始TTL為1

[DeviceA-nqa-admin-test-udp-tracert] max-failure 6

[DeviceA-nqa-admin-test-udp-tracert] init-ttl 1

14.5  驗證配置

# 啟動UDP-tracert測試方案進行測試。

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

# 測試執行一段時間後,停止UDP-tracert測試操作。

[DeviceA] undo nqa schedule admin test

# 顯示UDP-tracert測試中最後一次測試的當前結果。

[DeviceA] display nqa result admin test

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

    Send operation times: 6              Receive response times: 6

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

    Square-Sum of round trip time: 1

    Last succeeded probe time: 2013-09-09 14:46:06.2

  Extended results:

    Packet loss in test: 0%

    Failures due to timeout: 0

    Failures due to internal error: 0

Failures due to other errors: 0

  UDP-tracert results:

    TTL    Hop IP             Time

    1      3.1.1.1            2013-09-09 14:46:03.2

    2      10.2.2.2           2013-09-09 14:46:06.2

# 顯示UDP-tracert測試的曆史記錄。

[DeviceA] display nqa history admin test

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

Index      TTL  Response  Hop IP           Status          Time

1          2    2         10.2.2.2         Succeeded       2013-09-09 14:46:06.2 

1          2    1         10.2.2.2         Succeeded       2013-09-09 14:46:05.2 

1          2    2         10.2.2.2         Succeeded       2013-09-09 14:46:04.2 

1          1    1         3.1.1.1          Succeeded       2013-09-09 14:46:03.2 

1          1    2         3.1.1.1          Succeeded       2013-09-09 14:46:02.2

1          1    1         3.1.1.1          Succeeded       2013-09-09 14:46:01.2  

14.6  配置文件

#

nqa entry admin test

 type udp-tracert

  destination ip 10.2.2.2

  frequency 5000

  max-failure 6

  no-fragment enable

  out interface m-gigabitethernet0/0/0

  probe timeout 500

#

15  Voice測試配置舉例

15.1  組網需求

圖12所示,Device A和Device B之間的網絡承載了語音業務,現要求配置Voice測試方案,使用戶可以根據實際需要隨時調用該測試方案測試本端(Device A)和指定的目的端(Device B)之間傳送語音報文的時延抖動和網絡語音質量參數。

圖12 Voice測試配置組網圖

 

15.2  使用版本

本舉例是在S7600X-CMW710-R7577P01版本上進行配置和驗證的

15.3  配置注意事項

·              進行NQA測試之前,請確保各設備之間路由可達。

·              在進行Voice類型測試前,必須配置Device B為NQA服務器。

·              測試組開始測試後就不能再進入該測試組視圖和測試類型視圖進行配置修改,測試結束後才可以進入該測試組視圖和測試類型視圖。

15.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

15.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  

15.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

#

16  DLSw測試配置舉例

16.1  組網需求

圖13所示,Device B為支持DLSw的設備,現要求配置DLSw測試方案,使用戶可以根據實際需要隨時調用該測試方案測試DLSw設備的響應時間。

圖13 DLSw測試配置組網圖

16.2  使用版本

本舉例是在S7600X-CMW710-R7577P01版本上進行配置和驗證的

16.3  配置注意事項

·              進行NQA測試之前,請確保各設備之間路由可達。

·              測試組開始測試後就不能再進入該測試組視圖和測試類型視圖進行配置修改,測試結束後才可以進入該測試組視圖和測試類型視圖。

16.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

16.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

16.6  配置文件

#

nqa entry admin test

 type dlsw

  destination ip 10.2.2.2

  history-record enable

#

17  Path-jitter測試配置舉例

17.1  組網需求

圖14所示,現要求配置Path-jitter測試方案,使用戶可以根據實際需要隨時調用該測試方案測試本端(Device A)和指定目的端(Device B)之間在抖動比較大的情況下,進一步探測中間路徑的網絡質量,以便查找出網絡質量差的具體路段。

圖14 Path-jitter測試組網圖

 

17.2  使用版本

本舉例是在S7600X-CMW710-R7577P01版本上進行配置和驗證的

17.3  配置注意事項

·              進行NQA測試之前,請確保各設備之間路由可達。

·              需要在中間設備上配置ip ttl-expires enable命令,在Device B上配置ip unreachables enable命令。

·              測試組開始測試後就不能再進入該測試組視圖和測試類型視圖進行配置修改,測試結束後才可以進入該測試組視圖和測試類型視圖。

·              用戶需要根據網絡實際情況配置測試運行時間。

17.4  配置步驟

# 創建Path-jitter類型的NQA測試組,並配置探測報文的目的地址為10.2.2.2。

<DeviceA> system-view

[DeviceA] nqa entry admin test

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

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

# 配置可選參數:測試組連續兩次測試開始時間的時間間隔為10000毫秒。

[DeviceA-nqa-admin-test-path-jitter] frequency 10000

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

17.5  驗證配置

# 啟動Path-jitter測試方案進行測試。

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

# 測試執行一段時間後,停止Path-jitter測試操作。

[DeviceA] undo nqa schedule admin test

# 顯示Path-jitter測試中最後一次測試的當前結果。

[DeviceA] display nqa result admin test

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

  Hop IP 10.1.1.2

    Basic Results

      Send operation times: 10             Receive response times: 10

      Min/Max/Average round trip time: 9/21/14

      Square-Sum of round trip time: 2419

    Extended Results

      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

    Path-Jitter Results

      Jitter number: 9

        Min/Max/Average jitter: 1/10/4

      Positive jitter number: 6

        Min/Max/Average positive jitter: 1/9/4

        Sum/Square-Sum positive jitter: 25/173

      Negative jitter number: 3

        Min/Max/Average negative jitter: 2/10/6

        Sum/Square-Sum positive jitter: 19/153

 

  Hop IP 10.2.2.2

    Basic Results

      Send operation times: 10             Receive response times: 10

      Min/Max/Average round trip time: 15/40/28

      Square-Sum of round trip time: 4493

    Extended Results

      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

    Path-Jitter Results

      Jitter number: 9

        Min/Max/Average jitter: 1/10/4

      Positive jitter number: 6

        Min/Max/Average positive jitter: 1/9/4

        Sum/Square-Sum positive jitter: 25/173

      Negative jitter number: 3

        Min/Max/Average negative jitter: 2/10/6

        Sum/Square-Sum positive jitter: 19/153

17.6  配置文件

#

nqa entry admin test

 type path-jitter

  destination ip 10.2.2.2

  frequency 10000

#

18  相關資料

·              H3C S7600-X係列以太網交換機 網絡管理和監控配置指導-R757X

·              H3C S7600-X係列以太網交換機 網絡管理和監控命令參考-R757X

不同款型規格的資料略有差異, 詳細信息請向具體銷售和400谘詢。H3C保留在沒有任何通知或提示的情況下對資料內容進行修改的權利!

BOB登陆
官網
聯係我們