All of lore.kernel.org
 help / color / mirror / Atom feed
* [LARTC] tcng and scheduling ssh
@ 2004-09-07 21:22 Michael P. Soulier
  2004-09-08 14:31 ` Michael P. Soulier
  0 siblings, 1 reply; 2+ messages in thread
From: Michael P. Soulier @ 2004-09-07 21:22 UTC (permalink / raw)
  To: lartc

Hey people,

I have the following tcng configuration:

#include "fields.tc"
#include "ports.tc"

dev "eth0" {
    egress {
        // Voice traffic
        class (<$voice>)
            if udp_dport >= 20000 && udp_dport <= 23000;
        // SSH connections
        class (<$interactive>)
            if tcp_dport = PORT_SSH;
        // Everything else
        class (<$other>)
            if 1;

        prio {
            $voice = class { fifo; }
            $interactive = class { fifo; }
            $other = class { fifo; }
        }
    }
}

So, this should be a simple prio queue, with the above udp traffic
classified as voice, and getting the highest priority. Second, should be
ssh traffic, and then everything else.

The problem is that while the packet counts on the second band go up
initially after the ssh connection, the subsequent traffic, obviously
handled by iptables connection tracking, seems to all go to the third
band. Should it not all go to the second, as it's still tcp port 22?

Thanks,
Mike

-- 
Michael P. Soulier <michael_soulier@mitel.com>, 613-592-2122 x2522
6000/6010/60* Development, Mitel Networks Corporation
"...the word HACK is used as a verb to indicate a massive amount of nerd-like
effort." -Harley Hahn, A Student's Guide to Unix
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

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

* Re: [LARTC] tcng and scheduling ssh
  2004-09-07 21:22 [LARTC] tcng and scheduling ssh Michael P. Soulier
@ 2004-09-08 14:31 ` Michael P. Soulier
  0 siblings, 0 replies; 2+ messages in thread
From: Michael P. Soulier @ 2004-09-08 14:31 UTC (permalink / raw)
  To: lartc

On 07/09/04 Michael P. Soulier did say:

> #include "fields.tc"
> #include "ports.tc"
> 
> dev "eth0" {
>     egress {
>         // Voice traffic
>         class (<$voice>)
>             if udp_dport >= 20000 && udp_dport <= 23000;
>         // SSH connections
>         class (<$interactive>)
>             if tcp_dport = PORT_SSH;
>         // Everything else
>         class (<$other>)
>             if 1;
> 
>         prio {
>             $voice = class { fifo; }
>             $interactive = class { fifo; }
>             $other = class { fifo; }
>         }
>     }
> }

Scratch that. This configuration seems to work fine on egress. PEBKAC. 

Mike

-- 
Michael P. Soulier <michael_soulier@mitel.com>, 613-592-2122 x2522
6000/6010/60* Development, Mitel Networks Corporation
"...the word HACK is used as a verb to indicate a massive amount of nerd-like
effort." -Harley Hahn, A Student's Guide to Unix
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

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

end of thread, other threads:[~2004-09-08 14:31 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-09-07 21:22 [LARTC] tcng and scheduling ssh Michael P. Soulier
2004-09-08 14:31 ` Michael P. Soulier

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.