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

H3C E352[E328]以太网交换机 配置指导-Release 1602(V1.02)

38-HWPing操作

本章节下载 38-HWPing操作  (354.06 KB)

docurl=/cn/Service/Document_Software/Document_Center/Switches/Catalog/E/E328[E352]/Configure/Operation_Manual/H3C_E352[E328]_Release1602_OM(V1.02)/201506/874585_30005_0.htm

38-HWPing操作


1 HWPing配置

1.1  HWPing简介

1.1.1  HWPing概述

HWPing是一种网络诊断工具,用以测量网络上运行的各种协议的性能,可以实现比普通ping命令更多的功能:

l              ping命令只能使用ICMP协议来测试数据报文在本端和指定的目的端之间的往返时间,从而判断到目的主机是否可达。

l              HWPing不但可以完成上面的功能,还可以测试DHCP、FTP、HTTP、SNMP等服务是否打开以及测试各种服务的响应时间等。

所有的测试类型都必须配置HWPing客户端,不同测试类型可能还需要配置相应的服务器端才可以完成HWPing测试。

所有的HWPing测试由HWPing客户端发起,测试结果也要在客户端查看。

在进行HWPing测试时,用户需要在HWPing客户端配置HWPing测试组。HWPing测试组是多个HWPing测试项的集合。每个测试组都有一个管理员名称和一个操作标签。通过管理员名称和操作标签可以唯一确定一个测试组。

建立测试组并配置好测试项参数后,就可以通过测试命令进行HWPing测试。

l              ping命令不同的是,它不会在控制台终端上实时显示每个报文的往返时间或是否超时,而需要通过display hwping命令查看HWPing操作的统计结果。

l              HWPing功能支持通过网管来设置各项操作的参数,并启动测试操作及查看测试的统计结果。

图1-1 HWPing示意图

 

1.1.2  HWPing支持的测试类型

以下HWPing支持的测试类型中,只有ICMP测试在IRF堆叠功能开启的情况下仍可进行测试,其他的测试类型在IRF堆叠功能开启的情况下不能进行测试。

表1-1 HWPing支持的测试类型

支持的测试类型

说明

ICMP测试

需要配置HWPing客户端,不同的测试类型需要配置相应的服务器端

DHCP测试

FTP测试

HTTP测试

DNS测试

SNMP测试

Jitter测试

l      需要HWPing客户端和HWPing服务器配合进行

l      请不要对1~1023之间的端口(知名端口)或50000以后的端口进行TCP、UDP或Jitter测试,否则可能导致该知名端口对应的服务不可用或HWPing探测失败

TCP测试

Tcppublic测试

Tcpprivate测试

UDP测试

Udppublic测试

Udpprivate测试

 

1.1.3  HWPing相关测试参数

HWPing测试参数只在HWPing客户端进行配置。每种测试类型要选择相应的测试参数进行配置,HWPing客户端的具体配置可参见1.2.2 

表1-2 HWPing相关测试参数

测试参数

说明

目的地址destination-ip

在进行TCP、UDP或Jitter测试时,HWPing客户端必须指定目的地址,该目的地址必须是HWPing服务器上配置了TCP或UDP监听服务的IP地址

目的端口destination -port

在进行TcpprivateUdpprivateJitter测试时,HWPing客户端必须指定目的端口号,该目的端口号必须是HWPing服务器上配置了TCP或UDP监听服务的端口号

源接口source-interface

l      在进行DHCP测试时,必须指定HWPing客户端发送DHCP请求报文使用的源接口,如果不指定源接口,DHCP测试将失败

l      指定了源接口以后,那么在进行DHCP测试时,HWPing客户端将直接使用该源接口发送DHCP请求报文

l      DHCP请求报文中的源IP地址将使用该接口的IP地址

源地址source-ip

在进行除DHCP以外的测试时,HWPing客户端可以指定发送报文的源IP地址,这样服务器将使用该IP地址作为响应报文的目的地址

源端口source-port

在进行HWPing测试时,HWPing客户端可以指定发送请求报文的源端口号,这样服务器将使用该端口号作为响应报文的目的端口号(该参数对ICMP、DHCP和DNS测试无效)

测试类型test-type

l      HWPing可以对多种协议进行测试,具体测试类型参见表1-1

l      每种测试都需要创建一个测试组,且针对每个测试组HWPing客户端只能进行某一种类型的HWPing测试

一次测试中进行探测的次数count

在进行除Jitter以外的测试时,一次探测只发送一个测试报文。Jitter测试中一次探测发送的测试报文个数可以通过jitter-packetnum进行设置

数据报文的大小datasize

l      在进行ICMP、UDP和Jitter测试时,可以对HWPing客户端发送报文的大小进行配置

l      对于ICMP测试,ICMP数据报文的大小是指HWPing客户端进行ICMP测试时ECHO-REQUEST报文长度(不包括IP和ICMP报文头)

保存历史记录的最大数目history-records

用于指定HWPing客户端在一个测试组中能够保存的历史记录的最大数目,当历史记录的条数超过这个数目时,HWPing客户端会丢弃早期的历史记录

自动测试的时间间隔frequency

配置自动测试使HWPing客户端每隔一段时间就自动进行一次测试

探测的超时时间timeout

l      超时时间为HWPing客户端发送一个测试报文后启动的定时器

l      探测的超时时间的单位为秒

服务类型tos

服务类型是指HWPing客户端发送的测试报文的IP报文头的ToS域值

dns

用于指定HWPing测试组解析的域名

dns-server

用于设置HWPing测试组的DNS服务器的IP地址

HTTP操作类型http-operation

HWPing客户端可以配置和服务器端进行HTTP交互的类型

HTTP的操作字符串和版本信息http-string

用于配置HTTP的操作字符串和版本信息

FTP操作类型ftp-operation

HWPing客户端可以配置和服务器端进行FTP交互的类型

FTP操作用户名和密码

username

password

进行FTP操作时需要使用用户名和密码

FTP操作文件名filename

FTP所要操作的文件名

Jitter测试时一次探测发送的测试报文个数jitter-packetnum

l      Jitter测试是为了对UDP报文传输的时延抖动情况进行统计分析

l      在测试时,HWPing客户端会以一定的时间间隔(可配置)向HWPing服务器端发送一系列的数据报文,服务器端每收到一个数据报文,就会给它打上时间戳,然后再把这个数据报文发回到客户端。客户端收到数据报文后就可计算出时延抖动时间。因此,为了提高统计结果的准确性,每次测试必须发送多个测试报文进行测试。每次测试发送的测试报文个数越多,统计分析越准确,但完成测试所需的时间也越长

Jitter测试时发送测试报文的时间间隔jitter-interval

Jitter测试每次探测都要发送多个UDP测试报文,可以配置发送测试报文的时间间隔。发送测试报文的时间间隔越小,完成测试就越快,但是发送测试报文的时间间隔太小可能会对网络带来一定的冲击

Trap

l      HWPing测试成功或者失败都会产生Trap信息,可以通过设置Trap开关控制是否输出该Trap信息

