kowalsky has asked for the wisdom of the Perl Monks concerning the following question:

hi all, I am trying to deal with the following situation: I have a network that includes a windows box, a linux box and a box that does video streaming, they all get into a Belkin N1 router. When the windows box runs p2p downloads, possibly the traffic shaping done by my ISP is slowing everything so that the video streaming becomes unusable (it starts buffering every 5 seconds). It may be so that the reason is different however, if I kill my downloads, the straeming gets back to normal... Now, how would I go about a script that knows either p2p is running or the video streaming and avoids running both at the same time - more restrictively, if the video streaming is up, then kill the p2p, immediately after streaming is down, bring back the p2p download. The network is just a bunch of 192.168.2.XXX ip addresses, the p2p client is azureus(vuze), the streaming is done from a fixed url. Thanks, kowalsky
  • Comment on script to manage network traffic and video streaming

Replies are listed 'Best First'.
Re: script to manage network traffic and video streaming
by zentara (Cardinal) on Jan 04, 2010 at 14:34 UTC
Re: script to manage network traffic and video streaming
by mpeg4codec (Pilgrim) on Jan 05, 2010 at 00:34 UTC

    Not really a Perl solution, but..

    Your poor streaming performance is likely due to your upstream being totally swamped by torrent uploads. Packets get queued in your modem and TCP ACK takes forever to get through, significantly reducing downstream throughput. Try capping your uploads in Azureus.

    You'll want to look into Traffic shaping for a more general solution. Typically this runs on your router, but as you have a hardware SOHO box this may not be a tenable solution. If you're running Linux, you can set up local traffic shaping. There are some good docs (although a bit dated) on the Linux Advanced Routing & Traffic Control page.

      thank you very much for your answers, i will try the upload managing suggestion, thanks again, kowalsky