H3C S3100-52P Ethernet Switch Operation Manual-Release 1500(V1.02)

HomeSupportResource CenterSwitchesH3C S3100 Switch SeriesH3C S3100 Switch SeriesTechnical DocumentsConfigure & DeployConfiguration GuidesH3C S3100-52P Ethernet Switch Operation Manual-Release 1500(V1.02)
32-HWPing Operation
Title Size Download
32-HWPing Operation 71.4 KB

Chapter 1  HWPing Configuration

1.1  Introduction to HWPing

HWPing is a network diagnostic tool used to test the performance of protocols (only ICMP by far) running on network. It is an enhanced alternative to the ping command.

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 plus a test tag.

You can perform an HWPing test after creating a test group and configuring the test parameters.

Different from the ping command, HWPing does not display the round trip time (RTT) and timeout status of each packet on the console terminal in real time. You need to execute the display hwping command to view the statistic results of your HWPing test operation. HWPing allows setting the parameters of HWPing test groups and starting HWPing test operations through network management system.

Figure 1-1 Illustration for HWPing

1.2  HWPing Configuration

1.2.1  Introduction to HWPing Configuration

The configuration tasks for HWPing include:

l           Enabling HWPing Client

l           Creating test group

l           Configuring test parameters

The test parameters that you can configure include:

1)         Destination IP address

It is equivalent to the destination IP address in the ping command.

2)         Test type

Currently, HWPing supports only one test type: ICMP.

3)         Number of test packets to be sent in a test

If this parameter is set to a number greater than 1, the system sends the second test packet once it receives a response to the first one, or when the test timer times out if it receives no response after sending the first one, and so forth until the last test packet is sent out. This parameter is equivalent to the –n keyword in the ping command.

4)         Automatic test interval

This parameter is used to enable the system to automatically perform the same test at regular intervals.

5)         Test timeout time

Test timeout time is the duration while the system waits for an ECHO-RESPONSE packet after it sends out an ECHO-REQUEST packet. If no ECHO-RESPONSE packet is received within this duration, this test is considered a failure. This parameter is similar to the -t keyword in the ping command, but has a different unit (the -t keyword in the ping command is in milliseconds, while the timeout time in the HWPing command is in seconds).

1.2.2  Configuring HWPing

Table 1-1 Configure HWPing

Operation

Command

Description

Enter system view

system-view

Enable HWPing Client

hwping-agent enable

Required

By default, HWPing Client is disabled.

Create an HWPing test group

hwping administrator-name operation- tag

Required

By default, no HWPing test group is configured.

Configure the destination IP address of the test

destination-ip ip-address

Required

By default, no destination IP address is configured.

Configure the test type

test-type type

Optional

By default, the test type is ICMP.

Configure the number of packets to be sent in each test.

count times

Optional

By default, the number of packets to be sent in each test is 1.

Configure the automatic test interval.

frequency interval

Optional

By default, the automatic test interval is zero, indicating no automatic test will be performed.

Configure the timeout time of the test.

timeout time

Optional

By default, the timeout time is 3 seconds.

Execute the test

test-enable

Required

 

1.2.3  Displaying HWPing Configuration

After the above HWPing configuration, you can execute the display command in any view to display the information of HWPing test operation status to you can verify the configuration effect.

Table 1-2 Display HWPing configuration

Operation

Command

Description

Display the information of HWPing test history

display hwping history [ administrator-name operation-tag ]

The display command can be executed in any view.

Display the latest HWPing test results

display hwping results [ administrator-name operation-tag ]

 

1.2.4  Configuration Example

I. Network requirement

Perform an HWPing ICMP test between two switches. Like a ping test, this test uses ICMP to test the RTTs of data packets between the source and the destination.

II. Configuration procedure

# Enable HWPing Client.

<H3C> system-view

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

[H3C] hwping-agent enable

# Create an HWPing test group “administrator icmp”.

[H3C] hwping administrator icmp

# Specify the test type as ICMP.

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

# Specify the destination IP address as 1.1.1.99.

[H3C-hwping-administrator-icmp] destination-ip 1.1.1.99

# Set the number of test packets sent in a test to 10.

[H3C-hwping-administrator-icmp] count 10

# Set the timeout time of test operations to 5.

[H3C-hwping-administrator-icmp] timeout 5

# Enable the test operation.

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

# Display the test results.

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

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

      Destination ip address:1.1.1.99

      Send operation times: 10              Receive response times: 10

      Min/Max/Average Round Trip Time: 2/5/2

      Square-Sum of Round Trip Time: 66

      Last complete test time: 2000-4-2 7:59:54.7

  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               

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

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

    Index     Response    Status      LasrRC      Time

        1            1         1           0    2004-11-25 16:28:55.0

        2            1         1           0    2004-11-25 16:28:55.0

        3            1         1           0    2004-11-25 16:28:55.0

        4            1         1           0    2004-11-25 16:28:55.0

        5            1         1           0    2004-11-25 16:28:55.0

        6            2         1           0    2004-11-25 16:28:55.0

        7            1         1           0    2004-11-25 16:28:55.0

        8            1         1           0    2004-11-25 16:28:55.0

        9            1         1           0    2004-11-25 16:28:55.9

       10            1         1           0    2004-11-25 16:28:55.9

Refer to the HWPing Command Manual for detailed description on displayed information.