I simply wan''t to give higher priority for esp protocol. Could someone give me an example (I think using prio qdisc and u32 filter???) -- Easter-eggs Spécialiste GNU/Linux 44-46 rue de l''Ouest - 75014 Paris - France - Métro Gaité Phone: +33 (0) 1 43 35 00 37 - Fax: +33 (0) 1 41 35 00 76 mailto:elacour@easter-eggs.com - http://www.easter-eggs.com _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
tc qdisc add dev eth0 root handle 1: prio bands 5 priomap 2 3 2 2 3 3 3 3 1 1 1 1 2 2 2 2 tc qdisc add dev eth0 parent 1:1 handle 10: sfq perturb 10 tc qdisc add dev eth0 parent 1:2 handle 20: sfq perturb 10 tc qdisc add dev eth0 parent 1:3 handle 30: sfq perturb 10 tc qdisc add dev eth0 parent 1:4 handle 40: sfq perturb 10 tc filter add dev eth0 protocol ip parent 1: prio 10 u32 match ip protocol 0xXX 0xff flowid 1:1 have you read the docs? If not, do so to understand how it works and what the quirks are. http://www.lartc.org/ ----- Original Message ----- From: "Emmanuel Lacour" <elacour@easter-eggs.com> To: <lartc@mailman.ds9a.nl> Sent: Tuesday, September 24, 2002 5:50 PM Subject: [LARTC] An example of prio qdisc please...> I simply wan''t to give higher priority for esp protocol. > > Could someone give me an example (I think using prio qdisc and u32 > filter???) > > > > -- > Easter-eggs Spécialiste GNU/Linux > 44-46 rue de l''Ouest - 75014 Paris - France - Métro Gaité > Phone: +33 (0) 1 43 35 00 37 - Fax: +33 (0) 1 41 35 00 76 > mailto:elacour@easter-eggs.com - http://www.easter-eggs.com > _______________________________________________ > LARTC mailing list / LARTC@mailman.ds9a.nl > http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/ >_______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
On Wed, Sep 25, 2002 at 09:28:28AM +0200, Soulfly wrote:> tc qdisc add dev eth0 root handle 1: prio bands 5 priomap 2 3 2 2 3 3 3 3 1 > 1 1 1 2 2 2 2 > tc qdisc add dev eth0 parent 1:1 handle 10: sfq perturb 10 > tc qdisc add dev eth0 parent 1:2 handle 20: sfq perturb 10 > tc qdisc add dev eth0 parent 1:3 handle 30: sfq perturb 10 > tc qdisc add dev eth0 parent 1:4 handle 40: sfq perturb 10 > tc filter add dev eth0 protocol ip parent 1: prio 10 u32 match ip protocol > 0xXX 0xff flowid 1:1 > > have you read the docs? If not, do so to understand how it works and what > the quirks are. http://www.lartc.org/ > >Of course, I did it already, the lartc howto is a really good doc, but all of this is not really easy so by giving me this example I will be able to understand more and do what I wan''t. Thanks! -- Easter-eggs Spécialiste GNU/Linux 44-46 rue de l''Ouest - 75014 Paris - France - Métro Gaité Phone: +33 (0) 1 43 35 00 37 - Fax: +33 (0) 1 41 35 00 76 mailto:elacour@easter-eggs.com - http://www.easter-eggs.com _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
"Soulfly" <zob_soulfly@hotmail.com> thus wrote:> tc qdisc add dev eth0 root handle 1: prio bands 5 priomap 2 3 2 2 3 3 3 3 1 > 1 1 1 2 2 2 2 > tc qdisc add dev eth0 parent 1:1 handle 10: sfq perturb 10 > tc qdisc add dev eth0 parent 1:2 handle 20: sfq perturb 10 > tc qdisc add dev eth0 parent 1:3 handle 30: sfq perturb 10 > tc qdisc add dev eth0 parent 1:4 handle 40: sfq perturb 10 > tc filter add dev eth0 protocol ip parent 1: prio 10 u32 match ip protocol > 0xXX 0xff flowid 1:1Hi there This is ver infornmative I''ve long wanted priority of some protocol over the other. Now my question is: Can i use this with htb? I want: o ip 172.16.0.5 bandwidth restriction of 32 kbps (htb ceil) o ip 172.16.0.49 bandwidth restriction of 64 kbps (htb ceil) o protocol 23 priority over protocol 80 U see, I don''t want to limit "protocol 80" to some bandwidth restriction so that "protocol 23" gets the rest available bandwidth I just want "proto 23" packets priority over "proto 80" In the above example u used the "prio" qdisc Can i use this with my htb as the roo qdisc and prio lower down in the class? Thanx -- arc_of_descent _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
I''m happy to help! I just want to make sure you''ve know the basics so you don''t fall into pitholes. Examples is one of the best sources of information. Oh I didn''t look up the number for your protocol, so exchange the ''XX'' with this. ----- Original Message ----- From: "Emmanuel Lacour" <elacour@easter-eggs.com> To: "Soulfly" <zob_soulfly@hotmail.com> Cc: <lartc@mailman.ds9a.nl> Sent: Wednesday, September 25, 2002 11:18 AM Subject: Re: [LARTC] An example of prio qdisc please...> On Wed, Sep 25, 2002 at 09:28:28AM +0200, Soulfly wrote: > > tc qdisc add dev eth0 root handle 1: prio bands 5 priomap 2 3 2 2 3 3 33 1> > 1 1 1 2 2 2 2 > > tc qdisc add dev eth0 parent 1:1 handle 10: sfq perturb 10 > > tc qdisc add dev eth0 parent 1:2 handle 20: sfq perturb 10 > > tc qdisc add dev eth0 parent 1:3 handle 30: sfq perturb 10 > > tc qdisc add dev eth0 parent 1:4 handle 40: sfq perturb 10 > > tc filter add dev eth0 protocol ip parent 1: prio 10 u32 match ipprotocol> > 0xXX 0xff flowid 1:1 > > > > have you read the docs? If not, do so to understand how it works andwhat> > the quirks are. http://www.lartc.org/ > > > > > > Of course, I did it already, the lartc howto is a really good doc, but > all of this is not really easy so by giving me this example I will be > able to understand more and do what I wan''t. > > Thanks! > > -- > Easter-eggs Spécialiste GNU/Linux > 44-46 rue de l''Ouest - 75014 Paris - France - Métro Gaité > Phone: +33 (0) 1 43 35 00 37 - Fax: +33 (0) 1 41 35 00 76 > mailto:elacour@easter-eggs.com - http://www.easter-eggs.com > _______________________________________________ > LARTC mailing list / LARTC@mailman.ds9a.nl > http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/ >_______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
> "Soulfly" <zob_soulfly@hotmail.com> thus wrote: > > > tc qdisc add dev eth0 root handle 1: prio bands 5 priomap 2 3 2 2 3 3 33 1> > 1 1 1 2 2 2 2 > > tc qdisc add dev eth0 parent 1:1 handle 10: sfq perturb 10 > > tc qdisc add dev eth0 parent 1:2 handle 20: sfq perturb 10 > > tc qdisc add dev eth0 parent 1:3 handle 30: sfq perturb 10 > > tc qdisc add dev eth0 parent 1:4 handle 40: sfq perturb 10 > > tc filter add dev eth0 protocol ip parent 1: prio 10 u32 match ipprotocol> > 0xXX 0xff flowid 1:1 >I have a configuration which use 5 prio levels (2 above the standard priolevels). I conerted it to 4 and forgot to alter the band parameter.. so the correct line is.. tc qdisc add dev eth0 root handle 1: prio bands 4 priomap 2 3 2 2 3 3 3 3 1 1 1 1 2 2 2 2> Hi there > This is ver infornmative > I''ve long wanted priority of some protocol over the other. > Now my question is: > Can i use this with htb? > > I want: > o ip 172.16.0.5 bandwidth restriction of 32 kbps (htb ceil) > o ip 172.16.0.49 bandwidth restriction of 64 kbps (htb ceil) > o protocol 23 priority over protocol 80 > > U see, I don''t want to limit "protocol 80" to some bandwidth > restriction so that "protocol 23" gets the rest available bandwidth > I just want "proto 23" packets priority over "proto 80" > > In the above example u used the "prio" qdisc > Can i use this with my htb as the roo qdisc and prio > lower down in the class? >Yes, this should work out well. I suggest you add prio qdisc to the leafs in your htb class-tree.> Thanx >no problem _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
On Wednesday 25 September 2002 11:39, Rohan Almeida wrote:> "Soulfly" <zob_soulfly@hotmail.com> thus wrote: > > tc qdisc add dev eth0 root handle 1: prio bands 5 priomap 2 3 2 2 3 3 3 3 > > 1 1 1 1 2 2 2 2 > > tc qdisc add dev eth0 parent 1:1 handle 10: sfq perturb 10 > > tc qdisc add dev eth0 parent 1:2 handle 20: sfq perturb 10 > > tc qdisc add dev eth0 parent 1:3 handle 30: sfq perturb 10 > > tc qdisc add dev eth0 parent 1:4 handle 40: sfq perturb 10 > > tc filter add dev eth0 protocol ip parent 1: prio 10 u32 match ip > > protocol 0xXX 0xff flowid 1:1 > > Hi there > This is ver infornmative > I''ve long wanted priority of some protocol over the other. > Now my question is: > Can i use this with htb? > > I want: > o ip 172.16.0.5 bandwidth restriction of 32 kbps (htb ceil) > o ip 172.16.0.49 bandwidth restriction of 64 kbps (htb ceil) > o protocol 23 priority over protocol 80 > > U see, I don''t want to limit "protocol 80" to some bandwidth > restriction so that "protocol 23" gets the rest available bandwidth > I just want "proto 23" packets priority over "proto 80" > > In the above example u used the "prio" qdisc > Can i use this with my htb as the roo qdisc and prio > lower down in the class?Yes, you can add the prio qdisc on a htb class. 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/
correct me if im wrong, but couldn''t u achieve the same goal only with htb? i mean by creating a leave-level with classes rate=1bps, ceil=maxbw, prio 0-6 and attaching sfq/pfifo as leave-qdiscs to these classes? s.th. like: tc qdisc root handle 1:0 htb tc class parent 1:0 handle 1:1 rate <maxuploadbw> tc class parent 1:1 handle 1:10 rate 1bps ceil <maxuploadbw> prio 0 tc class parent 1:1 handle 1:11 rate .... ... .. prio 1 and so on tc qdisc parent 1:10 handle 10:0 pfifo/sfq tc qdisc parent 1:11 handle 11:0 .... and so on tc filter 1:0 protocol ip prio 0 handle 9999 fw classid 1:10 (syntax is not correct :) and/or other filters doesn''t do this setup the same as the priomap (in general)? Greetings Tobias> On Wednesday 25 September 2002 11:39, Rohan Almeida wrote: >> "Soulfly" <zob_soulfly@hotmail.com> thus wrote: >> > tc qdisc add dev eth0 root handle 1: prio bands 5 priomap 2 3 2 2 3 >> 3 3 3 1 1 1 1 2 2 2 2 >> > tc qdisc add dev eth0 parent 1:1 handle 10: sfq perturb 10 >> > tc qdisc add dev eth0 parent 1:2 handle 20: sfq perturb 10 >> > tc qdisc add dev eth0 parent 1:3 handle 30: sfq perturb 10 >> > tc qdisc add dev eth0 parent 1:4 handle 40: sfq perturb 10 >> > tc filter add dev eth0 protocol ip parent 1: prio 10 u32 match ip >> protocol 0xXX 0xff flowid 1:1 >> >> Hi there >> This is ver infornmative >> I''ve long wanted priority of some protocol over the other. >> Now my question is: >> Can i use this with htb? >> >> I want: >> o ip 172.16.0.5 bandwidth restriction of 32 kbps (htb ceil) >> o ip 172.16.0.49 bandwidth restriction of 64 kbps (htb ceil) >> o protocol 23 priority over protocol 80 >> >> U see, I don''t want to limit "protocol 80" to some bandwidth >> restriction so that "protocol 23" gets the rest available bandwidth I >> just want "proto 23" packets priority over "proto 80" >> >> In the above example u used the "prio" qdisc >> Can i use this with my htb as the roo qdisc and prio >> lower down in the class? > Yes, you can add the prio qdisc on a htb class. > > 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/_______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
On Wednesday 25 September 2002 16:13, Tobias Geiger wrote:> correct me if im wrong, but couldn''t u achieve the same goal only with htb? > > i mean by creating a leave-level with classes rate=1bps, ceil=maxbw, prio > 0-6 > > and attaching sfq/pfifo as leave-qdiscs to these classes?Yes and it''s even better. With cbq you can give the all classes a minimum bandwidth so one class can not kill an other by using all bandwidth. With prio, you can generate a lot of traffic in the highest band so the other bands have no bandwidth left.> s.th. like: > tc qdisc root handle 1:0 htb > tc class parent 1:0 handle 1:1 rate <maxuploadbw> > tc class parent 1:1 handle 1:10 rate 1bps ceil <maxuploadbw> prio 0 > tc class parent 1:1 handle 1:11 rate .... ... .. prio 1 > and so on > tc qdisc parent 1:10 handle 10:0 pfifo/sfq > tc qdisc parent 1:11 handle 11:0 .... > and so on > tc filter 1:0 protocol ip prio 0 handle 9999 fw classid 1:10 > (syntax is not correct :) > and/or other filters > > doesn''t do this setup the same as the priomap (in general)?It''s not the same, but you can get the same result. Remember, prio is only for excess bandidth. So each class will get''s at least his rate and the class with the lowest prio will get the remaining bandwidth. 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/
On Wed, Sep 25, 2002 at 01:02:03PM +0200, Soulfly wrote:> > "Soulfly" <zob_soulfly@hotmail.com> thus wrote: > > > > > tc qdisc add dev eth0 root handle 1: prio bands 5 priomap 2 3 2 2 3 3 3 > 3 1 > > > 1 1 1 2 2 2 2 > > > tc qdisc add dev eth0 parent 1:1 handle 10: sfq perturb 10 > > > tc qdisc add dev eth0 parent 1:2 handle 20: sfq perturb 10 > > > tc qdisc add dev eth0 parent 1:3 handle 30: sfq perturb 10 > > > tc qdisc add dev eth0 parent 1:4 handle 40: sfq perturb 10 > > > tc filter add dev eth0 protocol ip parent 1: prio 10 u32 match ip > protocol > > > 0xXX 0xff flowid 1:1 > > > > I have a configuration which use 5 prio levels (2 above the standard > priolevels). I conerted it to 4 and forgot to alter the band parameter.. so > the correct line is.. > > tc qdisc add dev eth0 root handle 1: prio bands 4 priomap 2 3 2 2 3 3 3 3 1 > 1 1 1 2 2 2 2 >Here is my net config: LAN1->(eth1)ipsec_gw1(ppp0)---------------(ppp0)ipsec_gw2(eth1)<-LAN2 ^ | server Ok, so I tried this: tc qdisc del dev ppp0 root tc qdisc add dev ppp0 root handle 1: prio tc qdisc add dev ppp0 parent 1:1 handle 10: sfq perturb 10 tc qdisc add dev ppp0 parent 1:2 handle 20: sfq perturb 10 tc qdisc add dev ppp0 parent 1:3 handle 30: sfq perturb 10 tc filter add dev ppp0 protocol ip parent 1: prio 10 u32 match ip protocol 0x50 0xff flowid 1:1 I did it on my too ipsec-end gateway so if from I connect from LAN1 to LAN2 via ssh, all traffic go in 10:, and when I ftp from LAN1 to the server directly through internet (no tunnel), traffic go in 30: But this doesn''t change anything, ssh is as slow as without prio when I do ftp???? Where is my probably qos conception error?? Thanks for any help. -- Easter-eggs Spécialiste GNU/Linux 44-46 rue de l''Ouest - 75014 Paris - France - Métro Gaité Phone: +33 (0) 1 43 35 00 37 - Fax: +33 (0) 1 41 35 00 76 mailto:elacour@easter-eggs.com - http://www.easter-eggs.com _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/