1

I was reading https://security.stackexchange.com/questions/36571/why-can-a-tor-exit-node-decrypt-data-but-not-the-entry-node and it got me thinking: How does a tor node knows that the next hop is a node and not the final destination?.

In the normal tcp/ip packet you have source address and destination address. How can TOR packets know that they did not reached their destination and it's not only another hop on the chain? Does the packet has any type of TCP options like the TCP/IP packet does?

Glorfindel
  • 183
  • 1
  • 3
  • 15

1 Answers1

0

If an OR is an exit node, it will receive a RELAY cell that tell it to establish a tcp connection with a server. If it is not an exit node, it will receive an EXTEND cell that tells it to extend the tor circuit to another OR. See https://gitweb.torproject.org/torspec.git/tree/tor-spec.txt for more.

v7d8dpo4
  • 305
  • 1
  • 5