l      可以设置HWPing测试连续多少次测试失败之后输出Trap信息,也可以设置HWPing测试连续多少次探测失败之后输出Trap信息

 

1.2  HWPing配置

在进行Jitter测试、TCP测试和UDP测试时,需要HWPing客户端和HWPing服务器配合进行;在进行其它类型的测试时,需要配置HWPing客户端,不同的测试类型需要配置相应的服务器端。

1.2.1  HWPing服务器端配置

E352&E328以太网交换机可以作为HWPing客户端,也可以作为HWPing服务器。交换机上可同时开启HWPing客户端和HWPing服务器。也就是说,同一台交换机可以做HWPing客户端,同时又可以做HWPing服务器。

1. HWPing服务器端配置任务简介

表1-3 HWPing服务器端配置任务简介

配置任务

说明

详细配置

开启HWPing服务器功能

只有Jitter测试、TCP测试和UDP测试需要配置HWPing服务器

1.2.1  2.

配置HWPing服务器监听的服务

可以在一个HWPing服务器上创建多个TCP或UDP监听服务,每个监听服务对应一个指定的目的地址和端口号

1.2.1  2.

 

2. HWPing服务器端配置

由于只有TCP测试、UDP测试和Jitter测试需要配置HWPing服务器端,下面对服务器端配置进行统一介绍。

表1-4 配置HWPing服务器端

操作

命令

说明

进入系统视图

system-view

-

开启服务器功能

hwping-server enable

必选

缺省情况下,关闭服务器功能

配置UDP监听服务

hwping-server udpecho ip-address port-num

UDP测试、Jitter测试必选

缺省情况下,未配置UDP监听服务

配置TCP监听服务

hwping-server tcpconnect ip-address port-num

TCP测试必选

缺省情况下,未配置TCP监听服务

 

1.2.2  HWPing客户端配置

1. 配置HWPing客户端

开启HWPing客户端之后,可以创建多个测试组并进行多个测试,不用重复开启HWPing客户端。

由于HWPing不同测试类型的客户端的配置参数、参数的取值范围都有差异,下面根据不同的测试类型对客户端配置分别进行介绍。

HWPing测试中只有ICMP测试类型在IRF堆叠功能开启的情况下仍可进行测试,其它测试类型在IRF堆叠功能开启的情况下不能进行测试。在IRF堆叠端口开启的情况下可以进行HWPing配置,用户可以使用display命令在显示信息中查看配置结果,但是对于非ICMP测试类型的测试,配置不生效,只有当堆叠取消后,该配置才生效。

 

(1)        配置HWPing客户端的ICMP测试功能

表1-5 配置HWPing客户端的ICMP测试功能

 

操作

命令

说明

进入系统视图

system-view

-

开启HWPing客户端功能

hwping-agent enable

必选

缺省情况下,HWPing客户端功能处于关闭状态

建立HWPing测试组并进入HWPing测试组视图

hwping administrator-name operation-tag

必选

缺省情况下,没有配置测试组

配置测试类型

test-type icmp

可选

缺省情况下,测试类型为ICMP

配置目的地址

destination-ip ip-address

必选

缺省情况下,没有配置目的地址

配置源接口

source-interface interface-type interface-number

可选

ICMP测试将使用该源接口所对应的IP地址作为源地址

缺省情况下,没有指定源接口

配置源地址

source-ip ip-address

可选

缺省情况下,没有指定源IP地址

一次测试中进行探测的次数

count times

可选

缺省情况下,一次测试中进行探测的次数为1

配置数据报文的大小

datasize size

可选

缺省情况下,默认值为56字节

保存历史记录的最大数目

history-records number

可选

缺省情况下,保存历史记录的最大数目为50

配置自动测试的时间间隔

frequency interval

可选

缺省情况下,自动测试的时间间隔为0秒,即不进行自动测试

探测的超时时间

timeout time

可选

缺省情况下,超时时间为3秒

配置服务类型

tos value

可选

缺省情况下,服务类型为0

启动测试

test-enable

必选

查看测试结果

display hwping results [ admin-name operation-tag ]

必选

display命令可以在任意视图下执行

 

(2)        配置HWPing客户端的DHCP测试功能

表1-6 配置HWPing客户端的DHCP测试功能

操作

命令

说明

进入系统视图

system-view

-

开启HWPing客户端功能

hwping-agent enable

必选

缺省情况下,HWPing客户端功能处于关闭状态

建立HWPing测试组并进入HWPing测试组视图

hwping administrator-name operation- tag

必选

缺省情况下,没有配置测试组

配置测试类型

test-type dhcp

必选

缺省情况下,测试类型为ICMP

配置源接口

source-interface interface-type interface-number

必选

源接口只能配置为VLAN接口

缺省情况下,没有配置源端口

一次测试中进行探测的次数

count times

可选

缺省情况下,一次测试中进行探测的次数为1

保存历史记录的最大数目

history-records number

可选

缺省情况下,保存历史记录的最大数目为50

探测的超时时间

timeout time

可选

缺省情况下,超时时间为3秒

启动测试

test-enable

必选

查看测试结果

display hwping results [ admin-name operation-tag ]

必选

display命令可以在任意视图下执行

 

(3)        配置HWPing客户端的FTP测试功能

表1-7 配置HWPing客户端的FTP测试功能

 

操作

命令

说明

进入系统视图

system-view

-

开启HWPing客户端功能

hwping-agent enable

必选

缺省情况下,HWPing客户端功能处于关闭状态

建立HWPing测试组并进入HWPing测试组视图

hwping administrator-name operation- tag

必选

缺省情况下,没有配置测试组

配置测试类型

test-type ftp

必选

缺省情况下,测试类型为ICMP

配置目的地址

destination-ip ip-address

必选

缺省情况下,没有配置目的地址

配置源地址

source-ip ip-address

必选

缺省情况下,没有指定源IP地址

配置源端口

source-port port-number

可选

缺省情况下,没有指定源端口

一次测试中进行探测的次数

count times

可选

缺省情况下,一次测试中进行探测的次数为1

保存历史记录的最大数目

history-records number

可选

缺省情况下,保存历史记录的最大数目为50

配置自动测试的时间间隔

frequency interval

可选

缺省情况下,自动测试的时间间隔为0秒,即不进行自动测试

探测的超时时间

timeout time

可选

缺省情况下,超时时间为3秒

配置服务类型

tos value

可选

缺省情况下,服务类型为0

配置FTP操作类型

ftp-operation { get | put }

可选

缺省情况下,FTP操作类型为get操作,即从FTP服务器获取文件

配置FTP登录用户名

username name

必选

缺省情况下,没有配置用户名和密码

配置FTP登录密码

password password

配置FTP操作文件名

filename file-name

必选

缺省情况下,没有配置操作的文件名

启动测试

test-enable

必选

查看测试结果

display hwping results [ admin-name operation-tag ]

必选

display命令可以在任意视图下执行

 

(4)        配置HWPing客户端的HTTP测试功能

