All of lore.kernel.org
 help / color / mirror / Atom feed
From: Barry Rooney <brooney@xcommunications.co.uk>
To: lartc@vger.kernel.org
Subject: Re: [LARTC] TCNG
Date: Wed, 03 Mar 2004 10:41:46 +0000	[thread overview]
Message-ID: <4045B66A.5000306@xcommunications.co.uk> (raw)
In-Reply-To: <E1AxtoI-0006tx-00@yankee.rb.xcalibre.co.uk>

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/

  parent reply	other threads:[~2004-03-03 10:41 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-03-01 20:28 [LARTC] TCNG Barry Rooney
2004-03-03  6:30 ` Martin A. Brown
2004-03-03 10:41 ` Barry Rooney [this message]
2004-03-04  4:55 ` Martin A. Brown
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4045B66A.5000306@xcommunications.co.uk \
    --to=brooney@xcommunications.co.uk \
    --cc=lartc@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.