Editing
Ping
(section)
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
= Ping = '''Ping''' is a fundamental network utility used to test the reachability and responsiveness of a target device on a network. == What Ping Does == Ping sends a type of packet called an '''ICMP Echo Request''' to a specified IP address or hostname. If the target is online and reachable, it replies with an '''ICMP Echo Reply'''. This process measures both '''connectivity''' and '''latency''' between source and destination. == ICMP Protocol == Ping operates using the [[ICMP Protocol]] (Internet Control Message Protocol), which is part of the IP protocol suite. ICMP is used by network devices to send error messages and operational information. Unlike TCP or UDP, ICMP is not used for transferring data between applications. Its primary role is diagnostic and control traffic β making it ideal for network probing. == Typical Use Cases == * Verify if a host is online * Measure latency in milliseconds * Identify packet loss * Detect network interruption == Syntax and Basic Usage == The command syntax is generally: <pre> ping [IP address or domain name] </pre> Examples: <pre> ping 8.8.8.8 ping example.com </pre> On most systems (Linux, Windows, macOS), the `ping` command is pre-installed. == Interpreting Results == Ping outputs one line per packet sent. Each line typically shows: * Response time (latency) * Packet loss (if any) * Time To Live (TTL) of response At the end, a summary includes: * Number of packets sent and received * Minimum, maximum, and average round-trip times === Example Output === <pre> 64 bytes from 192.168.1.254: icmp_seq=1 ttl=64 time=4.16 ms --- 192.168.1.254 ping statistics --- 6 packets transmitted, 6 received, 0% packet loss, time 6006ms rtt min/avg/max/mdev = 4.10/4.16/4.22/0.05 ms </pre> == Private and Public Targets == Ping can be used both within a local network (e.g. `192.168.1.254`) and to external hosts (e.g. Google's public DNS `8.8.8.8`). Public IPs can be useful for checking internet routing or firewall behavior. == Limitations == * Some firewalls block ICMP packets * High response times donβt always indicate problems at the target (could be a congested route) * Devices can be configured to ignore ping == See Also == * [[Traceroute]] * [[ICMP Protocol]] * [[IP Addressing]] * [[Network Fundamentals]]
Summary:
Please note that all contributions to HackOps may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
HackOps:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
Page
Discussion
English
Views
Read
Edit
Edit source
View history
More
Search
Navigation
Tools
What links here
Related changes
Special pages
Page information