Displaying 20 results from an estimated 4000 matches similar to: "tc strange behaviour (some discoveries)"
2005 Dec 15
3
tc strange behaviour
hi all,
I''m trying to do the following:
tc qdisc add dev eth0 root handle 1: htb default 15
tc class add dev eth0 parent 1:0 classid 1:1 htb rate 1mbit
tc class add dev eth0 parent 1:1 classid 1:15 htb rate 512kbit ceil 1mbit
what I expect:
limit outgoing traffic to 1mbit, start rate is 512kbit and let it grow
up to 1mbit
(correct me if i''m wrong here)
so, here is the problem
2005 Dec 14
3
exact rate
Hello
I am using htb (krenel 2.6.14.3 + esfq patch from fatooh.org) to limit the
bandwidth. But I want the absolute maximum rate to be for example 5Mbit
and not to exceed it.
here is the script:
$tc qdisc add dev ${NETIF} root handle 1 htb r2q 4
$tc class add dev ${NETIF} parent 1: classid 1:21 htb rate 5Mbit ceil 5Mbit
$tc class add dev ${NETIF} parent 1:21 classid 1:101 htb rate 2Mbit ceil
2005 Sep 27
2
QoS-iptables-iproute-tc (doesn''t work together:S)
Hello i''m having some issues trying to match packets
using iptables mark, iproute filter and tc filter.-
i mean, when i do
iptables -t mangle -A INPUT -p tcp --dport 80 -j MARK
--set-mark 20
iptables -t mangle -A PREROUTING -p tcp --dport 25 -j
MARK --set-mark 10
iptables -t mangle -A FORWARD -p tcp -i eth0 -o eth1
--dport 25 -j MARK --set-mark 10
$TC qdisc del dev $INET_IFACE root
$TC
2005 Jun 18
6
htb child classes don''t borrow form "parent''s parent class" :(
Dear list,
I have the problem that child classes don''t seem to issue the parent
class to borrow from their parent.
This is a simplified version of my script:
tc qdisc del dev $DEV root
tc qdisc add dev $DEV root handle 1: htb default 10
tc class add dev $DEV parent 1: classid 1:1 htb rate 10mbit
tc class add dev $DEV parent 1:1 classid 1:10 htb rate 1kbit ceil
512kbit
#groups
tc
2006 Feb 05
1
htb prio ...
Hey, I have such a script:
tc qdisc add dev $DEV root handle 1:0 htb default 21 r2q 2
tc class add dev $DEV parent 1:0 classid 1:11 htb rate 100mbit
tc class add dev $DEV parent 1:11 classid 1:21 htb rate 512kbit ceil
512kbit
tc class add dev $DEV parent 1:11 classid 1:23 htb rate 1024kbit ceil
1024kbit
tc class add dev $DEV parent 1:11 classid 1:25 htb rate 3072kbit
2005 Jan 31
3
why there is any traffic in default class?
I have:
tc qdisc add dev imq0 root handle 1: htb default 30
tc class add dev imq0 parent 1: classid 1:1 htb rate 512kbit ceil 512kbit
tc class add dev imq0 parent 1:1 classid 1:30 htb rate 64kbit ceil 512kbit
then:
iptables -t mangle -A PREROUTING -i ppp0 -s 192.168.2.2 -j IMQ --todev 0
tc class add dev imq0 parent 1:1 classid 1:22 htb rate 64kbit ceil 128kbit
tc filter add dev imq0 protocol
2007 Jun 19
4
Why does this script noet work (bandwidth, tc en u32)
Hi,
Can anyone point me out where the script below is wrong?
All I want is that host 172.31.1.1 can only use 10 megabit. If I run
this script on the in-between router nothing happens (the host uses
still the full 100 mbit, tested with iperf) , so i assume that something
must be wrong....
#!/bin/sh
# LAN1 NIC
tc qdisc del dev eth0 root
tc qdisc add dev eth0 root handle 1: htb
tc class add dev
2005 Apr 20
1
deleting tc rules
Hi
I''m doing traffic shaping with tc on ''10.0.0.0/30'' and ''10.0.0.28/30''.
I want to delete part of shaping rules on the fly. (see my
configuration at the end of this mail)
I wan''t to delete the shaping for ''10.0.0.0/30'' on the fly while still
keeping the shaping for part ''10.0.0.28/30'' running.
When I for
2004 Nov 01
1
Big problem :(((((
Hello!
I have an internet connection of 64kbps garanteed in a channel of 256kbps. On this connection the metropolitan speed is 10Mbps and in the provider''s network the speed is 100Mbps.
I have a few clients behind my linux box and i want to set up some limitations because some of them are using it irrational.
I am marking the packets with 0 for internet; 1 for metropolitan 2 for
2005 May 23
1
linux tc + contab
Hi I have strange problem.
same traffic control rules when i started it manual they work OK,
but when i started it from crontab / twice per day / doesn''t work
correctly ... look like delete rules doesn''t work
... any ideas where to look for problem ?
i use debian sarge Linux 2.6 kernel ,
#!/bin/bash
TC=/sbin/tc
DEV=eth1
echo "Delete all rules"
$TC qdisc
2004 Apr 28
1
HTB not obeying to specified rate?
here is the situation
i am using htb.init with fwmark to do QoS.
i have 2 parent classes with RATE=CEIL which then have some leafs each on
his own.
the first one works fine (it shapes the packets to the specified rate)
class htb 1:21 root rate 1Mbit ceil 1Mbit burst 2909b cburst 2909b
Sent 631520262 bytes 651550 pkts (dropped 0, overlimits 0)
rate 131573bps 141pps
lended: 380595 borrowed: 0
2004 Apr 06
11
htb2 -> htb3 problems
Hello!
I need to switch from htb2 to htb3, because of speed issues (for me,
htb2 is unable to handle more then 100mbit duplex with ~550 classes),
kernel profiling shows htb_dequeue_prio at 1st place with 3x isolation.
So, I''ve moved from 2.4.19 to 2.4.25 kernel (hi-pac for classification/marking
and htb3 for queueing), and traffic rate drop from 100 to 20mbit.
What can be wrong? The
2005 May 04
4
OpenSwan traffic shaping with HTB & sfq
Hi All,
I''ve got an interoffice IPSEC VPN in place that I''m trying to give
priority to terminal service (tcp 3389) traffic.
I''ve created rules at each end, but have hit a bit of a dillemma. As
the data is encrypted I must also give highest priority to protocol 50
otherwise the priority is lost as the packet gets encrypted.
When I do this however, I can''t
2003 Jan 06
1
strange htb behaviour
Hello List,
I use HTB in a ~80 users serving router with kernel 2.4.20.
eth0 is the internet interface (half-duplex 1Mbit),
eth1 the internal interface (100Mbit full duplex)
cause of the fact that the router also serves as a http-proxy (squid) i
thought setting up the default class on eth1 with the real upload-speed
(100Mbit) would do the job, i.e. shaping normal stuff to 1Mbit except
local
2002 Dec 04
3
HTB/IMQ troubles (probably)
Hello,
I use HTB with linux-2.4.20-ac1 and iptables-1.2.7a (pathced for IMQ).
I configured one HTB qdisc on an IMQ device. This qdisc has some classes
(about 5) and all of the classes has qdisc pfifo.
I sometimes got out from my linux (while I was working) and I found in
logs:
Dec 4 11:49:27 core kernel: HTB init, kernel part version 3.7
Dec 4 11:49:28 core kernel: HTB: quantum of class
2005 Jan 27
1
question about filter priorities and "tc -d filter show" output
The interface is setup like this:
# tc qdisc del dev eth0 root
# tc qdisc add dev eth0 root handle 1: htb default 2
# tc class add dev eth0 parent 1: classid 1:2 htb rate 20mbit ceil 20mbit
If I add a second class and a filter to send traffic to it like this:
# tc class add dev eth0 parent 1: classid 1:130 htb rate 1Mbit ceil 1Mbit
# tc filter add dev eth0 protocol ip parent 1:0 prio 130 u32
2005 Dec 14
1
mgen & tc
Hello,
I have the following proplem. My DiffServ configuration is working fine
when I do ping, but when I use mgen the packets are not detected at the
core router.
Here is my core router configuration:
#!/bin/bash
tc qdisc add dev eth1 handle 1:0 root dsmark indices 64 set_tc_index
tc filter add dev eth1 parent 1:0 protocol ip prio 1 tcindex mask 0xfc
shift 2
tc qdisc add dev eth1 parent
2006 Mar 01
0
new to TC need help
Hello,
I am new to TC and need some help with something that I need to do
I have the following setup which works just fine but with a little problem.
I need the user 172.16.1.100 in the case that it is using both classes
never to exceed 256kbit
now it goes up to 512kbit because both classes offer 256 each.
How can I finally restrict this user to only 256kbit no matter what.
2006 Jul 14
1
how different qdisc at root and leaf working???
i doubt about ruleset in mastershaper demo about
why use hfsc at leaf class but inner class use htb???
how different for manage traffic like it????
/bin/false qdisc add dev eth1 handle 1: root htb default 1
/bin/false class add dev eth1 parent 1: classid 1:1 htb rate 2048Kbit
######### Incoming Rules
######### chain HB
/bin/false class add dev eth1 parent 1:1 classid 1:21 htb rate 128Kbit ceil
2003 Apr 07
4
BW using CBQ/tc for VPN Ipsec i/f?
Hi all,
I want to allocate bandwidth for ipsec interface using CBQ/tc.
Suppose the conf. file is like this,
DEVICE=ipsec0,10Mbit,1Mbit
RATE=128Kbit
WEIGHT=10Kbit
PRIO=5
RULE=192.128.1.0/24
Does it work
or
What else options need to be taken care like ipsec packets/protocol/port
# etc.?
C''d anybody suggest please?
regds,
Srikanth.
_______________________________________________
LARTC