Chapterبەش 5 · Lectureوانە 5.10

ICMP, Ping and TracerouteICMP، پینگ و بەدواداچوونی ڕێگە

IP cannot report problems by itself — ICMP does. Learn what ICMP is and how it travels inside IP, its main messages, how ping uses Echo Request and Echo Reply, how to read a ping result (time and TTL) and its failure messages, why a silent host is not always down, how tracert and traceroute map a path by raising the TTL, what pathping adds, and what ICMPv6 does for IPv6.

IP خۆی ناتوانێت کێشەکان ڕاپۆرت بکات — دەیکات. فێر ببە چییە و چۆن لە ناو IPـدا دەڕوات، پەیامە سەرەکییەکانی، ping چۆن Echo و وەڵامی Echo بەکار دەهێنێت، چۆن ئەنجامی (کات و ) و پەیامەکانی شکستی دەخوێنیتەوە، بۆچی بێدەنگ هەمیشە کوژاوە نییە، tracert و traceroute چۆن بە بەرزکردنەوەی نەخشەی ڕێگایەک دەکێشن، pathping چی زیاد دەکات و ⁦ICMPv6⁩ بۆ چی دەکات.

17 min read19 خولەک خوێندنەوە · 17 stepsهەنگاو

What you will learnچی فێر دەبیت

  • Explain what ICMP is, why IP needs it and how it is carried (inside IP, protocol 1).
  • Name the main ICMP messages — Echo Request and Reply, Destination Unreachable, Time Exceeded, Redirect — and who sends them.
  • Use ping with an IP address, a name and the loopback address, its main options, and read its time, TTL and failure messages.
  • Explain how tracert and traceroute find the routers on a path, read their output and compare them with pathping.
  • Explain why no reply does not prove a host is down, and what ICMPv6 adds in IPv6.
  • ڕوونی بکەیتەوە چییە، بۆچی IP پێویستی پێیەتی و چۆن هەڵدەگیرێت (لە ناو IP، ⁦1⁩).
  • ناوی پەیامە سەرەکییەکانی بهێنیت — و وەڵامی Echo، Destination Unreachable، Time Exceeded، Redirect — و کێ دەیاننێرێت.
  • ping لەگەڵ ، ناو و و هەڵبژاردە سەرەکییەکانی بەکار بهێنیت و کات، و پەیامەکانی شکستی بخوێنیتەوە.
  • ڕوونی بکەیتەوە tracert و traceroute چۆن سەر ڕێگایەک دەدۆزنەوە، دەرئەنجامەکەیان بخوێنیتەوە و لەگەڵ pathping بەراوردیان بکەیت.
  • ڕوونی بکەیتەوە بۆچی وەڵام نەبوون نایسەلمێنێت کوژاوەتەوە و ⁦ICMPv6⁩ لە چی زیاد دەکات.

ICMP: the network layer’s messengerICMP: پەیامبەری چینی ڕایەڵە

IP delivers packets on a best-effort basis: it tries, but it never promises delivery and it has no way of its own to say what went wrong (The Network Layer and IPv4). That job belongs to ICMP, the Internet Control Message Protocol (RFC 792, September 1981). ICMP is a network-layer protocol that reports on the success or failure of delivery: a router that has to drop a packet, or a host that cannot pass it on, sends an ICMP error message back to the sender — for example “this host cannot be reached” or “this service is not available”. ICMP also carries simple test messages, and the ping and tracert tools are built on them.

IP بە شێوەی هەوڵی باش دەگەیەنێت: هەوڵ دەدات، بەڵام هەرگیز بەڵێنی گەیاندن نادات و ڕێگایەکی خۆی نییە بۆ ئەوەی بڵێت چی هەڵە بوو (چینی ڕایەڵە و IPv4). ئەو کارە هی ، ⁦Internet Control Message Protocol (RFC 792⁩، ئەیلوولی ⁦1981⁩). کە ڕاپۆرتی سەرکەوتن یان شکستی گەیاندن دەدات: کە ناچارە فڕێ بدات، یان کە ناتوانێت بیگەیەنێت، پەیامێکی هەڵەی بۆ نێرەر دەگەڕێنێتەوە — بۆ نموونە «ناتوانرێت بگەیت بەم » یان «ئەم خزمەتگوزارییە بەردەست نییە». هەروەها پەیامی تاقیکردنەوەی سادە هەڵدەگرێت و ئامرازەکانی ping و tracert لە سەر ئەوان دروست کراون.

ICMP has no ports and does not use TCP or UDP. Its message rides directly inside an IP packet, and the IPv4 header’s protocol field says 1 (the protocol field). So ICMP belongs to the network layer, next to IP, even though it is carried inside IP.

هیچ نییە و TCP یان UDP بەکار ناهێنێت. پەیامەکەی ڕاستەوخۆ لە ناو IPـدا دەڕوات و خانەی سەرەی دەڵێت 1 (خانەی پرۆتۆکۆڵ). بۆیە سەر بە ، لە تەنیشت IP، هەرچەندە لە ناو IPـدا هەڵدەگیرێت.

An Ethernet frame drawn as five boxes: Ethernet header (to/from MAC), IPv4 header (Protocol = 1), ICMP header (Type · Code · Checksum), ICMP data (e.g. 32 bytes) and the FCS. A green bracket under the ICMP header and data reads “ICMP message (RFC 792)”; a blue bracket from the IPv4 header to the data reads “IP packet — the protocol field says 1 = ICMP”.فرەیمێکی Ethernet وەک پێنج سندوق: سەرەی Ethernet (بۆ/لە MAC)، سەرەی IPv4 (Protocol = 1)، سەرەی ICMP (Type · Code · Checksum)، دراوەی ICMP (بۆ نموونە 32 بایت) و FCS. کەوانەیەکی سەوز لە ژێر سەرە و دراوەی ICMP: «پەیامی ICMP (RFC 792)»؛ کەوانەیەکی شین لە سەرەی IPv4ـەوە تا دراوە: «پاکێتی IP — خانەی پرۆتۆکۆڵ دەڵێت 1 = ICMP».
ICMP sits right on top of IP: no TCP, no UDP, no port numbers. ڕاستەوخۆ لە سەر IP دادەنیشێت: نە TCP، نە UDP، نە ژمارەی .CêIT

The ICMP messages you will meetئەو پەیامانەی ICMP کە دەیانبینیت

Every ICMP message starts with a type number (what kind of message) and a code (the exact reason). There are two families: query messages that ask and answer, and error messages that report a problem with a packet. These are the ones you will meet:

هەموو پەیامێکی بە ژمارەی جۆر (Type: چ جۆرە پەیامێکە) و کۆد (Code: هۆکاری ورد) دەست پێ دەکات. دوو خێزانیان هەیە: پەیامی پرسیار کە دەپرسن و وەڵام دەدەنەوە، پەیامی هەڵە کە کێشەیەکی ڕاپۆرت دەکەن. ئەمانەن ئەوانەی دەیانبینیت:

