Re: 8-bytes transaction id
<MooPolice <at> massaroddel.de>
2007-04-05 05:58:37 GMT
> Quite often , I see some of the DHT nodes are responding with 8-bytes
> transaction ID despite the fact that queries have only 2-bytes ID.
> Apparently, all responses in question a pretty similar format : two first
> bytes are correct transaction ID, then 4 bytes of 0x000018FF and then two
> more bytes (often similar between different peers). For example:
> xxxx000018FFyyyy
> xxxx000018FFyyyy
>
> It seems to be a behavior of some "not-so-standard" implementation - does
> anyone know what client have such behavior? What is a meaning of the last 6
> bytes? Version?
>
There are 1/2/4/8 byte transaction ids in the different dht implementations, unfortunally some
of them cut off/expand the received ids. For example, my dht uses a 4byte id and some
clients respond with 1 byte (the first from of my 4 bytes) while others respond with 8 bytes
(my 4 bytes + 4 more). I don't think that there is any meaning to them. It's just that those
clients transform the ids into their own format. :(
Btw, one is supposed to return the id as it is. So if i get 1 byte i return 1 byte, if i get 8 then i
return those 8. Basically i don't care thats inside the id of other clients.
MassaRoddel
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV