Skip to content

A Kademlia-based DHT and JSON protocol for application meshing and eventing

License

Notifications You must be signed in to change notification settings

welterde/TeleHash

 
 

Repository files navigation

TeleHash - Distributed JSON - http://telehash.org/

  • org/ telehash.org contents (all docs so far)
  • perl/ test implementations and utils in Perl
  • c/ basic test stuff in C
  • ruby/ rudimentary testing in Ruby
  • erlang/ basic announcer in erlang
  • switchd/ plans to create a utility daemon to do the dirty work
  • diag/ graffle/diagrams of protocol states

What tech does one need to implement a switch?

  • UDP
  • JSON
  • SHA1
  • XOR'ing the 160 bits of a SHA1 hash
  • handling both network events and timers (and possibly interactions with the "app" it's serving)

What does a switch need to do?

- listen for UDP packets (off a random port)
- send something to an initial seed to discover its public IP:PORT
- announce itself and try to discover other switches nearby to it
- maintain the "lines" it has active with any other switches
	- validate sender/status
	- track bytes sent/received
- answer requests for nearby switches
- accept "taps" from other switches
- match incoming signals against any active taps and forward them
- that's plenty :) 

About

A Kademlia-based DHT and JSON protocol for application meshing and eventing

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages

  • Java 64.7%
  • Perl 13.1%
  • Python 8.1%
  • JavaScript 7.8%
  • C 6.1%
  • PHP 0.1%
  • Ruby 0.1%