Displaying 20 results from an estimated 61 matches for "500kbit".
Did you mean:
100kbit
2007 Jul 26
3
tc filter not work, why?
...ork
I added htb qdisc to linux-2.4.18 and use it to limit the speed in
LAN, it only work well on the default class, for example
tc qdisc add dev eth0 root handle 1: htb default 10
tc class add dev eth0 parent 1:0 classid 1:1 htb rate 2000kbit
tc class add dev eth0 parent 1:1 classid 1:10 htb rate 500kbit ceil 500kbit
tc calss add dev eth0 parent 1:1 classid 1:11 htb rate 300kbit ceil 300kbit
tc filter add dev eth0 protocol ip u32 match ip dst 192.168.18.100 flowid 1:11
the host 192.168.18.100 have a speed of 500kbit rather than 300kbit.
if I don''t set the default 10 class, all this dosn&...
2004 Apr 29
2
tc class htb
Hi,
I am new to this group.
I use this script
tc qdisc add dev eth0 root handle 1: htb
tc class add dev eth0 parent 1:0 classid 1:1 htb rate 500kbit ceil 500kbit
tc class add dev eth0 parent 1:1 classid 1:2 htb rate 300Kbit ceil 500kbit
tc class add dev eth0 parent 1:1 classid 1:3 htb rate 200kbit ceil 500kbit
I like to know:
If two customers of the same class (for example 1:2) work simultaneously, what is that every customer is going to...
2007 Aug 14
3
Trying understand the HTB
...wget was 9.15 M/s (= 73.2 Mbits/s). The
iptraf confirmed it. Then I used these lines to control the traffic:
tc qdisc del dev eth1 root
tc qdisc add dev eth1 root handle 1: htb default 40
tc class add dev eth1 root classid 1:0 htb rate 10mbit
tc class add dev eth1 parent 1:0 classid 1:40 htb rate 500kbit
After tc rules, when I got file.iso, the speed showed by wget was 2.77
M/s (= 22.16 Mbits/s). But I used 500kbit (= 62.5 KB/s) in default
class.
My question is: why tc default class was configured with 500 Kb/s and
the real speed (confirmed by wget and Iptraf) was 22.16 Mb/s?
Thanks in advance....
2006 Jan 08
1
unexpected drop
....11.11.250 -j MARK --set-mark 200
iptables -t mangle -A PREROUTING -d 11.11.11.250 -j ACCEPT
iptables -t mangle -A PREROUTING -j DSCP --set-dscp 0
iptables -t mangle -A PREROUTING -j MARK --set-mark 300
iptables -t mangle -A PREROUTING -j ACCEPT
tc qdisc add dev atm0 root handle 1: cbq bandwidth 500Kbit avpkt 500
tc qdisc add dev tadsl0 root handle 1: cbq bandwidth 500Kbit avpkt 500
tc class add dev atm0 classid 1:1 parent 1: cbq bandwidth 500Kbit rate 500Kbit avpkt 400 prio 1 allot 500
tc class add dev atm0 classid 1:2 parent 1:1 cbq bandwidth 500Kbit rate 290Kbit avpkt 400 prio 1 allot 500 bou...
2004 Oct 25
1
tc philosophy, will this work?
Correct me if I''m wrong, I just want to help my friend who needs a tc solution
with fairness to hosts on a 512K/s DSL line, but few of them should be
restricted to 64K/s
I thought about htb + esfq (sfq with ip based fairness, not connection)
parent class with CEIL=500Kbit (no RULE? see *1) and attached esfq to this
parent class, now
child class with CEIL=64Kbit and RULE=10.0.0.1
child class with CEIL=64Kbit and RULE=10.0.0.2
child class with CEIL=64Kbit and RULE=10.0.0.N
child class with CEIL=500Kbit and RULE=10.0.0.0/24
is this correct? or:
*1 maybe here I w...
2002 Dec 29
8
wondershaper + htb prio + qdisc prio
...on the ping-echo packets to make the ping
be extra small, he try the wondershapper from the lartc, don''t work, make
a simplified script just for icmp with is:
$tc qdisc del $IF_EXT root
$tc qdisc add $IF_EXT handle 1: root htb default 2
$tc class add $IF_EXT parent 1: classid 1:9 htb rate 500kbit burst 6k
$tc class add $IF_EXT parent 1:9 classid 1:1 htb rate 500kbit ceil
500kbit burst 6k prio 1
$tc class add $IF_EXT parent 1:9 classid 1:2 htb rate 64kbit ceil 500kbit
burst 6k prio 2
$tc filter add $IF_EXT protocol ip prio 2 parent 1: u32 \
match ip protocol 1 0xff flowid 1:1
first...
2010 Nov 12
1
Problem with TC
I''m trying to use the traffic control features of Shorewall. I share
my network with some guys, and I have a tcclasses file like this:
#Hunter Fuller
eth0 100 1500kbit full 50
tos-maximize-throughput
#(other guy''s name)
eth0 110 1500kbit full 50
tos-minimize-delay
etc., based on their personal preferences.
Then for users I cannot identify (wireless guests, basically):
#unknown DHCP clients
eth0...
2005 Mar 14
1
htb.init issues
...default class 3000
Here''s how I do it:
eth1:
DEFAULT=3000
eth1-0010.root:
RATE=100Mbit
LEAF=sfq
eth1-0010:1000.premium
CEIL=352Kbit
RATE=352Kbit
PRIO=2
LEAF=sfq
eth1-0010:1000:1xyx.child1
CEIL=32Kbit
RATE=8Kbit
PRIO=3
LEAF=sfq
RULE=<public ip>,
eth1-0010:2000.best-effort
CEIL=500Kbit
RATE=500Kbit
PRIO=3
LEAF=sfq
eth1-0010:2000:2xyz.child1
CEIL=16Kbit
RATE=8Kbit
PRIO=2
LEAF=sfq
RULE=<public ip>,
eth1-0010:3000.default
RATE=2Kbit
PRIO=7
An output from tc commands generated by the script:
/sbin/tc qdisc del dev eth0 root
/sbin/tc qdisc add dev eth0 root handle 1 htb defa...
2005 Dec 22
2
strange tc filter behavior
...mq0 root handle 1: htb default ffff r2q 1
IPT=/usr/sbin/iptables
RMMOD=/sbin/rmmod
MODPROBE=/sbin/modprobe
$IPT -t mangle -F PREROUTING
$IP link set imq0 down
$IPT -t mangle -A PREROUTING -i eth2 -j IMQ --todev 0
$IP link set imq0 up
$TC class add dev imq0 parent 1: classid 1:1 htb prio 1 rate 500kbit ceil 500kbit
#
# default imq0
#
$TC class add dev imq0 parent 1:1 classid 1:ffff htb prio 7 rate 50kbit ceil 100kbit
$TC qdisc add dev imq0 parent 1:ffff handle ffff sfq perturb 10
#
# ADMASTER
#
$TC class add dev imq0 parent 1:1 classid 1:10 htb prio 2 rate 150kbit ceil 500kbit
$TC filter add de...
2005 Feb 10
5
priorizing vlans in a bridge
....
I read about the "prio" option of the htb qdisc and made some scripts, but they
don''t work as I expected.
HTB script:
tc qdisc add dev eth0 root handle 1: htb
tc class add dev eth0 parent 1: classid 1:1 htb rate 1000kbit
tc class add dev eth0 parent 1:1 classid 1:11 htb rate 500kbit ceil 1000kbit prio 1
tc filter add dev eth0 parent 1: prio 1 protocol ip handle 1 fw classid 1:11
iptables -t mangle -A PREROUTING -i eth1 -j MARK --set-mark 1
tc class add dev eth0 parent 1:1 classid 1:12 htb rate 500kbit ceil 800kbit prio 2
tc filter add dev eth0 parent 1: prio 1 protocol ip han...
2005 Apr 06
3
tbf latency problems!
Hi i have found a problem related with tbf and the
latency that the tbf calculates.. I have used the
following parameters for burst and limit
burst 100Kbit limit 500Kbit lat81.8ms
burst 6Kbit limit 6Kbit lat 0us
burst 200Kbit limit 100Kbit lat 4294.9s
As u can see in the 3rd column the latency for 100Kbit
burst and 500Kbit limit is 81.8ms but for 200Kbit and
limit 100Kbit is 4294.9s!!! How could be possible???
I want to find a way to caclulate the latency...
2002 Sep 07
0
configuration problem
I must say that the sum of rates of child classes is higher than the rate
of class 1:1(parent class);
My configuration:
tc qdisc add dev eth1 root handle 1: htb default 2
tc class add dev eth1 parent 1: classid 1:1 htb rate 500Kbit prio 1
quantum 2000
tc class add dev eth1 parent 1: classid 1:2 htb rate 9999Kbit prio 1
quantum 2000
Classes:
tc class add dev eth1 parent 1:1 classid 1:601 htb rate 1Kbit ceil 500Kbit
prio 0 quantum 2000
tc class add dev eth1 parent 1:1 classid 1:602 htb rate 64Kbit ceil
500Kbit prio 0 quantum...
2001 Jun 19
3
RTNETLINK answers: Invalid argument
...andle 20: cbq bandwidth 10Mbit avpkt 1000
echo root
tc class add dev eth1 parent 20:0 classid 20:1 cbq bandwidth 10Mbit rate \
10Mbit allot 1514 weight 1Mbit prio 8 maxburst 20 avpkt 1000
echo class
tc class add dev eth1 parent 20:1 classid 20:100 cbq bandwidth 10Mbit rate \
5Mbit allot 1514 weight 500Kbit prio 5 maxburst 20 avpkt 1000 \
bounded
echo 100
tc class add dev eth1 parent 20:1 classid 20:200 cbq bandwidth 10Mbit rate \
5Mbit allot 1514 weight 500Kbit prio 5 maxburst 20 avpkt 1000 \
bounded
echo 200
tc qdisc add dev eth1 parent 20:100 sfq quantum 1514b perturb 15
echo sfq100
tc qdisc add de...
2007 Feb 21
1
Problem with HTB and outgoing traffic
Hello,
I''m using a script with tc, to limit my outgoing traffic :
tc qdisc add dev eth0 root handle 1: htb
tc class add dev eth0 parent 1: classid 1:1 htb rate 500kbit burst 6k
tc filter add dev eth0 parent 1: protocol ip prio 1 u32 match ip dst
172.28.54.9 flowid 1:1
I want to test bandwidth with iperf to see if limitation is correct.
Sometimes, I get correct measure for certain rates, but i often get measure
that do not correspond to rate.
For example, if rate...
2012 Sep 20
1
Debian Lenny very simple traffic shaping not working
Hi,
I am trying to do the simplest configuration of traffic shaping.
So I did:
shorewall.conf
TC_ENABLED=Simple
tcinterfaces
eth0.2 External 500kbit
tcdevices
eth0.2 500kbit 200kbit
And I am testing the speed on that interface - whether I did it ok or not,
and my speed is still 4mbit/512kbit.
So the question is - How to reduce the speed on interface connected to the
Internet?
kind regards
Bartosz.
------------------------...
2004 Apr 07
1
(no subject)
...re very good.
Until I tried to add some UDP traffic the results were a little strange.
this is my setup
tc qdisc del dev eth1 root
tc qdisc add dev eth1 handle 1:0 root htb default 2
tc class add dev eth1 parent 1:0 classid 1:1 htb rate 1mbit
tc class add dev eth1 parent 1:1 classid 1:2 htb rate 500kbit ceil 1mbit
tc class add dev eth1 parent 1:1 classid 1:3 htb rate 500kbit ceil 1mbit
tc filter add dev eth1 protocol ip parent 1:0 prio 2 u32 match ip protocol
17 0xff flowid 1:3
tc qdisc add dev eth1 parent 1:2 handle 20 pfifo limit 10
tc qdisc add dev eth1 parent 1:3 handle 30 pfifo limit 10
T...
2006 Dec 14
1
hfsc rule command problem
...mangle -A FORWARD -o eth2 -j ms-all
iptables -t mangle -A POSTROUTING -o eth2 -j ms-all-chains
tc class add dev eth2 parent 1: classid 1:1 hfsc sc m2 10000kbit
tc filter add dev eth2 parent 1:0 protocol all u32 match u32 0 0 classid 1:1
tc class add dev eth2 parent 1:1 classid 1:11 hfsc ls m2 3500kbit ul m2 10000kbit
iptables -t mangle -N ms-chain-eth2-1:11
iptables -t mangle -A ms-all-chains -m mark --mark 1 -j ms-chain-eth2-1:11
iptables -t mangle -A ms-all -o eth2 -j ms-chain-eth2-1:11
tc class add dev eth2 parent 1:11 classid 1:111 hfsc rt m1 3500kbit d 10s m2 200kbit ls m2 3500kbit ul m2...
2007 Apr 26
1
HTB+SFQ
...ll me the errors?
Thx, in advance.-
NOTICE: IMQ device is to asociate with ETH1 my external iface.
SCRIPT que funciona:
############################################
#!/bin/sh
ifconfig imq0 up
tc qdisc add dev imq0 handle 1: root htb default 1
tc class add dev imq0 parent 1: classid 1:1 htb rate 500kbit ceil 2000kbit
tc qdisc add dev imq0 parent 1:1 handle 2 sfq
iptables -t mangle -A PREROUTING -i eth1 -j IMQ --todev 0
tc filter add dev imq0 parent 1: prio 0 protocol ip handle 2 fw flowid 1:1
############################################
SCRIPT que NO funciona:
#################################...
2006 Apr 04
3
Another question (now about u32)
...[root@ns1 ~]#
I have this class at device eth1:
[root@ns1 ~]# tc class show dev eth1
class htb 1:1 root rate 100Mbit ceil 100Mbit burst 18412b cburst 51587b
class htb 1:10 parent 1:1 leaf 10: prio 1 rate 3Mbit ceil 3Mbit burst
18Kb cburst 3099b
class htb 1:20 parent 1:1 leaf 20: prio 5 rate 500Kbit ceil 500Kbit
burst 18Kb cburst 1849b
And this qdisc:
[root@ns1 ~]# tc qdisc show dev eth1
qdisc htb 1: r2q 10 default 20 direct_packets_stat 10
qdisc sfq 10: parent 1:10 limit 128p quantum 1514b perturb 10sec
qdisc sfq 20: parent 1:20 limit 128p quantum 1514b perturb 10sec
I have looked...
2005 Aug 09
4
Too slow computer?
Hello! I''ve put some questions on this list some weeks
ago and I''ve got good answers. Thank you!
Now I''ve finished my (beautyful) script and I ran it
on my router...
About my script:
It routes packages based on their destination on the
Internet. I have about 1650 preffered destination
networks listed in some file. The script read this
file and marks every package for