Font Size: a A A

Design And Implementation Of A Live Streaming Server Baesd On P2P And CDN

Posted on:2014-04-01Degree:MasterType:Thesis
Country:ChinaCandidate:B JiangFull Text:PDF
GTID:2268330401465833Subject:Computer software and theory
Abstract/Summary:PDF Full Text Request
With the rapid development of internet, the live streaming media system has beenwidely applied in various aspects. Unlike traditional live streaming technology, CDNhas advantages such as content management, global load balance. Moreover, P2P dosevery well in terms of resource utilization and scalability. Therefore, by combining theadvantages of both, a live streaming system based on P2P and CDN can have highreliability and scalability, which can server the users better.In this thesis, do much research on the streaming media technology, CDN and P2Pfirstly, and then propose a live streaming media distribution system based on P2P andCDN which is called PPSCDN(Peer-to-Peer Streaming Content Delivery Network). Inthe system, CDN serves as the foundation, and the overall network is divided intomultiple edge domains according to position strategy. Between edge domains DHT isused to index global content, and in each edge domain a P2P network based on Mesh isused to provide users with live services. In this thesis, I am responsible for the designand implementation of live-streaming Partition Server, and the main researchachievements are follows:(1)Design and implement the PPSCDN’s key business processes such as intelligentpublish mechanism, load balancing, and system disaster recovery, etc.(2)In order to access multiple live streams, design and implement a live streamingmedia server based on multi-process, non-blocking I/O and Epoll event-driven model.The server consist of one main process and many live process, an the main process isused to manage those live processes, and live process is to access the source stream andserve users. Both of them use UNIX domain socket as the efficient inter processcommunication way.(3)Design and implement an efficient protocol parser to parse standard RTP/RTSPdata and pack the media data as live P2P data packets which contains sequence number.(4)Design and implement the data cache buffer structure based on circular queueand memory pool. The server uses this buffer structure to cache and eliminate datapackets, and use Epoll to complete efficient data distribution and speed control, etc. (5)Design a node selection strategy based on the contribution of the node. Theserver will choose qualified nodes as its child node, and distribute data to those childrenefficiently, at the same time eliminate those unqualified nodes.After strict testing, it’s proved that the live streaming media server based-on CDNand P2P can provide high concurrent users with low CPU usage and high throughput.
Keywords/Search Tags:CDN, Data distribution, Network server framework, P2P
PDF Full Text Request
Related items