* [LARTC] [tcng] specifing interface in IF ?!
@ 2003-02-28 13:51 raptor
2003-03-02 0:41 ` Jacob Teplitsky
2003-03-07 7:06 ` raptor
0 siblings, 2 replies; 3+ messages in thread
From: raptor @ 2003-02-28 13:51 UTC (permalink / raw)
To: lartc
does anyone know how can I make class-path based on interface from which the packet comes ?!
dev eth0 {
class(<$c1>) if interface-eth0;
egress {
htb() {
$c1 = class(rate 1mbps) {
class(rate 100kbps, ceil 150kbps) if ip_dst = x.x.x.x;
class(rate 50kbps, ceil 100kbps) if ip_dst = y.y.y.y;
}
}
}
}
any idea ?!
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [LARTC] [tcng] specifing interface in IF ?!
2003-02-28 13:51 [LARTC] [tcng] specifing interface in IF ?! raptor
@ 2003-03-02 0:41 ` Jacob Teplitsky
2003-03-07 7:06 ` raptor
1 sibling, 0 replies; 3+ messages in thread
From: Jacob Teplitsky @ 2003-03-02 0:41 UTC (permalink / raw)
To: lartc
> Subject: [LARTC] [tcng] specifing interface in IF ?!
>
> does anyone know how can I make class-path based on interface from which the packet comes ?!
We implemented something like this:
dev "s0e0" {
ingress {
class (<>,set_color(GREEN))
if tcp_dport = PORT_HTTP;
class (<>,set_color(YELLOW))
if tcp_dport = PORT_SMTP;
class (<>,set_color(RED))
if 1;
}
}
dev "s1e0" {
egress {
class (<>,set_dscp(0x12))
if color = GREEN;
class (<>,set_dscp(0x23))
if color = YELLOW;
class (<>,set_dscp(0x34))
if color = RED;
drop if 1; /* not reached */
fifo;
}
}
but you can't do this with tcng-tc.
- Jacob
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [LARTC] [tcng] specifing interface in IF ?!
2003-02-28 13:51 [LARTC] [tcng] specifing interface in IF ?! raptor
2003-03-02 0:41 ` Jacob Teplitsky
@ 2003-03-07 7:06 ` raptor
1 sibling, 0 replies; 3+ messages in thread
From: raptor @ 2003-03-07 7:06 UTC (permalink / raw)
To: lartc
I was reading the some of the post and idea comes to my mind...
If I mark the packets incoming from some interface with iptables and then use this mark for classifing in tcng..
(I see there is "fw"-classifier in tcng language, dont know how to use it...).
Did u tried something like this..
Jacob Teplitsky <jacobt@bivio.net> wrote:
|
|> Subject: [LARTC] [tcng] specifing interface in IF ?!
|>
|> does anyone know how can I make class-path based on interface from which the packet comes ?!
|
|We implemented something like this:
|dev "s0e0" {
| ingress {
| class (<>,set_color(GREEN))
| if tcp_dport = PORT_HTTP;
| class (<>,set_color(YELLOW))
| if tcp_dport = PORT_SMTP;
| class (<>,set_color(RED))
| if 1;
| }
|}
|
|dev "s1e0" {
| egress {
| class (<>,set_dscp(0x12))
| if color = GREEN;
| class (<>,set_dscp(0x23))
| if color = YELLOW;
| class (<>,set_dscp(0x34))
| if color = RED;
| drop if 1; /* not reached */
|
| fifo;
| }
|}
|
|but you can't do this with tcng-tc.
|
|- Jacob
|_______________________________________________
|LARTC mailing list / LARTC@mailman.ds9a.nl
|http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
|
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2003-03-07 7:06 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-02-28 13:51 [LARTC] [tcng] specifing interface in IF ?! raptor
2003-03-02 0:41 ` Jacob Teplitsky
2003-03-07 7:06 ` raptor
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.