The common ICMP messages (RFC 792). Type 4, Source Quench, is no longer used: RFC 6633 (2012) deprecated it.پەیامە باوەکانی ⁦(RFC 792)⁩. جۆری 4، Source Quench، ئیتر بەکار ناهێنرێت: ⁦RFC 6633 (2012)⁩ لای برد.
TypeجۆرMessageپەیامSent when…کەی دەنێردرێت…
8Echo Requestping asks “are you there?” دەپرسێت «لەوێیت؟»
0Echo Replythe target answers “yes, I am here”ئامانجەکە وەڵام دەداتەوە «بەڵێ، لێرەم»
3Destination Unreachablea router or host cannot deliver: code 0 network, 1 host, 3 port, 4 “fragmentation needed” یان ناتوانێت بیگەیەنێت: کۆدی 0 ، 1 ، 3 ، 4 «پێویستی بە هەیە»
11Time Exceededa router lowered the TTL to 0 (code 0); or the pieces of a packet did not all arrive in time (code 1) کردە 0 (کۆدی ⁦0⁩)؛ یان پارچەکانی هەموویان لە کاتی خۆیدا نەگەیشتن (کۆدی ⁦1⁩)
5Redirecta router tells a host on its LAN: “use that other router, it is closer to the destination” بە سەر دەڵێت: «ئەو تر بەکار بهێنە، لە مەبەستەکەوە نزیکترە»
12Parameter Problemsomething in the IP header is wrongشتێک لە سەرەی IPـدا هەڵەیە
Aram-PC, routers R1 and R2 and a server in a row, with three lanes below. Lane 1: an Echo Request (type 8) goes from Aram-PC to the server and an Echo Reply (type 0) comes back — this is ping. Lane 2: a packet with TTL 1 reaches R1, the TTL becomes 0, and R1 sends Time Exceeded (11) back to Aram-PC. Lane 3: a packet to 203.0.113.99 reaches R2, which has no route and sends Destination Unreachable (3) back.Aram-PC، ڕێدۆزەکان R1 و R2 و ڕاژەکارێک لە ڕیزێکدا، لە ژێریان سێ ڕێڕەو. ڕێڕەوی 1: داواکاریی Echo (جۆری 8) لە Aram-PCـەوە بۆ ڕاژەکارەکە دەچێت و وەڵامی Echo (جۆری 0) دەگەڕێتەوە — ئەمە پینگە. ڕێڕەوی 2: پاکێتێک بە TTL 1 دەگاتە R1، TTL دەبێتە 0 و R1 Time Exceeded (11) بۆ Aram-PC دەگەڕێنێتەوە. ڕێڕەوی 3: پاکێتێک بۆ 203.0.113.99 دەگاتە R2 کە ڕێگەی نییە و Destination Unreachable (3) دەگەڕێنێتەوە.
Query messages ask and answer; error messages always go back to the packet’s source address.پەیامەکانی پرسیار دەپرسن و وەڵام دەدەنەوە؛ پەیامەکانی هەڵە هەمیشە بۆ ناونیشانی سەرچاوەی دەگەڕێنەوە.CêIT

One safety rule: no ICMP error is ever sent about an ICMP error message, so two devices can never get stuck sending errors to each other for ever.

یاسایەکی پاراستن: هەرگیز پەیامی هەڵەی لەبارەی پەیامێکی هەڵەی نانێردرێت، بۆیە دوو ئامێر هەرگیز ناکەونە ناو ناردنی بێکۆتایی هەڵە بۆ یەکتر.

Ping: “Are you there?” — “Yes, I am here!”پینگ: «لەوێیت؟» — «بەڵێ، لێرەم!»

ping is the most used command for checking connectivity: it tells you whether your computer and another IP address can reach each other. It sends a series of ICMP Echo Request messages to the target and waits for an Echo Reply to each one. For every reply it shows the round-trip time — how long the request took to go and the reply to come back. On Windows, ping sends four echo requests, each carrying 32 bytes of data, and then prints statistics. Routers can ping too: ping from IOS, in the Routing and Switching course.

ping باوترین فەرمانە بۆ پشکنینی پەیوەندی: پێت دەڵێت داخۆ و تر دەتوانن بگەنە یەکتر. زنجیرەیەک پەیامی Echoـی بۆ ئامانجەکە دەنێرێت و بۆ هەر یەکێکیان چاوەڕێی وەڵامی Echo دەکات. بۆ هەر وەڵامێک نیشان دەدات — ماوەی چوونی و گەڕانەوەی وەڵامەکە. لە Windowsـدا ping چوار Echo دەنێرێت، هەریەکەیان ⁦32⁩ هەڵدەگرێت، پاشان ئامارەکان دەنووسێت. دەتوانن بکەن: پینگ لە IOSـەوە، لە خولی Routing and Switchingـدا.

Six frames. Aram-PC (192.168.1.10) pings a Linux server (203.0.113.10) through router R1. 1: an Echo Request (type 8) leaves with TTL 128. 2: R1 forwards it and lowers the TTL to 127. 3: the server answers with an Echo Reply (type 0) that starts at TTL 64. 4: R1 lowers the reply’s TTL to 63. 5: the console prints “Reply from 203.0.113.10: bytes=32 time=12ms TTL=63”. 6: four replies and “Packets: Sent = 4, Received = 4, Lost = 0 (0% loss)”.
Six frames. Aram-PC (192.168.1.10) pings a Linux server (203.0.113.10) through router R1. 1: an Echo Request (type 8) leaves with TTL 128. 2: R1 forwards it and lowers the TTL to 127. 3: the server answers with an Echo Reply (type 0) that starts at TTL 64. 4: R1 lowers the reply’s TTL to 63. 5: the console prints “Reply from 203.0.113.10: bytes=32 time=12ms TTL=63”. 6: four replies and “Packets: Sent = 4, Received = 4, Lost = 0 (0% loss)”.
One ping: an Echo Request out, an Echo Reply back — four times, then the statistics.یەک : Echo دەچێت، وەڵامی Echo دەگەڕێتەوە — چوار جار، پاشان ئامارەکان.CêIT

Reading the result of a pingخوێندنەوەی ئەنجامی پینگێک

This is what Windows 11 shows when Aram pings another computer on the same LAN. The command, then one line per reply, then the statistics:

ئەمە ئەوەیە کە ⁦Windows 11⁩ نیشانی دەدات کاتێک ئارام تری سەر هەمان دەکات. فەرمانەکە، پاشان بۆ هەر وەڵامێک دێڕێک، پاشان ئامارەکان:

