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

Local network #1723

Open
Jedian opened this issue May 24, 2017 · 7 comments
Open

Local network #1723

Jedian opened this issue May 24, 2017 · 7 comments

Comments

@Jedian
Copy link

@Jedian Jedian commented May 24, 2017

Ahoy, mateys!

I am working on an educational project and I've been asked to search for ways to enhance download performance in schools. What happens is that, when a teacher, using the computer laboratory for the class, asks his students to download some educational content, i.e. a video, they all do it at the same time. The school connection is not very good and it gets overloaded.

My team and I were wondering if there is a way of a peer to peer system, with filters for educational content (that part is pretty easy with this module 😄 ). But with the additional of, in some way, detects and give preference to local network peers. This could boost download speed amazingly. So that is the question:

Is there any way of accomplishing it? Spotting and giving peers in local network priority?

(I'm sorry for my bad english. It's not my first language :x)

@DiegoRBaquero

This comment has been minimized.

Copy link
Member

@DiegoRBaquero DiegoRBaquero commented May 24, 2017

The content would have to be in the P2P network first. I don't think giving preference to local peers would improve performance drastically, you'd eventually connect to local peers and they'd just have great speed for the pieces they already have.

Focusing on delivering the content in a P2P way would be the first thing to do and see how it goes.

@Jedian

This comment has been minimized.

Copy link
Author

@Jedian Jedian commented May 24, 2017

Oh, thanks for the quick response!

Well, I forgot to mention that the source of this educational content is our servers. So yes, it would be in the P2P network. We were thinking of it as a super-peer. And if there were a way to, when someones start trying to get content, it would reach our server, the super-peer, but then, the super-peer could realize someone in it's local network actually have it and would be better to just get from them.

One kind of work-around could be, in someway, when announcing a seed, set a "school code" flag together with the address, and, when the super-peer is contacted, it would search for it's own school code flag and connect them...

What do you think?

@DiegoRBaquero

This comment has been minimized.

Copy link
Member

@DiegoRBaquero DiegoRBaquero commented May 24, 2017

I would just make a webseed out of the servers, allows the server to reach max throughput and the P2P would accelerate the overall network for the peers. I really don't believe any changes of 'flagging' is needed at all.

This guide might help: https://hackernoon.com/how-to-create-a-swarm-cdn-for-free-with-webtorrent-bfa09d193f71

@Jedian

This comment has been minimized.

Copy link
Author

@Jedian Jedian commented May 25, 2017

Hey, I would like to let you know I'm currently studying the option and the guide. Is it a problem to keep this issue open for a while? I intend to give feedback of it and close when I think it is okay to do so.

Thanks for the suggestion. 😄

@DiegoRBaquero

This comment has been minimized.

Copy link
Member

@DiegoRBaquero DiegoRBaquero commented May 25, 2017

It's fine to keep it open.

And no problem :)

@Jedian

This comment has been minimized.

Copy link
Author

@Jedian Jedian commented Sep 14, 2017

Hey, @DiegoRBaquero. Here I am, back to this issue. Actually I don't know if I should create a new one for this question, but, here it is.
During some tests, I tried to create a client to only seed a video, and I noticed it had a pretty big amount of RAM usage. (The file has around 90MB and the process used around 190MB of RAM). Is this expected? Maybe I am doing something wrong or even misunderstanding something...

@DiegoRBaquero

This comment has been minimized.

Copy link
Member

@DiegoRBaquero DiegoRBaquero commented Sep 28, 2017

@Jedian There's a lot of overhead as we keep track of all the pieces and the bitfield of each piece and the hash of each piece, and metadata of the torrent, etc.

@feross feross transferred this issue from another repository Sep 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.