表1-8 配置HWPing客户端的HTTP测试功能

 

操作

命令

说明

进入系统视图

system-view

-

开启HWPing客户端功能

hwping-agent enable

必选

缺省情况下,HWPing客户端功能处于关闭状态

建立HWPing测试组并进入HWPing测试组视图

hwping administrator-name operation- tag

必选

缺省情况下,没有配置测试组

配置测试类型

test-type http

必选

缺省情况下,测试类型为ICMP

配置目的地址

destination-ip ip-address

必选

可以设置为IP地址和主机名称两种形式

缺省情况下,没有配置目的地址

配置dns-server

dns-server ip-address

当使用destination-ip命令配置目的地址为主机名称时必选

缺省情况下,没有配置DNS服务器地址

配置源地址

source-ip ip-address

可选

缺省情况下,没有指定源IP地址

配置源端口

source-port port-number

可选

缺省情况下,没有指定源端口

一次测试中进行探测的次数

count times

可选

缺省情况下,一次测试中进行探测的次数为1

保存历史记录的最大数目

history-records number

可选

缺省情况下,保存历史记录的最大数目为50

配置自动测试的时间间隔

frequency interval

可选

缺省情况下,自动测试的时间间隔为0秒,即不进行自动测试

探测的超时时间

timeout time

可选

缺省情况下,超时时间为3秒

配置服务类型

tos value

可选

缺省情况下,服务类型为0

配置HTTP操作类型

http-operation { get | post }

可选

缺省情况下,HTTP操作方式为get操作,即从HTTP服务器获取数据

配置HTTP的操作字符串和版本信息

http-string string version

必选

缺省情况下,没有指定HTTP的操作字符串和版本信息

启动测试

test-enable

必选

查看测试结果

display hwping results [ admin-name operation-tag ]

必选

display命令可以在任意视图下执行

 

(5)        配置HWPing客户端的Jitter测试功能

表1-9 配置HWPing客户端的Jitter测试功能

 

操作

命令

说明

进入系统视图

system-view

-

开启HWPing客户端功能

hwping-agent enable

必选

缺省情况下,HWPing客户端功能处于关闭状态

建立HWPing测试组并进入HWPing测试组视图

hwping administrator-name operation- tag

必选

缺省情况下,没有配置测试组

配置测试类型

test-type jitter

必选

缺省情况下,测试类型为ICMP

配置目的地址

destination-ip ip-address

必选

必须与HWPing服务器上所配置的监听服务的IP地址一致

缺省情况下,没有配置目的地址

配置目的端口

destination-port

port-number

必选

必须与HWPing服务器上所配置的监听服务的端口号一致

缺省情况下,没有配置目的端口

配置源地址

source-ip ip-address

可选

缺省情况下,没有指定源IP地址

配置源端口

source-port port-number

可选

缺省情况下,没有指定源端口

一次测试中进行探测的次数

count times

可选

缺省情况下,一次测试中进行探测的次数为1

配置数据报文的大小

datasize size

可选

缺省情况下,默认值为68字节

保存历史记录的最大数目

history-records number

可选

缺省情况下,保存历史记录的最大数目为50

配置自动测试的时间间隔

frequency interval

可选

缺省情况下,自动测试的时间间隔为0秒,即不进行自动测试

探测的超时时间

timeout time

可选

缺省情况下,超时时间为3秒

配置服务类型

tos value

可选

缺省情况下,服务类型为0

配置Jitter测试时一次探测发送的测试报文个数

jitter-packetnum number

可选

缺省情况下,Jitter测试时一次探测发送的测试报文为10个

Jitter测试时发送测试报文的时间间隔

jitter-interval interval

可选

缺省情况下,Jitter测试时发送测试报文的时间间隔为20毫秒

启动测试

test-enable

必选

查看测试结果

display hwping results [ admin-name operation-tag ]

必选

display命令可以在任意视图下执行

 

(6)        配置HWPing客户端的SNMP测试功能

表1-10 配置HWPing客户端的SNMP测试功能

 

操作

命令

说明

进入系统视图

system-view

-

开启HWPing客户端功能

hwping-agent enable

必选

缺省情况下,HWPing客户端功能处于关闭状态

建立HWPing测试组并进入HWPing测试组视图

hwping administrator-name operation- tag

必选

缺省情况下,没有配置测试组

配置测试类型

test-type snmpquery

必选

缺省情况下,测试类型为ICMP

配置目的地址

destination-ip ip-address

必选

缺省情况下,没有配置目的地址

配置源地址

source-ip ip-address

可选

缺省情况下,没有指定源IP地址

配置源端口

source-port port-number

可选

缺省情况下,没有指定源端口

一次测试中进行探测的次数

count times

可选

缺省情况下,一次测试中进行探测的次数为1

保存历史记录的最大数目

history-records number

可选

缺省情况下,保存历史记录的最大数目为50

配置自动测试的时间间隔

frequency interval

可选

缺省情况下,自动测试的时间间隔为0秒,即不进行自动测试

探测的超时时间

timeout time

可选

缺省情况下,超时时间为3秒

配置服务类型

tos value

可选

缺省情况下,服务类型为0

启动测试

test-enable

必选

查看测试结果

display hwping results [ admin-name operation-tag ]

必选

display命令可以在任意视图下执行

 

(7)        配置HWPing客户端的TCP测试功能

表1-11 配置HWPing客户端的TCP测试功能

 

操作

命令

说明

进入系统视图

system-view

-

开启HWPing客户端功能

hwping-agent enable

必选

缺省情况下,HWPing客户端功能处于关闭状态

建立HWPing测试组并进入HWPing测试组视图

hwping administrator-name operation- tag

必选

缺省情况下,没有配置测试组

配置测试类型

test-type { tcpprivate | tcppublic }

必选

缺省情况下,测试类型为ICMP

配置目的地址

destination-ip ip-address

必选

必须与HWPing服务器上配置的监听服务的IP地址一致

缺省情况下,没有配置目的地址

配置目的端口

destination-port

port-number

在进行Tcpprivate测试时必选

在进行Tcppublic测试时,则是对7号端口的TCP连接测试。只须在服务器端使用hwping-server tcpconnect ip-address 7命令配置监听服务端口,否则测试将失败。客户端不需要配置端口号,即使配置也不会生效

缺省情况下,没有配置目的端口

配置源地址

source-ip ip-address

可选

缺省情况下,没有指定源IP地址

配置源端口

source-port port-number

可选

缺省情况下,没有指定源端口

一次测试中进行探测的次数

count times

可选

缺省情况下,一次测试中进行探测的次数为1

保存历史记录的最大数目

history-records number

可选

缺省情况下,保存历史记录的最大数目为50

配置自动测试的时间间隔

frequency interval

可选

缺省情况下,自动测试的时间间隔为0秒,即不进行自动测试

探测的超时时间

timeout time

可选

缺省情况下,超时时间为3秒

配置服务类型

tos value

可选

缺省情况下,服务类型为0

启动测试

test-enable

