pingオンライン検出ツール
pingテスト結果
についてpingオンライン検出ツール:
このオンラインpingツールは、Linuxサーバーからpingの結果を返すもので、ドメイン名をpingする回数と2つのpingクエリの間隔を選択できます。

ドメイン名をpingするためにwww.プレフィックスを追加する必要がありますか?
サイトの一部のために、あなたが追加する必要がありますwww
ような、接頭辞をwww.microsoft.com
とwww.quora.com
.pingテストが失敗した場合は、ドメイン名の実装の前に追加してくださいwww.
プレフィックス.いくつかのDNSドメイン名の所有者がデフォルト設定を使用していないためです設定
ping検出を使用する必要があるのはなぜですか?
Skypeでの会話が遅くなりましたか?オンラインゲームをプレイするときに遅れると思いますか?あなたはあなたの家からウェブサイトまでの遅れをチェックするべきです.
ping検出は、自宅からパブリックIPアドレスまたはドメイン名を持つ任意のWebサーバーへの往復時間(Webサーバーからクリックしたリンクから)、および送信されたパケット数、受信データを示します.失われたパケット数とパケット数.
オンラインゲームでは、ゲームサーバーのping遅延を100ms
以下に維持し、 200ms
を超えると、耐え難くなります通常のWeb閲覧アクティビティでは、ping遅延がインターネットの使用に与える影響は少なくなります2
別の概念では、待ち時間が長いからといってNetflixの480p
解像度しか許容できないという意味ではありませんが、pingの待ち時間とインターネットの速度は正の相関として反映されることがよくあります.
大きなインターネットトラフィックはpingの待ち時間に悪影響を及ぼす可能性があるため、夜間のインターネット速度は速く、パケット損失率は日中よりも低くなります.
ping検出への他のリンク:
ウィキペディア(ping): https://en.wikipedia.org/wiki/Ping_(networking_utility)
RFC 792(ping): https://tools.ietf.org/html/rfc792
Linuxでのping検出(Ubuntu): https://linux.die.net/man/8/ping
Windowsシステムでのping検出: https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/ping
Linuxシステムでのping検出コマンド:
NAME ping - send ICMP ECHO_REQUEST to network hosts SYNOPSIS ping [-aAbBdDfhLnOqrRUvV46] [-c count] [-F flowlabel] [-i interval] [-I interface] [-l preload] [-m mark] [-M pmtudisc_option] [-N nodeinfo_option] [-w deadline] [-W timeout] [-p pattern] [-Q tos] [-s packetsize] [-S sndbuf] [-t ttl] [-T timestamp option] [hop ...] destination
root@instance-1:/var/log/apache2# ping -c 4 -i 1 facebook.com PING facebook.com (157.240.22.35) 56(84) bytes of data. 64 bytes from edge-star-mini-shv-01-sjc3.facebook.com (157.240.22.35): icmp_seq=1 ttl=52 time=19.1 ms 64 bytes from edge-star-mini-shv-01-sjc3.facebook.com (157.240.22.35): icmp_seq=2 ttl=52 time=18.6 ms 64 bytes from edge-star-mini-shv-01-sjc3.facebook.com (157.240.22.35): icmp_seq=3 ttl=52 time=18.9 ms 64 bytes from edge-star-mini-shv-01-sjc3.facebook.com (157.240.22.35): icmp_seq=4 ttl=52 time=18.7 ms --- facebook.com ping statistics --- 4 packets transmitted, 4 received, 0% packet loss, time 3004ms rtt min/avg/max/mdev = 18.697/18.857/19.102/0.189 ms
PythonでIPアドレスまたはドメイン名をpingする(パッケージソケットを使用):
- import socket
- import time
- def ping(ip_or_domain, count):
- for i in range(1, count):
- try:
- start_time = time.time()
- socket.gethostbyname(ip_or_domain)
- end_time = time.time()
- total_time = round((end_time - start_time) * 1000, 2)
- print('{0} is reachable: icmp_seq={1} time={2}ms'.format(ip_or_domain, i, total_time))
- except socket.herror:
- print('{0} is NOT reachable'.format(ip_or_domain))
- if __name__ == "__main__":
- # ping ip address
- ping("93.184.216.34", 4)
- # ping domain
- ping("coding.tools", 2)
- -------------------
- 93.184.216.34 is reachable: icmp_seq=1 time=19ms
- 93.184.216.34 is reachable: icmp_seq=2 time=31ms
- 93.184.216.34 is reachable: icmp_seq=3 time=15ms
- 93.184.216.34 is reachable: icmp_seq=4 time=13ms
- coding.tools is reachable: icmp_seq=1 time=14ms
- coding.tools is reachable: icmp_seq=2 time=7ms
Javaでping IPアドレスまたはドメイン名(パッケージjava.net.InetAddressを使用):
- import java.io.IOException;
- import java.net.InetAddress;
- public class Ping {
- public static void ping(String ip_or_domain, int count) throws IOException {
- InetAddress remote_host = InetAddress.getByName(ip_or_domain);
- // send ping request "count" times in total
- for (int i = 1; i <= count; i++) {
- // Sending ping request
- long start_time = System.currentTimeMillis();
- boolean is_reachable = remote_host.isReachable(5000);
- long end_time = System.currentTimeMillis();
- long total_time = end_time - start_time;
- if (is_reachable)
- System.out.println(ip_or_domain + " is reachable: icmp_seq=" + i + " time=" + total_time + "ms");
- else
- System.out.println(ip_or_domain + "is NOT reachable");
- }
- }
- public static void main(String[] args) throws IOException {
- // ping ip address
- ping("93.184.216.34", 4);
- // ping domain
- ping("coding.tools", 2);
- }
- }
- -------------------
- 93.184.216.34 is reachable: icmp_seq=1 time=19ms
- 93.184.216.34 is reachable: icmp_seq=2 time=19ms
- 93.184.216.34 is reachable: icmp_seq=3 time=15ms
- 93.184.216.34 is reachable: icmp_seq=4 time=14ms
- coding.tools is reachable: icmp_seq=1 time=8ms
- coding.tools is reachable: icmp_seq=2 time=3ms