Sivachandran Paramasivam
2017-04-18 06:05:46 UTC
I'm transferring files over high latency(>150ms) high speed(>100Mbps) link.
I found that libtorrent uses single connection per peer, torrent pair for
its data transfer. Because of this the transfer speed is slow(~30-40Mbps).
Whereas if I do the same transfer with low latency(<50ms) link then
libtorrent utilizes maximum usable bandwidth. I tried adjusting the send
and receive buffer sizes but not much improvement in download speed.
To confirm the issue I tried single connection HTTP download on this high
latency link and it resulted the same download speed of what libtorrent
achieved. But if I use multi connection HTTP download then it utilizes full
bandwidth.
Is there a way I can tell libtorrent to use multiple connections even for
same peer, torrent? I believe this would utilize the bandwidth to the max.
Thanks,
Sivachandran Paramasivam
I found that libtorrent uses single connection per peer, torrent pair for
its data transfer. Because of this the transfer speed is slow(~30-40Mbps).
Whereas if I do the same transfer with low latency(<50ms) link then
libtorrent utilizes maximum usable bandwidth. I tried adjusting the send
and receive buffer sizes but not much improvement in download speed.
To confirm the issue I tried single connection HTTP download on this high
latency link and it resulted the same download speed of what libtorrent
achieved. But if I use multi connection HTTP download then it utilizes full
bandwidth.
Is there a way I can tell libtorrent to use multiple connections even for
same peer, torrent? I believe this would utilize the bandwidth to the max.
Thanks,
Sivachandran Paramasivam