challenges.tex 81 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503
  1. \documentclass{llncs}
  2. \usepackage{url}
  3. \usepackage{amsmath}
  4. \usepackage{epsfig}
  5. \newenvironment{tightlist}{\begin{list}{$\bullet$}{
  6. \setlength{\itemsep}{0mm}
  7. \setlength{\parsep}{0mm}
  8. % \setlength{\labelsep}{0mm}
  9. % \setlength{\labelwidth}{0mm}
  10. % \setlength{\topsep}{0mm}
  11. }}{\end{list}}
  12. \begin{document}
  13. \title{Challenges in practical low-latency stream anonymity (DRAFT)}
  14. \author{Roger Dingledine and Nick Mathewson}
  15. \institute{The Free Haven Project\\
  16. \email{\{arma,nickm\}@freehaven.net}}
  17. \maketitle
  18. \pagestyle{empty}
  19. \begin{abstract}
  20. foo
  21. \end{abstract}
  22. \section{Introduction}
  23. Tor is a low-latency anonymous communication overlay network designed
  24. to be practical and usable for protecting TCP streams over the
  25. Internet~\cite{tor-design}. We have been operating a publicly deployed
  26. Tor network since October 2003 that has grown to over a hundred volunteer
  27. nodes and sometimes as much as 80 megabits of average traffic per second.
  28. Tor has a weaker threat model than many anonymity designs in the
  29. literature, because our foremost goal is to deploy a
  30. practical and useful network for interactive (low-latency) communications.
  31. Subject to this restriction, we try to
  32. provide as much anonymity as we can. In particular, because we
  33. support interactive communications without impractically expensive padding,
  34. we fall prey to a variety
  35. of intra-network~\cite{attack-tor-oak05,flow-correlation04,bar} and
  36. end-to-end~\cite{danezis-pet2004,SS03} anonymity-breaking attacks.
  37. Tor is secure so long as adversaries are unable to
  38. observe connections as they both enter and leave the Tor network.
  39. Therefore, Tor's defense lies in having a diverse enough set of servers
  40. that most real-world
  41. adversaries are unlikely to be in the right places to attack users.
  42. Specifically,
  43. Tor aims to resist observers and insiders by distributing each transaction
  44. over several nodes in the network. This ``distributed trust'' approach
  45. means the Tor network can be safely operated and used by a wide variety
  46. of mutually distrustful users, providing more sustainability and security
  47. than some previous attempts at anonymizing networks.
  48. The Tor network has a broad range of users, including ordinary citizens
  49. concerned about their privacy, corporations
  50. who don't want to reveal information to their competitors, and law
  51. enforcement and government intelligence agencies who need
  52. to do operations on the Internet without being noticed.
  53. Tor research and development has been funded by the U.S. Navy, for use
  54. in securing government
  55. communications, and also by the Electronic Frontier Foundation, for use
  56. in maintaining civil liberties for ordinary citizens online. The Tor
  57. protocol is one of the leading choices
  58. to be the anonymizing layer in the European Union's PRIME directive to
  59. help maintain privacy in Europe. The University of Dresden in Germany
  60. has integrated an independent implementation of the Tor protocol into
  61. their popular Java Anon Proxy anonymizing client. This wide variety of
  62. interests helps maintain both the stability and the security of the
  63. network.
  64. %awk
  65. Tor's principal research strategy, in attempting to deploy a network that is
  66. practical, useful, and anonymous, has been to insist, when trade-offs arise
  67. between these properties, on remaining useful enough to attract many users,
  68. and practical enough to support them. Subject to these
  69. constraints, we aim to maximize anonymity. This is not the only possible
  70. direction in anonymity research: designs exist that provide more anonymity
  71. than Tor at the expense of significantly increased resource requirements, or
  72. decreased flexibility in application support (typically because of increased
  73. latency). Such research does not typically abandon aspirations towards
  74. deployability or utility, but instead tries to maximize deployability and
  75. utility subject to a certain degree of inherent anonymity (inherent because
  76. usability and practicality affect usage which affects the actual anonymity
  77. provided by the network \cite{back01,econymics}). We believe that these
  78. approaches can be promising and useful, but that by focusing on deploying a
  79. usable system in the wild, Tor helps us experiment with the actual parameters
  80. of what makes a system ``practical'' for volunteer operators and ``useful''
  81. for home users, and helps illuminate undernoticed issues which any deployed
  82. volunteer anonymity network will need to address.
  83. While~\cite{tor-design} gives an overall view of the Tor design and goals,
  84. this paper describes the policy and technical issues that Tor faces as
  85. we continue deployment. Rather than trying to provide complete solutions
  86. to every problem here, we lay out the assumptions and constraints
  87. that we have observed through deploying Tor in the wild. In doing so, we
  88. aim to create a research agenda for others to
  89. help in addressing these issues. Section~\ref{sec:what-is-tor} gives an
  90. overview of the Tor
  91. design and ours goals. Sections~\ref{sec:crossroads-policy}
  92. and~\ref{sec:crossroads-design} go on to describe the practical challenges,
  93. both policy and technical respectively, that stand in the way of moving
  94. from a practical useful network to a practical useful anonymous network.
  95. %\section{What Is Tor}
  96. \section{Distributed trust: safety in numbers}
  97. \label{sec:what-is-tor}
  98. Here we give a basic overview of the Tor design and its properties. For
  99. details on the design, assumptions, and security arguments, we refer
  100. the reader to the Tor design paper~\cite{tor-design}.
  101. Tor provides \emph{forward privacy}, so that users can connect to
  102. Internet sites without revealing their logical or physical locations
  103. to those sites or to observers. It also provides \emph{location-hidden
  104. services}, so that critical servers can support authorized users without
  105. giving adversaries an effective vector for physical or online attacks.
  106. The design provides this protection even when a portion of its own
  107. infrastructure is controlled by an adversary.
  108. To create a private network pathway with Tor, the user's software (client)
  109. incrementally builds a \emph{circuit} of encrypted connections through
  110. servers on the network. The circuit is extended one hop at a time, and
  111. each server along the way knows only which server gave it data and which
  112. server it is giving data to. No individual server ever knows the complete
  113. path that a data packet has taken. The client negotiates a separate set
  114. of encryption keys for each hop along the circuit to ensure that each
  115. hop can't trace these connections as they pass through.
  116. Once a circuit has been established, many kinds of data can be exchanged
  117. and several different sorts of software applications can be deployed over
  118. the Tor network. Because each server sees no more than one hop in the
  119. circuit, neither an eavesdropper nor a compromised server can use traffic
  120. analysis to link the connection's source and destination. Tor only works
  121. for TCP streams and can be used by any application with SOCKS support.
  122. For efficiency, the Tor software uses the same circuit for connections
  123. that happen within the same minute or so. Later requests are given a new
  124. circuit, to prevent long-term linkability between different actions by
  125. a single user.
  126. Tor also makes it possible for users to hide their locations while
  127. offering various kinds of services, such as web publishing or an instant
  128. messaging server. Using Tor ``rendezvous points'', other Tor users can
  129. connect to these hidden services, each without knowing the other's network
  130. identity.
  131. Tor attempts to anonymize the transport layer, not the application layer, so
  132. application protocols that include personally identifying information need
  133. additional application-level scrubbing proxies, such as
  134. Privoxy~\cite{privoxy} for HTTP. Furthermore, Tor does not permit arbitrary
  135. IP packets; it only anonymizes TCP and DNS, and only supports connections via
  136. SOCKS (see Section~\ref{subsec:tcp-vs-ip}).
  137. Tor differs from other deployed systems for traffic analysis resistance
  138. in its security and flexibility. Mix networks such as
  139. Mixmaster~\cite{mixmaster-spec} or its successor Mixminion~\cite{minion-design}
  140. gain the highest degrees of anonymity at the expense of introducing highly
  141. variable delays, thus making them unsuitable for applications such as web
  142. browsing that require quick response times. Commercial single-hop
  143. proxies~\cite{anonymizer} present a single point of failure, where
  144. a single compromise can expose all users' traffic, and a single-point
  145. eavesdropper can perform traffic analysis on the entire network.
  146. Also, their proprietary implementations place any infrastucture that
  147. depends on these single-hop solutions at the mercy of their providers'
  148. financial health as well as network security.
  149. No organization can achieve this security on its own. If a single
  150. corporation or government agency were to build a private network to
  151. protect its operations, any connections entering or leaving that network
  152. would be obviously linkable to the controlling organization. The members
  153. and operations of that agency would be easier, not harder, to distinguish.
  154. Instead, to protect our networks from traffic analysis, we must
  155. collaboratively blend the traffic from many organizations and private
  156. citizens, so that an eavesdropper can't tell which users are which,
  157. and who is looking for what information. By bringing more users onto
  158. the network, all users become more secure~\cite{econymics}.
  159. Naturally, organizations will not want to depend on others for their
  160. security. If most participating providers are reliable, Tor tolerates
  161. some hostile infiltration of the network. For maximum protection,
  162. the Tor design includes an enclave approach that lets data be encrypted
  163. (and authenticated) end-to-end, so high-sensitivity users can be sure it
  164. hasn't been read or modified. This even works for Internet services that
  165. don't have built-in encryption and authentication, such as unencrypted
  166. HTTP or chat, and it requires no modification of those services to do so.
  167. As of January 2005, the Tor network has grown to around a hundred servers
  168. on four continents, with a total capacity exceeding 1Gbit/s. Appendix A
  169. shows a graph of the number of working servers over time, as well as a
  170. graph of the number of bytes being handled by the network over time. At
  171. this point the network is sufficiently diverse for further development
  172. and testing; but of course we always encourage and welcome new servers
  173. to join the network.
  174. %Tor doesn't try to provide steg (but see Section~\ref{subsec:china}), or
  175. %the other non-goals listed in tor-design.
  176. Tor is not the only anonymity system that aims to be practical and useful.
  177. Commercial single-hop proxies~\cite{anonymizer}, as well as unsecured
  178. open proxies around the Internet~\cite{open-proxies}, can provide good
  179. performance and some security against a weaker attacker. Dresden's Java
  180. Anon Proxy~\cite{web-mix} provides similar functionality to Tor but only
  181. handles web browsing rather than arbitrary TCP\@. Also, JAP's network
  182. topology uses cascades (fixed routes through the network); since without
  183. end-to-end padding it is just as vulnerable as Tor to end-to-end timing
  184. attacks, its dispersal properties are therefore worse than Tor's.
  185. %Some peer-to-peer file-sharing overlay networks such as
  186. %Freenet~\cite{freenet} and Mute~\cite{mute}
  187. Zero-Knowledge Systems' commercial Freedom
  188. network~\cite{freedom21-security} was even more flexible than Tor in
  189. that it could transport arbitrary IP packets, and it also supported
  190. pseudonymous access rather than just anonymous access; but it had
  191. a different approach to sustainability (collecting money from users
  192. and paying ISPs to run servers), and has shut down due to financial
  193. load. Finally, more scalable designs like Tarzan~\cite{tarzan:ccs02} and
  194. MorphMix~\cite{morphmix:fc04} have been proposed in the literature, but
  195. have not yet been fielded. We direct the interested reader to Section
  196. 2 of~\cite{tor-design} for a more indepth review of related work.
  197. %six-four. crowds. i2p.
  198. have a serious discussion of morphmix's assumptions, since they would
  199. seem to be the direct competition. in fact tor is a flexible architecture
  200. that would encompass morphmix, and they're nearly identical except for
  201. path selection and node discovery. and the trust system morphmix has
  202. seems overkill (and/or insecure) based on the threat model we've picked.
  203. % this para should probably move to the scalability / directory system. -RD
  204. \section{Threat model}
  205. \label{sec:threat-model}
  206. Tor does not attempt to defend against a global observer. Any adversary who
  207. can see a user's connection to the Tor network, and who can see the
  208. corresponding connection as it exits the Tor network, can use the timing
  209. correlation between the two connections to confirm the user's chosen
  210. communication partners. Defeating this attack would seem to require
  211. introducing a prohibitive degree of traffic padding between the user and the
  212. network, or introducing an unacceptable degree of latency (but see
  213. Section \ref{subsec:mid-latency}).
  214. And, it is not clear that padding works at all if we assume a
  215. minimally active adversary that merely modifies the timing of packets
  216. to or from the user. Thus, Tor only attempts to defend against
  217. external observers who cannot observe both sides of a user's
  218. connection.
  219. Against internal attackers, who sign up Tor servers, the situation is more
  220. complicated. In the simplest case, if an adversary has compromised $c$ of
  221. $n$ servers on the Tor network, then the adversary will be able to compromise
  222. a random circuit with probability $\frac{c^2}{n^2}$ (since the circuit
  223. initiator chooses hops randomly). But there are
  224. complicating factors:
  225. \begin{tightlist}
  226. \item If the user continues to build random circuits over time, an adversary
  227. is pretty certain to see a statistical sample of the user's traffic, and
  228. thereby can build an increasingly accurate profile of her behavior. (See
  229. \ref{subsec:helper-nodes} for possible solutions.)
  230. \item If an adversary controls a popular service outside of the Tor network,
  231. he can be certain of observing all connections to that service; he
  232. therefore will trace connections to that service with probability
  233. $\frac{c}{n}$.
  234. \item Users do not in fact choose servers with uniform probability; they
  235. favor servers with high bandwidth, and exit servers that permit connections
  236. to their favorite services.
  237. \end{tightlist}
  238. %discuss $\frac{c^2}{n^2}$, except how in practice the chance of owning
  239. %the last hop is not $c/n$ since that doesn't take the destination (website)
  240. %into account. so in cases where the adversary does not also control the
  241. %final destination we're in good shape, but if he *does* then we'd be better
  242. %off with a system that lets each hop choose a path.
  243. %
  244. %Isn't it more accurate to say ``If the adversary _always_ controls the final
  245. % dest, we would be just as well off with such as system.'' ? If not, why
  246. % not? -nm
  247. % Sure. In fact, better off, since they seem to scale more easily. -rd
  248. In practice Tor's threat model is based entirely on the goal of
  249. dispersal and diversity. Murdoch and Danezis describe an attack
  250. \cite{attack-tor-oak05} that lets an attacker determine the nodes used
  251. in a circuit; yet s/he cannot identify the initiator or responder,
  252. e.g., client or web server, through this attack. So the endpoints
  253. remain secure, which is the goal. On the other hand we can imagine an
  254. adversary that could attack or set up observation of all connections
  255. to an arbitrary Tor node in only a few minutes. If such an adversary
  256. were to exist, s/he could use this probing to remotely identify a node
  257. for further attack. Also, the enclave model seems particularly
  258. threatened by this attack, since it identifies endpoints when they're
  259. also nodes in the Tor network: see Section~\ref{subsec:helper-nodes}
  260. for discussion of some ways to address this issue.
  261. [*****Suppose an adversary with active access to the responder traffic
  262. wants to keep a circuit alive long enough to attack an identified
  263. node. Could s/he do this without the overt cooperation of the client
  264. proxy? More immediately, someone could identify nodes in this way and
  265. if in their jurisdiction, immediately get a subpoena (if they even
  266. need one) and tell the node operator(s) that she must retain all the
  267. active circuit data she now has at that moment. That \emph{can} be
  268. done in real time.********** We should say something about this
  269. here or later in the paper -pfs]
  270. see \ref{subsec:routing-zones} for discussion of larger
  271. adversaries and our dispersal goals.
  272. [this section will get written once the rest of the paper is farther along]
  273. \section{Crossroads: Policy issues}
  274. \label{sec:crossroads-policy}
  275. Many of the issues the Tor project needs to address are not just a
  276. matter of system design or technology development. In particular, the
  277. Tor project's \emph{image} with respect to its users and the rest of
  278. the Internet impacts the security it can provide.
  279. As an example to motivate this section, some U.S.~Department of Enery
  280. penetration testing engineers are tasked with compromising DoE computers
  281. from the outside. They only have a limited number of ISPs from which to
  282. launch their attacks, and they found that the defenders were recognizing
  283. attacks because they came from the same IP space. These engineers wanted
  284. to use Tor to hide their tracks. First, from a technical standpoint,
  285. Tor does not support the variety of IP packets one would like to use in
  286. such attacks (see Section~\ref{subsec:tcp-vs-ip}). But aside from this,
  287. we also decided that it would probably be poor precedent to encourage
  288. such use---even legal use that improves national security---and managed
  289. to dissuade them.
  290. With this image issue in mind, this section discusses the Tor user base and
  291. Tor's interaction with other services on the Internet.
  292. \subsection{Image and security}
  293. A growing field of papers argue that usability for anonymity systems
  294. contributes directly to their security, because how usable the system
  295. is impacts the possible anonymity set~\cite{back01,econymics}. Or
  296. conversely, an unusable system attracts few users and thus can't provide
  297. much anonymity.
  298. This phenomenon has a second-order effect: knowing this, users should
  299. choose which anonymity system to use based in part on how usable
  300. \emph{others} will find it, in order to get the protection of a larger
  301. anonymity set. Thus we might replace the adage ``usability is a security
  302. parameter''~\cite{back01} with a new one: ``perceived usability is a
  303. security parameter.'' From here we can better understand the effects
  304. of publicity and advertising on security: the more convincing your
  305. advertising, the more likely people will believe you have users, and thus
  306. the more users you will attract. Perversely, over-hyped systems (if they
  307. are not too broken) may be a better choice than modestly promoted ones,
  308. if the hype attracts more users~\cite{usability-network-effect}.
  309. So it follows that we should come up with ways to accurately communicate
  310. the available security levels to the user, so she can make informed
  311. decisions. Dresden's JAP project aims to do this, by including a
  312. comforting `anonymity meter' dial in the software's graphical interface,
  313. giving the user an impression of the level of protection for her current
  314. traffic.
  315. However, there's a catch. For users to share the same anonymity set,
  316. they need to act like each other. An attacker who can distinguish
  317. a given user's traffic from the rest of the traffic will not be
  318. distracted by other users on the network. For high-latency systems like
  319. Mixminion, where the threat model is based on mixing messages with each
  320. other, there's an arms race between end-to-end statistical attacks and
  321. counter-strategies~\cite{statistical-disclosure,minion-design,e2e-traffic,trickle02}.
  322. But for low-latency systems like Tor, end-to-end \emph{traffic
  323. confirmation} attacks~\cite{danezis-pet2004,SS03,defensive-dropping}
  324. allow an attacker who watches or controls both ends of a communication
  325. to use statistics to correlate packet timing and volume, quickly linking
  326. the initiator to her destination. This is why Tor's threat model is
  327. based on preventing the adversary from observing both the initiator and
  328. the responder.
  329. Like Tor, the current JAP implementation does not pad connections
  330. (apart from using small fixed-size cells for transport). In fact,
  331. its cascade-based network toplogy may be even more vulnerable to these
  332. attacks, because the network has fewer endpoints. JAP was born out of
  333. the ISDN mix design~\cite{isdn-mixes}, where padding made sense because
  334. every user had a fixed bandwidth allocation, but in its current context
  335. as a general Internet web anonymizer, adding sufficient padding to JAP
  336. would be prohibitively expensive.\footnote{Even if they could find and
  337. maintain extra funding to run higher-capacity nodes, our experience with
  338. users suggests that many users would not accept the increased per-user
  339. bandwidth requirements, leading to an overall much smaller user base. But
  340. see Section \ref{subsec:mid-latency}.} Therefore, since under this threat
  341. model the number of concurrent users does not seem to have much impact
  342. on the anonymity provided, we suggest that JAP's anonymity meter is not
  343. correctly communicating security levels to its users.
  344. % because more users don't help anonymity much, we need to rely more
  345. % on other incentive schemes, both policy-based (see sec x) and
  346. % technically enforced (see sec y)
  347. On the other hand, while the number of active concurrent users may not
  348. matter as much as we'd like, it still helps to have some other users
  349. who use the network. We investigate this issue in the next section.
  350. \subsection{Reputability}
  351. Another factor impacting the network's security is its reputability:
  352. the perception of its social value based on its current user base. If I'm
  353. the only user who has ever downloaded the software, it might be socially
  354. accepted, but I'm not getting much anonymity. Add a thousand animal rights
  355. activists, and I'm anonymous, but everyone thinks I'm a bambi lover (or
  356. NRA member if you prefer a contrasting example). Add a thousand
  357. random citizens (cancer survivors, privacy enthusiasts, and so on)
  358. and now I'm harder to profile.
  359. The more cancer survivors on Tor, the better for the human rights
  360. activists. The more script kiddies, the worse for the normal users. Thus,
  361. reputability is an anonymity issue for two reasons. First, it impacts
  362. the sustainability of the network: a network that's always about to be
  363. shut down has difficulty attracting and keeping users, so its anonymity
  364. set suffers. Second, a disreputable network attracts the attention of
  365. powerful attackers who may not mind revealing the identities of all the
  366. users to uncover a few bad ones.
  367. While people therefore have an incentive for the network to be used for
  368. ``more reputable'' activities than their own, there are still tradeoffs
  369. involved when it comes to anonymity. To follow the above example, a
  370. network used entirely by cancer survivors might welcome some animal rights
  371. activists onto the network, though of course they'd prefer a wider
  372. variety of users.
  373. Reputability becomes even more tricky in the case of privacy networks,
  374. since the good uses of the network (such as publishing by journalists in
  375. dangerous countries) are typically kept private, whereas network abuses
  376. or other problems tend to be more widely publicized.
  377. The impact of public perception on security is especially important
  378. during the bootstrapping phase of the network, where the first few
  379. widely publicized uses of the network can dictate the types of users it
  380. attracts next.
  381. %% "outside of academia, jap has just lost, permanently". (That is,
  382. %% even though the crime detection issues are resolved and are unlikely
  383. %% to go down the same way again, public perception has not been kind.)
  384. \subsection{Sustainability and incentives}
  385. One of the (arguably) unsolved problems in low-latency anonymity designs is
  386. how to keep the servers running. Zero-Knowledge Systems's Freedom network
  387. depended on paying third parties to run its servers; the JAP project's
  388. bandwidth is dependent on grants from ???? to pay for its bandwidth and
  389. administrative expenses. In Tor, bandwidth and administrative costs are
  390. distributed across the volunteers who run Tor nodes, so at least we have
  391. reason to think that the Tor network could survive without continued research
  392. funding.\footnote{It also helps that Tor is implemented with free and open
  393. source software that can be maintained by anybody with the ability and
  394. inclination.} But why are these volunteers running nodes, and what can we
  395. do to encourage more volunteers to do so?
  396. We have not surveyed Tor operators to learn why they are running ORs, but
  397. from the information they have provided, it seems that many of them run Tor
  398. nodes for reasons of personal interest in privacy issues. It is possible
  399. that others are running Tor for anonymity reasons, but of course they are
  400. hardly likely to tell us if they are.
  401. Significantly, Tor's threat model changes the anonymity incentives for running
  402. a server. In a high-latency mix network, users can receive additional
  403. anonymity by running their own server, since doing so obscures when they are
  404. injecting messages into the network. But in Tor, anybody observing a Tor
  405. server can tell when the server is generating traffic that corresponds to
  406. none of its incoming traffic, and therefore originating traffic itself.
  407. Still, anonymity and privacy incentives do remain for server operators:
  408. \begin{tightlist}
  409. \item Against a hostile website, running a Tor exit node can provide a degree
  410. of ``deniaibility'' for traffic that originates at that exit node. For
  411. example, it is likely in practise that HTTP requests from a Tor server's IP
  412. will be assumed to have left the Tor network.
  413. \item Local Tor entry and exit servers allow users on a network to run in an
  414. `enclave' configuration. [XXXX say more]
  415. \end{tightlist}
  416. First, we try to make the costs of running a Tor server easily minimized.
  417. Since Tor is run by volunteers, the most crucial software usability issue is
  418. usability by operators: when an operator leaves, the network becomes less
  419. usable by everybody. To keep operators pleased, we must try to keep Tor's
  420. resource and administrative demands as low as possible. [XXXX say mroe]
  421. Because of ISP billing structures, many Tor operators have underused capacity
  422. that they are willing to donate to the network, at no additional monetary
  423. cost to them. Features to limit bandwidth have been essential to adoption.
  424. Also useful has been a ``hibernation'' feature that allows a server that
  425. wants to provide high bandwidth, but no more than a certain amount in a
  426. giving billing cycle, to become dormant once its bandwidth is exhausted, and
  427. to reawaken at a random offset into the next billing cycle. This feature has
  428. interesting policy implications, however; see
  429. section~\ref{subsec:bandwidth-and-usability} below.
  430. [XXXX say more. Why else would you run a server? What else can we do/do we
  431. already do to make running a server more attractive?]
  432. \subsection{Bandwidth and usability}
  433. \label{subsec:bandwidth-and-usability}
  434. Once users have configured their applications to work with Tor, the largest
  435. remaining usability issue is bandwidth. When websites ``feel slow,'' users
  436. begin to suffer.
  437. Clients currently try to build their connections through servers that they
  438. guess will have enough bandwidth. But even if capacity is allocated
  439. optimally, it seems unlikely that the current network architecture will have
  440. enough capacity to provide every user with as much bandwidth as she would
  441. receive if she weren't using Tor, unless far more servers join the network
  442. (see above).
  443. Limited capacity does not destroy the network, however. Instead, usage tends
  444. towards an equilibrium: when performance suffers, users who value performance
  445. over anonymity tend to leave the system, thus freeing capacity until the
  446. remaining users on the network are exactly those willing to use that capacity
  447. there is.
  448. XXXX hibernation vs rate-limiting: do we want diversity or throughput? i
  449. think we're shifting back to wanting diversity.
  450. \subsection{Tor and file-sharing}
  451. One potentially problematical area with deploying Tor has been our response
  452. to file-sharing applications. These applications make up an enormous
  453. fraction of the traffic on the Internet today, and provide two challenges to
  454. any anonymizing network: their intensive bandwidth requirement, and the
  455. degree to which they are associated (correctly or not) with copyright
  456. violation.
  457. As noted above, high-bandwidth protocols can make the network unresponsive,
  458. but tend to be somewhat self-correcting. Issues of copyright violation,
  459. however, are more interesting. Typical exit node operators want to help
  460. people achieve privacy and anonymous speech, not to help people (say) host
  461. Vin Diesel movies for illegal download; and typical ISPs would rather not
  462. deal with customers who incur them the overhead of getting menacing letters
  463. from the MPAA. While it is quite likely that the operators are doing nothing
  464. illegal, many ISPs have policies of dropping users who get repeated legal
  465. threats regardless of the merits of those threats, and many operators would
  466. prefer to avoid receiving legal threats even if those threats have little
  467. merit. So when the letters arrive, operators are likely to face
  468. pressure to block filesharing applications entirely, in order to avoid the
  469. hassle.
  470. But blocking filesharing would not necessarily be easy; most popular
  471. protocols have evolved to run on a variety of non-standard ports in order to
  472. get around other port-based bans. Thus, exit node operators who wanted to
  473. block filesharing would have to find some way to integrate Tor with a
  474. protocol-aware exit filter. This could be a technically expensive
  475. undertaking, and one with poor prospects: it is unlikely that Tor exit nodes
  476. would succeed where so many institutional firewalls have failed. Another
  477. possibility for sensitive operators is to run a very restrictive server that
  478. only permits exit connections to a very restricted range of ports which are
  479. not frequently associated with file sharing. There are increasingly few such
  480. ports.
  481. For the moment, it seems that Tor's bandwidth issues have rendered it
  482. unattractive for bulk file-sharing traffic; this may continue to be so in the
  483. future. Nevertheless, Tor will likely remain attractive for limited use in
  484. filesharing protocols that have separate control and data channels.
  485. [xxxx We should say more -- but what? That we'll see a similar
  486. equilibriating effect as with bandwidth, where sensitive ops switch to
  487. middleman, and we become less useful for filesharing, so the filesharing
  488. people back off, so we get more ops since there's less filesharing, so the
  489. filesharers come back, etc.]
  490. in practice, plausible deniability is hypothetical and doesn't seem very
  491. convincing. if ISPs find the activity antisocial, they don't care *why*
  492. your computer is doing that behavior.
  493. \subsection{Tor and blacklists}
  494. Takedowns and efnet abuse and wikipedia complaints and irc
  495. networks.
  496. It was long expected that, alongside Tor's legitimate users, it would also
  497. attract troublemakers who exploited Tor in order to abuse services on the
  498. Internet. Our initial answer to this situation was to use ``exit policies''
  499. to allow individual Tor servers to block access to specific IP/port ranges.
  500. This approach was meant to make operators more willing to run Tor by allowing
  501. them to prevent their servers from being used for abusing particular
  502. services. For example, all Tor servers currently block SMTP (port 25), in
  503. order to avoid being used to send spam.
  504. This approach is useful, but is insufficient for two reasons. First, since
  505. it is not possible to force all ORs to block access to any given service,
  506. many of those services try to block Tor instead. More broadly, while being
  507. blockable is important to being good netizens, we would like to encourage
  508. services to allow anonymous access; services should not need to decide
  509. between blocking legitimate anonymous use and allowing unlimited abuse.
  510. This is potentially a bigger problem than it may appear.
  511. On the one hand, if people want to refuse connections from you on
  512. their servers it would seem that they should be allowed to. But, a
  513. possible major problem with the blocking of Tor is that it's not just
  514. the decision of the individual server administrator whose deciding if
  515. he wants to post to Wikipedia from his Tor node address or allow
  516. people to read Wikipedia anonymously through his Tor node. (Wikipedia
  517. has blocked all posting from all Tor nodes based in IP address.) If e.g.,
  518. s/he comes through a campus or corporate NAT, then the decision must
  519. be to have the entire population behind it able to have a Tor exit
  520. node or to have write access to Wikipedia. This is a loss for both of us (Tor
  521. and Wikipedia). We don't want to compete for (or divvy up) the NAT
  522. protected entities of the world.
  523. (A related problem is that many IP blacklists are not terribly fine-grained.
  524. No current IP blacklist, for example, allow a service provider to blacklist
  525. only those Tor servers that allow access to a specific IP or port, even
  526. though this information is readily available. One IP blacklist even bans
  527. every class C network that contains a Tor server, and recommends banning SMTP
  528. from these networks even though Tor does not allow SMTP at all.)
  529. [****Since this is stupid and we oppose it, shouldn't we name names here -pfs]
  530. Problems of abuse occur mainly with services such as IRC networks and
  531. Wikipedia, which rely on IP blocking to ban abusive users. While at first
  532. blush this practice might seem to depend on the anachronistic assumption that
  533. each IP is an identifier for a single user, it is actually more reasonable in
  534. practice: it assumes that non-proxy IPs are a costly resource, and that an
  535. abuser can not change IPs at will. By blocking IPs which are used by Tor
  536. servers, open proxies, and service abusers, these systems hope to make
  537. ongoing abuse difficult. Although the system is imperfect, it works
  538. tolerably well for them in practice.
  539. But of course, we would prefer that legitimate anonymous users be able to
  540. access abuse-prone services. One conceivable approach would be to require
  541. would-be IRC users, for instance, to register accounts if they wanted to
  542. access the IRC network from Tor. But in practise, this would not
  543. significantly impede abuse if creating new accounts were easily automatable;
  544. % XXX captcha
  545. this is why services use IP blocking. In order to deter abuse, pseudonymous
  546. identities need to impose a significant switching cost in resources or human
  547. time.
  548. One approach, similar to that taken by Freedom, would be to bootstrap some
  549. non-anonymous costly identification mechanism to allow access to a
  550. blind-signature pseudonym protocol. This would effectively create costly
  551. pseudonyms, which services could require in order to allow anonymous access.
  552. This approach has difficulties in practise, however:
  553. \begin{tightlist}
  554. \item Unlike Freedom, Tor is not a commercial service. Therefore, it would
  555. be a shame to require payment in order to make Tor useful, or to make
  556. non-paying users second-class citizens.
  557. \item It is hard to think of an underlying resource that would actually work.
  558. We could use IP addresses, but that's the problem, isn't it?
  559. \item Managing single sign-on services is not considered a well-solved
  560. problem in practice. If Microsoft can't get universal acceptance for
  561. Passport, why do we think that a Tor-specific solution would do any good?
  562. \item Even if we came up with a perfect authentication system for our needs,
  563. there's no guarantee that any service would actually start using it. It
  564. would require a nonzero effort for them to support it, and it might just
  565. be less hassle for them to block tor anyway.
  566. \end{tightlist}
  567. The use of squishy IP-based ``authentication'' and ``authorization''
  568. has not broken down even to the level that SSNs used for these
  569. purposes have in commercial and public record contexts. Externalities
  570. and misplaced incentives cause a continued focus on fighting identity
  571. theft by protecting SSNs rather than developing better authentication
  572. and incentive schemes \cite{price-privacy}. Similarly we can expect a
  573. continued use of identification by IP number as long as there is no
  574. workable alternative.
  575. %Fortunately, our modular design separates
  576. %routing from node discovery; so we could implement Morphmix in Tor just
  577. %by implementing the Morphmix-specific node discovery and path selection
  578. %pieces.
  579. \section{Crossroads: Scaling and Design choices}
  580. \label{sec:crossroads-design}
  581. \subsection{Transporting the stream vs transporting the packets}
  582. \label{subsec:stream-vs-packet}
  583. \label{subsec:tcp-vs-ip}
  584. We periodically run into ex ZKS employees who tell us that the process of
  585. anonymizing IPs should ``obviously'' be done at the IP layer. Here are
  586. the issues that need to be resolved before we'll be ready to switch Tor
  587. over to arbitrary IP traffic.
  588. \begin{enumerate}
  589. \setlength{\itemsep}{0mm}
  590. \setlength{\parsep}{0mm}
  591. \item \emph{IP packets reveal OS characteristics.} We still need to do
  592. IP-level packet normalization, to stop things like IP fingerprinting
  593. attacks. There likely exist libraries that can help with this.
  594. \item \emph{Application-level streams still need scrubbing.} We still need
  595. Tor to be easy to integrate with user-level application-specific proxies
  596. such as Privoxy. So it's not just a matter of capturing packets and
  597. anonymizing them at the IP layer.
  598. \item \emph{Certain protocols will still leak information.} For example,
  599. DNS requests destined for my local DNS servers need to be rewritten
  600. to be delivered to some other unlinkable DNS server. This requires
  601. understanding the protocols we are transporting.
  602. \item \emph{The crypto is unspecified.} First we need a block-level encryption
  603. approach that can provide security despite
  604. packet loss and out-of-order delivery. Freedom allegedly had one, but it was
  605. never publicly specified. %, and we believe it's likely vulnerable to tagging
  606. %attacks \cite{tor-design}.
  607. Also, TLS over UDP is not implemented or even
  608. specified, though some early work has begun on that~\cite{dtls}.
  609. \item \emph{We'll still need to tune network parameters}. Since the above
  610. encryption system will likely need sequence numbers (and maybe more) to do
  611. replay detection, handle duplicate frames, etc, we will be reimplementing
  612. some subset of TCP anyway.
  613. \item \emph{Exit policies for arbitrary IP packets mean building a secure
  614. IDS.} Our server operators tell us that exit policies are one of
  615. the main reasons they're willing to run Tor.
  616. Adding an Intrusion Detection System to handle exit policies would
  617. increase the security complexity of Tor, and would likely not work anyway,
  618. as evidenced by the entire field of IDS and counter-IDS papers. Many
  619. potential abuse issues are resolved by the fact that Tor only transports
  620. valid TCP streams (as opposed to arbitrary IP including malformed packets
  621. and IP floods), so exit policies become even \emph{more} important as
  622. we become able to transport IP packets. We also need a way to compactly
  623. characterize the exit policies and let clients parse them to decide
  624. which nodes will allow which packets to exit.
  625. \item \emph{The Tor-internal name spaces would need to be redesigned.} We
  626. support hidden service {\tt{.onion}} addresses, and other special addresses
  627. like {\tt{.exit}} (see Section~\ref{subsec:}), by intercepting the addresses
  628. when they are passed to the Tor client.
  629. \end{enumerate}
  630. This list is discouragingly long right now, but we recognize that it
  631. would be good to investigate each of these items in further depth and to
  632. understand which are actual roadblocks and which are easier to resolve
  633. than we think. We certainly wouldn't mind if Tor one day is able to
  634. transport a greater variety of protocols.
  635. \subsection{Mid-latency}
  636. \label{subsec:mid-latency}
  637. Though Tor has always been designed to be practical and usable first
  638. with as much anonymity as can be built in subject to those goals, we
  639. have contemplated that users might need resistance to at least simple
  640. traffic confirmation attacks. Higher-latency mix-networks resist these
  641. attacks by introducing variability into message arrival times in order to
  642. suppress timing correlation. Thus, it seems worthwhile to consider the
  643. whether we can improving Tor's anonymity by introducing batching and delaying
  644. strategies to the Tor messages to prevent observers from linking incoming and
  645. outgoing traffic.
  646. Before we consider the engineering issues involved in the approach, of
  647. course, we first need to study whether it can genuinely make users more
  648. anonymous. Research on end-to-end traffic analysis on higher-latency mix
  649. networks~\cite{e2e-traffic} indicates that as timing variance decreases,
  650. timing correlation attacks require increasingly less data; it might be the
  651. case that Tor can't resist timing attacks for longer than a few minutes
  652. without increasing message delays to an unusable degree. Conversely, if Tor
  653. can remain usable and slow timing attacks by even a matter of hours, this
  654. would represent a significant improvement in practical anonymity: protecting
  655. short-duration, once-off activities against a global observer is better than
  656. protecting no activities at all. In order to answer this question, we might
  657. try to adapt the techniques of~\cite{e2e-traffic} to a lower-latency mix
  658. network, where instead of sending uncorrelated messages, users send batches
  659. of cells in temporally clustered connections.
  660. Once the anonymity questions are answered, we need to consider usability. If
  661. the latency could be kept to two or three times its current overhead, this
  662. might be acceptable to most Tor users. However, it might also destroy much of
  663. the user base, and it is difficult to know in advance. Note also that in
  664. practice, as the network grows to incorporate more DSL and cable-modem nodes,
  665. and more nodes in various continents, this alone will \emph{already} cause
  666. many-second delays for some transactions. Reducing this latency will be
  667. hard, so perhaps it's worth considering whether accepting this higher latency
  668. can improve the anonymity we provide. Also, it could be possible to
  669. run a mid-latency option over the Tor network for those
  670. users either willing to experiment or in need of more
  671. anonymity. This would allow us to experiment with both
  672. the anonymity provided and the interest on the part of users.
  673. Adding a mid-latency option should not require significant fundamental
  674. change to the Tor client or server design; circuits could be labeled as
  675. low- or mid- latency as they are constructed. Low-latency traffic
  676. would be processed as now, while cells on on circuits that are mid-latency
  677. would be sent in uniform-size chunks at synchronized intervals. (Traffic
  678. already moves through the Tor network in fixed-sized cells; this would
  679. increase the granularity.) If servers forward these chunks in roughly
  680. synchronous fashion, it will increase the similarity of data stream timing
  681. signatures. By experimenting with the granularity of data chunks and
  682. of synchronization we can attempt once again to optimize for both
  683. usability and anonymity. Unlike in \cite{sync-batching}, it may be
  684. impractical to synchronize on network batches by dropping chunks from
  685. a batch that arrive late at a given node---unless Tor moves away from
  686. stream processing to a more loss-tolerant paradigm (cf.\
  687. Section~\ref{subsec:tcp-vs-ip}). Instead, batch timing would be obscured by
  688. synchronizing batches at the link level, and there would
  689. be no direct attempt to synchronize all batches
  690. entering the Tor network at the same time.
  691. %Alternatively, if end-to-end traffic confirmation is the
  692. %concern, there is little point in mixing.
  693. % Why not?? -NM
  694. It might also be feasible to
  695. pad chunks to uniform size as is done now for cells; if this is link
  696. padding rather than end-to-end, then it will take less overhead,
  697. especially in bursty environments.
  698. % This is another way in which it
  699. %would be fairly practical to set up a mid-latency option within the
  700. %existing Tor network.
  701. Other padding regimens might supplement the
  702. mid-latency option; however, we should continue the caution with which
  703. we have always approached padding lest the overhead cost us too much
  704. performance or too many volunteers.
  705. The distinction between traffic confirmation and traffic analysis is
  706. not as cut and dried as we might wish. In \cite{hintz-pet02} it was
  707. shown that if data volumes of various popular
  708. responder destinations are catalogued, it may not be necessary to
  709. observe both ends of a stream to confirm a source-destination link.
  710. This should be fairly effective without simultaneously observing both
  711. ends of the connection. However, it is still essentially confirming
  712. suspected communicants where the responder suspects are ``stored'' rather
  713. than observed at the same time as the client.
  714. Similarly latencies of going through various routes can be
  715. catalogued~\cite{back01} to connect endpoints.
  716. This is likely to entail high variability and massive storage since
  717. % XXX hintz-pet02 just looked at data volumes of the sites. this
  718. % doesn't require much variability or storage. I think it works
  719. % quite well actually. Also, \cite{kesdogan:pet2002} takes the
  720. % attack another level further, to narrow down where you could be
  721. % based on an intersection attack on subpages in a website. -RD
  722. %
  723. % I was trying to be terse and simultaneously referring to both the
  724. % Hintz stuff and the Back et al. stuff from Info Hiding 01. I've
  725. % separated the two and added the references. -PFS
  726. routes through the network to each site will be random even if they
  727. have relatively unique latency characteristics. So the do
  728. not seem an immediate practical threat. Further along similar lines,
  729. the same paper suggested a ``clogging attack''. A version of this
  730. was demonstrated to be practical in
  731. \cite{attack-tor-oak05}. There it was shown that an outside attacker can
  732. trace a stream through the Tor network while a stream is still active
  733. simply by observing the latency of his own traffic sent through
  734. various Tor nodes. These attacks are especially significant since they
  735. counter previous results that running one's own onion router protects
  736. better than using the network from the outside. The attacks do not
  737. show the client address, only the first server within the Tor network,
  738. making helper nodes all the more worthy of exploration for enclave
  739. protection. Setting up a mid-latency subnet as described above would
  740. be another significant step to evaluating resistance to such attacks.
  741. The attacks in \cite{attack-tor-oak05} are also dependent on
  742. cooperation of the responding application or the ability to modify or
  743. monitor the responder stream, in order of decreasing attack
  744. effectiveness. So, another way to slow some of these attacks
  745. would be to cache responses at exit servers where possible, as it is with
  746. DNS lookups and cacheable HTTP responses. Caching would, however,
  747. create threats of its own.
  748. %To be
  749. %useful, such caches would need to be distributed to any likely exit
  750. %nodes of recurred requests for the same data.
  751. % Even local caches could be useful, I think. -NM
  752. Aside from the logistic
  753. difficulties and overhead, caches would constitute a
  754. record of destinations and data visited by Tor users. While
  755. limited to network insiders, given the need for wide distribution
  756. they could serve as useful data to an attacker deciding which locations
  757. to target for confirmation. A way to counter this distribution
  758. threat might be to only cache at certain semitrusted helper nodes.
  759. %Does that cacheing discussion belong in low-latency?
  760. \subsection{Application support: SOCKS and beyond}
  761. Tor supports the SOCKS protocol, which provides a standardized interface for
  762. generic TCP proxies. Unfortunately, this is not a complete solution for
  763. many applications and platforms:
  764. \begin{tightlist}
  765. \item Many applications do not support SOCKS. To support such applications,
  766. it's necessary to replace the networking system calls with SOCKS-aware
  767. versions, or to run a local SOCKS tunnel and convince the applications to
  768. connect to localhost. Neither of these tasks is easy for the average user,
  769. even with good instructions.
  770. \item Even when applications do use SOCKS, they often make DNS requests
  771. themselves. (The various versions of the SOCKS protocol include some where
  772. the application tells the proxy an IP address, and some where it sends a
  773. hostname.) By connecting to the DNS sever directly, the application breaks
  774. the user's anonymity and advertises where it is about to connect.
  775. \end{tightlist}
  776. So in order to actually provide good anonymity, we need to make sure that
  777. users have a practical way to use Tor anonymously. Possibilities include
  778. writing wrappers for applications to anonymize them automatically; improving
  779. the applications' support for SOCKS; writing libraries to help application
  780. writers use Tor properly; and implementing a local DNS proxy to reroute DNS
  781. requests to Tor so that applications can simply point their DNS resolvers at
  782. localhost and continue to use SOCKS for data only.
  783. \subsection{Measuring performance and capacity}
  784. One of the paradoxes with engineering an anonymity network is that we'd like
  785. to learn as much as we can about how traffic flows so we can improve the
  786. network, but we want to prevent others from learning how traffic flows in
  787. order to trace users' connections through the network. Furthermore, many
  788. mechanisms that help Tor run efficiently (such as having clients choose servers
  789. based on their capacities) require measurements about the network.
  790. Currently, servers record their bandwidth use in 15-minute intervals and
  791. include this information in the descriptors they upload to the directory.
  792. They also try to deduce their own available bandwidth, on the basis of how
  793. much traffic they have been able to transfer recently, and upload this
  794. information as well.
  795. This is, of course, eminantly cheatable. A malicious server can get a
  796. disproportionate amount of traffic simply by claiming to have more bandiwdth
  797. than it does. But better mechanisms have their problems. If bandwidth data
  798. is to be measured rather than self-reported, it is usually possible for
  799. servers to selectively provide better service for the measuring party, or
  800. sabotage the measured value of other servers. Complex solutions for
  801. mix networks have been proposed, but do not address the issues
  802. completely~\cite{mix-acc,casc-rep}.
  803. Even without the possibility of cheating, network measurement is
  804. non-trivial. It is far from unusual for one observer's view of a server's
  805. latency or bandwidth to disagree wildly with another's. Furthermore, it is
  806. unclear whether total bandwidth is really the right measure; perhaps clients
  807. should be considering servers on the basis of unused bandwidth instead, or
  808. perhaps observed throughput.
  809. % XXXX say more here?
  810. %How to measure performance without letting people selectively deny service
  811. %by distinguishing pings. Heck, just how to measure performance at all. In
  812. %practice people have funny firewalls that don't match up to their exit
  813. %policies and Tor doesn't deal.
  814. %Network investigation: Is all this bandwidth publishing thing a good idea?
  815. %How can we collect stats better? Note weasel's smokeping, at
  816. %http://seppia.noreply.org/cgi-bin/smokeping.cgi?target=Tor
  817. %which probably gives george and steven enough info to break tor?
  818. Even if we can collect and use this network information effectively, we need
  819. to make sure that it is not more useful to attackers than to us. While it
  820. seems plausible that bandwidth data alone is not enough to reveal
  821. sender-recipient connections under most circumstances, it could certainly
  822. reveal the path taken by large traffic flows under low-usage circumstances.
  823. \subsection{Running a Tor server, path length, and helper nodes}
  824. It has been thought for some time that the best anonymity protection
  825. comes from running your own onion router~\cite{or-pet00,tor-design}.
  826. (In fact, in Onion Routing's first design, this was the only option
  827. possible~\cite{or-ih96}.) The first design also had a fixed path
  828. length of five nodes. Middle Onion Routing involved much analysis
  829. (mostly unpublished) of route selection algorithms and path length
  830. algorithms to combine efficiency with unpredictability in routes.
  831. Since, unlike Crowds, nodes in a route cannot all know the ultimate
  832. destination of an application connection, it was generally not
  833. considered significant if a node could determine via latency that it
  834. was second in the route. But if one followed Tor's three node default
  835. path length, an enclave-to-enclave communication (in which two of the
  836. ORs were at each enclave) would be completely compromised by the
  837. middle node. Thus for enclave-to-enclave communication, four is the fewest
  838. number of nodes that preserves the $\frac{c^2}{n^2}$ degree of protection
  839. in any setting.
  840. The Murdoch-Danezis attack, however, shows that simply adding to the
  841. path length may not protect usage of an enclave protecting OR\@. A
  842. hostile web server can determine all of the nodes in a three node Tor
  843. path. The attack only identifies that a node is on the route, not
  844. where. For example, if all of the nodes on the route were enclave
  845. nodes, the attack would not identify which of the two not directly
  846. visible to the attacker was the source. Thus, there remains an
  847. element of plausible deniability that is preserved for enclave nodes.
  848. However, Tor has always sought to be stronger than plausible
  849. deniability. Our assumption is that users of the network are concerned
  850. about being identified by an adversary, not with being proven guilty
  851. beyond any reasonable doubt. Still it is something, and may be desired
  852. in some settings.
  853. It is reasonable to think that this attack can be easily extended to
  854. longer paths should those be used; nonetheless there may be some
  855. advantage to random path length. If the number of nodes is unknown,
  856. then the adversary would need to send streams to all the nodes in the
  857. network and analyze the resulting latency from them to be reasonably
  858. certain that it has not missed the first node in the circuit. Also,
  859. the attack does not identify the order of nodes in a route, so the
  860. longer the route, the greater the uncertainty about which node might
  861. be first. It may be possible to extend the attack to learn the route
  862. node order, but it is not clear that this is practically feasible.
  863. Another way to reduce the threats to both enclaves and simple Tor
  864. clients is to have helper nodes. Helper nodes were introduced
  865. in~\cite{wright03} as a suggested means of protecting the identity
  866. of the initiator of a communication in various anonymity protocols.
  867. The idea is to use a single trusted node as the first one you go to,
  868. that way an attacker cannot ever attack the first nodes you connect
  869. to and do some form of intersection attack. This will not affect the
  870. Danezis-Murdoch attack at all.
  871. We have to pick the path length so adversary can't distinguish client from
  872. server (how many hops is good?).
  873. \subsection{Helper nodes}
  874. \label{subsec:helper-nodes}
  875. Tor can only provide anonymity against an attacker if that attacker can't
  876. monitor the user's entry and exit on the Tor network. But since Tor
  877. currently chooses entry and exit points randomly and changes them frequently,
  878. a patient attacker who controls a single entry and a single exit is sure to
  879. eventually break some circuits of frequent users who consider those servers.
  880. (We assume that users are as concerned about statistical profiling as about
  881. the anonymity any particular connection. That is, it is almost as bad to
  882. leak the fact that Alice {\it sometimes} talks to Bob as it is to leak the times
  883. when Alice is {\it actually} talking to Bob.)
  884. One solution to this problem is to use ``helper nodes''~\cite{helpers}---to
  885. have each client choose a few fixed servers for critical positions in her
  886. circuits. That is, Alice might choose some server H1 as her preferred
  887. entry, so that unless the attacker happens to control or observe her
  888. connection to H1, her circuits will remain anonymous. If H1 is compromised,
  889. Alice is vunerable as before. But now, at least, she has a chance of
  890. not being profiled.
  891. (Choosing fixed exit nodes is less useful, since the connection from the exit
  892. node to Alice's destination will be seen not only by the exit but by the
  893. destination. Even if Alice chooses a good fixed exit node, she may
  894. nevertheless connect to a hostile website.)
  895. There are still obstacles remaining before helper nodes can be implemented.
  896. For one, the litereature does not describe how to choose helpers from a list
  897. of servers that changes over time. If Alice is forced to choose a new entry
  898. helper every $d$ days, she can expect to choose a compromised server around
  899. every $dc/n$ days. Worse, an attacker with the ability to DoS servers could
  900. force their users to switch helper nodes more frequently.
  901. %Do general DoS attacks have anonymity implications? See e.g. Adam
  902. %Back's IH paper, but I think there's more to be pointed out here. -RD
  903. % Not sure what you want to say here. -NM
  904. %Game theory for helper nodes: if Alice offers a hidden service on a
  905. %server (enclave model), and nobody ever uses helper nodes, then against
  906. %George+Steven's attack she's totally nailed. If only Alice uses a helper
  907. %node, then she's still identified as the source of the data. If everybody
  908. %uses a helper node (including Alice), then the attack identifies the
  909. %helper node and also Alice, and knows which one is which. If everybody
  910. %uses a helper node (but not Alice), then the attacker figures the real
  911. %source was a client that is using Alice as a helper node. [How's my
  912. %logic here?] -RD
  913. %
  914. % Not sure about the logic. For the attack to work with helper nodes, the
  915. %attacker needs to guess that Alice is running the hidden service, right?
  916. %Otherwise, how can he know to measure her traffic specifically? -NM
  917. %point to routing-zones section re: helper nodes to defend against
  918. %big stuff.
  919. \subsection{Location-hidden services}
  920. While most of the discussions about have been about forward anonymity
  921. with Tor, it also provides support for \emph{rendezvous points}, which
  922. let users provide TCP services to other Tor users without revealing
  923. their location. Since this feature is relatively recent, we describe here
  924. a couple of our early observations from its deployment.
  925. First, our implementation of hidden services seems less hidden than we'd
  926. like, since they are configured on a single client and get used over
  927. and over---particularly because an external adversary can induce them to
  928. produce traffic. They seem the ideal use case for our above discussion
  929. of helper nodes. This insecurity means that they may not be suitable as
  930. a building block for Free Haven~\cite{freehaven-berk} or other anonymous
  931. publishing systems that aim to provide long-term security.
  932. %Also, they're brittle in terms of intersection and observation attacks.
  933. \emph{Hot-swap} hidden services, where more than one location can
  934. provide the service and loss of any one location does not imply a
  935. change in service, would help foil intersection and observation attacks
  936. where an adversary monitors availability of a hidden service and also
  937. monitors whether certain users or servers are online. However, the design
  938. challenges in providing these services without otherwise compromising
  939. the hidden service's anonymity remain an open problem.
  940. In practice, hidden services are used for more than just providing private
  941. access to a web server or IRC server. People are using hidden services
  942. as a poor man's VPN and firewall-buster. Many people want to be able
  943. to connect to the computers in their private network via secure shell,
  944. and rather than playing with dyndns and trying to pierce holes in their
  945. firewall, they run a hidden service on the inside and then rendezvous
  946. with that hidden service externally.
  947. Also, sites like Bloggers Without Borders (www.b19s.org) are advertising
  948. a hidden-service address on their front page. Doing this can provide
  949. increased robustness if they use the dual-IP approach we describe in
  950. tor-design, but in practice they do it firstly to increase visibility
  951. of the tor project and their support for privacy, and secondly to offer
  952. a way for their users, using unmodified software, to get end-to-end
  953. encryption and end-to-end authentication to their website.
  954. \subsection{Trust and discovery}
  955. [arma will edit this and expand/retract it]
  956. The published Tor design adopted a deliberately simplistic design for
  957. authorizing new nodes and informing clients about servers and their status.
  958. In the early Tor designs, all ORs periodically uploaded a signed description
  959. of their locations, keys, and capabilities to each of several well-known {\it
  960. directory servers}. These directory servers constructed a signed summary
  961. of all known ORs (a ``directory''), and a signed statement of which ORs they
  962. believed to be operational at any given time (a ``network status''). Clients
  963. periodically downloaded a directory in order to learn the latest ORs and
  964. keys, and more frequently downloaded a network status to learn which ORs are
  965. likely to be running. ORs also operate as directory caches, in order to
  966. lighten the bandwidth on the authoritative directory servers.
  967. In order to prevent Sybil attacks (wherein an adversary signs up many
  968. purportedly independent servers in order to increase her chances of observing
  969. a stream as it enters and leaves the network), the early Tor directory design
  970. required the operators of the authoritative directory servers to manually
  971. approve new ORs. Unapproved ORs were included in the directory, but clients
  972. did not use them at the start or end of their circuits. In practice,
  973. directory administrators performed little actual verification, and tended to
  974. approve any OR whose operator could compose a coherent email. This procedure
  975. may have prevented trivial automated Sybil attacks, but would do little
  976. against a clever attacker.
  977. There are a number of flaws in this system that need to be addressed as we
  978. move forward. They include:
  979. \begin{tightlist}
  980. \item Each directory server represents an independent point of failure; if
  981. any one were compromised, it could immediately compromise all of its users
  982. by recommending only compromised ORs.
  983. \item The more servers appear join the network, the more unreasonable it
  984. becomes to expect clients to know about them all. Directories
  985. become unfeasibly large, and downloading the list of servers becomes
  986. burdonsome.
  987. \item The validation scheme may do as much harm as it does good. It is not
  988. only incapable of preventing clever attackers from mounting Sybil attacks,
  989. but may deter server operators from joining the network. (For instance, if
  990. they expect the validation process to be difficult, or if they do not share
  991. any languages in common with the directory server operators.)
  992. \end{tightlist}
  993. We could try to move the system in several directions, depending on our
  994. choice of threat model and requirements. If we did not need to increase
  995. network capacity in order to support more users, there would be no reason not
  996. to adopt even stricter validation requirements, and reduce the number of
  997. servers in the network to a trusted minimum. But since we want Tor to work
  998. for as many users as it can, we need XXXXX
  999. In order to address the first two issues, it seems wise to move to a system
  1000. including a number of semi-trusted directory servers, no one of which can
  1001. compromise a user on its own. Ultimately, of course, we cannot escape the
  1002. problem of a first introducer: since most users will run Tor in whatever
  1003. configuration the software ships with, the Tor distribution itself will
  1004. remain a potential single point of failure so long as it includes the seed
  1005. keys for directory servers, a list of directory servers, or any other means
  1006. to learn which servers are on the network. But omitting this information
  1007. from the Tor distribution would only delegate the trust problem to the
  1008. individual users, most of whom are presumably less informed about how to make
  1009. trust decisions than the Tor developers.
  1010. %Network discovery, sybil, node admission, scaling. It seems that the code
  1011. %will ship with something and that's our trust root. We could try to get
  1012. %people to build a web of trust, but no. Where we go from here depends
  1013. %on what threats we have in mind. Really decentralized if your threat is
  1014. %RIAA; less so if threat is to application data or individuals or...
  1015. \section{Crossroads: Scaling}
  1016. %\label{sec:crossroads-scaling}
  1017. %P2P + anonymity issues:
  1018. Tor is running today with hundreds of servers and tens of thousands of
  1019. users, but it will certainly not scale to millions.
  1020. Scaling Tor involves three main challenges. First is safe server
  1021. discovery, both bootstrapping -- how a Tor client can robustly find an
  1022. initial server list -- and ongoing -- how a Tor client can learn about
  1023. a fair sample of honest servers and not let the adversary control his
  1024. circuits (see Section x). Second is detecting and handling the speed
  1025. and reliability of the variety of servers we must use if we want to
  1026. accept many servers (see Section y).
  1027. Since the speed and reliability of a circuit is limited by its worst link,
  1028. we must learn to track and predict performance. Finally, in order to get
  1029. a large set of servers in the first place, we must address incentives
  1030. for users to carry traffic for others (see Section incentives).
  1031. \subsection{Incentives by Design}
  1032. [nick will try to make this section shorter and more to the point.]
  1033. [most of the technical incentive schemes in the literature introduce
  1034. anonymity issues which we don't understand yet, and we seem to be doing
  1035. ok without them]
  1036. There are three behaviors we need to encourage for each server: relaying
  1037. traffic; providing good throughput and reliability while doing it;
  1038. and allowing traffic to exit the network from that server.
  1039. We encourage these behaviors through \emph{indirect} incentives, that
  1040. is, designing the system and educating users in such a way that users
  1041. with certain goals will choose to relay traffic. In practice, the
  1042. main incentive for running a Tor server is social benefit: volunteers
  1043. altruistically donate their bandwidth and time. We also keep public
  1044. rankings of the throughput and reliability of servers, much like
  1045. seti@home. We further explain to users that they can get \emph{better
  1046. security} by operating a server, because they get plausible deniability
  1047. (indeed, they may not need to route their own traffic through Tor at all
  1048. -- blending directly with other traffic exiting Tor may be sufficient
  1049. protection for them), and because they can use their own Tor server
  1050. as entry or exit point and be confident it's not run by the adversary.
  1051. Finally, we can improve the usability and feature set of the software:
  1052. rate limiting support and easy packaging decrease the hassle of
  1053. maintaining a server, and our configurable exit policies allow each
  1054. operator to advertise a policy describing the hosts and ports to which
  1055. he feels comfortable connecting.
  1056. Beyond these, however, there is also a need for \emph{direct} incentives:
  1057. providing payment or other resources in return for high-quality service.
  1058. Paying actual money is problematic: decentralized e-cash systems are
  1059. not yet practical, and a centralized collection system not only reduces
  1060. robustness, but also has failed in the past (the history of commercial
  1061. anonymizing networks is littered with failed attempts). A more promising
  1062. option is to use a tit-for-tat incentive scheme: provide better service
  1063. to nodes that have provided good service to you.
  1064. Unfortunately, such an approach introduces new anonymity problems.
  1065. Does the incentive system enable the adversary to attract more traffic by
  1066. performing well? Typically a user who chooses evenly from all options is
  1067. most resistant to an adversary targetting him, but that approach prevents
  1068. us from handling heterogeneous servers \cite{casc-rep}.
  1069. When a server (call him Steve) performs well for Alice, does Steve gain
  1070. reputation with the entire system, or just with Alice? If the entire
  1071. system, how does Alice tell everybody about her experience in a way that
  1072. prevents her from lying about it yet still protects her identity? If
  1073. Steve's behavior only affects Alice's behavior, does this allow Steve to
  1074. selectively perform only for Alice, and then break her anonymity later
  1075. when somebody (presumably Alice) routes through his node?
  1076. These are difficult and open questions, yet choosing not to scale means
  1077. leaving most users to a less secure network or no anonymizing network
  1078. at all. We will start with a simplified approach to the tit-for-tat
  1079. incentive scheme based on two rules: (1) each node should measure the
  1080. service it receives from adjacent nodes, and provide service relative to
  1081. the received service, but (2) when a node is making decisions that affect
  1082. its own security (e.g. when building a circuit for its own application
  1083. connections), it should choose evenly from a sufficiently large set of
  1084. nodes that meet some minimum service threshold. This approach allows us
  1085. to discourage bad service without opening Alice up as much to attacks.
  1086. %XXX rewrite the above so it sounds less like a grant proposal and
  1087. %more like a "if somebody were to try to solve this, maybe this is a
  1088. %good first step".
  1089. %We should implement the above incentive scheme in the
  1090. %deployed Tor network, in conjunction with our plans to add the necessary
  1091. %associated scalability mechanisms. We will do experiments (simulated
  1092. %and/or real) to determine how much the incentive system improves
  1093. %efficiency over baseline, and also to determine how far we are from
  1094. %optimal efficiency (what we could get if we ignored the anonymity goals).
  1095. \subsection{Peer-to-peer / practical issues}
  1096. [leave this section for now, and make sure things here are covered
  1097. elsewhere. then remove it.]
  1098. Making use of servers with little bandwidth. How to handle hammering by
  1099. certain applications.
  1100. Handling servers that are far away from the rest of the network, e.g. on
  1101. the continents that aren't North America and Europe. High latency,
  1102. often high packet loss.
  1103. Running Tor servers behind NATs, behind great-firewalls-of-China, etc.
  1104. Restricted routes. How to propagate to everybody the topology? BGP
  1105. style doesn't work because we don't want just *one* path. Point to
  1106. Geoff's stuff.
  1107. \subsection{Location diversity and ISP-class adversaries}
  1108. \label{subsec:routing-zones}
  1109. Anonymity networks have long relied on diversity of node location for
  1110. protection against attacks---typically an adversary who can observe a
  1111. larger fraction of the network can launch a more effective attack. One
  1112. way to achieve dispersal involves growing the network so a given adversary
  1113. sees less. Alternately, we can arrange the topology so traffic can enter
  1114. or exit at many places (for example, by using a free-route network
  1115. like Tor rather than a cascade network like JAP). Lastly, we can use
  1116. distributed trust to spread each transaction over multiple jurisdictions.
  1117. But how do we decide whether two nodes are in related locations?
  1118. Feamster and Dingledine defined a \emph{location diversity} metric
  1119. in \cite{feamster:wpes2004}, and began investigating a variant of location
  1120. diversity based on the fact that the Internet is divided into thousands of
  1121. independently operated networks called {\em autonomous systems} (ASes).
  1122. The key insight from their paper is that while we typically think of a
  1123. connection as going directly from the Tor client to her first Tor node,
  1124. actually it traverses many different ASes on each hop. An adversary at
  1125. any of these ASes can monitor or influence traffic. Specifically, given
  1126. plausible initiators and recipients and path random path selection,
  1127. some ASes in the simulation were able to observe 10\% to 30\% of the
  1128. transactions (that is, learn both the origin and the destination) on
  1129. the deployed Tor network (33 nodes as of June 2004).
  1130. The paper concludes that for best protection against the AS-level
  1131. adversary, nodes should be in ASes that have the most links to other ASes:
  1132. Tier-1 ISPs such as AT\&T and Abovenet. Further, a given transaction
  1133. is safest when it starts or ends in a Tier-1 ISP. Therefore, assuming
  1134. initiator and responder are both in the U.S., it actually \emph{hurts}
  1135. our location diversity to add far-flung nodes in continents like Asia
  1136. or South America.
  1137. Many open questions remain. First, it will be an immense engineering
  1138. challenge to get an entire BGP routing table to each Tor client, or at
  1139. least summarize it sufficiently. Without a local copy, clients won't be
  1140. able to safely predict what ASes will be traversed on the various paths
  1141. through the Tor network to the final destination. Tarzan~\cite{tarzan:ccs02}
  1142. and MorphMix~\cite{morphmix:fc04} suggest that we compare IP prefixes to
  1143. determine location diversity; but the above paper showed that in practice
  1144. many of the Mixmaster nodes that share a single AS have entirely different
  1145. IP prefixes. When the network has scaled to thousands of nodes, does IP
  1146. prefix comparison become a more useful approximation?
  1147. %
  1148. Second, can take advantage of caching certain content at the exit nodes, to
  1149. limit the number of requests that need to leave the network at all.
  1150. what about taking advantage of caches like akamai's or googles? what
  1151. about treating them as adversaries?
  1152. %
  1153. Third, if we follow the paper's recommendations and tailor path selection
  1154. to avoid choosing endpoints in similar locations, how much are we hurting
  1155. anonymity against larger real-world adversaries who can take advantage
  1156. of knowing our algorithm?
  1157. %
  1158. Lastly, can we use this knowledge to figure out which gaps in our network
  1159. would most improve our robustness to this class of attack, and go recruit
  1160. new servers with those ASes in mind?
  1161. Tor's security relies in large part on the dispersal properties of its
  1162. network. We need to be more aware of the anonymity properties of various
  1163. approaches we can make better design decisions in the future.
  1164. \subsection{The China problem}
  1165. \label{subsec:china}
  1166. Citizens in a variety of countries, such as most recently China and
  1167. Iran, are periodically blocked from accessing various sites outside
  1168. their country. These users try to find any tools available to allow
  1169. them to get-around these firewalls. Some anonymity networks, such as
  1170. Six-Four~\cite{six-four}, are designed specifically with this goal in
  1171. mind; others like the Anonymizer~\cite{anonymizer} are paid by sponsors
  1172. such as Voice of America to set up a network to encourage `Internet
  1173. freedom'~\cite{voice-of-america-anonymizer}. Even though Tor wasn't
  1174. designed with ubiquitous access to the network in mind, thousands of
  1175. users across the world are trying to use it for exactly this purpose.
  1176. % Academic and NGO organizations, peacefire, \cite{berkman}, etc
  1177. Anti-censorship networks hoping to bridge country-level blocks face
  1178. a variety of challenges. One of these is that they need to find enough
  1179. exit nodes---servers on the `free' side that are willing to relay
  1180. arbitrary traffic from users to their final destinations. Anonymizing
  1181. networks including Tor are well-suited to this task, since we have
  1182. already gathered a set of exit nodes that are willing to tolerate some
  1183. political heat.
  1184. The other main challenge is to distribute a list of reachable relays
  1185. to the users inside the country, and give them software to use them,
  1186. without letting the authorities also enumerate this list and block each
  1187. relay. Anonymizer solves this by buying lots of seemingly-unrelated IP
  1188. addresses (or having them donated), abandoning old addresses as they are
  1189. `used up', and telling a few users about the new ones. Distributed
  1190. anonymizing networks again have an advantage here, in that we already
  1191. have tens of thousands of separate IP addresses whose users might
  1192. volunteer to provide this service since they've already installed and use
  1193. the software for their own privacy~\cite{koepsell:wpes2004}. Because
  1194. the Tor protocol separates routing from network discovery (see Section
  1195. \ref{do-we-discuss-this?}), volunteers could configure their Tor clients
  1196. to generate server descriptors and send them to a special directory
  1197. server that gives them out to dissidents who need to get around blocks.
  1198. Of course, this still doesn't prevent the adversary
  1199. from enumerating all the volunteer relays and blocking them preemptively.
  1200. Perhaps a tiered-trust system could be built where a few individuals are
  1201. given relays' locations, and they recommend other individuals by telling them
  1202. those addresses, thus providing a built-in incentive to avoid letting the
  1203. adversary intercept them. Max-flow trust algorithms~\cite{advogato}
  1204. might help to bound the number of IP addresses leaked to the adversary. Groups
  1205. like the W3C are looking into using Tor as a component in an overall system to
  1206. help address censorship; we wish them luck.
  1207. %\cite{infranet}
  1208. \subsection{Non-clique topologies}
  1209. Tor's comparatively weak model makes it easier to scale than other mix net
  1210. designs. High-latency mix networks need to avoid partitioning attacks, where
  1211. network splits prevent users of the separate partitions from providing cover
  1212. for each other. In Tor, however, we assume that the adversary cannot
  1213. cheaply observe nodes at will, so even if the network becomes split, the
  1214. users do not necessarily receive much less protection.
  1215. Thus, a simple possibility when the scale of a Tor network
  1216. exceeds some size is to simply split it. Care could be taken in
  1217. allocating which nodes go to which network along the lines of
  1218. \cite{casc-rep} to insure that collaborating hostile nodes are not
  1219. able to gain any advantage in network splitting that they do not
  1220. already have in joining a network.
  1221. % Describe these attacks; many people will not have read the paper!
  1222. The attacks in \cite{attack-tor-oak05} show that certain types of
  1223. brute force attacks are in fact feasible; however they make the
  1224. above point stronger not weaker. The attacks do not appear to be
  1225. significantly more difficult to mount against a network that is
  1226. twice the size. Also, they only identify the Tor nodes used in a
  1227. circuit, not the client. Finally note that even if the network is split,
  1228. a client does not need to use just one of the two resulting networks.
  1229. Alice could use either of them, and it would not be difficult to make
  1230. the Tor client able to access several such network on a per circuit
  1231. basis. More analysis is needed; we simply note here that splitting
  1232. a Tor network is an easy way to achieve moderate scalability and that
  1233. it does not necessarily have the same implications as splitting a mixnet.
  1234. Alternatively, we can try to scale a single Tor network. Some issues for
  1235. scaling include restricting the number of sockets and the amount of bandwidth
  1236. used by each server. The number of sockets is determined by the network's
  1237. connectivity and the number of users, while bandwidth capacity is determined
  1238. by the total bandwidth of servers on the network. The simplest solution to
  1239. bandwidth capacity is to add more servers, since adding a tor node of any
  1240. feasible bandwidth will increase the traffic capacity of the network. So as
  1241. a first step to scaling, we should focus on making the network tolerate more
  1242. servers, by reducing the interconnectivity of the nodes; later we can reduce
  1243. overhead associated withy directories, discovery, and so on.
  1244. By reducing the connectivity of the network we increase the total number of
  1245. nodes that the network can contain. Danezis~\cite{danezis-pet03} considers
  1246. the anonymity implications of restricting routes on mix networks, and
  1247. recommends an approach based on expander graphs (where any subgraph is likely
  1248. to have many neighbors). It is not immediately clear that this approach will
  1249. extend to Tor, which has a weaker threat model but higher performance
  1250. requirements than the network considered. Instead of analyzing the
  1251. probability of an attacker's viewing whole paths, we will need to examine the
  1252. attacker's likelihood of compromising the endpoints of a Tor circuit through
  1253. a sparse network.
  1254. % Nick edits these next 2 grafs.
  1255. To make matters simpler, Tor may not need an expander graph per se: it
  1256. may be enough to have a single subnet that is highly connected. As an
  1257. example, assume fifty nodes of relatively high traffic capacity. This
  1258. \emph{center} forms are a clique. Assume each center node can each
  1259. handle 200 connections to other nodes (including the other ones in the
  1260. center). Assume every noncenter node connects to three nodes in the
  1261. center and anyone out of the center that they want to. Then the
  1262. network easily scales to c. 2500 nodes with commensurate increase in
  1263. bandwidth. There are many open questions: how directory information
  1264. is distributed (presumably information about the center nodes could
  1265. be given to any new nodes with their codebase), whether center nodes
  1266. will need to function as a `backbone', etc. As above the point is
  1267. that this would create problems for the expected anonymity for a mixnet,
  1268. but for an onion routing network where anonymity derives largely from
  1269. the edges, it may be feasible.
  1270. Another point is that we already have a non-clique topology.
  1271. Individuals can set up and run Tor nodes without informing the
  1272. directory servers. This will allow, e.g., dissident groups to run a
  1273. local Tor network of such nodes that connects to the public Tor
  1274. network. This network is hidden behind the Tor network and its
  1275. only visible connection to Tor at those points where it connects.
  1276. As far as the public network is concerned or anyone observing it,
  1277. they are running clients.
  1278. \section{The Future}
  1279. \label{sec:conclusion}
  1280. we should put random thoughts here until there are enough for a
  1281. conclusion.
  1282. will our sustainability approach work? we'll see.
  1283. Applications that leak data: we can say they're not our problem, but
  1284. they're somebody's problem.
  1285. The more widely deployed Tor becomes, the more people who need a
  1286. deployed overlay network tell us they'd like to use us if only we added
  1287. the following more features.
  1288. "These are difficult and open questions, yet choosing not to solve them
  1289. means leaving most users to a less secure network or no anonymizing
  1290. network at all."
  1291. \bibliographystyle{plain} \bibliography{tor-design}
  1292. \clearpage
  1293. \appendix
  1294. \begin{figure}[t]
  1295. %\unitlength=1in
  1296. \centering
  1297. %\begin{picture}(6.0,2.0)
  1298. %\put(3,1){\makebox(0,0)[c]{\epsfig{figure=graphnodes,width=6in}}}
  1299. %\end{picture}
  1300. \mbox{\epsfig{figure=graphnodes,width=5in}}
  1301. \caption{Number of servers over time. Lowest line is number of exit
  1302. nodes that allow connections to port 80. Middle line is total number of
  1303. verified (registered) servers. The line above that represents servers
  1304. that are not yet registered.}
  1305. \label{fig:graphnodes}
  1306. \end{figure}
  1307. \begin{figure}[t]
  1308. \centering
  1309. \mbox{\epsfig{figure=graphtraffic,width=5in}}
  1310. \caption{The sum of traffic reported by each server over time. The bottom
  1311. pair show average throughput, and the top pair represent the largest 15
  1312. minute burst in each 4 hour period.}
  1313. \label{fig:graphtraffic}
  1314. \end{figure}
  1315. \end{document}