How To Initialize A New Node When It Fistly Adds To Kad?
#1
Posted 19 July 2009 - 03:55 AM
How does a new node join the KAD? Whether was it initialized by sending a KADEMLIA_BOOTSTRAP_REQUEST to a remote node specified by the user or connecting the nodes prestored in local file NODE.DAT? Thanks in advance.
Sincerely
Patric
#2
Posted 19 July 2009 - 08:23 AM
patricxu, on Jul 19 2009, 05:55 AM, said:
How does a new node join the KAD? Whether was it initialized by sending a KADEMLIA_BOOTSTRAP_REQUEST to a remote node specified by the user or connecting the nodes prestored in local file NODE.DAT? Thanks in advance.
Sincerely
Patric
May I ask why you are asking these questions? What are you up to? Working on a new Chinese client?
patricxu, on Feb 28 2009, 08:09 AM, said:
Quote
patricxu, on Jun 24 2009, 04:46 PM, said:
patricxu, on Jul 16 2009, 04:23 AM, said:
#3
Posted 19 July 2009 - 10:12 AM
#4
#5
Posted 20 July 2009 - 07:55 PM
patricxu, on Jul 20 2009, 08:30 AM, said:
Interesting! Sounds like a lot of hard work involved there though.
You know since yesterday I found out about your blog site, where I can find things like "random graphs" (origin), "kernel32.dll" (google translation), "DDOS" (origin) and a lot of references to "A performance evaluation of the Kad-protocol by René Brunner from Sinsheim". I would find it quite interesting if you could elaborate a bit more about how you intend to put this together for use in the experiment. Especially the ddos part...
fox88, on Jul 19 2009, 11:12 AM, said:
Perhaps not so strange. It's many ID's involved; user hash, clientID - KadID - Hash(Kad), ID's calculated from your IP or recieved from server, Low and High. I bet I missed some.
This post has been edited by Nissenice: 20 July 2009 - 08:21 PM
#6
Posted 22 July 2009 - 02:20 AM
Nissenice, on Jul 20 2009, 07:55 PM, said:
patricxu, on Jul 20 2009, 08:30 AM, said:
Interesting! Sounds like a lot of hard work involved there though.
You know since yesterday I found out about your blog site, where I can find things like "random graphs" (origin), "kernel32.dll" (google translation), "DDOS" (origin) and a lot of references to "A performance evaluation of the Kad-protocol by René Brunner from Sinsheim". I would find it quite interesting if you could elaborate a bit more about how you intend to put this together for use in the experiment. Especially the ddos part...
Welcom to my blog. I am going to unveil the implication between user's ID which was generated by IP in KAD and user's Hash. I suspect user's hash=MD4(user's ID). Is this correct?
#7
Posted 22 July 2009 - 09:08 AM
This post has been edited by Stulle: 22 July 2009 - 09:08 AM
[Imagine there was a sarcasm meter right here!]
No, there will not be a new version of my mods. No, I do not want your PM. No, I am certain, use the board and quit sending PMs. No, I am not kidding, there will not be a new version of my mods just because of YOU asking for it!
#8
Posted 22 July 2009 - 02:41 PM
Stulle, on Jul 22 2009, 10:08 AM, said:
Thanks. I found it just as what you said. Bust could you explain more broadly what is iirc. Does the following code generate the so-called user hash?
void CPrefs::Init(LPCTSTR szFilename)
{
m_uClientID.SetValueRandom();
...
}
CUInt128& CUInt128::SetValueRandom()
{
AutoSeededRandomPool rng;
byte byRandomBytes[16];
rng.GenerateBlock(byRandomBytes, 16);
SetValueBE( byRandomBytes );
return *this;
}
#9
Posted 22 July 2009 - 03:23 PM
anyway, the functions are pretty self-explaining. they create random values.
i am not firm with any of the KAD code and conception because i just never bothered much about it. anyway, if you truly want to write something indepth about the code you should probably improve your c++ skill so you can figure out what is done reading the code. i doubt anybody will give you a full documentation if there exists none because writing will take plenty of time.
[Imagine there was a sarcasm meter right here!]
No, there will not be a new version of my mods. No, I do not want your PM. No, I am certain, use the board and quit sending PMs. No, I am not kidding, there will not be a new version of my mods just because of YOU asking for it!
#10
Posted 23 July 2009 - 02:57 AM
Stulle, on Jul 22 2009, 04:23 PM, said:
anyway, the functions are pretty self-explaining. they create random values.
i am not firm with any of the KAD code and conception because i just never bothered much about it. anyway, if you truly want to write something indepth about the code you should probably improve your c++ skill so you can figure out what is done reading the code. i doubt anybody will give you a full documentation if there exists none because writing will take plenty of time.
Yes, you are right. Thank you anyway.