V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
shiji
V2EX  ›  问与答

谁能来解释一下,为什么同一个网段, ping 相差的那么大?

  •  
  •   shiji · 2016-04-09 08:10:34 +08:00 · 3259 次点击
    这是一个创建于 3149 天前的主题,其中的信息可能已经有所发展或是发生改变。
    目标网段: Hurricane Electric ,比如 Linode Fremont 机房 / 腾讯北美机房
    样本:每次 ping 20 次取平均值, 20 次总比 4 次准确太多了

    这件事情的起因是,我大概几周前就发现我某两个相邻的 IP (不但相邻,还是同一台主机)一个 ping 值总是比另外一个低很多,而且一直到今天也是如此。

    从阿里云杭州测
    Testing IP 184.105.*.65: 228.846
    Testing IP 184.105.*.66: 215.491
    Testing IP 184.105.*.67: 322.169
    Testing IP 184.105.*.68: 202.316
    Testing IP 184.105.*.69: 285.053
    Testing IP 184.105.*.70: 310.937
    Testing IP 184.105.*.71: 279.590
    Testing IP 184.105.*.72: 201.825
    Testing IP 184.105.*.73: 199.394
    Testing IP 184.105.*.74: 300.300
    Testing IP 184.105.*.75: 222.604
    Testing IP 184.105.*.76: 318.771
    Testing IP 184.105.*.77: 174.775
    Testing IP 184.105.*.78: 320.252
    Testing IP 184.105.*.79: 175.623
    Testing IP 184.105.*.80: 197.677
    Testing IP 184.105.*.81: 302.878
    Testing IP 184.105.*.82: 196.652
    Testing IP 184.105.*.83: 272.154
    Testing IP 184.105.*.84: 285.572
    Testing IP 184.105.*.85: 207.488
    Testing IP 184.105.*.86: 275.022
    Testing IP 184.105.*.87: 295.940
    Testing IP 184.105.*.88: 289.449
    Testing IP 184.105.*.89: 204.485
    Testing IP 184.105.*.90: 311.013
    Testing IP 184.105.*.91: 288.312
    Testing IP 184.105.*.92: 302.333
    Testing IP 184.105.*.93: 189.410
    Testing IP 184.105.*.94: 234.518
    Testing IP 184.105.*.95: 188.360

    为了防止偶然事件,我隔了一段时间又测了一遍:

    从阿里云杭州 2:
    Testing IP 184.105.*.65: 200.682
    Testing IP 184.105.*.66: 171.693
    Testing IP 184.105.*.67: 284.283
    Testing IP 184.105.*.68: 178.223
    Testing IP 184.105.*.69: 264.050
    Testing IP 184.105.*.70: 284.668
    Testing IP 184.105.*.71: 293.697
    Testing IP 184.105.*.72: 179.785
    Testing IP 184.105.*.73: 192.021
    Testing IP 184.105.*.74: 293.845
    Testing IP 184.105.*.75: 205.448
    Testing IP 184.105.*.76: 277.777
    Testing IP 184.105.*.77: 169.878
    Testing IP 184.105.*.78: 313.971
    Testing IP 184.105.*.79: 177.549
    Testing IP 184.105.*.80: 203.135
    Testing IP 184.105.*.81: 298.384
    Testing IP 184.105.*.82: 194.307
    Testing IP 184.105.*.83: 267.266
    Testing IP 184.105.*.84: 270.078
    Testing IP 184.105.*.85: 168.328
    Testing IP 184.105.*.86: 270.858

    数据跨度很大,从 170-300 不等

    比较这两次测的数据,相对慢的依旧相对慢,相对快的依旧相对快,很正相关。

    从 traceroute 看,中国出口的路径基本都是 202.97 后面比较随机
    美国入口也不太一样。
    所以从 Linode 日本测一下作为参照,排除北美的线路问题。

    从 Linode 日本测:
    Testing IP 184.105.*.65: 129.038
    Testing IP 184.105.*.66: 110.653
    Testing IP 184.105.*.67: 123.010
    Testing IP 184.105.*.68: 106.218
    Testing IP 184.105.*.69: 100.598
    Testing IP 184.105.*.70: 108.776
    Testing IP 184.105.*.71: 124.066
    Testing IP 184.105.*.72: 100.180
    Testing IP 184.105.*.73: 106.897
    Testing IP 184.105.*.74: 107.780
    Testing IP 184.105.*.75: 106.874
    Testing IP 184.105.*.76: 124.684
    Testing IP 184.105.*.77: 101.741
    Testing IP 184.105.*.78: 106.052
    Testing IP 184.105.*.79: 109.286
    Testing IP 184.105.*.80: 117.486
    Testing IP 184.105.*.81: 106.919
    Testing IP 184.105.*.82: 111.608
    Testing IP 184.105.*.83: 116.375
    Testing IP 184.105.*.84: 102.059
    Testing IP 184.105.*.85: 109.866
    Testing IP 184.105.*.86: 132.782
    Testing IP 184.105.*.87: 103.470
    Testing IP 184.105.*.88: 122.620
    Testing IP 184.105.*.89: 99.532
    Testing IP 184.105.*.90: 106.870
    Testing IP 184.105.*.91: 100.147
    Testing IP 184.105.*.92: 99.873
    Testing IP 184.105.*.93: 99.629
    Testing IP 184.105.*.94: 110.958
    Traceroute
    2 124.215.199.125 (124.215.199.125) 3.694 ms 3.680 ms 3.663 ms
    3 otejbb205.int-gw.kddi.ne.jp (124.215.194.178) 4.475 ms otejbb206.int-gw.kddi.ne.jp (124.215.194.177) 3.353 ms otejbb205.int-gw.kddi.ne.jp (124.215.194.161) 2.921 ms
    4 pajbb002.int-gw.kddi.ne.jp (203.181.100.154) 118.643 ms pajbb002.int-gw.kddi.ne.jp (106.187.8.18) 113.798 ms 113.762 ms
    5 ix-pa4.int-gw.kddi.ne.jp (111.87.3.46) 135.778 ms 135.813 ms 135.803 ms
    6 124.215.192.122 (124.215.192.122) 102.904 ms 98.396 ms 112.710 ms
    7 10ge4-4.core3.fmt2.he.net (184.105.222.89) 107.244 ms 122.134 ms 114.715 ms
    KDDI 到北美,然后转 HE
    测试结果基本都在 100-125 范围内,没啥问题。排除北美那边的网络问题。


    附赠数据,杭州阿里云到 Linode 加州机房某网段:(只测到了 170 ,空白可能是主机禁 ping 或者不在线)
    Testing IP 66.175.220.1: 235.473
    Testing IP 66.175.220.2: 385.121
    Testing IP 66.175.220.3: 375.629
    Testing IP 66.175.220.4:
    Testing IP 66.175.220.5: 315.611
    Testing IP 66.175.220.6:
    Testing IP 66.175.220.7: 381.500
    Testing IP 66.175.220.8:
    Testing IP 66.175.220.9: 346.210
    Testing IP 66.175.220.10: 297.044
    Testing IP 66.175.220.11:
    Testing IP 66.175.220.12: 343.140
    Testing IP 66.175.220.13: 276.954
    Testing IP 66.175.220.14: 303.749
    Testing IP 66.175.220.15: 277.636
    Testing IP 66.175.220.16: 370.863
    Testing IP 66.175.220.17: 280.480
    Testing IP 66.175.220.18:
    Testing IP 66.175.220.19:
    Testing IP 66.175.220.20:
    Testing IP 66.175.220.21:
    Testing IP 66.175.220.22:
    Testing IP 66.175.220.23: 288.654
    Testing IP 66.175.220.24:
    Testing IP 66.175.220.25: 259.175
    Testing IP 66.175.220.26: 334.925
    Testing IP 66.175.220.27:
    Testing IP 66.175.220.28: 444.197
    Testing IP 66.175.220.29:
    Testing IP 66.175.220.30:
    Testing IP 66.175.220.31:
    Testing IP 66.175.220.32:
    Testing IP 66.175.220.33:
    Testing IP 66.175.220.34:
    Testing IP 66.175.220.35: 423.079
    Testing IP 66.175.220.36:
    Testing IP 66.175.220.37: 249.344
    Testing IP 66.175.220.38:
    Testing IP 66.175.220.39:
    Testing IP 66.175.220.40:
    Testing IP 66.175.220.41: 231.555
    Testing IP 66.175.220.42:
    Testing IP 66.175.220.43:
    Testing IP 66.175.220.44: 317.036
    Testing IP 66.175.220.45: 357.253
    Testing IP 66.175.220.46:
    Testing IP 66.175.220.47: 310.826
    Testing IP 66.175.220.48: 239.708
    Testing IP 66.175.220.49: 247.442
    Testing IP 66.175.220.50:
    Testing IP 66.175.220.51: 255.773
    Testing IP 66.175.220.52: 367.256
    Testing IP 66.175.220.53:
    Testing IP 66.175.220.54: 345.460
    Testing IP 66.175.220.55:
    Testing IP 66.175.220.56: 246.230
    Testing IP 66.175.220.57:
    Testing IP 66.175.220.58:
    Testing IP 66.175.220.59:
    Testing IP 66.175.220.60: 252.671
    Testing IP 66.175.220.61:
    Testing IP 66.175.220.62: 336.823
    Testing IP 66.175.220.63: 210.069
    Testing IP 66.175.220.64:
    Testing IP 66.175.220.65: 311.617
    Testing IP 66.175.220.66:
    Testing IP 66.175.220.67: 215.616
    Testing IP 66.175.220.68:
    Testing IP 66.175.220.69:
    Testing IP 66.175.220.70: 350.335
    Testing IP 66.175.220.71:
    Testing IP 66.175.220.72:
    Testing IP 66.175.220.73: 323.049
    Testing IP 66.175.220.74:
    Testing IP 66.175.220.75:
    Testing IP 66.175.220.76:
    Testing IP 66.175.220.77: 320.673
    Testing IP 66.175.220.78: 339.563
    Testing IP 66.175.220.79:
    Testing IP 66.175.220.80:
    Testing IP 66.175.220.81: 282.430
    Testing IP 66.175.220.82:
    Testing IP 66.175.220.83:
    Testing IP 66.175.220.84: 207.181
    Testing IP 66.175.220.85: 303.436
    Testing IP 66.175.220.86:
    Testing IP 66.175.220.87: 336.358
    Testing IP 66.175.220.88: 277.881
    Testing IP 66.175.220.89: 272.870
    Testing IP 66.175.220.90: 348.501
    Testing IP 66.175.220.91: 245.154
    Testing IP 66.175.220.92: 245.027
    Testing IP 66.175.220.93: 343.189
    Testing IP 66.175.220.94:
    Testing IP 66.175.220.95: 330.420
    Testing IP 66.175.220.96: 202.352
    Testing IP 66.175.220.97: 208.631
    Testing IP 66.175.220.98: 301.230
    Testing IP 66.175.220.99:
    Testing IP 66.175.220.100:
    Testing IP 66.175.220.101: 386.034
    Testing IP 66.175.220.102:
    Testing IP 66.175.220.103: 306.361
    Testing IP 66.175.220.104:
    Testing IP 66.175.220.105:
    Testing IP 66.175.220.106: 217.100
    Testing IP 66.175.220.107: 305.387
    Testing IP 66.175.220.108: 443.604
    Testing IP 66.175.220.109:
    Testing IP 66.175.220.110: 309.861
    Testing IP 66.175.220.111: 214.972
    Testing IP 66.175.220.112:
    Testing IP 66.175.220.113: 214.996
    Testing IP 66.175.220.114: 349.256
    Testing IP 66.175.220.115: 276.696
    Testing IP 66.175.220.116:
    Testing IP 66.175.220.117:
    Testing IP 66.175.220.118: 254.546
    Testing IP 66.175.220.119:
    Testing IP 66.175.220.120:
    Testing IP 66.175.220.121: 301.143
    Testing IP 66.175.220.122: 347.585
    Testing IP 66.175.220.123:
    Testing IP 66.175.220.124:
    Testing IP 66.175.220.125: 362.781
    Testing IP 66.175.220.126:
    Testing IP 66.175.220.127: 307.898
    Testing IP 66.175.220.128: 321.672
    Testing IP 66.175.220.129:
    Testing IP 66.175.220.130: 345.064
    Testing IP 66.175.220.131: 331.336
    Testing IP 66.175.220.132:
    Testing IP 66.175.220.133:
    Testing IP 66.175.220.134: 192.929
    Testing IP 66.175.220.135: 206.380
    Testing IP 66.175.220.136: 229.729
    Testing IP 66.175.220.137: 373.522
    Testing IP 66.175.220.138: 314.860
    Testing IP 66.175.220.139: 345.689
    Testing IP 66.175.220.140: 323.088
    Testing IP 66.175.220.141: 205.071
    Testing IP 66.175.220.142: 345.063
    Testing IP 66.175.220.143: 319.029
    Testing IP 66.175.220.144:
    Testing IP 66.175.220.145:
    Testing IP 66.175.220.146: 219.923
    Testing IP 66.175.220.147:
    Testing IP 66.175.220.148:
    Testing IP 66.175.220.149: 288.059
    Testing IP 66.175.220.150: 303.464
    Testing IP 66.175.220.151: 325.532
    Testing IP 66.175.220.152: 326.305
    Testing IP 66.175.220.153: 228.725
    Testing IP 66.175.220.154: 300.311
    Testing IP 66.175.220.155:
    Testing IP 66.175.220.156: 324.838
    Testing IP 66.175.220.157: 342.207
    Testing IP 66.175.220.158: 227.537
    Testing IP 66.175.220.159: 209.218
    Testing IP 66.175.220.160: 227.179
    Testing IP 66.175.220.161:
    Testing IP 66.175.220.162: 182.349
    Testing IP 66.175.220.163: 349.615
    Testing IP 66.175.220.164: 327.048
    Testing IP 66.175.220.165: 310.297
    Testing IP 66.175.220.166:
    Testing IP 66.175.220.167:
    Testing IP 66.175.220.168:
    Testing IP 66.175.220.169:
    Testing IP 66.175.220.170: 315.792
    结论:跟之前一样,超级不稳定

    ===================
    附加数据第二段:从阿里云杭州 Ping Akamai
    Testing IP 23.1.16.7: 290.120
    Testing IP 23.1.16.8: 246.074
    Testing IP 23.1.16.9: 267.543
    Testing IP 23.1.16.10: 303.727
    Testing IP 23.1.16.11: 245.109
    Testing IP 23.1.16.12: 241.743
    Testing IP 23.1.16.13: 236.406
    Testing IP 23.1.16.14: 267.781
    Testing IP 23.1.16.15: 273.738
    Testing IP 23.1.16.16: 251.275
    Testing IP 23.1.16.17: 279.994
    Testing IP 23.1.16.18: 223.747
    Testing IP 23.1.16.19: 243.895
    Testing IP 23.1.16.20: 241.098
    Testing IP 23.1.16.21: 234.139
    Testing IP 23.1.16.22: 244.338
    Testing IP 23.1.16.23: 248.133
    Testing IP 23.1.16.24: 237.822
    Testing IP 23.1.16.25: 250.244
    Testing IP 23.1.16.26: 236.823
    Testing IP 23.1.16.27: 249.914
    Testing IP 23.1.16.28: 248.926
    Testing IP 23.1.16.29: 231.477
    Testing IP 23.1.16.30: 245.928
    Testing IP 23.1.16.31: 251.030
    Testing IP 23.1.16.32: 343.138
    Testing IP 23.1.16.33: 240.133
    Testing IP 23.1.16.34: 244.928
    Testing IP 23.1.16.35: 280.967
    Testing IP 23.1.16.36: 262.600
    Testing IP 23.1.16.37: 255.228
    Testing IP 23.1.16.38: 231.082
    数据很稳定,又不像是国内的问题
    好了

    求问大家这个问题到底出在哪里
    9 条回复    2016-04-09 13:01:08 +08:00
    wy315700
        1
    wy315700  
       2016-04-09 09:46:59 +08:00 via Android
    qos
    shiji
        2
    shiji  
    OP
       2016-04-09 09:55:41 +08:00
    @wy315700 我觉得不是,你来说说你的理由?
    Sakura
        3
    Sakura  
       2016-04-09 10:06:58 +08:00 via Android
    动态路由
    oott123
        4
    oott123  
       2016-04-09 10:10:16 +08:00
    阴谋论:墙的随机劣化
    yexm0
        5
    yexm0  
       2016-04-09 10:20:29 +08:00 via Android
    墙的随机劣化的确有,不过应该不会去劣化 icmp 吧。
    shiji
        6
    shiji  
    OP
       2016-04-09 10:30:36 +08:00
    @oott123 这个我想过,目前来说只在涉及 Hurricane Electric 的时候才会出现这个问题,别的 ping 基本都稳定。我现在就去挑一个 DO 的 ip 段测测看
    @yexm0
    shiji
        7
    shiji  
    OP
       2016-04-09 10:44:14 +08:00
    @Sakura 嗯,我想到过,只是觉得既然是动态,也应该是风水轮流转,现在情况是 Ping 慢的过一段时间测也一样慢,快的一直快。
    chromee
        8
    chromee  
       2016-04-09 12:51:41 +08:00 via Android
    我的也是这样啊
    vmbox 的 vps 两个 IP 在一台上 延迟差 30ms
    Cloudee
        9
    Cloudee  
       2016-04-09 13:01:08 +08:00
    苹果的 NTP 服务器也是这样的,香港有四台,两台快两台慢,而且访问快组和慢组的路径都是不一样的。。。

    Host Loss% Snt Last Avg Best Wrst StDev
    1. xxx.xxx.xxx.xxx 0.0% 21 0.4 0.5 0.4 0.6 0.0
    2. xxx.xxx.xxx.xxx 0.0% 21 2.4 14.3 1.8 108.3 26.8
    3. 61.148.177.57 60.0% 21 1.8 2.2 1.6 4.4 0.8
    4. 124.65.56.233 0.0% 21 5.7 4.8 2.8 6.6 0.9
    5. 123.126.0.69 0.0% 21 4.6 4.1 2.3 6.2 0.9
    6. 219.158.108.242 0.0% 20 41.6 40.2 37.0 44.3 2.1
    7. 219.158.11.150 0.0% 20 115.5 118.2 113.2 121.2 2.4
    8. 219.158.97.30 5.0% 20 181.1 172.0 147.1 181.8 7.9
    9. 219.158.97.254 0.0% 20 150.4 151.1 121.8 210.7 21.3
    10. 219.158.41.14 10.0% 20 121.4 119.7 112.3 128.3 3.8
    11. 17.0.177.9 0.0% 20 120.0 120.6 112.5 124.1 2.9
    12. 17.253.84.9 10.0% 20 117.5 122.1 116.9 126.3 3.0
    13. 17.253.84.251 0.0% 20 115.9 120.2 112.6 123.7 3.0




    Host Loss% Snt Last Avg Best Wrst StDev
    1. xxx.xxx.xxx.xxx 0.0% 24 0.6 0.5 0.4 0.7 0.0
    2. xxx.xxx.xxx.xxx 0.0% 24 2.0 5.4 1.7 57.6 11.5
    3. 61.148.177.57 75.0% 24 1.5 6.8 1.5 31.6 12.2
    4. 123.126.7.61 0.0% 24 3.7 3.9 1.6 5.8 1.1
    5. 123.126.0.81 0.0% 24 3.5 4.5 2.8 6.4 1.0
    6. 219.158.15.38 0.0% 24 34.3 34.3 33.9 36.0 0.4
    7. 219.158.4.254 0.0% 24 35.0 35.0 34.7 35.5 0.0
    8. 219.158.97.30 0.0% 24 100.4 96.2 78.9 100.5 5.4
    9. 219.158.97.254 0.0% 24 42.5 43.1 40.4 52.3 2.3
    10. 219.158.41.10 4.3% 24 98.6 98.2 83.0 104.9 5.1
    11. 17.0.177.9 0.0% 23 38.3 38.3 38.1 38.5 0.0
    12. 17.253.84.9 0.0% 23 42.0 42.0 41.7 42.7 0.0
    13. 17.253.84.253 0.0% 23 39.5 39.5 39.2 40.1 0.0
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   1640 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 16:53 · PVG 00:53 · LAX 08:53 · JFK 11:53
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.