We have set up load balancing for two WAN-5G-connections using PCC following the manual but it seems as if something was amiss.
The relevant rules are attached... The setup works in the sense that both connections are used and we can reach "the world" - but it seems that the load balancing is unbalanced looking at the numbers. I have reset the counters a few minutes ago.
- the counters in the mangle view for the PCC-rules are balanced (both ~20kiB and ~300 Packets)
- the counters "mark routing to WAN" rules: 400kiB/1100kiB - 4000/10000 packets
- Incoming data 50/200 kiB 800/2000 packets for marking the connection
- accept rule 1000kIB/2000kiB 5000/10000 packets
Now I am aware that this is only a snapshot, but when looking at the figures in the last days, they were all similarly unbalanced. And always towards the same router.
Any suggestions on what the problem might be?
Thanks
Peter
/ip firewall mangle
add action=accept chain=prerouting dst-address=192.168.1.0/24 in-interface-list=LAN
add action=accept chain=prerouting dst-address=192.168.2.0/24 in-interface-list=LAN
add action=mark-connection chain=prerouting connection-mark=no-mark in-interface="WAN1" new-connection-mark=WAN1-connection passthrough=yes
add action=mark-connection chain=prerouting connection-mark=no-mark in-interface="WAN2" new-connection-mark=WAN2-connection passthrough=yes
add action=mark-connection chain=prerouting connection-mark=no-mark dst-address-type=!local in-interface-list=LAN new-connection-mark=WAN1-connection passthrough=yes per-connection-classifier=both-addresses:2/0
add action=mark-connection chain=prerouting connection-mark=no-mark dst-address-type=!local in-interface-list=LAN new-connection-mark=WAN2-connection passthrough=yes per-connection-classifier=both-addresses:2/1
add action=mark-routing chain=prerouting connection-mark=WAN1-connection in-interface-list=LAN new-routing-mark=to-WAN1 passthrough=yes
add action=mark-routing chain=prerouting connection-mark=WAN2-connection in-interface-list=LAN new-routing-mark=to-WAN2 passthrough=yes
add action=mark-routing chain=output connection-mark=WAN1-connection new-routing-mark=to-WAN1
add action=mark-routing chain=output connection-mark=WAN2-connection new-routing-mark=to-WAN2
/ip firewall nat
add action=masquerade chain=srcnat out-interface="WAN1"
add action=masquerade chain=srcnat out-interface="WAN2"
/ip route
add check-gateway=ping distance=1 gateway=192.168.1.1 routing-mark=to-WAN1
add check-gateway=ping distance=1 gateway=192.168.2.1 routing-mark=to-WAN2