Commit graph

6 commits

Author SHA1 Message Date
devonh
218c39e0cd
Add broadcast & hop limiting functionality (#65)
* Add optional hop limiting to overlay traffic

* Cleanup commented code

* Add optional broadcast functionality for wakeup messages

* Update simulator to better handle changing network connections.

* Update wireshark plugin

* Fix frame tests

* Fix incorrect broadcast signature verification

* Move broadcast consts to consts file

* Only send broadcasts on the best connection to a peer

* Send broadcast immediately to newly added peer

* Fix broadcast frame marshalling

* Move keepalive timeouts to consts file

* Hook broadcasts into the sim logic

* Add broadcast info to sim ui

* Fix sim broadcast timestamps

* Add proper timestamps to broadcast events

* Drain timer when disabling broadcasts

* Update licensing comments for new broadcast files

* Remove unnecessary logging

* Filter broadcasts based on time since last seen broadcast

* Fix traffic forwarding comment

* Only send broadcasts to peer using best connection

* Ensure bootstraps have same root key and sequence

Co-authored-by: Neil Alexander <neilalexander@users.noreply.github.com>
2022-11-17 21:45:03 +00:00
devonh
3adc85477d
Fix wireshark plugin for new hybrid routing (#71)
* Fix wireshark plugin for new hybrid routing

* Reorder forwarding frame types
2022-10-07 14:54:26 +00:00
Neil Alexander
1ce778fcde
Soft-SNEK (#43)
* Initial soft-state testing

* Fix `pineconeip`

* Try raising the intervals a bit

* Tighter expiry

* Tweaks

* Try to speed up convergence but reduce idle noise

* More tweaks

* Handle disconnections on destination ports, tweak next-hops

* All traffic is either bootstrap or not, more tweaking

* Protocol calming, loop detection, bootstrap signatures

* Tidy up sim

* Fix unit test

* Don't drop pong responses as looping traffic

* Remove unused snake path id

* Remove unused variable from nextHopsSNEK

* Unassign setup acks capability from soft state capabilites

* Cleanup comments to reflect new softstate logic

* Remove unused candidate variable from state

* Update sim and events to reflect softstate changes

* Update wireshark dissector to match softstate frames

* Add unit test for snake bootstrap

* Fix incorrect comment about bootstrap forwarding conditions

* Add `queue` interface

* Initial docs update for softstate algorithm

* Softstate doc updates

* Fix logic for selecting lowest latency links

* Update docs with watermark information (#52)

* Update docs with watermark information

* Further clarifications to watermark docs

* Fix `pinecone.lua`

Co-authored-by: Devon Hudson <devonhudson@librem.one>
2022-07-08 14:52:11 +01:00
devonh
c05f24e907
Remove ping frames from wireshark dissector (#48) 2022-06-08 16:43:31 +00:00
devonh
76d7c8b1a8
Remove duplicate coordinate info from frames (#39)
* Remove duplicate coordinate info from frames

* Update unit tests to match new frame layouts

* Remove frame ID offset for ping frames

* Update wireshark dissector to match new frame layouts
2022-04-26 15:27:01 +00:00
devonh
7a39d14c6c
Add wireshark dissector for pinecone frames (#38)
* Add wireshark dissector for pinecone frames

* Add copyright notice

Co-authored-by: Neil Alexander <neilalexander@users.noreply.github.com>
2022-03-31 15:44:49 +00:00