Dear all, Can I use RED and TBF simulatanesouly, so that the output packet of RED queue will be filtered by TBF? What I would like to do is that using RED queue disc I want to limit the output capacity of the corresponding interface. I''m a little worried about the scenario that TBF is first applied and then RED is used, which I do not want. Thanks. - Yung _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
On Friday 10 October 2003 20:36, Yung Yi wrote:> Dear all, > > Can I use RED and TBF simulatanesouly, so that the output packet of RED > queue will be filtered by TBF? > What I would like to do is that using RED queue disc I want to limit the > output capacity of the corresponding interface. > > I''m a little worried about the scenario that TBF is first applied and then > RED is used, which I do not want.You can use htb. Htb is like tbf but it supports classes. You can add the RED qdisc to a limit htb class. A limited htb class is a tbf qdisc. Stef -- stef.coene@docum.org "Using Linux as bandwidth manager" http://www.docum.org/ #lartc @ irc.openprojects.net _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
I have several local networks connected to internet via a gateway, acting as SNAT box as well as shaper box. in some occasions, I got confused about which one is executed first inside the kernel; the SNAT rules postrouting chain, or the tc filter rules that classify packet for shaping/queueing. I need to know which source address I should use in the tc filter rules, the local IP source, or the public IP that used for SNAT. I have tried to look at tc -s ..show command result, or iptables -L result, but I''m not convinced yet. anybody has nice explanations about that? thank you. __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
On Saturday 11 October 2003 08:16, zain arrifa''i wrote:> I have several local networks connected to internet > via a gateway, acting as SNAT box as well as shaper > box. > > in some occasions, I got confused about which one is > executed first inside the kernel; the SNAT rules > postrouting chain, or the tc filter rules that > classify packet for shaping/queueing. > > I need to know which source address I should use in > the tc filter rules, the local IP source, or the > public IP that used for SNAT. > > I have tried to look at tc -s ..show command result, > or iptables -L result, but I''m not convinced yet. > > anybody has nice explanations about that?Tc is the last thing that''s done with a packet. So after SNAT and postrouting. Also see the KPTD (Kernel Packet Traveling Diagram) page at docum.org. Stef -- stef.coene@docum.org "Using Linux as bandwidth manager" http://www.docum.org/ #lartc @ irc.openprojects.net _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/