From 9a00bd270446e5e61a1fcc332762ff5c28a3ca38 Mon Sep 17 00:00:00 2001 From: Mark Qvist Date: Wed, 13 May 2020 09:46:03 +0200 Subject: [PATCH] Updated wire format notes --- Notes/Header format | 41 ---------------------------------- Notes/Wire Format | 54 +++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 54 insertions(+), 41 deletions(-) delete mode 100644 Notes/Header format create mode 100644 Notes/Wire Format diff --git a/Notes/Header format b/Notes/Header format deleted file mode 100644 index a3b642c..0000000 --- a/Notes/Header format +++ /dev/null @@ -1,41 +0,0 @@ -header types ------------------ -type 1 00 Two byte header, one 10 byte address field -type 2 01 Two byte header, two 10 byte address fields -type 3 10 Reserved -type 4 11 Reserved for extended header format - - -propagation types ------------------ -broadcast 00 -transport 01 -relay 10 -tunnel 11 - - -destination types ------------------ -single 00 -group 01 -plain 10 -link 11 - - -packet types ------------------ -data 00 -announce 01 -link request 10 -proof 11 - - -+- Header example -+ - -01010000 00000100 [ADDR 1, 10 bytes] [ADDR 2, 10 bytes] [CONTEXT] - | | | | | - | | | | +-- Context = RESOURCE_HMU - | | | +------- DATA packet - | | +--------- SINGLE destination - | +----------- TRANSPORT propagation type - +------------- HEADER_2, two byte header, two address fields \ No newline at end of file diff --git a/Notes/Wire Format b/Notes/Wire Format new file mode 100644 index 0000000..f203cf2 --- /dev/null +++ b/Notes/Wire Format @@ -0,0 +1,54 @@ +Reticulum Wire Format + +Header Types +----------------- +type 1 00 Two byte header, one 10 byte address field +type 2 01 Two byte header, two 10 byte address fields +type 3 10 Reserved +type 4 11 Reserved for extended header format + + +Propagation Types +----------------- +broadcast 00 +transport 01 +relay 10 +tunnel 11 + + +Destination Types +----------------- +single 00 +group 01 +plain 10 +link 11 + + +Packet Types +----------------- +data 00 +announce 01 +link request 10 +proof 11 + + ++- Packet Example -+ + +01010000 00000100 [ADDR1, 10 bytes] [ADDR2, 10 bytes] [CONTEXT, 1 byte] [DATA] + | | | | | + | | | | +-- Hops = 4 + | | | +------- DATA packet + | | +--------- SINGLE destination + | +----------- TRANSPORT propagation type + +------------- HEADER_2, two byte header, two address fields + + + +- Packet Example -+ + +00000000 00000111 [ADDR1, 10 bytes] [CONTEXT, 1 byte] [DATA] + | | | | | + | | | | +-- Hops = 7 + | | | +------- DATA packet + | | +--------- SINGLE destination + | +----------- BROADCAST propagation type + +------------- HEADER_1, two byte header, one address field \ No newline at end of file