
ping (ピン、ピング)はIPネットワークにおいて、 ノードの到達性を確認するためのソフトウェアである。 ping (pin, ping) are IP networks, and software to verify the reachability of nodes. IPネットワークにおける基本的なツールの一つであり、IPが実装されている環境のほとんどにおいて、何らかの形で用意されている。 IP is one of the basic tools in the network, IP environment in which most of the implementation, is available in some form.
目次 Contents |
pingはICMPの"echo request" パケットを対象ノードに投げ、対象ノードから"echo reply"が返ってくることで到達性を確認する。 ping is ICMP's "echo request" thrown to the node for a packet from the node "echo reply" to confirm the reachability of that comes back. pingではリプライが返ってくるまでの時間や応答率から、対象ノード間のラウンドトリップタイム (RTT) やパケットロス率を求めることができる。 and response time to ping from the rate of responses come back, the round trip time between the nodes for (RTT) which may request and packet loss rate. これらは対象ノード間の回線状況を知るため重要な情報である。 These are important information to know the status of the line between nodes. 前日までアクセス可能だったサイトがアクセス不能・困難になった時に原因や状況を調べるのに有効なツールである。 Is an effective tool to investigate the causes and circumstances become difficult when the site was inaccessible until the day before accessible. 一部のオンラインソフト(EditMTU等)にもping機能を持つものがある。 Some online software (EditMTU etc.) that also have a ping function. また、オンラインゲームなどにおいてサーバーとプレイヤー(クライアント)との通信においてのタイムラグをpingとして表示するものもある。 The other players in online game server (client), the time lag in communication and to appear as some ping.
なお、日本国内では「ピング」と発音されることが多いが、英語圏での発音は「piŋ」であり、最後の「グ」は発音しない。 However, in Japan the "ping" is often pronounced, pronunciation of the English-speaking "piŋ" is the last "Gu" is not pronounced.
1983年 12月、当時アメリカ陸軍の弾道学研究所(Ballistics Research Lab)に所属していたマイク・ムース ( Mike Muuss )が自身の管理するネットワークでのトラブルシュート用にプログラムを書いた。 1983 December, Institute of the Army ballistics then the United States (Ballistics Research Lab) Mike Moose had to belong to (Mike Muuss) wrote a program for managing troubleshoot their own networks. そのプログラムの挙動が潜水艦などで使われるアクティブソナーの発する音波(=ping)の挙動と似ていることから、pingと名づけた。 The active sonar emits sound waves are used in submarines such as the behavior of the program that (= ping) from its resemblance to the behavior of, ping dubbed. この事からpingを実行する事を「pingを打つ」と呼ぶ場合が多い。 Ping things from running this thing "ping hit" often called. 後にNTPを開発したデビット・L・ミルズ (David L. Mills)により P acket I nter n et G rouper ( G roper)、別の人より P acked I nter n et G opher(ここでのGopherはIT用語でのGopherではなく、 齧歯目のGopher)というバクロニムを授かっている。 The after NTP David Mills who developed the L · (David L. Mills) by "P acket I nter n et G rouper (G roper)", from another person "P acked I nter n et G opher" (here in terms of IT Gopher Gopher rather than the teeth of rodents Gopher) are blessed with a backronym that.
インターネットの接続性の問題の診断にも有用なpingであったが、 2003年末、 Welchiaのようなpingをネットワークにフラッドし標的を探すタイプのコンピュータウイルスが出現したり、悪意を持ったユーザが攻撃目標の調査やネットワークに負荷をかけるなどの目的でpingの悪用を行ったため、一部のISPでICMP Type 8(echo request)パケットがフィルタリングされるようになった。 Internet connectivity problems, "diagnosis" was useful to ping, 2003 year-end, Welchia like ping or search type of computer virus appeared to target and flood the network, a malicious purposes such as research and network-intensive targets were exploited by the user to ping, some ISP in the ICMP Type 8 (echo request) came to the ring that the packet filter.
下線は利用者が入力する部分 User input is underlined portion
以下の出力例はLinux端末からwww.google.comへ、iputilsバージョンのpingからpingを打った結果である。 The following is sample output from a Linux terminal to www.google.com, iputils version of ping ping is the result from a hit.
$ ping www.google.com $ Ping www.google.com PING www.l.google.com (64.233.183.103) 56(84) bytes of data. PING www.l.google.com (64.233.183.103) 56 (84) bytes of data. 64 bytes from 64.233.183.103: icmp_seq=1 ttl=246 time=22.2 ms 64 bytes from 64.233.183.103: icmp_seq = 1 ttl = 246 time = 22.2 ms 64 bytes from 64.233.183.103: icmp_seq=2 ttl=245 time=25.3 ms 64 bytes from 64.233.183.103: icmp_seq = 2 ttl = 245 time = 25.3 ms 64 bytes from 64.233.183.103: icmp_seq=3 ttl=245 time=22.7 ms 64 bytes from 64.233.183.103: icmp_seq = 3 ttl = 245 time = 22.7 ms 64 bytes from 64.233.183.103: icmp_seq=4 ttl=246 time=25.6 ms 64 bytes from 64.233.183.103: icmp_seq = 4 ttl = 246 time = 25.6 ms 64 bytes from 64.233.183.103: icmp_seq=5 ttl=246 time=25.3 ms 64 bytes from 64.233.183.103: icmp_seq = 5 ttl = 246 time = 25.3 ms 64 bytes from 64.233.183.103: icmp_seq=6 ttl=245 time=25.4 ms 64 bytes from 64.233.183.103: icmp_seq = 6 ttl = 245 time = 25.4 ms 64 bytes from 64.233.183.103: icmp_seq=7 ttl=245 time=25.4 ms 64 bytes from 64.233.183.103: icmp_seq = 7 ttl = 245 time = 25.4 ms 64 bytes from 64.233.183.103: icmp_seq=8 ttl=245 time=21.8 ms 64 bytes from 64.233.183.103: icmp_seq = 8 ttl = 245 time = 21.8 ms 64 bytes from 64.233.183.103: icmp_seq=9 ttl=245 time=25.7 ms 64 bytes from 64.233.183.103: icmp_seq = 9 ttl = 245 time = 25.7 ms 64 bytes from 64.233.183.103: icmp_seq=10 ttl=246 time=21.9 ms 64 bytes from 64.233.183.103: icmp_seq = 10 ttl = 246 time = 21.9 ms --- www.l.google.com ping statistics --- --- Www.l.google.com ping statistics --- 10 packets transmitted, 10 received, 0% packet loss, time 9008ms 10 packets transmitted, 10 received, 0% packet loss, time 9008ms rtt min/avg/max/mdev = 21.896/24.187/25.718/1.619 ms rtt min / avg / max / mdev = 21.896/24.187/25.718/1.619 ms
出力例からわかることは、まずwww.google.comというURLがDNSのCNAMEレコードによりwww.l.google.comへ誘導され、 64.233.183.103というIPアドレスにリゾルブされている。 Can see from the example output, the first of www.google.com URL has DNS CNAME record for the induction to www.l.google.com, 64.233.183.103 said that IP address is Resolve. そして64.233.183.103に向けて10回pingが打たれており(Linuxの場合はデフォルトではCtrlとCを打って止めるまで、ずっとpingが打たれる設定となっている)、出力の最後にpingの結果が出ている。 For the ping 64.233.183.103 and has struck 10 times on the (Linux in case of default hit Ctrl and C to stop the ping has been filled with a given setting), the end of the ping output The results are out.
結果からわかることは以下の通りである。 Can see from the results is as follows.
以下の出力例はMac OS X端末からwww.google.comへ、ターミナルのコマンドpingからpingを打った結果である。 The following is sample output from the Mac OS X terminal to www.google.com, the result of ping command from a terminal ping hit. ただし、computernameはコンピューター名、usernameはユーザー名である。 However, computername is the computer name, username is the user name. (Macintosh HD→アプリケーション→ユーティリティ→ターミナル) (Macintosh HD → Applications → Utilities → Terminal)
computername:~ username$ ping www.google.com computername: ~ username $ ping www.google.com PING www.l.google.com (66.249.89.104): 56 data bytes PING www.l.google.com (66.249.89.104): 56 data bytes 64 bytes from 66.249.89.104: icmp_seq=1 ttl=238 time=30.556 ms 64 bytes from 66.249.89.104: icmp_seq = 1 ttl = 238 time = 30.556 ms 64 bytes from 66.249.89.104: icmp_seq=2 ttl=238 time=30.412 ms 64 bytes from 66.249.89.104: icmp_seq = 2 ttl = 238 time = 30.412 ms 64 bytes from 66.249.89.104: icmp_seq=3 ttl=238 time=31.272 ms 64 bytes from 66.249.89.104: icmp_seq = 3 ttl = 238 time = 31.272 ms 64 bytes from 66.249.89.104: icmp_seq=4 ttl=238 time=30.121 ms 64 bytes from 66.249.89.104: icmp_seq = 4 ttl = 238 time = 30.121 ms 64 bytes from 66.249.89.104: icmp_seq=5 ttl=238 time=30.942 ms 64 bytes from 66.249.89.104: icmp_seq = 5 ttl = 238 time = 30.942 ms 64 bytes from 66.249.89.104: icmp_seq=6 ttl=238 time=32.132 ms 64 bytes from 66.249.89.104: icmp_seq = 6 ttl = 238 time = 32.132 ms 64 bytes from 66.249.89.104: icmp_seq=7 ttl=238 time=30.680 ms 64 bytes from 66.249.89.104: icmp_seq = 7 ttl = 238 time = 30.680 ms 64 bytes from 66.249.89.104: icmp_seq=8 ttl=238 time=32.614 ms 64 bytes from 66.249.89.104: icmp_seq = 8 ttl = 238 time = 32.614 ms 64 bytes from 66.249.89.104: icmp_seq=9 ttl=238 time=29.405 ms 64 bytes from 66.249.89.104: icmp_seq = 9 ttl = 238 time = 29.405 ms 64 bytes from 66.249.89.104: icmp_seq=10 ttl=238 time=41.360 ms 64 bytes from 66.249.89.104: icmp_seq = 10 ttl = 238 time = 41.360 ms 64 bytes from 66.249.89.104: icmp_seq=11 ttl=238 time=32.176 ms 64 bytes from 66.249.89.104: icmp_seq = 11 ttl = 238 time = 32.176 ms 64 bytes from 66.249.89.104: icmp_seq=12 ttl=238 time=32.321 ms 64 bytes from 66.249.89.104: icmp_seq = 12 ttl = 238 time = 32.321 ms ^C ^ C --- www.l.google.com ping statistics --- --- Www.l.google.com ping statistics --- 13 packets transmitted, 12 packets received, 7% packet loss 13 packets transmitted, 12 packets received, 7% packet loss round-trip min/avg/max/stddev = 29.405/31.999/41.360/2.978 ms round-trip min / avg / max / stddev = 29.405/31.999/41.360/2.978 ms
Mac OS XはUNIX互換であるため、 Linuxとほぼ変わらない表示である。 Mac OS X is UNIX-compatible because, Linux is almost the same view. 今回は-cオプションで回数設定していないため、Control+Cで止めない限り永遠に続く(例では13回pingを送信)。 This is because no-c option to set rates, Control + C last forever unless they stop by (in our example, send a ping 13 times). 見方はLinuxの出力例を参考。 Perspective is an example output of Linux.
logから分かる事は、 see things from the log,
尚、Mac OS XにはGUIから実行可能なpingも有り、こちらは任意の実行回数を指定できる。 Takashi, Mac OS X to run from the GUI can also ping Stock, which allow users to specify any number of executions. (Macintosh HD→アプリケーション→ユーティリティ→ネットワークユーティリティ→ping) (Macintosh HD → Applications → Utilities → Utility Networks → ping)
以下の出力例はMicrosoft Windows XP端末からwww.google.comへ、コマンドプロンプト標準のpingを使用してpingを打った結果である(95、98、Me、2000も同様)。 The following is sample output from Microsoft Windows XP Terminal to www.google.com, using the standard command prompt ping ping is the result of a hit (95,98, Me, 2000 as well).
C:\> ping www.google.com C: \> ping www.google.com Pinging www.l.google.com [64.233.183.103] with 32 bytes of data: Pinging www.l.google.com [64.233.183.103] with 32 bytes of data: Reply from 64.233.183.103: bytes=32 time=25ms TTL=245 Reply from 64.233.183.103: bytes = 32 time = 25ms TTL = 245 Reply from 64.233.183.103: bytes=32 time=22ms TTL=245 Reply from 64.233.183.103: bytes = 32 time = 22ms TTL = 245 Reply from 64.233.183.103: bytes=32 time=25ms TTL=246 Reply from 64.233.183.103: bytes = 32 time = 25ms TTL = 246 Reply from 64.233.183.103: bytes=32 time=22ms TTL=246 Reply from 64.233.183.103: bytes = 32 time = 22ms TTL = 246 Ping statistics for 64.233.183.103: Ping statistics for 64.233.183.103: Packets: Sent = 4, Received = 4, Lost = 0 (0% loss), Packets: Sent = 4, Received = 4, Lost = 0 (0% loss), Approximate round trip times in milli-seconds: Approximate round trip times in milli-seconds: Minimum = 22ms, Maximum = 25ms, Average = 23ms Minimum = 22ms, Maximum = 25ms, Average = 23ms
出力例からわかることは、まずwww.google.comというURLがDNSのCNAMEレコードによりwww.l.google.comへ誘導され、 64.233.183.103というIPアドレスにリゾルブされている。 Can see from the example output, first the URL www.google.com www.l.google.com the CNAME record in DNS to be induced, 64.233.183.103 Resolve an IP address is. そして64.233.183.103に向けて4回pingが打たれており(Windowsの場合はデフォルトではpingは4回ずつ打たれる設定となっている)、出力の最後にpingの結果が出ている。 For the ping 64.233.183.103 and has struck four times the (Windows: ping by default is set to be beaten and has four times each), and finally output the results of the ping is out.
結果からわかることは以下の通りである。 Can see from the results is as follows.
| ||||||||||||||||||||||||||
