Replication Strategies for Streaming Media
Total Page:16
File Type:pdf, Size:1020Kb
“replication-strategies” — 2007/4/24 — 10:56 — page 1 — #1 Research Report No. 2007:03 Replication Strategies for Streaming Media David Erman Department of Telecommunication Systems, School of Engineering, Blekinge Institute of Technology, S–371 79 Karlskrona, Sweden “replication-strategies” — 2007/4/24 — 10:56 — page 2 — #2 °c 2007 by David Erman. All rights reserved. Blekinge Institute of Technology Research Report No. 2007:03 ISSN 1103-1581 Published 2007. Printed by Kaserntryckeriet AB. Karlskrona 2007, Sweden. This publication was typeset using LATEX. “replication-strategies” — 2007/4/24 — 10:56 — page i — #3 Abstract Large-scale, real-time multimedia distribution over the Internet has been the subject of research for a substantial amount of time. A large number of mechanisms, policies, methods and schemes have been proposed for media coding, scheduling and distribution. Internet Protocol (IP) multicast was expected to be the primary transport mechanism for this, though it was never deployed to the expected extent. Recent developments in overlay networks has reactualized the research on multicast, with the consequence that many of the previous mechanisms and schemes are being re-evaluated. This report provides a brief overview of several important techniques for media broad- casting and stream merging, as well as a discussion of traditional IP multicast and overlay multicast. Additionally, we present a proposal for a new distribution system, based on the broadcast and stream merging algorithms in the BitTorrent distribution and repli- cation system. “replication-strategies” — 2007/4/24 — 10:56 — page ii — #4 ii “replication-strategies” — 2007/4/24 — 10:56 — page iii — #5 CONTENTS Contents 1 Introduction 1 1.1 Motivation . 2 1.2 Outline . 3 2 Multicast 5 2.1 IP Multicast . 5 2.2 Application Layer Multicast . 13 2.3 Summary . 17 3 Broadcasting Strategies 19 3.1 Terminology . 19 3.2 Conventional Broadcasting . 20 3.3 Staggered Broadcasting . 20 3.4 Pyramid Schemes . 20 3.5 Staircase Schemes . 22 3.6 Harmonic Schemes . 22 3.7 Hybrid Schemes . 23 3.8 Summary . 23 4 Stream Merging Strategies 25 4.1 Batching . 25 4.2 Piggybacking . 26 4.3 Patching . 28 4.4 Chaining . 30 4.5 Hierarchical and Hybrid Merging . 31 4.6 Summary . 32 5 Caching Strategies 33 5.1 Replacement Policies . 34 5.2 Segment-based Caching . 36 5.3 Smoothing and Pre-fetching . 37 5.4 Summary . 37 iii “replication-strategies” — 2007/4/24 — 10:56 — page iv — #6 CONTENTS 6 BitTorrent Streaming 39 6.1 BitTorrent . 39 6.2 State of the Art . 41 6.3 Streaming Extensions for BitTorrent . 42 6.4 Summary . 45 7 Summary and Future Work 47 7.1 Future Work . 47 iv “replication-strategies” — 2007/4/24 — 10:56 — page v — #7 LIST OF FIGURES List of Figures 2.1 Group Communication. 5 2.2 Multicast architectures. 15 3.1 Stream parameters. 20 4.1 Batching methods for a single video object. 26 4.2 Piggybacking system state . 27 4.3 Chaining . 31 v “replication-strategies” — 2007/4/24 — 10:56 — page vi — #8 LIST OF FIGURES vi “replication-strategies” — 2007/4/24 — 10:56 — page vii — #9 LIST OF TABLES List of Tables 2.1 Group communication types. 7 3.1 Pagoda segment-to-channel mapping . 23 vii “replication-strategies” — 2007/4/24 — 10:56 — page viii — #10 LIST OF TABLES viii “replication-strategies” — 2007/4/24 — 10:56 — page 1 — #11 Chapter 1 Introduction One of the applications expected to become the next “killer application” on the Internet is large-scale multimedia distribution. One indicator of this is the development of the Internet Multimedia Subsystem (IMS). The IMS is a result of work of the 3rd Generation Partnership Project (3GPP), and was first published as part of release 5 of the Univer- sal Mobile Telecommunications System (UMTS) in March 2003 [1]. Multimedia is thus considered as being an integral part of the next generation telecommunication networks, and the Internet as the primary distribution channel for this media. The IMS is not the first proposed media-related killer application for the Internet. A multitude of media applications were suggested in connection with the appearance of Internet Protocol Multicast (IPMC) [2–4]. IPMC provided a method to send IP datagrams to several recipients without increasing the amount of bandwidth needed to do this. In effect, IPMC provided a service similar to that of the television broadcasting service, where clients choose to subscribe to a specific TV or multicast channel. Though IPMC was a promising technical solution, it also posed new and difficult problems that did not need to be considered in traditional unicast IP. For instance, there is no notion of a receiver group in unicast communication, and new mechanisms and protocols were needed to address issues of group management, such as the latency of joining and leaving a group, how to construct multicast trees, etc. Additionally, the acknowledge-based congestion control algorithm used in unicast Transport Control Protocol (TCP) could not be used for multicast without modifications, as it would result in an overload of incoming acknowledgements to the source, effectively performing a distributed denial- of-service attack. As IPMC was not natively implemented in most IP routers at the time, the Multicast Backbone (MBone) [5] was put forth as an interim solution until router manufacturers got around to implementing IPMC in their hardware. The MBone provides an overlay network, which connects IPMC capable parts of the Internet via unicast links. However, connecting to the MBone requires administrative support, and not all Internet Service Providers (ISPs) allow access through their firewalls to provide MBone tunneling. Thus, IPMC is still not deployed to a significant extent in the Internet. Additionally, as there were no real killer applications making use of IPMC, ISPs have been reluctant to increase their 1 “replication-strategies” — 2007/4/24 — 10:56 — page 2 — #12 CHAPTER 1. INTRODUCTION administrative burden for providing a service which is not requested by their customers. An additional issue with IPMC is that it lacks native buffering capabilities. This becomes a significant problem when providing streaming services, and many solutions have been proposed to solve this problem. Patching (Section 4.3) [6] and Chaining (Section 4.4) are examples of solutions using both application layer caching for buffering and IPMC for transmission. Another way is to move the functionality of the network layer to the application layer, thus forming overlay networks that can take into account more diverse parameters and provide more complex services, while at the same time simplify deployment and remove the dependence on the underlying infrastructure. One specific type of overlay network that has been gaining attention during the last few years are the Peer-to-Peer (P2P) networks. Systems such as Napster [7], Gnutella [8], eDonkey [9] and BitTorrent [10] have been used for searching for or distributing files by millions of users. Additionally, much research is being done on implementing multicast as an overlay service, i. e., Overlay Multicast (OLMC). Systems such as End-System Multicast (ESM) [11] and PeerCast [12] are being used to stream video and audio to large subscriber groups. Furthermore, approaches such as Distributed Prefetching Protocol for Asynchronous Multicast (dPAM) [13] and oStream [14] provide intelligent application layer multicast routing and caching services. Overlay systems based on Distributed Hash Tables (DHTs) have also been used to provide multicast services, e. g., Bayeux [15], Scribe [16] and Application Level Multicast Infrastructure (ALMI) [17]. BitTorrent is currently one of the most popular P2P applications [18], and proposals for adapting it to provide streaming services have been put forth. While the original BitTorrent distribution model was designed for distributing large files in an efficient way, researchers have designed adaptations to the BitTorrent protocols and mechanisms so as to be able to use them as foundations for streaming systems [19, 20]. 1.1 Motivation This research report has been written as part of the Routing in Overlay Networks (ROVER) project, partially funded by the Swedish Foundation for Internet Infrastructure (IIS). The main research area of ROVER is on multimedia distribution in overlay net- works, with particular focus on streaming and on-demand delivery services. While there are several surveys of broadcasting mechanisms and stream merging mechanisms, e. g., [21–23], and a large amount of publications on Application Layer Multicast (ALM) and P2P systems intended for Video-on-Demand (VoD), there is little information on applying the ideas and mechanisms from the former to the latter. In this report, we provide an overview of four related topics: multicast systems, broadcasting strategies, stream merging strategies and caching mechanisms. These form a foundation for a further discussion on using them in a BitTorrent-based system for VoD. We discuss multicast, as this is the technology that best fits large-scale media distribution. Broadcasting strategies are considered because of the scheduling aspects of multimedia transmissions. Stream merging strategies are discussed because of their bandwidth-conserving capability and relation to both broadcasting and caching. We 2 “replication-strategies” — 2007/4/24 — 10:56 — page 3 — #13 1.2. OUTLINE also consider caching strategies, as these are important for decreasing bandwidth con- sumption, as well as for ALM to perform well in comparison with IPMC. In short: • Multicast systems (both IPMC and ALM) provide the group transmission capabili- ties (e. g., addressing and forwarding) necessary for media distribution to multiple clients. • Broadcast strategies concern mechanisms for the segmentation of media objects and scheduling of media streams. • Stream merging strategies concern mechanisms for the reduction of bandwidth consumption, typically by caching stream data in application for later redistribu- tion. • Caching strategies concern mechanisms for the buffering of media streams at in- termediary nodes. In the BitTorrent discussion provided in Chapter 6, we consider these mechanisms in relation to the BitTorrent algorithms.