问题:有关延迟的问题,发现同一个目的地址ping ip和ping 主机域名产生的延迟与丢包的问题。
分析:可能是DNS有问题。
编辑C:\Windows\System32\drivers\etc\hosts文本文件,注意编辑的时候规范。
在其中最后添加一行: 61.55.167.148 space.itpub.net
说明:这一行的作用是让本机访问space.itpub.net时跳过请求DNS服务器
可以用word的“显示格式标记”的功能查看隐含的标记
# Copyright (c) 1993-2009 Microsoft Corp. # # This is a sample HOSTS file used by Microsoft TCP/IP for Windows. # # This file contains the mappings of IP addresses to host names. Each # entry should be kept on an individual line. The IP address should # be placed in the first column followed by the corresponding host name. # The IP address and the host name should be separated by at least one # space. # # Additionally, comments (such as these) may be inserted on individual # lines or following the machine name denoted by a '#' symbol. # # For example: # # 102.54.94.97 rhino.acme.com # source server # 38.25.63.10 x.acme.com # x client host
# localhost name resolution is handled within DNS itself. # 127.0.0.1 localhost # ::1 localhost 61.55.167.148 space.itpub.net |
发现还是有丢包现象,这可能是在服务器方做了设置,规定对icmp包的回应规则。或者链路本身就不好,导致较大延迟和丢包。
之前我用的是电信的宽带接入,现在改用移动的宽带接入
经过多次测试也没发现丢包现象,而且往返时间都比较稳定。
问题判断:判断是链路问题。
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/27180667/viewspace-747177/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/27180667/viewspace-747177/