Thanks for your reply Nikolay.&nbsp; I feel my first post was somewhat unclear.&nbsp; I hope the following information clears things up a little more:<br><br>1) The machine that I am trying to run do tc on has a single interface that connects it to the the rest of the network.<br><br>2) I sometimes have to ssh and scp files from that machine.<br><br>3) The machine runs various P2P applications.&nbsp; I don't want the sum of their uploads to exceed 3 KB/s.<br><br>4) As you mentioned, my ADSL uplink is 64000 bps<br><br>5) The machine that I have tc running on and the machine with the P2P uploads are the same machine.<br><br>Thanks for your comments.&nbsp; I'll try to check out the kbps vs. kbits.&nbsp; But is the idea of what I'm trying to do now more clear?<br><br><b><i>Nikolay Kichukov &lt;hijacker@oldum.net&gt;</i></b> wrote:<blockquote class="replbq" style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"> Hi Mathew,<br>your adsl uplink is
 64000 bps, correct?<br><br>102400kbps &gt; 64kbps<br>3kbps != 3KB/sec<br><br>Another point, tc syntax is 102400kbit, not 102400kbps(as far as I<br>tested that).<br><br>3KB = 3*8 kbit<br><br>Test that and let us know if this helps.<br><br>-Nik<br><br>On Wed, 2006-06-28 at 09:50 -0700, Mathew Brown wrote:<br>&gt; Hi,<br>&gt;   I'm new at traffic control and was reading up on HTB and using it to<br>&gt; put an upper limit on traffic.  I have a 256k DSL with 64k upload<br>&gt; (which translates to about 5/6KB uploads).  The machine running the<br>&gt; P2P applications keeps filling up the 64K so my browsing from other<br>&gt; machines in the network ends up being very slow.  Since there are<br>&gt; several P2P applications, I wanted to set the entire upload cap to<br>&gt; something like 3KB/s so it doesn't disrupt browsing.  However, I would<br>&gt; also like to ssh and scp from this machine without having an upload<br>&gt; cap.  The machine has a single interface to the
 network: eth0.  I<br>&gt; tried the following tc lines but it appears to affect both the P2P<br>&gt; traffic and my ssh traffic, resulting in a very slow ssh sessions:<br>&gt;   <br>&gt; tc qdisc add dev eth0 root handle 1: htb default 3<br>&gt; tc class add dev eth0 parent 1: classid 1:1 htb rate 102400kbps ceil<br>&gt; 102400kbps<br>&gt; tc class add dev eth0 parent 1:1 classid 1:2 htb rate 102400kbps ceil<br>&gt; 102400kbps<br>&gt; tc class add dev eth0 parent 1:1 classid 1:3 htb rate 3kbps ceil 3kbps<br>&gt; tc filter add dev eth0 protocol ip parent 1:0 prio 1 u32 match ip<br>&gt; dport 22 0xffff flowid 1:2<br>&gt; <br>&gt; Any ideas?  Thanks for your time.<br>&gt; <br>&gt; <br>&gt; ______________________________________________________________________<br>&gt; Do you Yahoo!?<br>&gt; Next-gen email? Have it all with the all-new Yahoo! Mail Beta.<br>&gt; _______________________________________________<br>&gt; LARTC mailing list<br>&gt; LARTC@mailman.ds9a.nl<br>&gt;
 http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc<br>-- <br>������ ��� ��������, ��� �����.<br>�� ������ ��� �����, �� ������ ��� ��������...<br>-����� �����<br><br></blockquote><br><p>&#32;
                <hr size=1>Yahoo! Music Unlimited - Access over 1 million songs.
<a href="http://pa.yahoo.com/*http://us.rd.yahoo.com/evt=36035/*http://music.yahoo.com/unlimited/ 
">Try it free.</a>