必选

查看测试结果

display hwping results [ admin-name operation-tag ]

必选

display命令可以在任意视图下执行

 

(8)        配置HWPing客户端的UDP测试功能

表1-12 配置HWPing客户端的UDP测试功能

 

操作

命令

说明

进入系统视图

system-view

-

开启HWPing客户端功能

hwping-agent enable

必选

缺省情况下,HWPing客户端功能处于关闭状态

建立HWPing测试组并进入HWPing测试组视图

hwping administrator-name operation- tag

必选

缺省情况下,没有配置测试组

配置测试类型

test-type { udpprivate | udppublic }

必选

缺省情况下,测试类型为ICMP

配置目的地址

destination-ip ip-address

必选

必须与HWPing服务器上配置的监听服务的IP地址一致

缺省情况下,没有配置目的地址

配置目的端口

destination-port

port-number

在进行Udpprivate测试时必选

在进行Udppublic测试时,则是对7号端口的UDP连接测试。只须在服务器端使用hwping-server udpecho ip-address 7命令配置监听服务端口,否则测试将失败。客户端不需要配置端口号,即使配置,也不会生效

缺省情况下,没有配置目的端口

配置源地址

source-ip ip-address

可选

缺省情况下,没有指定源IP地址

配置源端口

source-port port-number

可选

缺省情况下,没有配置源端口

一次测试中进行探测的次数

count times

可选

缺省情况下,一次测试中进行探测的次数为1

配置数据报文的大小

datasize size

可选

缺省情况下,默认值为100字节

保存历史记录的最大数目

history-records number

可选

缺省情况下,保存历史记录的最大数目为50

配置自动测试的时间间隔

frequency interval

可选

缺省情况下,自动测试的时间间隔为0秒,即不进行自动测试

探测的超时时间

timeout time

可选

缺省情况下,超时时间为3秒

配置服务类型

tos value

可选

缺省情况下,服务类型为0

启动测试

test-enable

必选

查看测试结果

display hwping results [ admin-name operation-tag ]

必选

display命令可以在任意视图下执行

 

(9)        配置HWPing客户端的DNS测试功能

表1-13 配置HWPing客户端的DNS测试功能

 

操作

命令

说明

进入系统视图

system-view

-

开启HWPing客户端功能

hwping-agent enable

必选

缺省情况下,HWPing客户端功能处于关闭状态

建立HWPing测试组并进入HWPing测试组视图

hwping administrator-name operation- tag

必选

缺省情况下,没有配置测试组

配置测试类型

test-type dns

必选

缺省情况下,测试类型为ICMP

配置源地址

source-ip ip-address

可选

缺省情况下,没有指定源IP地址

一次测试中进行探测的次数

count times

可选

缺省情况下,一次测试中进行探测的次数为1

保存历史记录的最大数目

history-records number

可选

缺省情况下,保存历史记录的最大数目为50

配置自动测试的时间间隔

frequency interval

可选

缺省情况下,自动测试的时间间隔为0秒,即不进行自动测试

探测的超时时间

timeout time

可选

缺省情况下,超时时间为3秒

配置服务类型

tos value

可选

缺省情况下,服务类型为0

配置dns

dns resolve-target domain-name

必选

缺省情况下,没有配置DNS要解析的域名

配置dns-server

dns-server ip-address

必选

缺省情况下,没有配置DNS服务器地址

启动测试

test-enable

必选

查看测试结果

display hwping results [ admin-name operation-tag ]

必选

display命令可以在任意视图下执行

 

2. 配置HWPing客户端发送Trap信息

HWPing测试成功或者失败都会产生Trap信息,可以通过设置Trap开关控制HWPing客户端是否对外输出该Trap信息。

表1-14 配置HWPing客户端发送Trap信息

操作

命令

说明

进入系统视图

system-view

-

开启HWPing客户端功能

hwping-agent enable

必选

缺省情况下,HWPing客户端功能处于关闭状态

建立HWPing测试组并进入HWPing测试组视图

hwping administrator-name operation- tag

必选

缺省情况下,没有配置测试组

打开Trap信息发送开关

send-trap { all | { probefailure | testcomplete | testfailure }* }

必选

缺省情况下,关闭Trap开关

配置HWPing测试连续多少次测试失败之后输出Trap信息

test-failtimes times

可选

缺省情况下,一次测试失败就输出Trap信息

配置HWPing测试连续多少次探测失败之后输出Trap信息

probe-failtimes times

可选

缺省情况下,一次探测失败就输出Trap信息

 

1.2.3  HWPing配置显示

完成上述配置后,用户可以通过执行display命令来查看最近一次的测试结果信息和历史记录信息。

表1-15 显示HWPing测试结果

操作

命令

说明

显示测试的历史记录信息

display hwping history [ administrator-name operation-tag ]

display命令可以在任意视图下执行

显示最近一次的测试结果信息

display hwping results [ administrator-name operation-tag ]

 

1.3  HWPing配置举例

1.3.1  ICMP测试

1. 组网需求

E352&E328以太网交换机作为HWPing客户端与另外一台交换机之间进行HWPing ICMP测试,使用ICMP协议来测试数据报文在HWPing客户端和指定的目的端之间的往返时间。

2. 组网图

图1-2 ICMP 测试组网图

 

3. 配置步骤

配置HWPing Client(Switch A):

# 开启hwping客户端。

<Sysname> system-view

[Sysname] hwping-agent enable

# 创建一个HWPing测试组。指定的管理员名字为administrator,测试操作标签为ICMP。

[Sysname] hwping administrator icmp

# 配置测试类型为ICMP。

[Sysname-hwping-administrator-icmp] test-type icmp

# 配置目的IP地址为10.2.2.2。

[Sysname-hwping-administrator-icmp] destination-ip 10.2.2.2

# 配置一次测试中进行探测的次数为10。

[Sysname-hwping-administrator-icmp] count 10

# 配置探测的超时时间为5秒。

[Sysname-hwping-administrator-icmp] timeout 5

# 启动测试操作。

[Sysname-hwping-administrator-icmp] test-enable

# 配置保存历史记录的最大数目为5。

[Sysname-hwping-administrator-icmp] history-records 5

# 查看测试结果。

[Sysname-hwping-administrator-icmp] display hwping results administrator icmp

HWPing entry(admin administrator, tag icmp) test result:

      Destination ip address:10.2.2.2

      Send operation times: 10              Receive response times: 10

      Min/Max/Average Round Trip Time: 3/6/3

      Square-Sum of Round Trip Time: 145

      Last succeeded test time: 2000-4-2 20:55:12.3

  Extend result:

      SD Maximal delay: 0                   DS Maximal delay: 0

      Packet lost in test: 0%

      Disconnect operation number: 0        Operation timeout number: 0

      System busy operation number: 0       Connection fail number: 0

      Operation sequence errors: 0          Drop operation number: 0

      Other operation errors: 0                                        

[Sysname-hwping-administrator-icmp] display hwping history administrator icmp

