1
0
mirror of https://github.com/ShadowKatStudios/OC-Minitel.git synced 2024-11-23 10:38:05 +11:00

Specify packet ID cache behavior in the standard. Closes #23

This commit is contained in:
Izaya 2019-04-03 17:49:41 +11:00
parent 81a35c5e8a
commit e579f1f567

View File

@ -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.