Extremely high packet loss from Beijing, China
Here is the output of mtr from Beijing, China:
My traceroute [v0.85]
maverick (0.0.0.0) Fri May 20 08:05:07 2016
Keys: Help Display mode Restart statistics Order of fields quit
Packets Pings
Host Loss% Snt Last Avg Best Wrst StDev
1. localhost 32.2% 453 1.0 4.8 0.6 178.9 17.3
2. localhost 0.0% 452 2.0 6.0 0.9 138.4 14.7
3. 123.121.112.1 0.0% 452 6.0 22.2 3.2 196.0 31.7
4. 61.148.185.13 0.0% 452 3.9 9.2 1.7 204.3 16.0
5. 61.51.112.245 0.0% 452 6.5 10.6 2.4 276.1 20.4
6. 61.148.152.138 0.2% 452 6.4 9.8 2.7 221.2 16.7
7. 202.96.12.13 0.9% 452 5.1 10.1 2.8 366.8 21.4
8. 219.158.4.194 0.4% 452 6.6 12.2 4.1 375.8 21.5
9. 219.158.97.238 0.4% 452 7.6 10.8 3.9 358.2 20.7
10. 219.158.34.154 52.4% 452 173.9 179.7 91.1 339.2 21.4
11. ae-5.r23.osakjp02.jp.bb.gin.ntt.net 52.9% 452 164.1 177.3 99.1 292.6 20.2
ae-5.r22.osakjp02.jp.bb.gin.ntt.net
12. ae-5.r31.tokyjp05.jp.bb.gin.ntt.net 49.1% 452 161.3 164.8 99.8 247.2 11.4
ae-5.r30.tokyjp05.jp.bb.gin.ntt.net
13. ae-17.r01.tokyjp05.jp.bb.gin.ntt.net 50.6% 452 161.9 163.3 106.7 216.1 8.9
ae-16.r01.tokyjp05.jp.bb.gin.ntt.net
14. xe-0-6-0-21.r01.tokyjp05.jp.ce.gin.ntt. 50.2% 452 162.3 170.5 118.2 331.2 25.6
15. ???
16. 104.238.151.---.vultr.com 47.5% 452 161.9 164.4 126.6 253.4 12.1
(I've hidden the IP address of the Lantern server in case that's an issue)
As you can see, the latency is okay for Beijing -> Japan (although you can usually get well below 100ms with a better-connected server, like Amazon EC2 or Linode). However, packet loss is terrible.
The node where the packet loss starts, 219.158.34.154, is in China Unicom's autonomous network, and the number is suspiciously close to exactly 50%. This makes me suspect that China is purposefully making Lantern's server very slow by dropping half of the packets.
I've done (mostly unpublished, though) research into China's firewall, and rerouting traffic to "annoy routers" like 219.158.34.154 used to a be a frequently employed technique to slow down sites like Google at random intervals in order to deter people from using it. (Google eventually got totally blocked, though.)
This might be even worse for Lantern, since any sort of connectivity prevents Lantern from switching to other proxying methods, like domain fronting, or at least switching to other chained proxies. Currently I use a pure domain-fronting setup I made myself (see https://github.com/ProjectNiwl/warpfront/tree/master/wf_test_client), going through Beijing -> CloudFront Tokyo edge -> EC2 Tokyo server, and it's reasonably fast (~150ms end-to-end latency) and unblockable. Shouldn't chained proxies aim to be even faster due to the sacrifice in censorship resistance?
Well, 15 mins later the packet loss has subsided a bit, but it definitely seems like there are shenanigans.
Today the Lantern stopped work for me, I'm in BJ as well, are you facing the same?
It does work for me if I wait long enough. But it's so annoying I've ended up using my own experimental domain fronting system, as I said.
我也在北京,但並不是完全不能使用,只是特別慢。我現在只能使我自己開發的翻牆系統了。
我是留学生,所以说中文不太好。你可以告诉我几个比较好的VPN或者PROXY? 还是怎么我可以上网到Google
What is your native language? Do you speak English or Chinese better? I'm fluent in both, and honestly I can't say which one I prefer. To answer your question, Lantern does work as of right now. It's just not reliable throughout the day.
你的母語是什麼?你更願意講英文還是中文?(我兩個都差不多好。看你開始說英文不好,所以我加上中文,但後來你說「中文不太好」?)
lantern目前應該是可以用的,只是比較慢。速度並不是什麼時候都慢得不能使用。
My native is Russian, but English will be better ofc. Thank you. 我已经学习汉语八月。
Ah, I assumed that you must be a Chinese speaker. Sorry for the confusion!
I am actually working on a system somewhat similar to Lantern but more heavily relying on domain fronting, which should be much, much harder to block or disrupt. I hope that I can get it finished before I leave China in late July.
In any case we probably shouldn't be spamming the Lantern issue page with this discussion.
@quantum1423 No, this is a very great discussion. @myleshorton we should run some measurement from China to determine whether the packet dropping is intentional blocking
@quantum1423 @altsab Also, if you want to discuss privately, please email me at Percyalpha(gmail)
ShangHai has the probelm too,what the fuck of Chinese government
www.vpnso.comhttp://www.vpnso.com
On May 20, 2016, at 11:51 AM, Alt Sab <[email protected]mailto:[email protected]> wrote:
我是留学生,所以说中文不太好。你可以告诉我几个比较好的VPN或者PROXY? 还是怎么我可以上网到Google
— You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHubhttps://github.com/getlantern/lantern/issues/4344#issuecomment-220511062
@quantum1423 I wonder if it's caused by network collision at international exits, instead of throttling specifically targeting Lantern servers. Next time when you experience high packet loss, maybe have a speed test at https://www.vultr.com/faq/#downloadspeedtests, and compare the packet loss rate.
@fffw This seems to be very unlikely: connections to other servers in Tokyo at the exact moment never show such high packet losses. Next time I may test Vultr's Tokyo demonstration server if I see more bad packet loss.
In any case, though, Vultr seems to have significantly inferior routes to China compared to Amazon EC2 and Linode. Perhaps the Lantern developers could consider moving away from it? Not all ISPs in Tokyo offer good routes to China; in fact I recall once renting a Tokyo VPS only to have China traffic routed through California! Here is Vultr compared with Linode and EC2:
Vultr:
My traceroute [v0.85]
maverick (0.0.0.0) Fri May 20 13:41:24 2016
Keys: Help Display mode Restart statistics Order of fields quit
Packets Pings
Host Loss% Snt Last Avg Best Wrst StDev
1. localhost 0.0% 55 1.0 2.2 0.8 21.5 2.9
2. localhost 0.0% 54 1.7 2.5 1.1 9.2 1.7
3. 123.121.112.1 0.0% 54 4.1 15.0 3.5 90.1 22.8
4. 61.148.185.229 0.0% 54 3.0 4.6 1.7 66.2 8.8
5. 124.65.62.193 0.0% 54 4.5 8.8 3.3 132.4 17.3
6. 202.96.12.77 0.0% 54 5.1 8.0 3.1 69.3 9.2
7. 219.158.4.166 0.0% 54 6.9 8.6 5.2 21.6 2.7
8. 219.158.101.66 0.0% 54 5.8 7.2 4.7 12.0 1.6
9. p64-7-0-2.r21.osakjp02.jp.bb.gin.ntt.net 9.3% 54 83.8 84.5 80.3 120.5 7.6
10. ae-5.r22.osakjp02.jp.bb.gin.ntt.net 13.0% 54 91.5 80.6 72.3 101.5 6.6
ae-5.r23.osakjp02.jp.bb.gin.ntt.net
11. ae-5.r30.tokyjp05.jp.bb.gin.ntt.net 0.0% 54 128.0 136.6 121.2 146.2 5.7
ae-5.r31.tokyjp05.jp.bb.gin.ntt.net
12. ae-17.r01.tokyjp05.jp.bb.gin.ntt.net 0.0% 54 91.3 114.6 69.5 151.5 29.4
ae-16.r01.tokyjp05.jp.bb.gin.ntt.net
13. xe-0-6-0-21.r01.tokyjp05.jp.ce.gin.ntt.net 0.0% 54 195.0 175.4 130.9 891.3 106.2
14. ???
15. 108.61.201.151.vultr.com 0.0% 54 142.6 137.9 128.1 152.6 4.6
Linode:
My traceroute [v0.85]
maverick (0.0.0.0) Fri May 20 13:42:02 2016
Keys: Help Display mode Restart statistics Order of fields quit
Packets Pings
Host Loss% Snt Last Avg Best Wrst StDev
1. localhost 0.0% 6 1.4 1.8 1.0 3.4 0.6
2. localhost 0.0% 6 2.0 1.8 1.1 3.9 0.9
3. 123.121.112.1 0.0% 6 44.4 14.5 3.5 44.4 17.1
4. 123.126.29.133 0.0% 6 2.4 2.7 2.1 3.7 0.0
5. 124.65.61.181 0.0% 6 8.0 7.1 4.4 8.8 1.7
6. 61.51.112.105 0.0% 6 5.5 6.1 4.6 8.2 1.3
7. 219.158.3.134 0.0% 6 15.0 9.1 5.6 15.0 3.4
8. 219.158.3.134 0.0% 6 5.4 8.1 5.4 10.6 1.6
9. 219.158.38.54 0.0% 6 48.3 49.8 47.4 53.6 2.5
10. 219.158.38.54 0.0% 6 47.9 49.3 47.3 52.8 2.3
11. cm-fcu204.kddnet.ad.jp 0.0% 5 50.3 54.4 49.6 59.5 4.3
12. cm-fcu204.kddnet.ad.jp 0.0% 5 58.5 55.5 50.1 58.5 3.3
13. speedtest.tokyo.linode.com 0.0% 5 53.6 52.4 50.0 54.2 1.5
EC2 (my own extremely cheap t2.nano server):
My traceroute [v0.85]
maverick (0.0.0.0) Fri May 20 13:42:23 2016
Resolver: Received error response 2. (server failure)er of fields quit
Packets Pings
Host Loss% Snt Last Avg Best Wrst StDev
1. localhost 0.0% 7 1.4 1.3 1.0 2.0 0.0
2. localhost 0.0% 7 1.2 3.9 1.2 15.8 5.3
3. 123.121.112.1 0.0% 6 4.4 20.8 4.0 40.6 17.8
4. 123.126.29.133 0.0% 6 2.3 3.9 2.3 6.5 1.6
5. 124.65.61.197 0.0% 6 6.0 6.7 5.0 8.2 1.1
6. 124.65.194.1 0.0% 6 8.7 8.2 4.8 13.0 2.8
7. 219.158.19.226 0.0% 6 37.6 36.5 35.5 38.2 0.9
8. 219.158.103.42 16.7% 6 35.9 42.4 35.9 47.5 4.4
9. 219.158.103.30 0.0% 6 45.6 44.2 41.3 48.4 2.4
10. 203.181.111.45 40.0% 6 74.6 72.4 68.6 74.6 3.2
11. otejbb205.int-gw.kddi.ne.jp 20.0% 6 71.1 71.1 69.1 74.6 2.4
12. jc-ote301.int-gw.kddi.ne.jp 16.7% 6 69.8 70.1 68.5 71.9 1.0
13. 106.187.28.90 0.0% 6 168.9 169.6 168.3 170.7 0.6
14. 52.95.30.181 0.0% 6 81.1 92.1 80.4 140.5 23.8
15. 52.95.30.132 0.0% 6 77.5 78.4 76.7 82.2 2.0
16. 27.0.0.155 0.0% 6 77.8 79.1 77.8 82.7 1.7
17. ec2-54-199-xxx-xxx.ap-northeast-1.compute.amazonaws.com 0.0% 6 77.6 79.4 77.0 83.1 2.1
Linode seems to be by far the best choice, and I can confirm that hosting with Linode in Japan is actually quite popular with Chinese webmasters wishing to avoid red tape when hosting a website for Chinese users.
For a measurement platform, having at least one mobile, one Unicom, and one school-network location is probably necessary. Although the Great Firewall blacklists are identical and the ISPs use the same infrastructure, routes to specific foreign ASs can be extremely divergent. Putting a "spy" in the school network is notoriously hard, but PlanetLab does have multiple locations in Chinese universities. I may be able to contribute data if needed, as I can easily obtain access to PlanetLab nodes through my university.
(Note: intermediate routers showing higher latencies on traceroute than the destination is a consistent feature of some traceroutes out of China. I'm not yet certain why this is the case.)
Thanks @quantum1423! It's of great help. cc @aranhoide @myleshorton
The packet loss is happening again. I see similar behavior to Vultr's test server though:
Lantern:
My traceroute [v0.85]
maverick (0.0.0.0) Sat May 21 07:22:09 2016
Keys: Help Display mode Restart statistics Order of fields quit
Packets Pings
Host Loss% Snt Last Avg Best Wrst StDev
1. localhost 77.9% 87 1.1 2.0 1.0 4.2 0.7
2. localhost 0.0% 87 1.8 2.1 1.0 16.3 1.7
3. 123.121.112.1 0.0% 87 36.0 20.6 3.1 115.6 24.7
4. 61.148.185.13 0.0% 87 5.7 6.6 1.9 69.5 7.5
5. 61.51.112.245 0.0% 87 2.9 6.5 2.5 47.2 4.8
6. 61.148.152.138 0.0% 87 3.6 7.5 2.9 46.4 6.2
7. 202.96.12.13 0.0% 87 5.5 7.1 3.0 40.8 5.2
8. 219.158.4.194 0.0% 87 7.3 8.8 4.2 50.4 6.2
9. 219.158.97.238 0.0% 87 7.8 8.6 4.0 57.6 7.7
10. 219.158.34.154 44.2% 87 173.7 169.6 85.5 252.7 34.7
11. ae-5.r23.osakjp02.jp.bb.gin.ntt.net 40.7% 86 173.9 157.9 71.0 202.4 30.8
ae-5.r22.osakjp02.jp.bb.gin.ntt.net
12. ae-5.r31.tokyjp05.jp.bb.gin.ntt.net 38.8% 86 161.3 148.9 61.6 168.3 28.8
ae-5.r30.tokyjp05.jp.bb.gin.ntt.net
13. ae-17.r01.tokyjp05.jp.bb.gin.ntt.net 37.2% 86 164.0 153.1 60.5 251.1 33.9
ae-16.r01.tokyjp05.jp.bb.gin.ntt.net
14. xe-0-6-0-21.r01.tokyjp05.jp.ce.gin.ntt.net 41.9% 86 233.0 171.4 60.2 258.6 46.0
15. ???
16. 104.238.xxx.xxx.vultr.com 36.0% 86 161.1 151.9 66.4 260.7 30.9
Vultr:
My traceroute [v0.85]
maverick (0.0.0.0) Sat May 21 07:22:10 2016
Keys: Help Display mode Restart statistics Order of fields quit
Packets Pings
Host Loss% Snt Last Avg Best Wrst StDev
1. localhost 0.0% 73 2.6 2.7 0.8 85.0 9.8
2. localhost 0.0% 73 1.3 2.3 1.0 20.6 2.4
3. 123.121.112.1 0.0% 73 52.2 19.8 3.1 160.1 30.0
4. 61.148.185.229 0.0% 73 2.2 5.2 1.5 87.0 10.7
5. 124.65.62.193 0.0% 73 9.4 6.3 3.0 30.4 3.6
6. 202.96.12.77 0.0% 73 5.3 7.0 2.9 51.4 5.7
7. 219.158.4.166 1.4% 72 6.6 19.5 4.4 79.2 21.4
8. 219.158.101.66 2.8% 72 7.1 17.1 4.1 70.8 18.8
9. p64-7-0-2.r21.osakjp02.jp.bb.gin.ntt.net 54.2% 72 235.7 188.4 145.9 245.5 21.8
10. ae-5.r23.osakjp02.jp.bb.gin.ntt.net 46.5% 72 239.3 196.1 140.5 335.9 31.0
ae-5.r22.osakjp02.jp.bb.gin.ntt.net
11. ae-5.r31.tokyjp05.jp.bb.gin.ntt.net 49.3% 72 171.6 173.8 132.0 261.9 21.5
ae-5.r30.tokyjp05.jp.bb.gin.ntt.net
12. ae-17.r01.tokyjp05.jp.bb.gin.ntt.net 38.9% 72 170.8 178.0 123.5 232.9 24.2
ae-16.r01.tokyjp05.jp.bb.gin.ntt.net
13. xe-0-6-0-21.r01.tokyjp05.jp.ce.gin.ntt.net 42.3% 72 171.0 199.4 121.5 314.7 44.8
14. ???
15. 108.61.201.151.vultr.com 43.7% 72 170.2 177.0 105.9 232.6 23.7
It might be congestion, or it might be targeted throttling, considering Vultr isn't used very often to host popular websites and is probably much more full of things like Tor nodes and VPN services.
Other Japan things do not have packet loss issues:
EC2:
My traceroute [v0.85]
maverick (0.0.0.0) Sat May 21 07:24:32 2016
Keys: Help Display mode Restart statistics Order of fields quit
Packets Pings
Host Loss% Snt Last Avg Best Wrst StDev
.....
16. ec2-54-199-xxx-xxx.ap-northeast-1.compute.amazonaws.com 0.0% 4 81.2 80.0 79.0 81.2 0.8
Linode:
My traceroute [v0.85]
maverick (0.0.0.0) Sat May 21 07:24:52 2016
Keys: Help Display mode Restart statistics Order of fields quit
Packets Pings
Host Loss% Snt Last Avg Best Wrst StDev
.....
13. speedtest.tokyo.linode.com 0.0% 3 49.2 49.7 49.2 50.2 0.0
Nicovideo.jp:
My traceroute [v0.85]
maverick (0.0.0.0) Sat May 21 07:26:32 2016
Keys: Help Display mode Restart statistics Order of fields quit
Packets Pings
Host Loss% Snt Last Avg Best Wrst StDev
.....
9. 219.158.38.178 0.0% 2 65.0 56.9 48.8 65.0 11.4
10. ae-0.r30.tokyjp05.jp.bb.gin.ntt.net 0.0% 2 50.8 50.1 49.4 50.8 0.0
11. ae-20.r00.tokyjp01.jp.bb.gin.ntt.net 0.0% 2 49.3 49.5 49.3 49.8 0.0
12. xe-0-5-0-16.r00.tokyjp01.jp.ce.gin.ntt.net 0.0% 2 50.0 50.1 50.0 50.3 0.0
13. ???
Note in particular that nicovideo.jp goes through the same NTT network as the Vultr traffic but does not experience packet loss.
I think we can safely conclude that congestion in some backbone is almost certainly not what's happening. Either Vultr is getting throttled, perhaps due to to Lantern and other anti-blocking services, or Vultr has some serious issues connecting with China. It's not too unlikely that Lantern is being targeted, actually: perhaps the frequently-changing IP addresses of Lantern servers triggered throttling within the entire IP subnet.
By the way, Vultr in California does not show the same packet loss, and in fact has lower ping:
My traceroute [v0.85]
maverick (0.0.0.0) Sat May 21 07:34:48 2016
Keys: Help Display mode Restart statistics Order of fields quit
Packets Pings
Host Loss% Snt Last Avg Best Wrst StDev
.....
11. sl-st30-sj-.sprintlink.net 0.0% 5 316.4 306.7 291.2 316.4 11.2
12. ae10.sjc12.ip4.gtt.net 0.0% 5 165.6 164.3 163.0 165.6 1.2
13. xe-1-1-0.sjc20.ip4.gtt.net 0.0% 5 168.0 166.6 162.9 170.5 3.2
14. as20473.xe-1-2-3.cr1.sjc2.us.as4436.gtt.net 0.0% 4 165.3 165.0 162.9 166.2 1.4
15. ???
16. 104.156.230.107 0.0% 4 153.5 154.1 153.1 156.6 1.5
Mysteriously, today Vultr's Tokyo became much faster and California much slower. The routes did not change at all from yesterday:
Tokyo:
My traceroute [v0.85]
maverick (0.0.0.0) Mon May 23 08:51:28 2016
Keys: Help Display mode Restart statistics Order of fields quit
Packets Pings
Host Loss% Snt Last Avg Best Wrst StDev
...
10. 219.158.34.154 0.0% 19 75.1 75.2 71.8 90.4 4.2
11. ae-5.r23.osakjp02.jp.bb.gin.ntt.net 26.3% 19 65.6 79.4 63.8 126.8 17.9
ae-5.r22.osakjp02.jp.bb.gin.ntt.net
12. ae-5.r30.tokyjp05.jp.bb.gin.ntt.net 0.0% 19 87.0 88.9 59.9 135.3 23.8
ae-5.r31.tokyjp05.jp.bb.gin.ntt.net
13. ae-16.r01.tokyjp05.jp.bb.gin.ntt.net 0.0% 19 60.6 63.2 60.6 69.2 2.2
ae-17.r01.tokyjp05.jp.bb.gin.ntt.net
14. xe-0-6-0-21.r01.tokyjp05.jp.ce.gin.ntt.net 0.0% 18 61.2 89.9 60.7 141.1 31.7
15. ???
16. 104.238.xxx.xxx.vultr.com 0.0% 18 64.0 65.5 60.1 108.0 11.3
California:
My traceroute [v0.85]
maverick (0.0.0.0) Mon May 23 08:52:07 2016
Keys: Help Display mode Restart statistics Order of fields quit
Packets Pings
Host Loss% Snt Last Avg Best Wrst StDev
...
13. xe-1-1-2.sjc20.ip4.gtt.net 0.0% 3 305.7 307.8 305.1 312.7 4.1
14. as20473.xe-1-2-3.cr1.sjc2.us.as4436.gtt.net 0.0% 3 308.9 311.5 308.9 314.1 3.6
15. ???
16. 104.156.230.107 0.0% 3 228.6 228.6 228.6 228.7 0.0
This is obviously good for Lantern users, but I still am wondering what might have caused the disruptions over the last few days. Regardless, it seems like it would be a good idea to put servers in several different providers rather than everything in Vultr.
Ping has jumped back up to 120 ms.
@quantum1423 : thank you very much for all this! Totally agreed on the need for diversification. Working on it..
The server is currently totally inaccessible. Here is a traceroute:
My traceroute [v0.86]
kaz-chromebook (0.0.0.0) Wed May 25 16:32:02 2016
Keys: Help Display mode Restart statistics Order of fields quit
Packets Pings
Host Loss% Snt Last Avg Best Wrst StDev
1. localhost 0.0% 40 1.6 7.1 0.7 74.2 15.5
2. 123.121.112.1 0.0% 40 78.6 18.2 3.1 115.3 25.7
3. 61.148.185.13 0.0% 40 3.4 8.4 2.4 103.4 15.9
4. 124.65.61.145 0.0% 40 13.3 11.2 3.6 87.4 16.3
5. 61.148.153.49 0.0% 40 6.4 9.3 3.1 94.9 15.8
6. 202.96.12.73 0.0% 40 6.8 12.4 2.8 121.7 24.0
7. 219.158.101.54 0.0% 40 6.2 10.6 4.9 72.6 12.3
8. 219.158.97.238 0.0% 40 5.3 8.8 4.1 64.7 9.5
9. p64-7-0-2.r21.osakjp02.jp.bb.gin.ntt.net 0.0% 39 152.2 132.6 101.3 227.2 27.0
10. ae-5.r23.osakjp02.jp.bb.gin.ntt.net 5.1% 39 147.7 127.9 85.8 176.4 21.4
ae-5.r22.osakjp02.jp.bb.gin.ntt.net
11. ae-5.r31.tokyjp05.jp.bb.gin.ntt.net 0.0% 39 173.7 154.7 110.9 248.3 26.1
ae-5.r30.tokyjp05.jp.bb.gin.ntt.net
12. ae-5.r02.tokyjp03.jp.bb.gin.ntt.net 0.0% 39 145.1 147.1 108.9 227.3 30.2
ae-6.r02.tokyjp03.jp.bb.gin.ntt.net
13. ???
The packets seem to get blackholed in Japan. It does not look like blocking by China: in that case the traceroute would never leave China. Is the server down or misconfigured?
The server is 45.32.28.191; I don't think I need to hide it considering it's likely already not working.
It's closed incorrectly.