HWPing entry(admin administrator, tag icmp) history record:

    Index     Response    Status      LastRC      Time

        1            3         1           0    2000-04-02 20:55:12.3

        2            4         1           0    2000-04-02 20:55:12.3

        3            4         1           0    2000-04-02 20:55:12.2

        4            3         1           0    2000-04-02 20:55:12.2

        5            3         1           0    2000-04-02 20:55:12.2

关于显示信息的具体描述,请参见命令手册。

1.3.2  DHCP测试

1. 组网需求

HWPing客户端和DHCP服务器都使用E352&E328以太网交换机。在两台交换机之间进行HWPing DHCP测试,测试从DHCP服务器分配到IP地址所需的时间。

2. 组网图

图1-3 DHCP 测试组网图

 

3. 配置步骤

l              配置DHCP Server(Switch B):

在SwitchB上配置DHCP服务器,关于DHCP服务器的具体配置可参见本手册“DHCP”中相关部分的介绍。

l              配置HWPing Client(Switch A):

# 开启HWPing客户端。

<Sysname> system-view

[Sysname] hwping-agent enable

# 创建一个HWPing测试组。指定的管理员名字为administrator,测试操作标签为DHCP。

[Sysname] hwping administrator dhcp

# 配置测试类型为DHCP。

[Sysname-hwping-administrator-dhcp] test-type dhcp

# 配置源接口,此接口必须为vlan接口,DHCP服务器位于和此接口相连的网络上。

[Sysname-hwping-administrator-dhcp] source-interface Vlan-interface 1

# 配置一次测试中进行探测的次数为10。

[Sysname-hwping-administrator-dhcp] count 10

# 配置探测的超时时间为5秒。

[Sysname-hwping-administrator-dhcp] timeout 5

# 启动测试操作。

[Sysname-hwping-administrator-dhcp] test-enable

# 查看测试结果。

[Sysname-hwping-administrator-dhcp] display hwping results administrator dhcp

HWPing entry(admin administrator, tag dhcp) test result:

      Send operation times: 10              Receive response times: 10

      Min/Max/Average Round Trip Time: 1018/1037/1023

      Square-Sum of Round Trip Time: 10465630

      Last succeeded test time: 2000-4-3 9:51:30.9

  Extend result:

      SD Maximal delay: 0                   DS Maximal delay: 0

      Packet lost in test: 0%

      Disconnect operation number: 0        Operation timeout number: 0

      System busy operation number: 0       Connection fail number: 0

      Operation sequence errors: 0          Drop operation number: 0

      Other operation errors: 0                                 

[Sysname-hwping-administrator-dhcp] display hwping history administrator dhcp

HWPing entry(admin administrator, tag dhcp) history record:

    Index     Response    Status      LastRC      Time

        1         1018         1           0    2000-04-03 09:51:30.9

        2         1037         1           0    2000-04-03 09:51:22.9

        3         1024         1           0    2000-04-03 09:51:18.9

        4         1027         1           0    2000-04-03 09:51:06.8

        5         1018         1           0    2000-04-03 09:51:00.8

        6         1020         1           0    2000-04-03 09:50:52.8

        7         1018         1           0    2000-04-03 09:50:48.8

        8         1020         1           0    2000-04-03 09:50:36.8

        9         1020         1           0    2000-04-03 09:50:30.8

       10         1028         1           0    2000-04-03 09:50:22.8

关于显示信息的具体描述,请参见命令手册。

只有在没有接口启用DHCP Client时,才能够进行HWPing DHCP测试,否则DHCP Server端返回的响应报文将发送给启用了DHCP Client的接口,而不会将响应报文发送给源接口,从而导致HWPing DHCP测试失败。

 

1.3.3  FTP测试

1. 组网需求

HWPing客户端和FTP服务器都使用E352&E328以太网交换机。在两台交换机之间进行HWPing FTP测试,测试和指定的FTP服务器能否建立连接及建立连接后向服务器上传一个文件所需的时间。登录FTP服务器的用户名为admin,密码为admin,向服务器上传的文件名为cmdtree.txt。

2. 组网图

图1-4 FTP 测试组网图

 

3. 配置步骤

l              配置FTP Server(Switch B):

在SwitchB上配置FTP服务器,关于FTP服务器的具体配置请参见本手册“FTP-SFTP-TFTP”中相关部分的介绍。

l              配置HWPing Client(Switch A):

 # 开启hwping客户端。

<Sysname> system-view

[Sysname] hwping-agent enable

# 创建一个HWPing测试组。指定的管理员名字为administrator,测试操作标签为FTP。

[Sysname] hwping administrator ftp

# 配置测试类型为FTP。

[Sysname-hwping-administrator-ftp] test-type ftp

# 配置FTP服务器的IP地址为10.2.2.2。

[Sysname-hwping-administrator-ftp] destination-ip 10.2.2.2

# 配置登录用户名。

[Sysname-hwping-administrator-ftp] username admin

# 配置登录密码。

[Sysname-hwping-administrator-ftp] password admin

# 配置FTP操作类型。

[Sysname-hwping-administrator-ftp] ftp-operation put

# 配置要操作的文件名。

[Sysname-hwping-administrator-ftp] filename cmdtree.txt

# 配置一次测试中进行探测的次数为10。

[Sysname-hwping-administrator-ftp] count 10

# 配置探测的超时时间为30秒。

[Sysname-hwping-administrator-ftp] timeout 30

# 配置源地址。

[Sysname-hwping-administrator-ftp] source-ip 10.1.1.1

# 启动测试操作。

[Sysname-hwping-administrator-ftp] test-enable

# 查看测试结果。

[Sysname-hwping-administrator-ftp] display hwping results administrator ftp

HWPing entry(admin administrator, tag ftp) test result:

      Destination ip address:10.2.2.2

      Send operation times: 10              Receive response times: 10

      Min/Max/Average Round Trip Time: 3245/15891/12157

      Square-Sum of Round Trip Time: 1644458573

      Last succeeded test time: 2000-4-3 4:0:34.6

  Extend result:

      SD Maximal delay: 0                   DS Maximal delay: 0

      Packet lost in test: 0%

      Disconnect operation number: 0        Operation timeout number: 0

      System busy operation number: 0       Connection fail number: 0

      Operation sequence errors: 0          Drop operation number: 0

      Other operation errors: 0                                 

[Sysname-hwping-administrator-ftp] display hwping history administrator ftp

HWPing entry(admin administrator, tag ftp) history record:

    Index     Response    Status      LastRC      Time

        1        15822         1           0    2000-04-03 04:00:34.6

        2        15772         1           0    2000-04-03 04:00:18.8

        3         9945         1           0    2000-04-03 04:00:02.9

        4        15891         1           0    2000-04-03 03:59:52.9

        5        15772         1           0    2000-04-03 03:59:37.0

        6        15653         1           0    2000-04-03 03:59:21.2

        7         9792         1           0    2000-04-03 03:59:05.5

        8         9794         1           0    2000-04-03 03:58:55.6

        9         9891         1           0    2000-04-03 03:58:45.8

       10         3245         1           0    2000-04-03 03:58:35.9

