Re: TCNG

Linux Advanced Routing and Traffic Control

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxx

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

[Index of Archives]     [LARTC Home Page]     [Netfilter]     [Netfilter Development]     [Network Development]     [Bugtraq]     [GCC Help]     [Yosemite News]     [Linux Kernel]     [Fedora Users]
  Powered by Linux