Is there a way for the router to figure out how much available bandwidth it has automatically, and can I write traffic shaper rules in terms of fractions of available uplink and downlink bandwidth?
Or, is there a sane way of doing the following that I am missing?
Given a network topology with a RouterBoard plugged into a DSL or cable modem on one side, and a bunch of computers and SIP phones on the other, I would like to design automated traffic shaping rules, so that RTP/SIP traffic will have maximum priority.
Basic breakdown of traffic shaping rules I want:
Priority 1 - Routing, ICMP, management connections to the device (dedicated 10KB/sec).
Priority 2 - SIP/RTP (maximum out of the available - 10KB/sec)
Priority 3 - Web browsing (small objects, under 50KB) - 50% of the remaining available bandwidth, burstable to 90% of the remaining available (where remaining available is max bandwidth - 10KB/sec - whatever SIP requires)
Priority 4 - Web browsing (bulk downloads (over 50KB) and e-mail (30% remaining available bandwidth, burtstable to 90% remaining available, as long as web browsing doesn't want it)
Priority 5 - everything else except BitTorrent (20% remaining available bandwidth, burstable to 90% of raining available bandwidth (as long as my access to device, and SIP/RTP, email and web browsing experience doesn't suffer)
Priority 8 - BitTorrent (whatever left, if bandwidth is available)
Generally, I'd need to know the maximum bandwidth available, and based on that come up with the rules. But is there a way to come up with generic rules, that will work no matter how much upload and download bandwidth one gets from the DSL or cable modem?
I currently use the l7 classifier for BitTorrent recipe from here ( http://wiki.mikrotik.com/wiki/Manual:IP/Firewall/L7 ) and bandwidth controls from here ( http://wiki.mikrotik.com/wiki/Bandwith_ ... _ADSL_link )
Thank you.