How exactly does Spotify utilise my internet connection?
...And can I control it at all?
As I understand it, from the very limited information available, Spotify uses "encrypted p2p technology"...
Looking at my netmeter I can see a fair amount of upstream bandwidth going out, since I have no p2p client running I can only assume that it's Spotify.
Can I control the ports it uses, or the amount of bandwidth it uses?
I wouldn't care only it's rinsing my ping and I don't want to go over my ISP's fair usage policy during peak hours. Spotify is the sort of thing i'd gladly take out a second line for though.
Thanks in advance :)
As I understand it, from the very limited information available, Spotify uses "encrypted p2p technology"...
Looking at my netmeter I can see a fair amount of upstream bandwidth going out, since I have no p2p client running I can only assume that it's Spotify.
Can I control the ports it uses, or the amount of bandwidth it uses?
I wouldn't care only it's rinsing my ping and I don't want to go over my ISP's fair usage policy during peak hours. Spotify is the sort of thing i'd gladly take out a second line for though.
Thanks in advance :)
18
people have this question
I have this question, too!
Tell me when someone answers.
The more people who ask this question, the more it gets noticed.
The more people who ask this question, the more it gets noticed.
The best answer from the company
-
Spotify uses a peer-to-peer network to relieve the pressure on our
streaming servers. We use a hybrid model where central servers and
peers work in unison to provide you the best, fastest experience in an
economically viable fashion.
Currently, the system is rather naïve, but the long-term goal is for
Spotify to recognize that the Internet connection is used by other
software and scale back it's own use quickly so as never to interfere
with whatever you want to use the connection for.
What sort of control would you like to have over Spotify's behaviour?
It's a trade-off between simplicity and configurability that we're
trying to navigate.
5 people say
this answers the question
-
This reply was removed on 11/06/08.
see the change log -
Inappropriate?Spotify uses a peer-to-peer network to relieve the pressure on our
streaming servers. We use a hybrid model where central servers and
peers work in unison to provide you the best, fastest experience in an
economically viable fashion.
Currently, the system is rather naïve, but the long-term goal is for
Spotify to recognize that the Internet connection is used by other
software and scale back it's own use quickly so as never to interfere
with whatever you want to use the connection for.
What sort of control would you like to have over Spotify's behaviour?
It's a trade-off between simplicity and configurability that we're
trying to navigate.
5 people say
this answers the question
-
If you read the responses to Squizzles question below this post, you'll see many suggestions an comments on this matter. -
I see that many workplaces is blocking spotify. Some advanced port settings should be minimum.
BUT I don't gfet the argument that trade-off between simplicity and configurability. Have a standard, easy configuration menu... WITH AN ADVANCED SETTINGS TAB. How hard can THAT be? -
Inappropriate?Hi Carl,
Thanks for your response.
The simplicity is a good thing, though for people with limited bandwidth or peak restrictions, (we don't all have the luxury of a Swedish internet connection :P), Spotify might do well to provide a little more transparency in this area.
Perhaps an option to display Spotify's current network utilisation and totals, either on the main interface or tucked away in a menu somewhere?
Control over the ports used and the overall upload bandwidth allocated would be ideal, like many others on UK ADSL i have a maximum upload speed of ~45KB/s, so it's difficult. I'd be happy to allow, say, half of that to be dedicated to Spotify.
However, as is the way with p2p, I can see how allowing everyone to restrict their upload speeds could affect overall network performance.
Most users may not care or need to know about / control these things, but for those who do, particularly with the current climate of "fair usage" on UK ISPs, it'd certainly be a great help, and, I'd imagine, would make those users more comfortable.
Certainly a more "intelligent" Spotify that can scale back it's upload rate dynamically when required would solve issues such as the impact on browsing speed. (Nice work)
For now though, the ability to knock it down a tad and keep 10KB/s reserved for browsing would be nice :)
Thanks again, for the response, and for listening.
Regards,
//David
I’m informed
-
Inappropriate?I'd certainly like to see an option to limit upload bandwidth usage. As with Squizzle I have limited upload bandwidth, also my PC isn't the only one on the network that uses that connection, we have game consoles, voip phones and so forth all competing for bandwidth. Scaling back automatically is a nice idea, but would that be able to take into account other devices on the network using the bandwidth?
I'm all for the p2p model, especially when the service is free with a few adverts. However, it would be nice to have some control over the upload rate especially as my upload rate counts towards my monthly bandwidth allowance. But mainly to ensure my connection is never fully used which would have an adverse effect on gaming ping times.
Only signed up to Spotify today, but I have to say I've been very impressed by the music catalogue already.
I’m happy
-
just enjoy it for what it is. you geeks get too bogged down in nonsense. -
Inappropriate?You really need to specify that Spotify uses P2P in the FAQ, because when the client started connecting to dozens of peers I immediately started to think "hmm this is fishy..." = bad experience.
-
Hi Ned,
That's a valid point, we'll work on making it more clear on our site.
Andres -
Inappropriate?I'm not very technically proficient with computers. Could someone explain to me how Spotify uses P2P if no files are actually saved on your computer? ie.. if no files are saved on your computer, then how is someone going to use them via p2p?
-
There is a cache where files are stored. Se the settings (edit - preferences). -
Inappropriate?Hi,
I agree with Ned. The fact that P2P technology isn't properly documented makes the product appear less professional than it is. Nobody feels happy while using a product that appears somewhat fishy.
Personally I would love somewhat control of the upload settings in the preferences window. Like a lot of UK users, Norway's most common connection method is ADSL (followed by 3G mobile connections) and the upload capacity (both bandwidth and no. of. connections is very valuable to us, especially as some equipment is distributed without proper QoS support (for IP Phones, etc.) and the connection capacity of some equipment was never intended for hardcore P2P use.
I hope you will be able to keep the current number of ads.
-
Fishy? WTF?
What's fishy about P2P?
It's a completely legal technology, in many ways superior to the traditional 1-way traffic patterns.
Anyone who says or thinks otherwise has been brainwashed by the music industry, and would do well to check themselves into a mental institution.
Fishy?
Seriously the most stupid comments I've read all month. -
@Oscar, I think the poster didn't mean that P2P was fishy. I think that he meant that the fact it was not more transparently documented that the service is using P2P to run was fishy. Also I think that when he says "fishy" he is not meaning "poentially illegal" as in the sense of record companies getting annoyed at people getting free unauthorised music from other P2P services, but rather that (for some people) they get uneasy using services on their PCs where they don't know exactly how it is working, especially with regard to useage of the internet connection.
My ISP has very specific limits and caps on overall bandwidth use at certain times, and also uses traffic shaping to limit certain protocols like P2P. If I overuse P2P (even totally legally like downloading Linux ISOs!) I can risk getting my overall bandwidth reduced for a month. So for some people it's important to know all the details (under the hood) and not have somethig "fishy" that they don't quite understand what it's doing.
:-) -
@achookang: Fair enough, it was probably just a knee-jerk reaction.
Part of the point still stands though -- people have been brainwashed into thinking p2p is fishy/illegal/unsafe/etc.
The transfer protocol or bandwidth usage shouldn't really matter, caps aside, so long as the usage is reasonable.
Basically, when I pay for a certain amount of bandwidth, I expect to be able to use it whenever and however I please. If my ISP oversubscribes their infrastructure, that's their problem.
Bandwidth isn't a limited resource per se (other than when you're on a contract with caps, and I feel for those of you who are limited by them), i.e., it won't run out -- it's there whether you use it or not, and 99% of the customers never use what they're able to.
In other words, if I'm using 20% of my upstream, I don't care if the remaining 80% go towards Spotify -- p2p or not --, so long as it doesn't cause congestion or affects the rest of my traffic.
Straying a bit off topic..
What country are you in that you're forced to suffer through the horrid concept of caps?
U.K? I believe most of Europe has done away with it now, and most ads (at least here in good ol' Sweden) are starting to reflect reality.
My ISP went out a bunch of months ago and said "We want the industry to change. We want to get rid of all the misleading advertising campaigns, and so we'll start by setting a good example.".
They no longer advertise "up to X Mbps", but rather "between X and Y Mbps" (in my case between 60 and 100 Mbps downstream, 8-10Mbps upstream :-P ), and so far it's held true every time I've measured against the national testing infrastructure, no matter the ISP I'm testing against.
Hell, my upstream more often than not reaches 16Mbps in real world examples, and 20-30Mbps against the test servers.
Maybe that's why I don't really care how much Spotify uses -- I have plenty of available bandwidth, and if I'm not using it to its full extent, I'm not getting the best bang for the buck :-P -
@Oscar. Hi! I agree with almost everything you say (especially the bit about feeling sorry for those of us unfortunate to be "capped" :-) ) The only bit I disagree is that bandwidth is a finite resource at least here. The network cannot transmit unlimited data, and ISPs have limited bandwidth. True they limit it further by their caps etc, but it is not unlimited. Most of us here use copper wires and old ADSL technology to get their internet... For you it may seem unlimited because you are lucky enough to have a better network and the availability is much greater than the demand...not so lucky here..!
As you guessed I am in the UK, the broadband backwaters of Europe it seems. Most people here get BB via ADSL (usually "up to 8 meg" ADSL Max packages, and a smaller but growing percentage getting ADSL2+ service. There is cable and the only cable company here (Virgin) has recently been trialling 50mbps service, but this is not available everywhere.
Useful info: http://www.samknows.com/broadband/new...
So here, we get on average 4.3mpbs (although this is because a few lucky people get the much faster cable or ADSL2+ speeds so the larger percentage of people get lower speeds. I get 1.8mpbs on ADSLMax living 4.5km from my local telephone exchange.)
So with this background the problem is that most of the ISPs here either explicitly or somewhat covertly (non-transparently) have some form of capping. I have a 20GB per month peak time cap (1600-0000hrs) although I rarely get near this. However My ISP also does traffic shaping (that is where the different protocols come in) and restrict certain types of traffic at certain times and depending on what package you are paying for. A lot of ISPs do this, although most don't lay out in detail how. (My ISP does: http://www.plus.net/support/broadband... )
I can understand the ISPs doing this in a way, since previously most P2P use has been illegal and heavy downloading of video content (TV shows etc). (I certainly don't want my access speeds compromised by contention issues, because my neighbor decides to download the entire series of West Wing from the Pirate Bay!) But more recently a lot of legitimate use has come along (like the BBC iPlayer which gets heavy use here in the UK although is no longer using P2P and apps like Spotify)
I applaud you ISP for trying to have non-misleading advertising. This has been a big problem here in the UK with consumers EXPECTING 8mbps speeds with their packages advertised as "Up to 8" because its not explained and the public just look at the headline figure. Of course in the small print it always says "depends on your distance from telephone exchange" etc. but who reads the small print?
BTW my upstream is about 400kps and this is about average for much of the UK.
So maybe we in the UK will eventually catch up with the rest of the world but I am not holding my breath. On the other hand I'm sure a lot of the rest of the world is in a similar position.... you lucky guys in Sweden seem to be particularly well off... you are the S Korea of Europe! ;)
Back on topic: I love Spotify but if it is to spread its wings and get widespread worldwide use it should take account of different ways that broadband is used in different locations, and help users tailor the way it uses things to their available connection. -
The thing with bandwidth being limited is that it's so cheap to increase the amount of available bandwidth (back in the good 'ol days, we paid £200 per megabit, compared to the £20-30 per megabit these days). Sure, the routers cost a bit of money, but in the end just lighting up another strand of fiber is a pretty decent investment, so the infrastructure part is definitely not a problem.
Last mile is where people usually end up suffering, but we've managed to solve it over here (though Telia, our equivalent to your BT are reserving quite a bit of space in the actual exchange for their own use, limiting competition). In other words, we've been through the DSL hell that you're still locked in -- with the exception that we never had caps -- so you should be able to get through it too.
Our copper lines are old, and it took a while for ISPs to be interested in providing anything but paid dialup. By the time you ushered in free or flat rate dialup, we still paid by the minute.
We basically have one provider to thank for the state of broadband in Sweden -- Bredbandsbolaget (funnily enough, one of the early investors was NTL. Yes, that NTL ;) ), who wanted to provide FTTH.
They sparked an interest in high-speed Internet, and a DSL competitor shot up almost overnight (Bostream, later on picked up by Bredbandsbolaget), providing 24Mbps DSL at a time when most DSL providers were offering 8Mbps.
Now, a lot of the country is still on DSL or cable -- but 98% (last time I checked) of the population can get 8Mbps DSL, with large parts of the population being able to get 24Mbps.
Uni towns more often than not can get 100/100 pipes or even gigabit pipes cheaper than what even I pay, at less than twenty quid per month.
Having spent a fair bit of time in Australia and a brief stint in England, I've bumped into their caps quite a bit, pissing me off to no end.
For Australia it's not so much last-mile or the national infrastructure, as them being removed from major peering points being the problem (i.e., everything is fine up until the point where the traffic leaves the country).
The U.K. doesn't have that problem, and it's possible to get quite a bit out of old copper lines -- but ISPs with a working profit model aren't interested in change.
Why start subscribing 20 users per megabit when you can subscribe 200?
As you say, hopefully BBC's iPlayer will help push technology upgrades -- I wish I'd get to stream Doctor Who instead of downloading it (though I do have access to BBC Prime, but still..).
All in all though, even 4.3/400 should be enough to run Spotify and surf around comfortably (most websites would hesitate to push even 1Mbps your way) -- it's video media that's the big problem (along with our friend Deceptive Advertising)
Now, while I've been enjoying 100Mbit connections the past few years, that is region specific, and it wasn't until mid-december that the ISP started advertising actual speeds -- we're still trying to improve things, as it can always get better.
I'd guess one of the major reasons Spotify started over here is that pretty much everyone has bandwidth to spare, making it easy to gain consumer acceptance.
My guess (and hope) is that while it might be a few years until you get FTTH outside limited trials, you'll at least have bandwidth caps removed or drastically increased, allowing you to enjoy the Internet just a little bit more :) -
Really interesting to hear about how broadband has evolved over the years in different countries! I remember those good ol' days of pay per minute dial up connections (on a 14.4K modem!)
I hope that Virgin's introduction of their 50meg cable service will stimulate some more competition here. Also the trials of FTTC (FTTH seems a less likely prospect here unless BT get a big subsidy or other financial incentive) are ongoing so maybe that will come to fruition in the next few year!
I like that the one benefit we still have here in the UK is ready access to Dr Who :-) -
Inappropriate?I am so lucky to just have gotten a 10/10Mbps fiberline, and it would be great if Spotify could adjust its quality to the actual bandwith or maybe setting the quality/bandwith manually.
I’m excited
-
Inappropriate?Some kind of UL / DL ratio could prevent people from setting their bandwidth limit too low. Lets say that the current ratio affects the priority the client gets in DL streaming. Everything will work fine most of the times, but when the system starts to reach peak load, streaming will prioritize the clients that is also producing traffic in the UL direction. By cranking up the UL-limit in the client you can then get a better DL-stream.
-
Inappropriate?I don't know if this helps, but if you feel for some reason that you really need to be able to throttle Spotify's upload, and set aside different "quotas" for upload speed you might consider something like the program Netlimiter. But I don't think this should be a concern for the normal user.
Happy Holidays!
I’m happy
1 person says
this answers the question
-
Inappropriate?This works well for me on Debian Linux, should work on other *bsd and *nixes as well.
http://eric.persson.tm/?id=public:thr... -
For OS X, dummynet has been available in the kernel since 10.4, meaning basic shaping can be done with ipfw.
http://www.macgeekery.com/hacks/softw... is a pretty good guide for it, but there are problems:
* I've never gotten it to effectively do anything
* It doesn't do QoS at all, which is where things would get interesting
throttled (and Throttled Pro for an easy-to-use version) appear to be more interesting from a quick glance.
http://www.intrarts.com/throttled.html
Personally, I don't care about Spotify's bandwidth usage, but ther ARE still bandwidth impaired people out there -- a shame considering the times we live in. -
Inappropriate?i feel sorry for all these people with adsl. Thank god for sweden. 100\100mbit standard in my neighbourhood. plz tell your country that is 2009 not 1990. :)
-
I live in sweden close to Gothenburg and the best I can get is 8/0,8 ADSL line so not everyone in sweden is as lucky as you and Oscar. -
Inappropriate?I think an UL/DL ratio limit, like Smidde suggested, would be acceptable as long as Spotify is for free.
-
Inappropriate?I'm having problems with Spotify together with games. Spotify is causing massive upload spikes, that take up 99% of my bandwidth, making the online game unplayable for a short while (10 seconds or so). This is annoying me greatly, anything I can do? (windows)
-
You could quit Spotify if you're going to play games.
Otherwise, have a look at NetLimiter. It might be frowned upon (as, if everyone were to limit the upstream, the swarm would suffer), but it does solve your problem. -
Awesome, thanks. That worked perfectly. Neat piece of software too. -
Inappropriate?You may want to consider an application such as NetLimiter or BWMeter. Both of which provide lots of useful information about bandwidth usage as well as tools to help you control the traffic from applications more effectively (even using scheduling). Of the two I personally prefer NetLimiter but the choice is yours.
Regards, Jonathan.
I’m happy
1 person says
this answers the question
-
Inappropriate?For users running Spotify in the UK, is Spotify uploading content? I can see this causing problems for using Spotify at work if there's no option to turn it off.
Also, I can't find any mention of P2P or uploading on spotify.com.
I’m wondering
-
Yes, it uploads (since it's p2p, just like the first answer in this topic says). -
Most places of work won't allow incoming connections through the firewall. If the application does work for you then its likely it won't be uploading, simply downloading only. -
In a work environment its highly likely their firewalls wont be setup to allow incoming connections as spotify desires. Hence uploading will be very minimal if any at all. -
Inappropriate?It seems to send data in bursts, which makes it a lot worse than necessary. The 16kB/s it was sending when I checked wouldn't be a problem at all for me, but the fact that it was all sent in one burst ever second meant huge lag spikes when I was gaming online. (16 kB is enough to flood a 768 kbps upload for 160ms.)
It should be fairly easy to improve this behavior imho. -
Inappropriate?My question is... if it's uploading content, surely it can only be uploading what I am listening to?
-
Or what you have listened to recently. -
yeah, that too ;-) -
Inappropriate?The current method (with bursts) could interrupt VOIP and gaming traffic in some cases.
It also uses bandwidth when you are not playing music yourself (and you have forgotten that it is still running). In this case it would be nice if it stopped using your bandwidth after a period of inactivity (e.g. after 15 or 30 minutes).
Another nice idea would be that if you contributed quite a lot of bandwidth to Spotify, then you would receive gifts (for example: higher listening quality, invites or a free day pass), i.e. 'if you scratch our back, we'll scratch yours'.
I’m hopeful
Loading Profile...



EMPLOYEE



