1 00:00:01,900 --> 00:00:12,020 okay so my name is Ian Clark I'm the founder and project coordinator of the free net project free 2 00:00:12,020 --> 00:00:19,140 net is a piece of open source software that's been around for about four years now free net 3 00:00:19,140 --> 00:00:29,460 first gained some notoriety back in the Napster days because of its potential for distributing 4 00:00:29,460 --> 00:00:36,300 copyrighted information in a way that nobody would really be able to enforce copyright law 5 00:00:36,300 --> 00:00:45,740 on the system that wasn't actually the purpose of the software but hey-ho so what I'm going to talk 6 00:00:45,740 --> 00:00:51,580 about here is firstly just give a really quick rundown on what free net is just as an introduction 7 00:00:51,580 --> 00:00:58,920 and then I'm going to talk a bit about something I think makes free net somewhat unique among the 8 00:00:58,920 --> 00:00:59,440 increase in the number of free net users and the number of free net users and the number of free 9 00:00:59,440 --> 00:01:00,680 net users and the number of free net users and the number of free net users and the number of 10 00:01:00,680 --> 00:01:08,360 free net users and the number of free net users and the number of free net users and the number of 11 00:01:08,360 --> 00:01:09,740 free net users and the number of free net users and the number of free net users and the number 12 00:01:09,740 --> 00:01:10,280 of free net users and the number of free net users and the number of free net users and the number 13 00:01:10,280 --> 00:01:10,640 of free net users and the number of free net users and the number of free net users and the number 14 00:01:10,640 --> 00:01:12,300 of free net users and the number of free net users and the number of free net users and the number 15 00:01:12,300 --> 00:01:15,700 of free net users and the number of free net users and the number of free net users and the number 16 00:01:15,700 --> 00:01:20,480 of free net users and the number of free net users and the number of free net users and the number 17 00:01:20,480 --> 00:01:29,320 of free net users and the number of free net users and the number of free net users and the number 18 00:01:29,320 --> 00:01:38,200 this experience will prove useful to other people considering projects which also explore 19 00:01:38,200 --> 00:01:42,980 the distributed, decentralized, emergent area of the design space. 20 00:01:44,500 --> 00:01:47,320 So, quick background on what Freenet is. 21 00:01:47,500 --> 00:01:55,900 Our goal is to permit publication and retrieval of information across an entirely distributed peer-to-peer network, 22 00:01:55,900 --> 00:02:03,300 which provides practical anonymity for both the publisher of the information and the consumer of that information. 23 00:02:04,680 --> 00:02:11,680 From a user point of view, Freenet looks a bit like the World Wide Web, or at least that's one way you can use it. 24 00:02:12,820 --> 00:02:19,220 Unlike the World Wide Web, of course, when you publish a website, you don't publish it to an identifiable web server. 25 00:02:19,640 --> 00:02:25,500 Rather, it's distributed around the network in a somewhat haphazard way, 26 00:02:25,500 --> 00:02:29,220 which makes it very difficult to identify who the original publisher was. 27 00:02:29,660 --> 00:02:38,380 And secondly, it's also very difficult when someone looks at that website to identify who those people are. 28 00:02:40,320 --> 00:02:46,940 Whenever you're trying to build a system which is designed to make censorship more difficult, 29 00:02:48,240 --> 00:02:50,820 one of the biggest mistakes you could make is say, 30 00:02:50,920 --> 00:02:54,240 okay, we'll just have one big central server and everyone will trust us, 31 00:02:54,300 --> 00:02:55,260 and hey, we're trustworthy. 32 00:02:55,500 --> 00:02:56,360 So why wouldn't they? 33 00:02:57,080 --> 00:03:01,720 We quickly realized that that approach just isn't going to work, 34 00:03:01,860 --> 00:03:08,380 firstly because I'm very susceptible to torture and would quite happily compromise someone's anonymity, 35 00:03:08,440 --> 00:03:11,260 and I'm also quite susceptible to being bribed. 36 00:03:11,860 --> 00:03:16,600 So we realized that we'd need to make the architecture completely decentralized, 37 00:03:16,840 --> 00:03:22,360 such that even its own creators would have a very hard time compromising its anonymity 38 00:03:22,360 --> 00:03:25,480 if for some reason they were motivated to do so. 39 00:03:27,380 --> 00:03:29,760 The architecture is inspired... 40 00:03:29,760 --> 00:03:35,640 My background is that I studied artificial intelligence and computer science for four years, 41 00:03:35,820 --> 00:03:41,620 and one of the areas that really interested me during that time was that of emergent architectures. 42 00:03:41,900 --> 00:03:45,880 We see examples of emergent architectures throughout nature. 43 00:03:46,960 --> 00:03:52,980 If you look around, you'll probably see an ant colony outside your hotel room, 44 00:03:53,080 --> 00:03:55,180 or if you're unlucky, inside your hotel room. 45 00:03:55,180 --> 00:03:56,320 Here somewhere. 46 00:03:56,520 --> 00:04:02,560 And one of the fascinating things about, for example, an ant colony or a flock of birds, 47 00:04:02,700 --> 00:04:07,660 is that these individually quite simple creatures, or creatures following quite simple rules, 48 00:04:07,860 --> 00:04:13,660 can exhibit very sophisticated behavior when you put a whole bunch of them together and allow them to interact. 49 00:04:14,020 --> 00:04:21,780 I was very interested in trying to find a practical application for such an emergent architecture, 50 00:04:21,780 --> 00:04:31,520 and I believe I found such an application in trying to build Freenet to achieve these goals. 51 00:04:34,700 --> 00:04:41,020 So, obviously another important criteria of any such architecture like this is that it must be scalable. 52 00:04:42,500 --> 00:04:47,940 Since Freenet relies on emergent principles heuristics, 53 00:04:48,520 --> 00:04:51,700 you can't really make guarantees about it. 54 00:04:51,780 --> 00:04:52,820 You can't make guarantees about its scalability characteristics. 55 00:04:53,360 --> 00:04:54,660 However, it's... 56 00:04:54,660 --> 00:04:57,680 Can everyone hear me, by the way? It's quite noisy out there. 57 00:05:00,040 --> 00:05:05,240 However, you can make average case experimental analysis, 58 00:05:05,460 --> 00:05:09,500 and we've determined that it pretty much has logarithmic scalability, 59 00:05:10,340 --> 00:05:16,480 which is somewhat in line with what our concept of how it works would say, 60 00:05:16,600 --> 00:05:20,540 because it approximates a distributed... 61 00:05:20,540 --> 00:05:25,400 Sorry, a binary search tree in terms of how it works. 62 00:05:25,500 --> 00:05:28,560 You could look at it as a binary search tree on drugs, 63 00:05:28,840 --> 00:05:33,900 extremely confused but relying on somewhat the same principle to find information efficiently. 64 00:05:35,120 --> 00:05:36,120 And it's robust. 65 00:05:37,040 --> 00:05:40,100 You know, it would be pointless to build a system like this, 66 00:05:40,220 --> 00:05:43,440 particularly when it's open source, if someone can just get the source code, 67 00:05:43,640 --> 00:05:49,620 modify it in certain ways, reintroduce their cancerous peer 68 00:05:49,620 --> 00:05:53,980 back into the network, and that can have a significant destructive effect. 69 00:05:54,220 --> 00:05:58,340 So, one of the other things we try to achieve is make the network tolerant 70 00:05:58,340 --> 00:06:04,000 either to faulty nodes or to malicious destructive behavior. 71 00:06:04,720 --> 00:06:09,680 And we've tested this quite thoroughly because we have, you know, 72 00:06:09,700 --> 00:06:14,500 tend to do a pretty good job of ourselves creating nodes which, 73 00:06:14,680 --> 00:06:18,360 not deliberately, but creating nodes which have a pretty destructive effect 74 00:06:18,360 --> 00:06:19,500 on the rest of the network. 75 00:06:21,360 --> 00:06:22,780 History, very quickly. 76 00:06:23,080 --> 00:06:28,840 I first started thinking about this around 1997, September 1998, 77 00:06:28,980 --> 00:06:32,760 while a fourth year student at Edinburgh University in Scotland. 78 00:06:32,860 --> 00:06:36,480 I started working on a design which I finished in July 1999. 79 00:06:37,720 --> 00:06:42,260 That basically, very basic simulation, but which more or less demonstrated 80 00:06:42,260 --> 00:06:45,640 that this thing was going to scale, it was fault tolerant, 81 00:06:45,640 --> 00:06:49,200 and was worth investigating further. 82 00:06:49,940 --> 00:06:56,300 I then invited volunteers to come and help me make this thing a reality. 83 00:06:56,940 --> 00:07:03,060 We decided to implement it in Java for reasons of portability, 84 00:07:05,160 --> 00:07:09,480 and because it happened to be the language I knew at the time. 85 00:07:11,320 --> 00:07:15,040 And in March 2000, we released version, 86 00:07:15,640 --> 00:07:17,620 1.0 of the Freenet software. 87 00:07:17,920 --> 00:07:21,260 Since then, we've had over 2 million downloads of the software. 88 00:07:21,800 --> 00:07:27,460 And the current status is that we're preparing for the 0.6 release. 89 00:07:28,820 --> 00:07:30,800 So what am I going to talk about here? 90 00:07:33,000 --> 00:07:38,160 I'm basically going to talk about, to really give a snapshot of 91 00:07:39,020 --> 00:07:43,460 what the development process with a piece of software like this is like 92 00:07:43,460 --> 00:07:45,620 when you're, you know, trying out a new software, 93 00:07:45,640 --> 00:07:48,360 you get ideas, you implement some code one day, 94 00:07:48,400 --> 00:07:51,620 the following day a bunch of people are actually running it in the network. 95 00:07:52,100 --> 00:07:54,880 Sometimes it screws things up, sometimes it helps. 96 00:07:55,060 --> 00:07:58,040 How do you figure out what's going on if it screws things up? 97 00:07:58,100 --> 00:07:59,500 How do you know what screwed it up? 98 00:08:00,160 --> 00:08:03,820 And there are really a lot of, you know, competing goals 99 00:08:04,540 --> 00:08:06,220 that we have to deal with. 100 00:08:06,480 --> 00:08:09,000 You know, we have to keep our users moderately happy. 101 00:08:09,640 --> 00:08:13,280 We have to, you know, sometimes we just need to do things 102 00:08:13,280 --> 00:08:16,600 to learn what if we try this. 103 00:08:18,060 --> 00:08:20,740 And, you know, so sometimes we piss off our users, 104 00:08:20,880 --> 00:08:24,620 sometimes we piss off developers, but, you know, it's a balancing act. 105 00:08:29,060 --> 00:08:32,580 So, firstly, I'm going to talk about something called 106 00:08:32,580 --> 00:08:36,560 next generation routing, which I think about a year ago, 107 00:08:38,200 --> 00:08:42,600 we started to think, well, how are we going to improve 108 00:08:42,600 --> 00:08:44,180 the Freenet routing algorithm? 109 00:08:45,140 --> 00:08:48,720 I'm not in this talk describing the previous routing algorithm, 110 00:08:48,980 --> 00:08:52,220 so it might be a bit difficult to contrast them, 111 00:08:52,440 --> 00:08:56,380 but basically the previous routing algorithm assumed a flat internet. 112 00:08:56,700 --> 00:09:00,340 It assumed that any two IP addresses were equal. 113 00:09:01,040 --> 00:09:05,720 It made no distinction between an IP address that was just down the street 114 00:09:05,720 --> 00:09:08,820 and an IP address which was on the far side of the planet 115 00:09:08,820 --> 00:09:12,580 at the end of a, you know, 28.8k motorway. 116 00:09:12,600 --> 00:09:19,500 We wanted to allow Freenet to take that kind of thing into account 117 00:09:19,500 --> 00:09:22,560 when it's deciding how to find information. 118 00:09:23,280 --> 00:09:26,440 In doing so, we obviously wanted to retain the spirit 119 00:09:26,440 --> 00:09:28,800 of the decentralized emergent architecture, 120 00:09:29,000 --> 00:09:30,300 something I think this achieves. 121 00:09:30,620 --> 00:09:36,020 And the basic principle was that nodes in the Freenet network, 122 00:09:36,260 --> 00:09:41,660 which are designed to learn how to route information more effectively with time, 123 00:09:41,660 --> 00:09:46,840 we wanted to have those nodes make better use of the information 124 00:09:46,840 --> 00:09:49,140 that is available to them. 125 00:09:51,440 --> 00:09:55,860 The other thing I'm going to talk about is rate limiting. 126 00:09:56,500 --> 00:09:59,740 Freenet broke in June 2003. 127 00:10:00,180 --> 00:10:04,700 That's essentially stopped working during a surprisingly short period of time 128 00:10:04,700 --> 00:10:06,800 during which we hadn't really done anything. 129 00:10:07,700 --> 00:10:10,440 This was annoying because 130 00:10:10,440 --> 00:10:12,620 when something like that happens, 131 00:10:12,840 --> 00:10:16,000 it's impossible, in this kind of architecture, 132 00:10:16,260 --> 00:10:21,020 it's impossible to apply the classic reductionist approach to debugging. 133 00:10:21,500 --> 00:10:24,480 When normally you want to debug something, 134 00:10:25,140 --> 00:10:27,640 it essentially, you start a process of elimination, 135 00:10:28,020 --> 00:10:30,500 you simplify the problem, you simplify what it's doing, 136 00:10:30,640 --> 00:10:35,960 and eventually you narrow it down to the specific thing that's broken. 137 00:10:36,240 --> 00:10:40,020 And generally speaking, except in some pretty heinous cases, 138 00:10:40,020 --> 00:10:45,020 given sufficient time, you will be successful in debugging the problem. 139 00:10:45,500 --> 00:10:50,320 That does not work with a large-scale emergent architecture. 140 00:10:50,640 --> 00:10:55,540 If you notice that this ant colony is suddenly just not working anymore 141 00:10:55,540 --> 00:11:00,660 and the ants are wandering around and not collecting food 142 00:11:00,660 --> 00:11:02,060 and not doing what they should do, 143 00:11:02,240 --> 00:11:05,740 it's actually pretty difficult to take an individual ant, 144 00:11:06,000 --> 00:11:07,340 analyze its behavior, 145 00:11:07,340 --> 00:11:12,940 and figure out why that local behavior on that specific thing 146 00:11:12,940 --> 00:11:15,780 is having this nasty global effect. 147 00:11:16,060 --> 00:11:19,460 And maybe it's something that's nothing to do with the ants themselves. 148 00:11:19,860 --> 00:11:24,260 Maybe it's because the temperature just got warmer or whatever. 149 00:11:24,720 --> 00:11:28,940 So it's very difficult to debug these things when they break. 150 00:11:30,060 --> 00:11:34,680 And it took us about six months to debug this. 151 00:11:35,360 --> 00:11:37,280 The problem turned out to be 152 00:11:37,340 --> 00:11:40,660 chronic overloading of the network. 153 00:11:41,080 --> 00:11:45,400 And the problem turned out to be 154 00:11:46,340 --> 00:11:50,320 somewhat analogous to an ant colony suddenly stopping working 155 00:11:50,320 --> 00:11:51,880 because the temperature increases. 156 00:11:52,520 --> 00:11:55,100 Because what caused the problem were 157 00:11:55,100 --> 00:11:58,400 people started to use Freenet in a different way, 158 00:11:58,580 --> 00:12:02,120 and they started to do things, pretty antisocial things, 159 00:12:02,280 --> 00:12:04,120 like pump requests into the network, 160 00:12:06,100 --> 00:12:08,900 essentially pumping more requests into the network 161 00:12:08,900 --> 00:12:10,400 than the network could handle. 162 00:12:10,640 --> 00:12:13,400 And the network was not equipped to deal with that, 163 00:12:13,500 --> 00:12:15,920 but it had not been an issue previously. 164 00:12:16,960 --> 00:12:19,940 So we wanted to find an elegant solution to this problem. 165 00:12:20,180 --> 00:12:22,340 That's the second thing I'm going to talk about. 166 00:12:23,960 --> 00:12:25,980 So, next generation routing. 167 00:12:29,480 --> 00:12:31,940 Just going back a little bit, very basically, 168 00:12:32,060 --> 00:12:33,840 what a Freenet node does is, 169 00:12:34,120 --> 00:12:37,900 it receives a request for a specific key, 170 00:12:38,060 --> 00:12:41,500 piece of information identified by a 160-bit hash, 171 00:12:41,800 --> 00:12:43,040 160-bit number, 172 00:12:43,200 --> 00:12:45,600 and it tries to get that key 173 00:12:45,600 --> 00:12:49,240 and return that data to the person that asked for it. 174 00:12:49,340 --> 00:12:51,880 The easiest way for a Freenet node to do that 175 00:12:51,880 --> 00:12:54,840 is if it happens to be caching the information locally, 176 00:12:55,040 --> 00:12:57,140 in which case it will do it immediately. 177 00:12:58,480 --> 00:13:01,380 Failing that, the Freenet node has to decide 178 00:13:01,980 --> 00:13:03,680 which of the other Freenet nodes 179 00:13:04,120 --> 00:13:08,060 of which it is aware it should forward that request to, 180 00:13:08,300 --> 00:13:12,000 which other peer is most likely to be able to respond 181 00:13:12,000 --> 00:13:14,560 to that request, or if not, 182 00:13:14,740 --> 00:13:16,680 forward it to someone else who can. 183 00:13:17,220 --> 00:13:21,340 This is quite similar to the way people often try to find information. 184 00:13:21,620 --> 00:13:24,180 If you're looking for information on a specific thing 185 00:13:24,180 --> 00:13:25,460 and you don't know it already, 186 00:13:26,860 --> 00:13:28,800 you will think, well, who do I know 187 00:13:28,800 --> 00:13:30,480 is most likely to have that information? 188 00:13:30,800 --> 00:13:32,320 Even if they don't have it, 189 00:13:32,360 --> 00:13:34,100 they're more likely to know something else. 190 00:13:34,120 --> 00:13:35,640 Maybe someone who does, and so on. 191 00:13:35,820 --> 00:13:37,620 And that's actually a very effective way 192 00:13:37,620 --> 00:13:38,620 to find information, 193 00:13:39,260 --> 00:13:40,980 both when people do it 194 00:13:40,980 --> 00:13:42,660 and when Freenet does it, 195 00:13:42,720 --> 00:13:44,600 according to the simulations we've done 196 00:13:44,600 --> 00:13:48,080 and the data that we've recorded on the live network. 197 00:13:49,360 --> 00:13:50,660 The question is, 198 00:13:50,820 --> 00:13:53,000 how does a Freenet node make that decision? 199 00:13:53,240 --> 00:13:54,900 And that's the major change 200 00:13:54,900 --> 00:13:57,920 that occurs with next-generation routing. 201 00:13:58,180 --> 00:14:01,720 The old routing algorithm made a very simple decision. 202 00:14:01,940 --> 00:14:03,200 It basically said, 203 00:14:05,060 --> 00:14:07,160 I'm looking for a key x. 204 00:14:07,960 --> 00:14:10,080 I'm going to forward that request 205 00:14:10,080 --> 00:14:13,580 to whichever other node responded positively 206 00:14:14,120 --> 00:14:16,960 for a key that is close to x. 207 00:14:17,520 --> 00:14:19,080 So it's very simple. 208 00:14:19,220 --> 00:14:25,260 It's using its experience from previous routing 209 00:14:25,260 --> 00:14:27,600 to make future routing decisions. 210 00:14:27,960 --> 00:14:29,680 And that actually worked quite nicely, 211 00:14:29,820 --> 00:14:32,000 but we wanted to make it a lot smarter. 212 00:14:32,980 --> 00:14:33,660 So, 213 00:14:34,440 --> 00:14:37,960 what next-generation routing essentially does now 214 00:14:37,960 --> 00:14:41,540 is it will collect a shitload of data 215 00:14:42,120 --> 00:14:45,300 about the performance of other nodes in the network. 216 00:14:45,500 --> 00:14:47,300 What proportion of requests 217 00:14:47,300 --> 00:14:50,020 that I sent to this node for this key succeeded? 218 00:14:50,160 --> 00:14:52,600 If they succeeded, how long did it take? 219 00:14:52,860 --> 00:14:55,300 If they failed, how long did that take? 220 00:14:55,920 --> 00:14:57,720 If they succeeded, 221 00:14:57,800 --> 00:15:00,820 how quickly was the data transferred once it succeeded? 222 00:15:01,140 --> 00:15:03,380 And a bunch of other similar statistics. 223 00:15:04,800 --> 00:15:07,980 That information is then combined. 224 00:15:08,100 --> 00:15:09,660 When we receive a new request, 225 00:15:10,040 --> 00:15:13,200 we use all of this previously collected information 226 00:15:13,860 --> 00:15:15,400 to, for each peer, 227 00:15:15,620 --> 00:15:16,980 come up with an estimate 228 00:15:16,980 --> 00:15:20,140 of how long we think it will take to find the data. 229 00:15:21,880 --> 00:15:23,920 And we take into account 230 00:15:23,920 --> 00:15:26,420 the possibility that it might not find the data, 231 00:15:26,500 --> 00:15:28,380 in which case the time is 232 00:15:28,380 --> 00:15:29,800 the time it took to fail, 233 00:15:29,940 --> 00:15:32,620 plus the time for someone else to try to find the data. 234 00:15:32,620 --> 00:15:34,900 So we can come up with an estimate 235 00:15:34,900 --> 00:15:36,480 for every peer in the routing table, 236 00:15:36,680 --> 00:15:39,260 then we simply choose the peer with the lowest estimate 237 00:15:39,260 --> 00:15:40,720 and that's where we forward the request. 238 00:15:43,600 --> 00:15:44,120 Okay. 239 00:15:44,320 --> 00:15:48,940 So, then the next issue we need to tackle is, 240 00:15:49,080 --> 00:15:53,820 well, how do you internally represent this information? 241 00:15:54,220 --> 00:15:56,620 So, to simplify it a little bit, 242 00:15:56,800 --> 00:15:58,800 let's say we're just focusing on 243 00:15:58,800 --> 00:16:01,240 how long the request took to succeed, 244 00:16:01,240 --> 00:16:02,980 assuming it succeeded. 245 00:16:03,340 --> 00:16:06,620 Well, as I said previously, 246 00:16:06,940 --> 00:16:08,440 every request in Freenet 247 00:16:08,440 --> 00:16:11,340 is a request for a 160-bit number. 248 00:16:11,660 --> 00:16:13,980 A very, very large number. 249 00:16:14,540 --> 00:16:17,640 And what we wanted to do 250 00:16:17,640 --> 00:16:20,060 was we wanted a Freenet node 251 00:16:20,060 --> 00:16:21,180 to be able to say, 252 00:16:21,320 --> 00:16:23,180 well, a request for key X 253 00:16:23,180 --> 00:16:24,860 when I sent it to this guy 254 00:16:24,860 --> 00:16:26,100 took this long. 255 00:16:26,240 --> 00:16:27,780 A request for key Y 256 00:16:27,780 --> 00:16:29,200 when I sent it to this guy 257 00:16:29,200 --> 00:16:30,320 took this long. 258 00:16:30,320 --> 00:16:34,260 And then infer through interpolation 259 00:16:34,260 --> 00:16:37,120 how long a request for key Z 260 00:16:37,120 --> 00:16:38,900 is going to take. 261 00:16:41,200 --> 00:16:42,640 Here's how we did that. 262 00:16:43,360 --> 00:16:44,500 And this... 263 00:16:45,260 --> 00:16:47,500 We had an earlier version of this 264 00:16:47,500 --> 00:16:49,280 which didn't work very well 265 00:16:49,280 --> 00:16:51,160 and this is kind of a simpler version. 266 00:16:51,340 --> 00:16:52,960 Essentially what you're looking at here 267 00:16:52,960 --> 00:16:56,160 is a Freenet node's internal... 268 00:16:58,900 --> 00:17:00,260 internal representation 269 00:17:00,320 --> 00:17:02,740 for a given peer 270 00:17:03,160 --> 00:17:05,320 and for a given key 271 00:17:05,320 --> 00:17:07,680 sent to that peer... 272 00:17:07,680 --> 00:17:09,600 request for a key sent to that peer. 273 00:17:09,760 --> 00:17:11,360 How long is it going to take? 274 00:17:12,340 --> 00:17:13,920 You can see here 275 00:17:13,920 --> 00:17:18,040 the estimate is represented by a green line. 276 00:17:18,360 --> 00:17:20,920 You'll see also that the key space 277 00:17:20,920 --> 00:17:23,580 is split up into these vertical bars. 278 00:17:24,160 --> 00:17:26,020 Within each vertical bar 279 00:17:26,020 --> 00:17:29,460 we maintain a running average 280 00:17:29,460 --> 00:17:34,440 of the samples for keys 281 00:17:34,440 --> 00:17:36,520 which appeared... 282 00:17:37,640 --> 00:17:40,880 which we sent to another peer 283 00:17:40,880 --> 00:17:41,360 that was there. 284 00:17:41,480 --> 00:17:41,760 So... 285 00:17:42,460 --> 00:17:44,180 Let's give you a specific example. 286 00:17:44,440 --> 00:17:47,620 Let's say we send a peer to... 287 00:17:47,620 --> 00:17:49,500 a request to this peer 288 00:17:49,500 --> 00:17:51,580 for this key here. 289 00:17:51,800 --> 00:17:52,120 Oops. 290 00:17:52,520 --> 00:17:54,380 Along this vertical here. 291 00:17:56,660 --> 00:17:57,800 And we... 292 00:17:58,180 --> 00:17:58,780 It takes... 293 00:17:58,780 --> 00:18:00,100 It takes this long. 294 00:18:00,240 --> 00:18:01,320 Well, we plot... 295 00:18:01,320 --> 00:18:02,480 We plot a point there 296 00:18:02,480 --> 00:18:03,320 and we... 297 00:18:05,480 --> 00:18:07,540 integrate that into the running average 298 00:18:07,540 --> 00:18:10,260 that we're maintaining for that sector. 299 00:18:10,460 --> 00:18:13,780 We then shrink that sector slightly 300 00:18:13,780 --> 00:18:16,100 so we bring its edges closer together. 301 00:18:16,720 --> 00:18:19,680 So, the reason we shrink sectors 302 00:18:19,680 --> 00:18:22,160 is if we're getting a lot... 303 00:18:22,160 --> 00:18:24,160 Let's say this node, as you can see, 304 00:18:24,320 --> 00:18:27,660 is pretty good at responding to requests 305 00:18:27,660 --> 00:18:28,780 in this area. 306 00:18:29,260 --> 00:18:32,240 So, we're assuming that this node 307 00:18:32,240 --> 00:18:34,300 is kind of specialized in that area 308 00:18:34,300 --> 00:18:36,620 and other nodes are going to figure out 309 00:18:36,620 --> 00:18:39,140 that this guy is good at serving requests 310 00:18:39,140 --> 00:18:39,980 in this area 311 00:18:39,980 --> 00:18:42,160 and therefore they're going to send it more requests. 312 00:18:42,580 --> 00:18:45,920 Now, since this peer is a specialist in that area 313 00:18:45,920 --> 00:18:48,160 we want it to be able to maintain 314 00:18:48,160 --> 00:18:49,940 more detailed information 315 00:18:52,940 --> 00:18:56,820 about what kind of estimates 316 00:18:56,820 --> 00:19:00,480 or what kind of request times we're seeing within this area. 317 00:19:00,660 --> 00:19:02,980 And so, we shrink the sector size 318 00:19:03,700 --> 00:19:06,440 so that we can represent the information 319 00:19:06,440 --> 00:19:08,120 with a greater granularity 320 00:19:08,120 --> 00:19:11,440 in areas where that node is getting a lot of requests. 321 00:19:12,380 --> 00:19:13,600 Hope that made sense. 322 00:19:17,120 --> 00:19:19,160 So, that's the basic idea. 323 00:19:20,020 --> 00:19:23,180 There are some problems... 324 00:19:23,180 --> 00:19:24,840 Well, not problems, but challenges 325 00:19:24,840 --> 00:19:26,960 with this. 326 00:19:27,340 --> 00:19:29,080 Firstly, we... 327 00:19:29,080 --> 00:19:32,380 I apologize for the writing being a little bit... 328 00:19:33,260 --> 00:19:34,040 Blame Linux. 329 00:19:34,420 --> 00:19:35,960 I know why it's like that. 330 00:19:36,840 --> 00:19:40,700 But we don't know how much data... 331 00:19:41,860 --> 00:19:43,620 I can't even read it here. Hang on. 332 00:19:45,600 --> 00:19:47,840 Okay, so when we send a request 333 00:19:47,840 --> 00:19:51,300 we don't know how long... 334 00:19:51,300 --> 00:19:53,500 how big the data is going to be 335 00:19:53,500 --> 00:19:55,200 in response to that request. 336 00:19:55,740 --> 00:19:58,520 So, what we have to do is 337 00:19:58,520 --> 00:20:01,120 essentially normalize our estimates 338 00:20:02,380 --> 00:20:05,780 to the average size of data in our data store. 339 00:20:05,900 --> 00:20:07,700 So, we're essentially normalizing out 340 00:20:07,700 --> 00:20:10,540 the variations in the length of data 341 00:20:10,540 --> 00:20:13,160 that we might receive for the request. 342 00:20:14,940 --> 00:20:17,220 Another big problem is 343 00:20:18,380 --> 00:20:19,720 at the moment... 344 00:20:19,720 --> 00:20:22,540 Well, okay, so if a node forwards a request 345 00:20:22,540 --> 00:20:26,980 if that request is for data that is in the network 346 00:20:27,500 --> 00:20:29,220 and the node fails to find it 347 00:20:29,220 --> 00:20:32,380 well, then we should punish that node 348 00:20:32,380 --> 00:20:38,800 for that by increasing that node's estimate 349 00:20:38,800 --> 00:20:39,820 for that key. 350 00:20:40,020 --> 00:20:43,100 But if a node forwards a request for some data 351 00:20:43,100 --> 00:20:44,860 that is not in the network 352 00:20:44,860 --> 00:20:47,220 then it's not actually that node's fault 353 00:20:47,220 --> 00:20:48,400 that it didn't find it. 354 00:20:48,520 --> 00:20:52,520 And we needed to statistically account for 355 00:20:52,540 --> 00:20:54,560 that when we're coming up with these estimates 356 00:20:54,560 --> 00:20:56,220 and I won't bore you right now 357 00:20:56,220 --> 00:20:58,120 with how exactly we do that. 358 00:21:00,940 --> 00:21:02,260 Okay, and then third point. 359 00:21:02,500 --> 00:21:04,180 Okay, so does it work? 360 00:21:07,540 --> 00:21:09,260 Basic answer, we don't know yet. 361 00:21:09,540 --> 00:21:10,940 We're still testing it. 362 00:21:11,000 --> 00:21:12,320 We've been testing it for a while. 363 00:21:12,480 --> 00:21:13,560 There have been some problems. 364 00:21:15,360 --> 00:21:17,180 But to give you a feel 365 00:21:18,940 --> 00:21:21,900 here, each of these horizontal lines 366 00:21:21,900 --> 00:21:24,780 is basically... 367 00:21:24,780 --> 00:21:28,480 Each of these horizontal lines represents one peer. 368 00:21:28,700 --> 00:21:31,300 One Freenet peer in a small network 369 00:21:31,700 --> 00:21:34,020 of one, two, three, four, eight peers. 370 00:21:36,720 --> 00:21:39,900 Each narrow vertical line indicates 371 00:21:39,900 --> 00:21:43,740 that that peer is caching a piece of information 372 00:21:43,740 --> 00:21:46,200 at that area of key space. 373 00:21:46,580 --> 00:21:50,080 Now what we did was we initialized each of these peers 374 00:21:50,080 --> 00:21:51,880 such that each peer is caching 375 00:21:51,900 --> 00:21:55,160 a certain section of the data. 376 00:21:55,320 --> 00:21:57,740 This is obviously artificial. 377 00:21:58,620 --> 00:22:00,820 This would not happen in a real network, 378 00:22:00,960 --> 00:22:02,540 but we're kind of testing things out. 379 00:22:03,020 --> 00:22:05,860 So these completely dark areas 380 00:22:05,860 --> 00:22:08,900 are areas that were pre-initialized with keys, 381 00:22:09,020 --> 00:22:10,440 so you'd expect them to be dark. 382 00:22:10,740 --> 00:22:14,740 What's interesting is that around these dark areas 383 00:22:14,740 --> 00:22:18,560 you see that nodes have accumulated data 384 00:22:18,560 --> 00:22:21,180 that is similar to the data 385 00:22:21,180 --> 00:22:22,180 that they are caching. 386 00:22:22,340 --> 00:22:24,700 The reason they've done that is 387 00:22:24,700 --> 00:22:26,940 other peers have figured out 388 00:22:26,940 --> 00:22:28,940 what their specialization is, 389 00:22:29,180 --> 00:22:32,080 and they are sending requests to those peers 390 00:22:32,080 --> 00:22:35,340 which they think, based on their existing knowledge 391 00:22:35,340 --> 00:22:36,900 of those peer specializations, 392 00:22:37,140 --> 00:22:38,760 they'll be able to answer. 393 00:22:39,120 --> 00:22:43,360 So what this demonstrates in a very simple toy way 394 00:22:45,040 --> 00:22:47,780 is that next generation routing 395 00:22:47,780 --> 00:22:49,840 is actually allowing nodes 396 00:22:49,840 --> 00:22:52,360 to learn true things 397 00:22:52,360 --> 00:22:55,760 about the expertise of other nodes 398 00:22:55,760 --> 00:22:56,760 in the Freenet network 399 00:22:56,760 --> 00:22:58,880 and route to those nodes accordingly. 400 00:23:00,660 --> 00:23:02,020 What are the problems? 401 00:23:02,680 --> 00:23:04,040 Complete bitch to debug. 402 00:23:04,400 --> 00:23:07,740 We've been debugging this for a year, 403 00:23:07,840 --> 00:23:10,600 and roughly once a month we find a bug 404 00:23:10,600 --> 00:23:14,080 which we know would have totally precluded 405 00:23:14,080 --> 00:23:16,440 any chance of it working whatsoever. 406 00:23:17,840 --> 00:23:19,820 That's slightly impeded 407 00:23:19,840 --> 00:23:22,000 our progress, as you can imagine. 408 00:23:24,400 --> 00:23:26,900 We've actually made a lot of progress 409 00:23:26,900 --> 00:23:28,240 very recently on that 410 00:23:28,240 --> 00:23:30,360 by setting up small test networks 411 00:23:30,360 --> 00:23:32,060 and we've kind of been kicking ourselves 412 00:23:32,060 --> 00:23:34,500 for not doing something similar earlier, 413 00:23:34,680 --> 00:23:37,140 or rather, other people have been kicking me 414 00:23:37,720 --> 00:23:39,760 for not listening to them. 415 00:23:41,560 --> 00:23:44,220 And we've made a lot of progress because of that, 416 00:23:44,320 --> 00:23:45,880 so hopefully we're nearing the end 417 00:23:45,880 --> 00:23:48,140 of that rather tedious cycle. 418 00:23:49,880 --> 00:23:51,740 We're not convinced that nodes 419 00:23:51,740 --> 00:23:53,040 are learning quickly enough 420 00:23:53,040 --> 00:23:55,780 what the specializations of their neighbors are. 421 00:23:55,960 --> 00:23:58,560 This is a problem when people are, 422 00:23:58,800 --> 00:24:02,260 when nodes don't have that long a longevity. 423 00:24:02,500 --> 00:24:04,500 If you spend, you know, 424 00:24:04,500 --> 00:24:09,020 two days gaining a detailed expertise 425 00:24:09,020 --> 00:24:12,240 as to the specialization of one of your neighbors, 426 00:24:12,420 --> 00:24:15,160 and then that guy just disappears, 427 00:24:15,380 --> 00:24:17,440 you know, he wants to run Quake or whatever, 428 00:24:17,640 --> 00:24:19,780 and JVM and Quake, 429 00:24:19,840 --> 00:24:23,600 doesn't quite coexist to the extent that they need, 430 00:24:23,760 --> 00:24:25,880 then you've just wasted a lot of time. 431 00:24:26,900 --> 00:24:28,920 We've tried to alleviate this problem 432 00:24:28,920 --> 00:24:32,660 by allowing nodes to share information 433 00:24:32,660 --> 00:24:34,920 about each other's specialization 434 00:24:35,760 --> 00:24:38,040 in a way that incorporates some precautions 435 00:24:38,040 --> 00:24:41,420 against the obvious ways that that could be abused. 436 00:24:41,780 --> 00:24:43,660 So we're making progress there. 437 00:24:43,840 --> 00:24:45,860 It's something we're actively working on right now. 438 00:24:47,620 --> 00:24:49,680 The other big problem we've had 439 00:24:49,840 --> 00:24:53,040 which I'm about to talk about next 440 00:24:53,640 --> 00:24:55,420 is this overloading problem, 441 00:24:55,760 --> 00:24:58,720 which, you know, it's pretty difficult 442 00:24:58,720 --> 00:25:00,600 to debug one thing 443 00:25:00,600 --> 00:25:03,720 when another thing is completely preventing 444 00:25:03,720 --> 00:25:05,160 the network from working at all. 445 00:25:05,480 --> 00:25:08,220 So, you know, we've had problems, 446 00:25:08,300 --> 00:25:10,040 but we've soldiered on, 447 00:25:10,200 --> 00:25:11,960 and I think we're, you know, 448 00:25:11,960 --> 00:25:14,320 seeing the light at the end of the tunnel now. 449 00:25:15,660 --> 00:25:17,880 So rate limiting, the other problem. 450 00:25:19,980 --> 00:25:23,040 Networks stopped working July 2003. 451 00:25:23,620 --> 00:25:26,660 We noticed that over 90% of the messages 452 00:25:26,660 --> 00:25:28,520 being sent between nodes 453 00:25:28,520 --> 00:25:29,960 were messages saying, 454 00:25:30,100 --> 00:25:31,700 don't send me any more messages, 455 00:25:31,780 --> 00:25:32,720 I'm overloaded. 456 00:25:34,780 --> 00:25:37,840 This was essentially a consequence 457 00:25:37,840 --> 00:25:43,040 of too many requests being pumped into the network 458 00:25:43,040 --> 00:25:45,880 more than the network could conceivably handle, 459 00:25:46,020 --> 00:25:47,800 and that effectively 460 00:25:47,880 --> 00:25:50,520 led to a catastrophic collapse of the network, 461 00:25:51,100 --> 00:25:52,800 which really confused us 462 00:25:52,800 --> 00:25:54,400 because it happens suddenly, 463 00:25:54,480 --> 00:25:57,500 as catastrophic collapses tend to do, 464 00:25:57,660 --> 00:25:59,400 which made us think, you know, 465 00:26:00,300 --> 00:26:02,700 did someone press a button or something? 466 00:26:03,860 --> 00:26:06,700 But in fact, it was just one of these weird things 467 00:26:06,700 --> 00:26:08,420 that can happen with this type of network. 468 00:26:09,000 --> 00:26:14,140 It's a sudden symptom of a gradual problem, 469 00:26:14,880 --> 00:26:16,880 which can be very confusing. 470 00:26:18,320 --> 00:26:20,460 The underlying problem here 471 00:26:20,460 --> 00:26:23,900 is that Freenet nodes were very, 472 00:26:23,980 --> 00:26:25,480 they were kind of like dogs. 473 00:26:25,920 --> 00:26:28,060 You know, you keep throwing the stick, 474 00:26:28,180 --> 00:26:30,780 and the dog just keeps going to fetch it, 475 00:26:30,880 --> 00:26:32,880 and if you're throwing more sticks 476 00:26:33,440 --> 00:26:34,960 than the dog can handle, 477 00:26:35,080 --> 00:26:37,000 the dog isn't going to kind of go, 478 00:26:37,080 --> 00:26:39,780 you know, fuck you, I'm going to find a new owner. 479 00:26:39,960 --> 00:26:44,320 The dog will diligently try to answer every request 480 00:26:44,320 --> 00:26:45,920 and end up getting very confused, 481 00:26:45,920 --> 00:26:48,340 and essentially, 482 00:26:48,620 --> 00:26:50,340 the solution to this problem 483 00:26:50,340 --> 00:26:52,520 was to make Freenet more cat-like. 484 00:26:59,020 --> 00:27:00,720 Effectively, what, in, 485 00:27:00,900 --> 00:27:02,380 wait, do I say this here? 486 00:27:02,560 --> 00:27:05,360 Okay, so basically, in other words, 487 00:27:05,480 --> 00:27:09,280 we needed to place a limit 488 00:27:09,280 --> 00:27:11,140 on Freenet's short-term goal 489 00:27:11,140 --> 00:27:12,660 of being a good citizen 490 00:27:12,660 --> 00:27:14,480 and diligently asking every request 491 00:27:14,480 --> 00:27:20,560 with a longer-term motivation 492 00:27:20,560 --> 00:27:24,920 or imperative to not get overloaded 493 00:27:24,920 --> 00:27:27,120 such that you can't answer any requests. 494 00:27:27,480 --> 00:27:30,120 In other words, it's better to turn some people away 495 00:27:30,120 --> 00:27:33,280 than to fail to respond to everyone, 496 00:27:34,300 --> 00:27:35,560 which is what was happening. 497 00:27:36,620 --> 00:27:37,760 How do you do this? 498 00:27:37,880 --> 00:27:40,480 Well, this is essentially a load balancing issue, 499 00:27:40,620 --> 00:27:43,320 and we thought, well, wouldn't it be nice to 500 00:27:43,320 --> 00:27:46,300 try to, well, actually, no, we didn't. 501 00:27:46,340 --> 00:27:48,320 We spent about six months screwing around 502 00:27:48,320 --> 00:27:50,080 with a bunch of ideas that didn't work, 503 00:27:50,200 --> 00:27:51,400 and then we thought, 504 00:27:52,240 --> 00:27:54,580 you know, okay, well, we should kind of 505 00:27:54,580 --> 00:27:56,960 come up with a solution from first principles here 506 00:27:56,960 --> 00:28:00,420 because the kind of alchemy solutions, 507 00:28:01,040 --> 00:28:02,400 you know, just weren't working. 508 00:28:03,900 --> 00:28:05,640 So, we went back to basics. 509 00:28:05,760 --> 00:28:07,940 What is load? What is load balancing? 510 00:28:08,120 --> 00:28:09,000 What is the goal? 511 00:28:09,120 --> 00:28:12,020 What does a good load balancing algorithm achieve? 512 00:28:12,020 --> 00:28:14,740 Well, firstly, what is load? 513 00:28:15,320 --> 00:28:16,920 We define load, 514 00:28:17,000 --> 00:28:19,000 and we think it's a pretty reasonable definition, 515 00:28:19,180 --> 00:28:23,240 to be the percentage of the total capacity 516 00:28:23,240 --> 00:28:25,640 of our least available resource 517 00:28:25,640 --> 00:28:27,580 that we are currently using. 518 00:28:28,060 --> 00:28:33,220 So, if your least available resource is bandwidth, 519 00:28:33,560 --> 00:28:36,120 your load is whatever percentage 520 00:28:36,120 --> 00:28:38,420 of your available bandwidth you're using. 521 00:28:38,440 --> 00:28:40,760 If your least available resource is CPU, 522 00:28:41,240 --> 00:28:42,000 the same. 523 00:28:42,020 --> 00:28:43,260 Et cetera, et cetera. 524 00:28:44,100 --> 00:28:46,700 What does a perfect load balancing algorithm do? 525 00:28:46,880 --> 00:28:49,960 Well, it basically ensures 526 00:28:49,960 --> 00:28:53,040 that we do not exceed 100% load. 527 00:28:53,240 --> 00:28:55,340 That's according to our definition of load. 528 00:28:55,720 --> 00:28:59,120 In some cases, 100% load is a very, very bad thing, 529 00:28:59,260 --> 00:29:01,100 but according to our definition, 530 00:29:01,380 --> 00:29:03,220 that's kind of a desirable situation. 531 00:29:04,980 --> 00:29:07,940 So, a good load balancing algorithm will ensure 532 00:29:07,940 --> 00:29:11,740 that if the network is constrained by load balancing, 533 00:29:12,020 --> 00:29:14,340 in other words, if it's receiving more requests 534 00:29:14,340 --> 00:29:15,220 than it can handle, 535 00:29:15,400 --> 00:29:20,220 then all nodes should be using close to 100% 536 00:29:20,220 --> 00:29:21,700 of their least available resource, 537 00:29:21,920 --> 00:29:23,720 because that means that, you know, 538 00:29:23,740 --> 00:29:26,340 you haven't got some nodes sitting semi-idle 539 00:29:26,340 --> 00:29:28,520 while other nodes are struggling. 540 00:29:30,840 --> 00:29:32,240 So, how do you do that? 541 00:29:32,380 --> 00:29:33,320 Well, you... 542 00:29:34,080 --> 00:29:35,700 I cannot read this. 543 00:29:35,860 --> 00:29:36,160 Okay. 544 00:29:37,200 --> 00:29:41,120 So, what you need to do is add a competing imperative 545 00:29:41,120 --> 00:29:43,560 to prevent overloading 546 00:29:43,560 --> 00:29:45,940 by limiting the short-term imperative 547 00:29:45,940 --> 00:29:47,680 to respond to requests. 548 00:29:48,940 --> 00:29:50,600 How do you do that? 549 00:29:50,820 --> 00:29:52,360 Well, it's pretty simple. 550 00:29:52,900 --> 00:29:55,980 Each node estimates the total number 551 00:29:55,980 --> 00:29:58,680 of incoming requests that they can handle. 552 00:29:59,740 --> 00:30:02,580 For example, if our current load, 553 00:30:02,800 --> 00:30:04,460 which we can calculate quite easily, 554 00:30:04,600 --> 00:30:08,920 is 50% and we're handling 4,000 requests per hour, 555 00:30:09,080 --> 00:30:10,480 we can estimate 556 00:30:10,480 --> 00:30:14,960 that if we're handling 8,000 requests an hour, 557 00:30:15,060 --> 00:30:16,780 we're going to be at 100% load 558 00:30:16,780 --> 00:30:18,580 and that's our desired situation. 559 00:30:20,160 --> 00:30:21,360 From that... 560 00:30:21,360 --> 00:30:23,940 So, we now know what we think 561 00:30:23,940 --> 00:30:26,000 our total capacity for requests is 562 00:30:26,000 --> 00:30:28,080 based on the information we're looking at right now. 563 00:30:31,180 --> 00:30:33,340 This is essentially a quota. 564 00:30:33,520 --> 00:30:35,960 This is our total quota of requests 565 00:30:35,960 --> 00:30:37,860 that downstream nodes can send us. 566 00:30:38,040 --> 00:30:39,940 So, what we then do is 567 00:30:39,940 --> 00:30:43,120 we break that quota up 568 00:30:43,120 --> 00:30:45,480 and we assign a little bit of quota 569 00:30:45,480 --> 00:30:48,680 to each of the nodes that want to send us requests 570 00:30:48,680 --> 00:30:52,100 such that we know we're not going to get 571 00:30:52,100 --> 00:30:53,880 more requests than we can handle, 572 00:30:53,960 --> 00:30:57,140 more requests than would create 100% load. 573 00:31:00,320 --> 00:31:02,240 Lastly, and I'm going to explain this, 574 00:31:02,360 --> 00:31:04,480 we need to employ something we call 575 00:31:04,480 --> 00:31:07,320 a dynamic reallocation of quota. 576 00:31:08,240 --> 00:31:09,720 Why do we want to do that? 577 00:31:09,940 --> 00:31:12,540 Well, the naive way to achieve what I just described 578 00:31:12,540 --> 00:31:13,540 would be to say, 579 00:31:13,700 --> 00:31:15,740 okay, our quota is 8,000 nodes. 580 00:31:15,940 --> 00:31:18,240 We know about 80 peers. 581 00:31:18,500 --> 00:31:20,560 Therefore, we're going to allocate a quota 582 00:31:20,560 --> 00:31:22,580 of 100 requests to each of those peers. 583 00:31:23,060 --> 00:31:25,180 That's not a good idea because most peers 584 00:31:25,180 --> 00:31:28,160 are not going to use 100% of our quota, 585 00:31:28,280 --> 00:31:30,820 so we're going to end up being underloaded. 586 00:31:31,460 --> 00:31:33,700 So, what we want to do is 587 00:31:35,200 --> 00:31:37,620 reallocate quota that has been allocated 588 00:31:37,620 --> 00:31:39,740 but which is not being used, 589 00:31:39,940 --> 00:31:42,180 to other nodes that will use it. 590 00:31:45,020 --> 00:31:48,080 Also, if a node has been underusing its quota 591 00:31:48,080 --> 00:31:50,020 and its quota has been reallocated 592 00:31:50,020 --> 00:31:51,340 but now it needs it back, 593 00:31:51,620 --> 00:31:55,540 we need a way for that node to get the quota back. 594 00:31:56,120 --> 00:32:00,860 And that's what our rate-limiting algorithm achieves, 595 00:32:01,560 --> 00:32:02,320 we hope. 596 00:32:03,320 --> 00:32:06,300 So, very simple equation to achieve this. 597 00:32:07,040 --> 00:32:08,740 It's the only equation here. 598 00:32:12,580 --> 00:32:15,000 Basically, what we're doing here is 599 00:32:15,000 --> 00:32:17,580 we're saying your quota is 600 00:32:19,200 --> 00:32:21,160 whatever wasn't used 601 00:32:22,260 --> 00:32:24,440 by other nodes previously 602 00:32:24,440 --> 00:32:26,700 plus what you used last time. 603 00:32:26,860 --> 00:32:29,260 So, we're essentially saying your quota is 604 00:32:29,680 --> 00:32:31,440 what you used last time 605 00:32:31,440 --> 00:32:34,660 plus what other nodes weren't using. 606 00:32:36,060 --> 00:32:38,940 The reason we have a max thing here is then we say 607 00:32:38,940 --> 00:32:43,080 your quota is at least what your quota would be 608 00:32:43,080 --> 00:32:45,980 had there been an equal distribution of quota. 609 00:32:49,160 --> 00:32:53,060 I'm not sure to what extent I should go into explaining 610 00:32:53,060 --> 00:32:55,620 the rationale behind that, but I'll try a little bit. 611 00:32:57,360 --> 00:33:01,740 The basic idea here is that a peer which is underusing quota 612 00:33:03,360 --> 00:33:08,820 is going to get less than the quota it should have. 613 00:33:08,940 --> 00:33:13,020 Now, actually, I'm not even going to bother explaining that. 614 00:33:13,080 --> 00:33:15,960 Read the paper, because it's just not going to work verbally, 615 00:33:16,040 --> 00:33:20,920 even with the help of this wonderfully illustrated slide. 616 00:33:22,020 --> 00:33:23,260 So, does it work? 617 00:33:23,740 --> 00:33:25,620 Yes, actually, amazingly well. 618 00:33:28,140 --> 00:33:32,020 This graph, which I realize is kind of difficult to see, 619 00:33:35,080 --> 00:33:35,600 represents... 620 00:33:35,600 --> 00:33:37,940 Each different colored line 621 00:33:37,940 --> 00:33:39,640 is a different resource. 622 00:33:42,000 --> 00:33:45,120 The green line, which is difficult to see, 623 00:33:45,220 --> 00:33:48,640 but the green line is the incoming bytes per second. 624 00:33:49,440 --> 00:33:52,360 The blue line is the outgoing bytes per second. 625 00:33:54,240 --> 00:33:56,580 The orange line is requests incoming. 626 00:33:56,820 --> 00:33:58,460 The red line is requests outgoing. 627 00:33:59,260 --> 00:34:01,960 You'll notice something different about the blue line, 628 00:34:02,080 --> 00:34:06,920 which is outgoing bandwidth. 629 00:34:08,060 --> 00:34:10,320 In that, it's actually kind of flat. 630 00:34:10,720 --> 00:34:13,660 Most people who've done work in peer-to-peer 631 00:34:13,660 --> 00:34:17,960 will tell you that typically the most constrained resource 632 00:34:17,960 --> 00:34:20,200 is going to be your upstream bandwidth 633 00:34:20,670 --> 00:34:23,500 due to the annoying fact that most broadband connections 634 00:34:23,500 --> 00:34:28,180 can download at approximately 10 times the speed 635 00:34:28,180 --> 00:34:29,360 that they can upload. 636 00:34:30,420 --> 00:34:33,780 Our rate-limiting algorithm has figured this out. 637 00:34:33,880 --> 00:34:35,460 It's basically realized that. 638 00:34:35,460 --> 00:34:39,280 Outgoing bandwidth is the critical resource. 639 00:34:39,960 --> 00:34:43,380 It's the resource that we're kind of bumping up against. 640 00:34:43,780 --> 00:34:49,380 And by limiting the number of requests we're getting, 641 00:34:49,440 --> 00:34:52,560 it can actually maintain that resource 642 00:34:52,560 --> 00:34:55,710 such that it does not exceed... 643 00:34:56,060 --> 00:34:59,500 I think we're assuming that the allocated bandwidth 644 00:34:59,500 --> 00:35:04,900 is about 10.2 kilobytes a second. 645 00:35:05,460 --> 00:35:07,640 And you can see that this resource 646 00:35:07,640 --> 00:35:09,540 pretty much never exceeds that. 647 00:35:09,620 --> 00:35:11,440 Sometimes it drops below that, 648 00:35:11,580 --> 00:35:14,040 and that will typically mean that another resource 649 00:35:14,040 --> 00:35:16,860 just momentarily has become the critical resource. 650 00:35:17,980 --> 00:35:19,220 So it works. 651 00:35:20,400 --> 00:35:22,700 And it's, you know... 652 00:35:22,700 --> 00:35:25,280 We thought it was pretty cool that it works 653 00:35:25,280 --> 00:35:29,280 because it's essentially behaving like a thermostat. 654 00:35:30,240 --> 00:35:33,520 It's controlling the effect something has, 655 00:35:33,520 --> 00:35:35,300 namely the incoming requests. 656 00:35:35,620 --> 00:35:37,440 Or by limiting the incoming requests, 657 00:35:37,740 --> 00:35:43,120 it's able to control an indirect result 658 00:35:43,120 --> 00:35:44,400 of the incoming requests, 659 00:35:44,580 --> 00:35:47,940 much as a thermostat controls the temperature in a room. 660 00:35:48,900 --> 00:35:52,180 Except most thermostats operate on a kind of, 661 00:35:52,180 --> 00:35:54,600 you know, I'm on or I'm off basis. 662 00:35:54,900 --> 00:35:57,140 This can actually have a more... 663 00:35:58,080 --> 00:36:00,260 It can actually be better refined. 664 00:36:00,440 --> 00:36:03,500 So it can say, you know, heat up this much or cool down this much. 665 00:36:03,520 --> 00:36:05,800 That was kind of cool. 666 00:36:05,940 --> 00:36:08,220 But we, you know, it's not perfect. 667 00:36:09,380 --> 00:36:12,620 It has successfully, very successfully, 668 00:36:12,640 --> 00:36:16,200 solved the stated problem that we thought we had, 669 00:36:16,900 --> 00:36:20,240 that individual nodes were getting overloaded. 670 00:36:20,480 --> 00:36:24,760 Unfortunately, it isn't fully solving 671 00:36:24,760 --> 00:36:28,500 the problem of the network as a whole being overloaded. 672 00:36:29,040 --> 00:36:30,860 We think the problem for that 673 00:36:30,860 --> 00:36:33,340 is there's no tit for tat 674 00:36:33,340 --> 00:36:33,720 strategy. 675 00:36:34,360 --> 00:36:37,880 A node which is exhibiting bad behavior 676 00:36:37,880 --> 00:36:40,760 by pumping too many requests into the network 677 00:36:41,120 --> 00:36:45,140 is not punished for doing so by this algorithm. 678 00:36:45,500 --> 00:36:48,580 Yes, if it's using a lot of requests 679 00:36:48,580 --> 00:36:50,120 and other nodes aren't, 680 00:36:50,120 --> 00:36:51,840 it'll be permitted to do that. 681 00:36:52,040 --> 00:36:54,680 But when other nodes need those requests back, 682 00:36:54,920 --> 00:36:58,140 it basically goes back to the same status. 683 00:36:58,320 --> 00:37:01,120 It's back to the same boat that everyone else was in, 684 00:37:01,180 --> 00:37:02,920 even though it's actually placed 685 00:37:03,340 --> 00:37:05,040 a lot more load on the network than everyone else. 686 00:37:05,480 --> 00:37:07,820 So we're thinking about ways that we can 687 00:37:08,160 --> 00:37:10,480 not so much punish, but, you know, 688 00:37:10,500 --> 00:37:13,440 if you're using more requests than you deserve, 689 00:37:13,780 --> 00:37:16,900 then you essentially build up a debt to the network 690 00:37:16,900 --> 00:37:18,660 which you're forced to repay 691 00:37:19,520 --> 00:37:22,360 when other people, you know, 692 00:37:22,360 --> 00:37:24,100 want to make more requests 693 00:37:24,100 --> 00:37:28,480 when previously they were good citizens. 694 00:37:29,640 --> 00:37:31,000 Another problem is 695 00:37:31,800 --> 00:37:33,620 it's seriously inhibiting 696 00:37:34,700 --> 00:37:38,140 Next Generation Rooting's ability 697 00:37:38,140 --> 00:37:40,980 to root to the peer 698 00:37:40,980 --> 00:37:43,740 that Next Generation Rooting thinks 699 00:37:43,740 --> 00:37:47,060 is going to produce the fastest response. 700 00:37:47,800 --> 00:37:49,100 Why does it do that? 701 00:37:49,220 --> 00:37:50,720 Well, essentially, rate limiting works 702 00:37:50,720 --> 00:37:52,340 in practice by 703 00:37:53,960 --> 00:37:56,300 putting nodes on a timeout bench. 704 00:37:56,460 --> 00:37:57,900 A node, when you send a request, 705 00:37:58,180 --> 00:37:59,460 will come back and say, 706 00:37:59,600 --> 00:38:00,800 okay, you need to wait 707 00:38:01,000 --> 00:38:03,280 five, ten, thirty seconds 708 00:38:03,280 --> 00:38:05,320 before sending me your next request. 709 00:38:05,980 --> 00:38:08,860 That node for the next five, ten, or thirty seconds 710 00:38:08,860 --> 00:38:10,340 is not considered 711 00:38:10,340 --> 00:38:12,520 by the Next Generation Rooting algorithm. 712 00:38:12,960 --> 00:38:14,380 And what can happen in practice 713 00:38:14,940 --> 00:38:16,660 is that Next Generation Rooting 714 00:38:16,660 --> 00:38:20,180 is getting its fifth, tenth, fifteenth, 715 00:38:20,300 --> 00:38:22,080 sometimes even twentieth preference 716 00:38:22,080 --> 00:38:23,800 when it sends a request. 717 00:38:24,120 --> 00:38:25,360 That's, you know, 718 00:38:26,500 --> 00:38:28,400 that's okay to a degree 719 00:38:28,400 --> 00:38:29,860 because it encourages 720 00:38:29,860 --> 00:38:31,360 Next Generation Rooting 721 00:38:31,360 --> 00:38:33,540 from sending all its requests 722 00:38:33,540 --> 00:38:34,460 to the same place. 723 00:38:34,640 --> 00:38:35,600 But in excess, 724 00:38:35,980 --> 00:38:37,900 it's kind of, you know, 725 00:38:37,900 --> 00:38:40,000 preventing Next Generation Rooting 726 00:38:40,000 --> 00:38:41,560 from doing what it's supposed to be doing. 727 00:38:42,060 --> 00:38:44,680 We think that, you know, 728 00:38:44,720 --> 00:38:47,660 we think that this is basically 729 00:38:47,660 --> 00:38:51,160 a symptom of the not having it. 730 00:38:51,220 --> 00:38:52,720 Well, these are basically 731 00:38:52,720 --> 00:38:54,300 all symptoms of the same problem. 732 00:38:58,040 --> 00:38:59,400 So, conclusion. 733 00:39:02,600 --> 00:39:03,820 Well, I'd hope to, 734 00:39:04,020 --> 00:39:05,200 okay, sorry. 735 00:39:06,200 --> 00:39:07,260 I'd actually hope to, 736 00:39:07,320 --> 00:39:09,200 it didn't display one or two things 737 00:39:09,200 --> 00:39:10,320 that I wanted to display, 738 00:39:10,540 --> 00:39:12,780 one or two graphs that I wanted to display. 739 00:39:12,900 --> 00:39:14,060 So, if you can just give me a second, 740 00:39:14,140 --> 00:39:15,440 I just want to show you. 741 00:39:19,000 --> 00:39:19,960 Oh, no, actually, 742 00:39:20,560 --> 00:39:21,440 unconfused, it did. 743 00:39:21,800 --> 00:39:22,740 So, cool. 744 00:39:24,920 --> 00:39:25,820 So, real quick, 745 00:39:26,000 --> 00:39:28,100 some conclusions and, 746 00:39:28,140 --> 00:39:29,240 you know, then, 747 00:39:29,860 --> 00:39:31,660 hopefully, some people may have 748 00:39:31,660 --> 00:39:32,580 one or two questions, 749 00:39:32,760 --> 00:39:34,960 and we've got, you know, 750 00:39:34,980 --> 00:39:36,900 we've got about 10 minutes for those. 751 00:39:37,520 --> 00:39:40,060 If not, I'll warble on some more. 752 00:39:42,220 --> 00:39:43,260 So, oops. 753 00:39:44,620 --> 00:39:45,140 Bugger. 754 00:39:48,860 --> 00:39:49,800 Sorry about this. 755 00:39:51,740 --> 00:39:52,260 Okay. 756 00:39:53,520 --> 00:39:54,040 Conclusions. 757 00:39:54,060 --> 00:39:55,320 Next Generation Rooting 758 00:39:55,320 --> 00:39:57,120 has not yet adequately demonstrated 759 00:39:57,120 --> 00:39:58,160 its effectiveness, 760 00:39:58,340 --> 00:39:59,760 but the results to date 761 00:39:59,860 --> 00:40:00,340 are promising. 762 00:40:00,520 --> 00:40:01,400 And it's not all 763 00:40:01,400 --> 00:40:03,280 Next Generation Rooting's fault. 764 00:40:04,020 --> 00:40:06,660 Rate limiting achieved its stated goal, 765 00:40:06,900 --> 00:40:09,560 but it seems that its stated goal 766 00:40:09,560 --> 00:40:11,760 is not sufficient to fully address 767 00:40:11,760 --> 00:40:12,820 the overloading problem. 768 00:40:15,620 --> 00:40:17,300 Lastly, and this is kind of 769 00:40:17,300 --> 00:40:18,720 a higher level comment about 770 00:40:18,720 --> 00:40:21,440 the style of development process 771 00:40:21,440 --> 00:40:23,580 we have, which, 772 00:40:23,640 --> 00:40:25,100 you know, some would say 773 00:40:25,100 --> 00:40:26,700 it's extremely haphazard. 774 00:40:26,700 --> 00:40:28,800 It gives some computer scientists 775 00:40:28,800 --> 00:40:29,580 a heart attack, 776 00:40:30,140 --> 00:40:32,540 but it's really a style of approach 777 00:40:32,540 --> 00:40:33,960 that comes out of 778 00:40:35,540 --> 00:40:37,540 the kind of AI background, 779 00:40:37,760 --> 00:40:39,820 the AI way of building 780 00:40:39,820 --> 00:40:41,040 emergent architectures, 781 00:40:41,040 --> 00:40:41,620 neural networks, 782 00:40:41,800 --> 00:40:42,660 connection of systems, 783 00:40:43,020 --> 00:40:44,680 which is, you know, 784 00:40:44,680 --> 00:40:45,800 rather than sitting around 785 00:40:45,800 --> 00:40:47,440 with whiteboard and theorizing 786 00:40:47,440 --> 00:40:49,060 for weeks or months, 787 00:40:49,280 --> 00:40:51,020 you know, we come up with an idea, 788 00:40:51,100 --> 00:40:52,460 we try it, we see if it works, 789 00:40:52,540 --> 00:40:53,640 we tweak it if it doesn't, 790 00:40:53,760 --> 00:40:54,940 you know, we throw it away 791 00:40:54,940 --> 00:40:56,220 if we can't get it to work. 792 00:40:56,520 --> 00:40:57,940 And it's essentially, 793 00:40:57,940 --> 00:41:00,300 it's an extreme embodiment 794 00:41:00,300 --> 00:41:01,460 of the release early, 795 00:41:01,580 --> 00:41:04,860 release often notion. 796 00:41:05,560 --> 00:41:07,560 And it pisses some people off. 797 00:41:08,180 --> 00:41:09,340 We get, you know, 798 00:41:09,380 --> 00:41:11,260 I think one of our FAQs is, 799 00:41:11,460 --> 00:41:12,000 you know, 800 00:41:12,040 --> 00:41:13,660 why don't you do 801 00:41:13,660 --> 00:41:14,680 integration testing? 802 00:41:14,840 --> 00:41:17,980 And the problem with 803 00:41:17,980 --> 00:41:19,560 a network like this 804 00:41:19,560 --> 00:41:20,420 is that deployment 805 00:41:20,420 --> 00:41:22,040 is the integration test. 806 00:41:22,320 --> 00:41:24,540 There is no other integration test 807 00:41:24,540 --> 00:41:25,760 other than deployment 808 00:41:25,760 --> 00:41:27,800 for this type of architecture. 809 00:41:29,600 --> 00:41:30,820 So, you know, 810 00:41:30,820 --> 00:41:31,980 it gives some people a headache, 811 00:41:32,100 --> 00:41:33,580 but we're pretty confident 812 00:41:33,580 --> 00:41:34,980 that it's the most appropriate 813 00:41:34,980 --> 00:41:35,940 development model 814 00:41:35,940 --> 00:41:37,520 for what we're trying to do. 815 00:41:39,280 --> 00:41:40,620 And with that, 816 00:41:41,520 --> 00:41:43,200 I'll see if anyone has 817 00:41:43,200 --> 00:41:44,400 any questions. 818 00:41:46,160 --> 00:41:47,040 One over here. 819 00:42:01,600 --> 00:42:03,120 Very good question. 820 00:42:03,300 --> 00:42:04,140 So, yeah. 821 00:42:05,520 --> 00:42:06,600 Okay, yeah. 822 00:42:06,700 --> 00:42:07,640 I'll repeat the question. 823 00:42:07,740 --> 00:42:08,440 The question was, 824 00:42:08,720 --> 00:42:11,760 in terms of the NGR algorithm 825 00:42:11,760 --> 00:42:13,440 learning too slowly, 826 00:42:13,620 --> 00:42:15,640 aren't there knobs we can tweak 827 00:42:16,260 --> 00:42:18,280 to speed up the degree 828 00:42:18,940 --> 00:42:20,060 to which it learns? 829 00:42:20,500 --> 00:42:21,840 The answer is yes, 830 00:42:22,100 --> 00:42:24,380 but we have two competing goals here. 831 00:42:24,500 --> 00:42:25,620 Essentially, think about 832 00:42:25,620 --> 00:42:27,120 a running average algorithm, 833 00:42:27,120 --> 00:42:28,560 which is basically, 834 00:42:28,680 --> 00:42:30,800 NGR consists of a bunch 835 00:42:30,800 --> 00:42:32,460 of running average algorithms. 836 00:42:32,720 --> 00:42:33,860 Now, with a simple, 837 00:42:34,040 --> 00:42:35,220 let's say you're talking about 838 00:42:35,220 --> 00:42:37,060 a simple decaying running algorithm, 839 00:42:37,300 --> 00:42:38,320 running average, 840 00:42:38,680 --> 00:42:40,420 you have a decay factor. 841 00:42:40,980 --> 00:42:43,220 The higher the decay factor, 842 00:42:43,520 --> 00:42:46,160 the more quickly it will adapt 843 00:42:46,160 --> 00:42:49,440 to the information it's seeing, 844 00:42:49,660 --> 00:42:53,560 but the more quickly 845 00:42:53,560 --> 00:42:56,260 it will forget older information, 846 00:42:56,260 --> 00:42:59,040 and that can basically make it too fickle. 847 00:43:00,500 --> 00:43:03,340 And we have been tweaking these things, 848 00:43:03,460 --> 00:43:04,740 and when we tweak them, 849 00:43:04,780 --> 00:43:06,420 we're essentially, you know, 850 00:43:06,420 --> 00:43:08,340 dealing with those two competing problems 851 00:43:08,340 --> 00:43:10,800 that if we go too far in one direction, 852 00:43:10,980 --> 00:43:13,140 it learns too slowly, 853 00:43:13,240 --> 00:43:14,840 and if we go too far 854 00:43:14,840 --> 00:43:15,700 in the other direction, 855 00:43:15,860 --> 00:43:18,260 it ends up jumping all around the place 856 00:43:18,260 --> 00:43:20,080 and just doesn't learn. 857 00:43:20,240 --> 00:43:22,220 And we've experimented with, 858 00:43:22,380 --> 00:43:23,660 you know, we started out 859 00:43:23,660 --> 00:43:25,640 with simple decaying running, 860 00:43:25,640 --> 00:43:28,100 running averages where you have a half-life, 861 00:43:28,320 --> 00:43:30,700 and, you know, we've kind of moved on to, 862 00:43:31,580 --> 00:43:33,420 we've experimented with a wide variety 863 00:43:33,420 --> 00:43:35,780 of different running average algorithms 864 00:43:35,780 --> 00:43:38,360 where we have, you know, a window, 865 00:43:39,180 --> 00:43:41,420 and we take an average across that window, 866 00:43:41,580 --> 00:43:43,000 or we take averages of averages, 867 00:43:43,160 --> 00:43:44,660 and all sorts of different things. 868 00:43:44,800 --> 00:43:47,480 So, essentially we're doing exactly 869 00:43:47,480 --> 00:43:49,920 what you're suggesting that we do, 870 00:43:51,520 --> 00:43:53,380 but unfortunately it's not just, 871 00:43:53,880 --> 00:43:54,560 you know, 872 00:43:54,560 --> 00:43:56,300 they're competing problems 873 00:43:56,300 --> 00:43:57,900 that we have to deal with. 874 00:43:58,200 --> 00:44:00,360 Any question there? 875 00:44:16,800 --> 00:44:17,640 Right. 876 00:44:18,580 --> 00:44:19,300 . 877 00:44:21,460 --> 00:44:21,820 Right. 878 00:44:23,260 --> 00:44:25,260 Okay, so the question was, 879 00:44:25,460 --> 00:44:27,160 in the rate-limiting algorithm, 880 00:44:27,540 --> 00:44:29,480 we treat all nodes 881 00:44:29,480 --> 00:44:32,180 as equally deserving of quota. 882 00:44:32,520 --> 00:44:34,800 And that is absolutely correct. 883 00:44:35,320 --> 00:44:37,860 And that actually gets to the heart 884 00:44:37,860 --> 00:44:42,620 of these problems 885 00:44:42,620 --> 00:44:44,400 that I was talking about, 886 00:44:44,560 --> 00:44:46,640 which is, well, there's no distinction 887 00:44:46,640 --> 00:44:48,980 between client and server in Freenet. 888 00:44:49,700 --> 00:44:52,640 So, we don't assign labels to nodes. 889 00:44:52,880 --> 00:44:55,700 Everything a peer knows about another node 890 00:44:55,700 --> 00:44:59,240 is stuff it learned from personal experience, 891 00:44:59,440 --> 00:45:01,280 just because you can't really trust 892 00:45:01,280 --> 00:45:04,380 another node to say, you know, 893 00:45:04,380 --> 00:45:05,920 if you say, well, what are you good at, 894 00:45:05,960 --> 00:45:07,360 it'll come back if it's malicious, 895 00:45:07,460 --> 00:45:09,640 and say, I'm good at absolutely everything, 896 00:45:09,940 --> 00:45:11,140 send me all your requests, 897 00:45:11,360 --> 00:45:12,800 and I'll do nasty things with them. 898 00:45:14,080 --> 00:45:14,600 So, 899 00:45:14,600 --> 00:45:19,040 what the problem is, 900 00:45:19,140 --> 00:45:20,440 or we think the problem is, 901 00:45:20,600 --> 00:45:22,940 that we do need to distinguish 902 00:45:22,940 --> 00:45:24,260 between different nodes. 903 00:45:24,420 --> 00:45:26,560 We do need to say 904 00:45:26,560 --> 00:45:29,140 that a node that has hardly been able, 905 00:45:29,240 --> 00:45:31,540 that has hardly sent us any requests, 906 00:45:31,900 --> 00:45:35,380 that's hardly used any of the quota we gave it, 907 00:45:37,120 --> 00:45:39,520 does deserve a higher priority 908 00:45:39,520 --> 00:45:41,700 than a node which has been using 909 00:45:41,700 --> 00:45:42,960 all available quota 910 00:45:42,960 --> 00:45:44,540 and using all the other nodes 911 00:45:44,600 --> 00:45:44,860 in its quota, 912 00:45:45,100 --> 00:45:47,240 and that's been flooding us with requests. 913 00:45:47,960 --> 00:45:49,220 And so, you know, 914 00:45:49,220 --> 00:45:50,900 part of what we're really working on, 915 00:45:50,960 --> 00:45:52,000 literally as we speak, 916 00:45:52,160 --> 00:45:53,900 is how do we achieve that, 917 00:45:54,080 --> 00:45:58,260 how do we incorporate that bias, 918 00:45:58,540 --> 00:45:59,860 again, you know, 919 00:45:59,860 --> 00:46:03,320 in favor of better behaving nodes 920 00:46:03,320 --> 00:46:04,780 into the algorithm. 921 00:46:06,820 --> 00:46:07,940 Any other questions? 922 00:46:08,880 --> 00:46:11,380 I think this gentleman here was first. 923 00:46:11,640 --> 00:46:12,200 . 924 00:46:14,020 --> 00:46:14,580 . 925 00:46:14,580 --> 00:46:15,580 . 926 00:46:19,120 --> 00:46:19,920 . 927 00:46:19,920 --> 00:46:21,080 . 928 00:46:22,520 --> 00:46:23,320 . 929 00:46:23,320 --> 00:46:24,000 . 930 00:46:24,000 --> 00:46:24,960 . 931 00:46:24,960 --> 00:46:25,000 . 932 00:46:25,000 --> 00:46:25,080 . 933 00:46:25,080 --> 00:46:25,140 . 934 00:46:25,140 --> 00:46:25,240 . 935 00:46:25,240 --> 00:46:25,320 . 936 00:46:25,320 --> 00:46:25,340 . 937 00:46:25,340 --> 00:46:25,740 . 938 00:46:25,740 --> 00:46:25,760 . 939 00:46:35,400 --> 00:46:36,200 . 940 00:46:36,200 --> 00:46:41,480 requests or not very good at rooting that type of request then it's not going to root it very well 941 00:46:41,480 --> 00:46:48,200 and the chances are the request is going to take longer so we don't explicitly measure how many 942 00:46:48,200 --> 00:46:54,440 hops the request goes through but that's kind of taken into account because we're measuring how 943 00:46:54,440 --> 00:47:02,080 long it takes in terms of time does that answer your question um another question here 944 00:47:12,540 --> 00:47:22,260 well that that is yeah in an ideal world yes that would be good but unfortunately because of the way 945 00:47:22,260 --> 00:47:30,980 freenet uses indirection to achieve its anonymity there isn't really any way that a node can 946 00:47:32,080 --> 00:47:36,420 do that because a node doesn't know where the request originated. If it did, it would 947 00:47:36,420 --> 00:47:41,740 compromise Freenet's anonymity. However, what we're hoping is that the rate-limiting algorithm 948 00:47:41,740 --> 00:47:48,720 will basically have a kind of trickle-back effect, much as backward error propagation 949 00:47:48,720 --> 00:47:56,340 in a neural network. It'll have a triple trickle-back effect such that the node that is actually 950 00:47:56,340 --> 00:48:02,420 flooding the network will not instantly, but will slowly find that all of the other nodes it's 951 00:48:02,420 --> 00:48:07,040 trying to send requests to will figure out, you know, look, you're being a pain in the ass and 952 00:48:07,040 --> 00:48:13,540 we're going to limit your requests. So we don't do it directly, but our hypothesis is that 953 00:48:13,540 --> 00:48:22,400 through this trickle-back effect, that will occur. Any other requests? This gentleman here. 954 00:48:36,640 --> 00:48:47,980 Passive up? Okay. Okay. So the question is, a very good question. We upgrade Freenet very, 955 00:48:48,080 --> 00:48:54,800 very frequently. In fact, we produce a new snapshot daily, and a lot of people actually 956 00:48:54,800 --> 00:48:56,320 keep pretty up-to-date with it. 957 00:48:56,340 --> 00:49:05,220 One of the problems with that is, in order to upgrade, you have to take down your node, and it'll forget 958 00:49:05,220 --> 00:49:11,020 stuff, and it'll get disconnected from other nodes, and that's actually kind of a pain in the ass, 959 00:49:11,080 --> 00:49:15,380 both for you and for the rest of the network. And would there be, the question was, would there be 960 00:49:15,380 --> 00:49:23,040 any way that we could allow the peer to be upgraded without taking it down? The answer, unfortunately, 961 00:49:23,100 --> 00:49:25,700 is that Java makes that very difficult. 962 00:49:26,520 --> 00:49:33,880 It is, you know, and it would probably be pretty difficult with, irrespective of what programming 963 00:49:33,880 --> 00:49:42,240 language we were using, except perhaps, you know, Scheme or something. So, unfortunately, the answer 964 00:49:42,240 --> 00:49:49,880 is no, and I think it's unlikely the answer will ever be yes to that, I'm afraid. There was another 965 00:49:49,880 --> 00:49:53,480 question there? I think I've got about a minute left. 966 00:49:59,780 --> 00:50:06,180 Okay, the question was, to what extent do different nodes share information about routing to different 967 00:50:06,180 --> 00:50:16,080 peers? The basic answer is that when you find out about a new peer, which kind of happens, there are 968 00:50:16,080 --> 00:50:25,800 a couple of ways that you can discover new peers in the network. Associated with the address of that 969 00:50:26,340 --> 00:50:35,520 peer will be information that has been collected by another node about that peer. So, in effect, another 970 00:50:35,520 --> 00:50:43,520 peer will say, you know, hey Ian, you're looking, you want to find out about a new node, I know this guy 971 00:50:43,520 --> 00:50:51,700 Joe, here's what I've learned about him, you know, and you can use that as a basis for your own 972 00:50:51,700 --> 00:50:53,400 statistical information about Joe. 973 00:50:54,080 --> 00:50:55,500 The threat there, obviously, 974 00:50:56,340 --> 00:51:03,860 is that if I send a request, and the request goes to Joe, then Joe can say, oh, well, yeah, I'm really, really 975 00:51:03,860 --> 00:51:12,220 great, and you should send all your requests to me, and the way we kind of thwart that problem is that if you're 976 00:51:13,080 --> 00:51:14,520 forwarding a piece...