Queues PCQ different port different traffic speed problem

Hello,
We have for example 192.168.1.0/24 network and for each client want to give 5 mbps traffic, but some traffic like p2p and udp must be 4 mbps, but total traffic from user sounds like max-limit cannot go more to 5mbps.
It is ability using pcq queues type limit many ports speed but not overrun total speed?
We have many user types (10 internet plans) and prerouting mangle will not help.

Any suggestion are welcome

Thanks

you may use double shaper:

  • in Mangle Prerouting, mark p2p packets and limit in global-in PCQ queue by 4M;
  • in Mangle Forward, mark packets by internet plan and limit in global-out, for example, by 5M;

in the result, p2p traffic is limited to 4M per IP, and total traffic per IP is limited to 5M