Thanks for your reply Nikolay. I feel my first post was somewhat unclear. 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. 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. I'll try to check out the kbps vs. kbits. But is the idea of what I'm trying to do now more clear?<br><br><b><i>Nikolay Kichukov <hijacker@oldum.net></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 > 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>> Hi,<br>> I'm new at traffic control and was reading up on HTB and using it to<br>> put an upper limit on traffic. I have a 256k DSL with 64k upload<br>> (which translates to about 5/6KB uploads). The machine running the<br>> P2P applications keeps filling up the 64K so my browsing from other<br>> machines in the network ends up being very slow. Since there are<br>> several P2P applications, I wanted to set the entire upload cap to<br>> something like 3KB/s so it doesn't disrupt browsing. However, I would<br>> also like to ssh and scp from this machine without having an upload<br>> cap. The machine has a single interface to the
network: eth0. I<br>> tried the following tc lines but it appears to affect both the P2P<br>> traffic and my ssh traffic, resulting in a very slow ssh sessions:<br>> <br>> tc qdisc add dev eth0 root handle 1: htb default 3<br>> tc class add dev eth0 parent 1: classid 1:1 htb rate 102400kbps ceil<br>> 102400kbps<br>> tc class add dev eth0 parent 1:1 classid 1:2 htb rate 102400kbps ceil<br>> 102400kbps<br>> tc class add dev eth0 parent 1:1 classid 1:3 htb rate 3kbps ceil 3kbps<br>> tc filter add dev eth0 protocol ip parent 1:0 prio 1 u32 match ip<br>> dport 22 0xffff flowid 1:2<br>> <br>> Any ideas? Thanks for your time.<br>> <br>> <br>> ______________________________________________________________________<br>> Do you Yahoo!?<br>> Next-gen email? Have it all with the all-new Yahoo! Mail Beta.<br>> _______________________________________________<br>> LARTC mailing list<br>> LARTC@mailman.ds9a.nl<br>>
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc<br>-- <br>������ ��� ��������, ��� �����.<br>�� ������ ��� �����, �� ������ ��� ��������...<br>-����� �����<br><br></blockquote><br><p> 
                <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>