News for hackers. Stuff that matters.
Re:Telehash: JSON+UDP+DHT = Freedom by scrame on Tuesday January 04, 2011 @08:57PM (#2069473)
UDP does not guarantee connections. I wonder why it was done with this instead of a reliable multicast protocol (0mq comes to mind).
Re:Telehash: JSON+UDP+DHT = Freedom by brandon on Wednesday January 05, 2011 @01:10AM (#2070123)
ØMQ came to mind when I read the doc, too, but:

* UDP could be useful for hole-punching firewalls * In most networks, multicast traffic will be filtered at the WAN boundary * The nodes in most big DHTs aren't reliable anyway

The eventing would be nice, though... and the notion of an internet-wide ØMQ network is neat.

Re:Telehash: JSON+UDP+DHT = Freedom by dedward on Wednesday January 05, 2011 @11:55AM (#2071510)
0mq is a library to make network programming easier, not a new protocol itself.

UDP is being used because this is based on setting up a DHT which requires small messages that may or may not get through by nature to begin with - not bulk data transfer - presumably you deal with that at higher layers.

Re:Telehash: JSON+UDP+DHT = Freedom by scrame on Wednesday January 05, 2011 @04:58PM (#2072691)
0mq is an extension of the standard socket library and does support a reliable multicast protocol. It adds to sockets, its not just an api to make working with the existing standards easier.

http://manpages.ubuntu.com/manpages/maverick/man7/zmq_pgm.7....

Though, it looks like it might need more permissions than just using standard sockets.

Re:Telehash: JSON+UDP+DHT = Freedom by dochtman on Wednesday January 05, 2011 @03:37AM (#2070378)
Seems like an interesting idea. I also wonder why the max contents of a JSON object is 1400 bytes, that seems kind of limiting. UDP can do 65,507b of content...
Re:Telehash: JSON+UDP+DHT = Freedom by agazso on Wednesday January 05, 2011 @06:39AM (#2070683)
The bigger an UDP packet the less the probability it arrives. 1400 is probably chosen because it is less than the usual MTU of ethernet which is 1500.