Welcome to Omgili,
Omgili ( Oh My God I Love It ;) is a search engine for discussions. With Omgili you can find answers and solutions, debates, discussions, personal experiences, opinions and more... To learn more about Omgili click here.
This is a complete preview of the discussion as it was indexed by Omgili crawlers. Use this preview if the original discussion is unavailable.
Click here to view the original discussion.
[http://www.codingforums.com/showthread.php?t=146...]
Click here to search for discussions with Omgili discussions search engine.
 |
How does p2p network works (how client find other client in the network) - CodingForums.com
Hello all
im total beginner on networking programming i was reading some general articles about
p2p networks and i like to understand how does networks like bittorent or soulseek and such
dont have some kind of server that registers all the clients ip and info so every client that
starts can find the others , how can one client find others whiteout middle clients server ?
|
 |
The server for the protocols you name *does* know which clients to contact for piece of a file.
This is not something that is automatically discoverable without an intermediary server.
Look at http://en.wikipedia.org/wiki/BitTorrent_(protocol) for an explanation.
Soulseek is even simpler because (afaik) it doesn't aggregate peers with the same file but rather just connects one peer to one other peer.
|
 |
|
I didnt understand how the soulseek works , can you give more info
thanks allot for the help
|
 |
|
BitTorrent does have a server that tells other users what other users on are on, that is what the tracker is.
|
 |
|
So the tracker is real server that sits somewhere?
just from curiosity can the client be also be server ?
can there be some kind of p2p protocol that does not use servers ?
|
 |
Differnet p2p networks work in deifferent ways.
Is there any particular technology you are interested in?
Designing your own?
|
 |
|
Well im very interested in technology that not involving ip registrar / redirector ( or what ever it called )
this is for my own game im working on that i like it to be multiplayer
is there example for such ways ?
thanks
|
 |
The basics of P2P are quite simple..
Two computers on the fringe of a network connect to each other and share information, notmally pirated music
There are many way of connecting, from what i understand you want to maintain annonimity but this is very difficult.
For connections to be made the computers need to communicate hence need to know IPs to maintain the internets TCP/IP framework (what p2p is based on).
This allows a kind of who is available to connect to as suppose to connect to 192.168.0.1 all the time (just used rotuer for example) so there is no one centrealised server.
This allows a non realtime known location of the file, ***if that makes sense*** hence the large amounts of dead pathways you may have come across while downloading something.
To develop this further how is your C+ knowledge for a VNS?
There is a lot more to it if you want more info on any particular part?
Hope this helped your understanding a little.
As for the computer game side i am affraid thats Client-Host.
This is the very basics of what you are talking about.
To aplly anything close to this to a multiplayer game you would need a massive knowledge
|
 |
Quote: : so the tracker is real server that sits somewhere?
just from curiosity can the client be also be server ?
can there be some kind of p2p protocol that does not use servers ?
Yeah, there isn't one centralized one for the whole BT network, you can just make one, some BT clients support being a tracker.
|
|
|
|