Top Banner
Having Fun with P2P Keith W. Ross Polytechnic University http://cis.poly.edu/~ross
47

Having Fun with P2P Keith W. Ross Polytechnic University ross.

Dec 17, 2015

Download

Documents

Allan Briggs
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Having Fun with P2P Keith W. Ross Polytechnic University ross.

Having Fun with P2P

Keith W. RossPolytechnic University

http://cis.poly.edu/~ross

Page 2: Having Fun with P2P Keith W. Ross Polytechnic University ross.

Many Apps Migrating Client-Server to P2P

• File sharing• File and patch distribution• Live video streaming• Video on demand• VoIP• Hybrid CDN/P2P

Page 3: Having Fun with P2P Keith W. Ross Polytechnic University ross.

Today’s Talk

• P2P security– Is BitTorrent Unstoppable?

• Survey of P2P video streaming research– Creating an open P2P video streaming

ecosystemResearch supported by: NSF, Microsoft, Movie Labs, Huawei, Verizon, Panasonic, Len Shustek

Page 4: Having Fun with P2P Keith W. Ross Polytechnic University ross.

Why study P2P Security?

• P2P is potentially more vulnerable than client server.

• Need to understand the security issues for architecting future P2P apps

• Attacks from entertainment industry reveal weak spots in P2P

Page 5: Having Fun with P2P Keith W. Ross Polytechnic University ross.

Security work joint with:

Jian Liang Rakesh Kumar

Prithula Dhungel Di Wu

Naoum Naoumov

Xiaojun Hei

Page 6: Having Fun with P2P Keith W. Ross Polytechnic University ross.

Earlier work onKazaa and eDonkey

• FastTrack/Kazaa– Unstructured P2P network

• Overnet/Kad– Structured (DHT) P2P network– Part of eDonkey/eMule

Page 7: Having Fun with P2P Keith W. Ross Polytechnic University ross.

File Pollution: Infocom 05

pollution company

polluted content

original content

Page 8: Having Fun with P2P Keith W. Ross Polytechnic University ross.

File Pollution

pollution company

pollution server

pollution server

pollution server

pollution server

file sharingnetwork

Page 9: Having Fun with P2P Keith W. Ross Polytechnic University ross.

File Pollution

Unsuspecting usersspread pollution !

Page 10: Having Fun with P2P Keith W. Ross Polytechnic University ross.

File Pollution

Unsuspecting usersspread pollution !

Yuck

Page 11: Having Fun with P2P Keith W. Ross Polytechnic University ross.

Index Poisoning: Infocom 06

index title location bigparty 123.12.7.98smallfun 23.123.78.6heyhey 234.8.89.20

file sharingnetwork

123.12.7.98

23.123.78.6

234.8.89.20

Page 12: Having Fun with P2P Keith W. Ross Polytechnic University ross.

Index Poisoning

index title location bigparty 123.12.7.98smallfun 23.123.78.6heyhey 234.8.89.20123.12.7.98

23.123.78.6

234.8.89.20

index title location bigparty 123.12.7.98smallfun 23.123.78.6heyhey 234.8.89.20bighit 111.22.22.22

111.22.22.22

Page 13: Having Fun with P2P Keith W. Ross Polytechnic University ross.
Page 14: Having Fun with P2P Keith W. Ross Polytechnic University ross.
Page 15: Having Fun with P2P Keith W. Ross Polytechnic University ross.
Page 16: Having Fun with P2P Keith W. Ross Polytechnic University ross.

FastTrack Copies

Page 17: Having Fun with P2P Keith W. Ross Polytechnic University ross.

Overnet Copies

Page 18: Having Fun with P2P Keith W. Ross Polytechnic University ross.

Is BitTorrent Unstoppable?

(IPTPS 2008; extended version available)

• How can record/movie companies limit piracy in BitTorrent?– Suing companies?– Suing users?– Internet attacks?

• How vulnerable is BitTorrent to attacks?

Page 19: Having Fun with P2P Keith W. Ross Polytechnic University ross.

BitTorrent

tracker: tracks peers in torrent; providestracker list

torrent: group of peers exchanging chunks of a file

trading chunks

peertorrent index server: search for torrents;provides .torrent file

Page 20: Having Fun with P2P Keith W. Ross Polytechnic University ross.

BitTorrent Ecosystem

• Open protocol– 50+ client implementations– Dozens of tracker implementations– Dozens of torrent location sites

• 5 million simultaneous users & growing

• Evolving:– Peer discovery: DHTs, gossiping– Proprietary protocols, private torrents

Page 21: Having Fun with P2P Keith W. Ross Polytechnic University ross.

BitTorrent Basics

• Seeds and leechers• File divided into 256KB pieces. Each piece

is 16 blocks.– Download blocks and assemble pieces– Hash piece to check integrity

• Peers advertise pieces they have to neighbors

• Peer sends blocks to four neighbors currently sending it data at the highest rate

• And also to one random neighbor

Page 22: Having Fun with P2P Keith W. Ross Polytechnic University ross.

Classes of BitTorrent Attacks

Attacks against an existing torrent– against leechers– against initial seed– against peer discovery– against peer discover

Decoy attacks: attacker creates own torrent– Seeding a polluted file– Seeding a file and delivering only 99%

Page 23: Having Fun with P2P Keith W. Ross Polytechnic University ross.

Fake Block Attack

• Attacker establishes TCP connections with legitimate peers

• Peer downloads one fake block from attacker – and 15 good blocks from legit peers– Hash failure – download is prolonged

Acknowledgment: Thanks to Vishal Misra for bringing this attack to our attention.

Page 24: Having Fun with P2P Keith W. Ross Polytechnic University ross.

Simple analysis of fake block attack