Windows 11 Command PromptCommand Promptـی ⁦Windows 11⁩BATType in a terminalلە تێرمیناڵدا بینووسە
ping 192.168.1.20
The line “Reply from 192.168.1.20: bytes=32 time=3ms TTL=128” with four brackets: the address = who answered; bytes=32 = data size (32 bytes by default); time=3ms = round-trip time; TTL=128 = TTL left on arrival. Notes: time is the request’s trip out and the reply’s trip back together; TTL is the answering host’s starting value (Windows 128, Linux 64) minus one per router.دێڕی «Reply from 192.168.1.20: bytes=32 time=3ms TTL=128» بە چوار کەوانە: ناونیشانەکە = کێ وەڵامی دایەوە؛ bytes=32 = قەبارەی دراوە (بە بنەڕەت 32 بایت)؛ time=3ms = کاتی چوون و گەڕانەوە؛ TTL=128 = ئەو TTLـەی لە کاتی گەیشتندا ماوە. تێبینی: time چوونی داواکارییەکە و گەڕانەوەی وەڵامەکەیە پێکەوە؛ TTL بەهای سەرەتای میوانگر وەڵامدەرەوەیە (Windows 128، Linux 64) کەم یەک بۆ هەر ڕێدۆزێک.
Each reply line answers three questions: who answered, how fast, and from how far.هەر دێڕێکی وەڵام وەڵامی سێ پرسیار دەداتەوە: کێ وەڵامی دایەوە، چەند خێرا و لە چەند دوورەوە.CêIT

bytes is the size of the data in the reply. time is the round-trip time in milliseconds (time<1ms means less than one millisecond — normal on a LAN). TTL is the Time to Live left in the reply when it arrived: Windows starts its packets at 128, Linux, Android and macOS at 64, and every router on the way subtracts 1. A reply from a Windows PC on your own LAN crosses no router, so it still shows TTL=128; a reply with TTL=57 from a Linux server has crossed about 7 routers (64−57=764 - 57 = 7). How TTL works is explained in TTL: a packet’s hop limit.

bytes قەبارەی ناو وەڵامەکەیە. time بە میلیچرکە (time<1ms واتە کەمتر لە یەک میلیچرکە — لە ئاساییە). TTL ئەو کە لە کاتی گەیشتنی وەڵامەکەدا ماوە: Windows خۆی بە ⁦128⁩ دەست پێ دەکات، Linux و Android و macOS بە ⁦64⁩، هەر سەر ڕێگاش 1 کەم دەکاتەوە. وەڵامێک لە Windows لە سەر خۆت بە هیچ تێناپەڕێت، بۆیە هێشتا ⁦TTL=128⁩ نیشان دەدات؛ وەڵامێک بە ⁦TTL=57⁩ لە Linuxـەوە نزیکەی 7 بڕیوە (64−57=764 - 57 = 7). چۆن کار دەکات لە TTL: سنووری بازەکانی پاکێت ڕوون کراوەتەوە.

Ping an address, a name or yourselfپینگی ناونیشانێک، ناوێک یان خۆت

You can give ping four kinds of target, and each one tests something different:

دەتوانیت چوار جۆر ئامانج بدەیتە ping و هەریەکەیان شتێکی جیاواز تاقی دەکاتەوە:

Four rows. “ping 127.0.0.1”: the loopback address, the packet never leaves your computer; it tests only your own TCP/IP software. “ping 192.168.1.20”: an IP address, ICMP goes out at once; it tests the path to that device. “ping printer-2”: a host name, first turned into an IP address shown in brackets. “ping www.example.com”: a website, DNS first and then out through the gateway; it tests DNS, the gateway and the Internet together.چوار ڕیز. «ping 127.0.0.1»: ناونیشانی خۆگەڕانەوە، پاکێتەکە هەرگیز لە کۆمپیوتەرەکەت دەرناچێت؛ تەنیا نەرمەواڵەی TCP/IPـی خۆت تاقی دەکاتەوە. «ping 192.168.1.20»: ناونیشانی IP، ICMP یەکسەر دەردەچێت؛ ڕێگای ئەو ئامێرە تاقی دەکاتەوە. «ping printer-2»: ناوی میوانگر، سەرەتا دەکرێت بە ناونیشانی IPـێک کە لە کەوانەدا دەردەکەوێت. «ping www.example.com»: تۆڕگە، سەرەتا DNS پاشان لە ڕێی دەروازەی بنەڕەتییەوە دەردەچێت؛ DNS، دەروازەی بنەڕەتی و ئینتەرنێت پێکەوە تاقی دەکاتەوە.
The further the target, the more parts of the network one ping tests.تا ئامانجەکە دوورتر بێت، یەک بەشی زیاتری تاقی دەکاتەوە.CêIT

When you ping a name, Windows first turns it into an address and shows that address in square brackets. If the name fails but its IP address works, the problem is name resolution (DNS or the hosts file), not the network. 127.0.0.1 is the loopback address: the echo request never leaves your computer, so a reply proves that your own TCP/IP software works — it says nothing about the cable or the LAN.

کاتێک ناوێک دەکەیت، Windows سەرەتا دەیکات بە ناونیشان و ئەو ناونیشانە لە ناو کەوانەی چوارگۆشەدا نیشان دەدات. ئەگەر ناوەکە سەرکەوتوو نەبوو بەڵام کاری کرد، کێشەکە لە دۆزینەوەی ناودایە ( یان فایلی hosts)، نەک لە . ⁦127.0.0.1⁩ : Echo هەرگیز لە دەرناچێت، بۆیە وەڵامێک دەیسەلمێنێت ⁦TCP/IP⁩ـی خۆت کار دەکات — هیچ شتێک لەبارەی کێبڵ یان ناڵێت.

A name, then the loopback addressناوێک، پاشان ناونیشانی خۆگەڕانەوەBATType in a terminalلە تێرمیناڵدا بینووسە
ping printer-2
ping 127.0.0.1

Useful ping optionsهەڵبژاردە بەسوودەکانی پینگ

Options go between ping and the target (Windows accepts / or - in front of them):

هەڵبژاردەکان لە نێوان ping و ئامانجەکەدا دەنووسرێن (Windows / یان - لە پێشیانەوە قبووڵ دەکات):

