Tue Jun 21, 2022 10:36 am
As you can see, the calculator doesn't deal with upload and download separately - it simply doesn't care about upload at all.
The math is actually very simple - it boils down to finding the largest common denominator. Imagine you have three uplinks with download speeds 200, 100, and 50 Mbps. You can express that as a 200:100:50 ratio; all elements are divisible by 50, so you can express the same ratio as 4:2:1. To distribute the connections in this ratio, you need 4+2+1=7 cases, so the denominator in the per-connection-classifier will be 7, and the reminder values will be 0 to 6.
So with some optimisation, the rules would look as follows:
per-connection-classifier=xxx:7/0 action=mark-routing new-routing-mark=WAN50 passthrough=no
per-connection-classifier=xxx:7/1 action=mark-routing new-routing-mark=WAN100 passthrough=no
per-connection-classifier=xxx:7/2 action=mark-routing new-routing-mark=WAN100 passthrough=no
action=mark-routing new-routing-mark=WAN200
The last rule stands in place of four individual rules with 7/3 through to 7/6.
And the calculator has it wrong, 30+10 needs 4/0, 4/1, 4/2, 4/3 rather than 3/0, 3/1, 3/2.