关于显示信息的具体描述,请参见命令手册。

若要从服务器下载文件,则无需配置FTP操作类型,具体说明请参考本手册1.2.2  1. (3)

 

1.3.4  HTTP测试

1. 组网需求

E352&E328以太网交换机作为HWPing客户端,PC作为HTTP服务器。在HWPing客户端和HTTP服务器之间进行HWPing HTTP测试,测试与指定的HTTP服务器之间是否可以建立连接以及从HTTP服务器获取一个文件所用的时间。

2. 组网图

图1-5 HTTP 测试组网图

 

3. 配置步骤

l              配置HTTP Server:

HTTP服务器使用Windows 2003 Server,关于HTTP服务器的配置请参见Windows 2003 Server的相关配置指导书。

l              配置HWPing Client(Switch):

# 开启hwping客户端。

<Sysname> system-view

[Sysname] hwping-agent enable

# 创建一个HWPing测试组。指定的管理员名字为administrator,测试操作标签为HTTP。

[Sysname] hwping administrator http

# 配置测试的类型为HTTP。

[Sysname-hwping-administrator-http] test-type http

# 配置HTTP服务器的IP地址为10.2.2.2。

[Sysname-hwping-administrator-http] destination-ip 10.2.2.2

# 配置一次测试中进行探测的次数为10。

[Sysname-hwping-administrator-http] count 10

# 配置探测的超时时间为30秒。

[Sysname-hwping-administrator-http] timeout 30

# 启动测试操作。

[Sysname-hwping-administrator-http] test-enable

# 查看测试结果。

[Sysname-hwping-administrator-http] display hwping results administrator http

  HWPing entry(admin administrator, tag http) test result:

      Destination ip address:10.2.2.2

      Send operation times: 10              Receive response times: 10

      Min/Max/Average Round Trip Time: 47/87/74

      Square-Sum of Round Trip Time: 57044

      Last succeeded test time: 2000-4-2 20:41:50.4

  Extend result:

      SD Maximal delay: 0                   DS Maximal delay: 0

      Packet lost in test: 0%

      Disconnect operation number: 0        Operation timeout number: 0

      System busy operation number: 0       Connection fail number: 0

      Operation sequence errors: 0          Drop operation number: 0

      Other operation errors: 0

    Http result:

      DNS Resolve Time: 0                  HTTP Operation Time: 675

      DNS Resolve Min Time: 0              HTTP Test Total Time: 748

      DNS Resolve Max Time: 0              HTTP Transmission Successful Times: 10

      DNS Resolve Failed Times: 0          HTTP Transmission Failed Times: 0

      DNS Resolve Timeout Times: 0         HTTP Transmission Timeout Times: 0

      TCP Connect Time: 73                 HTTP Operation Min Time: 27

      TCP Connect Min Time: 5              HTTP Operation Max Time: 80

      TCP Connect Max Time: 20

      TCP Connect Timeout Times: 0                 

[Sysname-hwping-administrator-http] display hwping history administrator http

HWPing entry(admin administrator, tag http) history record:

    Index     Response    Status      LastRC      Time

        1           13         1           0    2000-04-02 15:15:52.5

        2            9         1           0    2000-04-02 15:15:52.5

        3            3         1           0    2000-04-02 15:15:52.5

        4            3         1           0    2000-04-02 15:15:52.5

        5            3         1           0    2000-04-02 15:15:52.5

        6            2         1           0    2000-04-02 15:15:52.4

        7            3         1           0    2000-04-02 15:15:52.4

        8            3         1           0    2000-04-02 15:15:52.4

        9            2         1           0    2000-04-02 15:15:52.4

       10            2         1           0    2000-04-02 15:15:52.4

关于显示信息的具体描述,请参见命令手册。

在进行HTTP测试时,如果指定目的地址为主机名称,则必须配置DNS服务器的IP地址,该DNS服务器用于将主机名称解析为IP地址,解析出的IP地址将作为本次测试的目的IP地址。

 

1.3.5  Jitter测试

1. 组网需求

HWPing客户端和HWPing服务器都使用E352&E328以太网交换机。在两台交换机之间进行HWPing Jitter测试,测试本端(HWPing客户端)和指定的目的端(HWPing服务器)之间传送UDP报文的时延抖动。

2. 组网图

图1-6 Jitter 测试组网图

 

3. 配置步骤

l              配置HWPing Server(Switch B):

# 开启HWPing服务器,配置监听的IP地址和端口号。

<Sysname> system-view

[Sysname] hwping-server enable

[Sysname] hwping-server udpecho 10.2.2.2 9000

l              配置HWPing Client(Switch A):

# 开启hwping客户端。

<Sysname> system-view

[Sysname] hwping-agent enable

# 创建一个HWPing测试组。指定的管理员名字为administrator,测试操作标签为Jitter。

[Sysname] hwping administrator Jitter

# 配置测试的类型为Jitter。

[Sysname-hwping-administrator-Jitter] test-type Jitter

# 配置HWPing 服务器的IP地址为10.2.2.2。

[Sysname-hwping-administrator-Jitter] destination-ip 10.2.2.2

# 配置HWPing服务器的目的端口。

[Sysname-hwping-administrator-Jitter] destination-port 9000

# 配置一次测试中进行探测的次数为10。

[Sysname-hwping-administrator-http] count 10

# 配置探测的超时时间为30秒。

[Sysname-hwping-administrator-Jitter] timeout 30

# 启动测试操作。

[Sysname-hwping-administrator-Jitter] test-enable

# 查看测试结果。

[Sysname-hwping-administrator-Jitter] display hwping results administrator Jitter

HWPing entry(admin administrator, tag Jitter) test result:

      Destination ip address:10.2.2.2

      Send operation times: 100             Receive response times: 100

      Min/Max/Average Round Trip Time: 9/21/13

      Square-Sum of Round Trip Time: 18623

      Last succeeded test time: 2000-4-2 8:14:58.2

  Extend result:

      SD Maximal delay: 10                  DS Maximal delay: 10

      Packet lost in test: 0%

      Disconnect operation number: 0        Operation timeout number: 0

      System busy operation number: 0       Connection fail number: 0

      Operation sequence errors: 0          Drop operation number: 0

      Other operation errors: 0

    Jitter result:

      RTT Number:100

      Min Positive SD:1                    Min Positive DS:1

      Max Positive SD:6                    Max Positive DS:8

      Positive SD Number:38                Positive DS Number:25

      Positive SD Sum:85                   Positive DS Sum:42

      Positive SD average:2                Positive DS average:1

      Positive SD Square Sum:267           Positive DS Square Sum:162

      Min Negative SD:1                    Min Negative DS:1

      Max Negative SD:6                    Max Negative DS:8

      Negative SD Number:30                Negative DS Number:24

      Negative SD Sum:64                   Negative DS Sum: 41

      Negative SD average:2                Negative DS average:1

      Negative SD Square Sum:200           Negative DS Square Sum:161

      SD lost packets number:0             DS lost packet number:0

      Unkown result lost packet number:0           

