<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:foaf="http://xmlns.com/foaf/0.1/" xmlns:og="http://ogp.me/ns#" xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" xmlns:schema="http://schema.org/" xmlns:sioc="http://rdfs.org/sioc/ns#" xmlns:sioct="http://rdfs.org/sioc/types#" xmlns:skos="http://www.w3.org/2004/02/skos/core#" xmlns:xsd="http://www.w3.org/2001/XMLSchema#" version="2.0" xml:base="https://www.linuxjournal.com/tag/wondershaper">
  <channel>
    <title>Wondershaper</title>
    <link>https://www.linuxjournal.com/tag/wondershaper</link>
    <description/>
    <language>en</language>
    
    <item>
  <title>Wondershaper—QOS in a Pinch</title>
  <link>https://www.linuxjournal.com/content/wondershaper%E2%80%94qos-pinch</link>
  <description>  &lt;div data-history-node-id="1338590" class="layout layout--onecol"&gt;
    &lt;div class="layout__region layout__region--content"&gt;
      
            &lt;div class="field field--name-field-node-image field--type-image field--label-hidden field--item"&gt;  &lt;img src="https://www.linuxjournal.com/sites/default/files/nodeimage/story/11634f1_0.jpg" width="550" height="340" alt="" typeof="foaf:Image" class="img-responsive" /&gt;&lt;/div&gt;
      
            &lt;div class="field field--name-node-author field--type-ds field--label-hidden field--item"&gt;by &lt;a title="View user profile." href="https://www.linuxjournal.com/users/shawn-powers" lang="" about="https://www.linuxjournal.com/users/shawn-powers" typeof="schema:Person" property="schema:name" datatype="" xml:lang=""&gt;Shawn Powers&lt;/a&gt;&lt;/div&gt;
      
            &lt;div class="field field--name-body field--type-text-with-summary field--label-hidden field--item"&gt;&lt;p&gt;
In past articles, I've discussed my BirdCam setup and how it automatically
archives video footage from my bird feeders to YouTube every night. That's
a really cool process, but unfortunately, it saturates my upstream bandwidth
in the evening. I could get crafty with my firewall and limit the priority
of traffic from my BirdCam server, but because it's using standard Web
protocols to upload to YouTube, the firewall rules would be fairly complex.
Thankfully, there's Wondershaper.
&lt;/p&gt;

&lt;p&gt;
Because I'm running my BirdCam server on an independent machine, it doesn't
affect any other programs on the server if I just limit the throughput on
my Ethernet interface. There are three basic ways I know of to limit bandwidth
on a Linux machine: using tc, trickle and Wondershaper.
&lt;/p&gt;

&lt;p&gt;
The tc program is by far the most powerful. It's also by far the most
complex. In fact, it's so complex that for my lazy purposes, it just isn't
ideal. If you're looking for protocol-specific QOS on a local interface, tc
is probably the tool for the job. It is overkill for me.
&lt;/p&gt;

&lt;p&gt;
The trickle (and trickled) program seems like an ideal way to control the
bandwidth on a per-application level. Supposedly, you simply can start a
program with trickle, and it will limit the bandwidth available. Try as I
might, however, I never could get it to do its job. Yes, I'm sure it's a
perfectly wonderful tool, but again, I want something dead simple. Enter:
Wondershaper.
&lt;/p&gt;

&lt;p&gt;
After installing Wondershaper on your system, it works by controlling the
bandwidth on an entire interface. So this:

&lt;/p&gt;&lt;pre&gt;&lt;code&gt;
sudo wondershaper eth0 1250 125
&lt;/code&gt;&lt;/pre&gt;


&lt;p&gt;
will limit the eth0 interface to 10mbps down and 1mbps up. The numbers are
listed in KB/s (that wasn't clear to me at first, but Google will convert
mbps to KB/s for you). The setting is system-wide and should limit
bandwidth for any network application. To clear the limit:

&lt;/p&gt;&lt;pre&gt;&lt;code&gt;
sudo wondershaper clear eth0
&lt;/code&gt;&lt;/pre&gt;


&lt;p&gt;
I simply put the command in my root user's crontab to execute on startup,
and my BirdCam server doesn't monopolize my bandwidth when it uploads
nightly to YouTube. It seems like a simple tool, and it is. But, it works so
well and provides such a useful service, I'm making Wondershaper this
month's Editors' Choice winner. It's not a new program, but it's something
I'd never used before, and I can't imagine living without it!
&lt;/p&gt;

&lt;p&gt;
(NOTE: before I get hundreds of e-mail messages, yes, I know Wondershaper is a program
from 2002. I mentioned other newer, more robust alternatives above, but
the truth is, Wondershaper still is a powerful, simple tool that does one
thing and does it really well.)
&lt;/p&gt;&lt;/div&gt;
      
            &lt;div class="field field--name-node-link field--type-ds field--label-hidden field--item"&gt;  &lt;a href="https://www.linuxjournal.com/content/wondershaper%E2%80%94qos-pinch" hreflang="und"&gt;Go to Full Article&lt;/a&gt;
&lt;/div&gt;
      
    &lt;/div&gt;
  &lt;/div&gt;

</description>
  <pubDate>Wed, 21 Jan 2015 18:59:42 +0000</pubDate>
    <dc:creator>Shawn Powers</dc:creator>
    <guid isPermaLink="false">1338590 at https://www.linuxjournal.com</guid>
    </item>

  </channel>
</rss>
