
Ping Command
شرح Ping Command بالعربي
use PING Command
Network Fundamentals
The ping command is one of the most fundamental tools in networking. It is used to test the reachability of a host on an Internet Protocol (IP) network and to measure the round-trip time (RTT) for messages sent from the originating host to a destination computer.
How It Works
Ping operates by sending ICMP (Internet Control Message Protocol) Echo Request packets to the target host and waiting for an ICMP Echo Reply.
-
Echo Request: Your device sends a small packet of data to a specific IP address or domain.
-
Processing: The receiving device gets the packet and immediately sends back a response.
-
Echo Reply: Your device receives the return packet and calculates how long the journey took.
Key Metrics Explained
When you run a ping command, the output usually includes several critical data points:
-
Bytes: The size of the ICMP packet (typically 32 or 64 bytes).
-
Time (ms): The latency or round-trip time. Lower is better.
-
TTL (Time to Live): A value that decreases each time the packet passes through a router. It prevents packets from looping infinitely.
-
Packet Loss: If a request is sent but no reply is received, it is considered a “lost” packet, indicating network congestion or hardware issues.
Common Usage Examples
| Command | Purpose |
ping google.com |
Checks connectivity to a specific domain. |
ping 8.8.8.8 |
Checks connectivity to a specific IP address. |
ping 127.0.0.1 |
Loopback Address: Tests your own local network interface card (NIC). |
ping -t [target] |
(Windows) Continues pinging the target until manually stopped (Ctrl+C). |
ping -n [count] [target] |
(Windows) Sends a specific number of echo requests. |
للحصول على مئات الكورسات المجانية إضغط هنا
Tag:ping, Ping Command, shortcuts



