Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>You can use the existing QoS infrastructure to do traffic shaping in your Linux box.</p> <p>The best way to do it is to use <a href="http://tldp.org/HOWTO/Traffic-Control-HOWTO/index.html" rel="nofollow noreferrer">iproute's tc</a> (or <a href="http://tcng.sourceforge.net/" rel="nofollow noreferrer">tcng</a>) command to create different queues and set limits to each AND to use iptables to classify the packets into one of the existing queues. This will give you the most flexibility and the less code to write :-) (Which may or may not be what you want). I've found a <a href="http://www.mastershaper.org" rel="nofollow noreferrer">tool</a> that <a href="http://www.ctunion.com/node/189" rel="nofollow noreferrer">supposedly</a> makes all this process easier.</p> <p>Examples <a href="http://www.knowplace.org/pages/howtos/traffic_shaping_with_linux/examples.php" rel="nofollow noreferrer">here</a> and <a href="http://blog.kovyrin.net/2006/04/06/5min-guide-to-linux-shaping-htb/" rel="nofollow noreferrer">here</a>.</p> <p>You might also want to have a look at <a href="http://freshmeat.net/projects/shaperd/" rel="nofollow noreferrer">Shaperd</a> to see example code (if a bit old) that uses <a href="http://www.linuxquestions.org/linux/answers/Programming/Libipq_by_example" rel="nofollow noreferrer">libipq</a>, which allows for packet queuing in userspace (which has since been superseded by libnetfilter_queue).</p> <p>If you are not using Linux, but Windows, you might want to look at the <a href="http://blogs.msdn.com/wndp/archive/2007/10/09/introduction-to-windows-qos-traffic-control.aspx" rel="nofollow noreferrer">QoS API</a> or at existing software that'll do it for you, like <a href="http://bandwidthcontroller.com/trafficShaperXp.html" rel="nofollow noreferrer">Traffic Shaper</a></p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload