web-based p2p streaming by http
DESCRIPTION
Web-based P2P Streaming by HTTP. 呂駿逸 呂學儒 施旻 宏 指導 教授 鍾添曜 . Outline. 1. Introduction 2. Related work 3. System design 4. Experiment 5. Future work 6 . References. 1. Introduction. 1.1 Peer-to-peer overlay network 1.2 Motivation. 1.1 Peer-to-peer overlay network. Advantage - PowerPoint PPT PresentationTRANSCRIPT
![Page 1: Web-based P2P Streaming by HTTP](https://reader036.vdocuments.pub/reader036/viewer/2022062302/568166d5550346895ddaea6f/html5/thumbnails/1.jpg)
Web-based P2P Streaming by HTTP呂駿逸 呂學儒 施旻宏指導教授 鍾添曜
![Page 2: Web-based P2P Streaming by HTTP](https://reader036.vdocuments.pub/reader036/viewer/2022062302/568166d5550346895ddaea6f/html5/thumbnails/2.jpg)
Outline• 1. Introduction• 2. Related work• 3. System design• 4. Experiment• 5. Future work• 6. References
![Page 3: Web-based P2P Streaming by HTTP](https://reader036.vdocuments.pub/reader036/viewer/2022062302/568166d5550346895ddaea6f/html5/thumbnails/3.jpg)
1. Introduction• 1.1 Peer-to-peer overlay network• 1.2 Motivation
![Page 4: Web-based P2P Streaming by HTTP](https://reader036.vdocuments.pub/reader036/viewer/2022062302/568166d5550346895ddaea6f/html5/thumbnails/4.jpg)
1.1 Peer-to-peer overlay network • Advantage• Peer = client + server• No server loading• More peer, more speed
• Disadvantage• Low security (Trojan horse)• High network loading
![Page 5: Web-based P2P Streaming by HTTP](https://reader036.vdocuments.pub/reader036/viewer/2022062302/568166d5550346895ddaea6f/html5/thumbnails/5.jpg)
1.2 Motivation• Media Player
![Page 6: Web-based P2P Streaming by HTTP](https://reader036.vdocuments.pub/reader036/viewer/2022062302/568166d5550346895ddaea6f/html5/thumbnails/6.jpg)
1.2 Motivation (cont.)
•Streaming + P2P
![Page 7: Web-based P2P Streaming by HTTP](https://reader036.vdocuments.pub/reader036/viewer/2022062302/568166d5550346895ddaea6f/html5/thumbnails/7.jpg)
1.2 Motivation (cont.)• P2P IPTV - PPStream• Based on P2P networking structure• Need to install player• Software security• Advertisement
• Web based P2P• Plug-in Browser• Intuitive to use• Trojan avoidance
![Page 8: Web-based P2P Streaming by HTTP](https://reader036.vdocuments.pub/reader036/viewer/2022062302/568166d5550346895ddaea6f/html5/thumbnails/8.jpg)
2. Related work• 2.1 BitTorrent • 2.2 BitTube
![Page 9: Web-based P2P Streaming by HTTP](https://reader036.vdocuments.pub/reader036/viewer/2022062302/568166d5550346895ddaea6f/html5/thumbnails/9.jpg)
2.1 BitTorrent
![Page 10: Web-based P2P Streaming by HTTP](https://reader036.vdocuments.pub/reader036/viewer/2022062302/568166d5550346895ddaea6f/html5/thumbnails/10.jpg)
2.1 BitTorrent introduction• Tracker• Responsible for helping peer communicate with each other
• Torrent file• Length of file• File name• Tracker URL
• Peer• Seed• Leecher
![Page 11: Web-based P2P Streaming by HTTP](https://reader036.vdocuments.pub/reader036/viewer/2022062302/568166d5550346895ddaea6f/html5/thumbnails/11.jpg)
2.2 BitTube• BitTube: Case Study of a Web-based Peer-Assisted
Video-on-Demand System.
![Page 12: Web-based P2P Streaming by HTTP](https://reader036.vdocuments.pub/reader036/viewer/2022062302/568166d5550346895ddaea6f/html5/thumbnails/12.jpg)
3. System Design• 3.1 System Introduction• 3.2 System Architecture
![Page 13: Web-based P2P Streaming by HTTP](https://reader036.vdocuments.pub/reader036/viewer/2022062302/568166d5550346895ddaea6f/html5/thumbnails/13.jpg)
3.1 System Introduction• Our system• Peer-to-peer architecture• No need of client software •Web UI
![Page 14: Web-based P2P Streaming by HTTP](https://reader036.vdocuments.pub/reader036/viewer/2022062302/568166d5550346895ddaea6f/html5/thumbnails/14.jpg)
3.1System Introduction(cont.)• Discussion and solution• TCP transmission is blocked by firewall• Changing the format of TCP package,
encapsulate it to HTTP POST message• Implementation of BitTorrent’s concept• Using Mozilla LiveConnect method to connect
javascript code in webpage and java object which implement BitTorrent concept
• Representation of video streaming• HTML5 <video>
![Page 15: Web-based P2P Streaming by HTTP](https://reader036.vdocuments.pub/reader036/viewer/2022062302/568166d5550346895ddaea6f/html5/thumbnails/15.jpg)
3.2 System Architecture
![Page 16: Web-based P2P Streaming by HTTP](https://reader036.vdocuments.pub/reader036/viewer/2022062302/568166d5550346895ddaea6f/html5/thumbnails/16.jpg)
3.2 System Architecture(cont.)• Peer Module• User Interface• User’s Browser,
connecting with BitTorrent & Media Player
• BitTorrent• Implementing
BitTorrent Protocol•Media Player• Playing the video
segments received from BitTorrent
![Page 17: Web-based P2P Streaming by HTTP](https://reader036.vdocuments.pub/reader036/viewer/2022062302/568166d5550346895ddaea6f/html5/thumbnails/17.jpg)
3.2 System Architecture(cont.)• Server Module•Web Server• Serving as user
interface, updating main page when the video list have changed
• Tracker Server
![Page 18: Web-based P2P Streaming by HTTP](https://reader036.vdocuments.pub/reader036/viewer/2022062302/568166d5550346895ddaea6f/html5/thumbnails/18.jpg)
4. Experiment• 4.1 Experimental environment• 4.2 Experiment result
![Page 19: Web-based P2P Streaming by HTTP](https://reader036.vdocuments.pub/reader036/viewer/2022062302/568166d5550346895ddaea6f/html5/thumbnails/19.jpg)
4.1 Experimental environment• Using YZU network to do the experiment• First part : Several peers send video requests• Second part : Peers send video requests one by
one• Environment of Server and peers:• One computer as a tracker server and the other as the
initial seed peer. The rest of the peers are using 1301B’s computers.
• Video file format:• 39.8MB Ogg file.
• Testing time:• First stage tests 6 times, second stage tests 2 times.
![Page 20: Web-based P2P Streaming by HTTP](https://reader036.vdocuments.pub/reader036/viewer/2022062302/568166d5550346895ddaea6f/html5/thumbnails/20.jpg)
4.2 Experiment Result
First part Download / Upload speed analysis
![Page 21: Web-based P2P Streaming by HTTP](https://reader036.vdocuments.pub/reader036/viewer/2022062302/568166d5550346895ddaea6f/html5/thumbnails/21.jpg)
4.2 Experiment Result(cont.)
Second part Download / Upload speed analysis
![Page 22: Web-based P2P Streaming by HTTP](https://reader036.vdocuments.pub/reader036/viewer/2022062302/568166d5550346895ddaea6f/html5/thumbnails/22.jpg)
4.2 Experiment Result(cont.)
First part Start Up time analysis
![Page 23: Web-based P2P Streaming by HTTP](https://reader036.vdocuments.pub/reader036/viewer/2022062302/568166d5550346895ddaea6f/html5/thumbnails/23.jpg)
4.2 Experiment Result(cont.)
Second part Startup time analysis
![Page 24: Web-based P2P Streaming by HTTP](https://reader036.vdocuments.pub/reader036/viewer/2022062302/568166d5550346895ddaea6f/html5/thumbnails/24.jpg)
4.2 Experiment Result(cont.)
First part Server Uploading analysis
![Page 25: Web-based P2P Streaming by HTTP](https://reader036.vdocuments.pub/reader036/viewer/2022062302/568166d5550346895ddaea6f/html5/thumbnails/25.jpg)
4.2 Experiment Result(cont.)
Second part Server Uploading analysis
![Page 26: Web-based P2P Streaming by HTTP](https://reader036.vdocuments.pub/reader036/viewer/2022062302/568166d5550346895ddaea6f/html5/thumbnails/26.jpg)
5.Future work• Improving performance • Piece selection Algo.• Peer switch policy
• Optimizing interface• Adding Live streaming support
![Page 27: Web-based P2P Streaming by HTTP](https://reader036.vdocuments.pub/reader036/viewer/2022062302/568166d5550346895ddaea6f/html5/thumbnails/27.jpg)
6. References• [1] Peer-to-peer network: • A Survey and Comparison of Peer-to-Peer Overlay Net
work Schemes. Eng Keong Lua, Jon Crowcroft, Marcelo Pias, Ravi Sharma, Steven Lim. IEEE, 2005.
• [2] BitTorrent: • Incentives Build Robustness in BitTorrent. Bram
Cohen, 2003.• [3] PPLive. http://pplive.com• [4] PPStream. http://www.ppstream.com/• [5] Vuze. http://azureus.sourceforge.net/index.php• [6] Bitcomet. http://www.bitcomet.com/index.php• [7] 其他方面 .
http://en.wikipedia.org/wiki/BitTorrent_(protocol)#Others
![Page 28: Web-based P2P Streaming by HTTP](https://reader036.vdocuments.pub/reader036/viewer/2022062302/568166d5550346895ddaea6f/html5/thumbnails/28.jpg)
5. References(cont.)• [8] Gnutella http://www.gnutellaforums.com/• [9] BitTube. B. Liu and Y. Cui and B. Chang and B.
Gotow and Yuan Xue. • BitTube: Case Study of a Web-based Peer-Assisted
Video-on-Demand System. In 2008.• [10] BitTorrent protocol.
http://en.wikipedia.org/wiki/BitTorrent_(protocol)• [11] Mozilla LiveConnect. • https://developer.mozilla.org/en/JavaScript/Guide/L
iveConnect_Overview
![Page 29: Web-based P2P Streaming by HTTP](https://reader036.vdocuments.pub/reader036/viewer/2022062302/568166d5550346895ddaea6f/html5/thumbnails/29.jpg)
5. References(cont.)• [12] Mozilla Firefox addons: • https://addons.mozilla.org/zh-TW/firefox/• [13] RFC2616 HTTP protocol: • http://www.w3.org/Protocols/rfc2616/rfc2616.html• [14] BitTorrent. http://bittorrent.com• [15] Peer-to-peer media streaming application
survey. Sébastien Vénot, Lu Yan. IEEE 2007.• [16] Will IPTV Ride the Peer-to-peer Stream?
Alexandro Sentinelli, Gustavo Marfia, Mario Gerla, and Leonard Kleinrock. IEEE 2007.
![Page 30: Web-based P2P Streaming by HTTP](https://reader036.vdocuments.pub/reader036/viewer/2022062302/568166d5550346895ddaea6f/html5/thumbnails/30.jpg)
Q&A