Boyu Chen Yulin Xia Haoyu Xu Viterbi School of Engineering University of Southern California 2012.5...

16
Boyu Chen Yulin Xia Haoyu Xu Viterbi School of Engineering University of Southern California 2012.5 P2P file sharing system with a central server

Transcript of Boyu Chen Yulin Xia Haoyu Xu Viterbi School of Engineering University of Southern California 2012.5...

Page 1: Boyu Chen Yulin Xia Haoyu Xu Viterbi School of Engineering University of Southern California 2012.5 P2P file sharing system with a central server.

Boyu Chen

Yulin Xia

Haoyu Xu Viterbi School of Engineering

University of Southern California

2012.5

P2P file sharing system with a central server

Page 2: Boyu Chen Yulin Xia Haoyu Xu Viterbi School of Engineering University of Southern California 2012.5 P2P file sharing system with a central server.

Outline

• Introduction

• System architecture

• Connection and File transfer Process

• Conclusion

Page 3: Boyu Chen Yulin Xia Haoyu Xu Viterbi School of Engineering University of Southern California 2012.5 P2P file sharing system with a central server.

Introduction

Mobile network

Wi-Fi

Wi-Fi Direct

Wi-Fi display

Page 4: Boyu Chen Yulin Xia Haoyu Xu Viterbi School of Engineering University of Southern California 2012.5 P2P file sharing system with a central server.

Connect with possibilities

One to one mode

One to many mode

many to many mode ?

Page 5: Boyu Chen Yulin Xia Haoyu Xu Viterbi School of Engineering University of Southern California 2012.5 P2P file sharing system with a central server.

Wi-Fi Direct P2P

Android Wifi-

P2P app

A whole new idea !

Page 6: Boyu Chen Yulin Xia Haoyu Xu Viterbi School of Engineering University of Southern California 2012.5 P2P file sharing system with a central server.

Main Activity

Network Manager

Join/Exit

Network

Group

Peer Register/ Unregist

er

Browse Peer Activity

Peer Manager

Peer List

Peer Info

Details

File List

File Download Activity

File Reques

t Messag

e

File Fragmen

ts Receiver

Downloading config

File Transfe

r Protoc

ol

System architecture

Page 7: Boyu Chen Yulin Xia Haoyu Xu Viterbi School of Engineering University of Southern California 2012.5 P2P file sharing system with a central server.

Original proposal

Use PC as central server

Client directly connect with client

Compare different network topology

Modified proposal

Use group owner as server

Routed through group owner

Implement new feature in Wi-Fi

direct architecture

Page 8: Boyu Chen Yulin Xia Haoyu Xu Viterbi School of Engineering University of Southern California 2012.5 P2P file sharing system with a central server.

Group owner and client

Group owner(perform as

AP)

client

clientclient

Obtain IP and file

request

Page 9: Boyu Chen Yulin Xia Haoyu Xu Viterbi School of Engineering University of Southern California 2012.5 P2P file sharing system with a central server.

System Architecture

client

Fidning

peers

Page 10: Boyu Chen Yulin Xia Haoyu Xu Viterbi School of Engineering University of Southern California 2012.5 P2P file sharing system with a central server.

System Architecture

client

Find peer

connect

server

File list

OK

Page 11: Boyu Chen Yulin Xia Haoyu Xu Viterbi School of Engineering University of Southern California 2012.5 P2P file sharing system with a central server.

System Architecture

Page 12: Boyu Chen Yulin Xia Haoyu Xu Viterbi School of Engineering University of Southern California 2012.5 P2P file sharing system with a central server.

System Architecture

Page 13: Boyu Chen Yulin Xia Haoyu Xu Viterbi School of Engineering University of Southern California 2012.5 P2P file sharing system with a central server.

Algorithm

Small file size, high transfer speed for 2~3MB per secondNo need to divide file into chunkOur algorithm focus on seeking the idle client so that the client can request service

from another one

Send request message ; If (file search match && the client is idle){

{ if (one client found) download;else

pick a client with best Wi-Fi direct connection quality; }else wait for a timeout to send the request again ;}

Page 14: Boyu Chen Yulin Xia Haoyu Xu Viterbi School of Engineering University of Southern California 2012.5 P2P file sharing system with a central server.

Problem with multiple devices

Constrain:• Connection in a group owner & client way, do not support

client and client direct communication• Client is the initiator of the file transfer• Only group owner support the wireless connection

Possible solution:• Pure peer to peer network (negative)• Use PC as central server (negative)• Use group owner as the central server and relay, implement

message transfer between server and client to enable client to client communication.

• Create socket to enable the direct communication among clients

Page 15: Boyu Chen Yulin Xia Haoyu Xu Viterbi School of Engineering University of Southern California 2012.5 P2P file sharing system with a central server.

Conclusion

• Develop application in a point to point two way transmission base on the current Wi-Fi direct architecture

• Implement in the system of multi-client communication in the Wi-Fi direct

Page 16: Boyu Chen Yulin Xia Haoyu Xu Viterbi School of Engineering University of Southern California 2012.5 P2P file sharing system with a central server.

QUESTIONS?