Why Is Tor Called an Onion Router?

The name “onion router” originates from the core security mechanism powering the network: layered encryption. In the Tor network—short for “The Onion Router”—data is wrapped in multiple layers of cryptographic protection, closely resembling the physical layers of an onion. As data travels through a sequence of volunteer-operated servers, each intermediate server peels away a single layer of encryption to reveal only the necessary routing instructions for the next hop, ensuring the sender, receiver, and data payload remain anonymous.

The Origin of the Name

The concept of onion routing was initially developed in the mid-1990s by mathematician Paul Syverson and computer scientists Michael G. Reed and David Goldschlag at the U.S. Naval Research Laboratory. The goal was to create a system that would allow intelligence communications to traverse the internet without revealing the identity or location of the sender. The layered cryptographic structure they designed naturally led to the name “Onion Routing,” which later became the Tor Project.

How Layered Encryption Works

When a user transmits information through the Tor network, the client software automatically selects a path consisting of three distinct nodes (relays): the Entry (Guard) node, the Middle node, and the Exit node.

Before the data leaves the user’s device, the Tor client encrypts the message three times using the public keys of all three nodes:

  1. Outer Layer: Encrypted with the Entry node’s key.
  2. Middle Layer: Encrypted with the Middle node’s key.
  3. Inner Layer: Encrypted with the Exit node’s key.

The “Peeling” Process

As the data packet moves through the Tor circuit, each node performs a specific, isolated task:

The Privacy Advantage

The onion model ensures that no single server along the route ever possesses complete information about the communication. An attacker who compromises a single node cannot trace the connection from end to end because no individual relay knows both where the traffic came from and where it is ultimately going. This layered, peel-by-peel architecture is why the technology is known as onion routing.