Linux Advanced Routing and Traffic Control list
 help / color / mirror / Atom feed
* [LARTC] [tcng] More complex example?
@ 2002-12-31  6:07 Donald Gordon
  2002-12-31 10:25 ` Stef Coene
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Donald Gordon @ 2002-12-31  6:07 UTC (permalink / raw)
  To: lartc

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.

dev eth1 {
  egress {
    tbf (rate 128kbps, burst 64kb, limit 64kb, mtu 1510B) {
      prio (bands 2) {
        $ssh_fast = SLB(cir 32kbps, cbs 3kB);

  	class if ((tcp_sport = 22 || tcp_dport = 22) &&
                  SLB_ok($ssh_fast));
	class if 1;
      }
    }
  }
}

Are there any examples of tcng scripts that do something slightly more
complex than those in the tcng tarball?

don
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [LARTC] [tcng] More complex example?
  2002-12-31  6:07 [LARTC] [tcng] More complex example? Donald Gordon
@ 2002-12-31 10:25 ` Stef Coene
  2003-01-01  1:18 ` Donald Gordon
  2003-01-01 10:42 ` Stef Coene
  2 siblings, 0 replies; 4+ messages in thread
From: Stef Coene @ 2002-12-31 10:25 UTC (permalink / raw)
  To: lartc

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 = SLB(cir 32kbps, cbs 3kB);
>
>   	class if ((tcp_sport == 22 || tcp_dport == 22) &&
>                   SLB_ok($ssh_fast));
> 	class 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

-- 

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

_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [LARTC] [tcng] More complex example?
  2002-12-31  6:07 [LARTC] [tcng] More complex example? Donald Gordon
  2002-12-31 10:25 ` Stef Coene
@ 2003-01-01  1:18 ` Donald Gordon
  2003-01-01 10:42 ` Stef Coene
  2 siblings, 0 replies; 4+ messages in thread
From: Donald Gordon @ 2003-01-01  1:18 UTC (permalink / raw)
  To: lartc

On Tue, 31 Dec 2002 11:25:46 +0100 Stef Coene <stef.coene@docum.org> wrote:

> 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

> Tbf is classless.  So you can't add a prio qdisc to a tbf qdisc.

So you're saying that classless qdiscs can only be leaves in the qdisc
graph?

don
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [LARTC] [tcng] More complex example?
  2002-12-31  6:07 [LARTC] [tcng] More complex example? Donald Gordon
  2002-12-31 10:25 ` Stef Coene
  2003-01-01  1:18 ` Donald Gordon
@ 2003-01-01 10:42 ` Stef Coene
  2 siblings, 0 replies; 4+ messages in thread
From: Stef Coene @ 2003-01-01 10:42 UTC (permalink / raw)
  To: lartc

On Wednesday 01 January 2003 02:18, Donald Gordon wrote:
> On Tue, 31 Dec 2002 11:25:46 +0100 Stef Coene <stef.coene@docum.org> wrote:
> > 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
> >
> > Tbf is classless.  So you can't add a prio qdisc to a tbf qdisc.
>
> So you're saying that classless qdiscs can only be leaves in the qdisc
> graph?
No.
You can add a htb qdisc to a htb leave.  I'm saying that tbf is a classless 
qdisc, so you don't have a class where you can add an other qdisc.  Htb is 
tbf but with classes.  So you can use a htb qdisc and add the prio qdisc to a 
htb class.

Btw, happy new year :)

Stef

-- 

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

_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2003-01-01 10:42 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-12-31  6:07 [LARTC] [tcng] More complex example? Donald Gordon
2002-12-31 10:25 ` Stef Coene
2003-01-01  1:18 ` Donald Gordon
2003-01-01 10:42 ` Stef Coene

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox