diff options
Diffstat (limited to 'spec/tor-spec/routing-relay-cells.md')
-rw-r--r-- | spec/tor-spec/routing-relay-cells.md | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/spec/tor-spec/routing-relay-cells.md b/spec/tor-spec/routing-relay-cells.md index 95888f7..e2c784c 100644 --- a/spec/tor-spec/routing-relay-cells.md +++ b/spec/tor-spec/routing-relay-cells.md @@ -1,7 +1,9 @@ <a id="tor-spec.txt-5.5"></a> + ## Routing relay cells <a id="tor-spec.txt-5.5.1"></a> + ### Circuit ID Checks When a node wants to send a RELAY or RELAY_EARLY cell, it checks the cell's @@ -13,12 +15,14 @@ circID and determines whether it has a corresponding circuit along that connection. If not, the node drops the cell. <a id="tor-spec.txt-5.5.2"></a> + ### Forward Direction The forward direction is the direction that CREATE/CREATE2 cells are sent. <a id="tor-spec.txt-5.5.2.1"></a> + #### Routing from the Origin When a relay cell is sent from an OP, the OP encrypts the payload @@ -32,6 +36,7 @@ with the stream cipher as follows: ``` <a id="tor-spec.txt-5.5.2.2"></a> + #### Relaying Forward at Onion Routers When a forward relay cell is received by an OR, it decrypts the payload @@ -53,12 +58,14 @@ sends a DESTROY cell to tear down the circuit. For more information, see section 6 below. <a id="tor-spec.txt-5.5.3"></a> + ### Backward Direction The backward direction is the opposite direction from CREATE/CREATE2 cells. <a id="tor-spec.txt-5.5.3.1"></a> + #### Relaying Backward at Onion Routers When a backward relay cell is received by an OR, it encrypts the payload @@ -70,6 +77,7 @@ with the stream cipher, as follows: ``` <a id="tor-spec.txt-5.5.3"></a> + ### Routing to the Origin When a relay cell arrives at an OP, the OP decrypts the payload @@ -83,4 +91,3 @@ with the stream cipher as follows: The sending node is I. Stop and process the payload. ``` - |