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

H3C S3100-52P以太网交换机 操作手册-Release 1702-6W100

35-HWPing操作

本章节下载  (402.82 KB)

docurl=/cn/Service/Document_Software/Document_Center/Switches/Catalog/S3100/S3100-52P/Configure/Operation_Manual/H3C_S3100-52P_OM-Release_1702-6W100/201004/672753_30005_0.htm

35-HWPing操作


1 HWPing配置

新增HWPing扩展特性,具体请参见HWPing相关测试部分中的datafilldescriptiondisplay hwping statistics sendpacket passroutettlfilesizehistory-record enablehistory keep-timestatisticsstatistics keep-timetest-time beginhwping-agent max-requests、hwping-agent clearadv-factor命令。

 

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支持的测试类型

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

支持的测试类型

说明

ICMP测试

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

DHCP测试

FTP测试

HTTP测试

DNS测试

SNMP测试

Jitter测试

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

l      请不要对1~1023之间的端口(知名端口)进行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测试

l      如果通过test-type命令修改了测试类型,则原有测试类型的参数配置、测试结果及历史记录都将被清除

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

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

数据报文的大小datasize

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

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

测试报文中的填充字符串datafill

在进行ICMP、UDP和jitter测试时,系统需要对所发送的ICMP报文的数据字段进行填充,填充数据可以是长度为1~230个字符(可包含空格)任意字符串

l      如果数据字段的长度比配置的填充数据长度小,系统将使用此字符串的前一部分进行填充。例如,配置的填充数据为“abcde”,当测试报文长度为3bit时,则只使用“abc”作为填充数据;

l      如果测试报文的长度比配置的填充数据长度大,系统将使用此字符串循环进行填充。例如,配置的填充数据为“abcde”,当测试报文大小为8bit时,则使用“abcdeabc”作为填充数据

设置路由表旁路sendpacket passroute

路由表旁路功能是指远端主机将不进行通常的路由表查找,而直接发送报文到相连网络上的主机。如果主机所在网络不是直连的,就返回错误。例如,在接口上ping一个无路由的本地主机时可以使用本功能

HWPing ICMP测试报文生存时间ttl

所谓报文生存时间,实际上是指测试报文在网络中可以经过的跳数,该参数相当于ping命令中的“-h”参数

保存历史记录的最大数目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所要操作的文件名

FTP操作文件的大小filesize

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服务器端配置

H3C S3100-52P以太网交换机可以作为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设置测试类型的命令test-type,如果设置的测试类型与测试组当前的类型不相同,则当前测试组的配置、测试记录以及历史记录将被清除。用户在进行HWPing客户端配置时,除HWPing ICMP测试以外,在“建立HWPing测试组并进入HWPing测试组视图”之后,必须首先配置测试类型test-type,再配置其他的测试参数。

 

(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字节

配置填充字符

datafill string

可选

缺省情况下,采用数字0~255循环进行填充

配置测试的描述字符串

description string

可选

缺省情况下,没有配置描述信息

保存历史记录的最大数目

history-records number

可选

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

打开历史记录开关

history-record enable

可选

缺省情况下,历史记录开关没有打开

配置历史记录的保存时间

history keep-time keep-time

可选

缺省情况下,历史记录的保存时间为120分钟

配置统计时间间隔和保存统计信息的最大数目

statistics { interval interval | max-group number }

可选

缺省情况下,统计时间间隔为120分钟,最多保存的统计信息的数目为2条

配置统计信息的保存时间

statistics keep-time keep-time

可选

缺省情况下,统计信息的保存时间为120分钟

配置测试的开始时间和持续时间

test-time begin { hh:mm :ss [ yyyy/mm/dd ] | now } lifetime lifetime

可选

缺省情况下,系统没有配置测试的开始时间和持续时间

开启路由表旁路功能

sendpacket passroute

可选

缺省情况下,路由表旁路功能处于关闭状态

配置HWPing ICMP测试报文生存时间

ttl number

可选

缺省情况下,生存时间为20

当配置了sendpacket passroute命令时,ttl命令的配置将不会生效

配置自动测试的时间间隔

frequency interval

可选

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

探测的超时时间

timeout time

可选

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

配置服务类型

tos value

可选

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

启动测试

test-enable

必选

查看测试结果

display hwping results [ admin-name operation-tag ]

必选

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

 

l    在进行HWPing ICMP测试时,如果通过source-interface命令配置的源接口上没有配置IP地址,则测试不能被执行;如果已经通过source-ip命令配置了源IP地址,则source-interface配置无效。

l    在ICMP类型测试中,当通过source-interface interface-type interface-number命令指定源接口后,报文的ttl值将自动被设置为1,以用来测试直连设备(即设备的IP地址和指定接口的IP地址在同一网段)。

 

(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

配置测试的描述字符串

description string

可选

缺省情况下,没有配置描述信息

保存历史记录的最大数目

history-records number

可选

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

打开历史记录开关

history-record enable

可选

缺省情况下,历史记录开关没有打开

配置历史记录的保存时间

history keep-time keep-time

缺省情况下,历史记录的保存时间为120分钟

配置统计时间间隔和保存统计信息的最大数目

statistics { interval interval | max-group number }

可选

缺省情况下,统计时间间隔为120分钟,最多保存的统计信息的数目为2条

配置统计信息的保存时间

statistics keep-time keep-time

可选

缺省情况下,统计信息的保存时间为120分钟

配置测试的开始时间和持续时间

test-time begin { hh:mm :ss [ yyyy/mm/dd ] | now } lifetime lifetime

可选

缺省情况下,系统没有配置测试的开始时间和持续时间

配置可同时进行测试的最大个数

hwping-agent max-requests number

可选

缺省情况下,可同时进行测试的最大个数为5

开启路由表旁路功能

sendpacket passroute

可选

缺省情况下,路由表旁路功能处于关闭状态

探测的超时时间

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

配置测试的描述字符串

description string

可选

缺省情况下,没有配置描述信息

保存历史记录的最大数目

history-records number

可选

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

打开历史记录开关

history-record enable

可选

缺省情况下,历史记录开关没有打开

配置历史记录的保存时间

history keep-time keep-time

可选

缺省情况下,历史记录的保存时间为120分钟

配置统计时间间隔和保存统计信息的最大数目

statistics { interval interval | max-group number }

可选

缺省情况下,统计时间间隔为120分钟,最多保存的统计信息的数目为2条

配置统计信息的保存时间

statistics keep-time keep-time

可选

缺省情况下,统计信息的保存时间为120分钟

配置测试的开始时间和持续时间

test-time begin { hh:mm :ss [ yyyy/mm/dd ] | now } lifetime lifetime

可选

缺省情况下,系统没有配置测试的开始时间和持续时间

开启路由表旁路功能

sendpacket passroute

可选

缺省情况下,路由表旁路功能处于关闭状态

配置HWPing ICMP测试报文生存时间

ttl number

可选

缺省情况下,生存时间为20

当配置了sendpacket passroute命令时,ttl命令的配置将不会生效

配置自动测试的时间间隔

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

必选

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

配置向FTP服务器传送的文件的大小

filesize file-size

必选

缺省情况下,向FTP服务器传送的文件的长度为1000KByte

启动测试

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

配置测试的描述字符串

description string

可选

缺省情况下,没有配置描述信息

保存历史记录的最大数目

history-records number

可选

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

打开历史记录开关

history-record enable

可选

缺省情况下,历史记录开关没有打开

配置历史记录的保存时间

history keep-time keep-time

可选

缺省情况下,历史记录的保存时间为120分钟

配置统计时间间隔和保存统计信息的最大数目

statistics { interval interval | max-group number }

可选

缺省情况下,统计时间间隔为120分钟,最多保存的统计信息的数目为2条

配置统计信息的保存时间

statistics keep-time keep-time

可选

缺省情况下,统计信息的保存时间为120分钟

配置测试的开始时间和持续时间

test-time begin { hh:mm :ss [ yyyy/mm/dd ] | now } lifetime lifetime

可选

缺省情况下,系统没有配置测试的开始时间和持续时间

开启路由表旁路功能

sendpacket passroute

可选

缺省情况下,路由表旁路功能处于关闭状态

配置HWPing ICMP测试报文生存时间

ttl number

可选

缺省情况下,生存时间为20

当配置了sendpacket passroute命令时,ttl命令的配置将不会生效

配置自动测试的时间间隔

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 [ codec codec-value ]

必选

缺省情况下,测试类型为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字节

配置填充字符

datafill string

可选

缺省情况下,采用数字0~255循环进行填充

配置测试的描述字符串

description string

可选

缺省情况下,没有配置描述信息

保存历史记录的最大数目

history-records number

可选

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

打开历史记录开关

history-record enable

可选

缺省情况下,历史记录开关没有打开

配置历史记录的保存时间

history keep-time keep-time

可选

缺省情况下,历史记录的保存时间为120分钟

配置统计时间间隔和保存统计信息的最大数目

statistics { interval interval | max-group number }

可选

缺省情况下,统计时间间隔为120分钟,最多保存的统计信息的数目为2条

配置统计信息的保存时间

statistics keep-time keep-time

可选

缺省情况下,统计信息的保存时间为120分钟

配置测试的开始时间和持续时间

test-time begin { hh:mm :ss [ yyyy/mm/dd ] | now } lifetime lifetime

可选

缺省情况下,系统没有配置测试的开始时间和持续时间

开启路由表旁路功能

sendpacket passroute

可选

缺省情况下,路由表旁路功能处于关闭状态

配置HWPing ICMP测试报文生存时间

ttl number

可选

缺省情况下,生存时间为20

当配置了sendpacket passroute命令时,ttl命令的配置将不会生效

配置自动测试的时间间隔

frequency interval

可选

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

探测的超时时间

timeout time

可选

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

配置服务类型

tos value

可选

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

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

jitter-packetnum number

可选

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

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

jitter-interval interval

可选

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

配置jitter语音测试时的补偿因子

adv-factor adv-number

可选

缺省情况下,补偿因子的取值为0

启动测试

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

配置测试的描述字符串

description string

可选

缺省情况下,没有配置描述信息

保存历史记录的最大数目

history-records number

可选

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

打开历史记录开关

history-record enable

可选

缺省情况下,历史记录开关没有打开

配置历史记录的保存时间

history keep-time keep-time

可选

缺省情况下,历史记录的保存时间为120分钟

配置统计时间间隔和保存统计信息的最大数目

statistics { interval interval | max-group number }

可选

缺省情况下,统计时间间隔为120分钟,最多保存的统计信息的数目为2条

配置统计信息的保存时间

statistics keep-time keep-time

可选

缺省情况下,统计信息的保存时间为120分钟

配置测试的开始时间和持续时间

test-time begin { hh:mm :ss [ yyyy/mm/dd ] | now } lifetime lifetime

可选

缺省情况下,系统没有配置测试的开始时间和持续时间

开启路由表旁路功能

sendpacket passroute

可选

缺省情况下,路由表旁路功能处于关闭状态

配置HWPing ICMP测试报文生存时间

ttl number

可选

缺省情况下,生存时间为20

当配置了sendpacket passroute命令时,ttl命令的配置将不会生效

配置自动测试的时间间隔

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

配置测试的描述字符串

description string

可选

缺省情况下,没有配置描述信息

保存历史记录的最大数目

history-records number

可选

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

打开历史记录开关

history-record enable

可选

缺省情况下,历史记录开关没有打开

配置历史记录的保存时间

history keep-time keep-time

可选

缺省情况下,历史记录的保存时间为120分钟

配置统计时间间隔和保存统计信息的最大数目

statistics { interval interval | max-group number }

可选

缺省情况下,统计时间间隔为120分钟,最多保存的统计信息的数目为2条

配置统计信息的保存时间

statistics keep-time keep-time

可选

缺省情况下,统计信息的保存时间为120分钟

配置测试的开始时间和持续时间

test-time begin { hh:mm :ss [ yyyy/mm/dd ] | now } lifetime lifetime

可选

缺省情况下,系统没有配置测试的开始时间和持续时间

开启路由表旁路功能

sendpacket passroute

可选

缺省情况下,路由表旁路功能处于关闭状态

配置HWPing ICMP测试报文生存时间

ttl number

可选

缺省情况下,生存时间为20

当配置了sendpacket passroute命令时,ttl命令的配置将不会生效

配置自动测试的时间间隔

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字节

配置填充字符

datafill string

可选

缺省情况下,采用数字0~255循环进行填充

配置测试的描述字符串

description string

可选

缺省情况下,没有配置描述信息

保存历史记录的最大数目

history-records number

可选

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

打开历史记录开关

history-record enable

可选

缺省情况下,历史记录开关没有打开

配置历史记录的保存时间

history keep-time keep-time

可选

缺省情况下,历史记录的保存时间为120分钟

配置统计时间间隔和保存统计信息的最大数目

statistics { interval interval | max-group number }

可选

缺省情况下,统计时间间隔为120分钟,最多保存的统计信息的数目为2条

配置统计信息的保存时间

statistics keep-time keep-time

可选

缺省情况下,统计信息的保存时间为120分钟

配置测试的开始时间和持续时间

test-time begin { hh:mm :ss [ yyyy/mm/dd ] | now } lifetime lifetime

可选

缺省情况下,系统没有配置测试的开始时间和持续时间

开启路由表旁路功能

sendpacket passroute

可选

缺省情况下,路由表旁路功能处于关闭状态

配置HWPing ICMP测试报文生存时间

ttl number

可选

缺省情况下,生存时间为20

当配置了sendpacket passroute命令时,ttl命令的配置将不会生效

配置自动测试的时间间隔

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

配置测试的描述字符串

description string

可选

缺省情况下,没有配置描述信息

保存历史记录的最大数目

history-records number

可选

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

打开历史记录开关

history-record enable

可选

缺省情况下,历史记录开关没有打开

配置历史记录的保存时间

history keep-time keep-time

可选

缺省情况下,历史记录的保存时间为120分钟

配置统计时间间隔和保存统计信息的最大数目

statistics { interval interval | max-group number }

可选

缺省情况下,统计时间间隔为120分钟,最多保存的统计信息的数目为2条

配置统计信息的保存时间

statistics keep-time keep-time

可选

缺省情况下,统计信息的保存时间为120分钟

配置测试的开始时间和持续时间

test-time begin { hh:mm :ss [ yyyy/mm/dd ] | now } lifetime lifetime

可选

缺省情况下,系统没有配置测试的开始时间和持续时间

开启路由表旁路功能

sendpacket passroute

可选

缺省情况下,路由表旁路功能处于关闭状态

配置HWPing ICMP测试报文生存时间

ttl number

可选

缺省情况下,生存时间为20

当配置了sendpacket passroute命令时,ttl命令的配置将不会生效

配置自动测试的时间间隔

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命令可以在任意视图下执行

 

(10)    清除所有测试用例

表1-14 清除所有测试用例

操作

命令

说明

进入系统视图

system-view

-

清除所有测试用例

hwping-agent clear

必选

 

l          执行该命令清除所有已配的测试组,包括其所有测试组配置及测试结果、历史信息;

l          命令执行后结果不可恢复;

l          该命令不会关闭hwping-agent功能。

 

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

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

表1-15 配置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-16 显示HWPing测试结果

操作

命令

说明

显示HWPing测试的结果信息、历史记录信息、抖动信息

display hwping { results | history | jitter } [ administrator-name operation-tag ]

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

显示测试的统计信息

display hwping statistics [ administrator-name operation-tag ]

 

1.3  HWPing配置举例

1.3.1  ICMP测试

1. 组网需求

H3C S3100-52P以太网交换机作为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

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

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

# 启动测试操作。

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

# 查看测试结果。

[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服务器都使用H3C S3100-52P以太网交换机。在两台交换机之间进行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服务器都使用H3C S3100-52P以太网交换机。在两台交换机之间进行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):

# 配置三层接口IP地址。

<Sysname> system-view

[Sysname] interface Vlan-interface 1

[Sysname-Vlan-interface1] ip address 10.1.1.1 8

# 开启hwping客户端。

[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. 组网需求

H3C S3100-52P以太网交换机作为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服务器都使用H3C S3100-52P以太网交换机。在两台交换机之间进行HWPing Jitter测试,测试本端(HWPing客户端)和指定的目的端(HWPing服务器)之间传送UDP报文的时延抖动,使用的端口号设置为9000。

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都使用H3C S3100-52P以太网交换机。在两台交换机之间进行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服务器都使用H3C S3100-52P以太网交换机。在两台交换机之间使用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服务器都使用H3C S3100-52P以太网交换机。在两台交换机之间进行指定端口的HWPing UDP测试,测试本端(HWPing客户端)和指定的目的端(HWPing服务器端)之间UDP协议报文的往返时间,使用的端口号设置为8000。

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. 组网需求

H3C S3100-52P以太网交换机作为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保留在没有任何通知或提示的情况下对资料内容进行修改的权利!

新华三官网
联系我们