aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: Kademlia question  (Read 4962 times)

Filya

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 20
Kademlia question
« on: January 08, 2006, 12:31:05 PM »

Hello,

it happened so, I can open only one port number, for both UDP and TCP. Kademlia needs a shifted UDP port, so my question is: can this shift be zero, or it must be nonzero by any means?
For me, it does not make sense, that these ports must have different numbers, since one is TCP and other is UDP. Maybe its some workaround for buggy TCP/IP implementations or even more buggy clients?
Logged

ken

  • Hero Member
  • *****
  • Karma: 4
  • Offline Offline
  • Posts: 825
Re: Kademlia question
« Reply #1 on: January 08, 2006, 11:04:39 PM »

There is one UDP port that must be shifted (TCP + 3), but that's for communicating with servers.  Kad uses the client UDP port, which you can configure.  There's no reason (that I'm aware of) that this can't be the same port number as the TCP port.  The only thing it can't be is the same as the other UDP port.
Logged

Filya

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 20
Re: Kademlia question
« Reply #2 on: January 09, 2006, 10:16:53 AM »

Thank you, so I need to patch source in some place, or it can be dome via configure script or some defines?
Logged

ken

  • Hero Member
  • *****
  • Karma: 4
  • Offline Offline
  • Posts: 825
Re: Kademlia question
« Reply #3 on: January 09, 2006, 09:20:07 PM »

Quote
Originally posted by Filya
Thank you, so I need to patch source in some place, or it can be dome via configure script or some defines?

What are you talking about?  There's no need to patch anything or compile it differently.  Just change the UDP port in the preferences.  Kademlia just uses the same client UDP port as used for extended eMule.
Logged

Filya

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 20
Re: Kademlia question
« Reply #4 on: January 09, 2006, 09:32:04 PM »

Quote
Originally posted by ken
Quote
Originally posted by Filya
Thank you, so I need to patch source in some place, or it can be dome via configure script or some defines?

What are you talking about?  There's no need to patch anything or compile it differently.  Just change the UDP port in the preferences.  Kademlia just uses the same client UDP port as used for extended eMule.
Well, then Kademlia uses TWO ports? When I set a TCP port, preferences widget shows automatically added +3 number and says it is Kademlia UDP. Am I totally wrong?
Logged

Kry

  • Ex-developer
  • Retired admin
  • Hero Member
  • *****
  • Karma: -665
  • Offline Offline
  • Posts: 5795
Re: Kademlia question
« Reply #5 on: January 09, 2006, 10:07:58 PM »

you are wrong, it never says is Kademlia UDP.
Logged

ken

  • Hero Member
  • *****
  • Karma: 4
  • Offline Offline
  • Posts: 825
Re: Kademlia question
« Reply #6 on: January 10, 2006, 04:00:13 AM »

Any chance there's a translation error?
Logged

Kry

  • Ex-developer
  • Retired admin
  • Hero Member
  • *****
  • Karma: -665
  • Offline Offline
  • Posts: 5795
Re: Kademlia question
« Reply #7 on: January 10, 2006, 07:16:26 AM »

Well is called "UDP port for extended server requests (TCP+3)" here, so it would be a hell of a translation error.
Logged

Filya

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 20
Re: Kademlia question
« Reply #8 on: January 10, 2006, 12:24:58 PM »

Sorry, I am an idiot. I just saw it wrong, and after I had not chance to look at that widget again.
However, Kad does not work, despite the port is set to open one...
Logged

ken

  • Hero Member
  • *****
  • Karma: 4
  • Offline Offline
  • Posts: 825
Re: Kademlia question
« Reply #9 on: January 11, 2006, 03:29:58 AM »

Explain "Kad does not work" in more detail.  What specifically is happening or not happening?  What log messages are displayed?  What things have you tried to get it to work?
Logged

Filya

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 20
Re: Kademlia question
« Reply #10 on: January 11, 2006, 01:25:59 PM »

Quote
Originally posted by ken
Explain "Kad does not work" in more detail.  What specifically is happening or not happening?  What log messages are displayed?  What things have you tried to get it to work?
Firstly, I just started aMule without any additions to config dir, and after several hours of running pushed "Bootstrap from known clients" button. 10 Kad contacts appeared in statusline, and Kademlia status was "Running" and "Disconnected".  Then, in about 20-30 minutes Kademlia status became "Off".
Then, I downloaded nodes.dat file and put it to aMule dir. Closed amule and started it again. Then pushed same button, and statusline displayed 374 kontacts. Graph of node-number was a straight line at level 10. A peak appeared there, and it was seen how number of contacts decays to 10 (possibly, it just cannot be lower) and Kademlia status became "Off" in about two hours. I have checked that UDP port is really open, and I surely have HighID.
Logged