Windows ping options (Microsoft Learn, 2026).هەڵبژاردەکانی pingـی ⁦Windows (Microsoft Learn⁩، ⁦2026⁩).
OptionهەڵبژاردەWhat it doesچی دەکات
/tkeep pinging until you press Ctrl+C (Ctrl+Break shows the statistics and goes on)بەردەوام دەکات تا ⁦Ctrl+C⁩ دادەگریت (⁦Ctrl+Break⁩ ئامارەکان نیشان دەدات و بەردەوام دەبێت)
/n 10send 10 echo requests instead of the default 4⁦10⁩ Echo دەنێرێت لە جیاتی 4ی بنەڕەت
/l 1000put 1000 bytes of data in each request (default 32, maximum 65,500)لە هەر ⁦1000⁩ دادەنێت (بنەڕەت ⁦32⁩، زۆرترین ⁦65,500⁩)
/4use IPv4 (needed only when the target is a name) بەکار دەهێنێت (تەنیا کاتێک ئامانجەکە ناو بێت پێویستە)
/6use IPv6 (needed only when the target is a name) بەکار دەهێنێت (تەنیا کاتێک ئامانجەکە ناو بێت پێویستە)
/ashow the host name of an IP addressناوی نیشان دەدات
/w 4000wait this many milliseconds for each reply (default 4000 = 4 s)ئەوەندە میلیچرکە بۆ هەر وەڵامێک چاوەڕێ دەکات (بنەڕەت ⁦4000 = 4⁩ چرکە)
/i 5send the requests with this TTL (maximum 255) بەم دەنێرێت (زۆرترین ⁦255⁩)
The command “ping /n 10 /l 1000 /4 www.example.com” with brackets: /n 10 = send 10 requests (default 4); /l 1000 = 1000 data bytes (default 32); /4 = use IPv4; www.example.com = the target, a name or an address. Footer: /t keeps pinging until Ctrl+C, /a shows the name of an address, /w 4000 waits 4 s for each reply.فەرمانی ping /n 10 /l 1000 /4 www.example.com بە کەوانە: /n 10 = 10 داواکاری بنێرە (بنەڕەت 4)؛ /l 1000 = 1000 بایت دراوە (بنەڕەت 32)؛ /4 = IPv4 بەکار بهێنە؛ www.example.com = ئامانج، ناو یان ناونیشان. خوارەوە: /t بەردەوام دەبێت تا Ctrl+C، /a ناوی ناونیشانێک نیشان دەدات، /w 4000 بۆ هەر وەڵامێک 4 چرکە چاوەڕێ دەکات.
Options change how many requests, how big, and which IP version.هەڵبژاردەکان ژمارە، قەبارە و وەشانی IPـی دەگۆڕن.CêIT

When ping fails: what the message tells youکاتێک پینگ سەرناکەوێت: پەیامەکە چیت پێ دەڵێت

A failed ping is still useful, because the message shows where the trouble is. Read it before you guess:

سەرنەکەوتووش بەسوودە، چونکە پەیامەکە نیشان دەدات کێشەکە لە کوێیە. پێش ئەوەی مەزندە بکەیت بیخوێنەرەوە:

A path from your PC through your LAN switch, the gateway router and the Internet to the target, with six numbered markers. 1 General failure: your own computer (adapter off or no network). 2 Ping request could not find host: the name could not be turned into an address (DNS). 3 Reply from your own IP: Destination host unreachable: same LAN, your ARP question got no answer. 4 Reply from a router: Destination net unreachable: a router has no route. 5 TTL expired in transit: a routing loop. 6 Request timed out: no reply in 4 seconds — lost, blocked or switched off.ڕێگایەک لە کۆمپیوتەرەکەتەوە بە سویچی ڕایەڵەی ناوچەییەکەت، ڕێدۆزی دەروازەی بنەڕەتی و ئینتەرنێتدا بۆ ئامانجەکە، بە شەش نیشانەی ژمارەدار. 1 General failure: کۆمپیوتەرەکەی خۆت (کارتەکە کوژاوەتەوە یان ڕایەڵە نییە). 2 Ping request could not find host: ناوەکە نەکرا بە ناونیشان (DNS). 3 Reply from <IPـی خۆت>: Destination host unreachable: هەمان ڕایەڵەی ناوچەیی، پرسیاری ARPـی تۆ وەڵامی نەبوو. 4 Reply from <ڕێدۆز>: Destination net unreachable: ڕێدۆزێک ڕێگەی نییە. 5 TTL expired in transit: ئەڵقەی ڕێدۆزی. 6 Request timed out: لە 4 چرکەدا وەڵام نەهات — ون بوو، گیرا یان کوژاوەتەوە.
Each failure message points to a different part of the path.هەر پەیامێکی شکست ئاماژە بە بەشێکی جیاوازی ڕێگاکە دەکات.CêIT
  • Destination host unreachable from your own address means your PC asked with ARP and nobody answered: the target is off or not on this LAN. From a router’s address it means that router cannot deliver.
  • Request timed out only says that no reply came back within 4 seconds. The host may be off — or a firewall dropped the request or the reply.
  • Destination host unreachable لە ناونیشانی خۆتەوە واتە بە ARP پرسیاری کرد و کەس وەڵامی نەدایەوە: ئامانجەکە کوژاوەتەوە یان لە سەر ئەم نییە. لە ناونیشانی واتە ئەو ناتوانێت بیگەیەنێت.
  • Request timed out تەنیا دەڵێت لە ماوەی 4 چرکەدا هیچ وەڵامێک نەگەڕایەوە. لەوانەیە کوژابێتەوە — یان یان وەڵامەکەی فڕێ دابێت.

Which test to run next, and where to start, is taught in Divide and conquer.

کام تاقیکردنەوە دواتر بکەیت و لە کوێوە دەست پێ بکەیت لە دابەشکردن و زاڵبووندا فێر دەبیت.

Firewalls and ping: silence is not proofئاگرەدیوار و پینگ: بێدەنگی بەڵگە نییە

Many computers and servers are set not to answer ping. On many Windows PCs the built-in firewall does not answer echo requests from other computers until an administrator allows them, and many websites and company networks drop ICMP at their firewalls. So a ping that gets replies proves the host is up, but a ping that gets no reply does not prove the host is down. In the two-PC lab you will see this happen and let ping through Windows Defender Firewall yourself (Why the first ping often fails: the firewall), if you like with one rule that allows only ping.

زۆر و وا ڕێک خراون کە وەڵامی نەدەنەوە. لە زۆر Windowsـدا ناوخۆیی وەڵامی Echo لە ترەوە ناداتەوە تا بەڕێوەبەرێک ڕێگەی پێ دەدات؛ هەروەها زۆر و کۆمپانیا لە خۆیاندا فڕێ دەدەن. بۆیە کە وەڵامی هەبێت دەیسەلمێنێت کار دەکات، بەڵام کە هیچ وەڵامی نەبێت نایسەلمێنێت کوژاوەتەوە. لە تاقیگەی دوو ئەمە دەبینیت و خۆت ڕێگە بە دەدەیت لە Windows Defenderـدا تێپەڕێت (بۆچی یەکەم پینگ زۆرجار سەرناکەوێت: ئاگرەدیوار)، ئەگەر بتەوێت بە یەک یاسای ئاگرەدیوار کە تەنیا ڕێگە بە پینگ دەدات.

Aram-PC sends four Echo Requests to Shilan’s laptop, which is on and working, but a brick firewall in front of the laptop drops them. Aram-PC’s screen shows “Request timed out.” twice and “Lost = 4 (100% loss)”. A green note says the laptop still browses the web, shares files and answers on other ports — its firewall only blocks ICMP echo.Aram-PC چوار داواکاریی Echo بۆ لاپتۆپی شیلان دەنێرێت کە هەڵکراوە و کار دەکات، بەڵام ئاگرەدیوارێکی خشتی لە بەردەم لاپتۆپەکەدا فڕێیان دەدات. شاشەی Aram-PC دوو جار «Request timed out.» و «Lost = 4 (100% loss)» نیشان دەدات. تێبینییەکی سەوز دەڵێت لاپتۆپەکە هێشتا تۆڕگەکان دەکاتەوە، فایل هاوبەش دەکات و لە پۆرتەکانی ترەوە وەڵام دەداتەوە — ئاگرەدیوارەکەی تەنیا Echoـی ICMP دەگرێت.
A reply proves the host is up; silence alone proves nothing.وەڵام دەیسەلمێنێت کار دەکات؛ بێدەنگی بە تەنیا هیچ ناسەلمێنێت.CêIT

