Conflict "Enable Application Optimized Routing" VS "Policy Routing"

Conflict "Enable Application Optimized Routing" VS "Policy Routing"

Conflict "Enable Application Optimized Routing" VS "Policy Routing"
Conflict "Enable Application Optimized Routing" VS "Policy Routing"
Thursday - last edited Thursday
Model: ER8411  
Hardware Version: V1
Firmware Version: 1.3.6

Hi Everybody!

 

"Enable Application Optimized Routing" is not working if i have 2 WANs binded in "Policy Routing" for some local IPs.

Example:

WAN1 & WAN2 included into "Enable Bandwidth Based Balance Routing on port(s):" WAN1, WAN2

"Enable Application Optimized Routing" feature is ON

That does mean:

  • 4. With Application Optimized Routing enabled, packets with the same source IP and destination IP (or destination port) will no longer be distributed in the load balance

BUT! If to make a rule like this:

HOME ALL HOME_IPs IPGROUP_ANY WAN1,WAN2 Any Priority      

 

"Enable Application Optimized Routing" WILL NOT WORKING! (for the group HOME_IPs)

 

Also Policy Routing has another bug interfering with Load Ballance.

Some rules from this 2 great features are conflicting..

BUG2:

 

If I have WAN1,WAN2,WAN3. WAN3 IS NOT INCLUDED INTO Load Balance! WAN3 - is only for some special IPs routing. And if I will made this Policy Route:

HOME ALL HOME2_IPs IPGROUP_ANY WAN3 Any Priority  

 

This route will caused some another LAN IPs (not included into HOME2_IPs group) to be routing to WAN3....

  0      
  0      
#1
Options
4 Reply
Re:Conflict "Enable Application Optimized Routing" VS "Policy Routing"
Friday

Hi  @avpopov1977 

 

Thanks for posting here.

 

To understand the situation, please give us the following info:

1. How many WAN ports do you configure in total? What's their Internet service provider?

2. "Enable Application Optimized Routing" WILL NOT WORKING! (for the group HOME_IPs)

>>>How did you verify this? Please share your verification process with us, better with screenshots.

 

3. This route will caused some another LAN IPs (not included into HOME2_IPs group) to be routing to WAN3....

>>>Please share with us the related config screenshots;

How did you verify this? Please share your verification process with us, better with screenshots.

 

4. What's the firmware version of your router? When did you first notice these issue?

 

  0  
  0  
#2
Options
Re:Conflict "Enable Application Optimized Routing" VS "Policy Routing"
Friday

Hello @Vincent-TP 

 

1. 3WANs. from different providers. 2 x WANs (WAN1, WAN2) in Load Ballancing and one (WAN3) for Private LAN IPs group. 

2. Connecting from my ER8411 to remote web-interface ER6120. IP is changing in few seconds and i have to login again.

Here the log from 6120:

ID Time Module Level Content
1 2025-12-26 19:47:48 Remote Management NOTICE IP address x.x.223.143 succeeded to access the server.
2 2025-12-26 19:47:42 Remote Management NOTICE IP address x.x.120.7 succeeded to access the server.
3 2025-12-26 19:47:24 Remote Management NOTICE IP address x.x.223.143 succeeded to access the server.
4 2025-12-26 19:47:13 Remote Management NOTICE IP address x.x.120.7 succeeded to access the server.
5 2025-12-26 19:46:57 Remote Management NOTICE IP address x.x.120.7 succeeded to access the server.
6 2025-12-26 19:46:49 Remote Management NOTICE IP address x.x.223.143 succeeded to access the server.
7 2025-12-26 19:46:26 Remote Management NOTICE IP address x.x.223.143 succeeded to access the server.
8 2025-12-26 19:45:58 Remote Management NOTICE IP address x.x.120.7 succeeded to access the server.
9 2025-12-26 19:45:52 Remote Management NOTICE IP address x.x.120.7 succeeded to access the server.

 

3. BUG2 is very hard to catch.. And it caused only for few IPs from LAN.. Some time the system can working correctly, but later some of my users got an issues that all their traffic is going through wrong and not setupped for them WAN3-port.. The problem will gone after rebooting ER841 for few hours... I making the "Crunches" by adding the rule into policy routing for every LAN IPs users binding them to WAN1,WAN2 (not WAN3) - it helps. But it caused a problem with Application Optimized Routing will not working.

 

4. Version 1.3.6 but this is an old bugs - they are in all previous firmwares... (( Load Balancing algorithm conflicting with Policy Routing if I have 3WANs and two of them in Load Balancing... (( 

  0  
  0  
#3
Options
Re:Conflict "Enable Application Optimized Routing" VS "Policy Routing"
23 hours ago - last edited 23 hours ago

  @avpopov1977 

 

Application Optimised Routing and Load Balancing has NO EFFECT on any IPs or Networks that are set by policy routing to use a specific WAN.

 

Policy routing enforces those IPs or Networks to use a WAN - and only that WAN, forever until you change it.  Application Optimised Routing is designed for multi-path internet connections (rare) to split across the WANs via load-balance and ensure that the return traffic is NAT'ed correctly back to the LAN client.  Hence, if the LAN client is policy routed to a WAN, it cannot do anything, bacause any and all internet traffic associated with the client is only, will only, and can only go over the specified WAN.. 

 

If all your networks are policy routed to specific WANs, there is literally no point in enabling the other two features

  0  
  0  
#4
Options
Re:Conflict "Enable Application Optimized Routing" VS "Policy Routing"
17 hours ago

Hello  @GRL 

 

Thank you for reply!

But in fact PBR have an ability to add 2 and more WANs and if this WANs enabled for LB then users will path trough both of them!

The feature is Brilliant!! And works correct! But in this case Application Optimised Routing is not working.

 

I have an idea how to make it working even at 2 or more WANs.

For example IP Group "Home" have 20 users IPs.

WAN1 = 300Mbits and WAN2 = 100Mbits (for Example).

Can you make ER8411 Application Optimized Routing will route 15 user's IPs to WAN1 and only 5 user's IPs to WAN2 (according to WAN's Mbits rates)?

I understand that it is impossible to route traffic from 1 User ip to both WANs and to hold Application Optimized Routing working.

 

 

and could you check the second bug, which manifests itself in uncontrolled routing to some user IP addresses from the WAN that were specified for another group of users?

Here are the settings that will caused this bug:

LB is on at WAN1, WAN2. WAN3 - NOT included LB.

Group1 is a group of Internet IPs, for example Google IPs 142.250.0.0/15

PBR routing is set to Group1 have to path through WAN3 by priority.

All other traffic have to be balanced through WAN1 and WAN2.

in fact after some time will pass ... some of Local User IPs will found that ALL their traffic is passing through WAN3!

 

this bug could be solved by adding a rule into PBR that Local User IPs have to be routed to WAN1 and WAN2 - this will fix incorrect routing to WAN3..

But it will caused problem1 with Application Optimized Routing.

I've described that bug and found a "croutches" here: https://community.tp-link.com/en/business/forum/topic/701910?replyId=1417784

 

Thank you and Happy New Year!

 

 

  0  
  0  
#5
Options