2004-07-06 21:38:20 +00:00
|
|
|
<p>I2P is an effort to build, deploy, and maintain a network to support secure and anonymous
|
|
|
|
communication. People using I2P are in control of the tradeoffs between anonymity, reliability,
|
2004-07-06 20:39:18 +00:00
|
|
|
bandwidth usage, and latency. There is no central point in the network on which pressure can be
|
|
|
|
exerted to compromise the integrity, security, or anonymity of the system. The network supports
|
|
|
|
dynamic reconfiguration in response to various attacks, and has been designed to make use of
|
|
|
|
additional resources as they become available. Of course, all aspects of the network are open
|
|
|
|
and freely available.</p>
|
|
|
|
|
2004-07-06 21:38:20 +00:00
|
|
|
<p>Unlike many other anonymizing networks, I2P doesn't try to provide anonymity by hiding the
|
|
|
|
originator of some communication and not the recipient, or the other way around. I2P is designed
|
2004-07-23 23:22:29 +00:00
|
|
|
to allow peers using I2P to communicate with each other anonymously — both sender and recipient
|
2004-07-06 20:39:18 +00:00
|
|
|
are unidentifiable to each other as well as to third parties. For example, today there are both
|
2004-07-06 21:38:20 +00:00
|
|
|
in-I2P web sites (allowing anonymous publishing / hosting) as well as HTTP proxies to the normal
|
|
|
|
web (allowing anonymous web browsing). Having the ability to run servers within I2P is essential,
|
2004-07-06 20:39:18 +00:00
|
|
|
as it is quite likely that any outbound proxies to the normal internet will be monitored, disabled,
|
|
|
|
or even taken over to attempt more malicious attacks.</p>
|
|
|
|
|
|
|
|
<p>The network itself is message oriented - it is essentially a secure and anonymous IP layer,
|
|
|
|
where messages are addressed to cryptographic keys (Destinations) and can be significantly larger
|
|
|
|
than IP packets. Some example uses of the network include "eepsites" (webservers hosting normal web
|
2004-07-06 21:38:20 +00:00
|
|
|
applications within I2P), a <a href="http://bitconjurer.org/BitTorrent/">BitTorrent</a> port ("I2PSnark"),
|
2004-07-19 16:16:05 +00:00
|
|
|
or a distributed data store. With the help of mihi's <a href="i2ptunnel">I2PTunnel</a> application,
|
2004-07-06 21:38:20 +00:00
|
|
|
we are able to stream traditional TCP/IP applications over I2P, such as SSH, irc, a squid proxy, and
|
|
|
|
even streaming audio. Most people will not use I2P directly, or even need to know they're using it.
|
|
|
|
Instead their view will be of one of the I2P enabled applications, or perhaps as a little controller
|
2004-07-06 20:39:18 +00:00
|
|
|
app to turn on and off various proxies to enable the anonymizing functionality.</p>
|
|
|
|
|
|
|
|
<p>An essential part of designing, developing, and testing an anonymizing network is to define the
|
2004-07-19 16:16:05 +00:00
|
|
|
<a href="how_threatmodel">threat model</a>, since there is no such thing as "true" anonymity, just
|
2004-07-06 21:38:20 +00:00
|
|
|
increasingly expensive costs to identify someone. Briefly, I2P's intent is to allow people to communicate
|
2004-07-06 20:39:18 +00:00
|
|
|
in arbitrarily hostile environments by providing militant grade anonymity, mixed in with sufficient cover
|
|
|
|
traffic provided by the activity of people who require less anonymity. This includes letting Joe Sixpack
|
|
|
|
chat with his buddies without anyone listening in, Jane Filetrader to share files knowing that large
|
|
|
|
corporations cannot identify her, as well as Will Whistleblower to publish sensitive documents -
|
|
|
|
<i>all on the same network</i>, where each one's messages are essentially indistinguishable from the
|
|
|
|
others.</p>
|
|
|
|
|
|
|
|
<h2>Why?</h2>
|
2004-07-19 16:00:26 +00:00
|
|
|
<p>There are a multitude of fantastic reasons why we need a system to support
|
2004-07-06 20:39:18 +00:00
|
|
|
anonymous communication, and everyone has their own personal rationale. There have are many
|
2004-07-19 16:16:05 +00:00
|
|
|
<a href="how_networkcomparisons">other efforts</a> working on finding ways to provide varying degrees of
|
2004-07-06 20:39:18 +00:00
|
|
|
anonymity to people through the Internet, but we could not find any that met our needs or threat
|
2004-07-06 21:38:20 +00:00
|
|
|
model.</p>
|
2004-07-06 20:39:18 +00:00
|
|
|
|
|
|
|
<h2>How?</h2>
|
|
|
|
|
2004-07-19 16:00:26 +00:00
|
|
|
<p>The network at a glance is made up of a set of nodes ("routers") with a number of unidirectional
|
2004-07-19 16:16:05 +00:00
|
|
|
inbound and outbound virtual paths ("tunnels", as outlined on the <a href="how_tunnelrouting">tunnel routing</a> page).
|
2004-07-06 20:39:18 +00:00
|
|
|
Each router is identified by a cryptographic RouterIdentity which is typically long lived. These routers
|
2004-08-21 21:26:31 +00:00
|
|
|
communicate with each other through existing transport mechanisms (TCP, UDP, etc), passing various
|
2004-07-06 20:39:18 +00:00
|
|
|
messages. Client applications have their own cryptographic identifier ("Destination") which enables it
|
|
|
|
to send and receive messages. These clients can connect to any router and authorize the temporary
|
|
|
|
allocation ("lease") of some tunnels that will be used for sending and receiving messages through the
|
2004-07-19 16:16:05 +00:00
|
|
|
network. I2P has its own internal <a href="how_networkdatabase">network database</a> (using a modification of
|
2004-08-21 21:26:31 +00:00
|
|
|
the Kademlia algorithm) for scalably distributing routing and contact information securely.</p>
|
|
|
|
|
|
|
|
<p><img src="images/net.png" alt="Network topology example" /></p>
|
|
|
|
|
|
|
|
<p>In the above, Alice, Bob, Charlie, and Dave are all running routers with a single Destination on their
|
|
|
|
local router. They each have a pair of 2-hop inbound tunnels per destination (labeled 1,2,3,4,5 and 6),
|
|
|
|
and a small subset of each of those router's outbound tunnel pool is shown with 2-hop outbound tunnels.
|
|
|
|
For simplicity, Charlie's inbound tunnels and Dave's outbound tunnels are not shown, nor are the rest of
|
|
|
|
each router's outbound tunnel pool (typically stocked with 5-10 tunnels at a time). When Alice and Bob
|
|
|
|
talk to each other, Alice sends a message out one of her (pink) outbound tunnels targetting one of Bob's
|
2004-08-21 21:30:07 +00:00
|
|
|
(green) inbound tunnels (tunnel 3 or 4). She knows to send to those tunnels on the correct router by querying the
|
2004-08-21 21:26:31 +00:00
|
|
|
network database, which is constantly updated as new leases are authorized and old ones expire.</p>
|
|
|
|
|
|
|
|
<p>If Bob wants to reply to Alice, he simply goes through the same process - send a message out one of his
|
2004-08-21 21:30:07 +00:00
|
|
|
outbound tunnels targetting one of Alice's inbound tunnels (tunnel 1 or 2). To make things easier, most
|
|
|
|
messages sent between Alice and Bob are <a href="how_garlicrouting">garlic</a> wrapped, bundling the
|
|
|
|
sender's own current lease information so that the recipient can reply immediately without having to look
|
|
|
|
in the network database for the current data.</p>
|
2004-07-06 20:39:18 +00:00
|
|
|
|
2004-07-06 21:38:20 +00:00
|
|
|
<p>To deal with a wide range of attacks, I2P is fully distributed with no centralized resources - and
|
2004-07-06 20:39:18 +00:00
|
|
|
hence there are no directory servers keeping statistics regarding the performance and reliability of
|
|
|
|
routers within the network. As such, each router must keep and maintain profiles of various routers
|
|
|
|
and is responsible for selecting appropriate peers to meet the anonymity, performance, and reliability
|
2004-08-21 21:26:31 +00:00
|
|
|
needs of the users, as described in the <a href="how_peerselection">peer selection</a> page.</p>
|
2004-07-06 20:39:18 +00:00
|
|
|
|
|
|
|
<p>The network itself makes use of a significant number of cryptographic techniques and altorithms -
|
|
|
|
a full laundry list includes 2048bit ElGamal encryption, 256bit AES in CBC mode with PKCS#5 padding,
|
|
|
|
1024bit DSA signatures, SHA256 hashes, 2048bit Diffie-Hellman negotiated connections with station to
|
2004-07-19 16:16:05 +00:00
|
|
|
station authentication, and <a href="how_elgamalaes">ElGamal / AES+SessionTag</a>.</p>
|
2004-07-06 20:39:18 +00:00
|
|
|
|
2004-07-06 21:38:20 +00:00
|
|
|
<p>Content sent over I2P is encrypted through three or four layers - end to end encryption (absolutely
|
2004-07-06 20:39:18 +00:00
|
|
|
no routers get the plaintext, ever), garlic encryption (used to verify the delivery of the message to
|
|
|
|
the recipient), tunnel encryption (all messages passing through a tunnel is encrypted by the tunnel
|
|
|
|
gateway to the tunnel endpoint), and interrouter transport layer encryption (e.g. the TCP transport
|
|
|
|
uses AES256 with ephemeral keys):</p>
|
|
|
|
|
2004-08-21 21:26:31 +00:00
|
|
|
<p><img src="images/endToEndEncryption.png" alt="end to end layered encryption" /></p>
|
2004-07-06 20:39:18 +00:00
|
|
|
|
2004-07-19 16:16:05 +00:00
|
|
|
<p>The specific use of these algorithms are outlined <a href="how_cryptography">elsewhere</a></p>
|
2004-07-06 20:39:18 +00:00
|
|
|
|
|
|
|
<p>The two main mechanisms for allowing people who need militant grade anonymity use the network are
|
|
|
|
explicitly delayed garlic routed messages and more comprehensive tunnels to include support for pooling
|
|
|
|
and mixing messages. These are currently planned for release 3.0, but garlic routed messages with no
|
|
|
|
delays and FIFO tunnels are currently in place. Additionally, the 2.0 release will allow people to set
|
|
|
|
up and operate behind restricted routes (perhaps with trusted peers), as well as the deployment of more
|
|
|
|
flexible and anonymous transports.</p>
|
|
|
|
|
2004-07-06 21:38:20 +00:00
|
|
|
<p>Some questions have been raised with regards to the scalability of I2P, and reasonably so. There
|
2004-07-06 20:39:18 +00:00
|
|
|
will certainly be more analysis over time, but peer lookup and integration should be bounded by
|
2004-07-19 16:16:05 +00:00
|
|
|
<code>O(log(N))</code> due to the <a href="how_networkdatabase">network database</a>'s algorithm, while end to end
|
2004-07-06 20:39:18 +00:00
|
|
|
messages should be <code>O(log(1))</code> (scale free), since messages go out K hops through the outbound
|
|
|
|
tunnel and another K hops through the inbound tunnel - the size of the network (N) bears no impact.</p>
|
|
|
|
|
|
|
|
<h2>When?</h2>
|
2004-07-06 21:38:20 +00:00
|
|
|
<p>I2P initially began in Feb 2003 as a proposed modification to
|
2004-07-06 20:39:18 +00:00
|
|
|
<a href="http://freenetproject.org">freenet</a> to allow it to use alternate transports, such as
|
|
|
|
<a href="http://java.sun.com/products/jms/index.jsp">JMS</a>, then grew into its own as an
|
2004-09-14 20:35:59 +00:00
|
|
|
'anonCommFramework' in April 2003, turning into I2P in July, with code being cut in earnest in August '03,
|
|
|
|
reaching the 0.2 release in September, 0.3 in March, and 0.4 in September. I2P is currently moving forward according to
|
2004-07-19 16:16:05 +00:00
|
|
|
the <a href="roadmap">roadmap</a>.</p>
|
2004-07-06 20:39:18 +00:00
|
|
|
|
|
|
|
<p>The network itself is not ready for general use, and should not be used by those who need anonymity
|
|
|
|
until it has been met with sufficient peer review.</p>
|
|
|
|
|
|
|
|
<h2>Who?</h2>
|
2004-07-19 16:16:05 +00:00
|
|
|
<p>We have a small <a href="team">team</a> spread around several continents, working to advance different
|
2004-07-06 20:39:18 +00:00
|
|
|
aspects of the project. We are very open to other developers who want to get involved and anyone else
|
2004-07-06 21:38:20 +00:00
|
|
|
who would like to contribute in other ways, such as critiques, peer review, testing, writing I2P enabled
|
2004-07-06 20:39:18 +00:00
|
|
|
applications, or documentation. The entire system is open source - the router and most of the SDK are
|
|
|
|
outright public domain with some BSD and Cryptix licensed code, while some applications like I2PTunnel
|
|
|
|
and I2PSnark are GPL. Almost everything is written in Java (1.3+), though some third party applications
|
2004-07-19 16:00:26 +00:00
|
|
|
are being written in Python. The code works on the current <a href="http://www.kaffe.org/">Kaffe</a>, and
|
2004-07-06 20:39:18 +00:00
|
|
|
we are hoping to get it working on <a href="http://gcc.gnu.org/java/">GCJ</a> sooner rather than later.</p>
|
|
|
|
|
|
|
|
<h2>Where?</h2>
|
|
|
|
<p>Anyone interested should subscribe to the <a href="http://i2p.net/pipermail/i2p/">mailing list</a> and
|
2004-07-19 16:00:26 +00:00
|
|
|
join us on the irc channel #i2p (hosted concurrently on <a href="http://invisiblechat.com/">IIP</a>,
|
2004-07-06 21:38:20 +00:00
|
|
|
irc.freenode.net, irc.duck.i2p, and irc.baffled.i2p). Weekly development meetings are held there every
|
2004-07-19 16:16:05 +00:00
|
|
|
Tuesday at 9pm GMT with <a href="meetings">archives available</a>.</p>
|
2004-07-06 20:39:18 +00:00
|
|
|
|
|
|
|
<p>The current source is available through an anonymous CVS repository</p>
|
|
|
|
<pre>
|
2004-07-06 21:38:20 +00:00
|
|
|
cvs -d :pserver:anoncvs@i2p.net/cvsroot co i2p</pre>
|
2004-07-06 20:39:18 +00:00
|
|
|
<p>with the password <code>anoncvs</code>. </p>
|