1 00:00:00,000 --> 00:00:02,560 Building and breaking wireless peering networks. 2 00:00:03,780 --> 00:00:06,240 MANA is really simple. 3 00:00:06,640 --> 00:00:11,180 The idea is that if you have a network that can configure itself, 4 00:00:11,540 --> 00:00:13,400 then you don't need network administrators. 5 00:00:14,120 --> 00:00:17,540 Mobile ad hoc networks should be very fast. 6 00:00:17,780 --> 00:00:19,980 They should deliver voice over IP quality traffic. 7 00:00:20,680 --> 00:00:24,060 If you move from cell to cell or regions or zones, 8 00:00:24,060 --> 00:00:29,020 or if your regions or zones are 50, 60, 90, 500 mile an hour, 9 00:00:30,340 --> 00:00:33,340 moving groups, flocking together, working together, 10 00:00:33,520 --> 00:00:35,540 I can't think of anything, Lebanon, 11 00:00:35,760 --> 00:00:38,560 that would need fast-moving communications networks. 12 00:00:38,800 --> 00:00:42,700 But the idea is really simply that when the infrastructure breaks, 13 00:00:42,780 --> 00:00:43,820 when everything else fails, 14 00:00:43,940 --> 00:00:45,920 you can make your own network all by yourself 15 00:00:45,920 --> 00:00:47,400 the same way that we all make friends. 16 00:00:49,280 --> 00:00:52,440 In Hurricane Katrina, we saw that all of the emergency responders' 17 00:00:52,720 --> 00:00:53,440 equipment was fucked. 18 00:00:54,060 --> 00:00:56,860 All the delivery of goods and services was bent. 19 00:00:57,060 --> 00:00:58,820 All the phones did not work. 20 00:00:59,020 --> 00:01:03,240 All the Wi-Fi and Wi-Max and whatever the hell else your star technology is 21 00:01:03,880 --> 00:01:05,240 broke because the power went out 22 00:01:05,240 --> 00:01:07,680 and broke because the phone lines went down 23 00:01:07,680 --> 00:01:09,260 and broke because the towers fell down 24 00:01:09,260 --> 00:01:11,060 and broke and broke and broke and broke. 25 00:01:11,500 --> 00:01:13,220 Mobile ad hoc networks, or MANA, 26 00:01:13,800 --> 00:01:15,680 do not have those same problems. 27 00:01:15,880 --> 00:01:18,220 If you can get batteries, you can make a network. 28 00:01:18,380 --> 00:01:19,900 You can make a network that works, 29 00:01:19,980 --> 00:01:23,560 and ideally a network that works at full cell phone quality 30 00:01:24,060 --> 00:01:26,120 or IP packet delivery quality. 31 00:01:27,740 --> 00:01:30,980 The beautiful thing of MANA and the problem of MANA 32 00:01:30,980 --> 00:01:32,480 is that there's no central administration. 33 00:01:33,280 --> 00:01:34,580 And I mean none. 34 00:01:34,780 --> 00:01:36,700 You're not allowed to have central passwords. 35 00:01:37,000 --> 00:01:38,800 You can't have online authentication. 36 00:01:39,220 --> 00:01:40,380 You can't have servers. 37 00:01:40,640 --> 00:01:43,380 You can use them, but you can't count on them being there 38 00:01:43,380 --> 00:01:45,700 because by their very nature, 39 00:01:45,780 --> 00:01:48,260 if a group of users splits into two groups of users, 40 00:01:48,520 --> 00:01:51,100 the resources in this group and the resources in this group 41 00:01:51,100 --> 00:01:52,400 can no longer talk to each other. 42 00:01:52,400 --> 00:01:54,120 In essence, they can no longer talk. 43 00:01:54,260 --> 00:01:55,980 If your server's here and your client's here, 44 00:01:56,120 --> 00:01:57,800 then you don't have a client-server architecture. 45 00:01:58,200 --> 00:01:59,740 You're bent, and it doesn't work. 46 00:02:00,120 --> 00:02:01,920 So you have to rethink all the problems. 47 00:02:02,120 --> 00:02:04,520 You have to figure out a new way to build a secure system. 48 00:02:04,820 --> 00:02:08,680 And once you've done that, then the entire network works, 49 00:02:08,700 --> 00:02:10,160 and you don't need a freaking subnet. 50 00:02:10,280 --> 00:02:11,760 No more DNS server addresses. 51 00:02:12,200 --> 00:02:16,520 It's really, really nice when you can make it work. 52 00:02:16,820 --> 00:02:18,400 It works in hostile environments. 53 00:02:18,640 --> 00:02:20,520 Mobile ad hoc networks should resist 54 00:02:20,520 --> 00:02:21,440 denial-of-service attacks. 55 00:02:21,440 --> 00:02:24,620 They should resist man-in-the-middle attacks. 56 00:02:24,860 --> 00:02:26,520 They should resist network floods. 57 00:02:26,800 --> 00:02:28,180 They should do a lot of things. 58 00:02:28,320 --> 00:02:29,700 And what I'm going to show you a little later 59 00:02:29,700 --> 00:02:32,360 is a demonstration of a network that doesn't. 60 00:02:32,820 --> 00:02:35,940 And this will be probably the most robust network 61 00:02:35,940 --> 00:02:39,280 that exists today outside of the things that I've been working on, 62 00:02:39,360 --> 00:02:40,980 which are not really ready for all y'all yet. 63 00:02:41,100 --> 00:02:44,220 So the best things that exist are not good enough, 64 00:02:44,400 --> 00:02:47,420 and they're not getting better at all. 65 00:02:49,420 --> 00:02:51,340 Shannon is one of those guys 66 00:02:51,440 --> 00:02:54,880 like Einstein who just figures out the right thing 67 00:02:54,880 --> 00:02:56,300 at the right time and tells everybody, 68 00:02:56,560 --> 00:02:59,140 and then busts your balls because you can't beat him. 69 00:02:59,820 --> 00:03:03,900 Shannon's law says that power and distance and bandwidth 70 00:03:03,900 --> 00:03:05,140 are fundamentally related. 71 00:03:05,400 --> 00:03:07,140 You can use more power to get more bandwidth. 72 00:03:07,320 --> 00:03:08,760 You can use more power to get more distance. 73 00:03:09,380 --> 00:03:12,360 The funny thing is, if you buy twice as much power, 74 00:03:12,480 --> 00:03:13,740 you get twice as much bandwidth. 75 00:03:14,060 --> 00:03:15,980 But if you want twice as much distance, 76 00:03:16,160 --> 00:03:17,860 you need four times as much power. 77 00:03:17,980 --> 00:03:21,300 And this is why mobile ad hoc networks will eventually, 78 00:03:21,300 --> 00:03:23,080 be the way that the world works. 79 00:03:23,260 --> 00:03:27,580 It is simply the fact that Shannon says to all of us 80 00:03:27,580 --> 00:03:30,300 that it costs the square of the cost to buy more distance 81 00:03:30,300 --> 00:03:31,920 with just bigger and bigger networks 82 00:03:31,920 --> 00:03:33,580 or bigger and bigger wireless footprints. 83 00:03:33,860 --> 00:03:36,000 But it's only a linear increase in cost 84 00:03:36,000 --> 00:03:38,660 to have more and more nodes on a network 85 00:03:38,660 --> 00:03:40,700 as long as you keep the transmission power small. 86 00:03:41,040 --> 00:03:44,040 You can have nice, good, clean bandwidth 87 00:03:44,040 --> 00:03:46,060 that only goes a few hundred feet per hop. 88 00:03:46,660 --> 00:03:48,140 Your latency is a little higher, 89 00:03:48,280 --> 00:03:51,100 but in most of the applications in the world, 90 00:03:51,100 --> 00:03:51,840 that we're working with, 91 00:03:51,960 --> 00:03:53,800 I mean, you can get across the entire freaking Internet 92 00:03:53,800 --> 00:03:54,880 in 20, 30 milliseconds. 93 00:03:55,020 --> 00:03:57,620 So a few extra hops isn't going to be noticeable 94 00:03:57,620 --> 00:04:00,040 to a jitter buffer and a voice over IP stack. 95 00:04:00,720 --> 00:04:03,680 The problems with mobile ad hoc networks are very simple. 96 00:04:03,820 --> 00:04:06,860 And this has been the case since RIP, 97 00:04:06,960 --> 00:04:11,560 since the Bellman-Ford algorithm was invented in the late 50s. 98 00:04:12,140 --> 00:04:13,560 The networks don't scale, 99 00:04:13,720 --> 00:04:17,340 and it is really a total bitch 100 00:04:17,340 --> 00:04:19,440 to make a voluntary security system. 101 00:04:19,580 --> 00:04:21,080 In fact, you pretty much need to have 102 00:04:21,100 --> 00:04:23,180 the entire model of human interaction 103 00:04:23,180 --> 00:04:24,580 in your security model 104 00:04:25,480 --> 00:04:27,860 because you wake up in a desert one day 105 00:04:27,860 --> 00:04:29,420 and there is one other device in the world. 106 00:04:29,520 --> 00:04:30,380 Do you trust it? 107 00:04:30,800 --> 00:04:31,660 Do you care? 108 00:04:31,840 --> 00:04:32,500 Does it matter? 109 00:04:32,780 --> 00:04:34,420 Well, if that person has the water 110 00:04:34,420 --> 00:04:35,880 and is just a little out of sight, 111 00:04:35,980 --> 00:04:36,680 you really care. 112 00:04:37,140 --> 00:04:38,860 If that person knows where the water is 113 00:04:38,860 --> 00:04:39,820 and is going to lie to you, 114 00:04:40,520 --> 00:04:42,020 you really are just better off 115 00:04:42,020 --> 00:04:43,440 not to talk to them in the first place. 116 00:04:43,560 --> 00:04:46,100 So it's difficult to know before you make friends 117 00:04:46,100 --> 00:04:47,620 how much you're going to get bent 118 00:04:47,620 --> 00:04:49,580 by the evilness of your new friends. 119 00:04:49,580 --> 00:04:52,420 Mobile ad hoc networks have that exact same problem 120 00:04:52,420 --> 00:04:53,160 at every level. 121 00:04:53,320 --> 00:04:55,300 Link layer, routing layer, circuits, 122 00:04:55,840 --> 00:04:56,820 discovery and naming, 123 00:04:57,100 --> 00:04:59,660 every single problem in humanity 124 00:04:59,660 --> 00:05:01,140 is reflected in mobile ad hoc networks. 125 00:05:03,160 --> 00:05:04,540 Again, as I was saying earlier, 126 00:05:04,740 --> 00:05:05,580 people move a lot. 127 00:05:06,580 --> 00:05:08,640 Wireless and wired networks don't. 128 00:05:08,740 --> 00:05:10,320 And mobile ad hoc networks 129 00:05:11,380 --> 00:05:13,180 purport to solve the problem 130 00:05:13,180 --> 00:05:14,940 of making networks where the people are. 131 00:05:16,120 --> 00:05:18,700 The problem is that since people move a lot, 132 00:05:18,700 --> 00:05:21,920 the path through the network changes very rapidly. 133 00:05:22,200 --> 00:05:24,300 If two people are in a line in front of you 134 00:05:24,300 --> 00:05:25,800 and they're the two hops you need to go through 135 00:05:25,800 --> 00:05:26,800 to get to where you're going, 136 00:05:26,900 --> 00:05:27,980 and they switch places, 137 00:05:28,500 --> 00:05:30,620 it's very easy to see a routing loop forming. 138 00:05:30,820 --> 00:05:33,060 It's very easy to see a lot of routing problems. 139 00:05:34,300 --> 00:05:35,720 It's just so much easier 140 00:05:35,720 --> 00:05:36,820 to build infrastructure solutions. 141 00:05:37,240 --> 00:05:39,280 In fact, that's what every single commercial person 142 00:05:39,280 --> 00:05:40,040 is going to tell you, 143 00:05:40,120 --> 00:05:42,320 is that it's just so much easier 144 00:05:42,320 --> 00:05:43,080 to build infrastructure. 145 00:05:43,420 --> 00:05:45,160 And besides, you have to pay 146 00:05:45,160 --> 00:05:45,920 to use the infrastructure 147 00:05:45,920 --> 00:05:47,600 whether or not you're using the infrastructure. 148 00:05:47,600 --> 00:05:49,660 Your phone bill doesn't come proportional 149 00:05:49,660 --> 00:05:51,440 to the amount of use you get out of your phone. 150 00:05:51,480 --> 00:05:52,500 Your phone bill comes proportional 151 00:05:52,500 --> 00:05:54,160 to the amount of money they can pull 152 00:05:54,160 --> 00:05:55,100 out of your freaking wallet. 153 00:05:55,500 --> 00:05:57,340 They don't have to justify the costs. 154 00:05:57,540 --> 00:05:58,560 They don't have to do anything. 155 00:05:58,800 --> 00:06:00,520 They just need you to believe 156 00:06:00,520 --> 00:06:01,760 that there's no better solution. 157 00:06:02,100 --> 00:06:03,380 So infrastructure networking 158 00:06:03,380 --> 00:06:05,660 will always be purpushed 159 00:06:05,660 --> 00:06:06,720 by your commercial vendors. 160 00:06:07,140 --> 00:06:09,780 The only people that will change that fact 161 00:06:09,780 --> 00:06:12,380 is you and you and you and your dollars. 162 00:06:12,560 --> 00:06:14,000 You put your money into equipment, 163 00:06:14,240 --> 00:06:16,580 you put your money into investments in technology 164 00:06:16,580 --> 00:06:18,760 that makes mobile ad hoc and peer-to-peer networks, 165 00:06:19,020 --> 00:06:20,420 your phone bill will go down. 166 00:06:20,640 --> 00:06:22,840 I can't say it any simpler than that. 167 00:06:23,620 --> 00:06:26,300 Fixed mesh networks or hybrid infrastructure 168 00:06:26,300 --> 00:06:29,760 is what the commercial carriers are now telling us 169 00:06:29,760 --> 00:06:31,920 is exactly the solution to all of our problems 170 00:06:31,920 --> 00:06:33,700 because if infrastructure is good, 171 00:06:33,900 --> 00:06:35,720 more infrastructure must be better. 172 00:06:36,160 --> 00:06:37,980 More infrastructure in these guys' case 173 00:06:37,980 --> 00:06:40,680 is you, the access point, 174 00:06:41,600 --> 00:06:43,780 more cost, the infrastructure. 175 00:06:44,120 --> 00:06:45,520 And they just add a new layer 176 00:06:45,520 --> 00:06:47,040 in the middle of bending you over. 177 00:06:47,380 --> 00:06:49,800 That's all hybrid infrastructure does for you 178 00:06:49,800 --> 00:06:51,440 is just make the bend over area 179 00:06:51,440 --> 00:06:53,560 the footprint of where you get screwed larger. 180 00:06:54,920 --> 00:06:57,320 People, at least me, want a real solution. 181 00:06:57,600 --> 00:07:00,180 I want to say to hell with net neutrality. 182 00:07:00,340 --> 00:07:01,040 It's my network. 183 00:07:01,160 --> 00:07:02,240 If I use it, it's mine. 184 00:07:02,660 --> 00:07:03,580 It's your network. 185 00:07:03,680 --> 00:07:04,840 If you use it, it's yours. 186 00:07:06,800 --> 00:07:09,160 We cannot have a life 187 00:07:09,160 --> 00:07:10,900 where there's a middle of the world 188 00:07:10,900 --> 00:07:13,620 and a backbone that we owe somebody to connect to. 189 00:07:13,880 --> 00:07:14,620 We're here. 190 00:07:14,620 --> 00:07:15,840 We have communication devices. 191 00:07:16,200 --> 00:07:17,520 We should be able to fucking communicate 192 00:07:17,520 --> 00:07:19,380 whether or not there's a goddamn signal 193 00:07:19,380 --> 00:07:22,120 in this lovely infrastructure-free building. 194 00:07:24,700 --> 00:07:26,440 So I'm going to divert a little bit 195 00:07:26,440 --> 00:07:29,340 and talk about the science behind routing protocols 196 00:07:29,340 --> 00:07:32,000 because the differences between peer-to-peer networks 197 00:07:32,560 --> 00:07:35,360 really do fall down to the lowest little bits of security 198 00:07:35,360 --> 00:07:36,600 or rather of the science. 199 00:07:37,560 --> 00:07:39,260 I won't bore you too long with this. 200 00:07:40,140 --> 00:07:42,320 The major types of routing protocols that exist 201 00:07:42,320 --> 00:07:43,620 are link state routing. 202 00:07:43,620 --> 00:07:45,740 This is going to be your OSPF. 203 00:07:45,880 --> 00:07:49,180 This is your big, gigantic network routing protocol. 204 00:07:49,660 --> 00:07:51,340 Then there's distance vector routing, 205 00:07:51,480 --> 00:07:53,060 and this starts back with RIP 206 00:07:53,060 --> 00:07:56,040 and the really, really lame, lame, lame old protocols 207 00:07:56,040 --> 00:07:58,900 and goes forward to more modern protocols like AODV. 208 00:07:59,340 --> 00:08:01,780 That's the new mesh network 209 00:08:01,780 --> 00:08:03,220 that we're all supposed to fall in love with 210 00:08:03,220 --> 00:08:05,940 because it scales up to 16 and maybe 30 devices. 211 00:08:07,920 --> 00:08:08,440 Thanks. 212 00:08:09,660 --> 00:08:13,180 Policy-based routing is a really great new thing. 213 00:08:13,620 --> 00:08:16,000 Where you override your other routing protocol 214 00:08:16,000 --> 00:08:16,940 with a text file 215 00:08:16,940 --> 00:08:19,680 because your other routing protocol isn't distance vector 216 00:08:19,680 --> 00:08:21,760 and so it sucks and so you need a text file. 217 00:08:22,160 --> 00:08:24,900 Cisco tells us that if we have policy-based routing 218 00:08:24,900 --> 00:08:26,160 our lives will be much better. 219 00:08:27,640 --> 00:08:28,780 I'm not convinced. 220 00:08:30,280 --> 00:08:32,880 Distance vector routing requires that every device 221 00:08:32,880 --> 00:08:33,780 has a unique address. 222 00:08:34,100 --> 00:08:34,680 Now this is different. 223 00:08:35,120 --> 00:08:37,340 I'll say this again probably, 224 00:08:37,520 --> 00:08:40,780 but in a link state routed protocol like IP 225 00:08:40,780 --> 00:08:42,380 or most IP networks, 226 00:08:42,380 --> 00:08:44,200 your interface has an address. 227 00:08:44,480 --> 00:08:48,500 And so if I switch from, say, wired to wireless, 228 00:08:48,720 --> 00:08:49,940 my IP address changes, 229 00:08:50,200 --> 00:08:51,600 TCP for tuple changes, 230 00:08:51,960 --> 00:08:53,920 and my voice over IP session has to die 231 00:08:53,920 --> 00:08:56,620 unless I use some gateway or some intermediary. 232 00:08:56,740 --> 00:08:59,220 I have to get help to make IP work 233 00:08:59,220 --> 00:09:00,920 when I disconnect the wire. 234 00:09:01,500 --> 00:09:02,600 If y'all have seen this, 235 00:09:02,800 --> 00:09:05,680 if I could all suspend, undock, 236 00:09:05,960 --> 00:09:09,560 open it back up, reopen my sessions, wait for... 237 00:09:09,560 --> 00:09:11,380 This is the problems with 238 00:09:11,380 --> 00:09:13,800 link state routing and why 239 00:09:13,800 --> 00:09:15,940 distance vector routing is so much cooler 240 00:09:15,940 --> 00:09:17,800 because the device itself has an address 241 00:09:17,800 --> 00:09:19,880 and so if you can reach the address 242 00:09:19,880 --> 00:09:21,960 any damn way you can reach it. 243 00:09:22,220 --> 00:09:24,300 Bluetooth, hopping over to Wi-Fi, 244 00:09:24,420 --> 00:09:25,860 skipping to infrared, fine. 245 00:09:26,160 --> 00:09:27,900 As long as you can get to where you're going, 246 00:09:28,020 --> 00:09:29,120 it all works the same. 247 00:09:29,240 --> 00:09:30,340 So your voice over IP session 248 00:09:30,340 --> 00:09:32,960 just switches interfaces rather than dying 249 00:09:32,960 --> 00:09:34,080 and making you start over. 250 00:09:34,280 --> 00:09:36,320 In other words, you can undock your phone, 251 00:09:36,460 --> 00:09:37,240 keep talking. 252 00:09:38,840 --> 00:09:40,760 Applications don't distinguish transports 253 00:09:40,760 --> 00:09:41,800 on a distance vector network. 254 00:09:42,040 --> 00:09:44,800 So you don't have bind to this interface. 255 00:09:45,100 --> 00:09:47,400 There's no need for that because I'm running. 256 00:09:47,560 --> 00:09:48,920 I'm bound. That's good enough. 257 00:09:49,060 --> 00:09:50,280 I'm on the network. I'm on the network. 258 00:09:51,920 --> 00:09:52,680 Partial failures. 259 00:09:52,940 --> 00:09:54,700 So if I... 260 00:09:55,860 --> 00:09:58,020 Speaking of which, I really like HTC 261 00:09:58,020 --> 00:09:58,760 and these new devices. 262 00:09:58,900 --> 00:10:01,200 I'm not pimping for them because I am paid. 263 00:10:01,260 --> 00:10:02,180 I'm pimping because I love them. 264 00:10:02,380 --> 00:10:03,260 These are really cool. 265 00:10:03,480 --> 00:10:05,940 They have EVDO which is purported to be 266 00:10:05,940 --> 00:10:08,660 wireless broadband plus Wi-Fi 267 00:10:08,660 --> 00:10:10,740 and if you have a distance vector network 268 00:10:10,760 --> 00:10:11,960 with a distance vector routing protocol on it, 269 00:10:12,020 --> 00:10:14,700 then when EVDO fails or Wi-Fi fails, 270 00:10:15,340 --> 00:10:16,720 the transport just switches. 271 00:10:16,840 --> 00:10:17,720 It switches out from under, 272 00:10:17,880 --> 00:10:19,700 reroutes your traffic, sorts it all out for you 273 00:10:19,700 --> 00:10:22,020 and maybe you lose a few packets while it's switching. 274 00:10:22,360 --> 00:10:23,900 How is the device supposed to know that 275 00:10:24,840 --> 00:10:26,140 singular was going to fail again? 276 00:10:27,680 --> 00:10:28,540 Singular is going to fail. 277 00:10:28,700 --> 00:10:29,520 It's just going to happen 278 00:10:29,520 --> 00:10:31,860 and nobody's going to know quite when or why or how. 279 00:10:33,000 --> 00:10:34,280 So to a user, 280 00:10:34,400 --> 00:10:36,460 a distance vector routed network or MENA 281 00:10:36,460 --> 00:10:38,140 is much more natural. 282 00:10:39,200 --> 00:10:40,480 The sensation is, 283 00:10:40,760 --> 00:10:42,040 I've got something connected, 284 00:10:42,400 --> 00:10:43,580 it's kind of working, 285 00:10:43,780 --> 00:10:44,820 so I'm done. 286 00:10:45,560 --> 00:10:48,600 In the same sense like once you can ping 4222, 287 00:10:48,760 --> 00:10:50,680 you're pretty much sorted out on the internet. 288 00:10:50,960 --> 00:10:52,540 If you can turn your device on, 289 00:10:52,640 --> 00:10:54,440 you're pretty much sorted out on a DV network. 290 00:10:55,520 --> 00:10:56,820 So because of that reason, 291 00:10:56,960 --> 00:10:58,320 people when they're using the devices 292 00:10:58,320 --> 00:10:59,800 have a much less, 293 00:11:01,320 --> 00:11:02,260 I'm a tech geek, 294 00:11:02,380 --> 00:11:03,780 I know how to work this device feeling 295 00:11:03,780 --> 00:11:05,280 and much more of I'm a grandma 296 00:11:05,280 --> 00:11:06,560 and my phone works feeling. 297 00:11:07,720 --> 00:11:09,440 The last line here is, 298 00:11:11,140 --> 00:11:13,020 peer-to-peer networks, 299 00:11:13,380 --> 00:11:13,820 MENA, 300 00:11:14,040 --> 00:11:14,840 DV networks, 301 00:11:15,720 --> 00:11:17,660 allow for a high mobility index. 302 00:11:17,960 --> 00:11:20,520 In IP your mobility index is roughly zero 303 00:11:20,520 --> 00:11:23,300 because you can walk from one end of the access point 304 00:11:23,300 --> 00:11:24,900 to the other end of the access point 305 00:11:24,900 --> 00:11:26,840 but on average you pretty much have to stay 306 00:11:26,840 --> 00:11:28,140 within one little small area 307 00:11:28,720 --> 00:11:30,900 and if you integrate that curve over time 308 00:11:30,900 --> 00:11:32,760 you pretty much have a line at zero. 309 00:11:33,040 --> 00:11:34,760 You're pretty much not allowed to move 310 00:11:34,760 --> 00:11:36,940 on the internet without stopping and restarting 311 00:11:36,940 --> 00:11:38,240 whatever the hell it was you were doing. 312 00:11:38,980 --> 00:11:40,740 The challenges with DV networks 313 00:11:40,760 --> 00:11:42,400 and DV routing are 314 00:11:42,400 --> 00:11:44,560 it's really freaking expensive 315 00:11:44,560 --> 00:11:46,660 to exchange 316 00:11:46,660 --> 00:11:48,620 your entire view of the world 317 00:11:48,620 --> 00:11:50,240 once a second or so 318 00:11:50,760 --> 00:11:52,500 and emit in packets to everyone 319 00:11:52,500 --> 00:11:53,300 who can hear you. 320 00:11:54,300 --> 00:11:56,000 Here's my version of the phone book. 321 00:11:56,820 --> 00:11:58,920 Throwing phone books at your friends once a second 322 00:11:58,920 --> 00:12:00,100 is expensive and painful 323 00:12:00,100 --> 00:12:02,340 and is a heavy load and we shouldn't do it. 324 00:12:02,520 --> 00:12:03,960 And this is why when I say 325 00:12:03,960 --> 00:12:06,020 AODV will scale to tens of nodes 326 00:12:06,020 --> 00:12:07,280 and they're proud of that because 327 00:12:08,000 --> 00:12:10,260 that's pretty much what it takes in modern 328 00:12:10,760 --> 00:12:11,300 post inspector routing 329 00:12:11,300 --> 00:12:13,480 is you have to exchange the whole damn phone book 330 00:12:13,480 --> 00:12:16,400 because the network scales exponentially 331 00:12:16,900 --> 00:12:19,240 for every device on the network 332 00:12:19,240 --> 00:12:20,660 every other device on the network 333 00:12:20,660 --> 00:12:22,300 has to add one packet entry 334 00:12:22,300 --> 00:12:23,220 every second. 335 00:12:23,620 --> 00:12:25,580 Hell of a cost to pay. 336 00:12:26,380 --> 00:12:27,680 High processing complexity 337 00:12:27,680 --> 00:12:28,640 I'm going to get into that 338 00:12:28,640 --> 00:12:31,060 in most like AODV and backward 339 00:12:31,060 --> 00:12:32,660 you're going to see that it's very inexpensive 340 00:12:32,660 --> 00:12:34,760 to run these protocols because you only have 341 00:12:34,760 --> 00:12:36,040 12 devices on your network 342 00:12:36,040 --> 00:12:38,920 and well hell I can hand wire a network with 12 devices. 343 00:12:40,760 --> 00:12:42,620 When you start adding all the security 344 00:12:42,620 --> 00:12:44,380 features required to make this a robust 345 00:12:44,380 --> 00:12:46,100 and functional network then 346 00:12:46,100 --> 00:12:48,860 your processor goes absolutely under water. 347 00:12:50,500 --> 00:12:52,680 Link state routing has very few 348 00:12:52,680 --> 00:12:54,640 values and a lot of 349 00:12:54,640 --> 00:12:56,180 challenges but it's cheap. 350 00:12:57,420 --> 00:12:57,960 The 351 00:12:58,640 --> 00:13:00,540 processing and message complexity are trivial 352 00:13:00,540 --> 00:13:02,720 because you can make every user 353 00:13:02,720 --> 00:13:04,560 in the world figure out how to type an IP address 354 00:13:04,560 --> 00:13:05,820 or turn on DHCP. 355 00:13:06,180 --> 00:13:08,720 You can just make everyone learn your networking 356 00:13:08,720 --> 00:13:10,740 technology even the grandmas can figure 357 00:13:10,760 --> 00:13:12,580 out how to call tech support and have somebody 358 00:13:12,580 --> 00:13:13,420 configure their computer. 359 00:13:14,360 --> 00:13:16,820 And once, because you force the user 360 00:13:16,820 --> 00:13:18,800 to do all the configuration and you force the user 361 00:13:18,800 --> 00:13:20,500 to know when they're changing transports and you force 362 00:13:20,500 --> 00:13:22,420 the user to do all the thinking and all the work 363 00:13:22,420 --> 00:13:24,420 then it is obviously comparatively inexpensive. 364 00:13:25,020 --> 00:13:26,780 And by comparatively I mean to say 365 00:13:26,780 --> 00:13:28,840 probably 20, 30, 40 366 00:13:28,840 --> 00:13:30,600 percent less expensive 367 00:13:30,600 --> 00:13:32,760 and to internet service providers that means 368 00:13:32,760 --> 00:13:34,300 totally unacceptable cost 369 00:13:34,300 --> 00:13:36,620 add to go to better networking protocols. 370 00:13:38,780 --> 00:13:40,340 Challenges with link state routing as I said 371 00:13:40,760 --> 00:13:41,920 every interface has a unique address. 372 00:13:42,520 --> 00:13:44,500 The applications have to decide 373 00:13:44,500 --> 00:13:46,120 which interfaces they're bound to 374 00:13:46,120 --> 00:13:48,520 and you've got people who think that the great 375 00:13:48,520 --> 00:13:50,660 idea is to secure the world by making sure 376 00:13:50,660 --> 00:13:52,700 that everything's bound only to the internal interface 377 00:13:52,700 --> 00:13:54,200 and we've all seen 378 00:13:54,200 --> 00:13:56,580 at Klan how much good it really does 379 00:13:56,580 --> 00:13:58,020 to stop binding to an interface. 380 00:13:58,560 --> 00:14:00,180 It's just, it's a total joke. 381 00:14:01,620 --> 00:14:02,220 The 382 00:14:02,220 --> 00:14:04,360 only value in binding is 383 00:14:04,360 --> 00:14:06,740 a lie so it's not really 384 00:14:06,740 --> 00:14:08,380 a very big drive. 385 00:14:09,320 --> 00:14:10,680 Exceptionally unnatural to use 386 00:14:10,760 --> 00:14:12,240 users. I still 387 00:14:12,560 --> 00:14:14,640 cannot convince my mother that networking 388 00:14:14,640 --> 00:14:16,460 is something that she can figure out 389 00:14:16,460 --> 00:14:17,720 and that she can turn on 390 00:14:18,920 --> 00:14:20,660 acquire an IP address automatically. 391 00:14:21,180 --> 00:14:22,760 She really gets stopped at 392 00:14:22,760 --> 00:14:24,360 the acronym IP and just says 393 00:14:24,360 --> 00:14:25,920 what? So 394 00:14:26,480 --> 00:14:28,420 it's very unnatural to users. I mean 395 00:14:28,420 --> 00:14:30,460 you know you and me and the people in this room 396 00:14:30,460 --> 00:14:32,800 we can figure out just whatever's put in front of us 397 00:14:32,800 --> 00:14:34,640 but that's why we're here and the other 398 00:14:34,640 --> 00:14:36,840 360 plus million of them are out there. 399 00:14:37,460 --> 00:14:38,440 We can do it 400 00:14:38,440 --> 00:14:39,620 and they pretty much can't. 401 00:14:40,760 --> 00:14:42,740 Link State Routing demands a low mobility 402 00:14:42,740 --> 00:14:44,660 index and I say low because mobile 403 00:14:44,660 --> 00:14:46,700 IP and some solutions like that will 404 00:14:47,680 --> 00:14:48,700 slowly but 405 00:14:48,700 --> 00:14:50,160 slowly get you a 406 00:14:50,160 --> 00:14:52,580 better mobility index and 407 00:14:52,580 --> 00:14:54,500 so you can move a little bit 408 00:14:54,500 --> 00:14:56,500 with the great new mobility technology. 409 00:14:57,220 --> 00:14:58,700 So there is 410 00:14:58,700 --> 00:15:00,520 some motion available but very very 411 00:15:00,520 --> 00:15:02,600 little and you really rely 412 00:15:02,600 --> 00:15:04,380 on an underlying transport to 413 00:15:04,380 --> 00:15:05,600 sort out the handovers. 414 00:15:06,300 --> 00:15:08,480 EVDO or GSM data 415 00:15:08,480 --> 00:15:10,640 services if you're walking from tower to 416 00:15:10,760 --> 00:15:12,340 tower they're handling the 417 00:15:12,840 --> 00:15:14,540 hiding the fact that you have an IP 418 00:15:14,540 --> 00:15:16,420 address for you and sorting out how to 419 00:15:16,420 --> 00:15:18,720 path through the networks. A distance vector 420 00:15:18,720 --> 00:15:20,640 algorithm wouldn't require 421 00:15:20,640 --> 00:15:22,160 all the extra brains of 422 00:15:22,160 --> 00:15:24,420 three or four or five different routing protocols 423 00:15:24,420 --> 00:15:26,040 to make IP look like it's working. 424 00:15:27,260 --> 00:15:28,700 I really hate the name 425 00:15:28,700 --> 00:15:30,660 of this slide but it was so funny to me because I'm such a 426 00:15:30,660 --> 00:15:32,580 fucking lamer that I had to keep it. 427 00:15:32,860 --> 00:15:34,500 Godzilla versus Mothra or 428 00:15:34,500 --> 00:15:36,540 Dijkstra rather. Dijkstra's 429 00:15:36,540 --> 00:15:38,440 shortest path first algorithm 430 00:15:38,440 --> 00:15:40,400 is pretty much the core of all routing 431 00:15:40,760 --> 00:15:41,860 technology at some point or another. 432 00:15:42,600 --> 00:15:43,740 Link state routing 433 00:15:44,680 --> 00:15:46,340 really Dijkstra's child is 434 00:15:47,060 --> 00:15:47,980 the internet. 435 00:15:48,260 --> 00:15:50,380 Pretty much everything in the entire world 436 00:15:50,380 --> 00:15:52,560 runs this way except for oh wait 437 00:15:52,560 --> 00:15:54,240 everything in the entire world 438 00:15:54,240 --> 00:15:56,680 where it actually matters has to switch over to 439 00:15:56,680 --> 00:15:58,540 distance vector routing because that's 440 00:15:58,540 --> 00:15:59,820 what actually works. 441 00:16:00,480 --> 00:16:02,560 Mesh networks of course are DVR 442 00:16:03,640 --> 00:16:04,280 IGRP 443 00:16:04,280 --> 00:16:06,780 internal gateway routing of any 444 00:16:06,780 --> 00:16:08,660 kind is generally done 445 00:16:08,660 --> 00:16:10,500 has been done in the past with 446 00:16:10,760 --> 00:16:12,260 distance vector algorithms although 447 00:16:12,820 --> 00:16:14,580 OSPF seems to be winning a lot of 448 00:16:14,580 --> 00:16:16,380 wars these days. BGP 449 00:16:16,380 --> 00:16:18,020 is a distance vector algorithm 450 00:16:19,120 --> 00:16:20,500 and games and AI 451 00:16:20,500 --> 00:16:22,700 all use distance vector as their 452 00:16:22,700 --> 00:16:24,600 method of figuring out which way to drive 453 00:16:24,600 --> 00:16:26,120 around the map and shoot you next. 454 00:16:28,260 --> 00:16:30,740 So some examples of this technology 455 00:16:30,740 --> 00:16:32,120 and a sort of a 456 00:16:32,520 --> 00:16:34,580 walk from where things are bad over 457 00:16:34,580 --> 00:16:36,620 toward things getting better. If we start with 458 00:16:36,620 --> 00:16:37,860 infrastructure mode Wi-Fi 459 00:16:37,860 --> 00:16:40,580 you are immobile. In fact the name 460 00:16:40,760 --> 00:16:42,000 of the protocol is WEP 461 00:16:42,000 --> 00:16:44,300 Wired Equivalency Protocol because 462 00:16:44,300 --> 00:16:45,860 God you really need that wire. 463 00:16:46,420 --> 00:16:48,740 I think that the world 464 00:16:48,740 --> 00:16:50,760 of WEP and the whole notion 465 00:16:50,760 --> 00:16:52,660 of wired equivalency is a horrible 466 00:16:52,660 --> 00:16:53,860 horrible horrible sin. 467 00:16:54,100 --> 00:16:56,280 I want wireless because I want to move 468 00:16:56,280 --> 00:16:58,460 not because I want to not 469 00:16:58,460 --> 00:16:59,400 plug in a cable. 470 00:17:00,500 --> 00:17:02,300 You have to sacrifice bandwidth 471 00:17:02,300 --> 00:17:04,440 exponentially to increase radius linearly 472 00:17:04,440 --> 00:17:05,980 as I was talking about earlier. 473 00:17:06,260 --> 00:17:08,340 Moreover if you are talking to someone sitting 474 00:17:08,340 --> 00:17:10,580 next to you through an infrastructure mode 475 00:17:10,760 --> 00:17:12,520 wireless network rather than routing 476 00:17:12,520 --> 00:17:14,740 to the wireless card that's two feet away 477 00:17:14,740 --> 00:17:16,720 it routes to the access point 478 00:17:16,720 --> 00:17:18,440 and then back to your friend and you eat 479 00:17:18,440 --> 00:17:20,600 twice the bandwidth, have twice the chances 480 00:17:20,600 --> 00:17:22,760 for packet loss and pay twice the cost overall. 481 00:17:23,380 --> 00:17:24,420 It's a horrible 482 00:17:24,420 --> 00:17:25,800 again horrible sin. 483 00:17:28,220 --> 00:17:30,720 The closed security model requires 484 00:17:30,720 --> 00:17:32,560 user intervention. What I mean here is 485 00:17:32,560 --> 00:17:34,580 that you have to have a 486 00:17:34,580 --> 00:17:35,520 group of users 487 00:17:36,860 --> 00:17:38,600 for instance if you are at a T-Mobile 488 00:17:38,600 --> 00:17:40,360 hotspot their security model requires 489 00:17:40,760 --> 00:17:42,060 that you become part of their 490 00:17:42,560 --> 00:17:44,780 user group and this is as I was saying 491 00:17:44,780 --> 00:17:46,800 earlier so that they can fuck you out of more money. 492 00:17:47,200 --> 00:17:48,480 There's no other reason 493 00:17:48,480 --> 00:17:50,580 whatsoever to use equipment like this except 494 00:17:50,580 --> 00:17:52,260 that because you have to sign up 495 00:17:52,260 --> 00:17:54,480 and they close the community down and it's all 496 00:17:54,480 --> 00:17:56,520 their rules they get to charge you 497 00:17:56,520 --> 00:17:58,560 to use the same wireless card 498 00:17:58,560 --> 00:17:59,320 that you paid for. 499 00:18:00,780 --> 00:18:02,560 Now the hybrid 500 00:18:02,560 --> 00:18:03,460 mode Wi-Fi 501 00:18:04,600 --> 00:18:06,260 WDS some people are calling it 502 00:18:06,260 --> 00:18:08,600 there are some 802.11s 503 00:18:08,600 --> 00:18:10,600 some extensions to the protocol 504 00:18:10,760 --> 00:18:12,680 for fixed mesh Wi-Fi 505 00:18:12,680 --> 00:18:14,400 and the idea here is just if you put enough 506 00:18:14,400 --> 00:18:16,620 access points down and give them the same SSID 507 00:18:16,620 --> 00:18:18,600 and hook them together on a backplane 508 00:18:18,600 --> 00:18:20,680 they can make it feel like you have a 509 00:18:20,680 --> 00:18:22,460 big, big, big wireless area network 510 00:18:22,460 --> 00:18:24,620 when in fact you just have 12 little 511 00:18:24,620 --> 00:18:26,460 wireless area networks but 512 00:18:26,460 --> 00:18:28,000 your computer doesn't die 513 00:18:28,560 --> 00:18:30,620 because of it. With the 514 00:18:30,620 --> 00:18:32,420 scalability of these networks 515 00:18:32,420 --> 00:18:34,500 you can get all the way up to 16 516 00:18:34,500 --> 00:18:36,640 access points and I know you could 517 00:18:36,640 --> 00:18:38,480 never think of a place big enough to need 518 00:18:38,480 --> 00:18:39,640 16 access points. 519 00:18:40,760 --> 00:18:42,440 But it's okay because you can't have 17. 520 00:18:42,940 --> 00:18:44,340 You may not use them. 521 00:18:46,000 --> 00:18:48,720 There will not be standards for fixed 522 00:18:48,720 --> 00:18:50,320 mesh Wi-Fi we believe until about 523 00:18:50,320 --> 00:18:52,660 2008. The client devices are 524 00:18:52,660 --> 00:18:54,700 still tethered. It's exactly the same 525 00:18:54,700 --> 00:18:56,520 it's just a four times 526 00:18:56,520 --> 00:18:58,660 increase in radius. 16 devices 527 00:18:58,660 --> 00:19:00,780 are required to make your radius get four times bigger 528 00:19:00,780 --> 00:19:02,720 because of your square distance problems. 529 00:19:03,680 --> 00:19:04,740 Same scalability 530 00:19:04,740 --> 00:19:06,680 problems of all distance vector networks 531 00:19:06,680 --> 00:19:08,640 that is they put in a layer of distance vector 532 00:19:08,640 --> 00:19:10,400 right above the infrastructure mode 533 00:19:10,760 --> 00:19:12,420 so that you don't quite feel as bad. 534 00:19:13,780 --> 00:19:14,720 Because they're not 535 00:19:14,720 --> 00:19:16,260 scalable they have the sizing problems 536 00:19:16,260 --> 00:19:18,420 the only way you get reliable 537 00:19:18,420 --> 00:19:20,200 failover is to not 538 00:19:20,630 --> 00:19:22,500 pick up the four times increase in radius 539 00:19:22,500 --> 00:19:24,540 but if you use all 16 devices to give yourself 540 00:19:24,540 --> 00:19:26,560 twice the radius then 541 00:19:26,560 --> 00:19:28,560 you can have failover in case one of the devices 542 00:19:28,560 --> 00:19:30,440 becomes marginally obstructed or blocked 543 00:19:30,440 --> 00:19:32,440 and feel like you have a more reliable network. 544 00:19:32,860 --> 00:19:34,620 And for that you only have to 545 00:19:34,620 --> 00:19:36,520 pay roughly ten times 546 00:19:36,520 --> 00:19:38,640 the equipment cost and four times the 547 00:19:38,640 --> 00:19:40,620 bandwidth. So this 548 00:19:40,760 --> 00:19:42,480 spectrum allocation is where the problem 549 00:19:42,480 --> 00:19:44,180 gets really bad because as we know 550 00:19:44,180 --> 00:19:45,960 Wi-Fi only has three real channels 551 00:19:45,960 --> 00:19:47,280 one, six and eleven in the US 552 00:19:47,280 --> 00:19:50,280 and with three real channels you cannot tile 553 00:19:50,280 --> 00:19:52,480 a plane without having collisions 554 00:19:52,480 --> 00:19:54,000 and interrupts and overlaps 555 00:19:54,000 --> 00:19:56,420 which means that you lose 556 00:19:56,420 --> 00:19:58,360 bandwidth for using fixed mesh Wi-Fi 557 00:19:58,360 --> 00:20:00,620 even over Wi-Fi bandwidth. 558 00:20:00,880 --> 00:20:02,520 What we really want, that's me 559 00:20:02,520 --> 00:20:04,220 I'm speaking for all of us because 560 00:20:04,220 --> 00:20:06,600 I got this microphone. What we 561 00:20:06,600 --> 00:20:08,120 really want is peer to peer networking. 562 00:20:08,360 --> 00:20:10,660 We want to go to friend's house or to a 563 00:20:10,760 --> 00:20:12,560 bar or to wherever the hell we want to go 564 00:20:12,560 --> 00:20:14,620 and we want our phone to work, we want text messaging 565 00:20:14,620 --> 00:20:16,520 to work and we want the crush list 566 00:20:16,520 --> 00:20:18,680 for that cute chick over there or cute 567 00:20:18,680 --> 00:20:19,860 guy over there to be 568 00:20:20,600 --> 00:20:22,680 functional when the sidekick 569 00:20:22,680 --> 00:20:23,760 data service turns off. 570 00:20:24,880 --> 00:20:26,640 We want voice over IP and 3G 571 00:20:26,640 --> 00:20:28,680 PPU reliable message delivery. I want 572 00:20:28,680 --> 00:20:30,800 to stream television to my phone because I'm 573 00:20:30,800 --> 00:20:32,660 a couch potato but I'd really 574 00:20:32,660 --> 00:20:34,160 like it if I could take my couch with me. 575 00:20:34,980 --> 00:20:36,720 I want voice over IP to work. I want to 576 00:20:36,720 --> 00:20:38,760 be able to call. I want to be able to give shoutouts to a bar 577 00:20:38,760 --> 00:20:40,060 or to my friends who are nearby. 578 00:20:40,760 --> 00:20:42,540 I want automatic discovery. I really 579 00:20:42,540 --> 00:20:44,560 want to know if I'm in an offline area 580 00:20:44,560 --> 00:20:46,640 that is, I don't know about you all but 581 00:20:46,640 --> 00:20:48,360 there are some bars in Seattle that have 582 00:20:48,840 --> 00:20:50,740 really thick walls and once you kind of 583 00:20:50,740 --> 00:20:52,760 go inside you're pretty much disconnected from the rest 584 00:20:52,760 --> 00:20:54,680 of the world. They're large enough you can't 585 00:20:54,680 --> 00:20:56,020 see everybody, not by half. 586 00:20:56,680 --> 00:20:58,520 And you can pretty much get lost 587 00:20:58,520 --> 00:21:00,560 and have no possible way to find 588 00:21:00,560 --> 00:21:02,540 anyone without calling security or 589 00:21:02,540 --> 00:21:04,460 sneaking into the back room and looking at the cameras. 590 00:21:05,080 --> 00:21:06,620 So I want a discovery network 591 00:21:06,620 --> 00:21:08,620 that says your buddy list has four 592 00:21:08,620 --> 00:21:10,400 people who are reachable when I go inside 593 00:21:10,760 --> 00:21:12,440 and be able to hit a shoutout to all my friends 594 00:21:12,440 --> 00:21:14,820 and say where the hell are you? Why aren't you back with my drink yet? 595 00:21:16,420 --> 00:21:18,520 We want maximum mobility. I want my network 596 00:21:18,520 --> 00:21:20,600 to work when I'm on the freeway. I want my 597 00:21:20,600 --> 00:21:22,480 car to be able to share my iTunes 598 00:21:22,480 --> 00:21:24,640 with your car's iTunes, the iPods 599 00:21:24,640 --> 00:21:26,480 that we've docked and I want to be able to listen to your 600 00:21:26,480 --> 00:21:28,160 crap music instead of my crap music. 601 00:21:29,440 --> 00:21:30,800 I want to be able to move 602 00:21:30,800 --> 00:21:32,880 and I don't want to have to stop and switch interfaces. 603 00:21:33,120 --> 00:21:34,440 I don't want to have to reconfigure my world 604 00:21:34,440 --> 00:21:36,780 every time I decide to change 605 00:21:36,780 --> 00:21:38,560 what I'm doing. I don't want to tell my damn 606 00:21:38,560 --> 00:21:40,460 computer what I'm doing. I want it to figure it out for 607 00:21:40,760 --> 00:21:42,480 itself. And more importantly, 608 00:21:42,560 --> 00:21:44,020 I want to control my network policy. 609 00:21:44,320 --> 00:21:46,760 You know, this guy wants to share, wants to 610 00:21:46,760 --> 00:21:48,700 route traffic to the internet through me and it's going to cost 611 00:21:48,700 --> 00:21:50,760 me, I'll pay it. This guy, I don't know 612 00:21:50,760 --> 00:21:52,560 so well. I want to be able to pick 613 00:21:52,560 --> 00:21:54,780 and choose who I will route traffic for, who I'll 614 00:21:54,780 --> 00:21:56,380 put phone calls through for, and 615 00:21:56,840 --> 00:21:58,560 guess what? The infrastructure 616 00:21:58,560 --> 00:22:00,700 people tell you is, we'll take care of that 617 00:22:00,700 --> 00:22:01,340 for you, sir. 618 00:22:02,800 --> 00:22:03,660 And charge you. 619 00:22:05,600 --> 00:22:06,600 Understanding the link layer. 620 00:22:06,720 --> 00:22:08,680 So getting into how to actually build a mobile 621 00:22:08,680 --> 00:22:10,740 ad hoc network. You have 622 00:22:10,760 --> 00:22:12,740 to have some kind of carrier sense. 623 00:22:12,920 --> 00:22:14,800 The basic idea here is you have to be 624 00:22:14,800 --> 00:22:16,520 able to detect that there are computers near 625 00:22:16,520 --> 00:22:18,600 yours. Wi-Fi 626 00:22:18,600 --> 00:22:20,540 has a really decent mechanism for this. 627 00:22:20,980 --> 00:22:22,500 Beaconing or broadcast 628 00:22:22,500 --> 00:22:24,340 packets are fine. Just send out a broadcast 629 00:22:24,340 --> 00:22:26,580 periodically and say, hey, here's my device. I'm 630 00:22:26,580 --> 00:22:28,700 here. I exist. I want to make love 631 00:22:28,700 --> 00:22:29,000 to you. 632 00:22:31,520 --> 00:22:32,520 Once you are 633 00:22:32,520 --> 00:22:34,620 in near enough proximity to other 634 00:22:34,620 --> 00:22:36,640 people who are beaconing and you can 635 00:22:36,640 --> 00:22:38,680 receive and understand their packets, then you 636 00:22:38,680 --> 00:22:40,640 can detect that you have peers nearby. 637 00:22:40,760 --> 00:22:42,480 These don't have to be peers on your buddy list. 638 00:22:42,600 --> 00:22:44,420 These are just people who may or may not want to 639 00:22:44,420 --> 00:22:46,020 route traffic for you and vice versa. 640 00:22:46,880 --> 00:22:48,700 You need to be able to infer link quality. 641 00:22:49,040 --> 00:22:50,600 This is really important. This starts 642 00:22:50,600 --> 00:22:52,760 the whole issue of how to make a high quality 643 00:22:52,760 --> 00:22:54,380 mesh network, is 644 00:22:54,380 --> 00:22:56,780 understanding what's a good 645 00:22:56,780 --> 00:22:58,700 way to route packets and what's a bad way to route 646 00:22:58,700 --> 00:23:00,820 packets. Good ways to route packets 647 00:23:00,820 --> 00:23:02,880 are ways that don't drop. Good ways 648 00:23:02,880 --> 00:23:04,600 to route packets are ways that don't even require 649 00:23:04,600 --> 00:23:06,720 a retry. The basic 650 00:23:06,720 --> 00:23:08,500 idea here is the better you can receive 651 00:23:08,500 --> 00:23:10,480 packets, the more reliably I should route 652 00:23:10,760 --> 00:23:12,640 through you and vice versa, especially 653 00:23:12,640 --> 00:23:13,980 if our transmitters are symmetrical. 654 00:23:15,500 --> 00:23:16,680 We need to be able to infer 655 00:23:16,680 --> 00:23:18,760 link quality so that we can start advertising 656 00:23:18,760 --> 00:23:20,400 the presence of our neighbors. 657 00:23:20,640 --> 00:23:22,640 We'll get up to that a little bit later, but 658 00:23:22,640 --> 00:23:24,680 you need to be able to say back to 659 00:23:24,680 --> 00:23:26,580 someone, hey, peer 660 00:23:26,580 --> 00:23:28,600 A, I see you and I hear 661 00:23:28,600 --> 00:23:30,600 your packets reliably and I can 662 00:23:30,600 --> 00:23:32,500 receive from you and 663 00:23:32,500 --> 00:23:34,700 you need to hear back from your friend 664 00:23:34,700 --> 00:23:36,500 that he can hear you and 665 00:23:36,500 --> 00:23:38,700 maybe the link quality is different. 666 00:23:38,980 --> 00:23:40,600 Radio is a crazy, crazy 667 00:23:40,760 --> 00:23:42,260 medium and it's very difficult to predict. 668 00:23:42,540 --> 00:23:44,480 You need to be able to hear back and forth how 669 00:23:44,480 --> 00:23:46,520 effective your link quality is because 670 00:23:46,520 --> 00:23:48,420 even sending a packet forward requires 671 00:23:48,420 --> 00:23:50,640 an ACK, a CSMA 672 00:23:50,640 --> 00:23:52,420 ACK off of the Wi-Fi. 673 00:23:52,620 --> 00:23:54,680 The little ACK packet can drop and if 674 00:23:54,680 --> 00:23:56,520 it does, then you have to retransmit the whole 675 00:23:56,520 --> 00:23:58,880 big packet again. You waste time, 676 00:23:58,920 --> 00:24:00,900 you tie up your Wi-Fi 677 00:24:00,900 --> 00:24:02,680 Mac and you chew up more 678 00:24:02,680 --> 00:24:04,560 and more bandwidth because you're still going to transmit the 679 00:24:04,560 --> 00:24:06,600 packet even if it was going to drop. You don't know it drops 680 00:24:06,600 --> 00:24:07,300 until too late. 681 00:24:08,740 --> 00:24:10,600 We need to be able to take the link quality and 682 00:24:10,760 --> 00:24:11,900 translate that into a link metric. 683 00:24:12,140 --> 00:24:14,280 The idea here is to sum up the cost of links. 684 00:24:14,380 --> 00:24:16,660 If it takes three hops and the costs are one, two, 685 00:24:16,720 --> 00:24:18,500 and three, then I need to be able to advertise that 686 00:24:18,500 --> 00:24:20,380 I can reach some peer that's three hops away 687 00:24:20,380 --> 00:24:21,760 for six units of cost. 688 00:24:22,500 --> 00:24:24,460 Almost everyone at this point has settled 689 00:24:24,460 --> 00:24:26,340 on latency as the 690 00:24:26,840 --> 00:24:27,560 costing metric. 691 00:24:28,520 --> 00:24:30,280 How long will it take to transmit? 692 00:24:30,480 --> 00:24:32,480 If I've got a 99% Wi-Fi link quality, 693 00:24:32,640 --> 00:24:34,820 it takes about 1,257 694 00:24:34,820 --> 00:24:36,400 microseconds to get a packet across. 695 00:24:37,060 --> 00:24:38,700 If I've got a 40% 696 00:24:38,700 --> 00:24:40,700 link quality on Wi-Fi, it takes 697 00:24:40,760 --> 00:24:42,400 about infinity to get a packet across. 698 00:24:42,920 --> 00:24:44,380 It'll take about eight retries. 699 00:24:44,460 --> 00:24:46,200 It'll chew up your Mac for about 20 seconds 700 00:24:46,200 --> 00:24:48,700 trying to send one packet. Your Mac will not listen, 701 00:24:48,800 --> 00:24:50,500 won't respond, and you won't have any other 702 00:24:50,940 --> 00:24:52,680 network traffic for about 20 703 00:24:52,680 --> 00:24:54,740 seconds if you try to send across a 40% 704 00:24:54,740 --> 00:24:55,160 link quality. 705 00:24:56,340 --> 00:24:58,000 Send to a peer with a 40% link quality. 706 00:24:59,200 --> 00:25:00,680 Oh yeah, I already wrote that down 707 00:25:00,680 --> 00:25:02,740 for you. Attacking the link layer. 708 00:25:03,060 --> 00:25:04,460 Really obvious and easy stuff. 709 00:25:04,660 --> 00:25:06,120 You listen to what people are beaconing. 710 00:25:06,280 --> 00:25:08,600 You can figure out who's around 711 00:25:08,600 --> 00:25:10,660 you, and you can by listening to 712 00:25:10,760 --> 00:25:12,340 the acknowledgements of the link quality, 713 00:25:12,500 --> 00:25:13,780 figure out who's near them. 714 00:25:14,180 --> 00:25:16,620 From that, you can begin to infer the topology 715 00:25:16,620 --> 00:25:18,400 of the network without having 716 00:25:18,400 --> 00:25:20,760 any permission or access to the network at all. 717 00:25:21,400 --> 00:25:22,680 This will not ever change. 718 00:25:22,860 --> 00:25:24,300 That's not actually a fixable problem 719 00:25:24,300 --> 00:25:26,440 because, again, if we all want to share 720 00:25:26,440 --> 00:25:28,360 a network where we have personal and 721 00:25:29,120 --> 00:25:30,560 individual control, then we at 722 00:25:30,560 --> 00:25:32,500 least have to agree at the base level on how 723 00:25:32,500 --> 00:25:33,620 the hell we're going to find each other. 724 00:25:34,620 --> 00:25:36,780 You're going to be able to infer the topology 725 00:25:36,780 --> 00:25:38,460 of a wireless mesh network unless 726 00:25:38,460 --> 00:25:40,460 you've got one of Beetle's type 727 00:25:40,760 --> 00:25:41,980 and crypto modules at the bottom. 728 00:25:44,760 --> 00:25:46,500 If the network is functional, 729 00:25:46,720 --> 00:25:48,480 if the network is secure, it's going to be 730 00:25:48,480 --> 00:25:49,760 secure by public key crypto. 731 00:25:50,020 --> 00:25:51,740 The public key crypto is expensive, 732 00:25:51,940 --> 00:25:54,300 the public key crypto is big, and it uses 733 00:25:54,300 --> 00:25:56,220 big ass keys that you have to be able to freely 734 00:25:56,220 --> 00:25:58,440 exchange. So you can retrieve people's 735 00:25:58,440 --> 00:26:01,000 public keys and do identity fingerprinting. 736 00:26:01,680 --> 00:26:02,620 Building new keys 737 00:26:02,620 --> 00:26:04,440 is fairly expensive, and so it's pretty 738 00:26:04,440 --> 00:26:05,960 unreasonable to re-key 739 00:26:05,960 --> 00:26:08,360 very quickly. So you can pretty 740 00:26:08,360 --> 00:26:10,500 effectively track people across multiple media 741 00:26:10,760 --> 00:26:12,740 and figure out who the hell's 742 00:26:12,740 --> 00:26:14,560 on the network. It's not really a big 743 00:26:14,560 --> 00:26:16,500 crime, but it's the beginning of a lot of other 744 00:26:16,500 --> 00:26:18,660 crimes. And that's why we're 745 00:26:18,660 --> 00:26:20,520 here, right? Content 746 00:26:20,520 --> 00:26:22,620 interception. If the network is 747 00:26:22,620 --> 00:26:24,640 not secured, you can watch the voice over 748 00:26:24,640 --> 00:26:26,520 IP go by. There's usually an 749 00:26:26,520 --> 00:26:28,600 encapsulation protocol or some way that the 750 00:26:28,600 --> 00:26:30,560 links are being exchanged, but you can 751 00:26:30,560 --> 00:26:32,620 usually pretty quickly figure out how to reconstruct 752 00:26:32,620 --> 00:26:34,840 a message stream, put the voice over IP packets 753 00:26:34,840 --> 00:26:36,420 the RTP packets back together, 754 00:26:36,620 --> 00:26:38,540 stream them out your local jitter buffer, and 755 00:26:38,540 --> 00:26:40,680 enjoy nice wiretaps. 756 00:26:40,760 --> 00:26:41,340 Effectively. 757 00:26:43,060 --> 00:26:44,580 Attacking the link layer, the Sybil attack. 758 00:26:44,860 --> 00:26:46,600 I hadn't heard this before. It's a really great 759 00:26:46,600 --> 00:26:48,740 name. The idea is simply that you put in 760 00:26:48,740 --> 00:26:50,180 your packet acknowledgements for 761 00:26:50,600 --> 00:26:52,040 oh, about a million people. 762 00:26:52,420 --> 00:26:54,760 You just start dropping bigger, drop the Chinese phonebook 763 00:26:54,760 --> 00:26:56,820 every time you wake up. And it takes 764 00:26:56,820 --> 00:26:58,760 people so long to figure out that you're screwing 765 00:26:58,760 --> 00:27:00,700 with them that they're usually so backed up that you're 766 00:27:00,700 --> 00:27:02,680 screwing with them again by the time it comes in next. 767 00:27:02,940 --> 00:27:04,720 And you spoof your own identity, and by 768 00:27:04,720 --> 00:27:06,540 the time they figure out that you're spoofed, you've already 769 00:27:06,540 --> 00:27:08,680 changed and dropping another Chinese phonebook on them. 770 00:27:08,880 --> 00:27:10,600 The machine just goes to hell. RAM 771 00:27:10,760 --> 00:27:11,600 CPU all gone. 772 00:27:12,860 --> 00:27:14,740 This is of course named after Sybil, 773 00:27:14,840 --> 00:27:16,460 the multiple personality 774 00:27:16,460 --> 00:27:18,540 symptom woman in the 775 00:27:18,540 --> 00:27:19,560 I guess late 70s. 776 00:27:20,380 --> 00:27:22,460 Greeting flood. The idea there is just 777 00:27:22,460 --> 00:27:24,720 really simply you just wake up and call yourself 778 00:27:24,720 --> 00:27:26,760 a different name every 20, 30 microseconds 779 00:27:26,760 --> 00:27:28,560 and make sure that your friends think that there are 780 00:27:28,560 --> 00:27:30,060 about 100,000 people in the room. 781 00:27:30,260 --> 00:27:32,380 And just sorts out their 782 00:27:32,380 --> 00:27:34,660 simple straightforward denial of service attack. 783 00:27:35,580 --> 00:27:36,500 And the problem 784 00:27:36,500 --> 00:27:38,540 again with that is only that 785 00:27:38,540 --> 00:27:40,020 you don't know who and how to trust. 786 00:27:40,760 --> 00:27:41,740 It's a trust based problem. 787 00:27:42,120 --> 00:27:44,540 And that's going to be the core of the security model 788 00:27:44,540 --> 00:27:45,660 that we get to in a little bit. 789 00:27:46,720 --> 00:27:47,800 Greeting and acknowledgement replay. 790 00:27:48,560 --> 00:27:50,520 This is really simply if I 791 00:27:50,520 --> 00:27:52,540 greet twice instead of once, you're going to think 792 00:27:52,540 --> 00:27:54,580 that you've received more percentage of 793 00:27:54,580 --> 00:27:56,060 packets from me if you're not careful. 794 00:27:56,240 --> 00:27:58,320 If I'm lying to you about how fast I'm sending them 795 00:27:58,320 --> 00:28:00,180 and you're getting every other packet, 796 00:28:00,320 --> 00:28:02,040 you still think you have 100% link quality, 797 00:28:02,260 --> 00:28:03,940 you're going to over advertise the link to me 798 00:28:03,940 --> 00:28:06,200 and I'm going to be able to attract the traffic. 799 00:28:07,060 --> 00:28:08,500 I'll show you guys a simulation 800 00:28:08,500 --> 00:28:09,760 of a relatively 801 00:28:10,760 --> 00:28:11,780 effective network attack 802 00:28:13,100 --> 00:28:14,020 attracting traffic 803 00:28:14,020 --> 00:28:16,160 and you'll see that it's brilliant 804 00:28:16,160 --> 00:28:17,540 once you've got the hack in place. 805 00:28:17,680 --> 00:28:20,060 You can just draw all the roads into you. 806 00:28:21,920 --> 00:28:22,620 Degenerated routing 807 00:28:22,620 --> 00:28:24,200 is the major reason for this attack. 808 00:28:24,560 --> 00:28:26,640 Either because you want to drop everyone's packets 809 00:28:26,640 --> 00:28:27,580 and just screw with them 810 00:28:27,580 --> 00:28:29,820 or because you want to intercept and analyze 811 00:28:29,820 --> 00:28:31,640 or attack in some other way. 812 00:28:32,980 --> 00:28:34,400 It increases the processing 813 00:28:34,400 --> 00:28:35,120 and storage requirements 814 00:28:35,860 --> 00:28:37,460 of everyone around you because 815 00:28:37,460 --> 00:28:39,440 you are making the network less effective. 816 00:28:40,760 --> 00:28:42,640 And because the scalability concerns 817 00:28:42,640 --> 00:28:43,780 are always the problem. 818 00:28:43,960 --> 00:28:46,040 So anything you can do to degenerate 819 00:28:46,040 --> 00:28:47,520 the effectiveness of the routing protocol 820 00:28:47,520 --> 00:28:50,020 is a way to turn off or destroy 821 00:28:50,020 --> 00:28:51,140 the functionality of the network. 822 00:28:52,020 --> 00:28:54,220 Wormhole attack is brilliant and simple. 823 00:28:54,440 --> 00:28:56,580 If I have a 30 hop 824 00:28:56,580 --> 00:28:58,560 wireless network and I drag one ethernet 825 00:28:58,560 --> 00:28:59,640 cable from end to end, 826 00:28:59,740 --> 00:29:01,600 the right idea is for everybody on each end 827 00:29:01,600 --> 00:29:02,940 to route backwards toward the ends 828 00:29:02,940 --> 00:29:04,240 and then across the wire in the middle. 829 00:29:05,260 --> 00:29:08,020 That's how it should work and if you do that 830 00:29:08,020 --> 00:29:09,560 and then draw all the traffic to you 831 00:29:10,760 --> 00:29:12,660 before you pass it along or decide to drop it 832 00:29:12,660 --> 00:29:14,100 then everyone on the network thinks 833 00:29:14,100 --> 00:29:15,840 they're getting a good deal to route over your wire 834 00:29:15,840 --> 00:29:18,560 and of course one you can destroy 835 00:29:18,560 --> 00:29:20,120 if you're really smart about it 836 00:29:20,120 --> 00:29:21,780 you can destroy the network and make everyone 837 00:29:21,780 --> 00:29:23,300 think that the whole network is right 838 00:29:23,300 --> 00:29:24,400 one hop away from them. 839 00:29:24,960 --> 00:29:26,780 If you can't do that then you can at least 840 00:29:26,780 --> 00:29:28,400 draw the traffic to you. 841 00:29:29,120 --> 00:29:30,440 We'll talk about the wormhole attack 842 00:29:30,440 --> 00:29:31,660 a little more as a routing layer attack. 843 00:29:33,820 --> 00:29:36,460 In addition to the sort of 844 00:29:36,460 --> 00:29:37,500 routing level problems 845 00:29:37,500 --> 00:29:39,560 you get the whole security model issue of 846 00:29:40,760 --> 00:29:41,640 networking and starting a new network 847 00:29:41,640 --> 00:29:43,000 with people you've never met before. 848 00:29:44,300 --> 00:29:46,000 Unauthorized access reduces bandwidth 849 00:29:46,620 --> 00:29:48,800 and gives people a really convenient 850 00:29:48,800 --> 00:29:50,040 way to intrude your perimeter. 851 00:29:50,280 --> 00:29:52,080 If you've got a wireless network in the real world 852 00:29:52,080 --> 00:29:54,560 today, that's WEP, you should have 853 00:29:54,560 --> 00:29:57,000 a good 300-400 feet of perimeter 854 00:29:57,000 --> 00:29:58,780 around the building with a secure camera 855 00:29:58,780 --> 00:30:00,300 so that people can't come close to you. 856 00:30:00,520 --> 00:30:02,000 No one can afford that much real estate 857 00:30:02,000 --> 00:30:04,200 but with peer-to-peer networking 858 00:30:04,700 --> 00:30:06,600 it's even worse. You only have to be able 859 00:30:06,600 --> 00:30:08,060 to get one link into the building 860 00:30:08,060 --> 00:30:09,860 and then you've got a whole access to the network. 861 00:30:10,760 --> 00:30:12,600 Your security model cannot be based 862 00:30:12,600 --> 00:30:14,260 on the notion of a perimeter with a mobile 863 00:30:14,260 --> 00:30:16,860 ad-hoc network. Selective jamming 864 00:30:16,860 --> 00:30:18,280 is really simple. If you 865 00:30:18,280 --> 00:30:20,520 put on a little device that listens to 866 00:30:20,520 --> 00:30:22,620 people transmitting and the second you see 867 00:30:22,620 --> 00:30:24,280 the MAC address from the person who 868 00:30:24,280 --> 00:30:26,580 was trying to send to you, you just turn on a microwave 869 00:30:26,580 --> 00:30:28,680 oven, open it up and turn 870 00:30:28,680 --> 00:30:30,280 it on for about maybe 871 00:30:30,280 --> 00:30:32,040 500-600 microseconds then 872 00:30:32,040 --> 00:30:34,360 you'll just destroy every packet that comes by 873 00:30:34,360 --> 00:30:36,460 just from that person, just make them 874 00:30:36,460 --> 00:30:38,340 feel like they're at home in 875 00:30:38,340 --> 00:30:38,960 nowheresville. 876 00:30:40,760 --> 00:30:42,440 More importantly, because the MAC 877 00:30:42,440 --> 00:30:44,600 has an exponential back-off and most 878 00:30:44,600 --> 00:30:46,540 people have eight or more retries set, 879 00:30:46,820 --> 00:30:48,460 you're going to freeze their MAC because 880 00:30:48,460 --> 00:30:50,440 they're not going to be able to get any more packets out. 881 00:30:51,040 --> 00:30:52,740 This is a really clever 882 00:30:53,540 --> 00:30:54,020 attack 883 00:30:54,620 --> 00:30:56,920 that I think has been underutilized 884 00:30:56,920 --> 00:30:58,440 in getting people to shut the hell up 885 00:30:58,440 --> 00:31:00,220 on the network. You can make them stop 886 00:31:00,220 --> 00:31:01,940 very quickly if you jam their 887 00:31:02,420 --> 00:31:04,200 packets quickly. It will 888 00:31:04,580 --> 00:31:06,440 take you about eight little bursts of 500 889 00:31:06,440 --> 00:31:08,580 microseconds to get 20 free seconds of 890 00:31:08,580 --> 00:31:10,520 airtime. Really easy way to 891 00:31:10,760 --> 00:31:12,320 fix the Wi-Fi 892 00:31:12,320 --> 00:31:14,160 bandwidth problems at Starbucks. 893 00:31:17,860 --> 00:31:20,300 With selective jamming you can isolate and conquer. 894 00:31:20,480 --> 00:31:22,480 You can make sure that the packets from Jane 895 00:31:22,480 --> 00:31:24,360 never reach Joe and so 896 00:31:24,360 --> 00:31:26,500 Jane and Joe don't make friends, you make 897 00:31:26,500 --> 00:31:28,640 friends for them. You become the way they 898 00:31:28,640 --> 00:31:29,860 route traffic and they 899 00:31:29,860 --> 00:31:32,660 somehow can always reliably get traffic to you 900 00:31:32,660 --> 00:31:34,480 but just can't quite figure out how to get around 901 00:31:34,480 --> 00:31:35,620 that obstruction between them 902 00:31:36,400 --> 00:31:37,900 which is your microwave oven. 903 00:31:38,280 --> 00:31:40,040 To secure the link layer you need 904 00:31:41,700 --> 00:31:42,660 something like 905 00:31:42,660 --> 00:31:43,720 DSA key exchange. 906 00:31:44,180 --> 00:31:46,700 You need to be able to first be able to 907 00:31:46,700 --> 00:31:48,660 track the identity 908 00:31:48,660 --> 00:31:50,340 of the people you're talking to. This is 909 00:31:50,340 --> 00:31:52,600 sort of the very core basic level. 910 00:31:52,720 --> 00:31:54,320 You need to be able to exchange keys, exchange 911 00:31:54,320 --> 00:31:56,740 identities, make a decision about whether to do 912 00:31:56,740 --> 00:31:58,500 the key exchange and waste your own process 913 00:31:58,500 --> 00:31:59,360 or time to make a link. 914 00:32:01,280 --> 00:32:01,760 And 915 00:32:02,880 --> 00:32:04,360 obviously in doing so 916 00:32:04,360 --> 00:32:06,760 you are opening yourself up to 917 00:32:07,280 --> 00:32:08,640 crypto attacks where you 918 00:32:08,640 --> 00:32:09,500 waste all your CPU 919 00:32:10,760 --> 00:32:11,900 running DSA key exchange 920 00:32:11,900 --> 00:32:14,260 protocols. They're extremely expensive 921 00:32:14,260 --> 00:32:16,120 compared to like packet encryption 922 00:32:16,740 --> 00:32:18,540 and will destroy your processor 923 00:32:18,540 --> 00:32:20,420 if you just make links with everybody out there. 924 00:32:20,560 --> 00:32:22,740 So even securing the thing brings in more 925 00:32:22,740 --> 00:32:24,600 problems. This is what I'm talking about with 926 00:32:24,600 --> 00:32:26,460 the fact that it's going to take us another 927 00:32:26,460 --> 00:32:28,660 10 years after somebody makes a reasonable 928 00:32:28,660 --> 00:32:30,620 mesh network to even get to the point where 929 00:32:30,620 --> 00:32:32,400 it's really worth having a deep 930 00:32:32,400 --> 00:32:34,480 knowledge level track security because 931 00:32:34,480 --> 00:32:36,620 the security solutions cause security 932 00:32:36,620 --> 00:32:37,440 problems today. 933 00:32:38,240 --> 00:32:40,520 Work tokens, the idea here is pretty straightforward. 934 00:32:41,000 --> 00:32:42,500 There's a simple way to do a 935 00:32:42,980 --> 00:32:44,740 work token which is to say I will 936 00:32:44,740 --> 00:32:46,720 make friends with you if you prove to me that you've done 937 00:32:46,720 --> 00:32:48,700 something. For instance why don't you 938 00:32:48,700 --> 00:32:50,900 run 500 or 500,000 939 00:32:50,900 --> 00:32:52,420 rounds of SHA-512 940 00:32:52,420 --> 00:32:54,760 find a great cool number and as long 941 00:32:54,760 --> 00:32:56,340 as you meet certain cryptographic protocol 942 00:32:56,340 --> 00:32:58,720 requirements then I'll see that you've done a bunch of work 943 00:32:58,720 --> 00:33:00,720 and everyone around you will see that you've done 944 00:33:00,720 --> 00:33:02,540 a bunch of work and so it's pretty reasonable 945 00:33:02,540 --> 00:33:04,140 to waste the time to build a 946 00:33:04,680 --> 00:33:06,720 key exchange because you've 947 00:33:06,720 --> 00:33:08,520 already spent 10 or 100 or 1000 times 948 00:33:08,520 --> 00:33:09,960 that much power to join the network. 949 00:33:10,760 --> 00:33:12,540 So that's a really easy and 950 00:33:12,540 --> 00:33:14,620 straightforward way to defend against denial of service attacks. 951 00:33:14,840 --> 00:33:16,740 In fact work tokens I think should probably 952 00:33:16,740 --> 00:33:18,680 be generally applied 953 00:33:18,680 --> 00:33:20,420 to places where there are denial of service attacks. 954 00:33:20,680 --> 00:33:22,540 It's just a really straightforward way to slow 955 00:33:22,540 --> 00:33:24,060 the problem down. If it costs you 956 00:33:24,060 --> 00:33:26,380 a million CPU cycles to 957 00:33:27,460 --> 00:33:28,760 add one more name 958 00:33:28,760 --> 00:33:30,640 to the phone book that's then going to fall off 959 00:33:30,640 --> 00:33:32,600 because you can't waste the time to come back to it 960 00:33:32,600 --> 00:33:34,760 then it's really not worth your time to attack the network. 961 00:33:35,600 --> 00:33:36,620 And the nice thing 962 00:33:36,620 --> 00:33:38,420 here is just like in humanity the 963 00:33:38,420 --> 00:33:40,700 work token leverages denial of service 964 00:33:40,760 --> 00:33:42,460 attacks versus the desire to join 965 00:33:42,460 --> 00:33:44,080 networks and this is the 966 00:33:44,080 --> 00:33:46,360 straightforward thing of you're wearing shoes 967 00:33:46,360 --> 00:33:47,680 you're welcome to come into the restaurant. 968 00:33:47,920 --> 00:33:50,500 You've sort of met the bar. You're tall 969 00:33:50,500 --> 00:33:51,420 enough to ride this ride. 970 00:33:52,180 --> 00:33:53,300 In addition to 971 00:33:54,680 --> 00:33:56,540 work tokens and key exchange 972 00:33:56,540 --> 00:33:59,180 you need to sign your broadcasts 973 00:33:59,180 --> 00:34:00,560 and this is where you start getting into 974 00:34:00,560 --> 00:34:02,020 the real processing 975 00:34:02,020 --> 00:34:03,980 complexity of 976 00:34:05,000 --> 00:34:07,060 Manet is sign broadcasts 977 00:34:07,060 --> 00:34:08,440 will prevent people 978 00:34:08,440 --> 00:34:10,740 from building new broadcasts 979 00:34:10,760 --> 00:34:12,460 in your name. Unfortunately 980 00:34:12,460 --> 00:34:14,000 that means everyone has to run 981 00:34:14,000 --> 00:34:16,600 8 byte SHA-512 982 00:34:16,600 --> 00:34:18,060 or 10 byte SHA-512 983 00:34:18,060 --> 00:34:20,780 which is just not even worth the key setup most of the time. 984 00:34:20,880 --> 00:34:21,920 The Mac 985 00:34:21,920 --> 00:34:24,520 setup algorithms are so slow 986 00:34:24,520 --> 00:34:26,480 that this stuff is really expensive to do. 987 00:34:27,000 --> 00:34:28,640 I'm going to keep hammering on this 988 00:34:28,640 --> 00:34:30,500 problem because I mean it'll 989 00:34:30,500 --> 00:34:32,680 take a 400 megahertz processor and turn 990 00:34:32,680 --> 00:34:34,600 it into a brick in no time flat 991 00:34:34,600 --> 00:34:36,040 for a network of 30 devices. 992 00:34:37,980 --> 00:34:39,020 Sign broadcasts 993 00:34:39,020 --> 00:34:40,680 prevent outright the 994 00:34:40,760 --> 00:34:42,580 wormhole attack. They stop it from 995 00:34:42,580 --> 00:34:43,340 being effective. 996 00:34:44,680 --> 00:34:46,720 The simple part of it 997 00:34:46,720 --> 00:34:48,720 is well okay the wormhole attack can still 998 00:34:48,720 --> 00:34:50,440 be done but only in a sense of actually 999 00:34:50,440 --> 00:34:52,580 improving your routing. Wormhole attacks cannot 1000 00:34:52,580 --> 00:34:54,660 just destroy your network once you have 1001 00:34:54,660 --> 00:34:55,980 signed broadcasts. 1002 00:34:56,200 --> 00:34:58,640 Certified identity. The idea is really 1003 00:34:58,640 --> 00:35:00,500 simple. If everyone goes to 1004 00:35:00,500 --> 00:35:01,740 a central resource like 1005 00:35:02,380 --> 00:35:04,660 IANA, InterNIC, one of these big central 1006 00:35:04,660 --> 00:35:06,800 non-profits and gets a registered 1007 00:35:06,800 --> 00:35:08,700 name then that name 1008 00:35:08,700 --> 00:35:10,740 can be yours and it can be attached to your public 1009 00:35:10,760 --> 00:35:12,540 key. Another idea would be the 1010 00:35:12,540 --> 00:35:14,480 PGP global directory is another 1011 00:35:14,480 --> 00:35:15,740 example of where we'd get these 1012 00:35:16,420 --> 00:35:18,620 certified identities from. As long as the 1013 00:35:18,620 --> 00:35:20,600 identities are sensible and string based like 1014 00:35:21,620 --> 00:35:23,160 bill.microsoft.com 1015 00:35:23,160 --> 00:35:24,680 or something like that then it's 1016 00:35:24,680 --> 00:35:26,560 easy to do. I will accept links from 1017 00:35:26,560 --> 00:35:28,320 star.microsoft.com and 1018 00:35:28,320 --> 00:35:30,680 make yourself a nice little island of 1019 00:35:30,680 --> 00:35:31,880 10,000 1020 00:35:32,400 --> 00:35:34,300 rather than joining up to the rest of the world. 1021 00:35:34,440 --> 00:35:35,960 Certified identity also allows 1022 00:35:35,960 --> 00:35:38,580 every user to control their policy and decide 1023 00:35:38,580 --> 00:35:40,460 who they'll route packets for, how well they'll 1024 00:35:40,760 --> 00:35:41,900 route packets and when and why. 1025 00:35:42,560 --> 00:35:44,640 And it impedes unauthorized access. 1026 00:35:44,920 --> 00:35:46,640 Obviously it can't destroy it but as long 1027 00:35:46,640 --> 00:35:47,840 as you validate someone's certificate 1028 00:35:47,840 --> 00:35:50,400 you know that they are at least not 1029 00:35:50,400 --> 00:35:52,360 really, really old hacker, dead 1030 00:35:52,940 --> 00:35:54,580 identity and as long as the 1031 00:35:54,580 --> 00:35:56,500 certificate expiration time is relatively 1032 00:35:56,500 --> 00:35:58,460 short it puts a pretty good wall up. 1033 00:35:59,580 --> 00:36:00,600 Other techniques. 1034 00:36:00,940 --> 00:36:01,840 Jittered timers. 1035 00:36:02,380 --> 00:36:04,400 The timing attacks 1036 00:36:04,400 --> 00:36:06,200 on these networks are crucial 1037 00:36:06,540 --> 00:36:08,460 to destroying the functionality and to 1038 00:36:08,460 --> 00:36:10,560 busting into everything 1039 00:36:10,760 --> 00:36:12,640 if you jitter your timers then it makes it very 1040 00:36:12,640 --> 00:36:14,420 very difficult for that microwave oven 1041 00:36:14,420 --> 00:36:16,480 to turn on at just the right moment. 1042 00:36:16,680 --> 00:36:18,600 It makes it very hard. You effectively have to 1043 00:36:18,600 --> 00:36:20,980 build a, oh about a gigahertz 1044 00:36:20,980 --> 00:36:22,900 FPGA running at 2.4 1045 00:36:22,900 --> 00:36:24,720 gigahertz wifi frequency 1046 00:36:24,720 --> 00:36:26,800 and able to do full processing 1047 00:36:26,800 --> 00:36:28,380 and turn around and turn on a transmitter. 1048 00:36:28,580 --> 00:36:30,700 Turning on a transmitter usually takes about 1049 00:36:30,700 --> 00:36:32,740 200 milliseconds which is about 1050 00:36:33,700 --> 00:36:34,620 oh about 200 1051 00:36:34,620 --> 00:36:36,340 times longer than it takes to get a packet through. 1052 00:36:36,560 --> 00:36:38,280 So jittered timers will definitely 1053 00:36:38,280 --> 00:36:40,580 reduce the risk of spoofing and sniping 1054 00:36:40,760 --> 00:36:42,840 and makes the selective jamming very difficult. 1055 00:36:43,060 --> 00:36:43,940 Transient MAC address. 1056 00:36:44,840 --> 00:36:46,120 Just change your MAC address. 1057 00:36:46,540 --> 00:36:48,120 I mean this is really simple but 1058 00:36:48,620 --> 00:36:50,380 if you heard the wifi talks earlier 1059 00:36:50,380 --> 00:36:52,420 tonight the MAC address is your 1060 00:36:52,420 --> 00:36:54,020 or I guess that was yesterday. 1061 00:36:54,200 --> 00:36:55,700 The MAC address is your worst enemy. 1062 00:36:55,920 --> 00:36:58,340 It tells people pretty much which stepping level model 1063 00:36:58,340 --> 00:37:00,480 and manufacturer made your wifi 1064 00:37:00,480 --> 00:37:02,520 card. Changing your MAC address 1065 00:37:02,520 --> 00:37:04,380 to something bogus is completely 1066 00:37:04,380 --> 00:37:06,560 reasonable, completely acceptable, won't screw with 1067 00:37:06,560 --> 00:37:07,560 your network and will 1068 00:37:07,560 --> 00:37:10,360 interfere with people breaking your stuff. 1069 00:37:10,860 --> 00:37:12,760 Cycle it periodically, throw off listeners. 1070 00:37:13,000 --> 00:37:14,500 Problem with cycling it periodically 1071 00:37:14,500 --> 00:37:16,580 is that you're going to have to do something 1072 00:37:16,580 --> 00:37:18,480 to keep the old MAC address and the new MAC address 1073 00:37:18,480 --> 00:37:20,720 up while your mobile ad hoc network 1074 00:37:20,720 --> 00:37:22,600 switches routes over to the new MAC address 1075 00:37:22,600 --> 00:37:24,420 because your peers on the network are going to think 1076 00:37:24,420 --> 00:37:25,900 that you're somebody else temporarily. 1077 00:37:27,420 --> 00:37:28,660 Uh, avenues for 1078 00:37:28,660 --> 00:37:29,800 future research at the link layer. 1079 00:37:31,800 --> 00:37:32,760 It is 1080 00:37:32,760 --> 00:37:34,480 important to understand the hidden node 1081 00:37:34,480 --> 00:37:36,620 problem and this is simply that 1082 00:37:36,620 --> 00:37:38,600 if Alice can hear Bob 1083 00:37:38,600 --> 00:37:40,400 and Bob can hear Charlie, Alice 1084 00:37:40,760 --> 00:37:42,400 probably can't hear Charlie, but when Alice 1085 00:37:42,400 --> 00:37:44,220 transmit, Bob 1086 00:37:44,940 --> 00:37:46,540 rather if Alice and Charlie both 1087 00:37:46,540 --> 00:37:48,700 transmit at the same time, even though they can't hear each 1088 00:37:48,700 --> 00:37:50,640 other, Bob can't hear anything because he's 1089 00:37:50,640 --> 00:37:51,940 just between two people yelling. 1090 00:37:52,300 --> 00:37:54,680 Um, the hidden node problem is 1091 00:37:54,680 --> 00:37:56,600 the basis for all two hop 1092 00:37:56,600 --> 00:37:58,680 topologies. That is, if you've got 1093 00:37:58,680 --> 00:38:00,500 Alice, Bob, and Charlie, it's two hops 1094 00:38:00,500 --> 00:38:02,480 between them. The two hop topology 1095 00:38:02,480 --> 00:38:04,260 is the basis for making mobility 1096 00:38:04,260 --> 00:38:06,580 functional. All y'all in the back, there's more 1097 00:38:06,580 --> 00:38:07,460 seats up here. Come on in. 1098 00:38:08,320 --> 00:38:10,640 Um, ubiquitous acknowledgement. Uh, it really 1099 00:38:10,760 --> 00:38:12,640 simple. Just, uh, there 1100 00:38:12,960 --> 00:38:14,440 must be some really great 1101 00:38:14,440 --> 00:38:16,600 attacks available by saying, uh, yeah, 1102 00:38:16,640 --> 00:38:18,620 I can hear you. Yeah, I can hear you. Yeah, I can hear you. Oh, 1103 00:38:18,680 --> 00:38:20,600 oh, yeah, yeah, I can hear you. Yeah, I can hear you. Yeah, 1104 00:38:20,660 --> 00:38:22,640 I can hear you. Do that about a thousand times and 1105 00:38:22,640 --> 00:38:24,480 people will be convinced that you have a perfectly 1106 00:38:24,480 --> 00:38:26,380 clear link and that they should 1107 00:38:26,380 --> 00:38:28,680 really reliably trust that they 1108 00:38:28,680 --> 00:38:30,440 can get traffic through to you as we talked about earlier. 1109 00:38:31,020 --> 00:38:31,340 Um, 1110 00:38:32,820 --> 00:38:34,460 rushing attacks, uh, getting 1111 00:38:34,460 --> 00:38:36,460 packets back sooner, uh, like the SNA 1112 00:38:36,460 --> 00:38:38,700 uh, uh, I can reach 1113 00:38:38,700 --> 00:38:40,240 packets earlier today, uh, 1114 00:38:42,120 --> 00:38:42,560 ubiquitous 1115 00:38:42,560 --> 00:38:44,520 acknowledgement. The brilliant thing here is that you can 1116 00:38:44,520 --> 00:38:46,600 actually set off the timers of other people 1117 00:38:46,600 --> 00:38:48,720 on the network to say that they feel like they must 1118 00:38:48,720 --> 00:38:50,440 be backward in time and not receiving 1119 00:38:50,440 --> 00:38:52,780 packets. You can get their timers so far off 1120 00:38:52,780 --> 00:38:54,640 that they won't even listen to the truth 1121 00:38:54,640 --> 00:38:56,700 anymore and you can sort of 1122 00:38:56,700 --> 00:38:58,440 borg their heads. Um, 1123 00:38:58,640 --> 00:39:00,780 these are good places for, for some future 1124 00:39:00,780 --> 00:39:02,700 research. Again, I wanna, I wanna really stress this. 1125 00:39:02,780 --> 00:39:04,720 There is no really good 1126 00:39:04,720 --> 00:39:06,640 set of research out there on all 1127 00:39:06,640 --> 00:39:08,400 of this stuff. There are a few, uh, 1128 00:39:08,500 --> 00:39:10,240 Chinese University and Canadian University 1129 00:39:10,760 --> 00:39:12,460 papers on the topics, um, but they 1130 00:39:12,460 --> 00:39:14,580 really only address the basic, basic stuff. 1131 00:39:14,780 --> 00:39:16,580 There's so, so much 1132 00:39:16,580 --> 00:39:18,520 profit to be made in this area. I'd really 1133 00:39:18,520 --> 00:39:19,980 love it if some people would pick up and 1134 00:39:19,980 --> 00:39:22,500 start attacking the networks that I'm building. 1135 00:39:23,500 --> 00:39:24,300 Um, routing 1136 00:39:24,300 --> 00:39:26,580 is the next layer up. Once you have links, you need 1137 00:39:26,580 --> 00:39:28,480 to form routes. You need to go from 1138 00:39:28,480 --> 00:39:30,320 one hop to the next hop to the next hop 1139 00:39:30,780 --> 00:39:32,680 and, um, this is fundamentally a problem 1140 00:39:32,680 --> 00:39:34,560 of geometry. Uh, as you see 1141 00:39:34,560 --> 00:39:36,480 with the, um, triangle here, 1142 00:39:36,580 --> 00:39:38,540 if, uh, Alice, Bob, and Charlie have 1143 00:39:38,540 --> 00:39:40,640 three links between them and it's one foot, two feet 1144 00:39:40,760 --> 00:39:42,320 and three feet of the distances, then 1145 00:39:42,320 --> 00:39:44,760 the costs of those 1146 00:39:44,760 --> 00:39:46,660 links are one unit, four units, 1147 00:39:46,720 --> 00:39:48,460 and nine units, since Shannon 1148 00:39:48,460 --> 00:39:50,460 tells us that we always have to pay for distance 1149 00:39:50,460 --> 00:39:52,420 by the square. So, 1150 00:39:52,860 --> 00:39:54,720 if we look at, down in the 1151 00:39:54,720 --> 00:39:56,620 example here, one squared plus two squared is less 1152 00:39:56,620 --> 00:39:58,700 than three squared, so rather than Alice transmitting 1153 00:39:58,700 --> 00:40:00,720 to Charlie, it probably makes more sense 1154 00:40:00,720 --> 00:40:02,740 to, for Alice to go through Bob to get to 1155 00:40:02,740 --> 00:40:04,640 Charlie. And if we can 1156 00:40:04,640 --> 00:40:06,560 run this calculation fast enough, then 1157 00:40:06,560 --> 00:40:08,580 Charlie can move quite quickly. 1158 00:40:08,740 --> 00:40:10,640 We can figure out where he's going, how 1159 00:40:10,760 --> 00:40:12,660 and why, and make very rapid 1160 00:40:12,660 --> 00:40:13,500 routing updates. 1161 00:40:14,200 --> 00:40:14,600 Um, 1162 00:40:16,980 --> 00:40:18,540 these routes are based on 1163 00:40:18,540 --> 00:40:20,420 advertisements, that is, when 1164 00:40:20,420 --> 00:40:22,640 I am telling you, if I'm 1165 00:40:22,640 --> 00:40:24,440 Alice, I'm telling you about Bob and Charlie, 1166 00:40:24,560 --> 00:40:26,160 I tell you periodically the cost 1167 00:40:26,700 --> 00:40:28,440 with which I can reach Charlie. And 1168 00:40:28,440 --> 00:40:30,560 going back here for a second, if 1169 00:40:30,560 --> 00:40:32,560 I'm Alice in this environment, I'm actually 1170 00:40:32,560 --> 00:40:34,720 going to advertise the cost to Charlie, not as nine, 1171 00:40:34,940 --> 00:40:36,480 which would be the direct route, but 1172 00:40:36,480 --> 00:40:38,420 because that would be stupid, I'm not going to route that way, 1173 00:40:38,500 --> 00:40:40,360 I'm not going to pay the cost that way, I'm not going to advertise 1174 00:40:40,760 --> 00:40:42,660 the cost that way. Alice is going to say 1175 00:40:42,660 --> 00:40:44,400 I can reach Charlie for five cost, 1176 00:40:44,600 --> 00:40:44,980 which is... 1177 00:40:46,940 --> 00:40:47,900 Really? Jesus. 1178 00:40:48,200 --> 00:40:49,260 Alright, I'm going to have to fly. 1179 00:40:52,480 --> 00:40:52,960 Cool. 1180 00:40:53,420 --> 00:40:55,740 Uh, so, 1181 00:40:56,140 --> 00:40:58,260 if node R, the recipient, hears about 1182 00:40:58,260 --> 00:41:00,440 node O, the origin, through some peer 1183 00:41:00,440 --> 00:41:02,580 P, then, um, in shorthand 1184 00:41:02,580 --> 00:41:04,120 we say that R hears P 1185 00:41:04,560 --> 00:41:06,640 advertising about O. So it's 1186 00:41:06,640 --> 00:41:08,500 sort of backwards. O begins the advertisement 1187 00:41:08,500 --> 00:41:10,540 I'm here, P picks it up, it says 1188 00:41:10,760 --> 00:41:12,740 I'm the peer of O, I can hear O, I've got 1189 00:41:12,740 --> 00:41:14,620 a certain amount of cost, and as R, the receiver, 1190 00:41:14,840 --> 00:41:16,520 I listen to that. So it's sort of a message 1191 00:41:16,520 --> 00:41:17,840 coming from the destination 1192 00:41:18,420 --> 00:41:20,700 back to me, the source, where I want to talk to the 1193 00:41:20,700 --> 00:41:22,640 destination. Um, you need a temporal 1194 00:41:22,640 --> 00:41:24,760 quality metric. That is, you need some kind of a number 1195 00:41:24,760 --> 00:41:26,640 to say how fast can I get 1196 00:41:26,640 --> 00:41:28,680 where I'm going, so that people near me 1197 00:41:28,680 --> 00:41:30,720 can make better decisions about how they want 1198 00:41:30,720 --> 00:41:32,660 to get to where they're going, so that people near 1199 00:41:32,660 --> 00:41:34,600 them and so forth down the network recursively. 1200 00:41:34,960 --> 00:41:36,700 Um, so, in shorthand we say 1201 00:41:36,700 --> 00:41:37,780 that the recipient 1202 00:41:39,660 --> 00:41:40,660 can hear about 1203 00:41:40,760 --> 00:41:42,820 P, the peer, for 3500 units. 1204 00:41:43,060 --> 00:41:44,720 Um, on most networks that'll be 1205 00:41:44,720 --> 00:41:46,000 3500 microseconds. 1206 00:41:46,780 --> 00:41:48,860 So, if we sum it up over multiple hops, 1207 00:41:49,080 --> 00:41:50,860 uh, P can hear about O for 3500, 1208 00:41:51,000 --> 00:41:52,160 R can hear about O for 3000, 1209 00:41:52,620 --> 00:41:54,820 R will say that he's going to go to, um, 1210 00:41:54,860 --> 00:41:56,480 through P to O for 3500. 1211 00:41:56,580 --> 00:41:58,420 And then advertise back out 1212 00:41:58,420 --> 00:42:00,060 that because he's going to need to hop 1213 00:42:00,060 --> 00:42:02,260 through a 3000 cost link 1214 00:42:02,260 --> 00:42:04,720 to get to the 3500 cost link, 1215 00:42:04,860 --> 00:42:06,560 the cost for the route is 1216 00:42:06,560 --> 00:42:08,860 6500. Algorithms 1217 00:42:08,860 --> 00:42:10,640 have to work very hard 1218 00:42:10,760 --> 00:42:12,260 to avoid routing loops because 1219 00:42:12,260 --> 00:42:14,580 it's trivial, trivial, if Charlie 1220 00:42:14,580 --> 00:42:16,580 moves around, um, in 1221 00:42:16,580 --> 00:42:18,520 between B and, uh, in between A and B 1222 00:42:18,520 --> 00:42:20,700 then both people can start to try 1223 00:42:20,700 --> 00:42:22,540 to route the same direction and the traffic can start 1224 00:42:22,540 --> 00:42:24,520 going in storms and accelerating 1225 00:42:24,520 --> 00:42:26,840 storms usually. Um, this causes 1226 00:42:26,840 --> 00:42:27,880 all sorts of hell. 1227 00:42:28,900 --> 00:42:29,300 Um. 1228 00:42:31,280 --> 00:42:32,600 So, attacking the routing layer. 1229 00:42:32,740 --> 00:42:34,740 Uh, refusal to participate. Black hole attack. 1230 00:42:34,920 --> 00:42:36,500 Really simply just drop all data packets. 1231 00:42:37,000 --> 00:42:38,620 Participate in every other way in the network and then 1232 00:42:38,620 --> 00:42:40,440 just drop every data packet that comes through you 1233 00:42:40,760 --> 00:42:42,580 and it will slow people down and slow people down 1234 00:42:42,580 --> 00:42:44,900 and slow people down. It's so obvious, in fact, 1235 00:42:44,940 --> 00:42:46,560 that most algorithms will have 1236 00:42:46,560 --> 00:42:48,640 retry counts. Um, it's really easy to 1237 00:42:48,640 --> 00:42:50,840 detect black holes. Simply try to, uh, 1238 00:42:50,940 --> 00:42:52,480 send a little ping across two hops 1239 00:42:52,480 --> 00:42:54,620 and realize that you're not getting anything through, but if you 1240 00:42:54,620 --> 00:42:56,080 send it a longer way, it works. 1241 00:42:56,400 --> 00:42:58,520 Then you mark that peer that you tried to route through 1242 00:42:58,520 --> 00:42:59,760 initially as an asshole and 1243 00:43:01,060 --> 00:43:02,620 boot them off your network. Grey hole. 1244 00:43:02,760 --> 00:43:04,940 Drop some data packets. The proportionality 1245 00:43:04,940 --> 00:43:06,380 with which you drop data packets 1246 00:43:06,380 --> 00:43:08,660 is the exact likelihood with which you'll be detected 1247 00:43:08,660 --> 00:43:10,200 dropping data packets. So again, 1248 00:43:10,760 --> 00:43:12,220 probably not that big of a deal. 1249 00:43:12,360 --> 00:43:14,580 Uh, you count the packet drop ratio as an 1250 00:43:14,580 --> 00:43:16,700 additional cost factor and it'll 1251 00:43:16,700 --> 00:43:18,260 make the route look like it's very slow. 1252 00:43:18,480 --> 00:43:20,600 Um, because retransmissions effectively 1253 00:43:20,600 --> 00:43:22,800 just move packet loss into the time 1254 00:43:22,800 --> 00:43:24,720 domain. Uh, underestimating distance. 1255 00:43:24,880 --> 00:43:26,280 This is a far bigger problem. 1256 00:43:26,460 --> 00:43:28,300 Uh, this is effectively the wormhole attack. 1257 00:43:28,780 --> 00:43:30,500 Um, a wormhole attack 1258 00:43:30,500 --> 00:43:32,820 will absorb all traffic within 1259 00:43:32,820 --> 00:43:34,800 uh, roughly one half 1260 00:43:34,800 --> 00:43:36,300 of the distance of the wormhole. 1261 00:43:36,420 --> 00:43:38,860 So if you've got a wire that jumps 50 hops 1262 00:43:39,440 --> 00:43:40,740 and can bring people 1263 00:43:40,760 --> 00:43:42,500 and can advertise the packets 1264 00:43:42,500 --> 00:43:44,260 through to the other side, then for about 1265 00:43:44,260 --> 00:43:46,660 25 hops in all directions around each 1266 00:43:46,660 --> 00:43:48,440 end of the wormhole, there will be a 1267 00:43:48,440 --> 00:43:50,760 sinkhole effect created and all traffic 1268 00:43:50,760 --> 00:43:52,440 will route into the middle. It's a 1269 00:43:52,440 --> 00:43:54,560 brilliant, brilliant attack. Very easy 1270 00:43:54,560 --> 00:43:56,260 to do and absolutely rewarding. 1271 00:43:56,960 --> 00:43:58,660 Um, invariant violation. This is really simple. 1272 00:43:58,780 --> 00:44:00,640 Just, um, go into the algorithm wherever 1273 00:44:00,640 --> 00:44:02,300 they say avoid routing loops and 1274 00:44:02,300 --> 00:44:04,520 change less than to greater than. Create 1275 00:44:04,520 --> 00:44:06,820 routing loops all day long. Mess people up. 1276 00:44:06,900 --> 00:44:08,900 They hate you. They can't do anything about it. 1277 00:44:09,440 --> 00:44:10,540 Uh, rushing attacks. 1278 00:44:10,760 --> 00:44:12,460 Uh, first pass to post algorithms are 1279 00:44:12,460 --> 00:44:14,720 commonly used, uh, to disambiguate 1280 00:44:14,720 --> 00:44:16,340 what's a slow path from a fast path. 1281 00:44:16,580 --> 00:44:18,360 Um, in the examples here with the 1282 00:44:18,360 --> 00:44:20,460 SNA talk a minute ago or DNS response 1283 00:44:20,460 --> 00:44:22,620 spoofing, uh, rushing attacks make it 1284 00:44:22,620 --> 00:44:24,660 very difficult for anyone to think better than 1285 00:44:24,660 --> 00:44:26,400 you. And so first pass to post 1286 00:44:26,400 --> 00:44:28,000 algorithms obviously are horrible. 1287 00:44:28,420 --> 00:44:30,580 The invisible million man march. This is what 1288 00:44:30,580 --> 00:44:32,480 we talked about earlier with the hellos and the 1289 00:44:32,480 --> 00:44:34,380 link beacons, but we do the same thing as an 1290 00:44:34,380 --> 00:44:36,580 advertisement. We say I've got routes to 1291 00:44:36,580 --> 00:44:38,580 node 1, node 2, 1292 00:44:38,700 --> 00:44:40,500 node 3, 4, 5, node 1293 00:44:40,760 --> 00:44:42,720 900,000, 900,001, and we do that 1294 00:44:42,720 --> 00:44:44,540 every second. You can do it at the link layer 1295 00:44:44,540 --> 00:44:46,740 to say that I've got friends that are nearby, but that's 1296 00:44:46,740 --> 00:44:48,100 really easy to detect as bullshit. 1297 00:44:48,500 --> 00:44:50,800 Uh, advertisement's way harder to detect because 1298 00:44:50,800 --> 00:44:52,620 fundamentally they're about things that are 1299 00:44:52,620 --> 00:44:54,340 far away from you. Um, 1300 00:44:54,520 --> 00:44:56,580 the, this is effectively the 1301 00:44:56,580 --> 00:44:58,540 Sybil attack on steroids. It flattens 1302 00:44:58,540 --> 00:45:00,500 the scalability of any network and just 1303 00:45:00,500 --> 00:45:02,720 absolutely crushes local routing efficiency. 1304 00:45:03,300 --> 00:45:04,580 Um, trust-based link 1305 00:45:04,580 --> 00:45:06,640 slashing, uh, to defend this 1306 00:45:06,640 --> 00:45:08,280 you can, you must infer 1307 00:45:08,280 --> 00:45:10,460 trust from your links if the link 1308 00:45:10,760 --> 00:45:12,220 does not deliver packets reliably 1309 00:45:12,680 --> 00:45:14,300 and it's somebody on the other side of their fault 1310 00:45:14,300 --> 00:45:16,640 rather if Alice sends to Bob 1311 00:45:16,640 --> 00:45:18,660 and Bob destroys the 1312 00:45:18,660 --> 00:45:18,980 uh, 1313 00:45:20,740 --> 00:45:22,660 I am so not getting through this talking time. 1314 00:45:22,940 --> 00:45:24,700 I'm actually gonna stop talking and 1315 00:45:24,700 --> 00:45:26,680 start showing cause I think you probably like 1316 00:45:26,680 --> 00:45:28,620 the pretty pictures more than you care about 1317 00:45:29,660 --> 00:45:30,680 anything I'm saying. 1318 00:45:35,400 --> 00:45:35,840 Alright, 1319 00:45:36,940 --> 00:45:38,720 we'll sort that out in a second. So let me 1320 00:45:38,720 --> 00:45:40,660 put, I'm gonna put a mover onto this network 1321 00:45:40,760 --> 00:45:42,500 and uh, and just first 1322 00:45:42,500 --> 00:45:44,180 uh, start it running for a second. 1323 00:45:47,060 --> 00:45:48,660 Let me stop this and just talk 1324 00:45:48,660 --> 00:45:50,720 about it for just a second. The brightness of the 1325 00:45:50,720 --> 00:45:52,560 links here are talking about the 1326 00:45:52,560 --> 00:45:54,340 quality of the links. Um, 1327 00:45:54,420 --> 00:45:56,320 bring up some different views of the same network. 1328 00:45:56,580 --> 00:45:58,520 Um, this is a 15 1329 00:45:58,520 --> 00:46:00,640 seconds into the lifetime of the network. This is the 1330 00:46:00,640 --> 00:46:02,380 topology that the network thinks it has. 1331 00:46:02,580 --> 00:46:04,280 Uh, that'll straighten itself out over time. 1332 00:46:04,520 --> 00:46:06,620 But this mobile device here 1333 00:46:06,620 --> 00:46:08,680 is always gonna cause some strange behavior. 1334 00:46:09,180 --> 00:46:10,620 Um, if we look for 1335 00:46:10,760 --> 00:46:12,700 what network traffic is running, I'm gonna run this 1336 00:46:12,700 --> 00:46:13,400 a little longer and 1337 00:46:14,860 --> 00:46:16,540 this is gonna run for a second while I talk. 1338 00:46:16,840 --> 00:46:18,560 Um, what we're seeing here 1339 00:46:18,560 --> 00:46:20,740 is these devices, my, is my Dell laptop 1340 00:46:20,740 --> 00:46:22,460 not having enough CPU in it, um, 1341 00:46:22,580 --> 00:46:24,760 is these devices, uh, trying to do crypto 1342 00:46:24,760 --> 00:46:26,360 exchanges and so forth throughout traffic. 1343 00:46:26,780 --> 00:46:28,600 Um, if I run this 1344 00:46:28,600 --> 00:46:30,760 same simulation, you'll 1345 00:46:30,760 --> 00:46:32,420 notice though that every device is connected 1346 00:46:32,420 --> 00:46:34,180 somehow to the top left corner. 1347 00:46:34,360 --> 00:46:36,200 This is because the network is working. 1348 00:46:36,960 --> 00:46:38,840 Real fast, switching over, 1349 00:46:39,000 --> 00:46:40,620 putting the same network up with 1350 00:46:40,760 --> 00:46:42,740 the mover having a rogue 1351 00:46:42,740 --> 00:46:43,780 algorithm instead. 1352 00:46:44,400 --> 00:46:45,700 Let that run for a bit. 1353 00:46:46,640 --> 00:46:48,340 See, first, notice that 1354 00:46:48,340 --> 00:46:50,520 the link quality to the rogue node 1355 00:46:50,520 --> 00:46:52,640 is perfect. All the lines to the mover are 1356 00:46:52,640 --> 00:46:54,540 white. Everyone thinks they can hear him perfectly. 1357 00:46:54,920 --> 00:46:56,700 This is the fundamental attack 1358 00:46:56,700 --> 00:46:58,700 and begins the rest of things. 1359 00:46:59,300 --> 00:47:00,940 Next, the network topology. 1360 00:47:01,460 --> 00:47:02,700 Um, network topology 1361 00:47:02,700 --> 00:47:04,440 won't really change in this particular algorithm, 1362 00:47:04,600 --> 00:47:06,760 but watch what happens to the network 1363 00:47:06,760 --> 00:47:08,560 traffic as my 1364 00:47:08,560 --> 00:47:10,080 mouse sucks. 1365 00:47:10,800 --> 00:47:12,140 Watch what happens to the network traffic. 1366 00:47:12,360 --> 00:47:14,060 These people in the bottom right, as this mover, 1367 00:47:14,220 --> 00:47:14,720 um, 1368 00:47:16,560 --> 00:47:18,720 as the mover makes his way around, and as I 1369 00:47:18,720 --> 00:47:20,560 talk a little longer, the, you'll start to see these 1370 00:47:20,560 --> 00:47:22,480 network devices over on the right hand side are, are 1371 00:47:22,480 --> 00:47:24,580 losing. That is, they're being knocked off of the network 1372 00:47:24,580 --> 00:47:26,640 by all the traffic being drawn onto the 1373 00:47:26,640 --> 00:47:28,680 rogue node. This is exactly 1374 00:47:28,680 --> 00:47:30,620 how you break a mobile ad hoc network, and you 1375 00:47:30,620 --> 00:47:32,500 can choose either to continue forwarding the traffic 1376 00:47:32,500 --> 00:47:34,360 or instead you can choose to, 1377 00:47:34,460 --> 00:47:36,580 um, drop the traffic 1378 00:47:36,580 --> 00:47:38,700 outright, uh, sniff it, spy it, do whatever 1379 00:47:38,700 --> 00:47:40,160 you want to do with it. Um, 1380 00:47:40,760 --> 00:47:42,680 I'm really sorry. They're gonna kick me out of here pretty 1381 00:47:42,680 --> 00:47:43,980 soon. But, uh, 1382 00:47:44,900 --> 00:47:46,020 let me also 1383 00:47:49,500 --> 00:47:50,580 give you all what you're 1384 00:47:50,580 --> 00:47:51,380 actually waiting for. 1385 00:48:05,020 --> 00:48:06,680 So, put that up there in the top left 1386 00:48:06,680 --> 00:48:08,580 and we can watch all the nodes in the bottom right get 1387 00:48:08,580 --> 00:48:08,900 hacked. 1388 00:48:11,860 --> 00:48:12,260 Ah. 1389 00:48:13,940 --> 00:48:14,740 So, as you can 1390 00:48:14,740 --> 00:48:15,060 see, 1391 00:48:17,100 --> 00:48:18,720 as you can see, this network is, 1392 00:48:18,740 --> 00:48:20,620 is just totally destroyed by the rogue, rogue 1393 00:48:20,620 --> 00:48:22,760 device. And this is gonna happen in the best 1394 00:48:22,760 --> 00:48:24,560 of networks. In the worst of networks, 1395 00:48:24,700 --> 00:48:26,620 this, you won't even see any network structure 1396 00:48:26,620 --> 00:48:28,440 left at all. The, the demo would be 1397 00:48:28,440 --> 00:48:30,660 16 or 25 red dots 1398 00:48:30,660 --> 00:48:31,960 and you wouldn't see anything working. 1399 00:48:32,340 --> 00:48:34,600 Cause a re-, modern mobile ad hoc networks just 1400 00:48:34,600 --> 00:48:35,120 get destroyed. 1401 00:48:37,540 --> 00:48:38,680 Leave that up here a little bit 1402 00:48:38,680 --> 00:48:40,280 longer. Uh, let me, 1403 00:48:40,760 --> 00:48:41,460 flip over first. 1404 00:48:47,240 --> 00:48:48,660 Okay, so I'm gonna run through 1405 00:48:48,660 --> 00:48:50,260 the conclusions real fast while you're all writing 1406 00:48:50,260 --> 00:48:52,060 the URL. Um, 1407 00:48:52,260 --> 00:48:54,780 you can have discovery, you can have secure identity, 1408 00:48:55,060 --> 00:48:56,660 you can have high quality routing, you can 1409 00:48:56,660 --> 00:48:58,700 have efficient networking. But you can't 1410 00:48:58,700 --> 00:49:00,300 have it without a scalable routing algorithm, 1411 00:49:00,640 --> 00:49:02,200 which is not generally being developed. 1412 00:49:02,420 --> 00:49:04,740 You, um, except by some people 1413 00:49:04,740 --> 00:49:06,780 that I work with, uh, you cannot 1414 00:49:06,780 --> 00:49:08,660 ever build an effective MANA 1415 00:49:08,660 --> 00:49:10,680 without hardware cryptography. I'll say 1416 00:49:10,760 --> 00:49:12,800 this again. If you don't have hardware crypto 1417 00:49:12,800 --> 00:49:14,620 on your phone, you cannot 1418 00:49:14,620 --> 00:49:16,820 build a peer-to-peer network that will stay up. 1419 00:49:17,720 --> 00:49:18,700 I am trying to 1420 00:49:18,700 --> 00:49:20,740 convince HTC, and if you have 1421 00:49:20,740 --> 00:49:22,880 any access to handheld device manufacturers 1422 00:49:22,880 --> 00:49:23,840 or laptop manufacturers, 1423 00:49:24,300 --> 00:49:26,280 convince them to put AES, uh, 1424 00:49:26,480 --> 00:49:28,680 256 and SHA-512 on their 1425 00:49:28,680 --> 00:49:30,560 procs. If you, if they do it, 1426 00:49:30,600 --> 00:49:32,640 they, you guys can have cheap networks. 1427 00:49:33,300 --> 00:49:34,640 If they do it, you guys 1428 00:49:34,640 --> 00:49:36,900 can have cheap networks. If they do it, 1429 00:49:36,940 --> 00:49:38,200 you guys can have free phone calls. 1430 00:49:38,460 --> 00:49:40,680 If they don't do it, you keep paying the man. 1431 00:49:40,760 --> 00:49:42,640 I hate the man. You shouldn't pay 1432 00:49:42,640 --> 00:49:44,820 the man. Get him to put hardware crypto 1433 00:49:44,820 --> 00:49:45,440 on your phones. 1434 00:49:46,260 --> 00:49:48,660 Um, and we, of course, need, uh, fixes 1435 00:49:48,660 --> 00:49:50,600 for 802.11 ad hoc mode, which is 1436 00:49:50,600 --> 00:49:52,500 horribly broken. Uh, going forward, 1437 00:49:52,600 --> 00:49:54,540 what you can do to hurry the future is to 1438 00:49:54,540 --> 00:49:56,700 seek out and play with emerging protocols. Go find 1439 00:49:56,700 --> 00:49:58,600 AODV. Go find, uh, whatever 1440 00:49:58,600 --> 00:50:00,480 WiMAX standard comes out in 2009, 1441 00:50:00,720 --> 00:50:02,380 2010. Um, 1442 00:50:02,520 --> 00:50:04,940 no kidding, that's how long WiMAX is lagging 1443 00:50:04,940 --> 00:50:06,740 for ad hoc networks, because all the people 1444 00:50:06,740 --> 00:50:08,700 who make Mi- WiMAX are commercials. 1445 00:50:09,140 --> 00:50:10,340 That is, Cisco, 1446 00:50:10,760 --> 00:50:12,780 and the lot. They're the phone companies. 1447 00:50:12,960 --> 00:50:14,700 They do not want you to help them, because 1448 00:50:14,700 --> 00:50:16,580 they do not want you to need any ad hoc 1449 00:50:16,580 --> 00:50:18,620 equipment, because they do not want you to need 1450 00:50:18,620 --> 00:50:20,660 peer-to-peer networks, because they do not want you to need free 1451 00:50:20,660 --> 00:50:22,680 phone calls. They want you to pay them, 1452 00:50:22,800 --> 00:50:24,640 and so they are not building an ad hoc networking 1453 00:50:24,640 --> 00:50:26,380 standard until 2009, 1454 00:50:27,580 --> 00:50:28,600 2010. If you're not 1455 00:50:28,600 --> 00:50:30,520 pissed off, you really, really should be. 1456 00:50:31,180 --> 00:50:32,140 Demand hardware crypto. 1457 00:50:32,980 --> 00:50:34,640 And use thin Mac wireless 1458 00:50:34,640 --> 00:50:36,880 cards. Thin Macs don't do things like, 1459 00:50:36,900 --> 00:50:38,720 um, they don't do things 1460 00:50:38,720 --> 00:50:40,660 like retransmit on their own. They wait 1461 00:50:40,760 --> 00:50:42,780 for the user to decide about retransmissions. 1462 00:50:42,940 --> 00:50:44,560 Thin Macs are far, far 1463 00:50:44,560 --> 00:50:46,580 more effective, and, uh, all 1464 00:50:46,580 --> 00:50:48,680 of the TI and, uh, so forth 1465 00:50:48,680 --> 00:50:50,680 wireless LANs that exist, uh, wireless LAN 1466 00:50:50,680 --> 00:50:52,700 chips that exist today have expensive 1467 00:50:52,700 --> 00:50:54,420 procs, a lot of extra 1468 00:50:54,420 --> 00:50:56,280 firmware, a bunch of crap they don't need, 1469 00:50:56,400 --> 00:50:58,720 and, uh, it definitely gets in your way 1470 00:50:58,720 --> 00:51:00,540 of doing good peer-to-peer networking. 1471 00:51:01,040 --> 00:51:02,460 Thin Macs just, uh, 1472 00:51:02,540 --> 00:51:04,760 raw packet send is effectively what I'm talking 1473 00:51:04,760 --> 00:51:05,760 about. Um, 1474 00:51:06,540 --> 00:51:08,720 Atheros and a couple of other companies are making them. 1475 00:51:08,840 --> 00:51:10,140 Uh, demand them in your phones. 1476 00:51:10,760 --> 00:51:12,700 Uh, more importantly, hack it. I have not seen 1477 00:51:12,700 --> 00:51:14,640 a Manet talk yet. Manet, 1478 00:51:14,780 --> 00:51:16,620 um, has been around for ten years. 1479 00:51:16,860 --> 00:51:18,600 Uh, I've been coming here for ten years. 1480 00:51:19,080 --> 00:51:20,640 God, I actually, I made it through without 1481 00:51:21,000 --> 00:51:21,360 puking. 1482 00:51:22,860 --> 00:51:24,520 Uh, hack it for Christ's sakes. 1483 00:51:24,580 --> 00:51:26,220 Go out there and get this shit and hack it. 1484 00:51:26,320 --> 00:51:28,560 Break the fuck out of it so that there's something to talk 1485 00:51:28,560 --> 00:51:30,600 about. Publish your results, publish 1486 00:51:30,600 --> 00:51:32,680 your findings, and embarrass the people that make these, 1487 00:51:32,780 --> 00:51:34,640 this equipment today. If they're 1488 00:51:34,640 --> 00:51:36,560 not embarrassed by it, you're not doing your 1489 00:51:36,560 --> 00:51:38,660 damn jobs. So, uh, thank you very 1490 00:51:38,660 --> 00:51:40,220 much. I'll leave the URL up here for a little bit. 1491 00:51:40,760 --> 00:51:42,760 Thank you.