What is the probability of a hash failure?

• n = # neighbors advertising piece• m = attack nodes (m < n)• k = # neighbors from which it is

downloading the 16 blocks

Page 25: Having Fun with P2P Keith W. Ross Polytechnic University ross.

Probability of a clean piece

• 70% failure requires 20% attack neighbors

• γ increases for rare pieces and in end game

nm /

Page 26: Having Fun with P2P Keith W. Ross Polytechnic University ross.

Connection attack

• Attacker establishes many TCP connections to each target peer.– Doesn’t upload any blocks– Chatty peer: keeps connection active

with repeated BT handshake messages

Page 27: Having Fun with P2P Keith W. Ross Polytechnic University ross.

Passive Measurements

• Collect traces while downloading– Azureus and uTorrent– DSL and Ethernet– 54 downloads of “Foo Fighters” (108 MB)

• Developed parser to analyze BT trace• To estimate download time without attack:

– Obtain blacklist from torrentfreak.com– Use Peer Guardian to prevent connections to

blacklisted peers

Page 28: Having Fun with P2P Keith W. Ross Polytechnic University ross.

Azureus results

• Download is NOT being prolonged by more than 50% for DSL

Page 29: Having Fun with P2P Keith W. Ross Polytechnic University ross.

Zoom in one Azureus trace

Chatty-peers make upa major fraction of the useful peers.

Page 30: Having Fun with P2P Keith W. Ross Polytechnic University ross.

Handshake messages sent by chatty peers

Page 31: Having Fun with P2P Keith W. Ross Polytechnic University ross.

uTorrent

Page 32: Having Fun with P2P Keith W. Ross Polytechnic University ross.

Zoom in on uTorrent trace

Page 33: Having Fun with P2P Keith W. Ross Polytechnic University ross.

Passive Measurement Conclusions

• Anti-P2P companies applying different strategies for different BT clients

• Largely ineffective for Ethernet clients

• For DSL, download time increases by 30-60%

Page 34: Having Fun with P2P Keith W. Ross Polytechnic University ross.

Active Measurements

• Crawl peers in torrent and identify– Fake-block attack peers– Chatty peers

• Looked at 8 box-office movie torrents– Some under attack; some not

• Crawler speaks Azureus protocol to Azureus peers – and conventional protocol to all other

peers

Page 35: Having Fun with P2P Keith W. Ross Polytechnic University ross.

Active Measurement Conclusions

• Several, but not all, top-box movies are under attack

• Published blacklists do not cover all the attackers in a torrent

• Most attackers enter through gossiping

Page 36: Having Fun with P2P Keith W. Ross Polytechnic University ross.

Seed Attack

• “Nip in the bud”

• Make many connections to seed, download at high rate

• Rationale: Conventional algo gives all its bandwidth to 5 highest downloaders

Page 37: Having Fun with P2P Keith W. Ross Polytechnic University ross.

Planet Lab experiments

• Put 30 leechers on PL nodes; upload capacity capped at 512 kbps

• Seed upload capacity 160 kbps – Azureus and uTorrent

• 0-60 attack peers

• Start seed, start 5 leechers, start attack peers, start 25 leechers

Page 38: Having Fun with P2P Keith W. Ross Polytechnic University ross.

Seed attack results

delay attacker bandwidth

Page 39: Having Fun with P2P Keith W. Ross Polytechnic University ross.

BitTorrent Conclusions

• Attacks against leechers can prolong downloads– But is 50% enough?– Blacklists are helpful; adaptive blacklist is

needed• Seed is surprisingly resilient to attacks• Attacks must be tailored to client types

• BitTorrent ecosystem is difficult to stop!

Page 40: Having Fun with P2P Keith W. Ross Polytechnic University ross.

Today’s Talk

• P2P security– Is BitTorrent Unstoppable?

• Survey of P2P video streaming research– Creating an open P2P video streaming

ecosystemResearch supported by: NSF, Microsoft, Movie Labs, Huawei, Verizon, Panasonic, Len Shustek

Page 41: Having Fun with P2P Keith W. Ross Polytechnic University ross.

 

 

 

Live Streaming: Faculty Collaborators

ProfessorYong Liu

ProfessorYao Wang

ProfessorShiv Panwar

and Professor Nitsesh Saxena (CS)

Page 42: Having Fun with P2P Keith W. Ross Polytechnic University ross.

obtain listof peers

trade chunks

tracker

peer

Basic idea P2P live streaming

Sourceof video

Page 43: Having Fun with P2P Keith W. Ross Polytechnic University ross.
Page 44: Having Fun with P2P Keith W. Ross Polytechnic University ross.

PPLive: Chinese New Year 2006

Page 45: Having Fun with P2P Keith W. Ross Polytechnic University ross.

@ Polytechnic

• Infrastructure for measuring P2P live video systems– Xiaojun Hei, Jian Liang, Yong Liu

• Stochastic modeling of P2P live streaming– Rakesh Kumar, Yong Liu

• Incentives and scalable video for live P2P streaming– Zhengye Liu, Yanming Shen, Shiv Panwar, Yao Wang

• Security of P2P live streaming systems– Prithula Dhungel, Xiaojun Hei, Nitesh Saxena

• P2P VoD, Hybrid P2P-CDN– Angela Wang, MSR colleagues

• Developing our own live P2P video system– Master’s students

Page 46: Having Fun with P2P Keith W. Ross Polytechnic University ross.

Open P2P Live Streaming

• Create an ecosystem for live streaming• Need incentives

– The more you upload the better the quality

• Layered video– Chunk-based– Substream-based

• Accommodate user generated content

Page 47: Having Fun with P2P Keith W. Ross Polytechnic University ross.

Thank You !