H3C Low-End Ethernet Switches Configuration Guide(V1.01)

HomeSupportSwitchesH3C S3100 Switch SeriesConfigure & DeployConfiguration ExamplesH3C Low-End Ethernet Switches Configuration Guide(V1.01)
Table of Contents
Related Documents
37-HWPing Configuration Guide
Title Size Download
37-HWPing Configuration Guide 113.51 KB

HWPing Configuration

HWPing (pronounced Hua’Wei Ping) is a network diagnostic tool. It is used to test the performance of various protocols running in networks. HWPing provides more functions than the ping command.

The ping command can only use the Internet Control Message Protocol (ICMP) to test the round trip time (RTT) between the local end and a specified destination end for you to judge whether the destination end is reachable.

A HWPing test group is a set of HWPing test parameters. A test group contains several test parameters and is uniquely identified by an administrator name and a test operation tag.

After creating a HWPing test group and configuring the test parameters, you can perform a HWPing test with the test-enable command.

Different from the ping command, HWPing does not display the RTT or timeout status of each packet on the console terminal in real time. To view the statistic results of your HWPing test operation, you need to execute the display hwping command. HWPing also allows you to set parameters for HWPing test groups, start HWPing tests and view statistical test results through a network management device.

ICMP Test

Network diagram

Figure 1-1 Network diagram for the ICMP test

 

Networking and configuration requirements

A HWPing ICMP test between two switches uses ICMP to test the round trip time (RTT) for packets generated by the HWPing client.

Applicable product matrix

Product series

Software version

Hardware version

S5600 series

Release 1510, Release1602

All versions

S5100-SI/EI series

Release 2200, Release2201

All versions

S3600-SI/EI series

Release 1510, Release1602

All versions

S3100-EI series

Release 2104, Release 2107

All versions

S3100-C-SI series

S3100-T-SI series

Release 0011, Release 2102, Release 2107

All versions

S3100-52P

Release 1500, Release 1602

S3100-52P

 

Configuration procedure

# Enable the HWPing client.

<SwitchA> system-view

System View: return to User View with Ctrl+Z.

[SwitchA] hwping-agent enable

# Create a HWPing test group, configuring the administrator name as administrator and test operation tag as ICMP.

[SwitchA] hwping administrator icmp

# Configure the test type as ICMP.

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

# Configure the destination IP address as 10.2.2.2.

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

# Configure the number of probes in one test as 10.

[SwitchA-hwping-administrator-icmp] count 10

# Configure the probe timeout time as 5 seconds.

[SwitchA-hwping-administrator-icmp] timeout 5

# Start the test.

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

# View the test results.

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

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

For detailed output description, see the corresponding command manual.

Complete configuration

Configuration on Switch A.

#

hwping-agent enable

hwping administrator icmp

 test-type icmp

 destination-ip 10.2.2.2

 count 10

 timeout 5

Precautions

none

DHCP Test

Network diagram

Figure 1-2 Network diagram for the DHCP test

 

Networking and configuration requirements

Perform a HWPing DHCP test between the two switches to test the time required for the HWPing client to obtain an IP address from the DHCP server.

Applicable product matrix

Product series

Software version

Hardware version

S5600 series

Release1602

All versions

S5100-SI/EI series

Release 2200, Release2201

All versions

S3600-SI/EI series

Release1602

All versions

S3100-EI series

Release 2104, Release 2107

All versions

S3100-C-SI series

S3100-T-SI series

Release 2102, Release 2107

All versions

S3100-52P

Release 1602

S3100-52P

 

Configuration procedure

l          Configure DHCP Server(Switch B):

Configure DHCP server on Switch B. For specific configuration of DHCP server, refer to the DHCP part of the manual.

l          Configure HWPing Client (Switch A):

# Enable the HWPing client.

<SwitchA> system-view

[SwitchA] hwping-agent enable

# Create a HWPing test group, setting the administrator name to administrator and test tag to DHCP.

[SwitchA] Hwping administrator dhcp

# Configure the test type as dhcp.

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

# Configure the source interface, which must be a VLAN interface. Make sure the DHCP server resides on the network connected to this interface.

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

# Configure to make 10 probes per test.

[SwitchA-hwping-administrator-dhcp] count 10

# Set the probe timeout time to 5 seconds.

[SwitchA-hwping-administrator-dhcp] timeout 5

# Start the test.

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

# Display test results

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

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

For detailed output description, see the corresponding command manual.

Complete configuration

Configuration on Switch A.

#

hwping-agent enable

hwping administrator dhcp

 test-type dhcp

 source-interface Vlan-interface 1

 count 10

 timeout 5

#

Precautions

You can perform a HWPing DHCP test only when no DHCP client is enabled on any interface. Otherwise, the DHCP Server sends the response to an interface enabled with the DHCP Client rather than to the source interface, thus resulting in HWPing DHCP test failure.

HTTP Test

Network diagram

Figure 1-3 Network diagram for the HTTP test

 

Networking and configuration requirements

Perform a HWPing HTTP test between the switch and the HTTP server to test the connectivity and the time required to download a file from the HTTP server after the connection to the server is established.

Applicable product matrix

Product series

Software version

Hardware version

S5600 series

Release1602

All versions

S5100-SI/EI series

Release 2200, Release2201

All versions

S3600-SI/EI series

Release1602

All versions

S3100-EI series

Release 2104, Release 2107

All versions

S3100-C-SI series

S3100-T-SI series

Release 2102, Release 2107

All versions

S3100-52P

