Does anyone know if tc (iproute2) can be used to percentually divide the currently available bandwidth? We're on a GPRS connection on which the available bandwidth changes frequently. What I want to achieve is the following:
- Egress to port x: 60% of available bandwidth
- Egress to port y: 30% of available bandwidth
- All other egress traffic: 10% of available bandwidth
With tc I managed to achieve something in this direction by using an htb qdisc, and creating 3 classes with a rate of 60 / 30 / 10 kbps. By using a ceiling of 100kbs the classes would use any available bandwidth under 100kbs if available, but never more.
This kind of statically configured bandwidth is however not a solution that would work for us, since our bandwidth is extremely variable and we don't want to configure a ceiling. Our goal is to use the available bandwidth as much as possible. Ideally, we do not want to configure a rate in bytes/seconds but in a percentage. Is this be possible? I looked a the prio qdisc but the documentation there is really lacking.
Thanks!