From e579f1f567856bf9bb41b9e546172b7306889630 Mon Sep 17 00:00:00 2001 From: XeonSquared Date: Wed, 3 Apr 2019 17:49:41 +1100 Subject: [PATCH] Specify packet ID cache behavior in the standard. Closes #23 --- protocol-3.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/protocol-3.md b/protocol-3.md index 2f674c5..002d19c 100644 --- a/protocol-3.md +++ b/protocol-3.md @@ -15,6 +15,10 @@ Upon a node receiving a message addressed to itself, it should: 5. Optional: If the packet is addressed to a different node, repeat the packet, preferably respecting the address cache If the packet is, for some reason invalid, simply drop the packet. + +### Packet ID caching +In order to prevent unnecessary network traffic, each node must keep a packet ID cache. This is used to decide whether to ignore received packets. A node should drop items from this cache, in order to not waste memory, though the minimum recommended time to keep items is 30 seconds. + ### Optional: Meshing If a message is not addressed to a node, and the node has not seen the packet ID before, the node should repeat it. Whether via the address in the cache or by broadcast, it should be passed on, and the hardware address added to the cache as the sender.