Wednesday, May 23, 2007

Understanding p2p

Recently, I had a small little discussion with a friend over what exactly defines the p2p technology. He thought that it uses the client's LAN when possible to speed up connections. (Specifically in this case, we were talking about a p2p extension for Firefox, AllPeers)
ME: However....AllPeers doesn't use the host computer 's local LAN to transfer files - it uses the Internet to connect to a remote AllPeers session (as far as I know). Therefore I could simply set up an AllPeers share on my computer with the Tournament demo in it. I'll do that, keep Firefox running, go to school, and then we can use your Firefox w/ AllPeers to connect to my home computer and download it that way.

Of course you could do the exact same thing with your personal home computer. It's just a matter of convenience and preference.

HIM: What is the point of p2p if it has to go through something else?

ME: You're right in saying that p2p doesn't "go through something else" - however, you're wrong in saying it would use the school's LAN to achieve this. You need to understand some basic p2p theory first to understand what it's actually going to end up doing. (By the way I recommend reading all of this - I worked hard on it.. lol)

The only two reasons to use p2p are that (1) it allows you to initiate a direct connection between client to client, thusly eliminating the need for a mediating central server and (2) it distributes the clients resources (bandwidth, etc) to each other equally.

This is in juxtaposition to the client-server model in which everyone downloads from one main server (similar concept to the Boyd drop boxes and shared drives in general). This main server gets considerably drained as more people access it, decreasing download speeds for the individual.

P2P solves this problem under optimal conditions and is in those cases faster that the client-server model. However, we need to define optimal conditions. They are, simply put, a relatively speedy Internet connection, high bandwidth, and (most importantly) a relatively sizable number of clients that are connected at the same time to the p2p network. The number of clients is so important because each one serves as a node to both distribute already existent resources (like bandwidth, storage space, and computing power) and to add their OWN bandwidth, storage space, and computing power resources.

Let’s create a scenario - Let’s say that there are only two people sharing resources on a p2p network. The speeds will undoubtedly be slower than a traditional client-server setup in this instance because the two computers are probably average home computers using their relatively small, restrictive, and slow RoadRunner internet bandwidth. They are sharing very little bandwidth and computing powers between themselves. (I know that from experience), in comparison to simpy connecting to a server that in all likelihood will probably have a T3 (or whatever the major Interent connection is) connection that is routing incredible amounts of bandwidth to it for the public to access and utilize.

Of course if the number of people in the theoretical p2p network I made up increases, then its overall power in comparison begins to completely own.

So the problem(s) at school are that when we use AllPeers, we are distributing the school's bandwidth to *each other*, essentially negating any speed benefits of a p2p network. We are still using the Internet to do this because AllPeers was designed for non-Intranet file sharing and it doesn't know how to interface with a nearby Local Area Network/Intranet. (put more simply, AllPeers has no idea that we are in a LAN config at school - for all it knows, the computer next to you in the CompSci lab is located in China.) Logically, why would AllPeers use the LAN to do sharing? That would defeat the purpose. If you already have a LAN, you essentially have one major part of a p2p network set up already between all the computers in the network. Think about shared network folders in Windows. Machine to machine file transfer. LAN. Partly p2p.

If AllPeers used the LAN, it'd be exactly the same as about a thousand other programs out there, including Microsoft's built in networking tools and capabilities themselves.

We can still do it your way but I guarantee you it will not be any faster that your traditional downloads and it definitely won't use the school's LAN. It's just a convenient way to set up a private temporary network that uses the Internet to gather people in a p2p pool of clients. But in our case, two people isn't going to make any download speeds very fast.




6 comments:

buy generic cialis online said...

Well worth to read this article, thanks for sharing this information. With this article you offered me got a chance to know about this, anyway i say Great Article! and waiting for you next article about this interesting subject.

willsion said...

Hey, this changed into great, thanks for taking the time to jot down it. Your Article gives me brilliant know-how. I am totally satisfied along with your paintings. If your Epson Printer is In Error State, reach us again. Our professional team will remedy all of the issues on the way to remedy the error kingdom within the Epson Printer. A printer in blunders state,” It means there can be a hassle with the printer itself. Make sure the printer is became on and related for your computer or laptop, by using Wi-Fi or cable. Check it for low paper or ink, and make sure the quilt isn’t open and the paper isn’t jammed. For extra information, you can click beneath-mentioned hyperlink.
epson printer offline

willsion said...

Your blog is very informative, meaningful and to the point. Being a technical support blogger. I find you have a very good writing sense due to which you explain details about technical support perfectly, for more exploring your knowledge about Support For HP Printer | Number +1-877-760-6133, HP Printers Support | HP Printers Support Number
hp printer error codes

herrybel said...

HP Printers are notable for conveying high printing quality. Be that as it may, some of the time, some sudden Drum Light mistake shows up during printing which issues the clients. The drum light blunder, when all is said in done, shows up during the inclusion of another ink cartridge. Your HP printer may work splendidly, however, your last item may look horrendous. In the event that you face any specialized issues identified with HP Printer hl 2270DW Drum Light Error, you can contact +1888-633-7151 in light of the fact that we give Technical Support we are accessible 24*7
windows update error 0x802480174

Epson customer service Phone Number said...

My Epson printer is not able to print and scan fully. I am receiving the message, “printer paused” error. I am obtaining blurry and faint printouts while printing any document. I think that all these technical issues take place when printing machine is not able to communicate with the computer system. So, now I am experiencing Epson printer communication error on a regular basis, so I look for the solutions. I know very well that this is very difficult issue but I want to fix it. So please guys recommend me the permanent resolutions for this error.

John Brown said...

Awesome content. I bookmarked it for future reference.

Also, read blogs posted by Andrew
Windows 10 Update Error 0x80248007