Measurements on the Spotify Peer-Assisted Music-on-Demand Streaming System



Similar documents

P2P: centralized directory (Napster s Approach)

Aqua Accelerated Protocol (AAP) For Mac User Manual

Citrix Application Streaming. Universal Application Packaging and Delivery Breaking Away from Traditional IT

IVR (Interactive Voice Response) Operation Manual. Copyright 2012 Agile Networks, Inc. All Rights Reserved.

Protocols. Packets. What's in an IP packet

Unit 3 - Advanced Internet Architectures

The Role and uses of Peer-to-Peer in file-sharing. Computer Communication & Distributed Systems EDA 390

CSCI-1680 CDN & P2P Chen Avin

Delft University of Technology Parallel and Distributed Systems Report Series. Understanding User Behavior in Spotify

A Measurement Study of Peer-to-Peer File Sharing Systems

HW2 Grade. CS585: Applications. Traditional Applications SMTP SMTP HTTP 11/10/2009

Advanced Peer to Peer Discovery and Interaction Framework

The Feasibility of Supporting Large-Scale Live Streaming Applications with Dynamic Application End-Points

1. The Web: HTTP; file transfer: FTP; remote login: Telnet; Network News: NNTP; SMTP.

Source Live 2.0 User Guide

Should Internet Service Providers Fear Peer-Assisted Content Distribution?

Tuning Tableau Server for High Performance

Mobile Devices: Server and Management Lesson 05 Service Discovery

Internet access for home and business. home business internet

LogMeIn Hamachi. Getting Started Guide

What is a NAS drive...?

District of Columbia Courts Attachment 1 Video Conference Bridge Infrastructure Equipment Performance Specification

Hardware Configuration Guide

Live and On-Demand Video with Silverlight and IIS Smooth Streaming

Bandwidth Control. Table of Contents. General Information. Summary. Specifications

On the Penetration of Business Networks by P2P File Sharing

Kontiki Enterprise Video Platform

Receptionist-Small Business Administrator guide

Peer-to-Peer Networks. Chapter 6: P2P Content Distribution

Copyright (Infringing File Sharing) Amendment Bill further glossary of terms relating to File Sharing and the Digital Environment

The Internet is Flat: A brief history of networking over the next ten years. Don Towsley UMass - Amherst

CDN and Traffic-structure

VIA CONNECT PRO Deployment Guide

Challenges, Design and Analysis of a Large-scale P2P-VoD System

Trace Driven Analysis of the Long Term Evolution of Gnutella Peer-to-Peer Traffic

On the Penetration of Business Networks by P2P File Sharing

A. Related Measurement Work on Mesh-pull Streaming Systems

Computer Networks and the Internet

Strategies. Addressing and Routing

Kollective Technology Overview

Key Term Quiz Answers

CS 360 Internet Programming

Providing Video-on-Demand using Peer-to-Peer Networks

networks Live & On-Demand Video Delivery without Interruption Wireless optimization the unsolved mystery WHITE PAPER

Step-by-Step Configuration

Professor Yashar Ganjali Department of Computer Science University of Toronto.

Step-by-Step Configuration

Delivering SharePoint Solutions with Citrix Application Delivery Infrastructure

Microsoft Smooth Streaming

CNT5106C Project Description

Kontiki Enterprise Content Delivery Network

DDoS Vulnerability Analysis of Bittorrent Protocol

Three short case studies

MEGA Web Application Architecture Overview MEGA 2009 SP4

Adaptive HTTP streaming and HTML5. 1 Introduction. 1.1 Netflix background. 1.2 The need for standards. W3C Web and TV Workshop, 8-9 February 2011

System Requirement Specification for A Distributed Desktop Search and Document Sharing Tool for Local Area Networks

Source-Live 1.3 User Guide

Lync for Mac 2011 Deployment Guide

Peer-to-Peer Networks 02: Napster & Gnutella. Christian Schindelhauer Technical Faculty Computer-Networks and Telematics University of Freiburg

Giving life to today s media distribution services

Auto attendant/greetings/time spans - Hosted PBX 1. Grettings

Skype network has three types of machines, all running the same software and treated equally:

An Active Packet can be classified as

Architectures and protocols in Peer-to-Peer networks

LAN TCP/IP and DHCP Setup

Cisco WAAS Express. Product Overview. Cisco WAAS Express Benefits. The Cisco WAAS Express Advantage

Wowza Media Systems provides all the pieces in the streaming puzzle, from capture to delivery, taking the complexity out of streaming live events.

SAN/iQ Remote Copy Networking Requirements OPEN iscsi SANs 1

Ring Protection: Wrapping vs. Steering

Multicast vs. P2P for content distribution

Automated Planning for Open Network Architectures Alexey Rudenko

YouServ: A Web Hosting and Content Sharing Tool for the Masses

Customer Site Requirements for incontact Workforce Optimization

BUSINESS PROCESSING GIANT TURNS TO HENSON GROUP TO ENHANCE SQL DATA MANAGEMENT SOLUTION

Challenges of Sending Large Files Over Public Internet

VIA COLLAGE Deployment Guide