Tracert: which routers are on the way?tracert: کام ڕێدۆز لە سەر ڕێگاکەن؟

tracert (on Linux and macOS traceroute) is a diagnostic tool that shows the path packets take from your computer to a destination: the list of routers they cross, one per line. Because it measures the time to each router, it also shows where the trip fails or slows down — so you can tell which router, or which part of the network, causes a problem.

tracert (لە Linux و macOSـدا traceroute) ئامرازێکی دۆزینەوەی کێشەیە کە ڕێگای لە بۆ مەبەستێک نیشان دەدات: لیستی ئەو پێیاندا تێدەپەڕن، هەر یەکێک لە دێڕێکدا. چونکە کاتی گەیشتن بە هەر دەپێوێت، هەروەها نیشان دەدات گەشتەکە لە کوێ دەوەستێت یان خاو دەبێتەوە — بۆیە دەزانیت کام ، یان کام بەشی ، کێشەکە دروست دەکات.

The trick is the TTL. tracert first sends a probe with TTL = 1: the first router lowers it to 0, drops it and sends back an ICMP Time Exceeded — and that message carries the router’s address. Then it sends TTL = 2, which dies at the second router, then 3, and so on, until the destination itself answers with an Echo Reply. Each hop is tried three times, and the search stops after 30 hops at most. A Cisco router can run the same trace: traceroute from IOS.

فێڵەکە . tracert سەرەتا تاقیکردنەوەیەک بە ⁦TTL = 1⁩ دەنێرێت: یەکەم دەیکاتە 0، فڕێی دەدات و Time Exceededـی دەگەڕێنێتەوە — ئەو پەیامەش ناونیشانی هەڵدەگرێت. پاشان ⁦TTL = 2⁩ دەنێرێت کە لە دووەمدا دەمرێت، پاشان 3 و بەم شێوەیە، تا خودی مەبەستەکە بە وەڵامی Echo وەڵام دەداتەوە. هەر سێ جار تاقی دەکرێتەوە و گەڕانەکە لە زۆرترین ⁦30⁩ دەوەستێت. Ciscoـش دەتوانێت هەمان ڕێگادۆزینەوە بکات: بەدواداچوونی ڕێگە لە IOSـەوە.

Five frames. Aram-PC traces the route to 203.0.113.10 through R1 (192.168.1.1), R2 (198.51.100.1) and R3 (198.51.100.9). 1: a probe with TTL 1 dies at R1, which sends ICMP Time Exceeded; line 1 of the hop list appears. 2: TTL 2 dies at R2; line 2 appears. 3: TTL 3 dies at R3; line 3. 4: TTL 4 reaches the server, which sends an Echo Reply; line 4 and “Trace complete.” 5: all four hops are numbered on the path.
Five frames. Aram-PC traces the route to 203.0.113.10 through R1 (192.168.1.1), R2 (198.51.100.1) and R3 (198.51.100.9). 1: a probe with TTL 1 dies at R1, which sends ICMP Time Exceeded; line 1 of the hop list appears. 2: TTL 2 dies at R2; line 2 appears. 3: TTL 3 dies at R3; line 3. 4: TTL 4 reaches the server, which sends an Echo Reply; line 4 and “Trace complete.” 5: all four hops are numbered on the path.
TTL 1, 2, 3, 4 … — every router that drops a probe gives away its address.⁦TTL 1⁩، 2، 3، 4 … — هەر تاقیکردنەوەیەک فڕێ بدات ناونیشانەکەی ئاشکرا دەکات.CêIT

Reading a tracertخوێندنەوەی tracert

The syntax is tracert [/d] [/h MaximumHops] [/j HostList] [/w Timeout] [/4] [/6] TargetName. /d does not look up router names, so the result comes faster; /h changes the 30-hop limit; /w changes the 4-second wait. For example, tracert www.example.com traces the path to that host and tracert /d www.example.com does the same without names. Here is a trace from Windows 11 (the addresses are documentation examples):

ڕێسای نووسینی ئەمەیە: tracert [/d] [/h MaximumHops] [/j HostList] [/w Timeout] [/4] [/6] TargetName. /d بەدوای ناوی ناگەڕێت، بۆیە ئەنجامەکە خێراتر دێت؛ /h سنووری ⁦30⁩ دەگۆڕێت؛ /w چاوەڕوانیی 4 چرکە دەگۆڕێت. بۆ نموونە، tracert www.example.com ڕێگای ئەو دەدۆزێتەوە و tracert /d www.example.com هەمان کار بەبێ ناوەکان دەکات. ئەمە ڕێگادۆزینەوەیەکە لە ⁦Windows 11⁩ـەوە (ناونیشانەکان نموونەی بەڵگەنامەن):

Windows 11 Command PromptCommand Promptـی ⁦Windows 11⁩BATType in a terminalلە تێرمیناڵدا بینووسە
tracert www.example.com
Four tracert lines with brackets: the first column is the hop number; the next three columns are three probes — three round-trip times; the last column is the router that answered. Line 3 shows three asterisks and “Request timed out.” A note: * means no answer within 4 seconds; the router may simply not send Time Exceeded, and if later hops answer, packets are still passing through it.چوار دێڕی tracert بە کەوانە: ستوونی یەکەم ژمارەی بازە؛ سێ ستوونی دواتر سێ تاقیکردنەوەن — سێ کاتی چوون و گەڕانەوە؛ ستوونی کۆتایی ئەو ڕێدۆزەیە کە وەڵامی دایەوە. دێڕی 3 سێ ئەستێرە و «Request timed out.» نیشان دەدات. تێبینی: * واتە لە ماوەی 4 چرکەدا وەڵام نەهات؛ لەوانەیە ڕێدۆزەکە هەر Time Exceeded نەنێرێت، ئەگەر بازەکانی دواتر وەڵام بدەنەوە پاکێتەکان هێشتا پێیدا تێدەپەڕن.
Hop number, three times, and the router that answered.ژمارەی ، سێ کات و ئەو وەڵامی دایەوە.CêIT

Network administrators read a trace the same way after they add a route to a router: Checking static routes.

بەڕێوەبەرانی دوای زیادکردنی ڕێگەیەک بۆ بە هەمان شێوە ڕێگادۆزینەوەیەک دەخوێننەوە: پشکنینی ڕێگە جێگیرەکان.

tracert on Windows, traceroute on Linux and macOStracert لە Windows، traceroute لە Linux و macOS

