Tor is built to let you reach the regular internet anonymously, with hidden services as a second feature. I2P is built the other way round: it's a private network for services that live inside it, and reaching the regular internet is an afterthought. Almost every practical difference between them flows from that.

I run both, and for most people the answer to "which should I use" is Tor. But I2P is a serious project with some clever ideas, and there are jobs where it's the better fit.

Where each came from

Tor grew out of onion routing research at the US Naval Research Laboratory in the 1990s, was released as open source in the early 2000s, and has been run by the non-profit Tor Project since 2006. Our history of Tor covers it in detail.

I2P, the Invisible Internet Project, started around 2003 and has always been a volunteer-run project without a central organisation of the same size. There are two main router implementations: the original Java router and i2pd, a lighter C++ rewrite that's popular on servers and small devices.

How the networks actually differ

Circuits vs tunnels

Tor builds a single bidirectional circuit through three relays: a guard, a middle and an exit (or, for onion services, a path to a rendezvous point). Your traffic goes out and replies come back along the same path.

I2P uses unidirectional tunnels. Your outgoing traffic goes through one set of routers, and incoming traffic arrives through a different set. Each tunnel is short-lived, typically rebuilt every ten minutes. The argument is that an observer watching one direction sees only half a conversation, which makes some correlation attacks harder. It also means more moving parts.

Garlic routing

I2P calls its scheme garlic routing. Like onion routing, each hop peels off a layer of encryption. The difference is that I2P can bundle several messages (cloves) into one encrypted unit (a garlic), which can carry, for example, a message plus a delivery confirmation. In practice, people sometimes overstate how much this changes the security picture. It's a meaningful variation on onion routing, not a completely different idea.

Everyone is a router

On Tor, most users are clients only. Relays are run by a separate pool of volunteers, a few thousand machines. On I2P, by default every user also routes traffic for others. That spreads the load and makes the network more peer-to-peer, but it also means you're relaying strangers' traffic, and your router's existence is visible to other routers.

Directory: central vs distributed

Tor relies on a small set of directory authorities that vote hourly on a consensus listing all relays. That's a point of central trust, which the Tor Project accepts in exchange for strong defences against fake relays flooding the network.

I2P uses a distributed database called the netDb, maintained by "floodfill" routers. No single group controls it. The trade-off is that it's harder to keep a distributed system safe from someone joining with lots of routers, a Sybil attack, and I2P has had to put real effort into that.

Speed and usability

Tor is easier to start with by a wide margin. You download Tor Browser, click Connect, and you're browsing in under a minute. I2P needs a router that has been running a while to build up knowledge of peers; the first few minutes after a fresh install are slow, and things improve after it has been up for a while. You then point a browser at its HTTP proxy or use a bundled profile.

For browsing inside their own networks, both are slow by clearnet standards. I2P's internal performance can be decent once a router is well integrated. Tor's exit traffic to the regular web is generally faster and far more reliable than I2P's outproxies.

Side by side

TorI2P
Main purposeAnonymous access to the internet, plus onion servicesAnonymous services inside I2P
RoutingBidirectional circuits, usually 3 hopsUnidirectional tunnels, length configurable
Who relaysSeparate volunteer relaysEvery user by default
DirectoryDirectory authorities and consensusDistributed netDb with floodfill routers
Internal sites.onion.i2p (eepsites)
Reaching the regular webExit relays, widely availableA few outproxies, limited
BrowserTor Browser, heavily hardenedRegular browser via proxy, or bundled profile
User baseLarge, roughly two million dailyMuch smaller
TorrentingDiscouragedSupported inside I2P (I2PSnark and others)

The anonymity set problem

This is the factor I think matters most and gets the least attention. Anonymity comes from blending into a crowd. Tor's crowd is in the millions. I2P's is far smaller. A clever design with a small user base can be weaker in practice than a simpler design that lots of people use. Tor also has Tor Browser, which goes to great lengths to make every user's browser look alike; I2P users generally browse with an ordinary browser configured by hand, which leaves more room for fingerprinting.

Tor has also had far more academic scrutiny. That cuts both ways: more published attacks, but also more fixes.

When I2P makes sense

I2P is a good fit when you want to run or use services that live entirely inside the network and you want peer-to-peer behaviour. File sharing is the obvious one: BitTorrent over Tor is strongly discouraged because it hammers exit relays and leaks identifying information, while I2P has torrent clients built for it and keeps everything internal. Some people use I2P for internal mail, IRC and chat for the same reason.

It's also a reasonable choice if you're specifically worried about Tor's directory authorities as a point of central trust, though I'd weigh that against the smaller crowd.

When Tor makes sense

Pretty much everything else: reading the news privately, getting around censorship (Tor's bridges and pluggable transports are much more developed than anything I2P offers), visiting onion services, using SecureDrop to contact a journalist, or hosting a site that you want normal people to be able to reach with minimal setup.

If you're curious about I2P, try it alongside Tor rather than instead of it. Run i2pd or the Java router, let it settle for a while, and browse a few eepsites. You'll get a better feel for the differences in an afternoon than from any comparison table, this one included. And if you want the wider picture of other anonymity networks, see Freenet, Hyphanet and the other darknets.

#i2p #tor #garlic-routing #anonymity-networks #eepsites