Questions tagged [p2p]

Peer-to-peer (P2P) computing or networking is a distributed application architecture that partitions tasks or workloads between peers. Peers are equally privileged, equipotent participants in the application.

Peers make a portion of their resources, such as processing power, disk storage or network bandwidth, directly available to other network participants, without the need for central coordination by servers or stable hosts. Peers are both suppliers and consumers of resources, in contrast to the traditional client–server model where only servers supply, and clients consume.

The peer-to-peer (P2P) application structure was popularized by file sharing systems like Napster. The peer-to-peer computing paradigm has inspired new structures and philosophies in other areas of human interaction. In such social contexts, peer-to-peer as a meme refers to the egalitarian social networking that is currently emerging throughout society, enabled by Internet technologies in general.

What is it?

This is a special kind of network type ('network topology' is the fancy description). It describes computers that are networked to each other without a central server being in-between.

Why was it developed?

Peer-to-peer networks are very popular with people who want to share files directly with one another. The files do not have to be stored on a central server.

Software has been developed that can even put together a file from bits of the file stored across several 'peers' on the network. For example, BitTorrent can do this. The advantage is that no single computer needs to be over-loaded when a very popular / very large file is requested.

Why is it important?

It is an important development, because it will affect the way the Internet is used in the future.

Many companies want to provide 'video on demand' services, but the problem has been how to provide the vast bandwidth needed when thousands of people are asking for the same video file, e.g., the latest episode of Lost or 24.

Peer-to-peer is an ideal solution to the problem, because hundreds of computers can hold parts of the video and so share the load.

Some companies are calling the peer-to-peer connections they are building 'The Grid' which is a trendier name for the same thing.

What about the future?

In the near future, high definition television programs may be delivered through the Internet and so peer-to-peer may be used.

References

1970 questions
190
votes
4 answers

Simple basic explanation of a Distributed Hash Table (DHT)

Could any one give an explanation on how a DHT works? Nothing too heavy, just the basics.
Gustavo Carreno
  • 9,499
  • 13
  • 45
  • 76
111
votes
4 answers

DHT in torrents

I'm coding a P2P implementation that I would like to make decentralized. However I'm having some trouble grasping how DHT in protocols like BitTorrent works. How does the client know where the peers are if there is no tracker? Are peers stored in…
Christopher Tarquini
  • 11,176
  • 16
  • 55
  • 73
108
votes
6 answers

Detect the specific iPhone/iPod touch model

Possible Duplicate: Determine device (iPhone, iPod Touch) with iOS I am making a game that utilizes the peer-to-peer bluetooth capabilities of the iPhone (and probably the iPod touch 2nd generation). However, to stop the users from trying to play…
Dimitris
  • 13,480
  • 17
  • 74
  • 94
98
votes
11 answers

Can Android do peer-to-peer ad-hoc networking?

Is it possible to set up Android in ad-hoc peer-to-peer wifi mode? For example, I would like to have one phone broadcast a message, and have all peers in the network receive the broadcast, without having a server. I would like to use wifi since…
Doughy
  • 4,115
  • 6
  • 36
  • 39
93
votes
3 answers

How can I make a browser to browser (peer to peer) connection?

How can I write a website using HTML5, CSS and JavaScript on client side that will allow direct tcp/ip connection between the client browsers once the page is loaded. I need to do this to to reduce latency since the site will require that the input…
Răzvan Flavius Panda
  • 21,730
  • 17
  • 111
  • 169
92
votes
5 answers

Do websockets allow for p2p (browser to browser) communication?

To clarify when I ask about browser to browser communication I mean without a server in between forwarding message. I would like to implement something like this for a game. If p2p in websockets isn't possible are there similar alternatives? Any…
Xavier
  • 8,828
  • 13
  • 64
  • 98
78
votes
13 answers

Peer to Peer: Methods of Finding Peers

Are there any known methods of finding peers without using a dedicated central server? ie: If I have peers which are disconnecting and reconnecting to the internet but getting a new IP address each time, and I want to connect to them without setting…
Ande Turner
  • 7,096
  • 19
  • 80
  • 107
68
votes
3 answers

Can HTML5 Websockets connect 2 clients (browsers) directly without using a server? (P2P)

Using HTML5 Websockets, can I open a socket directly between 2 clients (browsers) (assuming I know their IP addresses and there are no NAT traversal issues). I want to send some data directly from one browser to another browser, essentially creating…
Justin
  • 689
  • 1
  • 5
  • 3
57
votes
4 answers

Connecting P2P over NAT?

I started to explore the option of connecting with other using a p2p connection, so I coded a simple socket program in JAVA for android devices in which the users can share simple messages p2p (I didn't have any idea about NAT then). I got to know…
user3439988
  • 593
  • 1
  • 6
  • 9
55
votes
2 answers

Getting MSDN PeerChannel "SecureChat" running on Windows Server 2008 R2

I can only get this SDK sample of PeerChannel SecureChat to work in the following scenarios in a basic home network: Locally among instances running on the same machine, or Among Windows 7 machines I cannot get this to work between my Windows…
Jason Kleban
  • 20,024
  • 18
  • 75
  • 125
50
votes
6 answers

Why is p2p web hosting not widely used?

We can see the growth of systems using peer to peer principles. But there is an area where peer to peer is not (yet) widely used: web hosting. Several projects are already launched, but there is no big solution which would permit users to use and to…
OutOfBound
  • 1,120
  • 3
  • 19
  • 25
45
votes
6 answers

Automatic way of enabling the access to port 4900 from the internet

I am writing a custom p2p program that runs on port 4900. In some cases when the person is behind a router, this port is not accessible from the internet. Is there an automatic way of enabling the access to the port from the internet. I am not…
Jayesh
  • 3,891
  • 11
  • 55
  • 83
41
votes
4 answers

Android/iOS Peer-To-Peer architecture

This is kind of wide question, I found many information about this topic. Possible technologies Bluetooth GameKit iOS only? Bluetooth P2P library, with Wi-Fi and GPS? Wi-Fi Wifi Direct? Bonjour zeroconf? Neither of these does currently have…
Marek Sebera
  • 39,650
  • 37
  • 158
  • 244
40
votes
3 answers

Can someone explain what a wire-level protocol is?

I am not very clear about the idea of wire-level protocols. I heard BitTorrent uses it and read that a wirelevel protocol can be considered an opposite of API. I read RMI calls can be considered wirelevel protocols but am still a little confused.…
Legend
  • 113,822
  • 119
  • 272
  • 400
39
votes
1 answer

How to write a simple Bittorrent application?

How to write a simple bittorrent application. Something like a "hello world" using a bittorrent library, I mean a simplest of the application to understand the working of bittorrent. I would prefer a python or a C/C++ implementation, but it can be…
Vivek Sharma
  • 3,794
  • 7
  • 38
  • 48
1
2 3
99 100