Both tools use the same TTL trick, but they send different probes. Windows tracert sends ICMP Echo Requests, so the destination ends the trace with an Echo Reply. Linux and macOS traceroute send UDP datagrams by default, to unusual high ports starting at 33434; the routers still answer with Time Exceeded, and the destination ends the trace with ICMP Port Unreachable (type 3, code 3), because nothing listens on that port. On Linux, traceroute -I uses ICMP like Windows and traceroute -T uses TCP SYN packets — handy when a firewall blocks one kind of probe.

هەردوو ئامرازەکە هەمان فێڵی بەکار دەهێنن، بەڵام تاقیکردنەوەی جیاواز دەنێرن. tracertـی Windows Echoـی دەنێرێت، بۆیە مەبەستەکە بە وەڵامی Echo ڕێگادۆزینەوەکە تەواو دەکات. tracerouteـی Linux و macOS بە بنەڕەت UDP دەنێرن، بۆ بەرزی نائاسایی کە لە ⁦33434⁩ـەوە دەست پێ دەکەن؛ هەر بە Time Exceeded وەڵام دەدەنەوە و مەبەستەکە بە Port Unreachableـی (جۆری 3، کۆدی ⁦3⁩) کۆتایی پێ دەهێنێت، چونکە هیچ شتێک گوێ لەو ناگرێت. لە Linuxـدا traceroute -I وەک Windows بەکار دەهێنێت و traceroute -T TCP SYN — بەسوودە کاتێک جۆرێک لە تاقیکردنەوەکان دەگرێت.

Two panels. Windows tracert: ICMP Echo Requests with TTL 1, 2, 3 … go out; routers answer with Time Exceeded (11); the destination answers with Echo Reply (0). Linux and macOS traceroute: UDP to ports 33434, 33435 … with TTL 1, 2, 3 …; routers answer with Time Exceeded (11); the destination answers with Port Unreachable (3/3). Footer: on Linux, traceroute -I sends ICMP and traceroute -T sends TCP SYN.دوو بەش. tracertـی Windows: داواکاریی Echoـی ICMP بە TTL 1، 2، 3 … دەردەچن؛ ڕێدۆزەکان بە Time Exceeded (11) وەڵام دەدەنەوە؛ مەبەست بە وەڵامی Echo (0). tracerouteـی Linux و macOS: UDP بۆ پۆرتەکانی 33434، 33435 … بە TTL 1، 2، 3 …؛ ڕێدۆزەکان بە Time Exceeded (11) وەڵام دەدەنەوە؛ مەبەست بە Port Unreachable (3/3). خوارەوە: لە Linuxـدا traceroute -I ICMP دەنێرێت و traceroute -T TCP SYN.
Same TTL trick, different probes, different last answer.هەمان فێڵی ، تاقیکردنەوەی جیاواز، دوایین وەڵامی جیاواز.CêIT

pathping: tracert and ping together⁦pathping: tracert⁩ و ping پێکەوە

Windows also has pathping. It first lists the routers on the path, like tracert, then sends 100 echo requests to every router (one every 250 ms) and computes the packet loss at each router and on each link. This takes a while — about 25 seconds per hop — but it tells you exactly where packets get lost:

Windows pathpingـیشی هەیە. سەرەتا وەک tracert لیستی سەر ڕێگاکە دەنووسێت، پاشان ⁦100⁩ Echo بۆ هەر دەنێرێت (هەر ⁦250⁩ میلیچرکە یەکێک) و لە هەر و لە سەر هەر بەستەرێک حیساب دەکات. ئەمە کاتێکی دەوێت — نزیکەی ⁦25⁩ چرکە بۆ هەر — بەڵام بە وردی پێت دەڵێت لە کوێ ون دەبن:

pathping on Windows 11 (example)pathping لە ⁦Windows 11⁩ (نموونە)BATType in a terminalلە تێرمیناڵدا بینووسە
pathping /n 203.0.113.10

ICMPv6: the same idea for IPv6⁦ICMPv6⁩: هەمان بیرۆکە بۆ IPv6

IPv6 has its own version, ICMPv6 (RFC 4443, 2006), identified by Next Header 58. It does the same jobs with new numbers — Echo Request 128 and Echo Reply 129, so ping and tracert work over IPv6 too — and it adds Packet Too Big, because IPv6 routers never fragment packets. ICMPv6 also carries Neighbor Discovery, the IPv6 replacement for ARP. That is why a firewall must never block all ICMPv6: IPv6 would stop working. More in Neighbor Discovery: five ICMPv6 messages and Testing IPv6 with ping.

وەشانی خۆی هەیە، ⁦ICMPv6⁩ (⁦RFC 4443⁩، ⁦2006⁩)، کە بە Next Header ⁦58⁩ دەناسرێتەوە. هەمان کارەکان بە ژمارەی نوێ دەکات — ⁦Echo 128⁩ و وەڵامی ⁦Echo 129⁩، بۆیە ping و tracert لە سەر کار دەکەن — هەروەها Packet Too Big زیاد دەکات، چونکە هەرگیز پارچە پارچە ناکەن. ⁦ICMPv6⁩ هەروەها هەڵدەگرێت، جێگرەوەی ARP لە . بۆیە نابێت هەرگیز هەموو ⁦ICMPv6⁩ بگرێت: لە کار دەکەوێت. زیاتر لە دۆزینەوەی دراوسێ: پێنج پەیامی ⁦ICMPv6⁩ و تاقیکردنەوەی IPv6 بە پینگدا.

A table comparing ICMP (IPv4) and ICMPv6 (IPv6): carried as Protocol 1 / Next Header 58; ping request and reply 8 and 0 / 128 and 129; destination unreachable 3 / 1; packet too big 3 code 4 / 2; time exceeded (TTL or hop limit) 11 / 3; finding a neighbour’s MAC address: ARP, a separate protocol / NDP, ICMPv6 types 133–137. Footer: IPv6 needs ICMPv6 to work at all; a firewall must never block all of it.خشتەیەک کە ICMP (IPv4) و ICMPv6 (IPv6) بەراورد دەکات: چۆن هەڵدەگیرێت Protocol 1 / Next Header 58؛ داواکاری و وەڵامی پینگ 8 و 0 / 128 و 129؛ ناگەیشتن بە مەبەست 3 / 1؛ پاکێت زۆر گەورەیە 3 کۆدی 4 / 2؛ کات بەسەرچوو (TTL یان Hop Limit) 11 / 3؛ دۆزینەوەی ناونیشانی MACـی دراوسێ: ARP، پرۆتۆکۆڵێکی جیا / NDP، جۆرەکانی 133–137ی ICMPv6. خوارەوە: IPv6 بەبێ ICMPv6 کار ناکات؛ ئاگرەدیوار نابێت هەمووی بگرێت.
ICMPv6 keeps the jobs of ICMP and also replaces ARP.⁦ICMPv6⁩ کارەکانی دەپارێزێت و جێی دەگرێتەوە.CêIT

