Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

uTP support #54

Open
BastienClement opened this issue May 23, 2014 · 6 comments
Open

uTP support #54

BastienClement opened this issue May 23, 2014 · 6 comments

Comments

@BastienClement
Copy link
Collaborator

What is the status of https://github.com/mafintosh/utp?

Is it ready as a basis to implement uTP support in torrent-stream?

@mafintosh
Copy link
Owner

its probably still way to slow / not battle tested enough. its very hard getting a thing like this to perform well since pure javascript is too high up in the stack for this kinda thing. i don't remember the exact stats by tcp outperformed my utp thing by a factor 100x (or similar)

@Ivshti
Copy link
Contributor

Ivshti commented May 26, 2014

What about a C/C++ lib then? Also, if the performance bottleneck is insignificant JS can still be used. I think the benefit from being able to connect to more peers is more important.

Also, check this out https://github.com/alexstrat/node-libutp

@transitive-bullshit
Copy link
Collaborator

Adding a reference to the analogous webtorrent issue webtorrent/webtorrent#68 for tracking's sake.

If torrent-stream decides to go with a native library wrapper for µTP, this would definitely be a clear distinction between torrent-stream and webtorrent. That being said, I still think it's worthwhile to keep the two issues in sync going forwards.

@PedroMCostaAndrade
Copy link

any news?

@Ayms
Copy link

Ayms commented Oct 9, 2014

FYI, please see mafintosh/utp#3 I have integrated utp in https://github.com/Ayms/torrent-live, this is just used to test if a peer accepts utp connections and this works, not a killer feature but that's a start...

@ghost
Copy link

ghost commented Dec 2, 2014

Theres already been a PR put in by me @PedroMCostaAndrade :)

mafintosh/peer-wire-swarm#11

@mafintosh Where the speed of uTP really lies is in the actual implementation of the throttling algorithms, not so much the protocol implementation. You really need to know how to exploit UDP buffers to get uTP working nicely. I think you just have a bare implementation of uTP on top of UDP without any of the actual benefits uTP is suppose to bring (in regards to the other algorithms)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants