I have a tc script which splits the bandwidth in 8 leaf classes based on IP filtering. The script looks like this: tc filter add dev $LAN_IFACE protocol ip parent 1:0 prio 1 u32 match ip dst 192.168.0.121 flowid 1:11 The separation works excellent for downloads, but for uploads, it is ignored... Can you tell me how to deal with it? Thanks in advance, Vlad Mihai _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
On Tuesday 19 August 2003 21:13, Vlad Mihai wrote:> I have a tc script which splits the bandwidth in 8 leaf classes based on > IP filtering. > The script looks like this: > > tc filter add dev $LAN_IFACE protocol ip parent 1:0 prio 1 u32 match ip > dst 192.168.0.121 flowid 1:11 > > > The separation works excellent for downloads, but for uploads, it is > ignored... > Can you tell me how to deal with it?Yes. For uploads, the packets are natted. So the src address is rewritten. You can get around this if you mark the packets with iptables when they enter the box (so you have the real src address) and use that mark with the fw filter. Stef -- stef.coene@docum.org "Using Linux as bandwidth manager" http://www.docum.org/ #lartc @ irc.oftc.net _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
Thomas Switala
2003-Aug-20 07:02 UTC
cRTP and RTP or other Header methods of header compression
Hi I have the following challenges that I need to solve and I did some reading and I need some input on this as well. I have a VSAT link at my office and we all know that the more bandwidth we have the happier we are. I am already doing some Qos using HTB and IMQ on the link to prioritize specific traffic and the next challenge I received is to optimize our Cisco ATA 186 VoIP adaptors. I was looking at doing header compression between my remote sites and I was wondering if there is anyone out there that played around with RTP for Linux and is it possible. What I typically want to achieve is to have a linux bridged device that collects the voice packets from the Cisco and then strips it of all the headers and sends it off to my other office to another linux bridge and cisco ATA. Cisco ATA ---- Linux Bridge ---- VSAT --- Internet ----- VSAT ----- Linux Bridge ----- Cisco ATA I was also thinking about doing PPPoE between the two Linux Bridges and from what I have read they tell me that I will only get 5 -10 % bandwidth saving. Is there any other method that you guys recommend that I have a look at. Hope to hear from you soon Thomas _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
Eric Leblond
2003-Aug-20 07:43 UTC
Re: cRTP and RTP or other Header methods of header compression
On Wed, 2003-08-20 at 09:02, Thomas Switala wrote:> Hi > dwidth saving. Is there any other method > that you guys recommend that I have > a look at.IPsec with compress turned on ? In most cases you can gain some bandwidth. BR, -- Eric Leblond <eric@regit.org> Regit.org
Thomas Switala
2003-Aug-25 07:51 UTC
Re: cRTP and RTP or other Header methods of headercompression
Hi IPSec with compression is a good idea, but it still add''s AH/ESP packet headers to the system that I would like to avoid. And voice data is already compressed and no further compression will happen. We are limited to bandwidth usage and packet header compression was one of the options that I am looking at . Thomas ----- Original Message ----- From: "Eric Leblond" <eric@regit.org> To: <lartc@mailman.ds9a.nl> Sent: Wednesday, August 20, 2003 9:43 AM Subject: Re: [LARTC] cRTP and RTP or other Header methods of headercompression _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/