From: "Rangi Biddle" Date: Tue, 08 May 2007 03:16:08 +0000 Subject: RE: [LARTC] Traffic Shaping Message-Id: <02d701c7911f$3add16d0$b0974470$@net.nz> MIME-Version: 1 Content-Type: multipart/mixed; boundary="===============1106666871==" List-Id: References: In-Reply-To: To: lartc@vger.kernel.org This is a multipart message in MIME format. --===============1106666871== Content-Type: multipart/alternative; boundary="----=_NextPart_000_02D8_01C79183.D011F6D0" Content-Language: en-us This is a multipart message in MIME format. ------=_NextPart_000_02D8_01C79183.D011F6D0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi Simo, =20 I=92ve just started to take a look into tcng. Looks promising, but = I=92m not sure that I have the time to spend fully investigating the tool. Plus = I haven=92t had much luck getting tcsim to compile as I am running a 2.6.9 kernel and tcsim is currently targeted at a 2.5.4 kernel. What would be very helpful is something complete that I can fiddle with and customize = to my needs. I don=92t believe I mentioned this already but it is for a = client that has only recently been having issues since they have begun using = RDP clients. They are looking at VOIP at a later stage but I would like to = have something at least in place to prioritize packets. =20 Kind regards, =20 Rangi =20 PS. I am still rather new to tc in linux. =20 From: Simo [mailto:simo@mix4web.de]=20 Sent: Tuesday, May 08, 2007 8:49 AM To: 'Rangi Biddle' Subject: AW: [LARTC] Traffic Shaping =20 Hi Rangi, if i have understoud, what do you mean. I=B4ll say, you need to use the = PRIO queuing descipline. With this qdisc you can define an amount of Bands (priority FIFOs) to serve the network packets and you don=B4t need to = devide the bandwidth. Here a link to an illustration: http://www.linux-ip.net/articles/Traffic-Control-HOWTO/images/pfifo_fast-= qdi sc.png=20 The Problem by this qdisc is, if too many high priority Packets in the = qdisc were enqued, the rest of the traffic in the other low priority bands or FIFOs will be ignored und will have a high latency=85That=B4s why you = can use the prio qdisc combined with tbf qdisc. I think that will solve your problem=85 How do you use the linux traffic control system? Do you use the tcng = tool? If so, i can send you a script for your problem, and we can simulate = this with the tcsim component of tcng tool befor use=85 =20 Sorry for my english, i=B4m from morocco and i=B4m studying in germany = ;)=85 Kind regards Simo =20 Von: lartc-bounces@mailman.ds9a.nl = [mailto:lartc-bounces@mailman.ds9a.nl] Im Auftrag von Rangi Biddle Gesendet: Montag, 7. Mai 2007 20:07 An: lartc@mailman.ds9a.nl Betreff: RE: [LARTC] Traffic Shaping =20 HI Simo, =20 Thanks for the info. Very interesting read. I forgot to mention in the post that I am still relatively new to traffic shaping with Linux but = was still able to more than comprehend the info in that document. Many = thanks again. =20 One thing that I am slightly uncertain of though is that I would prefer = not to divide the bandwidth between x amount of people but rather designate = a priority that packets take over each other which that info doesn=92t = cover. Is it still possible using HFSC to accomplish this? =20 Kind regards, =20 Rangi =20 From: Simo [mailto:simo@mix4web.de]=20 Sent: Monday, May 07, 2007 8:25 PM To: 'Rangi Biddle'; lartc@mailman.ds9a.nl Subject: AW: [LARTC] Traffic Shaping =20 =20 Hi Rangi, Bandwidth ist important, but VoIP needs more than this. Voice traffic = needs low latency of packets. That=92s why traffic shaping maybe not lose your problem. =20 in this a HFCS queuing descipline is used instead of HTB, because this = can separate between bandwidth and delay. For more Information about this = can you find here: http://linux-ip.net/articles/hfsc.en/ =20 bye Simo =20 Von: lartc-bounces@mailman.ds9a.nl = [mailto:lartc-bounces@mailman.ds9a.nl] Im Auftrag von Rangi Biddle Gesendet: Sonntag, 6. Mai 2007 22:15 An: lartc@mailman.ds9a.nl Betreff: [LARTC] Traffic Shaping =20 Dear List, =20 I am wanting to perform some traffic shaping as the subject of this = email suggests. =20 What I am wanting to do is this; I would like to have traffic shaping performed on the following protocols: HTTP, RDP, GRE, PPTP, SIP and = IAX. Obviously I would like to have highest priority set for voice packets so much so that the general http traffic does not impede on the voice = packets. I would like to have ample bandwidth available for RDP so that I am able = to connect to a remote site and not have too much lag but ample enough that most tasks can be done. HTTP traffic would possibly have the lowest priority of all the protocols that I have listed. So to clarify = priority would be something such as this: =20 1. IAX 2. SIP 3. GRE 4. PPTP 5. RDP 6. HTTP =20 I have a linux gateway that I will use for performing the traffic = shaping and is setup in the following way: =20 ------------- ------------ --------- | ADSL | <----------> | LINUX | <----------> = | LAN | ------------- ------------ --------- =20 I plan to have the ADSL router forward all traffic to the linux gateway using something similar to a BIMAP rule where all incoming and outgoing traffic is made to appear to come from the public IP address. I welcome = any and all suggestions but would possibly prefer the most elegant of = solutions J =20 Many thanks in advance =20 Rangi=20 ------=_NextPart_000_02D8_01C79183.D011F6D0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable

