Ping
Ping
Ping is a computer network administration software utility used to test the reachability of a host on an Internet Protocol (IP) network. It measures the round-trip time for messages sent from the originating host to a destination computer and back. The name comes from active sonar terminology that sends a pulse of sound and listens for the echo to detect objects underwater.
Functionality[edit | edit source]
Ping operates by sending Internet Control Message Protocol (ICMP) Echo Request packets to the target host and waiting for an ICMP Echo Reply. The utility calculates the time it takes for the round-trip and reports any packet loss. This helps in diagnosing network issues and ensuring that a particular host is reachable.
History[edit | edit source]
The ping utility was written by Mike Muuss in December 1983 as a tool to troubleshoot network issues. The name "ping" was inspired by the sonar sound used in submarines, which is a short, high-pitched sound that echoes back when it hits an object.
Usage[edit | edit source]
Ping is commonly used in network administration to:
- Test the connectivity between two network devices.
- Measure the round-trip time for packets.
- Diagnose network issues such as packet loss and network latency.
- Verify the status of a network device.
Syntax[edit | edit source]
The basic syntax for the ping command is:
ping [options] <destination>
Common options include:
- `-c` : Specifies the number of packets to send.
- `-i` : Sets the interval between sending each packet.
- `-t` : Sets the time to live (TTL) for packets.
Example[edit | edit source]
To ping a host with the IP address 192.168.1.1, you would use the following command:
ping 192.168.1.1
Related Tools[edit | edit source]
- Traceroute: A network diagnostic tool used to track the pathway taken by packets across an IP network.
- Netstat: A command-line tool that displays network connections, routing tables, and interface statistics.
- Nslookup: A network administration command-line tool for querying the Domain Name System (DNS) to obtain domain name or IP address mapping.
See Also[edit | edit source]
- Internet Protocol
- Internet Control Message Protocol
- Network latency
- Packet loss
- Traceroute
- Netstat
- Nslookup
Categories[edit | edit source]
Search WikiMD
Ad.Tired of being Overweight? Try W8MD's physician weight loss program.
Semaglutide (Ozempic / Wegovy and Tirzepatide (Mounjaro / Zepbound) available.
Advertise on WikiMD
WikiMD's Wellness Encyclopedia |
Let Food Be Thy Medicine Medicine Thy Food - Hippocrates |
Translate this page: - East Asian
中文,
日本,
한국어,
South Asian
हिन्दी,
தமிழ்,
తెలుగు,
Urdu,
ಕನ್ನಡ,
Southeast Asian
Indonesian,
Vietnamese,
Thai,
မြန်မာဘာသာ,
বাংলা
European
español,
Deutsch,
français,
Greek,
português do Brasil,
polski,
română,
русский,
Nederlands,
norsk,
svenska,
suomi,
Italian
Middle Eastern & African
عربى,
Turkish,
Persian,
Hebrew,
Afrikaans,
isiZulu,
Kiswahili,
Other
Bulgarian,
Hungarian,
Czech,
Swedish,
മലയാളം,
मराठी,
ਪੰਜਾਬੀ,
ગુજરાતી,
Portuguese,
Ukrainian
WikiMD is not a substitute for professional medical advice. See full disclaimer.
Credits:Most images are courtesy of Wikimedia commons, and templates Wikipedia, licensed under CC BY SA or similar.
Contributors: Prab R. Tumpati, MD