pcp icon indicating copy to clipboard operation
pcp copied to clipboard

Very low transfer speed

Open megapro17 opened this issue 3 years ago • 3 comments

We both have a stable 100 Mbps internet but pcp sends it with about 2.3 MB/s. Does it use multiple threads? I'm using v0.4.0-rc1 Windows.

megapro17 avatar Feb 14 '22 20:02 megapro17

Hi @megapro17, it could very well be the case that your connection got relayed by an intermediate peer. This happens if pcp was not able to hole punch a connection through either of your routers. (this is just a guess)

If that's the case, there a many improvements on the way that address this problem:

https://github.com/libp2p/go-libp2p/issues/1039

Indeed, I just learned that it got merged two months ago. pcp would definitely benefit from that improvement.

I'm also thinking to indicate in the command line if the connection got relayed.

dennis-tra avatar Feb 15 '22 08:02 dennis-tra

Thanks for looking. I guess it was because my friend had a shared ip from isp, mine is dedicated. I tried today with both dedicated and it hit 10 MB/s speed, but not for a long time, dropped to about 5 MB/s. I didn't realised it is so difficult to send files, torrents are just working with any connection with maximum speed.

megapro17 avatar Feb 15 '22 12:02 megapro17

can i have a nightly build to test new branch??

megapro17 avatar Mar 12 '22 20:03 megapro17