* Re: [LARTC] TCNG
2004-03-01 20:28 [LARTC] TCNG Barry Rooney
@ 2004-03-03 6:30 ` Martin A. Brown
2004-03-03 10:41 ` Barry Rooney
` (5 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: Martin A. Brown @ 2004-03-03 6:30 UTC (permalink / raw)
To: lartc
Hello Barry,
: I'm using TCNG to restrict certain types of traffic to certain ip
: addresses using a Linux router, and some masq'd computers behind it.
You didn't tell us anything about the networks behind eth1. So, is this
host running as an Internet access device?
: #define INTERFACE eth1
:
: dev INTERFACE {
: egress {
:
: /* In class selection path, the filters come first! DSmark */
: class ( <$video> ) if tcp_sport = 554 && ip_dst = 10.1.1.10;
: class ( <$other> ) if 1 ;
:
: /* section in which we configure the qdiscs and classes */
:
: htb () {
: class ( rate 3500kbps, ceil 3500kbps ) {
:
: $video = class ( rate 50kbps, ceil 50kbps ) { sfq; } ;
: $other = class ( rate 1000kbps, ceil 3450kbps ) { sfq; } ;
:
: }
: }
: }
: }
: Doesn't seem to be working...
Are you able to tell if traffic is classified at all into any classes
("tc -s class show dev eth1")?
What happens if you [off-hours] drop your maximum rate (3500kbps) to
something much slower (2000kbps)? Are you actually shaping traffic?
Presumably, given the above configuration, the host 10.1.1.10 is a client
and is located on the network reachable via eth1. The Internet (the
source of the tcp/554 packets) must be reachable on another interface.
-Martin
--
Martin A. Brown --- SecurePipe, Inc. --- mabrown@securepipe.com
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
^ permalink raw reply [flat|nested] 8+ messages in thread* Re: [LARTC] TCNG
2004-03-01 20:28 [LARTC] TCNG Barry Rooney
2004-03-03 6:30 ` Martin A. Brown
@ 2004-03-03 10:41 ` Barry Rooney
2004-03-04 4:55 ` Martin A. Brown
` (4 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: Barry Rooney @ 2004-03-03 10:41 UTC (permalink / raw)
To: lartc
Hi Martin,
Eth0 is connected to a private network which has on it a Media Server
streaming rtsp files
Eth1 is a wireless card on an ad-hoc network with a laptop, a pda, and a
desktop.
The idea is then to imitate different QoS levels to the different
devices, the idea being
that the pda shouldn't need as much bw as the desktop etc. So the three
devices
get dhcp leases dependant on their mac address, and then their ip
address is used to
identify them and (hopefully) tc will then allow me to create sfqs for
each device.
I have tested the devices without any shaping, and also with shaping of
all rtsp/mms protocol based traffic
to the 50kb class. This works and has been confirmed by the stats on the
media client, it can be quite clearly
seen any way the video starts to jump and stutter.
However I have been unable to get the shaping to only occur on one
device, maybe the laptop for example
whose address is 10.1.1.10
Martin A. Brown wrote:
>Hello Barry,
>
> : I'm using TCNG to restrict certain types of traffic to certain ip
> : addresses using a Linux router, and some masq'd computers behind it.
>
>You didn't tell us anything about the networks behind eth1. So, is this
>host running as an Internet access device?
>
> : #define INTERFACE eth1
> :
> : dev INTERFACE {
> : egress {
> :
> : /* In class selection path, the filters come first! DSmark */
> : class ( <$video> ) if tcp_sport = 554 && ip_dst = 10.1.1.10;
> : class ( <$other> ) if 1 ;
> :
> : /* section in which we configure the qdiscs and classes */
> :
> : htb () {
> : class ( rate 3500kbps, ceil 3500kbps ) {
> :
> : $video = class ( rate 50kbps, ceil 50kbps ) { sfq; } ;
> : $other = class ( rate 1000kbps, ceil 3450kbps ) { sfq; } ;
> :
> : }
> : }
> : }
> : }
>
> : Doesn't seem to be working...
>
>Are you able to tell if traffic is classified at all into any classes
>("tc -s class show dev eth1")?
>
>What happens if you [off-hours] drop your maximum rate (3500kbps) to
>something much slower (2000kbps)? Are you actually shaping traffic?
>
>Presumably, given the above configuration, the host 10.1.1.10 is a client
>and is located on the network reachable via eth1. The Internet (the
>source of the tcp/554 packets) must be reachable on another interface.
>
>-Martin
>
>
>
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
^ permalink raw reply [flat|nested] 8+ messages in thread* Re: [LARTC] TCNG
2004-03-01 20:28 [LARTC] TCNG Barry Rooney
2004-03-03 6:30 ` Martin A. Brown
2004-03-03 10:41 ` Barry Rooney
@ 2004-03-04 4:55 ` Martin A. Brown
2006-03-07 0:41 ` [LARTC] tcng Juan Felipe Botero
` (3 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: Martin A. Brown @ 2004-03-04 4:55 UTC (permalink / raw)
To: lartc
Barry,
: Eth0 is connected to a private network which has on it a Media Server
: streaming rtsp files Eth1 is a wireless card on an ad-hoc network with
: a laptop, a pda, and a desktop.
Understood.
: The idea is then to imitate different QoS levels to the different
: devices, the idea being that the pda shouldn't need as much bw as the
: desktop etc. So the three devices get dhcp leases dependant on their
: mac address, and then their ip address is used to identify them and
: (hopefully) tc will then allow me to create sfqs for each device.
Understood.
: I have tested the devices without any shaping, and also with shaping of
: all rtsp/mms protocol based traffic to the 50kb class. This works and
: has been confirmed by the stats on the media client, it can be quite
: clearly seen any way the video starts to jump and stutter.
OK.
: However I have been unable to get the shaping to only occur on one
: device, maybe the laptop for example whose address is 10.1.1.10
I don't really understand what you mean here.
Have you tried creating separate classes for each device?
sfq doesn't do any shaping
htb (classes) perform shaping
So, here's a fractured/partial tcng config:
#define MY_PDA 10.1.1.8
#define MY_LAPTOP 10.1.1.10
class ( <$video> ) if tcp_sport = PORT_RTSP && ip_dst = MY_LAPTOP ;
class ( <$laptop> ) if ip_dst = MY_LAPTOP ;
class ( <$pda>) if ip_dst = MY_PDA ;
class ( <$other>) if 1 ;
htb() {
class ( rate 3500kbps, ceil 3500kbps ) {
$video = class ( rate 50kbps, ceil 50kbps ) { sfq; } ;
$laptop = class ( rate 50kbps, ceil 1500kbps ) { sfq; } ;
$pda = class ( rate 50kbps, ceil 50kbps ) { sfq; } ;
$other = class ( rate 200kbps, ceil 3500kbps ) { sfq; } ;
}
}
I can't tell if this does what you'd like, but maybe it does.
Good luck,
-Martin
--
Martin A. Brown --- SecurePipe, Inc. --- mabrown@securepipe.com
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
^ permalink raw reply [flat|nested] 8+ messages in thread* [LARTC] tcng
2004-03-01 20:28 [LARTC] TCNG Barry Rooney
` (2 preceding siblings ...)
2004-03-04 4:55 ` Martin A. Brown
@ 2006-03-07 0:41 ` Juan Felipe Botero
2006-03-14 0:11 ` Jason Boxman
` (2 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: Juan Felipe Botero @ 2006-03-07 0:41 UTC (permalink / raw)
To: lartc
[-- Attachment #1.1: Type: text/plain, Size: 291 bytes --]
Nobody knows something new about tcng?
I really think that this kind of language help people, i order to do easier
configurations
i want to know how can i do in tcng a nested classes configuration with HTB?
--
Juan Felipe Botero
Ingeniería de sistemas
Universidad de Antioquia
[-- Attachment #1.2: Type: text/html, Size: 330 bytes --]
[-- Attachment #2: Type: text/plain, Size: 143 bytes --]
_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc
^ permalink raw reply [flat|nested] 8+ messages in thread* Re: [LARTC] tcng
2004-03-01 20:28 [LARTC] TCNG Barry Rooney
` (3 preceding siblings ...)
2006-03-07 0:41 ` [LARTC] tcng Juan Felipe Botero
@ 2006-03-14 0:11 ` Jason Boxman
2006-03-14 16:42 ` Larry Brigman
2006-03-15 4:00 ` Jason Boxman
6 siblings, 0 replies; 8+ messages in thread
From: Jason Boxman @ 2006-03-14 0:11 UTC (permalink / raw)
To: lartc
On Monday 06 March 2006 19:41, Juan Felipe Botero wrote:
> Nobody knows something new about tcng?
>
> I really think that this kind of language help people, i order to do easier
> configurations
>
> i want to know how can i do in tcng a nested classes configuration with
> HTB?
From the number of tcng questions I've seen go unanswered, including my own,
I'd say skip it and learn `tc` itself. You'll be glad you did.
--
Jason Boxman
http://edseek.com/ - Linux and FOSS stuff
_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc
^ permalink raw reply [flat|nested] 8+ messages in thread* Re: [LARTC] tcng
2004-03-01 20:28 [LARTC] TCNG Barry Rooney
` (4 preceding siblings ...)
2006-03-14 0:11 ` Jason Boxman
@ 2006-03-14 16:42 ` Larry Brigman
2006-03-15 4:00 ` Jason Boxman
6 siblings, 0 replies; 8+ messages in thread
From: Larry Brigman @ 2006-03-14 16:42 UTC (permalink / raw)
To: lartc
On 3/13/06, Jason Boxman <jasonb@edseek.com> wrote:
> On Monday 06 March 2006 19:41, Juan Felipe Botero wrote:
> > Nobody knows something new about tcng?
> >
> > I really think that this kind of language help people, i order to do easier
> > configurations
> >
> > i want to know how can i do in tcng a nested classes configuration with
> > HTB?
>
> From the number of tcng questions I've seen go unanswered, including my own,
> I'd say skip it and learn `tc` itself. You'll be glad you did.
But tcng has as a part of it tcsim which allows you to experiment with
a tc configuration
without taking a box down.
_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc
^ permalink raw reply [flat|nested] 8+ messages in thread* Re: [LARTC] tcng
2004-03-01 20:28 [LARTC] TCNG Barry Rooney
` (5 preceding siblings ...)
2006-03-14 16:42 ` Larry Brigman
@ 2006-03-15 4:00 ` Jason Boxman
6 siblings, 0 replies; 8+ messages in thread
From: Jason Boxman @ 2006-03-15 4:00 UTC (permalink / raw)
To: lartc
On Tuesday 14 March 2006 11:42, Larry Brigman wrote:
<snip>
> But tcng has as a part of it tcsim which allows you to experiment with
> a tc configuration
> without taking a box down.
True, if you can read the source and figure out on your own how to use it
meaningfully. Perhaps I just missed something obvious, but never managed to
get it to do anything interesting on my end.
--
Jason Boxman
http://edseek.com/ - Linux and FOSS stuff
_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc
^ permalink raw reply [flat|nested] 8+ messages in thread