Try it yourselfخۆت تاقی بکەرەوە

  1. In the labلە تاقیگەکەدا

    Open the CêIT network lab, load “Three networks and two routers” and ping from one network to another. The event log shows the echo request, every router lowering the TTL, and the echo reply. Delete a PC’s default gateway and ping again: you will see “Destination unreachable”.

    تاقیگەی ڕایەڵەی CêIT بکەرەوە، «Three networks and two routers» باربکە و لە تر بکە. تۆماری ڕووداوەکان Echo، کەمکردنەوەی TTL لە لایەن هەر و وەڵامی Echo نیشان دەدات. بسڕەوە و دووپاتە بکە: «Destination unreachable» دەبینیت.

  2. On your own computerلە سەر کۆمپیوتەرەکەی خۆت

    Open Command Prompt and run, one after the other: ping 127.0.0.1, then ping your default gateway (find it with ipconfig), then ping www.example.com. Note which ones answer and the TTL of each reply.

    Command Prompt بکەرەوە و یەک لە دوای یەک ئەمانە جێبەجێ بکە: ping 127.0.0.1، پاشان pingـی (بە ipconfig بیدۆزەرەوە)، پاشان ping www.example.com. تێبینی بکە کامیان وەڵام دەدەنەوە و TTLـی هەر وەڵامێک چەندە.

  3. Trace a pathڕێگایەک بدۆزەرەوە

    Run tracert /d www.example.com. Count the hops, find your gateway on line 1, and look for lines with *. Then compare with pathping /n www.example.com (be patient).

    tracert /d www.example.com جێبەجێ بکە. بژمێرە، لە دێڕی 1دا بدۆزەرەوە و بەدوای دێڕی *ـدا بگەڕێ. پاشان لەگەڵ pathping /n www.example.com بەراوردی بکە (ئارام بگرە).

More Windows commands (ipconfig, nslookup, netstat) are in Windows Network Commands, and a step-by-step way to find faults in Troubleshooting Networks.

فەرمانی زیاتری Windows (ipconfig، nslookup، netstat) لە فەرمانەکانی ڕایەڵەی Windowsدان، ڕێگایەکی هەنگاو بە هەنگاویش بۆ دۆزینەوەی کێشەکان لە چارەسەرکردنی کێشەکانی ڕایەڵەدا.

Common mistakesهەڵە باوەکان

MistakeهەڵەWhat is trueڕاستییەکە
“No reply, so the computer is off.”«وەڵام نییە، کەواتە کوژاوەتەوە.»A firewall may drop ICMP. A reply proves the host is up; silence proves nothing. لەوانەیە فڕێ بدات. وەڵام دەیسەلمێنێت کار دەکات؛ بێدەنگی هیچ ناسەلمێنێت.
“Ping does not send ICMP echo requests; it only checks connectivity.”«ping Echoـی نانێرێت؛ تەنیا پەیوەندی دەپشکنێت.»Both are true together: ping checks connectivity by sending ICMP Echo Requests.هەردووکیان پێکەوە ڕاستن: ping بە ناردنی Echoـی پەیوەندی دەپشکنێت.
“ICMP uses a port, like TCP and UDP.”« وەک TCP و UDP بەکار دەهێنێت.»ICMP has no ports; it rides directly in IP (protocol 1). هیچ نییە؛ ڕاستەوخۆ لە ناو IPـدا دەڕوات ( ⁦1⁩).
“TTL=128 in the reply means 128 hops.”«⁦TTL=128⁩ لە وەڵامەکەدا واتە ⁦128⁩ .»TTL is what is left: the starting value (128 on Windows) minus one per router. ئەوەیە کە ماوە: بەهای سەرەتا (لە ⁦Windows 128⁩) کەم یەک بۆ هەر .
“* * * in tracert means the path is broken there.”«* * * لە tracertـدا واتە ڕێگاکە لەوێ پچڕاوە.»Only if no later hop answers. Many routers simply do not send Time Exceeded.تەنیا ئەگەر هیچ دواتر وەڵام نەداتەوە. زۆر هەر Time Exceeded نانێرن.
“ping 127.0.0.1 tests my cable and my LAN.”«ping 127.0.0.1 کێبڵ و تاقی دەکاتەوە.»Loopback never leaves the computer: it tests only the TCP/IP software.خۆگەڕانەوە هەرگیز لە دەرناچێت: تەنیا ⁦TCP/IP⁩ تاقی دەکاتەوە.

Exercisesڕاهێنانەکان

ExerciseڕاهێنانRead a pingخوێندنەوەی پینگێک

Shilan runs ping 203.0.113.50 and sees four lines like “Reply from 203.0.113.50: bytes=32 time=45ms TTL=52”. (a) How much data did each request carry? (b) What does 45ms measure? (c) The server runs Linux. About how many routers are between them?

شیلان ping 203.0.113.50 جێبەجێ دەکات و چوار دێڕی وەک «⁦Reply from 203.0.113.50: bytes=32 time=45ms TTL=52⁩» دەبینێت. (أ) هەر چەند هەڵگرتبوو؟ (ب) ⁦45ms⁩ چی دەپێوێت؟ (ج) Linuxـە. نزیکەی چەند لە نێوانیاندایە؟

Show answerوەڵامەکە پیشان بدە

(a) 32 bytes, the Windows default. (b) The round-trip time: the request going and the reply coming back, together. (c) Linux starts at 64: 64 − 52 = 12 routers on the way back.

(أ) ⁦32⁩ ، بنەڕەتی Windows. (ب) : چوونی و گەڕانەوەی وەڵامەکە پێکەوە. (ج) Linux بە ⁦64⁩ دەست پێ دەکات: 64−52=1264 - 52 = 12 لە ڕێگای گەڕانەوەدا.

ExerciseڕاهێنانWhich test first?سەرەتا کام تاقیکردنەوە؟

Karwan cannot open any website. Put these tests in a sensible order and say what each one tells him: ping www.example.com, ping 127.0.0.1, ping 192.168.1.1 (his gateway), ping 203.0.113.10 (a server’s IP address).

کاروان ناتوانێت هیچ بکاتەوە. ئەم تاقیکردنەوانە بە ڕیزبەندییەکی لۆژیکی دابنێ و بڵێ هەریەکەیان چیی پێ دەڵێت: ping www.example.com، ping 127.0.0.1، ping 192.168.1.1 ()، ping 203.0.113.10 ( ).

Show answerوەڵامەکە پیشان بدە
  1. ping 127.0.0.1 — is my own TCP/IP software working?
  2. ping 192.168.1.1 — can I reach my gateway across my LAN?
  3. ping 203.0.113.10 — can I reach the Internet by address?
  4. ping www.example.com — does name resolution (DNS) work too? If the address works but the name fails, the problem is DNS. (Remember: some servers never answer ping.)
  1. ping 127.0.0.1 — ئایا ⁦TCP/IP⁩ـی خۆم کار دەکات؟
  2. ping 192.168.1.1 — دەتوانم بە بگەمە ؟
  3. ping 203.0.113.10 — دەتوانم بە ناونیشان بگەمە ؟
  4. ping www.example.com — ئایا دۆزینەوەی ناو ()ـیش کار دەکات؟ ئەگەر ناونیشانەکە کار بکات بەڵام ناوەکە نا، کێشەکە . (لە بیرت بێت: هەندێک هەرگیز وەڵامی نادەنەوە.)
