With respect to Tor source code, what is the different between 1- Circuits 2- Channels 3- Connections
And how do they relate to each other? Thanks.
Tor Stack Exchange is a question and answer site for researchers, developers, and users of Tor. It only takes a minute to sign up.
Sign up to join this communityWith respect to Tor source code, what is the different between 1- Circuits 2- Channels 3- Connections
And how do they relate to each other? Thanks.
Channels usually mean client-requested TCP pipes, the very good example of channel is SocksPort options like IsolateDestAddr and IsolateClientAddr. So - Channels are related to the client requests channeled through Tor
Circuits are the node-to-node chains for whatever purpose, i.e. reaching the Clearnet via Exit node or connecting to HiddenService. Circuits are transferring onions and usually noted as "Node A" -> "Node B" -> "Node C". It's an internode communication pipes for whatever reason.
Connection means a TCP connection as it is - regardless of the place it is made-of/accepted-at : it is a client-to-socks, client-to-TransPort, node-to-directory, node-to-node etc. It's just a connection