Release 1602

S3100-52P

 

Configuration procedure

l          Configure HTTP Server:

Use Windows 2003 Server as the HTTP server. For HTTP server configuration, refer to the related instruction on Windows 2003 Server configuration.

l          Configure HWPing Client (Switch A):

# Enable the HWPing client.

<SwitchA> system-view

[SwitchA] hwping-agent enable

# Create a HWPing test group, setting the administrator name to administrator and test tag to HTTP.

[SwitchA] Hwping administrator http

# Configure the test type as http.

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

# Configure the IP address of the HTTP server as 10.2.2.2.

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

# Configure to make 10 probes per test.

[SwitchA-hwping-administrator-http] count 10

# Set the probe timeout time to 30 seconds.

[SwitchA-hwping-administrator-http] timeout 30

# Start the test.

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

# Display test results

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

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

For detailed output description, see the corresponding command manual.

Complete configuration

Configuration on Switch A.

#

hwping-agent enable

hwping administrator http

 test-type http

 destination-ip 10.2.2.2

 count 10

 timeout 30

#

Precautions

none

TCP Test (Tcpprivate Test) on the Specified Ports

Network diagram

Figure 1-4 Network diagram for the Tcpprivate test

 

Networking and configuration requirements

Perform a HWPing Tcpprivate test to test time required to establish a TCP connection between this end (Switch A) and the specified destination end (Switch B), with the port number set to 8000.

Applicable product matrix

Product series

Software version

Hardware version

S5600 series

Release1602

All versions

S5100-SI/EI series

Release 2200, Release2201

All versions

S3600-SI/EI series

Release1602

All versions

S3100-EI series

Release 2104, Release 2107

All versions

S3100-C-SI series

S3100-T-SI series

Release 2102, Release 2107

All versions

S3100-52P

Release 1602

S3100-52P

 

Configuration procedure

l          Configure HWPing Server (Switch B):

# Enable the HWPing server and configure the IP address and port to listen on.

<SwitchB> system-view

[SwitchB] hwping-server enable

[SwitchB] hwping-server tcpconnect 10.2.2.2 8000

l          Configure HWPing Client (Switch A):

# Enable the HWPing client.

<SwitchA> system-view

[SwitchA] hwping-agent enable

# Create a HWPing test group, setting the administrator name to administrator and test tag to tcpprivate.

[SwitchA] Hwping administrator tcpprivate

# Configure the test type as tcpprivate.

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

# Configure the IP address of the HWPing server as 10.2.2.2.

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

# Configure the destination port on the HWPing server.

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

# Configure to make 10 probes per test.

[SwitchA-hwping-administrator-tcpprivate] count 10

# Set the probe timeout time to 5 seconds.

[SwitchA-hwping-administrator-tcpprivate] timeout 5

# Start the test.

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

# Display test results.

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

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

For detailed output description, see the corresponding command manual.

Complete configuration

l          Configuration on Switch B.

#

hwping-server enable

hwping-server tcpconnect 10.2.2.2 8000

#

l          Configuration on Switch A.

#

hwping-agent enable

hwping administrator tcpprivate

 test-type tcpprivate

 destination-ip 10.2.2.2

 destination-port 8000

 count 10

 timeout 5

#

Precautions

none

DNS Test

Network diagram

Figure 1-5 Network diagram for the DNS test

 

Networking and configuration requirements

Perform a HWPing DNS test between the switch and the DNS server to test the time required from the client sends a DNS request to it receives a resolution result from the DNS server.

Applicable product matrix

Product series

Software version

Hardware version

S5600 series

Release1602

All versions

S5100-SI/EI series

Release 2200, Release2201

All versions

S3600-SI/EI series

Release1602

All versions

S3100-EI series

Release 2104, Release 2107

All versions

S3100-C-SI series

S3100-T-SI series

Release 2102, Release 2107

All versions

S3100-52P

Release 1602

S3100-52P

 

Configuration procedure

l          Configure DNS Server:

Use Windows 2003 Server as the DNS server. For DNS server configuration, refer to the related instruction on Windows 2003 Server configuration.

l          Configure HWPing Client (Switch A)

# Enable the HWPing client.

<SwitchA> system-view

[SwitchA] hwping-agent enable

# Create a HWPing test group, setting the administrator name to administrator and test tag to dns.

[SwitchA] hwping administrator dns

# Configure the test type as dns.

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

# Configure the IP address of the DNS server as 10.2.2.2.

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

# Configure to resolve the domain name www.test.com.

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

# Configure to make 10 probes per test.

[SwitchA-hwping-administrator-dns] count 10

# Set the probe timeout time to 5 seconds.

[SwitchA-hwping-administrator-dns] timeout 5

# Start the test.

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

# Display test results.

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

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

For detailed output description, see the corresponding command manual.

Complete configuration

l          Configuration on Switch A.

#

hwping-agent enable

hwping administrator dns

 test-type dns

 destination-ip 10.2.2.2

 dns resolve-target www.test.com

 count 10

 timeout 5

#

Precautions

none

 

  • Cloud & AI
  • InterConnect
  • Intelligent Computing
  • Security
  • SMB Products
  • Intelligent Terminal Products
  • Product Support Services
  • Technical Service Solutions
All Services
  • Resource Center
  • Policy
  • Online Help
All Support
  • Become a Partner
  • Partner Resources
  • Partner Business Management
All Partners
  • Profile
  • News & Events
  • Online Exhibition Center
  • Contact Us
All About Us
新华三官网