Adding new HFSC queue
-
Hello-
I would like to add a new queue for video over IP to the setup that was created using the Wizard. I currently have a one WAN/two LAN setup. The ALTQ rules are as follows:
altq on xl1 hfsc queue { qLink, qInternet } queue qLink on xl1 bandwidth 20% qlimit 500 hfsc ( ecn , default ) queue qInternet on xl1 bandwidth 4275Kb hfsc ( ecn , linkshare 4275Kb , upperlimit 4275Kb ) { qACK, qP2P, qVoIP, qOthersHigh, qOthersLow } queue qACK on xl1 bandwidth 17.006% hfsc ( ecn , linkshare 17.006% ) queue qP2P on xl1 bandwidth 4.2515% hfsc ( ecn , linkshare 4.2515% , upperlimit 4.2515% ) queue qVoIP on xl1 bandwidth 128Kb hfsc ( ecn , realtime 640Kb ) queue qOthersHigh on xl1 bandwidth 8.503% hfsc ( ecn , linkshare 8.503% ) queue qOthersLow on xl1 bandwidth 4.2515% hfsc ( ecn , linkshare 4.2515% ) altq on xl0 hfsc queue { qLink, qInternet } queue qLink on xl0 bandwidth 20% qlimit 500 hfsc ( ecn , default ) queue qInternet on xl0 bandwidth 4275Kb hfsc ( ecn , linkshare 4275Kb , upperlimit 4275Kb ) { qACK, qP2P, qVoIP, qOthersHigh, qOthersLow } queue qACK on xl0 bandwidth 17.006% hfsc ( ecn , linkshare 17.006% ) queue qP2P on xl0 bandwidth 4.2515% hfsc ( ecn , linkshare 4.2515% , upperlimit 4.2515% ) queue qVoIP on xl0 bandwidth 128Kb hfsc ( ecn , realtime 640Kb ) queue qOthersHigh on xl0 bandwidth 8.503% hfsc ( ecn , linkshare 8.503% ) queue qOthersLow on xl0 bandwidth 4.2515% hfsc ( ecn , linkshare 4.2515% ) altq on fxp0 hfsc bandwidth 4275Kb queue { qACK, qDefault, qP2P, qVoIP, qOthersHigh, qOthersLow } queue qACK on fxp0 bandwidth 19.854% hfsc ( ecn , linkshare 19.854% ) queue qDefault on fxp0 bandwidth 9.927% hfsc ( ecn , default ) queue qP2P on fxp0 bandwidth 4.9635% hfsc ( ecn , linkshare 4.9635% , upperlimit 4.9635% ) queue qVoIP on fxp0 bandwidth 128Kb hfsc ( ecn , realtime 640Kb ) queue qOthersHigh on fxp0 bandwidth 9.927% hfsc ( ecn , linkshare 9.927% ) queue qOthersLow on fxp0 bandwidth 4.9635% hfsc ( ecn , linkshare 4.9635% )
The xl0 & xl1 NICs are our two LAN connections. fxp0 points to our WAN connection.
I wish to add a video over IP queue similarly to the qVoIP queue using 384Kb for each video connection totalling no more than five concurrent video connections. I assume I need to create the following queue:
queue qVoIP on fxp0 bandwidth 384Kb hfsc ( ecn , realtime 1920Kb )
Is this assumption correct?
If the assumption above is correct, it appears that I need to modify the percentages for the other queues so that bandwidth usage isn't exceeded. However, I am having trouble understanding how the percentages were arrived at in the first place for these queues.
It looks like the qLink 20% is for communication between the two LAN endpoints and should be left alone. And the qInternet queue presumably defines the cap on the Internet bound packets for both LAN endpoints. So that leaves the other queues where I can then add up the percentages. When I do add them up leaving out the 32Kb bandwidth for qVoIP, I arrive at 34.012% (17.006 + 4.2515 +8.503+ 4.2515) I'm wondering where does the rest of the percentages go? Can anyone explain this?
Moreover, it appears that the bandwidth that is divided between the two LAN endpoints can be shared with the other assuming that it is not needed by the other LAN?
Also it looks like the qVoIP queue bandwidth is not shareable? There's no keyword 'linkshare' in the qVoIP queue statement so it is not being shared? I would like to share both the qVoIP queue and the new video over IP queue as long as it's not being used. Any caveats in sharing these queues?