Discussion:
[libtorrent] DHT reannounce logic.
Angel Leon
2016-05-10 19:16:31 UTC
Permalink
Is there a setting in libtorrent for the re-announcement of torrents, or is
this up to the clients?

I often find that DHT only torrents can't be found unless I pause/resume my
transfers, therefore I wonder if there's already a setting I can use, or if
I should have logic in my client to do the re-announcement.

Would a re-announcement interval of 1-minute would be too much on the DHT
network if you have several million active clients a day, each seeding 10s
of torrents?
Arvid Norberg
2016-05-11 00:32:28 UTC
Permalink
Post by Angel Leon
Is there a setting in libtorrent for the re-announcement of torrents, or is
this up to the clients?
yes, there's dht_announce_interval [1]
Post by Angel Leon
I often find that DHT only torrents can't be found unless I pause/resume my
transfers, therefore I wonder if there's already a setting I can use, or if
I should have logic in my client to do the re-announcement.
In my experience this is most likely caused by adding torrents and
announcing them before the DHT has completed the bootstrap. Another
approach may be to force-reannounce torrents to the DHT once the
dht_bootstrap alerts is posted.
Post by Angel Leon
Would a re-announcement interval of 1-minute would be too much on the DHT
network if you have several million active clients a day, each seeding 10s
of torrents?
I think 1 minute would be far to frequent. If anything, I think it would
make more sense to increase the announce interval, to increase the
capacity. Clearly it may still make sense to have some heuristics around
announce intervals based on whether a torrent has any peers at all, maybe
starting low and doubling the interval each time until reaching the setting
or there are peers. Also, keep in mind that completing an announce may take
more than a minute, so at small intervals, it's important to start the
count-down when the previous announce *completes*, to not have them overlap
or be back-to-back.
--
Arvid Norberg

[1] http://libtorrent.org/reference-Settings.html#dht_announce_interval
Angel Leon
2016-05-11 01:53:28 UTC
Permalink
Thank you so much Arvid.

Sent from my iPad
Post by Arvid Norberg
Post by Angel Leon
Is there a setting in libtorrent for the re-announcement of torrents, or is
this up to the clients?
yes, there's dht_announce_interval [1]
Post by Angel Leon
I often find that DHT only torrents can't be found unless I pause/resume my
transfers, therefore I wonder if there's already a setting I can use, or if
I should have logic in my client to do the re-announcement.
In my experience this is most likely caused by adding torrents and
announcing them before the DHT has completed the bootstrap. Another
approach may be to force-reannounce torrents to the DHT once the
dht_bootstrap alerts is posted.
Post by Angel Leon
Would a re-announcement interval of 1-minute would be too much on the DHT
network if you have several million active clients a day, each seeding 10s
of torrents?
I think 1 minute would be far to frequent. If anything, I think it would
make more sense to increase the announce interval, to increase the
capacity. Clearly it may still make sense to have some heuristics around
announce intervals based on whether a torrent has any peers at all, maybe
starting low and doubling the interval each time until reaching the setting
or there are peers. Also, keep in mind that completing an announce may take
more than a minute, so at small intervals, it's important to start the
count-down when the previous announce *completes*, to not have them overlap
or be back-to-back.
--
Arvid Norberg
[1] http://libtorrent.org/reference-Settings.html#dht_announce_interval
------------------------------------------------------------------------------
Mobile security can be enabling, not merely restricting. Employees who
bring their own devices (BYOD) to work are irked by the imposition of MDM
restrictions. Mobile Device Manager Plus allows you to control only the
apps on BYO-devices by containerizing them, leaving personal data untouched!
https://ad.doubleclick.net/ddm/clk/304595813;131938128;j
_______________________________________________
Libtorrent-discuss mailing list
https://lists.sourceforge.net/lists/listinfo/libtorrent-discuss
Loading...