Jump to content

Template:Networking rutos manual failover: Difference between revisions

no edit summary
No edit summary
No edit summary
(30 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{{Template:Networking_rutos_manual_fw_disclosure
{{Template: Networking_rutos_manual_fw_disclosure
| fw_version = {{{series}}}_R_00.02.03
| fw_version = {{{series}}}{{#ifeq:{{{name}}}|RUT241|M|}}_R_00.07.01{{#ifeq:{{{series}}}|RUT9|.1|}}
| series    = {{{series}}}
}}
{{#ifeq: {{{series}}} | RUT9 |<br><i><b>Note</b>: <b>[[{{{name}}} WAN (legacy WebUI)|click here]]</b> for the old style WebUI (FW version RUT9XX_R_00.06.08.5 and earlier) user manual page.</i>|}}{{#ifeq: {{{series}}} | RUT2 |
{{#switch: {{{name}}}
  | RUT241 =
  | #default =
<br><i><b>Note</b>: <b>[[{{{name}}} WAN (legacy WebUI)|click here]]</b> for the old style WebUI (FW version RUT2XX_R_00.01.14.4 and earlier) user manual page.</i>}}
|}}
__TOC__
==Summary==
 
This chapter is an overview of the Failover and Load Balancing functions in {{{name}}} device.
 
{{Template:Networking_rutos_manual_basic_advanced_webui_disclaimer
| series = {{{series}}}
| series = {{{series}}}
}}
}}
==Summary==
 
This chapter is an overview of the Failover and Load Balancing functions in {{{name}}} routers.
==Failover==
{{Template:Networking_rutos_manual_basic_advanced_webui_disclaimer}}
{{#ifeq: {{{name}}} | RUTX08 | <b><span style="color: red;">Attention:</span></b> if you're using a <b>{{{name}}} device</b>, the only way to see the Failover page is to configure at least one LAN port to act as WAN. This can be done from the Network → [[{{{name}}} Interfaces|Interfaces]] page.<br>
===Failover===
----|}}
----
The <b>Failover</b> function allows you to backup your primary WAN connection in case it goes down.
This function allows you to back up your primary connection in case it goes down. For example, when primary connection goes down, router will try to use second configured backup interface. If second interface will also become unavailable, router will try to use third backup interface.  


In order to set priorities, simply press left mouse click on the interface, then drag it to the 1st, 2nd or other position and then press Save & Apply.
In order to set priorities, simply press left mouse click on the interface, then drag it to the 1st, 2nd or other position and then press Save & Apply.
[[File:Networking_rutx11_manual_failover_confing_v1.png]]


Below is an example of Failover settings section.
[[File:Networking_rutos_manual_failover_failover_interfaces.png|border|class=tlt-border]]
 
You can drag & drop an interface in order to change its position on the list. Interfaces that are higher on the list have a higher priority than the ones that are lower, i.e., the device will always use the WAN interface with the highest priority as long as it is available. If it goes down, the device will start using the interface with the second highest priority and so on.
 
Take note that changing an interface's position in the list here also changes its position in the following pages:


{{#switch: {{{name}}}
<ul>
    |RUTX11 = [[File:Networking_rutx11_manual_failover_v1.png]]
    <li><i>Network → [[{{{name}}} Interfaces|Interfaces]]</i></li>
    |RUTXR1 = [[File:Networking_rutx11_manual_failover_v1.png]]
    <li><i>Network → [[{{{name}}} WAN|WAN]]</i></li>
    |RUTX12 = [[File:Networking_rutx11_manual_failover_v1.png]]
</ul>
    |RUTX10 = [[File:Networking_rutx10_manual_failover_v1.png]]
 
    |RUTX09 = [[File:Networking_rutx09_manual_failover_v1.png]]
===Failover Interface Configuration===
    |RUTX08 = [[File:Networking_rutx08_manual_failover_v1.png]]
----
}}
A failover <b>Interface Configuration</b> page is used to configure how the device will determine whether an interface is online or offline. To enter an interface configuration page, click the 'Edit' button next to an interface.
By pressing Edit button, you can find more Failover interface settings. More information and example are presented below.
 
[[File:Networking_rutos_manual_failover_interface_configuration_edit_button.png|border|class=tlt-border]]
 
After this you should be redirected to the configuration page of that interface.


[[File:Networking_rutos_manual_failover_interface_configuration.png|border|class=tlt-border]]


<table class="nd-mantable">
<table class="nd-mantable">
<tr>
    <tr>
    <th>field name</th>
        <th>Field</th>
    <th>value</th>
        <th>Value</th>
    <th>description</th>
        <th>Description</th>
</tr>
    </tr>
<tr>
    <tr>
    <td>Enable</td>
        <td>Enable</td>
    <td>off | on; Default: '''off'''</td>
        <td>off | on; default: <b>off</b></td>
    <td>Toggles the interface ON or OFF</td>
        <td>Turn the interface on or off.</td>
</tr>
    </tr>
<tr>
    <tr>
    <td>Interval</td>
        <td>Interval</td>
    <td>Default: '''3'''</td>
        <td>integer; default: <b>3</b></td>
    <td>Number of seconds between each test</td>
        <td>Number of seconds between each test</td>
</tr>
    </tr>
<tr>
    <tr>
     <td>Method</td>
        <td>Flush connections on</td>
    <td>Default: '''Ping'''</td>
        <td>Connected | Disconnected | none | both; default: <b>none</b></td>
    <td>Method, how internet connection will be tested</td>
        <td>Flushes established connections after the selected scenario occurs to renew the priorities of configured interfaces.</td>
</tr>
    </tr>
<tr>
     <tr>
    <td>Track IP</td>
        <td>Method</td>
    <td>IP;Default: '''8.8.4.4; 8.8.8.8'''</td>
        <td>Ping; default: <b>Ping</b></td>
    <td>The hosts to test if interface is still alive. If this value is missing the interface is always considered up</td>
        <td>Defines how health check will be performed on this interface when determining its state.</td>
</tr>
    </tr>
<tr>
    <tr>
    <td>Reliability</td>
        <td>Track IP</td>
    <td>Default: '''1'''</td>
        <td>ip | hostname; default: <b>8.8.4.4,8.8.8.8</b></td>
    <td>Number of hosts that must reply for the test to be considered as successful. Ensure there are at least this many hosts defined or the interface will always be considered down</td></tr><tr><td>Count</td><td>Default: '''1'''</td>
        <td>IP address(es) or hostname(s) that will be used to determine an interface's state. If the device receives no response from any of the specified hosts, the interface will be considered as 'Offline'. If this value is missing the interface is always considered up.</td>
    <td>Number of pings to send to each host with each test</td>
    </tr>
</tr>
    <tr>
<tr>
        <td>Reliability</td>
    <td>Up</td>
        <td>integer; default: <b>1</b></td>
    <td>Default: '''3'''</td>
        <td>Number of hosts that must reply for the test to be considered successful. Make sure there are at least this many hosts defined in the 'Track IP' field, otherwise the interface will always be considered as 'Offline'.</td>
    <td>Number of successful tests to considered link as alive</td>
    </tr>
</tr>
    <tr>
<tr>
        <td>Count</td>
    <td>Down</td>
        <td>integer; default: <b>1</b></td>
    <td>Default: '''3'''</td>
        <td>Number of pings to send to each host with each test.</td>
    <td>Number of failed tests to considered link as dead</td>
    </tr>
</tr></table>
    <tr>
        <td>Up</td>
        <td>integer; default: <b>3</b></td>
        <td>Number of successful tests required to considered an interface as 'Online'.</td>
    </tr>
    <tr>
        <td>Down</td>
        <td>integer; default: <b>3</b></td>
        <td>Number of failed tests required to considered an interface as 'Offline'.</td>
    </tr>
</table>
 
==Load Balancing==


===Load Balancing===
<b>Load Balancing</b> is a method of dividing traffic between multiple WAN interfaces. Load Balancing can be used to share the data load between different interfaces and increase the overall Internet speed for multiple users and connections. It is important to note that <u>Load Balancing does not increase speed for any single connection</u>. For example, if you're downloading a large file, using Load Balancing will not increase the speed of that download.
----
 
Load balancing lets users create rules that divide traffic between different interfaces. Below is an example of Load Balancing settings window.
However, Load Balancing can be used to increase the speed of multiple connections. For example, when used in a WiFi network, Load Balancing would utilize the resources of multiple WAN interfaces to handle the many various requests of different clients.
{{#switch: {{{name}}}
 
    |RUTX11 = [[File:Networking_rutx11_manual_load_balancing_v1.png]]
Both Load Balancing and Failover cannot be used at the same time. If you wish to select Load Balancing, you can do that in the dropdown located in the top-right corner of the page:
    |RUTXR1 = [[File:Networking_rutx11_manual_load_balancing_v1.png]]
 
    |RUTX12 = [[File:Networking_rutx11_manual_load_balancing_v1.png]]
[[File:Networking_rutos_manual_failover_load_balancing_select.png|border|class=tlt-border]]
    |RUTX10 = [[File:Networking_rutx10_manual_load_balancing_v1.png]]
 
    |RUTX09 = [[File:Networking_rutx09_manual_load_balancing_v1.png]]
Below is an example of the Load Balancing page.
    |RUTX08 = [[File:Networking_rutx08_manual_load_balancing_v1.png]]
 
}}
[[File:Networking_rutos_manual_failover_load_balancing_interfaces.png|border|class=tlt-border]]
 
When Load Balancing is selected, you can <b>assign ratio values</b> to WAN interfaces. The ratio value represents a percentage of traffic load that will go through an interface. For example, if you set it up like this:
 
<table>
    <tr>
        <td style="text-align: left; width: 150px;"><li><i>Wired WAN Ratio:</i></li></td>
        <td style="text-align: right; width: 30px;"><b>3</b>
    </tr>
</table>
<table>
    <tr>
        <td style="text-align: left; width: 150px;"><li><i>{{{wan2}}} Ratio:</i></li></td>
        <td style="text-align: right; width: 30px;"><b>2</b></td>
    </tr>
</table>
 
then about 60 % (3/5) of traffic would go through the Wired WAN interface and about 40 % (2/5) would go through {{{wan2}}}. In this case if you played 100 different videos on the Internet, about 60 would be downloaded through Wired WAN and the other 40 would be downloaded via {{{wan2}}}.
 
==Rules==
 
A Load Balancing/Failover <b>Rule</b> is a set of conditions that define some type of network traffic. The traffic that matches the conditions set in the rule is handled in accordance to the specified <b>Policy</b>.
 
There is one default rule present on the device. You can add more rules with the 'Add' button or you can customize the existing rule by clicking the 'Edit' button next to it:
 
[[File:Networking_rutos_manual_failover_load_balancing_rules.png|border|class=tlt-border]]
 
[[File:Networking_rutos_manual_failover_load_balancing_rule_configuration.png|border|class=tlt-border]]


<table class="nd-mantable">
    <tr>
        <th>Field</th>
        <th>Value</th>
        <th>Description</th>
    </tr>
    <tr>
        <td>Protocol</td>
        <td>all | tcp | udp | icmp | esp; default: <b>all</b></td>
        <td>Protocol to match this rule.</td>
    </tr>
    <tr>
        <td>Source address</td>
        <td>ip/netmask; default: <b>none</b></td>
        <td>Source IP addresses to match this rule.</td>
    </tr>
    <tr>
        <td>Sticky</td>
        <td>off | <span style="color: #20C0D7;"><b>on</b></span>; default: <b>off</b></td>
        <td>If turned on, traffic from the same source IP address that previously matched this rule within the sticky timeout period will use the same WAN interface.</td>
    </tr>
    <tr>
        <td><span style="color: #20C0D7;">Sticky timeout</span></td>
        <td>integer [1..1000000]; default: <b>600</b></td>
        <td>Timeout in seconds.</td>
    </tr>
    <tr>
        <td>Policy assigned</td>
        <td>default (Load Balancing) | default (Failover) | Unreachable (Reject) | Blackhole (Drop) | Default (Use main routing table) | custom; default: <b>default (Failover)</b></td>
        <td>Selects the policy to apply to traffic that matches the conditions of this rule. You can create custom Load Balancing/Failover policies in the section below.</td>
    </tr>
</table>


As you may notice from the image above, the configuration is very simple. You can assign ratio values to WAN interfaces. The ratio values represent a percentage of load that will go through an interface. For example, if you set that 3 parts of traffic would go through the {{#switch: {{{name}}}
===Policies===
| RUTXR1 = Mobile
----
| RUTX12 = Mobile
A <b>Policy</b> dictates what the the device should do when some network traffic matches the condition defined in a Failover/Load Balancing rule. There are two policies by default, one for Load Balancing, the other for Failover. You may create custom policies that use different interfaces for Failover/Load Balancing scenarios.
| RUTX11 = Mobile
| RUTX09 = Mobile
| RUTX10 = Wifi
| RUTX08 = LAN
}}interface and 2 parts would go through the Wired interface, it would mean that roughly 60% (3/5) of data will be transferred through {{#switch: {{{name}}}
| RUTXR1 = Mobile
| RUTX12 = Mobile
| RUTX11 = Mobile
| RUTX09 = Mobile
| RUTX10 = Wifi
| RUTX08 = LAN
}}, 40% (2/5) through Wired. If the ratios would be different, say {{#switch: {{{name}}}
| RUTXR1 = Mobile
| RUTX12 = Mobile
| RUTX11 = Mobile
| RUTX09 = Mobile
| RUTX10 = Wifi
| RUTX08 = LAN
}}: 5, Wired: 10, then 33% (5/15) of data would be transferred through {{#switch: {{{name}}}
| RUTXR1 = Mobile
| RUTX12 = Mobile
| RUTX11 = Mobile
| RUTX09 = Mobile
| RUTX10 = Wifi
| RUTX08 = LAN
}}, and 66% (10/15) would go through Wired.  


If you press Edit button, you will be transferred to the same interface settings that were described in [[#Failover|Failover section]].
[[File:Networking_rutos_manual_failover_load_balancing_rules_policies.png|border|class=tlt-border]]


[[Category:{{{name}}} Network section]]
[[Category:{{{name}}} Network section]]