1 00:00:00,000 --> 00:00:08,660 Okay, so I'm Roger Dingledine from the Tor Project, and I'm going to tell you a little bit today about how Tor works and why the performance problems are what they are. 2 00:00:08,840 --> 00:00:17,800 And there are a lot of different things that we could talk about. I'm mostly going to focus on a crash course on Tor, just to give you the three-minute overview of what it is. 3 00:00:17,920 --> 00:00:25,420 And then I'm going to give you all sorts of problems that we've been trying to figure out. Why is it slow in this way? Why is it slow in that way? How can we improve it? 4 00:00:25,420 --> 00:00:35,320 So Tor is free software, open source. There are about 1,500 to 2,000 relays all around the world who are pushing traffic for a few hundred thousand users. 5 00:00:35,580 --> 00:00:42,920 It's hard to say for sure because it's an anonymity system. We've been working lately on how to actually count the number of users we have in a safe way. 6 00:00:43,060 --> 00:00:48,880 I'll talk about that in a little bit more later. One of the neat things about Tor is that it comes with a full specification and documentation, 7 00:00:49,540 --> 00:00:55,400 RFC style of this is how we built it, and these are the security properties we think we get, and here's why we think we get it. 8 00:00:56,740 --> 00:01:06,680 Another interesting point, a few years ago, Tor was just a couple of people working on development, and at the end of 2006, we turned into a real live U.S. non-profit, 501c3. 9 00:01:06,960 --> 00:01:15,200 There are now a little bit more than eight full-time people being funded to work on Tor, so that's pretty cool, and we've got a lot of neat things that we've been working on from that. 10 00:01:15,320 --> 00:01:21,880 So we started out funded by the U.S. Department of Defense, the Navy, and from there we were funded by the Electronic Frontier Foundation, 11 00:01:22,160 --> 00:01:25,400 so our claim to fame in that respect is that we're the only free software that we've ever built. 12 00:01:25,420 --> 00:01:29,380 We're the only free software privacy system to be funded both by the DOD and the EFF, 13 00:01:30,140 --> 00:01:37,500 and part of the fun of that is going to each of those different groups and trying to explain why they all need privacy, security, and so on. 14 00:01:38,320 --> 00:01:42,160 So when I'm talking to researchers, I tell them I'm working on an anonymity system, 15 00:01:42,300 --> 00:01:46,680 but when I'm talking to my parents and my grandparents, I tell them I'm working on a privacy system, 16 00:01:46,780 --> 00:01:50,560 because anonymity, I'm not sure about that, but privacy, yeah, that's good and wholesome, 17 00:01:50,660 --> 00:01:55,140 and when I'm talking to Google and Walmart and so on, we work on communication security, 18 00:01:55,420 --> 00:01:59,160 or network security, because privacy, that's stupid, that's just for individuals, 19 00:01:59,440 --> 00:02:01,580 but security, good point, I do need that. 20 00:02:04,320 --> 00:02:07,740 And then when I'm talking to governments and law enforcement people and so on, 21 00:02:07,820 --> 00:02:11,900 I'm working on traffic analysis resistant communication networks. 22 00:02:12,260 --> 00:02:15,700 Again, it's the same stuff, it's the same security properties and so on, 23 00:02:15,780 --> 00:02:17,860 it just depends how you phrase it for them, 24 00:02:17,980 --> 00:02:23,180 because they've already got all this snake oil security that all these corporations around D.C. have been selling them, 25 00:02:23,220 --> 00:02:24,600 so they're all set on security, 26 00:02:24,600 --> 00:02:29,140 but traffic analysis resistance, good point, I do need to send my agents to Israel 27 00:02:29,140 --> 00:02:31,860 and not have anybody know which countries they're talking to. 28 00:02:32,060 --> 00:02:35,740 And then the fourth category that we've learned about recently are blocked users, 29 00:02:35,940 --> 00:02:41,440 people in China and Iran and Thailand, and the list is growing at this point, 30 00:02:41,600 --> 00:02:44,620 people who can't reach all the websites they'd like to reach. 31 00:02:44,760 --> 00:02:49,460 And it turns out if you've built an anonymity system, something that prevents a local user 32 00:02:49,460 --> 00:02:54,300 from watching the user and figuring out where they're going, then they can also use it as a circumvention, 33 00:02:54,300 --> 00:02:59,360 if you can't tell what website I'm going to, then you can't prevent me from looking at BBC. 34 00:03:00,680 --> 00:03:01,920 So how do you build one of these? 35 00:03:02,040 --> 00:03:05,700 The easy answer is you put a computer somewhere and everybody relays their traffic through it. 36 00:03:05,920 --> 00:03:08,900 And it works fine for a lot of commercial companies, 37 00:03:09,140 --> 00:03:11,560 they promise they're not going to look at any of the traffic, 38 00:03:11,860 --> 00:03:15,700 okay, okay, they look at all the traffic, they promise they won't log any of the traffic, 39 00:03:15,940 --> 00:03:19,460 okay, okay, they write it all down, they promise they won't tell anybody what they see, 40 00:03:20,540 --> 00:03:24,100 okay, sometimes they tell people what they see, we want something stronger than that, 41 00:03:24,100 --> 00:03:28,880 we want something where the middle relay isn't able to break the whole system, 42 00:03:29,060 --> 00:03:30,760 and just promises that it won't. 43 00:03:30,880 --> 00:03:32,960 So the goal for Tor is distributed trust. 44 00:03:33,240 --> 00:03:39,060 The idea is, since we're routing the traffic over more than one relay, over more than one hop, 45 00:03:39,220 --> 00:03:43,160 then no single relay in the network gets to learn about both Alice and Bob, 46 00:03:43,300 --> 00:03:45,420 gets to learn that this Alice is looking at this website. 47 00:03:45,720 --> 00:03:51,100 So if R1 is bad, then he knows that Alice is using Tor, he just doesn't know what she's doing. 48 00:03:51,320 --> 00:03:53,660 And if R3 is bad, he knows that somebody 49 00:03:53,660 --> 00:03:55,720 is talking to Bob, but he doesn't know who. 50 00:03:55,920 --> 00:03:57,540 And if they're both bad, then we're screwed. 51 00:03:57,940 --> 00:03:59,380 See last year's talk for why. 52 00:03:59,600 --> 00:04:00,440 So far so good? 53 00:04:01,820 --> 00:04:02,260 Okay. 54 00:04:02,500 --> 00:04:04,760 And there's crypto, but I'm not going to talk about that. 55 00:04:04,980 --> 00:04:06,400 So that was your crash course on Tor. 56 00:04:06,500 --> 00:04:08,480 Hopefully everybody here knows how Tor works now. 57 00:04:08,740 --> 00:04:11,160 So there are a couple of interesting things to point out. 58 00:04:11,880 --> 00:04:14,380 How many people here have used Tor lately? 59 00:04:16,320 --> 00:04:16,760 Excellent. 60 00:04:17,120 --> 00:04:23,560 Okay, so we pulled down a 50 kilobyte file through Tor 13,000 times, 61 00:04:24,020 --> 00:04:25,260 over the past two months. 62 00:04:25,500 --> 00:04:29,820 And now we've got a histogram of what sort of download times we actually got. 63 00:04:29,980 --> 00:04:33,600 So on average, it took about eight seconds to get our 50 kilobyte file. 64 00:04:33,780 --> 00:04:36,980 That's kind of like loading a big news story off a website. 65 00:04:37,160 --> 00:04:38,660 Eight seconds, that kind of sucks. 66 00:04:38,880 --> 00:04:41,640 And it's worse than that, because look at that huge tail down there. 67 00:04:41,740 --> 00:04:43,580 It goes down to like 20 or 30 seconds. 68 00:04:44,020 --> 00:04:48,180 Quite a few times, if you're trying to load a website, then it's going to take quite a while. 69 00:04:49,260 --> 00:04:50,440 And then we've got another. 70 00:04:50,700 --> 00:04:53,480 So that previous slide is this. 71 00:04:53,480 --> 00:04:54,640 Little blotch down here. 72 00:04:54,800 --> 00:04:56,180 This is the 50 kilobyte file. 73 00:04:56,340 --> 00:04:59,960 We've got a box plot where the median is eight seconds or something. 74 00:05:00,220 --> 00:05:03,440 And the one standard div below is like five seconds. 75 00:05:03,560 --> 00:05:05,700 And one standard div above is like 15 seconds. 76 00:05:05,960 --> 00:05:11,920 Now let's pull down a one megabyte file every five, 10, 15 minutes or something. 77 00:05:12,100 --> 00:05:13,140 How long does that take? 78 00:05:13,260 --> 00:05:17,620 And the answer is about 50 seconds on average to pull down your one megabyte file. 79 00:05:17,980 --> 00:05:20,640 So these things suck in both directions. 80 00:05:20,820 --> 00:05:23,000 First of all, eight seconds is way too slow. 81 00:05:23,480 --> 00:05:26,540 And second of all, what, 50 seconds to pull down a big thing? 82 00:05:26,640 --> 00:05:28,000 That means there's a lot of capacity. 83 00:05:28,120 --> 00:05:29,020 There's a lot of bandwidth. 84 00:05:29,400 --> 00:05:31,120 But it's bad for web browsing. 85 00:05:31,260 --> 00:05:36,280 So we started out originally developing Tor saying let's try to provide the most bandwidth 86 00:05:36,280 --> 00:05:40,840 we can to the users because obviously that will mean that you get good enough latency 87 00:05:40,840 --> 00:05:44,280 and you get good enough other security other network properties. 88 00:05:44,500 --> 00:05:46,140 And it turns out that's not true. 89 00:05:46,360 --> 00:05:50,640 Providing really good bandwidth to people means that the folks who want lots of bandwidth 90 00:05:50,640 --> 00:05:52,820 end up getting a good service out of the network. 91 00:05:52,980 --> 00:05:53,420 00. 92 00:05:53,420 --> 00:05:57,880 the folks who want other properties like latency don't get as good service. So we've got two 93 00:05:57,880 --> 00:06:02,040 problems here. First, the people who are web browsing takes like eight seconds. That's no 94 00:06:02,040 --> 00:06:06,420 good. Second, the people who are doing bulk transfer over Tor, you can pull down a five 95 00:06:06,420 --> 00:06:12,340 megabyte file over Tor and the average is, what, three minutes, four minutes? That's not how it 96 00:06:12,340 --> 00:06:16,880 was supposed to be. So there are a lot of different things that we need to do to address this. And 97 00:06:16,880 --> 00:06:20,920 I've got a list of six problems that we need to look at. And I'll walk you through a few examples 98 00:06:20,920 --> 00:06:27,880 of these six problems over the next hour or so. And I've ordered them by priority. We need to 99 00:06:27,880 --> 00:06:34,060 solve the first one before it matters that we've solved the later ones. So, and I'll give you a few 100 00:06:34,060 --> 00:06:39,680 more examples of each of them. So the first one, Tor's congestion, low control, not so good. So 101 00:06:39,680 --> 00:06:45,340 how many people here know about exponential backoff and how TCP works? I see some hands, 102 00:06:45,400 --> 00:06:50,800 but fewer than our Tor users. Okay, sounds good. So the way that Tor works, you've got 103 00:06:50,800 --> 00:06:55,340 the first Tor relay and the second Tor relay. And there are a bunch of users that are trying 104 00:06:55,340 --> 00:07:00,600 to send traffic back and forth between them. So the way Tor works is you've got one big TCP session 105 00:07:00,600 --> 00:07:05,020 going back and forth from this relay to that relay. And whenever somebody has a connection, 106 00:07:05,160 --> 00:07:10,660 they want to go through it. You multiplex that connection onto that big TCP stream. So that 107 00:07:10,660 --> 00:07:15,780 means if there are 50,000 people trying to pull down a website at the same time, then they're all 108 00:07:15,780 --> 00:07:20,540 going to get shoved through that TCP stream. And that's great from an engineering perspective. It's 109 00:07:20,540 --> 00:07:20,720 easy. 110 00:07:20,800 --> 00:07:25,840 It's easy to build, easy to analyze, easy to know what's going on. But it's really bad from the flow 111 00:07:25,840 --> 00:07:30,660 control and congestion control perspective. Because if you've got 50,000 streams going back 112 00:07:30,660 --> 00:07:36,600 and forth all on this one TCP stream, TCP has only one way of backing off, of telling you you're 113 00:07:36,600 --> 00:07:40,340 talking too fast, you should slow down. And that's I drop a packet and you're supposed to 114 00:07:40,340 --> 00:07:44,060 notice that the packet got dropped and you're supposed to slow down. And that means that that 115 00:07:44,060 --> 00:07:50,780 big TCP stream slows down for everybody. So if one guy is talking too fast out of those 50,000, 116 00:07:50,800 --> 00:07:58,700 50,000 streams, then they all get punished for it. So the solution is kind of complex. We have to 117 00:07:58,700 --> 00:08:05,880 switch from TCP pairwise to some sort of end-to-end datagram UDP type protocol. And there are a lot of 118 00:08:05,880 --> 00:08:12,660 pieces to this. One of the big pieces, if we end up doing this, we're going to grab the IP packets 119 00:08:12,660 --> 00:08:17,920 at the client end and we're going to encapsulate them somehow and do some crypto and then get them 120 00:08:17,920 --> 00:08:20,780 to the other end of the Tor network, decapsulate them and push them to the other end of the Tor network. 121 00:08:20,780 --> 00:08:29,740 And you remember all those OS fingerprinting, KSO and so on tools where you look at an IP packet 122 00:08:29,740 --> 00:08:35,100 and you say that came from Linux 2.4.3 running patch level this? As soon as we start sending 123 00:08:35,100 --> 00:08:39,220 the actual IP packets from here over to there, then people are going to start being able to 124 00:08:39,220 --> 00:08:43,100 fingerprint Tor users. They're going to start saying, well, he's anonymous, he's using Tor, 125 00:08:43,280 --> 00:08:48,480 but I know that he's using FreeBSD 2.7 point something and he's the only guy in the network 126 00:08:48,480 --> 00:08:50,760 who does that. So what we really need to do is we're going to have to figure out how to 127 00:08:50,760 --> 00:08:56,400 do if we're going to solve this is how do we come up with a secure, maintained, free software, 128 00:08:57,360 --> 00:09:03,640 portable user space TCP stack. Those are a lot of properties that we need and there isn't one out 129 00:09:03,640 --> 00:09:09,640 there. So I'm going to skip over the rest of this high priority item because God, we don't know how 130 00:09:09,640 --> 00:09:14,880 to work on it very well. I talked to a lot of systems people who say, oh, this is, let me tell 131 00:09:14,880 --> 00:09:18,480 you exactly how to solve it. You just do this. And then I go to another systems professor and 132 00:09:18,480 --> 00:09:20,740 they say, oh, that's stupid. You don't want to do that. You want to do that. You want to do that. 133 00:09:20,760 --> 00:09:25,020 You want to do exactly this. It's obvious. And I've talked to like 15 systems professors and they 134 00:09:25,020 --> 00:09:31,220 all have a totally different idea of what should be done and what is totally stupid. So more work 135 00:09:31,220 --> 00:09:36,080 remains. Hopefully in a few years I'll be able to show up here and give you a good idea of how to 136 00:09:36,080 --> 00:09:44,220 build a secure datagram approach for Tor. Okay. So another problem with this whole problem number 137 00:09:44,220 --> 00:09:49,600 one, congestion control, flow control and stuff. So the way Tor does its flow control, you build 138 00:09:50,760 --> 00:09:55,940 a stream and you have a window that says, I want to pull down BBC or something like that. So you make 139 00:09:55,940 --> 00:10:01,920 your request to the other end of the Tor circuit and it says bbc.com. And you have what's called a 140 00:10:01,920 --> 00:10:09,020 window, a circuit window. TCP has these two. And the goal is it dictates how many cells that side is 141 00:10:09,020 --> 00:10:13,720 allowed to send before it needs some sort of acknowledgement that all of those cells have 142 00:10:13,720 --> 00:10:18,520 gotten through. So the default circuit window that we picked was 1,000 cells. It should be plenty. 143 00:10:18,640 --> 00:10:20,740 It's good performance. Remember we were focusing on the number of cells that were sent. So we're 144 00:10:20,760 --> 00:10:28,480 focusing on bandwidth. So that means that when I make my request for bbc.com.80 or .co.uk.port80, 145 00:10:28,640 --> 00:10:35,320 then it can send as many as 1,000 cells before you need an acknowledgement from the client saying, 146 00:10:35,460 --> 00:10:40,380 yeah, all of those got through. And the goal here was congestion control. Imagine we didn't 147 00:10:40,380 --> 00:10:46,560 have that window. Or imagine that window were 20,000 cells. Then I asked for the 20 megabyte 148 00:10:46,560 --> 00:10:50,740 file. And it dumps the whole 20 megabyte file onto the network. And then it sends it to the 149 00:10:50,760 --> 00:10:55,680 network. And then that big lump of bytes works its way through the network. That's bad, especially 150 00:10:55,680 --> 00:11:00,280 if a lot of people do it once. So the goal for this whole circuit window thing was we're going to 151 00:11:00,280 --> 00:11:06,940 limit the number of bytes that a given stream or circuit gets to put onto the network. And 1,000 152 00:11:06,940 --> 00:11:15,000 cells is 512 kilobytes. That's a whole lot. So imagine you're a small relay. You do 25 kilobytes 153 00:11:15,000 --> 00:11:20,120 a second on average. And you have a whole lot of people who are opening streams. And each of them 154 00:11:20,120 --> 00:11:25,160 adds half a megabyte to your buffer. So at this point, the buffers on the exit nodes are really 155 00:11:25,160 --> 00:11:31,680 big. And each of those lumps tries to move forward. And basically, there's a whole lot of data queued 156 00:11:31,680 --> 00:11:38,720 inside the Tor network right now. So our hope is if we reduce that 1,000 cells to 100 cells or 157 00:11:38,720 --> 00:11:44,040 something, then every time you make a new request through Tor, you're not going to dump a whole lot 158 00:11:44,040 --> 00:11:47,740 of data onto the Tor network. You're just going to dump a little bit. And maybe that means that 159 00:11:47,740 --> 00:11:49,720 there will be less congestion, less stuff queued. 160 00:11:50,120 --> 00:11:55,920 Hard to say. Okay. So that was the first issue. And I mostly skipped over that because they're hard 161 00:11:55,920 --> 00:11:59,280 problems that we don't know how to solve. Let's talk a little bit more about some other problems. 162 00:11:59,580 --> 00:12:05,640 The number two problem with Tor is that there are a few people doing bulk transfer, file sharing, 163 00:12:05,880 --> 00:12:10,760 rapid share, stuff like that. And I did some research with a fellow at Rice University named 164 00:12:10,760 --> 00:12:16,960 Dan Wallach a while ago. And we had a simulation Tor network where we had like 10,000 web browsing 165 00:12:16,960 --> 00:12:19,780 users and like 20 BitTor users. 166 00:12:20,120 --> 00:12:25,100 And the 20 BitTor users ruined the whole thing for the rest of them because they just went out and started 167 00:12:25,100 --> 00:12:29,960 pulling bytes as quickly as they could. So we're seeing the same thing on the Internet right now. 168 00:12:30,100 --> 00:12:36,200 We shouldn't be too surprised that a small number of file sharing users can break a whole network of 169 00:12:36,200 --> 00:12:41,040 other people trying to browse the web. So there are some other lessons we should learn here from 170 00:12:41,040 --> 00:12:47,880 economics. So if you increase supply, network capacity, then users will show up to take it. And that 171 00:12:47,880 --> 00:12:49,000 seems pretty reasonable. 172 00:12:49,000 --> 00:12:53,940 We used to think that there was going to be an equilibrium. We would say, okay, imagine the Tor network has the 173 00:12:53,940 --> 00:12:59,520 following capacity. Once we get slash dotted, then a whole lot more users are going to show up. And 174 00:12:59,520 --> 00:13:03,980 performance is going to get worse. But then a lot of those users are going to say, man, this sucks. 175 00:13:04,040 --> 00:13:07,460 And they're going to leave. And then performance is going to get better. And there should be some 176 00:13:07,460 --> 00:13:12,780 equilibrium, some number of seconds latency that users are willing to tolerate. And if there are too many 177 00:13:12,780 --> 00:13:18,840 users, then they'll leave and the latency gets better. And if there aren't enough users, then more will show 178 00:13:18,840 --> 00:13:23,900 up and the latency will get worse. So there should be some equilibrium. The problem with this is that 179 00:13:23,900 --> 00:13:30,660 different user classes have different tolerances for latency. So if you're a web browsing user, you click and you 180 00:13:30,660 --> 00:13:37,440 want your web page to show up. If you're a file sharing user, you click and you go to sleep. You hope you have 181 00:13:37,440 --> 00:13:44,660 your DVD in the morning. And while you are asleep, ruining the Tor network, there are a lot of people in Iran 182 00:13:44,660 --> 00:13:47,640 trying to click and they can't get their website. 183 00:13:48,840 --> 00:13:53,560 And that's the fundamental problem here. And we need to figure out how to solve that somehow. So the first 184 00:13:53,560 --> 00:13:59,600 approach is maybe we need to find the circuits that are pushing a whole lot of cells and we need to 185 00:13:59,600 --> 00:14:04,520 slow them down. We need to say, you're talking too fast. I'm not going to let you talk that fast because 186 00:14:04,520 --> 00:14:10,580 there are a lot of people talking more slowly and they should get priority. So the way this actually works is 187 00:14:10,580 --> 00:14:15,560 a lot of the relays out there rate limit. And that's a good thing. They should do that. So they only deliver 188 00:14:15,560 --> 00:14:18,760 a certain number of cells per second. So the question is, 189 00:14:18,840 --> 00:14:26,800 let's imagine I've got 50,000, I've got 5,000 circuits all waiting and they really want to send some bytes. Which one do I 190 00:14:26,800 --> 00:14:32,240 choose from? Right now the answer is we do a round robin. We say, well, I picked you last time so I'm going to pick the 191 00:14:32,240 --> 00:14:37,820 next one and the next one and we just cycle through. And that means that a lot of the circuits that are always active, 192 00:14:37,940 --> 00:14:43,640 that always have some cell they want to send, they're going to be pushing out most of the cells onto the network. 193 00:14:43,880 --> 00:14:48,820 So if you don't always have something to send, you're going to, the rate limiting that you're going to have is going to be 194 00:14:48,820 --> 00:14:54,760 the number of bytes I can write onto the network this second are going to get used up right quick by the fast guys. 195 00:14:55,080 --> 00:14:59,780 And the slow guys, the ones who don't have a cell waiting right now, they're going to have to wait for the next second. 196 00:15:00,680 --> 00:15:07,260 So we've got some actual graphs that we did running. So we ran these nine Tor relays up here and we tried to figure out 197 00:15:07,920 --> 00:15:18,800 how many cells each circuit sends on average. So we ranked the circuits by decile, by which ones are the most loud, how many cells are sent on each circuit. 198 00:15:18,820 --> 00:15:26,860 So over here we have the slowest ones and the slowest, the circuits that send the fewest cells only send one cell or two cells or something. 199 00:15:27,040 --> 00:15:35,420 And over here we have the fastest 10% of the circuits are sending about 5,000 cells. So that's 2.5 megabytes or something like that. 200 00:15:35,600 --> 00:15:40,220 So the really fast circuits over Tor are on average sending several megabytes. 201 00:15:40,840 --> 00:15:46,360 And if we look at it a little bit closer, so this graph is the same ranked number of circuits. 202 00:15:46,600 --> 00:15:48,360 And on the y-axis we've got, 203 00:15:49,120 --> 00:15:56,220 the average number of cells that are queued waiting in the buffers that can't get out because the circuit is just trying to push too much stuff. 204 00:15:56,520 --> 00:16:03,200 So over here, the top 10% of the circuits have a whole lot of cells queued. They've got a lot of stuff buffered up. 205 00:16:03,320 --> 00:16:06,660 They're always saying, ooh, me, me, me, I want to send the next cell. 206 00:16:06,960 --> 00:16:10,520 And all the rest of these guys generally don't have anything waiting. 207 00:16:10,940 --> 00:16:18,080 So that means that if we're rate limiting, then the guys that are really loud are going to get their cells out and they're going to fill it up for the rest of the world. 208 00:16:19,160 --> 00:16:25,120 So we need to come up with some algorithm for doing priority better, for load balancing better, 209 00:16:25,260 --> 00:16:30,140 for being not quite so fair to the folks who are trying to take up more of the network. 210 00:16:30,920 --> 00:16:32,400 What algorithm should we use? 211 00:16:32,480 --> 00:16:34,220 How do we know if we've gotten it right? 212 00:16:34,340 --> 00:16:36,400 You're going to see this theme come up every so often. 213 00:16:36,740 --> 00:16:44,000 We need some sort of Tor simulator or really brilliant guy or something to imagine what happens if we use this algorithm. 214 00:16:44,260 --> 00:16:47,600 The only option we've got right now is deploy it, make everybody upgrade. 215 00:16:47,940 --> 00:16:48,800 See if we can do it. 216 00:16:48,820 --> 00:16:49,380 We did it right. 217 00:16:49,940 --> 00:16:51,560 That's not really the right option. 218 00:16:52,780 --> 00:16:53,180 Okay. 219 00:16:53,240 --> 00:16:55,860 So there are a couple of other options to deal with really fast people. 220 00:16:56,020 --> 00:16:59,260 One of them is maybe we should throttle bandwidth at the client. 221 00:16:59,980 --> 00:17:04,580 Maybe your Tor client should, by default, rate limit you to 20 kilobytes a second. 222 00:17:04,860 --> 00:17:09,460 And you can burst higher than that, but the average should be enforced at 20 kilobytes a second. 223 00:17:09,700 --> 00:17:14,540 On the one hand, that's a horrible idea because clients out there will say, well, I don't want to do that. 224 00:17:14,640 --> 00:17:15,940 It's free software, open source. 225 00:17:16,040 --> 00:17:16,740 I'm going to fix it. 226 00:17:18,940 --> 00:17:20,960 Most Windows users don't know how to do that. 227 00:17:21,080 --> 00:17:23,600 So it might be easier than we think. 228 00:17:23,960 --> 00:17:29,320 I worry that somebody will fork Tor and I'm going to give you the fast Tor because the slow Tor is slow. 229 00:17:30,420 --> 00:17:34,080 On the other hand, maybe it's a good idea to rate limit for security. 230 00:17:34,420 --> 00:17:43,640 There's an attack that I talked about last year that some folks at Columbia University are working on where the faster you use your Tor, the faster they can hunt you down. 231 00:17:44,060 --> 00:17:48,800 So if you're pushing 80 kilobytes a second all the time, then you're much more likely to get hacked. 232 00:17:48,800 --> 00:17:52,160 They're much more noticeable and they're going to be able to identify where you are on the network. 233 00:17:52,440 --> 00:17:58,540 But if you're always pushing at most 20 kilobytes a second, then you blend in really well and they can't figure out where you are. 234 00:17:58,840 --> 00:18:03,060 So that's really, maybe there's a good idea behind the whole throttling thing. 235 00:18:04,220 --> 00:18:06,740 Okay, so I'm busting through various examples. 236 00:18:07,100 --> 00:18:09,480 Am I going too slow, too fast, just right? 237 00:18:11,380 --> 00:18:11,860 Perfect. 238 00:18:12,240 --> 00:18:15,000 Okay, so the third issue, not enough capacity. 239 00:18:15,120 --> 00:18:16,540 We need more relays. 240 00:18:16,600 --> 00:18:18,240 You guys should all run relays. 241 00:18:18,240 --> 00:18:20,440 Why am I putting this thing number three? 242 00:18:20,680 --> 00:18:25,380 Because we had a, one of our funders a couple of months ago said, Tor is slow. 243 00:18:25,560 --> 00:18:29,700 We're going to stop paying for development for, you know, code and improvements and so on. 244 00:18:29,800 --> 00:18:31,340 We're just going to run a lot of relays. 245 00:18:31,380 --> 00:18:32,800 And then Tor is going to be fast, right? 246 00:18:32,920 --> 00:18:35,140 So it turns out it doesn't work that way. 247 00:18:35,220 --> 00:18:40,800 Because if this congestion control problem doesn't get solved, then we get a lot more capacity. 248 00:18:40,940 --> 00:18:45,720 But we're still going to have that one TCP stream that's slowing everybody down when anybody talks fast. 249 00:18:45,720 --> 00:18:54,720 And if the bulk transfer users aren't somehow made more fair, then they're just going to fill up whatever capacity we add. 250 00:18:54,940 --> 00:19:00,420 We could double the capacity of the Tor network and some BitTorrent dude out there is going to get really happy. 251 00:19:00,580 --> 00:19:03,140 And the people in Iran are going to stay pretty sad. 252 00:19:03,520 --> 00:19:04,620 That's the theory at least. 253 00:19:05,240 --> 00:19:09,820 On the other hand, so we got to test this a little bit with the Iran stuff lately. 254 00:19:09,980 --> 00:19:12,120 So here are the number of running relays. 255 00:19:12,200 --> 00:19:13,980 Look mostly at the black line up here. 256 00:19:14,060 --> 00:19:15,340 The number of running relays. 257 00:19:15,340 --> 00:19:18,540 From mid-2006 to right about now. 258 00:19:18,780 --> 00:19:23,720 So over the course of 2008, the number of relays dropped. 259 00:19:24,120 --> 00:19:27,200 And we'll see in a bit that's because there are a lot of people in Germany saying, 260 00:19:27,340 --> 00:19:32,260 I'm not sure what this data retention stuff is going to mean for me, but maybe I shouldn't run a relay anymore. 261 00:19:32,520 --> 00:19:37,360 And then right here, the number of relays spiked from like 1,500 to like 1,900. 262 00:19:37,640 --> 00:19:43,840 And that was a lot of people saying, people in Iran, activists in Iran, really need to be able to use Tor 263 00:19:43,840 --> 00:19:45,320 because Tor is the only safe place. 264 00:19:45,340 --> 00:19:46,740 The only safe tool that's working right now. 265 00:19:46,960 --> 00:19:49,480 And if I run a relay, then I'm going to make Tor faster. 266 00:19:49,860 --> 00:19:51,400 So the question is, did they? 267 00:19:51,520 --> 00:19:55,920 Because here we moved from like 1,500 to 1,800 in a few weeks. 268 00:19:56,140 --> 00:20:00,760 So we should have some idea of does adding a lot more capacity actually change things? 269 00:20:00,920 --> 00:20:02,500 And the answer is, yeah, maybe it does. 270 00:20:02,720 --> 00:20:08,720 So here's a look at the median 50 kilobyte latency over the course of that time. 271 00:20:08,860 --> 00:20:12,280 So this is, it starts at, you know, nine seconds or something. 272 00:20:12,280 --> 00:20:15,680 And it slowly works its way down to like seven or eight seconds. 273 00:20:15,840 --> 00:20:18,600 So that's not a great improvement, but the answer is yes. 274 00:20:18,800 --> 00:20:22,220 If we add more capacity, then we actually do end up with a faster Tor network. 275 00:20:22,580 --> 00:20:25,640 And if we look at the one megabyte graph, it's even clearer. 276 00:20:25,740 --> 00:20:30,460 It starts, you know, at the 72nd mark, and it ends up down at the 52nd mark. 277 00:20:32,160 --> 00:20:33,200 So that's great. 278 00:20:33,280 --> 00:20:35,480 Add more capacity, get more performance. 279 00:20:36,140 --> 00:20:40,060 But we're getting better performance for the file sharing people, 280 00:20:40,060 --> 00:20:44,820 better performance improvements for the file sharing people than we are for the web browsing people. 281 00:20:45,180 --> 00:20:47,380 So more capacity is good. 282 00:20:47,460 --> 00:20:48,120 We need to do it. 283 00:20:48,180 --> 00:20:50,980 But we also need to solve the first couple of problems, 284 00:20:51,140 --> 00:20:54,880 or we're not actually going to end up making Tor better for the folks who want to web browse. 285 00:20:56,040 --> 00:20:58,920 So what other approaches can we work on for capacity? 286 00:20:59,280 --> 00:21:03,380 Jake and I have been doing talks all around the world trying to teach people about how Tor works, 287 00:21:03,480 --> 00:21:05,780 and maybe they want to help out and add some more relays. 288 00:21:06,260 --> 00:21:10,040 Everywhere Jake goes, he leaves a stream of 30 or 40 people running relays. 289 00:21:10,060 --> 00:21:11,480 So that's a good start. 290 00:21:11,720 --> 00:21:17,880 We also want to provide some tools that actually allow people to know how their relay is working and get reminded. 291 00:21:18,180 --> 00:21:20,980 So maybe we should set up a mailing list just for relay operators. 292 00:21:21,400 --> 00:21:26,840 Every so often I get mail from the fellow running the Boston University exit relay saying, 293 00:21:27,400 --> 00:21:29,740 I'm getting DDoSed, and it's pretty cool. 294 00:21:29,900 --> 00:21:34,260 They're DDoSing me for like 150 megabits per second, and they've been doing it for 48 hours. 295 00:21:34,340 --> 00:21:35,120 Wow, this is neat. 296 00:21:35,360 --> 00:21:38,180 But he wants to know if anybody else is getting DDoSed. 297 00:21:38,200 --> 00:21:39,820 And my answer is, well, I've only heard from you. 298 00:21:40,060 --> 00:21:42,900 So I guess it's just a – but if we had a mailing list for these people, 299 00:21:42,960 --> 00:21:46,060 then they could talk to each other and say, I'm having problems with this configuration. 300 00:21:46,180 --> 00:21:47,260 What do you think about this? 301 00:21:47,360 --> 00:21:47,980 Do you have any scripts? 302 00:21:48,260 --> 00:21:52,860 And then another one, we've been working on a CGI called Tor Weather, which you show up to the website. 303 00:21:52,920 --> 00:21:57,460 You say, this is the email address that you should mail when this Tor relay goes down. 304 00:21:58,000 --> 00:22:04,020 And if we had a simple database like that that was checking whether the relays are up and reminding you that it goes down – 305 00:22:04,020 --> 00:22:09,680 because we hear from a lot of really enthusiastic volunteers who say, I really want to run a relay. 306 00:22:09,680 --> 00:22:10,440 I set it up. 307 00:22:10,440 --> 00:22:10,840 It's great. 308 00:22:11,120 --> 00:22:14,640 And then there are computer reboots, and they didn't set it up to start on boot. 309 00:22:14,780 --> 00:22:16,700 And they think they're running a relay, but they're not. 310 00:22:17,120 --> 00:22:21,700 So if we had some way to actually help remind them of these things, maybe we'd be doing better. 311 00:22:22,540 --> 00:22:27,980 So here's the graph I talked about earlier, the number of relays over the past couple of years by country. 312 00:22:28,260 --> 00:22:35,820 So this sort of orange blotch here that goes up a lot in response to perhaps one of my talks in Germany a few years ago 313 00:22:35,820 --> 00:22:39,100 and then goes down in response to maybe the data retention stuff. 314 00:22:39,680 --> 00:22:44,240 And then we can see that U.S. was actually the one that spiked from the Iran thing. 315 00:22:44,400 --> 00:22:51,240 There weren't a lot of people in Sweden and various other countries who cared particularly about that and said, I've got to set one up now. 316 00:22:51,900 --> 00:22:56,780 The France spike is coming from their fine new three strikes and you're off the Internet for a year law. 317 00:22:57,360 --> 00:22:59,560 Chat with me afterwards if you want to learn more about that. 318 00:22:59,680 --> 00:23:03,800 But there are a lot of people in France saying, well, wait a minute, I have to preserve the privacy that I've got. 319 00:23:05,260 --> 00:23:08,820 How else can we deal with capacity issues? 320 00:23:08,820 --> 00:23:11,120 So another one is some sort of incentive mechanism. 321 00:23:11,480 --> 00:23:19,680 Wouldn't it be great if we could say, because you're a relay, you get priority, you get faster service, your packets get through faster. 322 00:23:20,040 --> 00:23:21,980 And there are a couple of approaches here. 323 00:23:22,120 --> 00:23:26,600 One of them is a very crude approach that I've been working on, which is basically two divisions. 324 00:23:26,740 --> 00:23:30,080 Either you're a good guy, you're a relay lately, or not. 325 00:23:30,240 --> 00:23:32,520 And the good guys get first dibs on the bandwidth. 326 00:23:32,780 --> 00:23:35,360 And then a more complex one would be a micropayments approach, 327 00:23:35,580 --> 00:23:38,800 where you get to get micropayments in exchange for providing security. 328 00:23:38,820 --> 00:23:41,940 And then you get to spend them to get better priority for that circuit. 329 00:23:42,380 --> 00:23:43,520 So these are all great. 330 00:23:43,680 --> 00:23:45,500 The design of them seems to work. 331 00:23:45,880 --> 00:23:50,160 We looked at the architecture, the system side, and they do in fact provide better service. 332 00:23:50,340 --> 00:23:53,480 The problem is an anonymity attack that we don't know the answer for. 333 00:23:53,780 --> 00:23:57,380 So imagine you get better service if you're a relay. 334 00:23:58,320 --> 00:24:02,160 So here you are, Wikipedia or something, and you want to know who your users are. 335 00:24:02,540 --> 00:24:05,080 And you see somebody connecting to you really quickly. 336 00:24:05,200 --> 00:24:06,760 You say, I don't know who he is. 337 00:24:06,800 --> 00:24:07,220 He's anonymous. 338 00:24:07,220 --> 00:24:08,780 But he's getting good service. 339 00:24:08,960 --> 00:24:10,180 So I bet he's a relay. 340 00:24:10,600 --> 00:24:14,880 So you go and you look at the list of 5,000 relays or whatever it is at that point. 341 00:24:14,980 --> 00:24:15,880 And you take a snapshot. 342 00:24:16,060 --> 00:24:18,620 And you say, I don't know which one he is, but he's one of these 5,000. 343 00:24:19,300 --> 00:24:22,700 A week later, the same guy logs into the same Wikipedia account. 344 00:24:23,200 --> 00:24:24,460 And he's got fast service. 345 00:24:24,800 --> 00:24:29,480 And you say, I don't know who he is, but he's one of these 6,000 people from this list. 346 00:24:29,680 --> 00:24:32,420 And you take an intersection of the first list and the second list. 347 00:24:32,600 --> 00:24:36,340 And now there are only 1,000 people who are up at the same time. 348 00:24:36,340 --> 00:24:39,800 And then he logs in again and again over the next while. 349 00:24:40,000 --> 00:24:47,960 And pretty soon you've narrowed it down to these six people were the only ones who were relays every time this guy was getting fast service logging in. 350 00:24:48,400 --> 00:24:49,700 And that sucks. 351 00:24:49,860 --> 00:24:51,300 And I don't have an answer for it. 352 00:24:51,740 --> 00:24:55,780 The intersection attack is a big problem in anonymity systems and has been for years. 353 00:24:56,320 --> 00:25:04,120 But are there any ways to do incentive mechanisms where you're primarily rewarding people who aren't publicly listed as being rewarded? 354 00:25:04,580 --> 00:25:05,920 A fine open question. 355 00:25:07,420 --> 00:25:09,340 Eventually, we want everybody to be a relay. 356 00:25:09,980 --> 00:25:12,660 One problem is the problem I was just talking about. 357 00:25:13,340 --> 00:25:18,300 If everybody is a relay, then you're in the list of whether you're online right now or not. 358 00:25:18,680 --> 00:25:28,500 And that means that somebody can take a list of the 300,000 users who were using Tor yesterday and the 350,000 who are using it today and the 250,000 who are using it tomorrow. 359 00:25:28,680 --> 00:25:36,320 And they can intersect those and try to figure out who's online using Tor every time this anonymous guy logs into this Slashdot account. 360 00:25:36,340 --> 00:25:37,460 That's bad news. 361 00:25:37,820 --> 00:25:39,340 There's another piece of bad news. 362 00:25:39,480 --> 00:25:49,260 There's an attack that people have been working on lately, which is if you're running a relay, then I can send traffic through you and I can slow you down and see if the other side slows down. 363 00:25:49,760 --> 00:25:52,980 See my talk from last year for a lot more details on these congestion attacks. 364 00:25:53,320 --> 00:26:00,640 But until we know how bad that attack is, I feel kind of bad saying help out Tor by making yourself more vulnerable. 365 00:26:01,680 --> 00:26:03,680 I don't know how bad it is at this point. 366 00:26:03,680 --> 00:26:10,760 Right now, most of the people who run relays are not running them on their home computer and also using them as a client. 367 00:26:11,200 --> 00:26:14,040 So I think that's a perfectly safe approach. 368 00:26:14,280 --> 00:26:20,960 But we really want to get more Tor users who are browsing the web through Tor to click the button saying, I want to become a relay now. 369 00:26:21,140 --> 00:26:22,940 How do we figure out how to make that safe? 370 00:26:24,260 --> 00:26:24,700 Okay. 371 00:26:24,740 --> 00:26:28,040 So problem number four, the load balancing isn't doing so well. 372 00:26:28,140 --> 00:26:29,060 How's my timing? 373 00:26:29,180 --> 00:26:33,160 Do I have a goon over there that has any idea when I started or ended? 374 00:26:33,960 --> 00:26:34,400 No. 375 00:26:34,500 --> 00:26:35,620 I'll just keep on going. 376 00:26:35,780 --> 00:26:36,160 Sounds good. 377 00:26:36,360 --> 00:26:40,220 So the fourth problem, the load balancing is not as good as it could be. 378 00:26:40,400 --> 00:26:43,280 So the goal for Tor is we've got a bunch of relays. 379 00:26:43,320 --> 00:26:48,880 Each relay should say, I need to figure out how fast I am so I can advertise the bandwidth that I've got. 380 00:26:49,060 --> 00:26:53,900 And then clients can weight their choices based on the bandwidth that each relay has. 381 00:26:54,240 --> 00:27:00,200 So if I'm a one megabyte per second relay and there's a hundred kilobyte a second relay, 382 00:27:00,400 --> 00:27:03,140 I should get chosen ten times more often than he does. 383 00:27:03,160 --> 00:27:03,320 I should. 384 00:27:03,640 --> 00:27:08,360 Because that way, the clients are going to put their load correctly onto the network. 385 00:27:08,640 --> 00:27:10,160 There are a couple of problems with this. 386 00:27:11,180 --> 00:27:15,100 The biggest one is that we're not actually choosing the numbers correctly. 387 00:27:15,460 --> 00:27:19,480 So Mike Perry did some actual active tests of the Tor network. 388 00:27:20,280 --> 00:27:21,680 I think it was a few months ago. 389 00:27:21,900 --> 00:27:26,540 And over here on the left hand of the graph, we've got the really fast relays. 390 00:27:26,620 --> 00:27:28,960 These are the ones that are advertising a whole lot of bandwidth. 391 00:27:29,260 --> 00:27:33,140 And if you use only those, you get like 50 or something. 392 00:27:33,140 --> 00:27:35,900 So you get 80 or 90 kilobytes a second on average through Tor. 393 00:27:36,180 --> 00:27:40,200 If you're using the rest, you get more like 10 kilobytes a second. 394 00:27:40,440 --> 00:27:43,300 So we'd rather have something that doesn't look like this, 395 00:27:43,480 --> 00:27:47,200 but maybe something that looks like this, or something a little bit smoother, more fair, 396 00:27:47,480 --> 00:27:51,700 so the nodes that have a whole lot of bandwidth are getting more use, 397 00:27:51,940 --> 00:27:54,000 and then the Tor network becomes faster. 398 00:27:54,280 --> 00:27:55,980 So this is a problem for a few reasons. 399 00:27:56,880 --> 00:27:59,480 Once we were doing the bandwidth self-measurement stuff, 400 00:27:59,740 --> 00:28:01,620 we had all these academics saying, 401 00:28:01,620 --> 00:28:05,500 woohoo, I can attack Tor, I can be a 10 megabyte per second relay, 402 00:28:05,640 --> 00:28:08,320 and I can just lie, I don't have to provide the bandwidth, 403 00:28:08,480 --> 00:28:12,040 I just say that I have it, and then I attract all these users, 404 00:28:12,120 --> 00:28:13,660 and I can start doing my attacks on them. 405 00:28:13,900 --> 00:28:16,400 So we had to cap it at 10 megabytes a second, 406 00:28:16,480 --> 00:28:19,240 because there were people who would have shown up and said, 407 00:28:19,300 --> 00:28:22,360 woohoo, I can be a 2 petabyte per second relay, 408 00:28:22,640 --> 00:28:27,180 and now I'll be 99.97% of the network, and I'll attract all of the users. 409 00:28:27,400 --> 00:28:31,340 So we needed to put some upper bounds so they weren't able to attack the whole thing. 410 00:28:32,300 --> 00:28:34,500 Now that we're doing the active measurement stuff, 411 00:28:34,760 --> 00:28:38,100 then we could potentially start using better numbers, 412 00:28:38,200 --> 00:28:39,240 we could use higher numbers. 413 00:28:39,500 --> 00:28:43,460 We've got Tor relays out there that can easily push 50 megabytes per second. 414 00:28:43,660 --> 00:28:44,720 Do we let them? 415 00:28:45,340 --> 00:28:49,800 There's a trade-off here, because if you're actually pushing 50 megabytes per second, 416 00:28:49,860 --> 00:28:52,480 and you're attracting that proportion of the users, 417 00:28:52,800 --> 00:28:54,680 you're 6% of the Tor network. 418 00:28:55,040 --> 00:28:58,340 Do we really want some dude to be able to be 6% of the Tor network 419 00:28:58,340 --> 00:29:00,820 just by buying a 100 megabit per second switch, 420 00:29:00,820 --> 00:29:03,280 and having good connectivity? 421 00:29:03,680 --> 00:29:07,840 On the one hand, no, because we really want a lot of different servers 422 00:29:07,840 --> 00:29:09,680 so that you can get your anonymity. 423 00:29:09,900 --> 00:29:11,000 On the other hand, yeah. 424 00:29:11,320 --> 00:29:14,780 If every Tor user could get their webpages quickly, 425 00:29:15,420 --> 00:29:16,400 that sounds great. 426 00:29:16,800 --> 00:29:19,480 So how do we balance anonymity with performance? 427 00:29:21,220 --> 00:29:24,100 And a couple of other problems, I'll skip over some. 428 00:29:24,600 --> 00:29:25,860 What about one-hop paths? 429 00:29:26,120 --> 00:29:27,740 I still hear from a lot of people who say, 430 00:29:27,880 --> 00:29:29,680 I don't want to do that three-hop thing. 431 00:29:29,680 --> 00:29:33,000 That distributed trust stuff, I don't really care about security, actually. 432 00:29:33,040 --> 00:29:35,920 I just want to fetch my BBC videos, 433 00:29:36,040 --> 00:29:38,440 and they'll only let me do it if I'm coming from England. 434 00:29:38,700 --> 00:29:41,340 So I really want to, you know, I just want one-hop. 435 00:29:41,380 --> 00:29:42,340 I don't care about anonymity. 436 00:29:42,700 --> 00:29:46,020 And we first, for a long time, had been saying, 437 00:29:46,520 --> 00:29:49,660 no, you shouldn't do that, because our load balancing algorithm 438 00:29:49,660 --> 00:29:52,740 expects you to be choosing your paths like this, 439 00:29:52,860 --> 00:29:55,620 and if everybody's choosing their paths like some other thing, 440 00:29:55,840 --> 00:29:57,800 then the Tor network is going to suck even more. 441 00:29:57,900 --> 00:29:59,660 You're going to ruin it for other people. 442 00:30:00,320 --> 00:30:03,580 Now that we've got some sort of active measurement stuff going on, 443 00:30:03,660 --> 00:30:06,440 so we can actually check who has how much bandwidth 444 00:30:06,440 --> 00:30:08,540 and update the bandwidth numbers accurately, 445 00:30:08,820 --> 00:30:10,700 then that's not so much of a problem. 446 00:30:10,840 --> 00:30:13,520 If everybody is clobbering just our exit relays, 447 00:30:13,620 --> 00:30:15,760 then at least we'll notice, and we'll, you know, 448 00:30:15,800 --> 00:30:18,360 crank down the amount of capacity that they advertise. 449 00:30:18,680 --> 00:30:20,680 But if exits are actually scarce, 450 00:30:21,280 --> 00:30:23,640 if everybody is doing this one-hop thing, 451 00:30:23,680 --> 00:30:25,100 and they can only use the exit nodes, 452 00:30:25,200 --> 00:30:28,400 because you can't one-hop proxy through somebody who won't let you exit, 453 00:30:28,400 --> 00:30:31,920 then, I mean, right now, about a third of the network is exit nodes. 454 00:30:32,100 --> 00:30:34,380 If people start beating on these things even more, 455 00:30:34,560 --> 00:30:36,540 then Tor is going to slow down for everybody, 456 00:30:36,740 --> 00:30:39,420 including the folks trying to use it just as a one-hop proxy. 457 00:30:39,660 --> 00:30:43,060 If the bottleneck is that third hop, 458 00:30:43,800 --> 00:30:46,000 then don't worry about the first and second hops. 459 00:30:46,280 --> 00:30:49,780 Once we solve this congestion stuff and this priority stuff and so on, 460 00:30:49,920 --> 00:30:53,140 then the reason why Tor is slow is not going to be 461 00:30:53,140 --> 00:30:54,660 because you're doing multiple hops. 462 00:30:54,880 --> 00:30:57,500 I mean, the speed of light around the world is kind of limiting, 463 00:30:57,500 --> 00:30:59,620 but we're talking way less than a second. 464 00:30:59,700 --> 00:31:00,940 We're not talking five seconds. 465 00:31:01,400 --> 00:31:03,220 So, hard to say. 466 00:31:03,300 --> 00:31:06,700 The real problem here, the real reason why we're not happy 467 00:31:06,700 --> 00:31:10,180 with people hoping to use Tor relays as one-hop proxies, 468 00:31:10,320 --> 00:31:13,000 right now, because of the distributed trust design, 469 00:31:13,640 --> 00:31:16,360 if you see a connection coming from a Tor exit node, 470 00:31:16,600 --> 00:31:19,600 you know that that guy has no idea where Alice is. 471 00:31:20,520 --> 00:31:22,920 If a bunch of our users start using Tor, 472 00:31:23,060 --> 00:31:25,380 these relays as one-hop proxies, 473 00:31:25,520 --> 00:31:26,720 then you don't... 474 00:31:26,720 --> 00:31:27,420 I mean, maybe. 475 00:31:27,540 --> 00:31:29,260 Maybe he knows who Alice is. 476 00:31:29,340 --> 00:31:31,080 Maybe Alice is only using one-hop. 477 00:31:31,260 --> 00:31:33,400 So I should go bust down that door 478 00:31:33,400 --> 00:31:35,500 and collect that computer and find out 479 00:31:35,500 --> 00:31:36,340 because I might get lucky. 480 00:31:36,700 --> 00:31:38,440 So it's really a binary. 481 00:31:39,180 --> 00:31:41,760 The exit nodes know none of their users, 482 00:31:41,900 --> 00:31:44,700 or the exit nodes might know a few of their users, 483 00:31:44,820 --> 00:31:46,920 and we really need to keep it in that first case, 484 00:31:47,100 --> 00:31:49,080 or a bunch of the relay operators 485 00:31:49,080 --> 00:31:50,680 are going to have a lot more problems. 486 00:31:50,940 --> 00:31:52,960 And I've heard from a lot of relay operators who say, 487 00:31:53,100 --> 00:31:55,920 I'm not comfortable running a relay 488 00:31:55,920 --> 00:31:58,380 if people are able to use it as a one-hop proxy. 489 00:31:58,740 --> 00:32:00,240 So you should come up with a way 490 00:32:00,240 --> 00:32:03,120 to prevent users from using me in that way. 491 00:32:05,240 --> 00:32:06,680 Sounds like they're having fun out there. 492 00:32:08,060 --> 00:32:09,580 Okay, so problem number five. 493 00:32:09,800 --> 00:32:11,280 It's not just the high latency. 494 00:32:11,360 --> 00:32:12,400 It's the high variability. 495 00:32:12,860 --> 00:32:14,340 I talk to a lot of users who say, 496 00:32:14,440 --> 00:32:16,700 Tor is slow, but if I knew it were eight seconds 497 00:32:16,700 --> 00:32:18,040 and it were always eight seconds, 498 00:32:18,160 --> 00:32:20,380 then I'd be able to predict what's going on. 499 00:32:20,460 --> 00:32:23,120 I'd be able to, you know, I'd anticipate it. 500 00:32:23,140 --> 00:32:24,920 I could go for a coffee if it's going to take longer. 501 00:32:24,920 --> 00:32:26,820 The problem is that it's really variable. 502 00:32:27,760 --> 00:32:29,560 So an example of that, 503 00:32:29,700 --> 00:32:33,000 Tor's rate limiting uses a token bucket system, 504 00:32:33,200 --> 00:32:34,900 and the idea is every second 505 00:32:34,900 --> 00:32:37,200 we put in the next second's worth of bandwidth. 506 00:32:37,460 --> 00:32:39,860 So if you're rate limiting to 30 kilobytes a second, 507 00:32:40,060 --> 00:32:41,540 then at the beginning of the second, 508 00:32:41,660 --> 00:32:43,760 you get permission to send 30 kilobytes. 509 00:32:44,080 --> 00:32:47,340 And if you've got 30 kilobytes queued right then, 510 00:32:47,480 --> 00:32:48,940 then you send it right then, 511 00:32:49,020 --> 00:32:50,480 and then you wait for the next second 512 00:32:50,480 --> 00:32:52,580 in order to get more permission to send more bytes. 513 00:32:52,800 --> 00:32:54,320 So at the beginning, 514 00:32:54,320 --> 00:32:55,840 when we didn't have very many users, 515 00:32:56,100 --> 00:32:58,540 this was great because not very many of the relays 516 00:32:58,540 --> 00:33:00,980 ran out of their token bucket, 517 00:33:01,100 --> 00:33:02,060 ran out of their permission. 518 00:33:02,300 --> 00:33:04,620 So it was all smooth, and whenever you get a byte, 519 00:33:04,720 --> 00:33:05,560 then you send it on. 520 00:33:05,780 --> 00:33:08,220 At this point, all of the relays have 521 00:33:08,220 --> 00:33:11,080 more than one second worth of stuff queued at them. 522 00:33:11,340 --> 00:33:13,540 So that means that at the beginning of each second, 523 00:33:13,660 --> 00:33:16,180 they send out as much as they're able to for that second, 524 00:33:16,300 --> 00:33:18,500 and then they go silent until the next second, 525 00:33:18,560 --> 00:33:19,660 and they send out another burst. 526 00:33:20,180 --> 00:33:21,740 First, this is horrible for TCP. 527 00:33:21,980 --> 00:33:24,020 It doesn't like burst silent. 528 00:33:24,320 --> 00:33:26,700 We actually... 529 00:33:26,700 --> 00:33:28,800 So Karsten, the fellow who's been doing 530 00:33:28,800 --> 00:33:29,580 a lot of these measurements, 531 00:33:29,800 --> 00:33:32,740 did a graph of how long it takes to build a circuit. 532 00:33:33,060 --> 00:33:35,340 So we've got the red one is how long it takes 533 00:33:35,340 --> 00:33:36,600 for the first hop to finish. 534 00:33:36,780 --> 00:33:38,700 The green one is how long it takes generally 535 00:33:38,700 --> 00:33:39,540 for the second hop. 536 00:33:39,660 --> 00:33:41,040 The blue one is the third hop. 537 00:33:41,440 --> 00:33:44,020 And he showed up and gave me this graph, 538 00:33:44,060 --> 00:33:47,520 and he's like, there's this weird hump stuff going on. 539 00:33:47,640 --> 00:33:49,140 At the beginning of every second, 540 00:33:49,360 --> 00:33:51,780 that's when most of my circuit hops finish. 541 00:33:51,840 --> 00:33:52,780 What's up with this? 542 00:33:52,780 --> 00:33:55,040 And the answer is it's that rate-limiting thing 543 00:33:55,040 --> 00:33:55,940 I was talking about before. 544 00:33:56,340 --> 00:33:59,320 Tor sends bursts of traffic at the beginning of each second, 545 00:33:59,460 --> 00:34:02,180 which means that if I'm trying to extend my circuit 546 00:34:02,680 --> 00:34:05,320 and the response is coming back over the Tor network, 547 00:34:05,620 --> 00:34:07,560 it's going to get stuck in some queue 548 00:34:07,560 --> 00:34:09,200 and wait to the beginning of a second, 549 00:34:09,380 --> 00:34:10,820 and then it's going to get pushed, 550 00:34:10,940 --> 00:34:12,400 and then it'll get stuck in the next queue 551 00:34:12,400 --> 00:34:13,920 and wait to the beginning of the next second. 552 00:34:14,140 --> 00:34:16,460 So it basically takes one second to get 553 00:34:16,460 --> 00:34:18,320 from one relay to the next, 554 00:34:18,400 --> 00:34:20,500 which means that we're forcing a minimum 555 00:34:20,500 --> 00:34:21,600 of three seconds latency, 556 00:34:22,780 --> 00:34:25,520 because of the fact that we don't spread out 557 00:34:25,520 --> 00:34:27,560 our rate-limiting over the course of a second. 558 00:34:28,600 --> 00:34:30,200 So another thing we need to worry about, 559 00:34:31,220 --> 00:34:32,620 circuit build timeouts. 560 00:34:32,860 --> 00:34:36,300 Right now, I think the timeout is two minutes. 561 00:34:36,540 --> 00:34:38,700 You have to build your circuit within two minutes, 562 00:34:38,840 --> 00:34:40,780 or we give up and we're not going to use it. 563 00:34:41,100 --> 00:34:43,200 So some circuits finish building really fast. 564 00:34:43,480 --> 00:34:45,320 One or two seconds is all it takes, 565 00:34:45,360 --> 00:34:46,060 and you've got your circuit. 566 00:34:46,360 --> 00:34:48,880 Others of them take 20 or 30 seconds to build. 567 00:34:49,060 --> 00:34:50,640 So the first thing to keep in mind, 568 00:34:50,740 --> 00:34:52,760 if it takes 30 seconds to build, 569 00:34:52,780 --> 00:34:53,480 to build your circuit, 570 00:34:54,220 --> 00:34:55,440 that circuit's going to suck. 571 00:34:55,660 --> 00:34:57,120 It's not going to give you good performance. 572 00:34:57,720 --> 00:35:00,420 So we can look at how fast it takes to build the circuit 573 00:35:00,420 --> 00:35:03,520 and predict how good that circuit's going to be. 574 00:35:03,800 --> 00:35:04,960 So the next step is, 575 00:35:05,140 --> 00:35:06,980 if it takes too long to build the circuit, 576 00:35:07,180 --> 00:35:08,520 throw it away. Don't even use it. 577 00:35:08,940 --> 00:35:11,160 And it would be great to have a fixed timeout 578 00:35:11,160 --> 00:35:13,120 to say, if it takes more than 10 seconds 579 00:35:13,120 --> 00:35:14,620 to build your circuit, then throw it away. 580 00:35:14,800 --> 00:35:15,560 Nobody's going to use it. 581 00:35:15,760 --> 00:35:18,460 But if you're some poor Tor user in Madagascar 582 00:35:18,460 --> 00:35:20,760 or something, and you've got a satellite uplink, 583 00:35:20,760 --> 00:35:23,580 and you only get your packets every so often, 584 00:35:23,740 --> 00:35:26,740 then if we put a fixed upper bound 585 00:35:26,740 --> 00:35:27,500 at 10 seconds, 586 00:35:27,700 --> 00:35:29,380 you're never going to build any circuits. 587 00:35:29,960 --> 00:35:31,800 So the answer we've got in mind now 588 00:35:31,800 --> 00:35:34,060 is every Tor client should watch 589 00:35:34,060 --> 00:35:36,480 what it sees in terms of how fast it takes 590 00:35:36,480 --> 00:35:37,960 to build circuits for it, 591 00:35:38,080 --> 00:35:40,040 and build a little database inside 592 00:35:40,040 --> 00:35:41,780 to figure out what the median 593 00:35:41,780 --> 00:35:43,280 and the standard devs and so on 594 00:35:43,280 --> 00:35:44,580 that it's been seeing lately. 595 00:35:44,860 --> 00:35:46,900 And if it takes me more than a standard dev 596 00:35:46,900 --> 00:35:48,340 above what I've been doing lately, 597 00:35:48,580 --> 00:35:50,020 then throw that circuit away. 598 00:35:50,760 --> 00:35:52,740 And hopefully that will make it more adaptive, 599 00:35:53,540 --> 00:35:55,180 yet still be able to throw away 600 00:35:55,180 --> 00:35:56,740 the circuits that are probably not going to be good. 601 00:35:57,660 --> 00:35:59,160 We need to do something similar 602 00:35:59,160 --> 00:36:00,100 for stream timeouts. 603 00:36:00,360 --> 00:36:02,080 So right now the stream timeouts 604 00:36:02,080 --> 00:36:02,940 are hard-coded. 605 00:36:04,000 --> 00:36:06,820 So a stream is a request for a website, 606 00:36:06,920 --> 00:36:08,240 like BBC or something like that. 607 00:36:08,360 --> 00:36:10,520 So if I ask for BBC port 80, 608 00:36:10,680 --> 00:36:12,500 and it takes more than 10 seconds 609 00:36:12,500 --> 00:36:14,140 to get the, yes, I've got a connection, 610 00:36:14,400 --> 00:36:16,320 then I say, well, I guess that circuit sucks. 611 00:36:16,460 --> 00:36:18,200 I'm going to throw that away, and I'm going to try a new one. 612 00:36:18,360 --> 00:36:20,160 And if it takes more than 15 seconds 613 00:36:20,760 --> 00:36:21,880 to get the next one, I'm going to throw it away 614 00:36:21,880 --> 00:36:22,680 and move to a new one. 615 00:36:22,880 --> 00:36:25,740 So we've got a fixed timeout of 15 seconds. 616 00:36:26,040 --> 00:36:27,820 If there's some guy in Zimbabwe 617 00:36:27,820 --> 00:36:29,440 trying to use a modem, 618 00:36:29,460 --> 00:36:31,580 or a more important answer these days, 619 00:36:31,720 --> 00:36:33,080 if there's some guy in Iran 620 00:36:33,080 --> 00:36:35,120 who really wants to get his message out, 621 00:36:35,220 --> 00:36:37,400 but he only has 15 seconds 622 00:36:37,400 --> 00:36:38,800 or his Tor gives up, 623 00:36:39,000 --> 00:36:41,640 then he's not going to be able to connect 624 00:36:41,640 --> 00:36:43,260 a lot of the times, and he'll start saying, 625 00:36:43,460 --> 00:36:45,780 well, I was planning to be patient. 626 00:36:45,960 --> 00:36:47,580 I'm willing to spend 30 minutes 627 00:36:47,580 --> 00:36:49,580 to get my tweet out, but this Tor thing 628 00:36:50,760 --> 00:36:51,180 is going to take 24 hours. 629 00:36:52,740 --> 00:36:53,940 And then the last one, 630 00:36:54,000 --> 00:36:56,480 I think I'm probably running low on time. 631 00:36:56,580 --> 00:36:57,640 Is my goon back in here? 632 00:36:57,760 --> 00:36:58,900 Do I know how much time I have? 633 00:37:01,120 --> 00:37:01,540 Okay. 634 00:37:03,080 --> 00:37:04,100 Okay, sounds great. 635 00:37:05,400 --> 00:37:06,040 Okay, so 636 00:37:06,040 --> 00:37:08,380 the sixth category we need to look at, 637 00:37:09,380 --> 00:37:11,360 so this whole directory overhead stuff. 638 00:37:11,540 --> 00:37:12,340 How many people here 639 00:37:12,340 --> 00:37:13,860 have heard a previous Tor talk 640 00:37:13,860 --> 00:37:16,120 or heard me talk about directory stuff 641 00:37:16,120 --> 00:37:17,300 and things like that? 642 00:37:17,900 --> 00:37:19,360 Some hands, not quite as many. 643 00:37:20,760 --> 00:37:21,780 The big idea for Tor's directory 644 00:37:21,780 --> 00:37:24,740 is we want to somehow give every client 645 00:37:24,740 --> 00:37:26,380 a list of all the relays out there. 646 00:37:26,500 --> 00:37:28,000 Their addresses, their keys, 647 00:37:28,440 --> 00:37:29,940 exit policies, stuff like that. 648 00:37:30,160 --> 00:37:31,560 And there are a couple of different 649 00:37:31,560 --> 00:37:32,760 contradictory goals here. 650 00:37:32,900 --> 00:37:35,540 One of them is we really want every client 651 00:37:35,540 --> 00:37:37,500 to learn about every relay ASAP. 652 00:37:37,900 --> 00:37:40,520 Because if there's a relay on a dynamic IP address 653 00:37:40,520 --> 00:37:42,240 and it's going to disappear in a little while, 654 00:37:42,460 --> 00:37:44,480 then we really want to use it right now 655 00:37:44,480 --> 00:37:45,580 before it disappears. 656 00:37:46,360 --> 00:37:48,220 On the other hand, we really want 657 00:37:48,220 --> 00:37:49,980 every client to have the same view 658 00:37:49,980 --> 00:37:52,000 of the network as every other client. 659 00:37:52,300 --> 00:37:54,160 Because if each client has a different set 660 00:37:54,160 --> 00:37:55,460 of the relays that it knows about, 661 00:37:55,700 --> 00:37:58,020 then you can start partitioning the users. 662 00:37:58,160 --> 00:37:59,860 You can say, well, I know that Alice 663 00:37:59,860 --> 00:38:01,280 didn't know about that relay, 664 00:38:01,440 --> 00:38:04,080 so the person who just used that relay wasn't Alice. 665 00:38:04,400 --> 00:38:06,060 And these attacks get a lot more 666 00:38:06,060 --> 00:38:07,680 complicated and potentially 667 00:38:07,680 --> 00:38:08,580 a lot more deadly. 668 00:38:09,240 --> 00:38:11,760 And then the third goal is we really want to scale it 669 00:38:11,760 --> 00:38:14,780 so that you can have 20,000 or 30,000 relays. 670 00:38:15,020 --> 00:38:16,540 So there are a bunch of different approaches 671 00:38:16,540 --> 00:38:18,140 we've been using for this over the years. 672 00:38:18,220 --> 00:38:20,420 At the very beginning, when we had 50 relays, 673 00:38:20,860 --> 00:38:22,360 it was just a big text file. 674 00:38:22,440 --> 00:38:24,100 It's a big pile of server descriptors. 675 00:38:24,140 --> 00:38:25,620 And each server descriptor says, 676 00:38:25,740 --> 00:38:28,240 this is my address and keys and exit policies and so on. 677 00:38:28,380 --> 00:38:30,100 And at the top of that big blob 678 00:38:30,100 --> 00:38:32,200 was a little summary of 679 00:38:32,200 --> 00:38:33,840 these are the relays that are up, 680 00:38:33,960 --> 00:38:35,780 these are the relays that are fast, stuff like that. 681 00:38:35,960 --> 00:38:37,900 So we switched a few years ago 682 00:38:37,900 --> 00:38:40,060 to what's called the version 3 directory design 683 00:38:40,060 --> 00:38:42,000 where we have a network status, 684 00:38:42,100 --> 00:38:42,980 which is that summary. 685 00:38:43,160 --> 00:38:45,340 It's about 150 kilobytes or something. 686 00:38:45,480 --> 00:38:47,280 And for each relay, it says, 687 00:38:48,220 --> 00:38:49,200 here's the server descriptor you should get, 688 00:38:49,300 --> 00:38:51,140 here's the address, this is whether it's up, 689 00:38:51,220 --> 00:38:53,300 here's the capacity, stuff like that. 690 00:38:53,460 --> 00:38:55,780 And then the client fetches that pretty often 691 00:38:55,780 --> 00:38:57,600 and then fetches the server descriptors 692 00:38:57,600 --> 00:38:59,820 with the actual keys and stuff like that 693 00:38:59,820 --> 00:39:01,460 only as they need to. 694 00:39:01,920 --> 00:39:04,440 So each relay puts out a new server descriptor 695 00:39:04,440 --> 00:39:06,340 once a day, which means that the clients 696 00:39:06,340 --> 00:39:07,860 are only going to update their information 697 00:39:07,860 --> 00:39:09,340 about that relay once a day. 698 00:39:09,480 --> 00:39:11,160 So this is a lot better, 699 00:39:11,280 --> 00:39:13,580 but we're still having clients fetch 700 00:39:14,520 --> 00:39:16,460 150 kilobytes every couple of hours 701 00:39:16,460 --> 00:39:18,200 and then something else 702 00:39:18,220 --> 00:39:19,960 like 3 megabytes daily 703 00:39:19,960 --> 00:39:21,660 spread out over the course of the day. 704 00:39:21,840 --> 00:39:23,360 That works fine for us, 705 00:39:23,520 --> 00:39:25,400 but what about that poor person in 706 00:39:25,400 --> 00:39:27,840 name some other country on a modem 707 00:39:27,840 --> 00:39:30,540 who spends 20%, 30%, 708 00:39:30,540 --> 00:39:31,920 90% of his 709 00:39:31,920 --> 00:39:33,480 online time 710 00:39:34,040 --> 00:39:35,520 downloading Tor's directory information? 711 00:39:36,000 --> 00:39:37,300 That's not what we meant to do. 712 00:39:37,640 --> 00:39:39,320 So the next step is we're going to 713 00:39:40,000 --> 00:39:41,720 make it so clients don't need 714 00:39:41,720 --> 00:39:43,340 to learn descriptors at all. 715 00:39:43,740 --> 00:39:45,280 Everything that's in a descriptor, 716 00:39:45,300 --> 00:39:47,560 we can condense it down 717 00:39:48,220 --> 00:39:48,940 and put it in the consensus, 718 00:39:49,200 --> 00:39:50,980 which means you get it every couple of hours 719 00:39:50,980 --> 00:39:53,040 automatically, or we can put it in this 720 00:39:53,040 --> 00:39:54,420 new thing called a micro descriptor 721 00:39:54,420 --> 00:39:56,960 which just has really long term information 722 00:39:56,960 --> 00:39:58,860 that doesn't change except maybe once a week 723 00:39:58,860 --> 00:39:59,560 or more than that. 724 00:39:59,820 --> 00:40:02,720 So the clients, when they're first bootstrapping 725 00:40:02,720 --> 00:40:04,240 they'll have to fetch this, but after that 726 00:40:04,240 --> 00:40:06,160 they won't have to update it daily. 727 00:40:07,660 --> 00:40:09,440 So there are a couple of other things 728 00:40:09,440 --> 00:40:10,240 we could talk about. 729 00:40:10,860 --> 00:40:12,260 One of the challenges we've got, 730 00:40:12,400 --> 00:40:14,260 how do we know whether we should do 731 00:40:14,260 --> 00:40:15,340 a given design change? 732 00:40:15,580 --> 00:40:18,240 I've talked about a whole lot 733 00:40:18,240 --> 00:40:19,600 of different ideas we have here. 734 00:40:20,100 --> 00:40:22,420 There's a problem with congestion, we should change to this. 735 00:40:22,540 --> 00:40:23,780 There's a problem with circuit windows, 736 00:40:23,960 --> 00:40:24,840 we should change to this. 737 00:40:26,020 --> 00:40:27,600 Which one should we actually do? 738 00:40:27,940 --> 00:40:29,980 When I'm talking about giving different priorities 739 00:40:29,980 --> 00:40:31,780 for different cells based on which 740 00:40:31,780 --> 00:40:34,080 circuits have been really loud lately 741 00:40:34,080 --> 00:40:35,160 or not so loud, 742 00:40:35,600 --> 00:40:37,880 how do we actually tune that? 743 00:40:38,040 --> 00:40:39,820 How do we figure out, well, 744 00:40:39,900 --> 00:40:41,960 if you've been 90% louder than the other one 745 00:40:41,960 --> 00:40:43,340 then you go first, otherwise 746 00:40:44,260 --> 00:40:45,800 how do we know whether we've gotten them right? 747 00:40:45,980 --> 00:40:47,760 So it would be really great to have a TOR network 748 00:40:47,760 --> 00:40:50,220 simulator that knows enough about 749 00:40:50,220 --> 00:40:51,840 what cells are and circuits 750 00:40:51,840 --> 00:40:54,100 and so on, but doesn't actually model 751 00:40:54,100 --> 00:40:56,440 every single TCP packet going back and forth. 752 00:40:56,640 --> 00:40:58,220 There are a lot of systems people out there 753 00:40:58,220 --> 00:41:00,140 who are happy to say, yeah, I've got this 754 00:41:00,140 --> 00:41:01,860 thing, but it can only simulate it 755 00:41:01,860 --> 00:41:04,300 100 times slower than reality 756 00:41:04,300 --> 00:41:06,000 because it has to keep track of all the 757 00:41:06,000 --> 00:41:07,760 sequence numbers and all of that. 758 00:41:07,920 --> 00:41:09,840 So it would be great if somebody could build a simulator 759 00:41:09,840 --> 00:41:12,340 that only paid attention to the right stuff. 760 00:41:12,720 --> 00:41:14,240 Doing measurements is a really good 761 00:41:14,260 --> 00:41:16,020 start. Every week or so, 762 00:41:16,100 --> 00:41:17,780 Karsten comes up with a new graph saying, 763 00:41:17,920 --> 00:41:20,060 I have no idea why there's a bump over there. 764 00:41:20,180 --> 00:41:22,180 What's wrong with our network such that we can 765 00:41:22,180 --> 00:41:24,060 fix that? And we've got actual 766 00:41:24,060 --> 00:41:26,000 data. There are a lot of 767 00:41:26,960 --> 00:41:28,200 we've got a person working 768 00:41:28,200 --> 00:41:30,280 full time at this point trying to figure 769 00:41:30,280 --> 00:41:32,160 out how do I measure TOR safely? 770 00:41:32,540 --> 00:41:34,180 How do I figure out 771 00:41:34,180 --> 00:41:35,840 how many users there are, 772 00:41:35,980 --> 00:41:37,700 what countries they're coming from, 773 00:41:37,940 --> 00:41:40,280 how large their downloads 774 00:41:40,280 --> 00:41:42,160 are without learning 775 00:41:42,160 --> 00:41:44,200 anything about who they are or where they are 776 00:41:44,260 --> 00:41:45,660 or what they're doing and stuff like that. 777 00:41:45,900 --> 00:41:47,960 So this is a challenging research problem, 778 00:41:48,100 --> 00:41:49,840 but we're actually starting to put out some graphs 779 00:41:49,840 --> 00:41:51,080 and data and stuff like that. 780 00:41:51,860 --> 00:41:53,540 And then the real challenge, 781 00:41:54,240 --> 00:41:55,720 what about the anonymity implications 782 00:41:55,720 --> 00:41:58,140 of all these things? We've got a lot 783 00:41:58,140 --> 00:42:00,000 of performance versus security 784 00:42:00,000 --> 00:42:02,060 trade-offs to do. How do 785 00:42:02,060 --> 00:42:04,040 we choose the right balance? On the one 786 00:42:04,040 --> 00:42:05,780 hand, if TOR is not useful, 787 00:42:05,860 --> 00:42:07,860 except for the guy who's downloading a DVD 788 00:42:07,860 --> 00:42:09,940 while he's asleep, that sucks. 789 00:42:10,480 --> 00:42:11,940 On the other hand, if TOR 790 00:42:11,940 --> 00:42:13,280 is pretty secure 791 00:42:14,260 --> 00:42:15,580 and if you're dedicated and you're 792 00:42:16,260 --> 00:42:18,020 patient, then it will work 793 00:42:18,020 --> 00:42:20,040 for you and it provides better 794 00:42:20,040 --> 00:42:22,040 security than it would otherwise, then 795 00:42:22,040 --> 00:42:24,280 that's great. How do we get the right balance? 796 00:42:25,060 --> 00:42:26,160 And with that, I've 797 00:42:26,160 --> 00:42:28,180 got one last slide that we put on our 798 00:42:28,180 --> 00:42:30,240 blog a little while ago of the number 799 00:42:30,240 --> 00:42:31,760 of users showing up from 800 00:42:31,760 --> 00:42:33,580 Iran and from China 801 00:42:34,040 --> 00:42:36,160 over the course of June. And the 802 00:42:36,160 --> 00:42:37,960 Iranian election happened right about 803 00:42:37,960 --> 00:42:40,300 here and from there it spiked 804 00:42:40,300 --> 00:42:42,160 up to something like 8,000 people 805 00:42:42,160 --> 00:42:43,940 a day connecting and 806 00:42:44,400 --> 00:42:45,880 on the one hand, that's kind of small. 807 00:42:46,020 --> 00:42:48,000 There are millions of people there. On the other hand, 808 00:42:48,000 --> 00:42:50,140 if each one of these people is trying 809 00:42:50,140 --> 00:42:52,100 to get a tweet out or trying to learn where 810 00:42:52,100 --> 00:42:53,940 the next event is or something like that, 811 00:42:54,140 --> 00:42:55,920 then you can coordinate pretty well 812 00:42:55,920 --> 00:42:58,080 with a small number of people learning 813 00:42:58,080 --> 00:43:00,140 and providing information. And 814 00:43:00,140 --> 00:43:02,160 at the same time, I've got a graph from China here. 815 00:43:02,380 --> 00:43:04,200 This was the day when China 816 00:43:04,200 --> 00:43:05,800 said, no 817 00:43:05,800 --> 00:43:07,840 Gmail for you. We're going to block Google 818 00:43:07,840 --> 00:43:10,120 search, we're going to block Google mail, we're 819 00:43:10,120 --> 00:43:11,780 going to block Google calendar, 820 00:43:12,060 --> 00:43:14,140 other stuff. And there were a lot of people 821 00:43:14,260 --> 00:43:16,180 in China who ordinarily 822 00:43:16,180 --> 00:43:18,160 were saying, you know, our firewall 823 00:43:18,160 --> 00:43:20,300 isn't so bad. Mostly they keep us safe. 824 00:43:20,580 --> 00:43:22,220 And suddenly there were a lot of people 825 00:43:22,220 --> 00:43:24,040 there saying, wait a minute, they can do 826 00:43:24,040 --> 00:43:26,060 that? They did do 827 00:43:26,060 --> 00:43:27,880 that? I'm not so sure I 828 00:43:27,880 --> 00:43:29,240 like being firewalled anymore. 829 00:43:30,040 --> 00:43:32,040 But that's a separate talk. And I have 830 00:43:32,040 --> 00:43:34,040 a few minutes for questions, I think, and then 831 00:43:34,040 --> 00:43:36,220 I'll get bundled off somewhere else. Shout it out 832 00:43:36,220 --> 00:43:36,680 real loud. 833 00:43:41,120 --> 00:43:42,020 Have I considered 834 00:43:42,020 --> 00:43:44,000 using PlanetLab or Genie for testing 835 00:43:44,260 --> 00:43:46,100 for a large scale? Tor is bigger 836 00:43:46,100 --> 00:43:48,000 than PlanetLab. So 837 00:43:48,000 --> 00:43:50,180 there are a bunch of researchers 838 00:43:50,180 --> 00:43:51,920 who are using PlanetLab for their tests. 839 00:43:52,240 --> 00:43:54,060 Part of the challenge with all these 840 00:43:54,060 --> 00:43:55,760 emergent behaviors with Tor 841 00:43:55,760 --> 00:43:58,120 is that Tor worked great when we 842 00:43:58,120 --> 00:44:00,100 only had 100,000 users and there 843 00:44:00,100 --> 00:44:02,140 were 1,000 relays. Everything was fast 844 00:44:02,140 --> 00:44:04,020 and smooth and there were no surprises. 845 00:44:04,320 --> 00:44:05,920 And then when the network gets too 846 00:44:05,920 --> 00:44:08,100 overloaded and we end up with several 847 00:44:08,100 --> 00:44:09,600 100,000 users and 848 00:44:09,600 --> 00:44:12,260 I don't even know how many users we have. 849 00:44:13,100 --> 00:44:14,040 Then it all 850 00:44:14,260 --> 00:44:15,720 started going bad in funny ways. 851 00:44:16,000 --> 00:44:18,140 So the real challenge is once 852 00:44:18,140 --> 00:44:19,900 you push it past its breaking point, 853 00:44:20,040 --> 00:44:22,100 how does it break? And stuff 854 00:44:22,100 --> 00:44:24,220 like PlanetLab should help us 855 00:44:24,220 --> 00:44:25,100 with that sort of thing. 856 00:44:25,660 --> 00:44:28,180 One last question before I'm pulled off the... 857 00:44:28,180 --> 00:44:28,400 Yes? 858 00:44:35,460 --> 00:44:36,420 So L7 859 00:44:36,420 --> 00:44:37,840 is the DPI thing that says 860 00:44:37,840 --> 00:44:40,140 I know what protocol that is, right? So the question 861 00:44:40,140 --> 00:44:42,220 is have you thought about using DPI 862 00:44:42,220 --> 00:44:44,160 on Tor to sense 863 00:44:44,260 --> 00:44:46,200 or certain protocols because then 864 00:44:46,200 --> 00:44:48,020 the network would get better? We thought 865 00:44:48,020 --> 00:44:50,220 about it, yeah. It seems like a bad idea though 866 00:44:50,220 --> 00:44:52,260 for a couple of reasons. One of 867 00:44:52,260 --> 00:44:54,400 them is that we're big fans of anonymity 868 00:44:54,400 --> 00:44:55,600 and we don't want to know what you're doing. 869 00:44:55,900 --> 00:44:58,020 Another one is once you start doing 870 00:44:58,020 --> 00:45:00,300 the whole I'm looking at your data 871 00:45:00,300 --> 00:45:02,060 and deciding whether it can get 872 00:45:02,060 --> 00:45:03,840 through thing, then you suddenly 873 00:45:03,840 --> 00:45:06,140 switch what sort of liability bucket 874 00:45:06,140 --> 00:45:06,620 you're in. 875 00:45:08,320 --> 00:45:09,380 Those are the big ones. 876 00:45:10,640 --> 00:45:11,940 A third one is 877 00:45:11,940 --> 00:45:13,640 there are a bunch of people doing 878 00:45:14,260 --> 00:45:15,720 HTTP downloads that are also 879 00:45:16,020 --> 00:45:18,080 hurting the network. So I don't want to 880 00:45:18,080 --> 00:45:19,020 blame just BitTorrent. 881 00:45:19,580 --> 00:45:21,820 Another one is the BitTorrent guys 882 00:45:21,820 --> 00:45:23,880 are already engaged in this arms race 883 00:45:23,880 --> 00:45:25,900 with telephone companies. You've heard of 884 00:45:25,900 --> 00:45:28,140 encrypted BitTorrent and doubly encrypted 885 00:45:28,140 --> 00:45:30,040 BitTorrent and really now it's 886 00:45:30,040 --> 00:45:31,260 totally encrypted BitTorrent. 887 00:45:31,760 --> 00:45:33,640 I don't want to get into that arms race. 888 00:45:34,760 --> 00:45:36,140 So we'd like to 889 00:45:36,140 --> 00:45:38,020 solve this without caring what's in the 890 00:45:38,020 --> 00:45:38,260 packet. 891 00:45:42,120 --> 00:45:42,800 Pardon me? 892 00:45:44,260 --> 00:45:46,200 Room 104 is where we will 893 00:45:46,200 --> 00:45:48,140 all go once we get out through that tiny 894 00:45:48,140 --> 00:45:49,460 little door. Thank you.