Glossary termPrivacy technique

Onion Routing

Technique for anonymous communication in which traffic is wrapped in layers of encryption and relayed through several servers that each remove one layer.

Onion routing is a method of providing network anonymity by sending data so that no single intermediary knows both where it came from and where it is going. The sender selects a path through several relays and wraps the message in multiple layers of encryption, one for each relay, like the layers of an onion. Each relay removes its layer to learn only the next hop, then forwards what remains. The first relay sees the sender but not the destination, and the last sees the destination but not the sender.

The technique was developed in the mid-1990s at the US Naval Research Laboratory by Paul Syverson, Michael Reed and David Goldschlag to protect government communications. Its best-known implementation is Tor, originally short for The Onion Router, released by Roger Dingledine, Nick Mathewson and Paul Syverson in the early 2000s and maintained since 2006 by the nonprofit Tor Project. Thousands of volunteer-run relays carry Tor traffic. The network also supports onion services, sites reachable only within Tor whose server location is hidden, which news organizations use for secure tip lines.

Onion routing provides meaningful protection for journalists, activists, people under censorship and anyone seeking to limit tracking, most commonly through Tor Browser, which also standardizes browser characteristics to resist fingerprinting. It has limits: an adversary able to watch both ends of a connection may correlate traffic timing, the exit relay can see traffic that is not otherwise encrypted, and behavior such as logging into personal accounts can reveal identity. Like other privacy tools, it is also misused for crime, which fuels policy debates, while supporters stress its substantial benefits for human rights and press freedom.

Key points

  • Onion routing wraps traffic in layered encryption and passes it through several relays.
  • No single relay knows both the sender and the destination of the traffic.
  • Tor, maintained by the Tor Project, is the best-known onion routing network.
  • Traffic correlation and user behavior can still undermine anonymity in some situations.

Related entries

Technology

Tor Browser

OPSECFOSS

Privacy-focused web browser from the Tor Project that routes traffic through the Tor network and resists tracking and browser fingerprinting.

Organization

Nonprofit organization that develops the Tor anonymity network and Tor Browser to help people protect their privacy and resist censorship online.

Glossary term

The condition of acting or communicating without one's identity being known or traceable, a long-standing protection for free expression and safety.

Glossary term

Encryption

CybersecurityOPSECDevOps

The process of transforming readable data into ciphertext so that only parties holding the correct key can recover and understand it.

Technology

Tails

OPSECFOSS

Portable live operating system that runs from a USB stick, routes internet traffic through Tor and leaves no trace on the computer by default.

Glossary term

Virtual Private Network

OPSECCybersecurity

Technology that creates an encrypted tunnel between a device and another network, protecting traffic on untrusted links and connecting remote users securely.

Glossary term

Proxy Server

OPSECDevOps

Intermediary server that forwards requests between clients and other servers, used for caching, filtering, load balancing, privacy and access control.

Organization

Freedom of the Press Foundation

OPSECIdeas and Culture

American nonprofit that defends press freedom and builds digital security tools for journalists, including the SecureDrop whistleblower system.

Referenced by

Other entries that discuss or point to Onion Routing.