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: sify.com/deals _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: lartc.org
On Sunday 04 January 2004 07:27, jayesh rathod wrote:> 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 replyWhat 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 -- stef.coene@docum.org "Using Linux as bandwidth manager" docum.org #lartc @ irc.openprojects.net _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: lartc.org
On Monday 05 January 2004 05:55, alen sarkinovic wrote:> can i add HTB rule on virtual interface\ > example: eth0:0No. Stef -- stef.coene@docum.org "Using Linux as bandwidth manager" docum.org #lartc @ irc.openprojects.net _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: lartc.org
Alen, : can i add HTB rule on virtual interface? : example: eth0:0 First, it''s not really a virtual interface--it''s just a convention from the old days of IP aliasing to have names like eth0:0. The IP exists and is active on an interface, eth0 in your case. The short answer is "no". Traffic control occurs just prior to the release of the packet for transmission by the hardware driver. See the KPTD [0]. You can however select packets based on many characteristics, so you may be able to accomplish what you need. You''ll use characteristics other than the label "eth0:0". -Martin [0] docum.org/stef.coene/qos/kptd -- Martin A. Brown --- SecurePipe, Inc. --- mabrown@securepipe.com _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: lartc.org
can i add HTB rule on virtual interface\ example: eth0:0 alens ----- Original Message ----- From: "Stef Coene" <stef.coene@docum.org> To: "jayesh rathod" <jayesh_rathod@sify.com>; <lartc@mailman.ds9a.nl> Sent: Sunday, January 04, 2004 10:41 AM Subject: Re: [LARTC] HTB filters - pls help me> On Sunday 04 January 2004 07:27, jayesh rathod wrote: > > 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 1filter> > 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 > > -- > stef.coene@docum.org > "Using Linux as bandwidth manager" > docum.org > #lartc @ irc.openprojects.net > > _______________________________________________ > LARTC mailing list / LARTC@mailman.ds9a.nl > mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: lartc.org > >_______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: lartc.org
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" <stef.coene@docum.org> To: "jayesh rathod" <jayesh_rathod@sify.com>; <lartc@mailman.ds9a.nl> Sent: Monday, January 05, 2004 12:11 AM Subject: Re: [LARTC] HTB filters - pls help me> On Sunday 04 January 2004 07:27, jayesh rathod wrote: > > 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 1filter> > 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 > > -- > stef.coene@docum.org > "Using Linux as bandwidth manager" > docum.org > #lartc @ irc.openprojects.net > > _______________________________________________ > LARTC mailing list / LARTC@mailman.ds9a.nl > mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: lartc.org >_______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: lartc.org
On Monday 05 January 2004 09:18, hare ram wrote:> 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.> they will get maximum available throughput, when we remove and add, since > the IP no more belong to any classThat only takes a few micro seconds, so I don''t bother.> but when i re-run the script, they going to same marked and kept in the > same class, is this rightIf you use the fw filter + iptables, yes.> 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 -- stef.coene@docum.org "Using Linux as bandwidth manager" docum.org #lartc @ irc.openprojects.net _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: lartc.org