From c65640bf9af9f83dcd99b1eb70f86f55706090ce Mon Sep 17 00:00:00 2001 From: mfahampshire Date: Thu, 10 Oct 2024 14:17:21 +0200 Subject: [PATCH] redo acks diagram as mermaid --- .../docs/pages/network/traffic/acks.md | 31 +++++++++---------- 1 file changed, 15 insertions(+), 16 deletions(-) diff --git a/documentation/docs/pages/network/traffic/acks.md b/documentation/docs/pages/network/traffic/acks.md index 04845e4ce4..3fa1b3314e 100644 --- a/documentation/docs/pages/network/traffic/acks.md +++ b/documentation/docs/pages/network/traffic/acks.md @@ -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 ```