Registered Member
|
What is the status of ktorrent's attempts to work out DHT with uTorrent? I think that's a very very important feature, as uTorrent right now does better on downed tracker torrents than KTorrent, and the only explanation I can come up with is that uTorrent being able to talk to other uTorrents is helping it out.
|
Moderator
|
We still need to look at this issue. All we need to know iwhat port µT uses (the same as for regular bittorrent traffic ?). Then we can just ping it and be done with it.
Btw, I have done some improvements to download and upload code, which seems to make things faster (The last BSG episode was downloaded faster then ever) |
Registered Member
|
|
Registered Member
|
Hmm, I hacked SVN around a bit to force a DHT ping to every client connected at the UDP port = to TCP port number, and it doesn't seem like it works any better... I tested on an isolated network with a uTorrent dummy client, and looked with a copy of wireshark... uTorrent doesn't seem to respond to DHT ping from ktorrent.
Maybe I'm just doing something blatantly wrong here, but anyway, reverting back to SVN for now |
Moderator
|
|
Registered Member
|
|
Registered Member
|
|
Registered Member
|
This is the very shamefully hackjobbed code I used to force a DHT ping to each client. Would this work in theory?
With my localhost tests, it's at least able to register one node with uTorrent ( the uTorrent client I connected to), but doesn't seem to exchange any other nodes. A packet sniffer shows that uTorrent's replies somehow have incorrect UDP checksums (?) This code snippet also doesn't work for incoming connections... port is 0 in this case, causing the UDP packet to be dropped anyway.
|
Registered Member
|
Regarding my last statement, it does indeed appear like uTorrent and KTorrent talk with that hack.
I started by putting my test box on a new IP, so that no "stray" UDP DHT packets fly into either client and "accidentally" seed DHT. Next, I created a torrent and tracker where the only members are my uTorrent and KTorrent boxes. I let the uTorrent box start first, and it seeded to 30 or so nodes (the box is UDP-firewalled). Next, I started the torrent on KTorrent, and immediately I got one node. Within 30 seconds, KTorrent was up to around 40 nodes. This convinces me that KTorrent is getting nodes from my uTorrent, and that it wasn't just an accidental discovery. |
Registered Member
|
Well, I think you're right. And according to uT devs our DHT implementations should be compatible.
The only thing left is to somehow convince uT devs to play by the rules... You've seen this thread, right? http://forum.utorrent.com/viewtopic.php?id=10655&p=1 Maybe you'll have a good argument to post there |
Moderator
|
|
Registered Member
|
I saw that thread... And to me it looks like uTorrent won't budge. Also to note, uTorrent based their DHT off BitComet, who KTorrent can't talk to either. So, we'd have to convince THEM too
I think that's a decent workaround for now until uTorrent and BitComet comes to their senses. My hack doesn't address the case of incoming connections, and also it puts DHT ticks by every peer. If it's possible to only tick DHT after getting a DHT response from a peer, that'd be better too, but those are just tiny details. Heck I'd rather show a DHT "X" by uTorrent and other misbehaving clients... |
Moderator
|
DHT is very separate from the bittorrent code, there is no feedback between the two wether or not a ping was successfull.
And there is no connection between a node in the DHT routing table and the peers of a torrent. So it would require some changes to turn on the tick in the GUI, and we are not gonna do that, as they do not fully support the standard. |
Registered Member
|
|
Registered Member
|
Yep, upon re-thinking that, I think it is a much better idea not to show DHT ticks for non-compliant clients.
BTW, is there any way in the UI to present more DHT stats? Maybe I'm just too nerdy, but DHT is very fascinating stuff to me, and I'd like to see more about what DHT activity is going on. The log viewer with all DHT messages turned on is pretty nice, but I'd still like to see more stats. |
Registered users: bartoloni, Bing [Bot], Evergrowing, Google [Bot], q.ignora, watchstar