Skip to contentSkip to conversation

HTB filters - pls help me

LARTC jayesh rathod 3 participants 4 messages Jan 4, 2004 – Jan 5, 2004

lore
Share & tools
lore
#0 lore raw

Hi,

we r using HTB algorithm,for traffic shaping, we are facing a problem.

we are able to create multiple classes,filters. But when we delete 1 filter all filter gets deleted. how do we avoid that.

waiting for you reply

Regards
Jayesh
-------------------------------------------------
Shop & Save at Sifymall.com!

Special Festive Offers - up to 60% off on DVD players, MP3 Players. Mobile phones and more.
Click here: http://sify.com/deals
_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

#1 lore raw
Quoted 8 lines · jayesh rathod

Hi,

we r using HTB algorithm,for traffic shaping, we are facing a problem.

we are able to create multiple classes,filters. But when we delete 1 filter all filter gets deleted. how do we avoid that.

waiting for you reply

What I do, is creating a script that delets the root qdisc and re-add everything. Deleting the root qdisc delets all classes and filters. So I never delete a filter.
Anyway, can you post your commands ?

Stef

Signature · 8 lines
[email protected]
 "Using Linux as bandwidth manager"
     http://www.docum.org/
     #lartc @ irc.openprojects.net

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
#2 lore raw
In reply to jayesh rathod

Hi Stef

what happend if already existing people on the class so in the short gap time when we delete and add the rule,

is the session will be disconects ?

they will get maximum available throughput, when we remove and add, since the IP no more belong to any class

but when i re-run the script, they going to same marked and kept in the same class, is this right

what happend if so many class like 1000 rules...

thanks
hare
----- Original Message -----
From: "Stef Coene" <[email protected]>
To: "jayesh rathod" <[email protected]>; <[email protected]>
Sent: Monday, January 05, 2004 12:11 AM
Subject: Re: [LARTC] HTB filters - pls help me

Quoted 6 lines · jayesh rathod
Quoted 5 lines

Hi,

we r using HTB algorithm,for traffic shaping, we are facing a problem.

we are able to create multiple classes,filters. But when we delete 1

filter

Quoted 20 lines
Quoted 3 lines

all filter gets deleted. how do we avoid that.

waiting for you reply

What I do, is creating a script that delets the root qdisc and re-add everything. Deleting the root qdisc delets all classes and filters. So I never delete a filter.
Anyway, can you post your commands ?

Stef

Signature · 8 lines
[email protected]
 "Using Linux as bandwidth manager"
     http://www.docum.org/
     #lartc @ irc.openprojects.net

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

#3 lore raw
In reply to jayesh rathod
Quoted 6 lines · hare ram

Hi Stef

what happend if already existing people on the class so in the short gap time when we delete and add the rule,

is the session will be disconects ?

I don't know, but I don't think so. The state of the connections exists in kernel space and not in "tc" space. Tc only sees packets.

Quoted 2 lines

they will get maximum available throughput, when we remove and add, since the IP no more belong to any class

That only takes a few micro seconds, so I don't bother.

Quoted 2 lines

but when i re-run the script, they going to same marked and kept in the same class, is this right

If you use the fw filter + iptables, yes.

Quoted 1 line

what happend if so many class like 1000 rules...

I only execute the tc scripts when my router boots or if I changed something. So not evey second.

Stef

Signature · 8 lines
[email protected]
 "Using Linux as bandwidth manager"
     http://www.docum.org/
     #lartc @ irc.openprojects.net

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/