[LARTC] [tcng] More complex example?

Linux Advanced Routing and Traffic Control

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tuesday 31 December 2002 07:07, Donald Gordon wrote:
> Hi
>
> I'm completely stuck with the tcng language - I assume there must be
> some way to arrange queues hierachically like
>
>      eth1
>
>      TBF
>
>      PRIO
>      /  \
>    class class
>
> but my attempt (below) produces a "inferno.tc:8: qdisc "tbf" has no
> classes near "prio"" when run through tcc.
Tbf is classless.  So you can't add a prio qdisc to a tbf qdisc.

> dev eth1 {
>   egress {
>     tbf (rate 128kbps, burst 64kb, limit 64kb, mtu 1510B) {
>       prio (bands 2) {
>         $ssh_fast =3D SLB(cir 32kbps, cbs 3kB);
>
>   =09class if ((tcp_sport =3D=3D 22 || tcp_dport =3D=3D 22) &&
>                   SLB_ok($ssh_fast));
> =09class if 1;
>       }
>     }
>   }
> }
>
> Are there any examples of tcng scripts that do something slightly more
> complex than those in the tcng tarball?
You can take a cbq or htb qdisc and add the prio to a class.

Stef

--=20

stef.coene@docum.org
 "Using Linux as bandwidth manager"
     http://www.docum.org/
     #lartc @ irc.oftc.net



[Index of Archives]     [LARTC Home Page]     [Netfilter]     [Netfilter Development]     [Network Development]     [Bugtraq]     [GCC Help]     [Yosemite News]     [Linux Kernel]     [Fedora Users]
  Powered by Linux