Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Bug in traffic shaper

    Scheduled Pinned Locked Moved 2.0-RC Snapshot Feedback and Problems - RETIRED
    14 Posts 3 Posters 6.4k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • T
      Tamriel
      last edited by

      may be you need try HFSC queue
      I tune it up(don't using the wizard) and it's works

      123.png
      123.png_thumb
      1233.png
      1233.png_thumb
      12312.png
      12312.png_thumb
      12331.png
      12331.png_thumb
      111.png
      111.png_thumb

      AMD Athlon™ XP 1700+
      384MB Ram
      NanoBSD Boot Slice pfsense0 / da0s1
      Platform nanobsd (512mb)
      Version 2.0-RELEASE (i386)
      built on Wed Sep 14 09:08:10 EDT 2011

      1 Reply Last reply Reply Quote 0
      • X
        xbipin
        last edited by

        the reason y i use CBQ is because HSFC is not suitable for my needs as usually what happens is i have put p2p on the lowest priority and bandwidth and surfing on higher than that but if any of the lan clients starts a p2p download, i cant then get HSFC to steal bandwidth from that p2p queue and give it to the http queue like also mentioned here http://forum.pfsense.org/index.php/topic,28310.msg148058.html#msg148058

        1 Reply Last reply Reply Quote 0
        • X
          xbipin
          last edited by

          the reason y i say its a bug because even on the openbsd faq http://www.openbsd.org/faq/pf/queueing.html if u look at the example shown below, its somewhat the same config and its suppsoed to work but it doesnt

          Root Queue (2Mbps)
              UserA (1Mbps)
                  ssh (100Kbps)
                  ftp (900Kbps, borrow)
              UserB (1Mbps)

          1 Reply Last reply Reply Quote 0
          • E
            eri--
            last edited by

            Can you post the generated file in /tmp/rules.debug?
            Only the shaper part is ok.

            1 Reply Last reply Reply Quote 0
            • X
              xbipin
              last edited by

              have been busy lately and havent got time so finally tried it on the latest snap and its still the same

              /tmp/rules.debug contents

              altq on  pppoe0 cbq bandwidth 1Mb queue {  qACK,  qOthersDefault,  qP2P,  qVoIP,  qOthersHigh  }
              queue qACK on pppoe0 bandwidth 30% priority 6 qlimit 50 cbq (  borrow  ) 
              queue qOthersDefault on pppoe0 bandwidth 7% priority 4 qlimit 50 cbq (  red  , ecn ,  borrow  ) 
              queue qP2P on pppoe0 bandwidth 5% priority 1 qlimit 100 cbq (  red  , default ,  borrow  ) 
              queue qVoIP on pppoe0 bandwidth 48% priority 7 qlimit 50 cbq (  borrow  ) 
              queue qOthersHigh on pppoe0 bandwidth 10% priority 5 qlimit 50 cbq (  red  , ecn ,  borrow  )

              altq on  vr0 cbq bandwidth 100Mb queue {  qLocal,  qInternet  }
              queue qLocal on vr0 bandwidth 92Mb priority 1
              queue qInternet on vr0 bandwidth 8Mb priority 1 {  qACK,  qOthersDefault,  qP2P,  qVoIP,  qOthersHigh  }
              queue qACK on vr0 bandwidth 30% priority 6 qlimit 50 cbq (  borrow  ) 
              queue qOthersDefault on vr0 bandwidth 7% priority 4 qlimit 50 cbq (  red  , ecn ,  borrow  ) 
              queue qP2P on vr0 bandwidth 5% priority 1 qlimit 100 cbq (  red  , default ,  borrow  ) 
              queue qVoIP on vr0 bandwidth 48% priority 7 qlimit 50 cbq (  borrow  ) 
              queue qOthersHigh on vr0 bandwidth 10% priority 5 qlimit 50 cbq (  red  , ecn ,  borrow  )

              1 Reply Last reply Reply Quote 0
              • X
                xbipin
                last edited by

                could ermal have a look at this, seems to be a bug since a long time now

                1 Reply Last reply Reply Quote 0
                • E
                  eri--
                  last edited by

                  Its a problem in CBQ per se, in kernel.
                  Please open a ticket in redmine for this but i cannot promise to look it up in time for 2.0.

                  But you can achive the same probably with HFSC high limit properties, as a workaround.
                  Just swap the scheduler on the root queue and set highe limits on the HFSC 1mbit queue and it should behave the same!

                  1 Reply Last reply Reply Quote 0
                  • X
                    xbipin
                    last edited by

                    the reason y im not using hSFC is because it doesn't work well for me and i spent a lot of time in the past to make it work to my needs but i guess when u have like a internet speed of more than 10mbps or higher bandwidth connections it does good and lower ones it doesnt show its magic well.

                    earlier i was on a 1mbps download and HSFC didnt do well so i shifted to CBQ will was much agressive in shaping or lets say dropping packets as required and allocating bandwidth to other queues since then i have sued it and now im on a 8mbps download but i dont want to spend time getting HSFC to do as required.

                    1 Reply Last reply Reply Quote 0
                    • E
                      eri--
                      last edited by

                      Well it depends if you are not happy with it than you should fix the tbr setting in the root queue for lower speeds.
                      Usually HFSC will do its job if the link is overused otherwise it is like its not there.

                      1 Reply Last reply Reply Quote 0
                      • X
                        xbipin
                        last edited by

                        is there any general formula i could use to set the TBR for a 1mbps and a 8mbps download speed cause i failed to find more info on how much it was to be set according to the bandwidth so i left it blank?

                        what i meant was the other stuff configured for downloads using HSFC i find it less effective compared to CBQ, for eg: make p2p traffic at full speed when nothing else is going on but when something of higher priority such as surfing then kill p2p dead and serve http first then come back to p2p etc. there is a lot of debate i read about all this in older threads and then decided to move to CBQ and was surprised to see it fulfilled the purpose

                        1 Reply Last reply Reply Quote 0
                        • X
                          xbipin
                          last edited by

                          one of the threads and one specific post made me shift to CBQ, not that HSFC is poor but its just too good and doesn't do something as admins want it to do in some smaller environment, like a home or a SOHO network.
                          http://forum.pfsense.org/index.php/topic,28310.msg147944.html#msg147944

                          1 Reply Last reply Reply Quote 0
                          • First post
                            Last post
                          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.