The Internet. Charging for Internet. What does 1000M and 200M mean? Dr. Hayden Kwok-Hay So

Multimedia transmission in a managed P2P network: making sense?

Scalable Internet/Scalable Storage. Seif Haridi KTH/SICS

Internet access for home and business. home business internet

ADOBE FLASH PLAYER Local Settings Manager

ibaby Monitor Model: M3s User Manual

Final for ECE374 05/06/13 Solution!!

First Midterm for ECE374 03/24/11 Solution!!

RWC4YD3S723QRVHHHIZWJXPTQMO6GKEQR

IP Traffic Measurements 2008 Mobile Internet Usage Patterns

Peer-to-Peer: an Enabling Technology for Next-Generation E-learning

Component Details Notes Tested. The virtualization host is a windows 2008 R2 Hyper-V server. Yes

Aqua Connect Load Balancer User Manual (Mac)

Serving Media with NGINX Plus

Dynamic Content Acceleration: Lightning-Fast Web Apps with Amazon CloudFront and Amazon Route 53

DSL-2600U. User Manual V 1.0

PHOENIX NETWORKS PARTNERS

Segmented monitoring of 100Gbps data containing CDN video. Telesoft White Papers

ReadyNAS Replicate. Software Reference Manual. 350 East Plumeria Drive San Jose, CA USA. November v1.0

Internet and Intranet Calling with Polycom PVX 8.0.1

Getting Started. Version 3.1 Last updated 2014/3/10. Orbweb ME: Getting Started

How to handle Out-of-Memory issue

HIVE STREAMING. Mikael Högqvist Senior Research Engineer 07/05/14 1

Transcription:

The Spotify Protocol on the Spotify Peer-Assisted Music-on-Demand Streaming System Mikael Goldmann KTH Royal nstitute of Technology Spotify gkreitz@spotify.com P2P 11, September 1 2011 on Spotify

Spotify Protocol overview P2P Overlay What is Spotify? On-demand peer-assisted music streaming Large catalog of music (over 15 million tracks) Available in US and 7 European countries, over 10 million users Over 1.6 million subscribers Fast (median playback latency of 265 ms) Legal on Spotify

The Spotify Protocol Spotify Protocol overview P2P Overlay Business dea More convenient than piracy Spotify Free (ads, 10h/month, invite needed in US) Spotify Unlimited (no ads, on computer) Spotify Premium (no ads, mobile, offline, AP) on Spotify

The Spotify Protocol Spotify Protocol overview P2P Overlay Business dea More convenient than piracy Spotify Free (ads, 10h/month, invite needed in US) Spotify Unlimited (no ads, on computer) Spotify Premium (no ads, mobile, offline, AP) on Spotify

The Spotify Protocol Spotify Protocol overview P2P Overlay Desktop Client on Spotify

The Spotify Protocol Spotify Protocol overview P2P Overlay Smartphone Client on Spotify

The Spotify Protocol Spotify Protocol overview P2P Overlay Hardware Clients on Spotify

The Spotify Protocol Spotify Protocol overview P2P Overlay Speed Photo by moogs http://www.flickr.com/photos/anjin/23460398/, CC BY NC ND 2.0 on Spotify

The Spotify Protocol Spotify Protocol overview P2P Overlay Overview of Spotify Protocol Proprietary protocol Designed for on-demand streaming Only Spotify can add tracks 96 320 kbps audio streams (most are Ogg Vorbis q5, 160 kbps) Relatively simple and straightforward design Photo by opethpainter http://www.flickr.com/photos/opethpainter/3452027651, CC BY 2.0 on Spotify

Spotify Protocol overview P2P Overlay Spotify Protocol (Almost) Everything encrypted (Almost) Everything over TCP Multiplex messages over a single TCP connection Persistent TCP connection to server while logged in on Spotify

Spotify Protocol overview P2P Overlay Caches Player caches tracks it has played Default policy is to use 10% of free space (capped at 10 GB) Caches are large (56% are over 5 GB) Over 50% of data comes from local cache Cached files are served in P2P overlay on Spotify

Spotify Protocol overview P2P Overlay Streaming a Track Request first piece from Spotify servers Meanwhile, search for peers with track Download data in-order When buffers are sufficient, only download from P2P Towards end of a track, start prefetching next one on Spotify

Spotify Protocol overview P2P Overlay P2P Structure Unstructured overlay Nodes have fixed maximum degree (60) Neighbor eviction by heuristic evaluation of utility No overlay routing A user only downloads data she needs on Spotify

The Spotify Protocol Spotify Protocol overview P2P Overlay Downloading in P2P Ask for most urgent pieces first f a peer is slow, re-request from new peers When buffers are low, download from central server as well When doing so, estimate what point P2P will catch up from f buffers are very low, stop uploading on Spotify

Spotify Protocol overview P2P Overlay Music vs. Movies Music Small (5 minutes, 5 MB) Many plays/session Large catalog Active users Main problem: peer discovery Movies Large (2 hours, 1.5 GB) High bit rate Main problem: download strategy on Spotify