[Sysname-hwping-administrator-Jitter] display hwping history administrator Jitter

HWPing entry(admin administrator, tag Jitter) history record:

    Index     Response    Status      LastRC      Time

        1          274         1           0    2000-04-02 08:14:58.2

        2          278         1           0    2000-04-02 08:14:57.9

        3          280         1           0    2000-04-02 08:14:57.6

        4          279         1           0    2000-04-02 08:14:57.3

        5          280         1           0    2000-04-02 08:14:57.1

        6          270         1           0    2000-04-02 08:14:56.8

        7          275         1           0    2000-04-02 08:14:56.5

        8          263         1           0    2000-04-02 08:14:56.2

        9          270         1           0    2000-04-02 08:14:56.0

       10          275         1           0    2000-04-02 08:14:55.7

关于显示信息的具体描述,请参见命令手册。

1.3.6  SNMP测试

1. 组网需求

HWPing客户端和SNMP Agent都使用E352&E328以太网交换机。在两台交换机之间进行HWPing SNMP查询测试,测试从SwitchA发出一个SNMP协议查询报文到SwitchB(SNMP Agent)并接收到响应报文所用的时间。

2. 组网图

图1-7 SNMP 查询测试组网图

 

3. 配置步骤

l              配置SNMP Agent(Switch B):

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

<Sysname> system-view

[Sysname] snmp-agent

[Sysname] snmp-agent sys-info version v2c

[Sysname] snmp-agent community read public

[Sysname] snmp-agent community write private  

l    SNMP Agent上必须启动SNMP Agent服务,否则将收不到响应报文。

l    本例仅以SNMP V2C版本的配置作为参考。如果系统启用其他版本的SNMP,其配置可能有所不同,具体请参见“SNMP-RMON操作手册”中的介绍。

 

l              配置HWPing Client(Switch A):

# 开启hwping客户端。

<Sysname> system-view

[Sysname] hwping-agent enable

# 创建一个HWPing测试组。指定的管理员名字为administrator,测试操作标签为snmp。

[Sysname] hwping administrator snmp

# 配置测试的类型为SNMP。

[Sysname-hwping-administrator-snmp] test-type snmpquery

# 配置目的IP地址为10.2.2.2。

[Sysname-hwping-administrator-snmp] destination-ip 10.2.2.2

# 配置一次测试中进行探测的次数为10。

[Sysname-hwping-administrator-snmp] count 10

# 配置探测的超时时间为30秒。

[Sysname-hwping-administrator-snmp] timeout 30

# 启动测试操作。

[Sysname-hwping-administrator-snmp] test-enable

# 查看测试结果。

[Sysname-hwping-administrator-snmp] display hwping results administrator snmp

HWPing entry(admin administrator, tag snmp) test result:

      Destination ip address:10.2.2.2

      Send operation times: 10              Receive response times: 10

      Min/Max/Average Round Trip Time: 9/11/10

      Square-Sum of Round Trip Time: 983

      Last succeeded test time: 2000-4-3 8:57:20.0

  Extend result:

      SD Maximal delay: 0                   DS Maximal delay: 0

      Packet lost in test: 0%

      Disconnect operation number: 0        Operation timeout number: 0

      System busy operation number: 0       Connection fail number: 0

      Operation sequence errors: 0          Drop operation number: 0

      Other operation errors: 0

[Sysname-hwping-administrator-snmp] display hwping history administrator snmp

HWPing entry(admin administrator, tag snmp) history record:

    Index     Response    Status      LastRC      Time

        1           10         1           0    2000-04-03 08:57:20.0

        2           10         1           0    2000-04-03 08:57:20.0

        3           10         1           0    2000-04-03 08:57:20.0

        4           10         1           0    2000-04-03 08:57:19.9

        5            9         1           0    2000-04-03 08:57:19.9

        6           11         1           0    2000-04-03 08:57:19.9

        7           10         1           0    2000-04-03 08:57:19.9

        8           10         1           0    2000-04-03 08:57:19.9

        9           10         1           0    2000-04-03 08:57:19.8

       10           10         1           0    2000-04-03 08:57:19.8

关于显示信息的具体描述,请参见命令手册。

1.3.7  指定端口的TCP测试(Tcpprivate 测试)

1. 组网需求

HWPing客户端和HWPing服务器都使用E352&E328以太网交换机。在两台交换机之间使用HWPing TCP Private测试本端(SwitchA)和指定的目的端(SwitchB)之间建立TCP连接的时间,使用的端口号设置为8000。

2. 组网图

图1-8 Tcpprivate 测试组网图

 

3. 配置步骤

l              配置HWPing Server(Switch B):

# 开启HWPing服务器,配置监听的IP地址和端口号。

<Sysname> system-view

[Sysname] hwping-server enable

[Sysname] hwping-server tcpconnect 10.2.2.2 8000

l              配置HWPing Client(Switch A):

# 开启hwping客户端。

<Sysname> system-view

[Sysname] hwping-agent enable

# 创建一个HWPing测试组。指定的管理员名字为administrator,测试操作标签为tcpprivate。

[Sysname] hwping administrator tcpprivate

# 配置测试的类型为tcpprivate。

[Sysname-hwping-administrator-tcpprivate] test-type tcpprivate

# 配置HWPing 服务器的IP地址为10.2.2.2。

[Sysname-hwping-administrator-tcpprivate] destination-ip 10.2.2.2

# 配置HWPing 服务器的目的端口。

[Sysname-hwping-administrator-tcpprivate] destination-port 8000

# 配置一次测试中进行探测的次数为10。

[Sysname-hwping-administrator-tcpprivate] count 10

# 配置探测的超时时间为5秒。

[Sysname-hwping-administrator-tcpprivate] timeout 5

# 启动测试操作。

[Sysname-hwping-administrator-tcpprivate] test-enable

# 查看测试结果。

[Sysname-hwping-administrator-tcpprivate] display hwping results administrator tcpprivate

HWPing entry(admin administrator, tag tcpprivate) test result:

      Destination ip address:10.2.2.2

      Send operation times: 10              Receive response times: 10

      Min/Max/Average Round Trip Time: 4/7/5

      Square-Sum of Round Trip Time: 282

      Last succeeded test time: 2000-4-2 8:26:2.9

  Extend result:

      SD Maximal delay: 0                   DS Maximal delay: 0

      Packet lost in test: 0%

      Disconnect operation number: 0        Operation timeout number: 0

      System busy operation number: 0       Connection fail number: 0

      Operation sequence errors: 0          Drop operation number: 0

      Other operation errors: 0          

[Sysname-hwping-administrator-tcpprivate] display hwping history administrator tcpprivate

