Kad Explained In Detail How does it work?
#1
Posted 31 March 2006 - 11:47 AM
KAD is open and Buddy: connected but I don't seem to be getting more uploads because of it.
Occasionally a name appears under "current searches". Is it a user uploading or downloading like in the "transfers" window? If so, what is he uploading or downloading?
Is there a detailed guide that explains all this? I can't find one, only general stuff telling you how to connect to KAD.
Thanks
Pedro
#2
Posted 31 March 2006 - 12:11 PM
kad is an alternative to ed2k servers. (have you ever heard about fake servers? or razorback being closed?)
kad is a serverless network; this means that each connected client acts a bit like a small server.
while there are good ed2k servers, the main advantage of using kad is that the whole network remains much more stable whenever a large server is down or closed.
if all good servers were to being closed, and only fake servers were remaining, we could still go on with kad only
what you see in the kad window is not related to your current downloads or uploads. It's the files or keywords being indexed or searched.
Could be considered as the male counterpart to zap mama. It's really worth a try, even if you hate hip-hop...
Jamendo tags = beatbox electro ethnique experimental hiphop lounge percussions ragga rap reggae scat soft triphop world
--------------------------------------------------------
Pris pour des vaches à lait par les industries du disque... Maintenant boycottons-les!!!
#3
Posted 31 March 2006 - 12:19 PM
Or do the KAD transfers happen in another window that I'm not aware of?
When I do a search am I searching both networks simultaneously or do I have to make a search specifically for KAD?
Thanks
Pedro
#4
Posted 31 March 2006 - 12:19 PM
You cannot tune much about kad: just make sure your udp port is open and kad is fully functional. You find sources for your files with it and publishes the filesnames/hashes of your files. Don't expect miracles because of kad.
Trouble connecting to a server? Use kad and /or refresh your server list
Strange search results? Check for fake servers! Or download morph, enable obfuscated server required, and far less fake server seen.
Looking for morphXT translators. If you want to translate the morph strings please come here (you only need to be able to write, no coding required. ) Covered now: cn,pt(br),it,es_t,fr.,pl Update needed:de,nl
-Morph FAQ [English wiki]--Het grote emule topic deel 13 [Nederlands]
if you want to send a message i will tell you to open op a topic in the forum. Other forum lurkers might be helped as well.
#5
Posted 31 March 2006 - 12:37 PM
V9RT5, on Mar 31 2006, 01:19 PM, said:
Where you see KAD or ED2K in the transfer window, it means that source was found via KAD or the server. Once you have a source, it is aware of you, so you will not lose a KAD source if you disconnect KAD. If you didn't connect to KAD at all it is still possible to acquire sources who are connected to KAD but not the ed2k servers via source exchange. (although this wouldn't happen if they were the only source for a file you wanted from them and they hadn't been asked for it by any of your known clients)
#7
Posted 28 April 2006 - 11:40 AM
this is is only thread I could find that's trying to explain what goes on in KAD.
though I wouldn't call it "Explained in Detail"... yet.
Is there a place where the parameters we see in the KAD window are explained ?
What is the Contact Type? what does the binary in "Distance" mean?
come on guys... let's get to the bottom of it!
10x in advance.
#8
Posted 29 April 2006 - 04:48 AM
In short:
The objective of Kad, is to arrive at this network architecture, of direct connection, in which, each PC is simultaneously "client" and "server".
For this, each PC is transformed into a "node" of the network, and communicates with its "neighbours" to have access to, all the information of the network.
For its operation, Kad needs: To learn the topology of the network on which the client connects itself (who uses Kad already). To look for the information on all the nodes, (who has the file that I want). To receive an answer of a node that responds to the criteria (I found a source). The reality is a few more complex, obviously.
Kad files.
The contact established with their Kad node, it's saved in the file nodes.dat.
This file evolve regularly when Kad carries out new searches, the new nodes it incorporates, and eliminate all the inactive nodes (PC disconnected of the network, IP changed etc.).
Taken care of... In the present versions, while Kad works, this file is updated in the memory of the PC. Single it is updated in the disc, when Kad is closed.
Is very important then to close Kad correctly; the file is not updated if Windows it's blocked.
The file nodes.dat has therefore the identifications of active nodes. If it lets Kad update it (long disconnections etc.), the kept nodes are deactivated little by little, and the file becomes useless.
Kad also uses two tables of index for the identifications of the contacted nodes, and the archives available in these nodes.
These tables are managed in the memory and single they correctly keep in disc, when stopping itself the mule, in two archives: s_index.dat and, k_index.dat.
The ports used by Kad to.
For her transactions, the mule uses a port TCP and a port UDP.
Port TCP is used for the connections as other clients and to the interchange of sources between clients. It is the test on this port that allows the attribution of ID.
By port UDP, they pass other transactions, as the management of the waiting queues, the controls of "ping" and the searches of sources.
The present versions of Kad voluntarily are limited in their searches of nodes, not to saturate the network.
The users who have connections to Internet of low speed (modem 56k, ISDN 64/64 etc.) they must use a single network and in this case, ed2k is preferable.
Connecting kad.
First, it is necessary to start emule in the network ed2k , using the classic way, selecting a server.
It's enough then to click in the Kad option Boot strap "from known clients".
Emule can then initiate with the contacts of the file nodes.dat, if it contains active nodes, or use one of the Kad clients with highID, found in the network ed2k, to enter the network Kad. This last solution can be slower.
The other solutions.
In order to be safe to have a file nodes.dat, for beginning with active nodes.
A recent file nodes.dat can be unloaded, from http://www.emule-inside.net/nodes.datEmule-Inside, http://download.over...00.de/nodes.dat Or from here.
The downloaded file must be saved in the folder... \emule\config.
can be then started using the function, Boot strap>from known clients.
System used in the principles of the Kad mule - To enter "Traffic tab", to make a double "click" on one of the files in unloading, to look for a client who has a version of later Kad 0.41xxx or, to click a right click on this client, and click again over Boot strap.
Another system - Also it can be to try with function "IP or address" - "Boot strap" - using the standard 195.236.75.57 IP , and indicating port UDP 5674.
Contacts(nodes)
nodes with which we have established a relationship, (number of contacts).
ID = Kad ID of the contact, (node) .
Type & Contacts: Amount on failed attempts of contact.
Green colour (0), not contact tried with this node has failed, the relation stays.
the possibility that this node, knows sources that his client looks for, still exists. (or vice versa).
Yellow colour (0) will be an attempt of connection to know, if this contact is still present or no, to update the indexed data (identification, name of the archives etc.) .
Yellow colour (1) Yes. The connection was tried successfully (the update can be done).
Yellow colour (1) not. control tried and was a failure in the attempt of connection.
Red colour (2) was a second attempt of connection to this node and also node failed... after awhile, this node will be delete of your list of contacts.
Distance: Approximated distance, expressed in bits, between kad and contact (node).
current searches (of nodes, archives, sources...)
Number = number assigned to the search (Internal use of the program).
Key = Kad ID of contact (node)
Type = type search.
Looking for new contacts (number of clients that give back a list of contacts)
store keyword = indexing a shared file so that it can be found by the others, with the option search (key of the file that is being stored: clients who have located that file).
• To keep file, indexing shared file so that his node, can be located like source of the same one, (clients that has located that file),
• Looking for keyword for download. (results of the search),
• Looking for sources for archives that it has in unloading (results of the search).
• Name = The name from the file to which the search talks about.
• Number of clients who give back a list of contacts
In its present versions, Kad limits its searches of nodes. Otherwise, therefore the searches of new nodes, would be permanent, and occupy all the resources of the mule. When the source number found, by both networks ed2k and Kad is sufficient, the search of new sources in the network Kad, will be suspended so that the excessive traffic does not saturate the network. Continuous after of awhile.
At the moment, 700 nodes are due to find approximately about.
To the launching, Kad controls the file ipfilter.dat to eliminate the redundancies, the superposition’s of IP ranks, and adjacent ranks. The table in memory is thus less voluminous, and ipfilter is more effective.
The management of the table index, and the file nodes.dat, becomes in the memory of the PC.
With Windows, if the PC has few memory available, it can be that the mule starts.
But if the emule requires too much memory in any moment, and as Windows does not manage it correctly, the mule crash. And sometimes, Windows crash too.
Windows XP SP2 requires more resources of CPU, and more memory than SP1. Taken care of.
PTH.
Edit1: + Info.
bye
This post has been edited by ElChele: 29 April 2006 - 04:53 AM
#9
Posted 29 April 2006 - 09:53 AM
Sorry but y can't tranlste the above expression.
Cheers
Reglas del foro Reglas de cortesía
Configuración de varios cortafuegos Conseguir una Lista de servidores limpia y fiable
La torpeza en la persona grandes males proporciona
Siervo de la gleba de la extinta Republica de Kjersti
#10
Posted 30 April 2006 - 06:40 AM
Just signed you in for the "supporter-of-the-month" contest
#11
Posted 30 April 2006 - 02:13 PM
in anyway, thanks to both. And thanks to all those that teach to me, with their topics/posting/tutorials. (like the master Tchon, in this case).
bye
#12
Posted 30 April 2006 - 05:10 PM
new in v0.47a (probably the new kad2.0 mentioned in the changelog )
"Normal" (highID) kad connection process:
step 0. Red contacts
-> not connected
step 1. Orange contacts
-> connection attempts
-> kad status = firewalled
step 2. Yellow contacts
-> successful connections
-> kad status = open
up to this point, the whole process should take only a few seconds, and you can start using kad
(but on the first kad connection, or if your nodes.dat, key_index.dat etc. are too old, you may not get many results yet, I think)
now, there are two extra steps, which can be take more time (up to a few hours), and I don't know really what they mean; just some guesses:
step 3. Blue contacts
On my PC, this happens after ~1 hour, and I have noticed that this coincides approximately with the time needed to publish my whole shared files list on kad (-> "shared ed2k|kad" column in the shared files tab)
Maybe there's a relationship?
step4. Green contacts
1 or 2 extra hours here
I have no clue about this one, but I believe it shows the time needed for a new kad node to be fully integrated in the network
Could be considered as the male counterpart to zap mama. It's really worth a try, even if you hate hip-hop...
Jamendo tags = beatbox electro ethnique experimental hiphop lounge percussions ragga rap reggae scat soft triphop world
--------------------------------------------------------
Pris pour des vaches à lait par les industries du disque... Maintenant boycottons-les!!!
#13
Posted 01 May 2006 - 02:01 PM
Process
1- Kad connect from known clients, contacts (230 approximately) ==> nodes included into nodes.dat file.
2- Node lookup process, start. (Type tab).
3- A node be found ===> Store Keyword (Type tab). A number search, is assigned to him, in the Number tab.
4- A new node it's added to the Contacts tab. The attempt for connect to, start. There are 4 attempt for get it.
The Node colours, depend of the connection attemps, as follow:
Green Colour = Connected node, (explained above)
Blue colour = 1º attempt. (failed)
Yellow colour = 2º attempt. (failed)
Orange colour = 3º attempt . (failed)
Red colour = 4º and last attempt, for a few time. (the reazon for this behaviour, explained above)
be continue.....
#14
Posted 01 May 2006 - 02:15 PM
Green colour node.
Here begin the realationship between your client and the source, and the interchange process start.
The packets are sent, and responses received, or not.
bye
#15
Posted 01 May 2006 - 03:35 PM
But like said before: after succesful connection and not firewalled state you do not have much influence on it.
Trouble connecting to a server? Use kad and /or refresh your server list
Strange search results? Check for fake servers! Or download morph, enable obfuscated server required, and far less fake server seen.
Looking for morphXT translators. If you want to translate the morph strings please come here (you only need to be able to write, no coding required. ) Covered now: cn,pt(br),it,es_t,fr.,pl Update needed:de,nl
-Morph FAQ [English wiki]--Het grote emule topic deel 13 [Nederlands]
if you want to send a message i will tell you to open op a topic in the forum. Other forum lurkers might be helped as well.
#16
Posted 01 May 2006 - 09:15 PM
leuk_he said:
In my case, they are orange colour.
bye
#17
Posted 04 May 2006 - 04:59 PM
#18
Posted 07 May 2006 - 02:29 AM
himmelroman, on Apr 28 2006, 09:40 PM, said:
this is is only thread I could find that's trying to explain what goes on in KAD.
though I wouldn't call it "Explained in Detail"... yet.
Is there a place where the parameters we see in the KAD window are explained ?
What is the Contact Type? what does the binary in "Distance" mean?
come on guys... let's get to the bottom of it!
10x in advance.
ed2k://|file|Kademlia.pdf|81047|B96817E90CDD4CCC4CD56E5FDC3899E7|/
hi, thanks for this human readable thread people!
... i have no buddies - they're always firewalled!
#19
Posted 07 May 2006 - 07:45 AM
#20
Posted 07 May 2006 - 11:10 AM