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

    HFSC missing something simple - Sum of child bandwidth higher than parent

    Scheduled Pinned Locked Moved Traffic Shaping
    14 Posts 4 Posters 3.1k 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.
    • KOMK Offline
      KOM
      last edited by

      The hard way is to post screenshots of each queue, but that's a tremendous PITA.  Instead, go to Diagnostics - Backup/Restore.  For Backup area, select Traffic Shaper.  Download the configuration and post it here.

      1 Reply Last reply Reply Quote 0
      • S Offline
        sideout
        last edited by

        Or if your old school and like posting screenshots , you can use the Snipping tool in Windows 7 and 8 to do it fairly easily. 
        (Some of us like pretty pictures!!!) :P

        1 Reply Last reply Reply Quote 0
        • KOMK Offline
          KOM
          last edited by

          That can get messy real fast if you have multiple LANs or WANs and lots of child queues.  The XML output of the traffic shaper config is very readable.

          1 Reply Last reply Reply Quote 0
          • H Offline
            Harvy66
            last edited by

            I played around once more just to see if I could get it to work since I was last playing around later at night. Still the same issues, so the numbers may be slightly different than I posted at first.

            fyi, I'm using absolute values for the LAN interface because Real bandwidth comes from the root node, which is 1gb, not my 48Mb Internet queue.

            Lets play, "How stupid am I". Let the critiques begin!

            Thanks everyone!

            
             <shaper><queue><interface>wan</interface>
            		<name>wan</name>
            		<scheduler>HFSC</scheduler>
            		<bandwidth>50</bandwidth>
            		<bandwidthtype>Mb</bandwidthtype>
            		<enabled>on</enabled>
            		 <queue><name>qACK</name>
            			<interface>wan</interface>
            			<priority>6</priority>
            			 <bandwidth><bandwidthtype>%</bandwidthtype>
            			<enabled>on</enabled>
            			<qlimit>1000</qlimit>
            			<realtime3>20%</realtime3>
            
            			<linkshare3>0%</linkshare3>
            			<linkshare>on</linkshare>
            			<realtime>on</realtime></bandwidth></queue> 
            		 <queue><name>qDefault</name>
            			<interface>wan</interface>
            			<priority>2</priority>
            			 <bandwidth><bandwidthtype>%</bandwidthtype>
            			<enabled>on</enabled>
            			<default>default</default>
            			<qlimit>1000</qlimit>
            			<red>red</red>
            			<realtime3>10%</realtime3>
            			<upperlimit3>80%</upperlimit3>
            
            			<linkshare3>0%</linkshare3>
            			<linkshare>on</linkshare>
            			<realtime>on</realtime>
            			<upperlimit>on</upperlimit></bandwidth></queue> 
            		 <queue><name>qP2P</name>
            			<interface>wan</interface>
            			 <bandwidth><bandwidthtype>%</bandwidthtype>
            			<enabled>on</enabled>
            			<upperlimit3>80%</upperlimit3>
            			<qlimit>2000</qlimit>
            			<priority>1</priority>
            			<realtime3>1%</realtime3>
            
            			<linkshare3>0%</linkshare3>
            			<linkshare>on</linkshare>
            			<realtime>on</realtime>
            			<upperlimit>on</upperlimit></bandwidth></queue> 
            		 <queue><name>qGames</name>
            			<interface>wan</interface>
            			<priority>5</priority>
            			 <bandwidth><bandwidthtype>%</bandwidthtype>
            			<enabled>on</enabled>
            			<qlimit>1000</qlimit>
            			<realtime3>20%</realtime3>
            			<upperlimit3>80%</upperlimit3>
            
            			<linkshare3>0%</linkshare3>
            			<linkshare>on</linkshare>
            			<realtime>on</realtime>
            			<upperlimit>on</upperlimit></bandwidth></queue> 
            		 <queue><name>qOthersHigh</name>
            			<interface>wan</interface>
            			<priority>4</priority>
            			 <bandwidth><bandwidthtype>%</bandwidthtype>
            			<enabled>on</enabled>
            			<ecn>ecn</ecn>
            			<qlimit>1000</qlimit>
            			<realtime3>10%</realtime3>
            			<upperlimit3>80%</upperlimit3>
            
            			<linkshare3>0%</linkshare3>
            			<linkshare>on</linkshare>
            			<realtime>on</realtime>
            			<upperlimit>on</upperlimit></bandwidth></queue> 
            		 <queue><name>qOthersLow</name>
            			<interface>wan</interface>
            			<priority>1</priority>
            			 <bandwidth><bandwidthtype>%</bandwidthtype>
            			<enabled>on</enabled>
            			<ecn>ecn</ecn>
            			<qlimit>1000</qlimit>
            			<upperlimit3>80%</upperlimit3>
            			<realtime3>1%</realtime3>
            
            			<linkshare3>0%</linkshare3>
            			<linkshare>on</linkshare>
            			<realtime>on</realtime>
            			<upperlimit>on</upperlimit></bandwidth></queue> 
            		 <queue><name>qDNS</name>
            			<interface>wan</interface>
            			<qlimit>1000</qlimit>
            			<priority>3</priority>
            			 <bandwidth><bandwidthtype>%</bandwidthtype>
            			<enabled>on</enabled>
            			<realtime3>2%</realtime3>
            			<upperlimit3>4%</upperlimit3>
            
            			<linkshare3>0%</linkshare3>
            			<linkshare>on</linkshare>
            			<realtime>on</realtime>
            			<upperlimit>on</upperlimit></bandwidth></queue> 
            		 <queue><name>qWeb</name>
            			<interface>wan</interface>
            			<qlimit>1000</qlimit>
            			<priority>2</priority>
            			 <bandwidth><bandwidthtype>%</bandwidthtype>
            			<enabled>on</enabled>
            			<realtime3>10%</realtime3>
            			<upperlimit3>80%</upperlimit3>
            
            			<linkshare3>0%</linkshare3>
            			<linkshare>on</linkshare>
            			<realtime>on</realtime>
            			<upperlimit>on</upperlimit></bandwidth></queue></queue> 
            	 <queue><interface>lan</interface>
            		<name>lan</name>
            		<scheduler>HFSC</scheduler>
            		 <bandwidth><bandwidthtype><enabled>on</enabled>
            		 <queue><name>qLink</name>
            			<interface>lan</interface>
            			<qlimit>2000</qlimit>
            			<priority>2</priority>
            			<bandwidth>80</bandwidth>
            			<bandwidthtype>%</bandwidthtype>
            			<enabled>on</enabled></queue> 
            		 <queue><name>qInternet</name>
            			<interface>lan</interface>
            			 <bandwidth><bandwidthtype>Mb</bandwidthtype>
            			<enabled>on</enabled>
            			<ecn>ecn</ecn>
            			<upperlimit3>48Mb</upperlimit3>
            			 <queue><name>qACK</name>
            				<interface>lan</interface>
            				<priority>6</priority>
            				 <bandwidth><bandwidthtype>%</bandwidthtype>
            				<enabled>on</enabled>
            				<qlimit>1000</qlimit>
            				<realtime3>9600Kb</realtime3>
            				<linkshare3>0%</linkshare3>
            				<linkshare>on</linkshare>
            				<realtime>on</realtime></bandwidth></queue> 
            			 <queue><name>qP2P</name>
            				<interface>lan</interface>
            				 <bandwidth><bandwidthtype>%</bandwidthtype>
            				<enabled>on</enabled>
            				<qlimit>1000</qlimit>
            				<priority>1</priority>
            				<realtime3>500Kb</realtime3>
            				<upperlimit3>80%</upperlimit3>
            				<linkshare3>0%</linkshare3>
            				<linkshare>on</linkshare>
            				<realtime>on</realtime>
            				<upperlimit>on</upperlimit></bandwidth></queue> 
            			 <queue><name>qGames</name>
            				<interface>lan</interface>
            				<priority>5</priority>
            				 <bandwidth><bandwidthtype>%</bandwidthtype>
            				<enabled>on</enabled>
            				<qlimit>1000</qlimit>
            				<realtime3>5Mb</realtime3>
            				<upperlimit3>80%</upperlimit3>
            				<linkshare1>20%</linkshare1>
            				<linkshare2>5000</linkshare2>
            				<linkshare>on</linkshare>
            				<linkshare3>10%</linkshare3>
            				<realtime>on</realtime>
            				<upperlimit>on</upperlimit></bandwidth></queue> 
            			 <queue><name>qOthersHigh</name>
            				<interface>lan</interface>
            				<priority>4</priority>
            				 <bandwidth><bandwidthtype>%</bandwidthtype>
            				<enabled>on</enabled>
            				<linkshare3>10%</linkshare3>
            				<qlimit>1000</qlimit>
            				<linkshare>on</linkshare>
            				<linkshare1>20%</linkshare1>
            				<linkshare2>5000</linkshare2>
            				<realtime3>5Mb</realtime3>
            				<upperlimit3>80%</upperlimit3>
            				<realtime>on</realtime>
            				<upperlimit>on</upperlimit></bandwidth></queue> 
            			 <queue><name>qOthersLow</name>
            				<interface>lan</interface>
            				<priority>2</priority>
            				 <bandwidth><bandwidthtype>%</bandwidthtype>
            				<enabled>on</enabled>
            				<linkshare3>5%</linkshare3>
            				<qlimit>2500</qlimit>
            				<linkshare>on</linkshare>
            				<linkshare1>30%</linkshare1>
            				<linkshare2>5000</linkshare2>
            				<upperlimit3>80%</upperlimit3>
            				<upperlimit>on</upperlimit></bandwidth></queue> 
            			 <queue><name>qDefault</name>
            				<interface>lan</interface>
            				<priority>3</priority>
            				 <bandwidth><bandwidthtype>%</bandwidthtype>
            				<enabled>on</enabled>
            				<default>default</default>
            				<qlimit>2500</qlimit>
            				<linkshare3>5%</linkshare3>
            				<linkshare>on</linkshare>
            				<linkshare1>30%</linkshare1>
            				<linkshare2>5000</linkshare2>
            				<realtime3>5Mb</realtime3>
            				<upperlimit3>80%</upperlimit3>
            				<realtime>on</realtime>
            				<upperlimit>on</upperlimit></bandwidth></queue> 
            			 <queue><name>qDNS</name>
            				<interface>lan</interface>
            				<qlimit>1000</qlimit>
            				<priority>3</priority>
            				 <bandwidth><bandwidthtype>%</bandwidthtype>
            				<enabled>on</enabled>
            				<realtime3>1Mb</realtime3>
            				<upperlimit3>80%</upperlimit3>
            				<linkshare3>0%</linkshare3>
            				<linkshare>on</linkshare>
            				<realtime>on</realtime>
            				<upperlimit>on</upperlimit></bandwidth></queue> 
            			 <queue><name>qWeb</name>
            				<interface>lan</interface>
            				<qlimit>2500</qlimit>
            				<priority>2</priority>
            				 <bandwidth><bandwidthtype>%</bandwidthtype>
            				<enabled>on</enabled>
            				<linkshare1>30%</linkshare1>
            				<linkshare2>5000</linkshare2>
            				<linkshare>on</linkshare>
            				<linkshare3>10%</linkshare3>
            				<realtime3>5Mb</realtime3>
            				<upperlimit3>80%</upperlimit3>
            				<realtime>on</realtime>
            				<upperlimit>on</upperlimit></bandwidth></queue> 
            			<linkshare3>48Mb</linkshare3>
            			<linkshare>on</linkshare>
            			<upperlimit>on</upperlimit></bandwidth></queue></bandwidthtype></bandwidth></queue></shaper> 
            
            
            1 Reply Last reply Reply Quote 0
            • DerelictD Offline
              Derelict LAYER 8 Netgate
              last edited by

              I think it's all those 80%s in Upperlimit.

              You probably need to look at it differently, instead of saying you don't want anyone to use more than 80% ever, look at it like, "If all of these queues are in contention for all the available bandwidth, how do I want the scheduler to divvy up what's available, knowing that I can't go faster than 100%?

              And I would get rid of all the burst settings until you have your queuing working in general.  When you're totaling up the percentages, use the burst.  You had well over 100% on LAN.  And it probably doesn't work how you think it works so I'd add it in later when you know it'll be the right tool to solve a specific problem.

              Why no qInternet on WAN?  Outbound traffic on WAN is usually the first thing people want to shape.  qInternet with the upload speed in upperlimit.

              These rules will load.  I make no assertion that they are correct for any purpose.  I just wanted them to load without bombing out pf.

              
               <shaper><queue><interface>wan</interface>
              		<name>wan</name>
              		<scheduler>HFSC</scheduler>
              		<bandwidth>50</bandwidth>
              		<bandwidthtype>Mb</bandwidthtype>
              		<enabled>on</enabled>
              		 <queue><name>qACK</name>
              			<interface>wan</interface>
              			<priority>6</priority>
              			<bandwidth>1</bandwidth>
              			<bandwidthtype>%</bandwidthtype>
              			<enabled>on</enabled>
              			<qlimit>1000</qlimit>
              			<realtime3>20%</realtime3>
              
              			<linkshare3>1%</linkshare3>
              			<linkshare>on</linkshare>
              			<realtime>on</realtime></queue> 
              		 <queue><name>qDefault</name>
              			<interface>wan</interface>
              			<priority>2</priority>
              			<bandwidth>1</bandwidth>
              			<bandwidthtype>%</bandwidthtype>
              			<enabled>on</enabled>
              			<default>default</default>
              			<qlimit>1000</qlimit>
              			<red>red</red>
              			<realtime3>10%</realtime3>
              
              			<linkshare3>1%</linkshare3>
              			<linkshare>on</linkshare>
              			<realtime>on</realtime></queue> 
              		 <queue><name>qP2P</name>
              			<interface>wan</interface>
              			<bandwidth>1</bandwidth>
              			<bandwidthtype>%</bandwidthtype>
              			<enabled>on</enabled>
              			<qlimit>2000</qlimit>
              			<priority>1</priority>
              			<realtime3>1%</realtime3>
              
              			<linkshare3>1%</linkshare3>
              			<linkshare>on</linkshare>
              			<realtime>on</realtime></queue> 
              		 <queue><name>qGames</name>
              			<interface>wan</interface>
              			<priority>5</priority>
              			<bandwidth>1</bandwidth>
              			<bandwidthtype>%</bandwidthtype>
              			<enabled>on</enabled>
              			<qlimit>1000</qlimit>
              			<realtime3>20%</realtime3>
              
              			<linkshare3>1%</linkshare3>
              			<linkshare>on</linkshare>
              			<realtime>on</realtime></queue> 
              		 <queue><name>qOthersHigh</name>
              			<interface>wan</interface>
              			<priority>4</priority>
              			<bandwidth>1</bandwidth>
              			<bandwidthtype>%</bandwidthtype>
              			<enabled>on</enabled>
              			<ecn>ecn</ecn>
              			<qlimit>1000</qlimit>
              			<realtime3>10%</realtime3>
              
              			<linkshare3>1%</linkshare3>
              			<linkshare>on</linkshare>
              			<realtime>on</realtime></queue> 
              		 <queue><name>qOthersLow</name>
              			<interface>wan</interface>
              			<priority>1</priority>
              			<bandwidth>1</bandwidth>
              			<bandwidthtype>%</bandwidthtype>
              			<enabled>on</enabled>
              			<ecn>ecn</ecn>
              			<qlimit>1000</qlimit>
              			<realtime3>1%</realtime3>
              
              			<linkshare3>1%</linkshare3>
              			<linkshare>on</linkshare>
              			<realtime>on</realtime></queue> 
              		 <queue><name>qDNS</name>
              			<interface>wan</interface>
              			<qlimit>1000</qlimit>
              			<priority>3</priority>
              			<bandwidth>1</bandwidth>
              			<bandwidthtype>%</bandwidthtype>
              			<enabled>on</enabled>
              			<realtime3>2%</realtime3>
              
              			<linkshare3>1%</linkshare3>
              			<linkshare>on</linkshare>
              			<realtime>on</realtime></queue> 
              		 <queue><name>qWeb</name>
              			<interface>wan</interface>
              			<qlimit>1000</qlimit>
              			<priority>2</priority>
              			<bandwidth>1</bandwidth>
              			<bandwidthtype>%</bandwidthtype>
              			<enabled>on</enabled>
              			<realtime3>10%</realtime3>
              
              			<linkshare3>1%</linkshare3>
              			<linkshare>on</linkshare>
              			<realtime>on</realtime></queue></queue> 
              	 <queue><interface>lan</interface>
              		<name>lan</name>
              		<scheduler>HFSC</scheduler>
              		 <bandwidth><bandwidthtype><enabled>on</enabled>
              		 <queue><name>qLink</name>
              			<interface>lan</interface>
              			<qlimit>2000</qlimit>
              			<priority>2</priority>
              			<bandwidth>30</bandwidth>
              			<bandwidthtype>%</bandwidthtype>
              			<enabled>on</enabled></queue> 
              		 <queue><name>qInternet</name>
              			<interface>lan</interface>
              			<bandwidth>48</bandwidth>
              			<bandwidthtype>Mb</bandwidthtype>
              			<enabled>on</enabled>
              			<ecn>ecn</ecn>
              			<upperlimit3>48Mb</upperlimit3>
              			 <queue><name>qACK</name>
              				<interface>lan</interface>
              				<priority>6</priority>
              				<bandwidth>10</bandwidth>
              				<bandwidthtype>%</bandwidthtype>
              				<enabled>on</enabled>
              				<qlimit>1000</qlimit>
              				<realtime3>9600Kb</realtime3>
              				<linkshare3>10%</linkshare3>
              				<linkshare>on</linkshare>
              				<realtime>on</realtime></queue> 
              			 <queue><name>qP2P</name>
              				<interface>lan</interface>
              				<bandwidth>10</bandwidth>
              				<bandwidthtype>%</bandwidthtype>
              				<enabled>on</enabled>
              				<qlimit>1000</qlimit>
              				<priority>1</priority>
              				<realtime3>500Kb</realtime3>
              				<linkshare3>10%</linkshare3>
              				<linkshare>on</linkshare>
              				<realtime>on</realtime></queue> 
              			 <queue><name>qGames</name>
              				<interface>lan</interface>
              				<priority>5</priority>
              				<bandwidth>10</bandwidth>
              				<bandwidthtype>%</bandwidthtype>
              				<enabled>on</enabled>
              				<qlimit>1000</qlimit>
              				<realtime3>10%</realtime3>
              				<linkshare1>10%</linkshare1>
              				<linkshare2>5000</linkshare2>
              				<linkshare>on</linkshare>
              				<linkshare3>10%</linkshare3>
              				<realtime>on</realtime></queue> 
              			 <queue><name>qOthersHigh</name>
              				<interface>lan</interface>
              				<priority>4</priority>
              				<bandwidth>10</bandwidth>
              				<bandwidthtype>%</bandwidthtype>
              				<enabled>on</enabled>
              				<linkshare3>10%</linkshare3>
              				<qlimit>1000</qlimit>
              				<linkshare>on</linkshare>
              				<linkshare1>10%</linkshare1>
              				<linkshare2>5000</linkshare2>
              				<realtime3>5%</realtime3>
              				<realtime>on</realtime></queue> 
              			 <queue><name>qOthersLow</name>
              				<interface>lan</interface>
              				<priority>2</priority>
              				<bandwidth>5</bandwidth>
              				<bandwidthtype>%</bandwidthtype>
              				<enabled>on</enabled>
              				<linkshare3>5%</linkshare3>
              				<qlimit>2500</qlimit>
              				<linkshare>on</linkshare>
              				<linkshare1>10%</linkshare1>
              				<linkshare2>5000</linkshare2></queue> 
              			 <queue><name>qDefault</name>
              				<interface>lan</interface>
              				<priority>3</priority>
              				<bandwidth>5</bandwidth>
              				<bandwidthtype>%</bandwidthtype>
              				<enabled>on</enabled>
              				<default>default</default>
              				<qlimit>2500</qlimit>
              				<linkshare3>5%</linkshare3>
              				<linkshare>on</linkshare>
              				<linkshare1>10%</linkshare1>
              				<linkshare2>5000</linkshare2>
              				<realtime3>5%</realtime3>
              				<realtime>on</realtime></queue> 
              			 <queue><name>qDNS</name>
              				<interface>lan</interface>
              				<qlimit>1000</qlimit>
              				<priority>3</priority>
              				<bandwidth>10</bandwidth>
              				<bandwidthtype>%</bandwidthtype>
              				<enabled>on</enabled>
              				<realtime3>10%</realtime3>
              				<linkshare3>10%</linkshare3>
              				<linkshare>on</linkshare>
              				<realtime>on</realtime></queue> 
              			 <queue><name>qWeb</name>
              				<interface>lan</interface>
              				<qlimit>2500</qlimit>
              				<priority>2</priority>
              				<bandwidth>10</bandwidth>
              				<bandwidthtype>%</bandwidthtype>
              				<enabled>on</enabled>
              				<linkshare1>10%</linkshare1>
              				<linkshare2>5000</linkshare2>
              				<linkshare>on</linkshare>
              				<linkshare3>10%</linkshare3>
              				<realtime3>5%</realtime3>
              				<realtime>on</realtime></queue> 
              			<linkshare3>48Mb</linkshare3>
              			<linkshare>on</linkshare>
              			<upperlimit>on</upperlimit></queue></bandwidthtype></bandwidth></queue></shaper> 
              
              

              Chattanooga, Tennessee, USA
              A comprehensive network diagram is worth 10,000 words and 15 conference calls.
              DO NOT set a source address/port in a port forward or firewall rule unless you KNOW you need it!
              Do Not Chat For Help! NO_WAN_EGRESS(TM)

              1 Reply Last reply Reply Quote 0
              • H Offline
                Harvy66
                last edited by

                The WAN interface says 50Mb. This was actually created by the built by the wizard this way. The only thing I did was modify the child queues, but I did not setup the hierarchy.

                Well, I removed the upperlimit and burst from everything(left upper limit on the qInternet on LAN), while leaving everything else the same. It still thinks something is wrong with the WAN queues.

                hmm… time to just set all of them to 1% and see if that works.

                1 Reply Last reply Reply Quote 0
                • H Offline
                  Harvy66
                  last edited by

                  OK. I just set all of my WAN queues to 1% for both realtime and linkshare, which means the total for both at 8%, well under even 80%. The error still says it's my WAN interface, so I haven't touched my LAN rules.

                  
                   <shaper><queue><interface>wan</interface>
                  		<name>wan</name>
                  		<scheduler>HFSC</scheduler>
                  		<bandwidth>50</bandwidth>
                  		<bandwidthtype>Mb</bandwidthtype>
                  		<enabled>on</enabled>
                  		 <queue><name>qACK</name>
                  			<interface>wan</interface>
                  			<priority>6</priority>
                  			 <bandwidth><bandwidthtype>%</bandwidthtype>
                  			<enabled>on</enabled>
                  			<qlimit>1000</qlimit>
                  			<realtime3>1%</realtime3>
                  
                  			<linkshare3>1%</linkshare3>
                  			<linkshare>on</linkshare>
                  			<realtime>on</realtime></bandwidth></queue> 
                  		 <queue><name>qDefault</name>
                  			<interface>wan</interface>
                  			<priority>2</priority>
                  			 <bandwidth><bandwidthtype>%</bandwidthtype>
                  			<enabled>on</enabled>
                  			<default>default</default>
                  			<qlimit>1000</qlimit>
                  			<red>red</red>
                  			<realtime3>1%</realtime3>
                  
                  			<linkshare3>1%</linkshare3>
                  			<linkshare>on</linkshare>
                  			<realtime>on</realtime></bandwidth></queue> 
                  		 <queue><name>qP2P</name>
                  			<interface>wan</interface>
                  			 <bandwidth><bandwidthtype>%</bandwidthtype>
                  			<enabled>on</enabled>
                  			<qlimit>2000</qlimit>
                  			<priority>1</priority>
                  			<realtime3>1%</realtime3>
                  
                  			<linkshare3>1%</linkshare3>
                  			<linkshare>on</linkshare>
                  			<realtime>on</realtime></bandwidth></queue> 
                  		 <queue><name>qGames</name>
                  			<interface>wan</interface>
                  			<priority>5</priority>
                  			 <bandwidth><bandwidthtype>%</bandwidthtype>
                  			<enabled>on</enabled>
                  			<qlimit>1000</qlimit>
                  			<realtime3>1%</realtime3>
                  
                  			<linkshare3>1%</linkshare3>
                  			<linkshare>on</linkshare>
                  			<realtime>on</realtime></bandwidth></queue> 
                  		 <queue><name>qOthersHigh</name>
                  			<interface>wan</interface>
                  			<priority>4</priority>
                  			 <bandwidth><bandwidthtype>%</bandwidthtype>
                  			<enabled>on</enabled>
                  			<ecn>ecn</ecn>
                  			<qlimit>1000</qlimit>
                  			<realtime3>1%</realtime3>
                  
                  			<linkshare3>1%</linkshare3>
                  			<linkshare>on</linkshare>
                  			<realtime>on</realtime></bandwidth></queue> 
                  		 <queue><name>qOthersLow</name>
                  			<interface>wan</interface>
                  			<priority>1</priority>
                  			 <bandwidth><bandwidthtype>%</bandwidthtype>
                  			<enabled>on</enabled>
                  			<ecn>ecn</ecn>
                  			<qlimit>1000</qlimit>
                  			<realtime3>1%</realtime3>
                  
                  			<linkshare3>1%</linkshare3>
                  			<linkshare>on</linkshare>
                  			<realtime>on</realtime></bandwidth></queue> 
                  		 <queue><name>qDNS</name>
                  			<interface>wan</interface>
                  			<qlimit>1000</qlimit>
                  			<priority>3</priority>
                  			 <bandwidth><bandwidthtype>%</bandwidthtype>
                  			<enabled>on</enabled>
                  			<realtime3>1%</realtime3>
                  
                  			<linkshare3>1%</linkshare3>
                  			<linkshare>on</linkshare>
                  			<realtime>on</realtime></bandwidth></queue> 
                  		 <queue><name>qWeb</name>
                  			<interface>wan</interface>
                  			<qlimit>1000</qlimit>
                  			<priority>2</priority>
                  			 <bandwidth><bandwidthtype>%</bandwidthtype>
                  			<enabled>on</enabled>
                  			<realtime3>1%</realtime3>
                  
                  			<linkshare3>1%</linkshare3>
                  			<linkshare>on</linkshare>
                  			<realtime>on</realtime></bandwidth></queue></queue> 
                  	 <queue><interface>lan</interface>
                  		<name>lan</name>
                  		<scheduler>HFSC</scheduler>
                  		 <bandwidth><bandwidthtype><enabled>on</enabled>
                  		 <queue><name>qLink</name>
                  			<interface>lan</interface>
                  			<qlimit>2000</qlimit>
                  			<priority>2</priority>
                  			<bandwidth>80</bandwidth>
                  			<bandwidthtype>%</bandwidthtype>
                  			<enabled>on</enabled></queue> 
                  		 <queue><name>qInternet</name>
                  			<interface>lan</interface>
                  			 <bandwidth><bandwidthtype>Mb</bandwidthtype>
                  			<enabled>on</enabled>
                  			<ecn>ecn</ecn>
                  			<upperlimit3>48Mb</upperlimit3>
                  			 <queue><name>qACK</name>
                  				<interface>lan</interface>
                  				<priority>6</priority>
                  				 <bandwidth><bandwidthtype>%</bandwidthtype>
                  				<enabled>on</enabled>
                  				<qlimit>1000</qlimit>
                  				<realtime3>9600Kb</realtime3>
                  				<linkshare3>0%</linkshare3>
                  				<linkshare>on</linkshare>
                  				<realtime>on</realtime></bandwidth></queue> 
                  			 <queue><name>qP2P</name>
                  				<interface>lan</interface>
                  				 <bandwidth><bandwidthtype>%</bandwidthtype>
                  				<enabled>on</enabled>
                  				<qlimit>1000</qlimit>
                  				<priority>1</priority>
                  				<realtime3>500Kb</realtime3>
                  				<linkshare3>0%</linkshare3>
                  				<linkshare>on</linkshare>
                  				<realtime>on</realtime></bandwidth></queue> 
                  			 <queue><name>qGames</name>
                  				<interface>lan</interface>
                  				<priority>5</priority>
                  				 <bandwidth><bandwidthtype>%</bandwidthtype>
                  				<enabled>on</enabled>
                  				<qlimit>1000</qlimit>
                  				<realtime3>5Mb</realtime3>
                  				<linkshare3>10%</linkshare3>
                  				<linkshare>on</linkshare>
                  				<realtime>on</realtime></bandwidth></queue> 
                  			 <queue><name>qOthersHigh</name>
                  				<interface>lan</interface>
                  				<priority>4</priority>
                  				 <bandwidth><bandwidthtype>%</bandwidthtype>
                  				<enabled>on</enabled>
                  				<linkshare3>10%</linkshare3>
                  				<qlimit>1000</qlimit>
                  				<realtime3>5Mb</realtime3>
                  				<linkshare>on</linkshare>
                  				<realtime>on</realtime></bandwidth></queue> 
                  			 <queue><name>qOthersLow</name>
                  				<interface>lan</interface>
                  				<priority>2</priority>
                  				 <bandwidth><bandwidthtype>%</bandwidthtype>
                  				<enabled>on</enabled>
                  				<linkshare3>5%</linkshare3>
                  				<qlimit>2500</qlimit>
                  				<linkshare>on</linkshare></bandwidth></queue> 
                  			 <queue><name>qDefault</name>
                  				<interface>lan</interface>
                  				<priority>3</priority>
                  				 <bandwidth><bandwidthtype>%</bandwidthtype>
                  				<enabled>on</enabled>
                  				<default>default</default>
                  				<qlimit>2500</qlimit>
                  				<linkshare3>5%</linkshare3>
                  				<realtime3>5Mb</realtime3>
                  				<linkshare>on</linkshare>
                  				<realtime>on</realtime></bandwidth></queue> 
                  			 <queue><name>qDNS</name>
                  				<interface>lan</interface>
                  				<qlimit>1000</qlimit>
                  				<priority>3</priority>
                  				 <bandwidth><bandwidthtype>%</bandwidthtype>
                  				<enabled>on</enabled>
                  				<realtime3>1Mb</realtime3>
                  				<linkshare3>0%</linkshare3>
                  				<linkshare>on</linkshare>
                  				<realtime>on</realtime></bandwidth></queue> 
                  			 <queue><name>qWeb</name>
                  				<interface>lan</interface>
                  				<qlimit>2500</qlimit>
                  				<priority>2</priority>
                  				 <bandwidth><bandwidthtype>%</bandwidthtype>
                  				<enabled>on</enabled>
                  				<linkshare3>10%</linkshare3>
                  				<realtime3>5Mb</realtime3>
                  				<linkshare>on</linkshare>
                  				<realtime>on</realtime></bandwidth></queue> 
                  			<linkshare3>48Mb</linkshare3>
                  			<linkshare>on</linkshare>
                  			<upperlimit>on</upperlimit></bandwidth></queue></bandwidthtype></bandwidth></queue></shaper> 
                  
                  
                  1 Reply Last reply Reply Quote 0
                  • KOMK Offline
                    KOM
                    last edited by

                    I remember someone else had this issue a few months ago so I searched for it:

                    https://forum.pfsense.org/index.php?topic=82530.0

                    The problem was that LAN bandwidth is undefined and qLink + qInternet needs to be Less than LAN bandwidth.  LAN bandwidth was blank.

                    Also, do you get any more detail if you shell in and run these commands:

                    cd /tmp
                    pfctl -nf rules.debug

                    Does it say more than just the one line message you received through the GUI?

                    1 Reply Last reply Reply Quote 0
                    • DerelictD Offline
                      Derelict LAYER 8 Netgate
                      last edited by

                      As far as I can tell, when the interface bandwidth is blank is automatically uses the negotiated link speed.

                      That's not it.  The ruleset I posted loads and LAN bandwidth is blank.  LAN bandwidth is blank on mine here and examining the queues shows it's using 1Gb.

                      Chattanooga, Tennessee, USA
                      A comprehensive network diagram is worth 10,000 words and 15 conference calls.
                      DO NOT set a source address/port in a port forward or firewall rule unless you KNOW you need it!
                      Do Not Chat For Help! NO_WAN_EGRESS(TM)

                      1 Reply Last reply Reply Quote 0
                      • KOMK Offline
                        KOM
                        last edited by

                        From what I have also read, blank LAN bandwidth equates to "100%".  We might get more detail with the output of the pfctl command.

                        1 Reply Last reply Reply Quote 0
                        • H Offline
                          Harvy66
                          last edited by

                          @KOM:

                          From what I have also read, blank LAN bandwidth equates to "100%".  We might get more detail with the output of the pfctl command.

                          Since bandwidth is just LinkShare, based on what I've read, the m2 in LinkShare should always override what's in bandwidth. Having said that, I went back and removed all of my link shares and just set my values in bandwidth instead and I set Real to the same as Bandwidth.

                          It works! I may not have it set optimally, but good enough. I'm just a home user.

                          It's easy for me to test my download, but it's hard to test my upload. Anyway, here's the results. You'l notice that my quality graph shows my ping going down. My ISP's gateway seems to respond to pings more quickly under load… Probably a thread scheduling thing, since ping responses are handled by the host CPU and not the ASIC.

                          This has solved my random packet-loss during high utilization. I normally get 0%, but some times when hammering my connection, it will get into the 0.04% range.

                          Thanks everyone!

                          P.S. If someone has a better way to loadtest my connection than Torrenting Linux ISOs while running SpeedTest.Net, I'm all ears.

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