Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Pulseaudio RTP throttles network
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
acksys
n00b
n00b


Joined: 31 Mar 2008
Posts: 2
Location: Minneapolis MN

PostPosted: Mon Mar 31, 2008 3:58 am    Post subject: Pulseaudio RTP throttles network Reply with quote

Hello, all. I hope you can assist me with a problem. Google has returned little relevant (to me) info on this topic.

I installed Pulseaudio 0.9.9 on two of my machines today: a desktop running Ubuntu Gutsy, and my laptop running Gentoo. I would like to have the Gentoo machine send its audio to the Ubuntu machine over my LAN (Linksys 54Mbps Wireless-G router), so any audio I play comes from the speakers connected to the Ubuntu machine.

While this works using the module-rtp-send module, I've encountered a couple of perplexing network issues with this setup.

1) The 10/100 wireless card can't meet the 1.39Mbps throughput requirement. I'm chalking this up to a configuration problem at this point at moving on. Works okay wired.

2) The bigger problem is that when I'm playing audio over the network, it throttles my LAN so badly that I can't even access the router interface (with either machine). Sites load very slowly or not at all. Here's the data:

http://www.speakeasy.net/speedtest/
San Francisco, CA server

Normal download speed 12760kbps
Normal upload speed 2595kbps

After I start the audio playing, I can barely get results.

Running iftop on either machine while audio is playing gives a constant transfer rate of 1.39Mbps between machines.

netperf gives the following results:

Code:
Recv   Send    Send                         
Socket Socket  Message  Elapsed             
Size   Size    Size     Time     Throughput 
bytes  bytes   bytes    secs.    10^6bits/sec 

 87380  16384  16384    10.21      93.94


These results are about the same whether or not I'm streaming audio.

So it looks like the NICs are setup properly, and all signs point to a configuration problem on the router level. I know this is not OS-specific, but can anyone point me toward the solution?
Back to top
View user's profile Send private message
Erulabs
n00b
n00b


Joined: 08 Mar 2006
Posts: 48
Location: erulabs.com

PostPosted: Mon Mar 31, 2008 10:51 pm    Post subject: Reply with quote

Are you using any sort of QoS on your router?
if yes: Its probably prioritizing this traffic and cutting everything else off.
if no: QoS could fix your problem. Set the type of traffic to low priority.


Also, Yea, wireless (b/g/a) sucks. Even the new n is fairly poor in real world performance.

Edit: it also occurs to me, LOTS and LOTS of people have problems with wireless jitter caused by interference. If you have chordless phones or a mircowave nearby, that would be part of the issue. You may try setting the 'channel' in the wireless settings on the router to either a very high or very low level. This problem can be confirmed by packet loss and strange latency jumps.
_________________
No more things should be presumed to exist than are absolutely necessary. Or really cool.
Back to top
View user's profile Send private message
acksys
n00b
n00b


Joined: 31 Mar 2008
Posts: 2
Location: Minneapolis MN

PostPosted: Tue Apr 01, 2008 3:00 am    Post subject: Reply with quote

Erulabs wrote:
Are you using any sort of QoS on your router?
if yes: Its probably prioritizing this traffic and cutting everything else off.
if no: QoS could fix your problem. Set the type of traffic to low priority.


Also, Yea, wireless (b/g/a) sucks. Even the new n is fairly poor in real world performance.

Edit: it also occurs to me, LOTS and LOTS of people have problems with wireless jitter caused by interference. If you have chordless phones or a mircowave nearby, that would be part of the issue. You may try setting the 'channel' in the wireless settings on the router to either a very high or very low level. This problem can be confirmed by packet loss and strange latency jumps.


Much, much, better! PA wants to use two ports for this and I can't find the place to change one in the config, but I'll look into that later. When I configured router QoS to use low priority for the one both PA clients use, it solved the problem completely!

Erulabs: Thanks for the help, and thanks also for the wireless suggestions. I'm in an apartment building with several other wireless routers, so it's very possible they're fighting each other. I'll look into this more later.

Hopefully I'll be able to make some time to do a howto on this whole PA deal as well, because I've yet to find a concise guide for this setup.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum