5.1 Ping
The
ping
command is used to check network connectivity and host reachability. The word "ping"
is derived from the sonar operation, indicating a pulse of sound.
shows the ping process.After you run the
ping
command, an Internet Control
Message Protocol (ICMP) Echo Request message is sent to the destination. The destination then
returns an ICMP Echo Reply message immediately when receiving the ICMP Echo Request
message.
Figure 5-1
Principle of the ping operation
ICMP Echo Request message
ICMP Echo Reply message
Source
Destination
Ping tests IP reachability and status of the link between the source and the destination by checking
whether the destination sends back an ICMP Echo Reply message and measuring the interval
between sending the ICMP Echo Request message and receiving the ICMP Echo Reply message.
Figure 5-2
Format of ICMP Echo Request and Echo Reply messages
Data
Checksum
Code
Type
Identifier
Sequence number
15
7
23
31
0
shows the format of ICMP Echo Request and Echo Reply messages. The length of
the Data field is a variable. You can specify the length of the Data field in the
ping
command.
5.2 Tracert
Tracert, also called Trace Route, is used to check the IP addresses and the number of gateways
between the source and the destination. Tracert is helpful in testing network reachability and
locating the fault on the network.
Quidway S2700 Series Ethernet Switches
Configuration Guide - Network Management
5 Ping and Tracert
Issue 01 (2011-07-15)
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
246