HWPing entry(admin administrator, tag tcpprivate) history record:

    Index     Response    Status      LastRC      Time

        1            4         1           0    2000-04-02 08:26:02.9

        2            5         1           0    2000-04-02 08:26:02.8

        3            4         1           0    2000-04-02 08:26:02.8

        4            5         1           0    2000-04-02 08:26:02.7

        5            4         1           0    2000-04-02 08:26:02.7

        6            5         1           0    2000-04-02 08:26:02.6

        7            6         1           0    2000-04-02 08:26:02.6

        8            7         1           0    2000-04-02 08:26:02.5

        9            5         1           0    2000-04-02 08:26:02.5

       10            7         1           0    2000-04-02 08:26:02.4

关于显示信息的具体描述,请参见命令手册。

1.3.8  指定端口的UDP测试(Udpprivate 测试)

1. 组网需求

HWPing客户端和HWPing服务器都使用E352&E328以太网交换机。在两台交换机之间进行指定端口的HWPing UDP测试,测试本端(HWPing客户端)和指定的目的端(HWPing服务器端)之间UDP协议报文的往返时间。

2. 组网图

图1-9 Udpprivate 测试组网图

 

3. 配置步骤

l              配置HWPing Server(Switch B):

# 开启HWPing服务器,配置监听的IP地址和端口号。

<Sysname> system-view

[Sysname] hwping-server enable

[Sysname] hwping-server udpecho 10.2.2.2 8000

l              配置HWPing Client(Switch A):

# 开启hwping客户端。

<Sysname> system-view

[Sysname] hwping-agent enable

# 创建一个HWPing测试组。指定的管理员名字为administrator,测试操作标签为udpprivate。

[Sysname] hwping administrator udpprivate

# 配置测试的类型为udpprivate。

[Sysname-hwping-administrator-udpprivate] test-type udpprivate

# 配置HWPing服务器的IP地址为10.2.2.2。

[Sysname-hwping-administrator-udpprivate] destination-ip 10.2.2.2

# 配置HWPing 服务器的目的端口。

[Sysname-hwping-administrator-udpprivate] destination-port 8000

# 配置一次测试中进行探测的次数为10。

[Sysname-hwping-administrator-udpprivate] count 10

# 配置探测的超时时间为5秒。

[Sysname-hwping-administrator-udpprivate] timeout 5

# 启动测试操作。

[Sysname-hwping-administrator-udpprivate] test-enable

# 查看测试结果。

[Sysname-hwping-administrator-udpprivate] display hwping results administrator udpprivate

HWPing entry(admin administrator, tag udpprivate) test result:

      Destination ip address:10.2.2.2

      Send operation times: 10              Receive response times: 10

      Min/Max/Average Round Trip Time: 10/12/10

      Square-Sum of Round Trip Time: 1170

      Last succeeded test time: 2000-4-2 8:29:45.5

  Extend result:

      SD Maximal delay: 0                   DS Maximal delay: 0

      Packet lost in test: 0%

      Disconnect operation number: 0        Operation timeout number: 0

      System busy operation number: 0       Connection fail number: 0

      Operation sequence errors: 0          Drop operation number: 0

      Other operation errors: 0                 

[Sysname-hwping-administrator-udpprivate] display hwping history administrator udpprivate

HWPing entry(admin administrator, tag udpprivate) history record:

    Index     Response    Status      LastRC      Time

        1           11         1           0    2000-04-02 08:29:45.5

        2           12         1           0    2000-04-02 08:29:45.4

        3           11         1           0    2000-04-02 08:29:45.4

        4           11         1           0    2000-04-02 08:29:45.4

        5           11         1           0    2000-04-02 08:29:45.4

        6           11         1           0    2000-04-02 08:29:45.4

        7           10         1           0    2000-04-02 08:29:45.3

        8           10         1           0    2000-04-02 08:29:45.3

        9           10         1           0    2000-04-02 08:29:45.3

       10           11         1           0    2000-04-02 08:29:45.3

关于显示信息的具体描述,请参见命令手册。

1.3.9  DNS测试

1. 组网需求

E352&E328以太网交换机作为HWPing客户端,PC作为DNS服务器。在交换机和DNS服务器之间进行HWPing DNS测试,测试从客户端发送一个DNS请求域名解析报文到收到DNS服务器域名解析结果的时间。

2. 组网图

图1-10 DNS 测试组网图

 

3. 配置步骤

l              配置DNS Server:

DNS服务器使用Windows 2003 Server,关于DNS服务器的配置请参见Windows 2003 Server的相关配置指导书。

l              配置HWPing Client(Switch):

# 开启hwping客户端。

<Sysname> system-view

[Sysname] hwping-agent enable

# 创建一个HWPing测试组。指定的管理员名字为administrator,测试操作标签为dns。

[Sysname] hwping administrator dns

# 配置测试的类型为dns。

[Sysname-hwping-administrator-dns] test-type dns

# 配置dns服务器为10.2.2.2。

[Sysname-hwping-administrator-dns] dns-server 10.2.2.2

# 配置dns测试要解析的域名为www.test.com

[Sysname-hwping-administrator-dns] dns resolve-target www.test.com

# 配置一次测试中进行探测的次数为10。

[Sysname-hwping-administrator-dns] count 10

# 配置探测的超时时间为5秒。

[Sysname-hwping-administrator-dns] timeout 5

# 启动测试操作。

[Sysname-hwping-administrator-dns] test-enable

# 查看测试结果。

[Sysname-hwping-administrator-dns] display hwping results administrator dns

HWPing entry(admin administrator, tag dns) test result:

      Destination ip address:10.2.2.2

      Send operation times: 10              Receive response times: 10

      Min/Max/Average Round Trip Time: 6/10/8

      Square-Sum of Round Trip Time: 756

      Last succeeded test time: 2006-11-28 11:50:40.9

  Extend result:

      SD Maximal delay: 0                   DS Maximal delay: 0

      Packet lost in test: 0%

      Disconnect operation number: 0        Operation timeout number: 0

      System busy operation number: 0       Connection fail number: 0

      Operation sequence errors: 0          Drop operation number: 0

      Other operation errors: 0

    Dns result:

      DNS Resolve Current Time: 10         DNS Resolve Min Time: 6

      DNS Resolve Times: 10                DNS Resolve Max Time: 10

      DNS Resolve Timeout Times: 0         DNS Resolve Failed Times: 0

[Sysname-hwping-administrator-dns] display hwping history administrator dns

HWPing entry(admin administrator, tag dns) history record:

    Index     Response    Status      LastRC      Time

        1           10         1           0    2006-11-28 11:50:40.9

        2           10         1           0    2006-11-28 11:50:40.9

        3           10         1           0    2006-11-28 11:50:40.9

        4            7         1           0    2006-11-28 11:50:40.9

        5            8         1           0    2006-11-28 11:50:40.9

        6            6         1           0    2006-11-28 11:50:40.9

        7            8         1           0    2006-11-28 11:50:40.9

        8            9         1           0    2006-11-28 11:50:40.9

        9            9         1           0    2006-11-28 11:50:40.9

       10            9         1           0    2006-11-28 11:50:40.9

关于显示信息的具体描述,请参见命令手册。

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

新华三官网
联系我们