11. P2P Flashcards

1
Q

P2P is an example of an overlay network. What does this mean? Why use an overlay network?

A

Creates a service that is either not provided or cannot be provided at the native network layer. Built on top of an existing network.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is P2P networking?

A

Network made up of peers, who are both clients are servers, which form an overlay network.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What are 4 issues with P2P?

A
  • getting started, you need to find peers in the beginning
  • how to find out who has what
  • how to prevent anti-social behaviour
  • how to make sure it scales
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is the certralised directory model? what problem does it solve? what are it’s drawbacks?

A

Peers connect and inform a central server of their IP and content. Solves the problem of not knowing who has what. Peers then ask the server who has the files they want, which directs them to the other peer. Drawbacks: limited scalabilty, single point of failure, easy to sue

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is a torrent?

A

A group of peers exchanging chunks of a file.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Describe how BitTorrent works.

A

File is divided into 256Kb chunks, peers in the torrent send and receive file chunks. Peers register with a tracker to get a list of peers. While downloading the peer is also uploading to other peers. Once the peer has the entire file, they may leave or stay.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is “optimistically unchoking”?

A

Other peers that a client is not sending chunks to are “choked”, because they did not make the top 4. To prevent newcomers from being ignored, every so often the client selects a random peer to also send chunks to.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

How does the time taken by client server systems and P2P systems scale with more clients?

A

C-S system scales linearly, p2p is logarithmic, scales much better

How well did you know this?
1
Not at all
2
3
4
5
Perfectly