Load Balancing

From MikroTik Wiki
Revision as of 12:52, 16 May 2019 by Artursc (talk | contribs) (Failover)
Jump to: navigation, search

Introduction

Load Balancing is a method aiming to spread traffic across multiple links to get better link usage. This can be done one per-packet or per-connection basis.

Method Per-connection Per-packet
Firewall marking Yes Yes
ECMP Yes No
PCC Yes No
Nth Yes Yes
Bonding No Yes
OSPF Yes No
BGP Yes No

Methods

Failover

You have Dual Wan connection and you want to create a link failover? In case, link to WAN1 goes down and link to WAN2 becomes active, you simply have to configure routes: Two gateway failover

Firewall marking

This method uses firewall packet marking to select one from multiple gateways.

ECMP (Equal Cost Multi-Path)

This method uses multiple gateway with same cost.

PCC (Per Connection Classifier)

Nth

Bonding

Can combine multiple links to achieve: higher speed, failover, load balancing.

More detailed information about "bonding" you can find here: Manual:Interface/Bonding

OSPF

Two or more links are setup with dynamic routing protocol OSPF with equal cost. Then equal multipath routing is used.

BGP

External links