Re: [leaf-user] How to use QOS traffic shaping in Being U 2.2
Hi Jaap, thank you for the information. I have started to load tc.lrp, bash.lrp (as the wonder-script is a bash script) and load all modules specified in the qos-htb howto. I also modified slightly the script, commenting 4 lines #echo Please read the documentation in 'README' first #exit and #tc filter add dev $DEV parent 1: protocol ip prio 18 u32 \ # match ip dst 0.0.0.0/0 flowid 1:20 Running the script alone is OK but when run by 'shorewall restart', I need to replace $[9*$UPLINK/10] with $((9*$UPLINK/10)). I guess because 'bash' is not recognized within shorewall script. I do not have anything in 'tcrules' yet. So far there is no error and it seems that something happens because it slowed down my downloading significantly. I tried to download a 15-M file from Sun and with 'tcstart' present, I got about 2K/sec, whereas if I remove 'tcstart' and restart shorewall, I got 100K/sec. I will try to refine the script soon. By the way, is there any way to test the wonderscript and tell if it works the way we want it to? Thanks again. M Lu. - Original Message - From: Jaap Eldering [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, September 28, 2004 6:53 PM Subject: Re: [leaf-user] How to use QOS traffic shaping in Being U 2.2 On Mon, Sep 27, 2004 at 11:19:46PM -0400, M Lu wrote: Hi, I am using Vonage phone and would like to use traffic shaping to give it some priority. As I read thru the mail archive and documents, I found out that there are possible ways 1 - Download Wondershaper script and copy it to Shorewall tcstart script etc, as described on Tom's Web site. 2 - Use the package qos-htb.lrp prepared by Eric Spakman and probably follow instruction at http://leaf.sourceforge.net/doc/guide/buhtb-qos.html It seems to me that the first way is more straighforward, but since the package is prepared for Bering U 2.x, I am not sure if I should use it. Any suggestions? I have tried this a time ago with Bering 1.x and I couldn't get it working (but that may be my fault). Recently I have tried it on my firewall again, which I had upgraded to Bering-uclibc 2.2. This I got working within little time. I installed the tc.lrp package and also the cls_*.o and sch_*.o modules and I am now using a modified version of the wondershaper script (slightly better ping times and down/upload speeds by also doing shaping on my internal interface). I'd suggest using the wondershaper. This way you don't have to know all the configuration details of the qos-htb package, which is just another script frontend to the HTB scheduler. I also have another following questions: - Is Bering U 2.2 kernel ready for QOS HTB? Yes, you can use the HTB scheduler right away, only need the bering-uclibc tc package and the modules for the schedulers and filters, you will be using. - If I use Shorewall's approach, do I have to declare the netfilter modules as in the instructions for second approach? Note that was writen for original Bering? Yes, you have to load these. I don't know exactly which ones the wonderscript uses. You could load them all to be on the safe side, but I think you need at least the following: sch_sfq, sch_prio, sch_ingress, sch_htb, cls_u32, cls_fw Jaap Eldering --- This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more http://productguide.itmanagersjournal.com/guidepromo.tmpl leaf-user mailing list: [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/leaf-user SR FAQ: http://leaf-project.org/pub/doc/docmanager/docid_1891.html --- This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more http://productguide.itmanagersjournal.com/guidepromo.tmpl leaf-user mailing list: [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/leaf-user SR FAQ: http://leaf-project.org/pub/doc/docmanager/docid_1891.html
Re: [leaf-user] How to use QOS traffic shaping in Being U 2.2
Hi At 08:18 29.09.2004 -0400, M Lu wrote: Hi Jaap, thank you for the information. I have started to load tc.lrp, bash.lrp (as the wonder-script is a bash script) and load all modules specified in the qos-htb howto. I also modified slightly the script, commenting 4 lines #echo Please read the documentation in 'README' first #exit and #tc filter add dev $DEV parent 1: protocol ip prio 18 u32 \ # match ip dst 0.0.0.0/0 flowid 1:20 I doubt you can remove this filter without consequences. Running the script alone is OK but when run by 'shorewall restart', I need to replace $[9*$UPLINK/10] with $((9*$UPLINK/10)). I guess because 'bash' is not recognized within shorewall script. this is the syntax I used: #tc class add dev $DEV parent 1:1 classid 1:20 htb rate $[9*$UPLINK/10]kbit \ tc class add dev $DEV parent 1:1 classid 1:20 htb rate `expr 9 \* $UPLINK / 10`kbit \ burst 6k prio 2 possibly the same thing. I did not have any performance degradation cheers Erich THINK Püntenstrasse 39 8143 Stallikon mailto:[EMAIL PROTECTED] PGP Fingerprint: BC9A 25BC 3954 3BC8 C024 8D8A B7D4 FF9D 05B8 0A16 --- This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more http://productguide.itmanagersjournal.com/guidepromo.tmpl leaf-user mailing list: [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/leaf-user SR FAQ: http://leaf-project.org/pub/doc/docmanager/docid_1891.html
Re: [leaf-user] How to use QOS traffic shaping in Being U 2.2
On Wed, Sep 29, 2004 at 03:53:13PM +0200, Erich Titl wrote: I have started to load tc.lrp, bash.lrp (as the wonder-script is a bash script) and load all modules specified in the qos-htb howto. I also modified slightly the script, commenting 4 lines #echo Please read the documentation in 'README' first #exit and #tc filter add dev $DEV parent 1: protocol ip prio 18 u32 \ # match ip dst 0.0.0.0/0 flowid 1:20 I doubt you can remove this filter without consequences. I think it can be removed, because that puts all 'bulk traffic' into child class 1:20, but 1:20 is also the default when traffic matches no filters. Running the script alone is OK but when run by 'shorewall restart', I need to replace $[9*$UPLINK/10] with $((9*$UPLINK/10)). I guess because 'bash' is not recognized within shorewall script. this is the syntax I used: #tc class add dev $DEV parent 1:1 classid 1:20 htb rate $[9*$UPLINK/10]kbit \ tc class add dev $DEV parent 1:1 classid 1:20 htb rate `expr 9 \* $UPLINK / 10`kbit \ burst 6k prio 2 possibly the same thing. I did not have any performance degradation Indeed. Only difference is that the '$(( ))' is handled by the shell itself, but 'expr' is an external command. This is only evaluated at startup however, so doesn't affect performance. About the '$[ ]': I don't know where it comes from, but it's not default bash syntax either. I also replaced it by '$(( ))' arith. evaluation. I do not have anything in 'tcrules' yet. So far there is no error and it seems that something happens because it slowed down my downloading significantly. I tried to download a 15-M file from Sun and with 'tcstart' present, I got about 2K/sec, whereas if I remove 'tcstart' and restart shorewall, I got 100K/sec. I will try to refine the script soon. By the way, is there any way to test the wonderscript and tell if it works the way we want it to? Maybe a stupid question, but have you set the DOWNLINK and UPLINK variables in the wondershaper script correctly? Anyways, I recall something strange about the units being used by 'tc'. I myself have the rates specified in Kbits/sec and in the calls to 'tc' have the rates followed by 'Kbit' (with capital K). You might also look at what tc says the outgoing rate is with the command 'tc class show dev $DEV'. Jaap Eldering --- This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more http://productguide.itmanagersjournal.com/guidepromo.tmpl leaf-user mailing list: [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/leaf-user SR FAQ: http://leaf-project.org/pub/doc/docmanager/docid_1891.html
Re: [leaf-user] How to use QOS traffic shaping in Being U 2.2
On Mon, Sep 27, 2004 at 11:19:46PM -0400, M Lu wrote: Hi, I am using Vonage phone and would like to use traffic shaping to give it some priority. As I read thru the mail archive and documents, I found out that there are possible ways 1 - Download Wondershaper script and copy it to Shorewall tcstart script etc, as described on Tom's Web site. 2 - Use the package qos-htb.lrp prepared by Eric Spakman and probably follow instruction at http://leaf.sourceforge.net/doc/guide/buhtb-qos.html It seems to me that the first way is more straighforward, but since the package is prepared for Bering U 2.x, I am not sure if I should use it. Any suggestions? I have tried this a time ago with Bering 1.x and I couldn't get it working (but that may be my fault). Recently I have tried it on my firewall again, which I had upgraded to Bering-uclibc 2.2. This I got working within little time. I installed the tc.lrp package and also the cls_*.o and sch_*.o modules and I am now using a modified version of the wondershaper script (slightly better ping times and down/upload speeds by also doing shaping on my internal interface). I'd suggest using the wondershaper. This way you don't have to know all the configuration details of the qos-htb package, which is just another script frontend to the HTB scheduler. I also have another following questions: - Is Bering U 2.2 kernel ready for QOS HTB? Yes, you can use the HTB scheduler right away, only need the bering-uclibc tc package and the modules for the schedulers and filters, you will be using. - If I use Shorewall's approach, do I have to declare the netfilter modules as in the instructions for second approach? Note that was writen for original Bering? Yes, you have to load these. I don't know exactly which ones the wonderscript uses. You could load them all to be on the safe side, but I think you need at least the following: sch_sfq, sch_prio, sch_ingress, sch_htb, cls_u32, cls_fw Jaap Eldering --- This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more http://productguide.itmanagersjournal.com/guidepromo.tmpl leaf-user mailing list: [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/leaf-user SR FAQ: http://leaf-project.org/pub/doc/docmanager/docid_1891.html
[leaf-user] How to use QOS traffic shaping in Being U 2.2
Hi, I am using Vonage phone and would like to use traffic shaping to give it some priority. As I read thru the mail archive and documents, I found out that there are possible ways 1 - Download Wondershaper script and copy it to Shorewall tcstart script etc, as described on Tom's Web site. 2 - Use the package qos-htb.lrp prepared by Eric Spakman and probably follow instruction at http://leaf.sourceforge.net/doc/guide/buhtb-qos.html It seems to me that the first way is more straighforward, but since the package is prepared for Bering U 2.x, I am not sure if I should use it. Any suggestions? I also have another following questions: - Is Bering U 2.2 kernel ready for QOS HTB? - If I use Shorewall's approach, do I have to declare the netfilter modules as in the instructions for second approach? Note that was writen for original Bering? Thank you a lot. M Lu. --- This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170 Project Admins to receive an Apple iPod Mini FREE for your judgement on who ports your project to Linux PPC the best. Sponsored by IBM. Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php leaf-user mailing list: [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/leaf-user SR FAQ: http://leaf-project.org/pub/doc/docmanager/docid_1891.html