lantern icon indicating copy to clipboard operation
lantern copied to clipboard

Packet loss still extremely high

Open quantum1423 opened this issue 10 years ago • 1 comments

The issue in #4344 seems to still be a problem even though my configuration now uses a server in California:

                                                     My traceroute  [v0.85]
maverick (0.0.0.0)                                                                                     Sun May 29 07:38:21 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%    80    1.0   1.4   0.6   8.6   1.0
 2. localhost                                                                         0.0%    80    1.4   1.7   1.1   8.1   1.1
 3. 123.121.128.1                                                                     0.0%    80   25.7  11.1   2.5 122.3  22.2
 4. 61.148.185.13                                                                     0.0%    80    3.4   5.1   2.5  38.6   4.0
 5. 61.148.156.153                                                                    0.0%    80    3.0   5.2   2.6  15.8   2.1
 6. 124.65.194.25                                                                     0.0%    80    4.3   6.3   2.6  66.2   6.9
 7. 219.158.7.18                                                                      0.0%    80   36.0  38.3  35.3 101.0   9.7
 8. 219.158.103.42                                                                    6.2%    80   38.3  39.7  34.1  65.5   4.4
 9. 219.158.103.38                                                                    0.0%    80   40.8  42.9  37.8  51.6   3.0
10. 219.158.102.194                                                                  81.0%    80  293.7 301.1 291.4 318.5   9.7
11. sjo-b21-link.telia.net                                                           71.8%    79  312.4 314.4 309.0 320.0   3.1
12. digitalocean-ic-306499-sjo-b21.c.telia.net                                       79.5%    79  316.4 314.4 306.1 336.2   6.4
13. 198.199.99.242                                                                   81.0%    79  317.3 318.4 313.0 325.9   3.5
14. production.ap.xxxxx.boostgram.com                                               74.4%    79  316.8 316.9 312.4 322.3   2.4

(I suppose the boostgram.com reference is due to a stale reverse-DNS record from the IP's previous owner?)

These packet-loss events seem to be clearly targeted towards Lantern, although DigitalOcean SFO's test server shows similar patterns. However, I do run a server with DigitalOcean in California, and before my Lantern config was switched to DO, it was very fast from China. Now, it experiences similar packet loss.

I am not actually certain that this is a nation-wide phenomenon. I do notice that if I repeatedly open TLS connections on port 443 to a particular server almost exclusively over a few hours, eventually some sort of bad packet loss starts happening. I noticed that with my Linode server, implementing a Lantern-like protocol where each tunneled connection opens a TLS connection on port 443 shows a similar failure pattern with Lantern: really bad packet loss after a few hours that subsides after I stop using the tunnel for a while. However, a long-running SSH connection, or connections obfuscated with something like ScrambleSuit or even obfs3, do not cause throttling.

This is probably to annoy GFW evaders, as one characteristic is that almost all of their traffic would be TLS to one single server. Domain fronting seems strangely to not cause packet loss to CloudFront; perhaps CloudFront etc are whitelisted?

I see that there is a ScrambleSuit option hiding in Lantern. Are there any plans to make it usable / on by default?

quantum1423 avatar May 29 '16 00:05 quantum1423

Thanks @quantum1423 and sorry for the delay. We actually have obfs4 integrated with Lantern but not yet turned on. Might be a good time to start playing with it @oxtoacart?

myleshorton avatar Jun 07 '16 16:06 myleshorton