Skip to content

How Two Tor Circuits Meet at a Rendezvous

Two cyclists approach one harbor lantern along separate paths.

The Tor client has found the onion service’s descriptor . It knows which relay can deliver an introduction to the service. It still needs to set up a connection that can carry a request and its reply.

The client picks a rendezvous relay and builds a circuit to it. It sends that relay a random 20-byte cookie to tag the waiting circuit. The relay confirms it has recorded the tag. Now the client needs a way to tell the service where to meet and which tag to bring. Establishing a rendezvous point

Deliver the invitation

The client builds a separate circuit to an introduction point from the descriptor. The service already has a circuit to that relay. The client sends its temporary public handshake key alongside an encrypted invitation containing the rendezvous relay’s details and the cookie. It uses the service’s public introduction-encryption key from the descriptor. The client and service use the service’s current subcredential, derived from its identity and blinded key, when they derive the keys that protect the invitation. The later handshake reply lets the client verify the service and establish session keys.

The INTRODUCE1 message carries the public key and encrypted invitation. The introduction relay forwards it as INTRODUCE2 without opening the encrypted payload. Its acknowledgement reports whether the relay forwarded the message. The service still has to check and accept it. In both figures, arrows show messages carried over circuits. Introduction protocol , Onion service handshake

The client reserves a rendezvous with a cookie, then an introduction relay forwards the encrypted invitation to the service and acknowledges forwarding to the client.

Match the circuits, then verify the service

If the service accepts, it builds its own circuit to the rendezvous relay and sends RENDEZVOUS1, carrying the same cookie and its handshake reply. The relay matches the cookie to the waiting circuit, joins the circuits and passes the service’s handshake data back to the client as RENDEZVOUS2. The cookie tells the relay which circuits go together. Joining a rendezvous

The service brings the same cookie to the rendezvous relay, which matches the circuits and forwards the handshake reply for the client to verify.

To verify the reply, the client uses the private half of its temporary key pair and the service keys from the authenticated descriptor. If the reply verifies, the client derives the same session keys the service calculated when it made the reply. Rendezvous key expansion

Which circuit carries the data?

Application data crosses the two joined circuits. The keys the endpoints just derived protect an additional virtual hop between them. The rendezvous relay forwards the cells and can observe when and how much traffic passes. It lacks the keys for that layer. The introduction relay’s job was to deliver the invitation. There is no public exit on the data path. Encrypting user data

The left link is the client’s circuit. The right link is the service’s. Data flows in both directions.

Application data passes in both directions between the client and onion service through two circuits joined at the rendezvous relay.

The client should close its separate introduction circuit after a successful acknowledgement. The service keeps its advertised introduction circuits open to receive other invitations. The number of intermediate relays in the data path can vary, including when the service uses Vanguards-Lite. Sending an introduction , Descriptor expiry , Vanguards-Lite

The rendezvous relay learned which circuits to connect. The client learned from the handshake that it had reached the service identified by the onion address.