WEBVTT

1
00:00:00.300 --> 00:00:01.800
On the first of November,

2
00:00:01.820 --> 00:00:05.000
one of our Android phones tried a direct path to our

3
00:00:05.020 --> 00:00:08.440
Mac six times in just over four minutes.

4
00:00:08.460 --> 00:00:11.250
Every packet still went through a relay.

5
00:00:11.670 --> 00:00:14.850
A home router lets a packet in only when it matches

6
00:00:14.870 --> 00:00:16.450
something that went out.

7
00:00:16.470 --> 00:00:20.530
That's why two devices in two different homes can't simply call

8
00:00:20.550 --> 00:00:21.400
each other.

9
00:00:21.820 --> 00:00:25.560
So each device first asks a server what address and port

10
00:00:25.580 --> 00:00:27.080
its router gave it.

11
00:00:27.100 --> 00:00:30.050
The two devices swap those addresses.

12
00:00:30.480 --> 00:00:32.530
Then both send at once.

13
00:00:32.550 --> 00:00:35.890
The first packet usually dies at the far router,

14
00:00:35.910 --> 00:00:38.450
but it opens the sender's own router.

15
00:00:38.480 --> 00:00:41.570
The other side's packet arrives as a reply,

16
00:00:41.590 --> 00:00:43.410
and the path is open.

17
00:00:43.440 --> 00:00:44.860
That's the punch.

18
00:00:45.280 --> 00:00:48.700
Some routers pick a new port for every destination.

19
00:00:48.720 --> 00:00:51.500
Then the port you were told is already wrong.

20
00:00:51.520 --> 00:00:52.780
In our tests,

21
00:00:52.800 --> 00:00:56.140
two cone routers went direct within five seconds,

22
00:00:56.160 --> 00:00:58.620
and two symmetric ones never did.

23
00:00:58.640 --> 00:01:00.380
The relay carried them.

24
00:01:00.800 --> 00:01:03.660
Our two devices were on the same Wi-Fi,

25
00:01:03.680 --> 00:01:06.300
and the phone's probe got its answer.

26
00:01:06.320 --> 00:01:09.180
But the Mac kept replying through the relay,

27
00:01:09.200 --> 00:01:12.540
and the phone saw no data on the direct path.

28
00:01:12.560 --> 00:01:13.900
It gave up.

29
00:01:13.920 --> 00:01:15.180
Six times.

30
00:01:15.200 --> 00:01:17.940
We still can't say why the Mac did that.

31
00:01:18.360 --> 00:01:21.220
So now every pair starts on the relay.

32
00:01:21.240 --> 00:01:26.020
A direct path wins only after real tunnel data crosses it.

33
00:01:26.040 --> 00:01:29.780
A packet that decrypts from a new address teaches the receiver

34
00:01:29.800 --> 00:01:30.820
that address.

35
00:01:30.840 --> 00:01:33.460
And when the direct path goes quiet,

36
00:01:33.480 --> 00:01:37.350
each packet goes out on both paths until one answers.

37
00:01:37.770 --> 00:01:39.670
A relay costs time.

38
00:01:39.690 --> 00:01:43.590
In our test network it added about twenty-two milliseconds.

39
00:01:43.610 --> 00:01:46.620
Between two of our phones on one Wi-Fi,

40
00:01:46.640 --> 00:01:49.670
a round trip through the relay took about a third of

41
00:01:49.690 --> 00:01:50.570
a second.

42
00:01:50.990 --> 00:01:55.210
And two phones on one Wi-Fi going direct is something we

43
00:01:55.230 --> 00:01:56.640
haven't proven yet.