ExerciseڕاهێنانExplain tracerttracert ڕوون بکەرەوە

Explain in four sentences how tracert finds the routers on a path, and name the ICMP messages it receives.

بە چوار ڕستە ڕوونی بکەرەوە tracert چۆن سەر ڕێگایەک دەدۆزێتەوە و ناوی ئەو پەیامانەی بهێنە کە وەریان دەگرێت.

Show answerوەڵامەکە پیشان بدە

It sends probes (ICMP Echo Requests on Windows) with TTL 1, then 2, then 3 and so on, three per hop. The router where the TTL reaches 0 drops the probe and sends back ICMP Time Exceeded (type 11), which reveals its address. Raising the TTL one step at a time reveals one router after another. The destination itself answers with an Echo Reply (type 0), and the trace stops — or after 30 hops at most.

تاقیکردنەوە دەنێرێت ( Echoـی لە Windowsـدا) بە ⁦TTL 1⁩، پاشان 2، پاشان 3 و بەم شێوەیە، سێ دانە بۆ هەر . ئەو TTL تێیدا دەگاتە 0 تاقیکردنەوەکە فڕێ دەدات و Time Exceededـی (جۆری ⁦11⁩) دەگەڕێنێتەوە کە ناونیشانەکەی ئاشکرا دەکات. بەرزکردنەوەی TTL هەنگاو بە هەنگاو لە دوای یەکێکی تر ئاشکرا دەکات. خودی مەبەستەکە بە وەڵامی Echo (جۆری ⁦0⁩) وەڵام دەداتەوە و ڕێگادۆزینەوەکە دەوەستێت — یان لە زۆرترین ⁦30⁩ .

ExerciseڕاهێنانTrue or falseڕاست یان هەڵە

Mark each statement true or false and correct the false ones. (1) “The ping command sends a sequence of ICMP echo request packets to the specified host.” (2) “ICMP is a transport-layer protocol.” (3) “tracert -d shows router names.”

هەر ڕستەیەک بە ڕاست یان هەڵە دیاری بکە و هەڵەکان ڕاست بکەرەوە. ⁦(1)⁩ «فەرمانی ping زنجیرەیەک Echoـی بۆ دیاریکراو دەنێرێت.» ⁦(2)⁩ « چینی گواستنەوەیە.» ⁦(3)⁩ «tracert -d ناوی نیشان دەدات.»

Show answerوەڵامەکە پیشان بدە
  • (1) True — that is exactly what ping does.
  • (2) False — ICMP is a network-layer protocol carried inside IP.
  • (3) False — /d (or -d) stops tracert from looking up names, so it shows only addresses and is faster.
  • ⁦(1)⁩ ڕاستە — ڕێک ئەوەیە کە ping دەیکات.
  • ⁦(2)⁩ هەڵەیە — کە لە ناو IPـدا هەڵدەگیرێت.
  • ⁦(3)⁩ هەڵەیە — /d (یان -d) ڕێ لە tracert دەگرێت بەدوای ناودا بگەڕێت، بۆیە تەنیا ناونیشان نیشان دەدات و خێراترە.

Summaryکورتە

  • ICMP (RFC 792) is the network layer’s messenger: it reports delivery problems and carries test messages, inside IP with protocol number 1, without ports.
  • Main messages: Echo Request 8, Echo Reply 0, Destination Unreachable 3, Time Exceeded 11, Redirect 5. Errors go back to the source.
  • ping sends Echo Requests (Windows: 4 × 32 bytes) and shows time and TTL for each reply; /t, /n, /l, /4, /6 change it. 127.0.0.1 tests only your own computer.
  • No reply does not prove a host is down: firewalls often drop ICMP. Read the failure message to see where the trouble is.
  • tracert / traceroute raise the TTL 1, 2, 3 … so each router reveals itself with Time Exceeded; Windows probes with ICMP, Linux and macOS with UDP. * means a silent router. pathping adds loss statistics.
  • IPv6 uses ICMPv6 (Next Header 58), which also carries Neighbor Discovery — never block all of it.
  • ⁦(RFC 792)⁩ پەیامبەری : کێشەکانی گەیاندن ڕاپۆرت دەکات و پەیامی تاقیکردنەوە هەڵدەگرێت، لە ناو IPـدا بە ژمارەی 1، بەبێ .
  • پەیامە سەرەکییەکان: ⁦Echo 8⁩، وەڵامی ⁦Echo 0⁩، ⁦Destination Unreachable 3⁩، ⁦Time Exceeded 11⁩، ⁦Redirect 5⁩. هەڵەکان بۆ سەرچاوە دەگەڕێنەوە.
  • ping Echo دەنێرێت (Windows: 4×324 \times 32 ) و بۆ هەر وەڵامێک کات و نیشان دەدات؛ /t، /n، /l، /4، /6 دەیگۆڕن. 127.0.0.1 تەنیا خۆت تاقی دەکاتەوە.
  • وەڵام نەبوون نایسەلمێنێت کوژاوەتەوە: زۆرجار فڕێ دەدەن. پەیامی شکستەکە بخوێنەرەوە بۆ ئەوەی بزانیت کێشەکە لە کوێیە.
  • tracert / traceroute بەرز دەکەنەوە 1، 2، 3 … تا هەر بە Time Exceeded خۆی ئاشکرا بکات؛ Windows بە تاقی دەکاتەوە، Linux و macOS بە UDP. * واتە بێدەنگ. pathping ئاماری زیاد دەکات.
  • ⁦ICMPv6⁩ بەکار دەهێنێت ⁦(Next Header 58)⁩ کە هەڵدەگرێت — هەرگیز هەمووی مەگرە.

Lesson complete!وانەکە تەواو بوو!

Well done. Review the key terms, then go on to the next lesson.دەستخۆش. سەیرێکی زاراوە سەرەکییەکان بکەرەوە، پاشان بڕۆ بۆ وانەی داهاتوو.

Key termsزاراوە سەرەکییەکان

Next lessonوانەی داهاتوو

How a Packet Finds Its Way: Gateways and Routing Tablesپاکێت چۆن ڕێگای خۆی دەدۆزێتەوە: دەروازەی بنەڕەتی و خشتەکانی ڕێدۆزی

References and further readingسەرچاوەکان و خوێندنەوەی زیاتر

This lecture is a first edition. The Kurdish text and terminology are waiting for review by Kurdish IT teachers.ئەم وانەیە چاپی یەکەمە. دەقە کوردییەکە و زاراوەکانی چاوەڕێی پێداچوونەوەی مامۆستایانی کوردی بواری IT ن.

Appearanceڕووکار

Modeدۆخ
Styleشێواز
Coloursڕەنگەکان

Saved on this device only.تەنیا لەسەر ئەم ئامێرە پاشەکەوت دەکرێت.