WEBVTT

1
00:00:00.300 --> 00:00:03.000
Does a VPN slow down your internet?

2
00:00:03.020 --> 00:00:06.680
We timed 350 transfers on a test computer,

3
00:00:06.700 --> 00:00:09.310
half through our tunnel and half without it.

4
00:00:09.720 --> 00:00:11.460
First cost: bytes.

5
00:00:11.480 --> 00:00:15.870
Our tunnel takes 84 bytes of room in every full 1,500-byte

6
00:00:15.880 --> 00:00:17.870
packet. On our test link,

7
00:00:17.890 --> 00:00:19.790
limited to 100 megabits,

8
00:00:19.800 --> 00:00:21.870
that took about 4 percent:

9
00:00:21.890 --> 00:00:24.430
95.4 without the tunnel,

10
00:00:24.450 --> 00:00:26.280
91.2 with it.

11
00:00:26.700 --> 00:00:28.760
Second cost: work.

12
00:00:28.780 --> 00:00:33.320
On our test computer the tunnel added a median 0.3 milliseconds

13
00:00:33.340 --> 00:00:34.920
to an idle ping.

14
00:00:34.940 --> 00:00:37.240
There, only a very fast,

15
00:00:37.260 --> 00:00:40.280
very short link made the processor the limit:

16
00:00:40.300 --> 00:00:44.840
4,395 megabits through our engine's one thread,

17
00:00:44.860 --> 00:00:48.080
against 6,161 without it.

18
00:00:52.100 --> 00:00:54.160
Third cost: the detour.

19
00:00:54.180 --> 00:00:57.520
Light in fibre needs about a millisecond of round trip for

20
00:00:57.540 --> 00:00:59.360
every hundred kilometres.

21
00:00:59.380 --> 00:01:04.160
Put the site next door and the VPN server 2,000 kilometres

22
00:01:04.180 --> 00:01:08.320
away, and each round trip covers 8,000 kilometres:

23
00:01:08.340 --> 00:01:11.900
about 39 milliseconds before anything else happens.

24
00:01:12.320 --> 00:01:15.420
Distance hurts most when packets get lost.

25
00:01:15.440 --> 00:01:18.060
With one packet in a thousand lost,

26
00:01:18.080 --> 00:01:22.460
the same download fell from 77 megabits at a 5 millisecond

27
00:01:22.480 --> 00:01:24.780
round trip to 15 at 50.

28
00:01:24.800 --> 00:01:28.320
Through the tunnel it fell from 72 to 14.

29
00:01:34.540 --> 00:01:37.080
If your ping jumps while something downloads,

30
00:01:37.100 --> 00:01:39.960
look at the queue in front of your slowest link.

31
00:01:39.980 --> 00:01:41.320
On our test link,

32
00:01:41.340 --> 00:01:45.240
ping went from about 7 to about 55 milliseconds during a

33
00:01:45.260 --> 00:01:47.840
download, with or without the tunnel.

34
00:01:48.260 --> 00:01:49.440
Where we lost:

35
00:01:49.460 --> 00:01:52.000
during a full-speed transfer on a fast,

36
00:01:52.020 --> 00:01:55.760
short link, our tunnel's own queue adds a few milliseconds more

37
00:01:55.780 --> 00:01:58.080
than the Linux kernel's WireGuard.

38
00:01:58.100 --> 00:01:59.930
We haven't worked out why.

39
00:02:00.350 --> 00:02:02.250
So pick a location near you,

40
00:02:02.270 --> 00:02:06.010
check your router's processor if the VPN runs on it,

41
00:02:06.030 --> 00:02:08.250
and blame the queue before the tunnel.

