{"id":145324,"date":"2019-06-04T09:18:37","date_gmt":"2019-06-04T01:18:37","guid":{"rendered":"https:\/\/lrxjmw.cn\/?p=145324"},"modified":"2019-05-27T09:12:54","modified_gmt":"2019-05-27T01:12:54","slug":"ping-time-ttl","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/ping-time-ttl.html","title":{"rendered":"ping ,time,TTL\u8be6\u89e3"},"content":{"rendered":"
\u4e00\uff0c\u4ec0\u4e48\u662fping<\/strong><\/div>\n

PING (Packet Internet Grope)\uff0c\u56e0\u7279\u7f51\u5305\u63a2\u7d22\u5668\uff0c\u7528\u4e8e\u6d4b\u8bd5\u7f51\u7edc\u8fde\u63a5\u91cf\u7684\u7a0b\u5e8f\u3002Ping\u53d1\u9001\u4e00\u4e2aICMP\u56de\u58f0\u8bf7\u6c42\u6d88\u606f\u7ed9\u76ee\u7684\u5730\u5e76\u62a5\u544a\u662f\u5426\u6536\u5230\u6240\u5e0c\u671b\u7684ICMP\u56de\u58f0\u5e94\u7b54\u3002\u4ed6\u662f\u600e\u4e48\u5de5\u4f5c\u7684\u5462\uff0c\u770b\u4e0b\u56fe<\/p>\n

\n

\"\"<\/p>\n

\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 ping\u8bf7\u6c42\u8bf4\u660e<\/p>\n<\/div>\n

\u4e8c\uff0c\u4ec0\u4e48\u662fTTl<\/strong><\/div>\n

TTL\uff1a\u751f\u5b58\u65f6\u95f4
\n\u3000\u3000\u6307\u5b9a\u6570\u636e\u5305\u88ab\u8def\u7531\u5668\u4e22\u5f03\u4e4b\u524d\u5141\u8bb8\u901a\u8fc7\u7684\u7f51\u6bb5\u6570\u91cf\u3002
\n\u3000\u3000TTL \u662f\u7531\u53d1\u9001\u4e3b\u673a\u8bbe\u7f6e\u7684\uff0c\u4ee5\u9632\u6b62\u6570\u636e\u5305\u4e0d\u65ad\u5728 IP \u4e92\u8054\u7f51\u7edc\u4e0a\u6c38\u4e0d\u7ec8\u6b62\u5730\u5faa\u73af\u3002\u8f6c\u53d1 IP \u6570\u636e\u5305\u65f6\uff0c\u8981\u6c42\u8def\u7531\u5668\u81f3\u5c11\u5c06 TTL \u51cf\u5c0f 1\u3002
\n\u4f7f\u7528PING\u65f6\u6d89\u53ca\u5230\u7684 ICMP \u62a5\u6587\u7c7b\u578b:
\n\u3000\u3000\u4e00\u4e2a\u4e3aICMR\u8bf7\u6c42\u56de\u663e\uff08ICMP Echo Request\uff09
\n\u3000\u3000\u4e00\u4e2a\u4e3aICMP\u56de\u663e\u5e94\u7b54\uff08ICMP Echo Reply\uff09
\nTTL \u5b57\u6bb5\u503c\u53ef\u4ee5\u5e2e\u52a9\u6211\u4eec\u8bc6\u522b\u64cd\u4f5c\u7cfb\u7edf\u7c7b\u578b\u3002
\n\u3000\u3000UNIX \u53ca\u7c7b UNIX \u64cd\u4f5c\u7cfb\u7edf ICMP \u56de\u663e\u5e94\u7b54\u7684 TTL \u5b57\u6bb5\u503c\u4e3a 255
\n\u3000\u3000Compaq Tru64 5.0 ICMP \u56de\u663e\u5e94\u7b54\u7684 TTL \u5b57\u6bb5\u503c\u4e3a 64
\n\u3000\u3000\u5fae\u8f6f Windows NT\/2K\u64cd\u4f5c\u7cfb\u7edf ICMP \u56de\u663e\u5e94\u7b54\u7684 TTL \u5b57\u6bb5\u503c\u4e3a 128
\n\u3000\u3000\u5fae\u8f6f Windows 95 \u64cd\u4f5c\u7cfb\u7edf ICMP \u56de\u663e\u5e94\u7b54\u7684 TTL \u5b57\u6bb5\u503c\u4e3a 32
\n\u3000\u3000\u5f53\u7136\uff0c\u8fd4\u56de\u7684TTL\u503c\u662f\u76f8\u540c\u7684
\n\u3000\u3000\u4f46\u6709\u4e9b\u60c5\u51b5\u4e0b\u6709\u6240\u7279\u6b8a
\n\u3000\u3000LINUX Kernel 2.2.x & 2.4.x ICMP \u56de\u663e\u5e94\u7b54\u7684 TTL \u5b57\u6bb5\u503c\u4e3a 64
\n\u3000\u3000FreeBSD 4.1, 4.0, 3.4;
\n\u3000\u3000Sun Solaris 2.5.1, 2.6, 2.7, 2.8;
\n\u3000\u3000OpenBSD 2.6, 2.7,
\n\u3000\u3000NetBSD
\n\u3000\u3000HP UX 10.20
\n\u3000\u3000ICMP \u56de\u663e\u5e94\u7b54\u7684 TTL \u5b57\u6bb5\u503c\u4e3a 255
\n\u3000\u3000Windows 95\/98\/98SE
\n\u3000\u3000Windows ME
\n\u3000\u3000ICMP \u56de\u663e\u5e94\u7b54\u7684 TTL \u5b57\u6bb5\u503c\u4e3a 32
\n\u3000\u3000Windows NT4 WRKS
\n\u3000\u3000Windows NT4 Server
\n\u3000\u3000Windows 2000
\n\u3000\u3000Windows XP
\n\u3000\u3000ICMP \u56de\u663e\u5e94\u7b54\u7684 TTL \u5b57\u6bb5\u503c\u4e3a 128
\n\u3000\u3000\u8fd9\u6837\uff0c\u6211\u4eec\u5c31\u53ef\u4ee5\u901a\u8fc7\u8fd9\u79cd\u65b9\u6cd5\u6765\u8fa8\u522b\u64cd\u4f5c\u7cfb\u7edf<\/p>\n

\u4e09\uff0c\u4e3e\u4f8b\u8bf4\u660e<\/strong><\/div>\n
C:\\Documents and Settings>ping blog.51yip.com\r\n\r\nPinging blog.51yip.com [173.201.152.6] with 32 bytes of data:\r\n\r\nReply from 173.201.152.6: bytes=32 time=257ms TTL=45\r\nReply from 173.201.152.6: bytes=32 time=256ms TTL=45\r\nReply from 173.201.152.6: bytes=32 time=262ms TTL=45\r\nReply from 173.201.152.6: bytes=32 time=258ms TTL=45\r\n\r\nPing statistics for 173.201.152.6:\r\nPackets: Sent = 4, Received = 4, Lost = 0 (0% loss),\r\nApproximate round trip times in milli-seconds:\r\nMinimum = 256ms, Maximum = 262ms, Average = 258ms<\/pre>\n

\u7531\u6b64\u6211\u4eec\u53ef\u4ee5\u65ad\u5b9a\uff0cblog.51yip.com\u662f\u4e00\u53f0linux\u4e3b\u673a\uff0c\u7ecf\u8fc7\u4e8664-45=19\u6b21\u4e2d\u8f6c\u540e\u5230\u8fbe\u672c\u673a\uff0ctime=257ms\uff0c\u8fd9\u4e2a\u65f6\u95f4\u662f\u4e00\u6b21\u8bf7\u6c42\u7684\u65f6\u95f4\uff0c\u8fd9\u4e2a\u65f6\u95f4\u8d8a\u5c0f\uff0c\u8bf4\u660e\u901f\u5ea6\u8d8a\u5feb\uff0c\u8d8a\u5927\u8bf4\u660e\u901f\u5ea6\u8d8a\u6162\u3002<\/p>\n

C:\\Documents and Settings>ping 127.0.0.1\r\n\r\nPinging 127.0.0.1 with 32 bytes of data:\r\n\r\nReply from 127.0.0.1: bytes=32 time<1ms TTL=128\r\nReply from 127.0.0.1: bytes=32 time<1ms TTL=128\r\nReply from 127.0.0.1: bytes=32 time<1ms TTL=128\r\nReply from 127.0.0.1: bytes=32 time<1ms TTL=128\r\n\r\nPing statistics for 127.0.0.1:\r\nPackets: Sent = 4, Received = 4, Lost = 0 (0% loss)\r\nApproximate round trip times in milli-seconds:\r\nMinimum = 0ms, Maximum = 0ms, Average = 0ms<\/pre>\n

\u5728\u8fd9\u91cc\u7684TTL=128\u662f\u8868\u793a\u4e8c\u4e2a\u610f\u601d:<\/p>\n

1,\u8bf7\u6c42\u4e3b\u673a\u662f\u4e00\u53f0WINDOWS\u7cfb\u7edf\u7684\u7535\u8111<\/p>\n

2,\u5e76\u4e14\u6ca1\u6709\u7ecf\u8fc7\u8def\u7531\u4e2d\u8f6c\uff0c\u4e5f\u5c31\u662f\u8bf7\u6c42\u7684\u662f\u672c\u673a\u3002\u6bcf\u6b21\u8bf7\u6c42\u7684\u65f6\u95f4\u5462\uff0c\u5c0f\u4e8e\u767e\u4e07\u4efd\u4e4b\u4e00\u79d2\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"

PING (Packet Internet Grope)\uff0c\u56e0\u7279\u7f51\u5305\u63a2\u7d22\u5668\uff0c\u7528\u4e8e\u6d4b\u8bd5\u7f51\u7edc\u8fde\u63a5\u91cf\u7684\u7a0b\u5e8f\u3002Ping\u53d1 […]<\/p>\n","protected":false},"author":63,"featured_media":146050,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[55],"tags":[],"class_list":["post-145324","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-thread"],"acf":[],"_links":{"self":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/145324","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/users\/63"}],"replies":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/comments?post=145324"}],"version-history":[{"count":5,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/145324\/revisions"}],"predecessor-version":[{"id":146427,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/145324\/revisions\/146427"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media\/146050"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=145324"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=145324"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=145324"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}