local peer discovery

Feature requests not specific to either the Mac OS X or GTK+ versions of Transmission
grimfandango
Posts: 3
Joined: Sat Jul 12, 2008 9:59 am

local peer discovery

Post by grimfandango »

I've been using Transmission for a few months now, and I'm really missing the local peer discovery feature that was in uTorrent. I was wondering if there's any plans to implement it in Transmission?
Waldorf
Posts: 1024
Joined: Wed Dec 27, 2006 10:46 am
Location: Belgium

Re: local peer discovery

Post by Waldorf »

The official proposal: http://bittorrent.org/beps/bep_0026.html

Sounds interesting.
antikorr
Posts: 11
Joined: Mon Aug 11, 2008 2:35 pm

Re: local peer discovery

Post by antikorr »

Just wanted to request a feature, which is still not implemented in Transmission. Thought it was requested already and I was right. It's 'Local Peer Discovery'. It's called that way in uTorrent. And it's really useful at least for me, as my ISP provides me with the local retracker for the most popular torrent tracker in Russia, so I'm able to download and share files at the maximum speeds of up to 100Mb/s. And soon they can raise that number to 1Gb/s in some particular districts. And mine is among those lucky ones. So, I would LOVE to have 'LPD' function in Transmission. But since nowadays I cap the speed due to my tariff capabilities, and Transmission doesn't get when the local peer is attached, I still download and upload at the speeds which are not the maximum ones. While on uTorrent I would have been downloading or sharing like a hurricane. :)

Dear Developers, I hope 'LPD' is on your to-do list. And I wish you luck! Regards!

P.S.: This prolix post is actually just a bump for the topic. So that you won't be able to forget about the request. :))))))
Waldorf
Posts: 1024
Joined: Wed Dec 27, 2006 10:46 am
Location: Belgium

Re: local peer discovery

Post by Waldorf »

The request is on the todo list on trac ( #1394 ). It's in need of a volunteer to implement it.
antikorr
Posts: 11
Joined: Mon Aug 11, 2008 2:35 pm

Re: local peer discovery

Post by antikorr »

Waldorf wrote:The request is on the todo list on trac ( #1394 ). It's in need of a volunteer to implement it.
Oh, I see. Thanks for the reply. Hope, volunteer will be found afterall.
Bricktop
Posts: 2
Joined: Tue Jan 12, 2010 4:02 pm

Re: local peer discovery

Post by Bricktop »

Those ticket (#1934) was closed because of lack of implementation BEP 26 in other clients.

But there is some information about LPD used in utorrent and deluge here

In two words: clients should sending|receiving packets to|from multicast socket 239.192.152.143:6771.

Packet format is:

Code: Select all

BT-SEARCH * HTTP/1.1\r\n
Host: 239.192.152.143:6771\r\n
Port: <myport>\r\n
Infohash: <infohash>\r\n
\r\n
\r\n
And this is how it implemented in other bittorrent library here

If implementation of it is not very difficult, I think it could be added in todo list.
Jordan
Transmission Developer
Posts: 2312
Joined: Sat May 26, 2007 3:39 pm
Location: Titania's Room

Re: local peer discovery

Post by Jordan »

Bricktop: how are you at C? Would you be interested in doing a patch for Transmission to add this? I'd be happy to use a good patch for this...
Bricktop
Posts: 2
Joined: Tue Jan 12, 2010 4:02 pm

Re: local peer discovery

Post by Bricktop »

Sorry to say it, but I never wrote on C. I can only read C-code not fast.
Eszet
Posts: 4
Joined: Tue Mar 16, 2010 10:57 pm

Re: local peer discovery

Post by Eszet »

Jordan wrote:Bricktop: how are you at C? Would you be interested in doing a patch for Transmission to add this? I'd be happy to use a good patch for this...
I have a Local Peer Discovery patch cooking, which I'd like to contribute to Transmission.
With the help of this thread, it was not too difficult to come up with a clean and straightforward implementation of the protocol.

It is now possible for uTorrent and Transmission clients to discover local peers broadcasting on the same network - at least that's what I tested. For distributing large files among several host on the local net, this is quite a nice option to have. And with Transmission's new feature, it doesn't matter for a local machine if it's a Linux or a Windows box.

The patch is in sync with trunk. Where shall I submit it?
Longinus00
Posts: 137
Joined: Fri Aug 21, 2009 5:46 am

Re: local peer discovery

Post by Longinus00 »

Eszet wrote:
Jordan wrote:Bricktop: how are you at C? Would you be interested in doing a patch for Transmission to add this? I'd be happy to use a good patch for this...
I have a Local Peer Discovery patch cooking, which I'd like to contribute to Transmission.
With the help of this thread, it was not too difficult to come up with a clean and straightforward implementation of the protocol.

It is now possible for uTorrent and Transmission clients to discover local peers broadcasting on the same network - at least that's what I tested. For distributing large files among several host on the local net, this is quite a nice option to have. And with Transmission's new feature, it doesn't matter for a local machine if it's a Linux or a Windows box.

The patch is in sync with trunk. Where shall I submit it?
You should open a new ticket in trac and submit the patch there.
http://trac.transmissionbt.com/newticket
Jordan
Transmission Developer
Posts: 2312
Joined: Sat May 26, 2007 3:39 pm
Location: Titania's Room

Re: local peer discovery

Post by Jordan »

Nice, and the patch looks pretty good too.

If this is the type of coding you enjoy, we're looking for someone to implement uTP ... :D
Eszet
Posts: 4
Joined: Tue Mar 16, 2010 10:57 pm

Re: local peer discovery

Post by Eszet »

I had a quick look into the existing specs. Definitely a nice feature to have and an interesting project... but quite a project. I have some knowledge on networking protocols, but implementing uTP, which seems to be a moving target at that, is a different bag compared to implementing LDS.

I may be able to tell you in the next weeks whether I can channel off enough free time to come up with an implementation, if any at all. But I don't want to sound too negative :wink:
pp_mad
Posts: 2
Joined: Mon Apr 05, 2010 5:27 pm

Re: local peer discovery

Post by pp_mad »

Sorry, but... I see the post where code was updated.. is now Local Peer Discovery enabled on transmission?
Eszet
Posts: 4
Joined: Tue Mar 16, 2010 10:57 pm

Re: local peer discovery

Post by Eszet »

The code does not yet show up in the source tree, but it seems the feature might make it into one of the next releases. I just posted a revised patch on Trac, however, if you want to give Local Peer Discovery a try, you have to rebuild Transmission patched with the latest diff attached to the BTS ticket (#3060).
jch
Posts: 175
Joined: Wed May 13, 2009 12:08 am

Re: local peer discovery

Post by jch »

> we're looking for someone to implement uTP

Are we?
Post Reply