Hi = Simo,

 

I’ve just = started to take a look into tcng.=A0 Looks promising, but I’m not sure that=A0 I = have the time to spend fully investigating the tool.=A0 Plus I haven’t had = much luck getting tcsim to compile as I am running a 2.6.9 kernel and tcsim is = currently targeted at a 2.5.4 kernel.=A0 What would be very helpful is something = complete that I can fiddle with and customize to my needs.=A0 I don’t = believe I mentioned this already but it is for a client that has only recently = been having issues since they have begun using RDP clients.=A0 They are = looking at VOIP at a later stage but I would like to have something at least in = place to prioritize packets.

 

Kind = regards,

 

Rangi

 

PS.=A0 I am still = rather new to tc in linux.

 

From:= Simo [mailto:simo@mix4web.de]
Sent: Tuesday, May 08, 2007 8:49 AM
To: 'Rangi Biddle'
Subject: AW: [LARTC] Traffic Shaping

 

Hi Rangi,

if i have understoud, what do you mean. I=B4ll say, you = need to use the PRIO queuing descipline. With this qdisc you can define an amount of = Bands (priority FIFOs) to serve the network packets and you don=B4t need to = devide the bandwidth. Here a link to an illustration: http://www.linux-ip.net/articles/Traffic-Control-HOWTO= /images/pfifo_fast-qdisc.png

The Problem by this qdisc is, if too many high priority = Packets in the qdisc were enqued, the rest of the traffic in the other low priority = bands or FIFOs will be ignored und will have a high latency…That=B4s why = you can use the prio qdisc combined with  tbf qdisc. I= think that will solve your problem…

How do you use the linux traffic control system? Do you use = the tcng tool? If so, i can send you a script for your problem, and we can = simulate this with the tcsim component of tcng tool befor = use…

 

Sorry for my english, i=B4m from morocco and i=B4m studying = in germany ;)…

Kind regards

Simo

 

Von:<= /b> lartc-bounces@mailman.ds9a.nl [mailto:lartc-bounces@mailman.ds9a.nl] = Im Auftrag von Rangi Biddle
Gesendet: Montag, 7. Mai
2007 20:07
An: lartc@mailman.ds9a.nl
Betreff: RE: [LARTC] Traffic Shaping

 

HI = Simo,

 

Thanks for the = info.  Very interesting read.  I forgot to mention in the post that I am still relatively new to traffic shaping with Linux but was still able to more = than comprehend the info in that document.  Many thanks = again.

 

One thing that I am = slightly uncertain of though is that I would prefer not to divide the bandwidth = between x amount of people but rather designate a priority that packets take = over each other which that info doesn’t cover.  Is it still possible = using HFSC to accomplish this?

 

Kind = regards,

 

Rangi

 

From:= Simo [mailto:simo@mix4web.de]
Sent: Monday, May 07, 2007 8:25 PM
To: 'Rangi Biddle'; lartc@mailman.ds9a.nl
Subject: AW: [LARTC] Traffic Shaping

 

 

Hi = Rangi,

Bandwidth ist = important, but VoIP needs more than this. Voice traffic needs low latency of packets. That’s why traffic shaping maybe not lose your problem.             &= nbsp; 

in this a HFCS = queuing descipline is used instead of HTB, because this can separate between = bandwidth and delay. For more Information about this can you find here: http://linux-ip.net/articl= es/hfsc.en/

 

bye

Simo

 

Von:<= /b> = lartc-bounces@mailman.ds9a.nl [mailto:lartc-bounces@mailman.ds9a.nl] Im Auftrag von Rangi = Biddle
Gesendet: Sonntag, 6. Mai 2007 22:15
An: lartc@mailman.ds9a.nl
Betreff: [LARTC] Traffic Shaping

 

Dear List,

 

I am wanting to perform some traffic shaping as the = subject of this email suggests.

 

What I am wanting to do is this;  I would like = to have traffic shaping performed on the following protocols:  HTTP, RDP, = GRE, PPTP, SIP and IAX.  Obviously I would like to have highest priority = set for voice packets so much so that the general http traffic does not = impede on the voice packets.  I would like to have ample bandwidth available = for RDP so that I am able to connect to a remote site and not have too much lag = but ample enough that most tasks can be done.  HTTP traffic would = possibly have the lowest priority of all the protocols that I have listed.  = So to clarify priority would be something such as this:

 

1.       = IAX

2.       = SIP

3.       = GRE

4.       = PPTP

5.       = RDP

6.       = HTTP

 

I have a linux gateway that I will use for = performing the traffic shaping and is setup in the following way:

 

         &= nbsp;       -------------         =             &= nbsp;   ------------          &= nbsp;           &n= bsp;    ---------

         &= nbsp;      |    ADSL     | <----------> |   LINUX  |  <----------> |   LAN   |

         &= nbsp;       -------------          =             &= nbsp;  ------------          &= nbsp;           &n= bsp;    ---------

 

I plan to have the ADSL router forward all traffic = to the linux gateway using something similar to a BIMAP rule where all incoming = and outgoing traffic is made to appear to come from the public IP = address.  I welcome any and all suggestions but would possibly prefer the most = elegant of solutions J

 

Many thanks in advance

 

Rangi

------=_NextPart_000_02D8_01C79183.D011F6D0-- --===============1106666871== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ LARTC mailing list LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc --===============1106666871==--