gurantee bandwidth

dear all
please help me accomplish this since many scenarios on forum not match this case and not a clear solution for this.
Thanks in advance

i have 2 wan links with pcc one is 8m and the other is 18m
i have 65 separated offices with vlans starting 10.0.1.0 till 10.0.65.0 and having dhcp server for each one
i want to distribute bandwidth as follows
offices must share the bandwidth equally in peak time
that means if 10 offices using internet each one must have (8+18)/10 = 2.6m each
and this 2.6m must be to the whole vlan and not every user from this vlan

if 2 offices using then 8+18/2=13m


what i am using now till i solve the problem is
queue type
5 name=“pcq-download” kind=pcq pcq-rate=3M pcq-limit=1KiB
pcq-classifier=dst-address pcq-total-limit=2000KiB pcq-burst-rate=0
pcq-burst-threshold=0 pcq-burst-time=10s pcq-src-address-mask=32
pcq-dst-address-mask=32 pcq-src-address6-mask=64 pcq-dst-address6-mask=64

6 name=“pcq-upload” kind=pcq pcq-rate=3M pcq-limit=50KiB
pcq-classifier=src-address pcq-total-limit=2000KiB pcq-burst-rate=0
pcq-burst-threshold=0 pcq-burst-time=10s pcq-src-address-mask=32
pcq-dst-address-mask=32 pcq-src-address6-mask=64 pcq-dst-address6-mask=64

queue simple
7 name=“Distribute” target=10.0.0.0/16 parent=none packet-marks=“” priority=8/8 queue=pcq-upload/pcq-download limit-at=0/0 max-limit=25M/22M burst-limit=0/0
burst-threshold=0/0 burst-time=0s/0s bucket-size=0.1/0.1

Any Reply Experts ?
Thanks

Hi,
Please anyone can help in this topic
Thanks in advance

Two things here.

First, you have to change the pcq-src-mask (in upload queue) and pcq-dst-mask (in download queue) from 32 to a mask representing the whole subnet of each branch office (and all the offices must have identical subnet sizes in order that this would work). With the current settings, you track the traffic of each individual IP (/32).

Second, in my understanding it is not a good idea to have a common queue for both WAN interfaces, because you may exceed the available bandwidth of one of them if the PCC sends some high-volume traffic through it. So it would be much better to have a separate pair of queues for each WAN, except that I have no idea how to do this using /queue simple on a single machine.

Thank you for replying sindy
i fixed the mask from 32 to 24 as for all vlans are /24 mask

on another note i am still can’t get the available bandwidth if its free since it is in simple queue limited
do you have any idea about how to give the available bandwidth to offices if there is any and not all the time 4M as its set now

Thank you in advance