redo acks diagram as mermaid
This commit is contained in:
@@ -3,20 +3,19 @@ Whenever a hop is completed, the receiving node will send back an acknowledgemen
|
||||
|
||||
Packet retransmission means that if a client sends 100 packets to a gateway, but only receives an acknowledgement ('ack') for 95 of them, it will resend those 5 packets to the gateway again, to make sure that all packets are received. All nodes in the mixnet support packet retransmission.
|
||||
|
||||
```
|
||||
|
||||
+-------------------+ +-------------------+
|
||||
| +---------------+ | | | Packet lost in transmission - no ack recieved!
|
||||
| | Nym client | | | |-----------------?
|
||||
| +-------^-------+ |Send 100 packets | |
|
||||
| | |----------------->| Gateway your | Resend packet +------------------+ etc...
|
||||
| | | | client is |------------------>| |------------------>
|
||||
| | | | connected to | | Mix node layer 1 |
|
||||
| v | Send 100 acks | |<------------------| |
|
||||
| +---------------+ |<-----------------| | Send ack +------------------+
|
||||
| | Your app code | | | |
|
||||
| +---------------+ | | |
|
||||
+-------------------+ +-------------------+
|
||||
Your Local Machine
|
||||
|
||||
```mermaid
|
||||
---
|
||||
config:
|
||||
theme: dark
|
||||
layout: elk
|
||||
---
|
||||
sequenceDiagram
|
||||
Nym Client->>Gateway: N Sphinx Packets
|
||||
Gateway-->>Nym Client: N Acks
|
||||
Gateway->>Mix Node 1: Packets 1..95
|
||||
Mix Node 1-->>Gateway: Acks 1..95
|
||||
Gateway-xMix Node 1: Packets 96..100 Dropped - No Acks
|
||||
Gateway->>Mix Node 1: Retransmit Dropped Packets after timeout
|
||||
Mix Node 1-->>Gateway: Acks 96..100
|
||||
Mix Node 1->>Mix Node 2: etc
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user