Spotify Protocol overview P2P Overlay Music vs. Movies Music Small (5 minutes, 5 MB) Many plays/session Large catalog Active users Main problem: peer discovery Movies Large (2 hours, 1.5 GB) High bit rate Main problem: download strategy on Spotify

The Spotify Protocol Spotify Protocol overview P2P Overlay Finding Peers Partial tracker (BitTorrent style) Only remembers 20 peers per track Returns 10 (online) peers to client on query Broadcast query in small (2 hops) neighborhood in overlay (Gnutella style) LAN peer discovery (cherry on top) Client uses all mechanisms for every track on Spotify

Network Evaluation So, how well does it work? Data both from 2010 study (P2P 10) and this work on Spotify

Network Data Sources (from 2010) % 100 90 80 70 60 50 Weekday Morning Data source - ratio - by week Weekend Night RRDTOOL / TOB OETKER 40 30 20 10 0 Mon Tue Wed Thu Fri Sat Sun Mon Cur: Min: Avg: Server 10.86 6.76 9.62 P2P 33.90 23.78 33.86 Cache 55.24 48.47 56.53 on Spotify

Network Data Sources Somewhat sensitive to churn Better P2P performance on weekends 8.8% from servers 35.8% from P2P 55.4% from caches on Spotify

The Spotify Protocol Network Finding Peers (from 2010) Table: Sources of peers Sources for peers Tracker and overlay Only Tracker Only overlay No Peers Found Fraction of searches 75.1% 9.0% 7.0% 8.9% Each mechanism by itself is fairly effective on Spotify

Network The overlay peer discovery mechanism 100 80 Percentage of requests for which peers were found at distance d in overlay search (weekdays) ES F FR GB NL NO SE 60 % 40 20 0 d=1 d=2 d=1 and/or d=2 on Spotify

Network The weekend effect in peer discovery 100 80 Percentage of requests for which peers were found at distance d in overlay search ES,weekday ES,weekend FR,weekday FR,weekend 60 % 40 20 0 d=1 d=2 d=1 and/or d=2 on Spotify

Network Users become slowly disconnected from overlay 60 Median 50 40 Number of peers 30 20 10 0 0 500 1000 1500 2000 2500 3000 3500 Minutes since login on Spotify

Network Users become slowly disconnected from overlay 60 Median 60th percentile 50 40 Number of peers 30 20 10 0 0 500 1000 1500 2000 2500 3000 3500 Minutes since login on Spotify

Network Users become slowly disconnected from overlay 60 50 Median 60th percentile 70th percentile 40 Number of peers 30 20 10 0 0 500 1000 1500 2000 2500 3000 3500 Minutes since login on Spotify

Network Users become slowly disconnected from overlay 60 50 Median 60th percentile 70th percentile 80th percentile 40 Number of peers 30 20 10 0 0 500 1000 1500 2000 2500 3000 3500 Minutes since login on Spotify

Network Users become slowly disconnected from overlay 60 50 Median 60th percentile 70th percentile 80th percentile 90th percentile 40 Number of peers 30 20 10 0 0 500 1000 1500 2000 2500 3000 3500 Minutes since login on Spotify

Network Users become slowly disconnected from overlay 60 50 Median 60th percentile 70th percentile 80th percentile 90th percentile 95th percentile 40 Number of peers 30 20 10 0 0 500 1000 1500 2000 2500 3000 3500 Minutes since login on Spotify

The Spotify Protocol Network NAT types in the wild Photo by roychung1993 http://www.flickr.com/photos/roychung1993/2856744333/, CC BY NC 2.0 on Spotify

Network NAT types in the wild 100 Percentage of P addresses with various NAT properties No NAT 80 60 % 40 20 0 ES F FR GB NL NO SE on Spotify

Network NAT types in the wild 100 80 Percentage of P addresses with various NAT properties No NAT UPnP worked UPnP mismatch UPnP private P 60 % 40 20 0 ES F FR GB NL NO SE on Spotify

The Spotify Protocol Network How many Ps do users have Photo by feria http://www.flickr.com/photos/feria/141613794/, CC BY NC SA 2.0 on Spotify

Network How many Ps do users have 100 Distinct P addresses a user connects from over a week (CDF) GB 90 80 % 70 60 50 40 1 2 3 4 5 6 7 8 9 10 Number of Ps on Spotify

Network How many Ps do users have 100 90 Distinct P addresses a user connects from over a week (CDF) ES GB 80 % 70 60 50 40 1 2 3 4 5 6 7 8 9 10 Number of Ps on Spotify

Network How many Ps do users have 100 90 Distinct P addresses a user connects from over a week (CDF) ES GB NL 80 % 70 60 50 40 1 2 3 4 5 6 7 8 9 10 Number of Ps on Spotify

Network How many Ps do users have 100 90 80 Distinct P addresses a user connects from over a week (CDF) ES F FR GB NL NO SE % 70 60 50 40 1 2 3 4 5 6 7 8 9 10 Number of Ps on Spotify

The Spotify Protocol Network of a large, deployed system Future work Scaling to more users mprovements of P2P protocol More measurements (what are you interested in?) on Spotify