aggregate load balance with bgp and mpls 20 oktober 2018 · 1. prepare link make sure link...

25
Aggregate Load Balance with BGP and MPLS MUM ID 2018 | 19 – 20 Oktober 2018 Yogyakarta, Indonesia

Upload: others

Post on 14-Mar-2020

1 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Aggregate Load Balance with BGP and MPLS 20 Oktober 2018 · 1. Prepare Link Make sure link established and traffic can passed. We can use Wireless Backbone or Tunnel via Fiber Broadband

Aggregate Load Balance with BGP and MPLS

MUM ID 2018 | 19 – 20 Oktober 2018

Yogyakarta, Indonesia

Page 2: Aggregate Load Balance with BGP and MPLS 20 Oktober 2018 · 1. Prepare Link Make sure link established and traffic can passed. We can use Wireless Backbone or Tunnel via Fiber Broadband

Firdhyan Adhie Lesmana Adhielesmana.com LapakWifi.com DNS Premium

( www.facebook.com/dnspremium ) Forum MikroTik Indonesia

ISP Operations Manager PowerNet Liberia, West Africa.

MikroTik Certified Trainer & Consultant PowerNet Training Center, Liberia

Facebook: www.facebook.com/adhielesmana

Whatsapp : +6289660206541 ( ID ) / +231777306097 ( LR )

2

Page 3: Aggregate Load Balance with BGP and MPLS 20 Oktober 2018 · 1. Prepare Link Make sure link established and traffic can passed. We can use Wireless Backbone or Tunnel via Fiber Broadband

Aggregating traffic for two or more backbone link.

Increase Total Backbone capacity.

Traffic Aggregate Solution

Not “Internet” Load Balance

3

Page 4: Aggregate Load Balance with BGP and MPLS 20 Oktober 2018 · 1. Prepare Link Make sure link established and traffic can passed. We can use Wireless Backbone or Tunnel via Fiber Broadband

4

5 KM LINK 1 VIA PTP WIRELESS 1

5 KM LINK 2 VIA PTP WIRELESS 2

EDGE CORE OFFICE NOC DISTRIBUTION

BGP + FILTER

FIREWALL STICKY CONN

BG

P +

FIL

TE

R

FIR

EW

AL

L S

TIC

KY

CO

NN

Page 5: Aggregate Load Balance with BGP and MPLS 20 Oktober 2018 · 1. Prepare Link Make sure link established and traffic can passed. We can use Wireless Backbone or Tunnel via Fiber Broadband

LINK 1 VIA ISP RED

LINK 2 VIA ISP BLUE

TUN-VPN + MPLS-VPLS

CORE

JAKARTA

REMOTE

SUBNET DISTRIBUTION

TUN-VPN + MPLS-VPLS

BGP + FILTER

FIREWALL STICKY CONN

BG

P +

FIL

TE

R

FIR

EW

AL

L S

TIC

KY

CO

NN

Page 6: Aggregate Load Balance with BGP and MPLS 20 Oktober 2018 · 1. Prepare Link Make sure link established and traffic can passed. We can use Wireless Backbone or Tunnel via Fiber Broadband

6

BRIDGE

VPLS + ETHER

BRIDGE

VPLS + ETHER

BGP + FILTER

FIREWALL STICKY CONN

Page 7: Aggregate Load Balance with BGP and MPLS 20 Oktober 2018 · 1. Prepare Link Make sure link established and traffic can passed. We can use Wireless Backbone or Tunnel via Fiber Broadband

Cost Efficient

Support Redundancy / Failover

Load Sharing / Aggregate Traffic

Easy Maintenance & Troubleshoot

MPLS is faster than EoIP, Less CPU and Less protocol overhead

7

Page 8: Aggregate Load Balance with BGP and MPLS 20 Oktober 2018 · 1. Prepare Link Make sure link established and traffic can passed. We can use Wireless Backbone or Tunnel via Fiber Broadband

MikroTik Router ( Both Locations )

Support MPLS, VPN, BGP, OSPF etc.

Backbone Link

Wireless Backbone

Fiber Broadband ( Tunnel )

8

Page 9: Aggregate Load Balance with BGP and MPLS 20 Oktober 2018 · 1. Prepare Link Make sure link established and traffic can passed. We can use Wireless Backbone or Tunnel via Fiber Broadband

1. Prepare Link

Make sure link established and traffic can passed.

We can use Wireless Backbone or Tunnel via Fiber Broadband

2. Create VPLS

MPLS - VPLS on each router

Bridge with Ethernet *

3. Setup BGP

Setup IP for VPLS interface

Create BGP peering in VPLS

Additional Route Filter Rules.

4. Firewall & Mark Routing

Rule for Sticky Connections.

9

Page 10: Aggregate Load Balance with BGP and MPLS 20 Oktober 2018 · 1. Prepare Link Make sure link established and traffic can passed. We can use Wireless Backbone or Tunnel via Fiber Broadband

Mode AP AP Bridge or Bridge

ap + wds if station using wds

Bridged with Ethernet

Mode StationStation Bridge or Station WDS

Bridged with Ethernet

10

Page 11: Aggregate Load Balance with BGP and MPLS 20 Oktober 2018 · 1. Prepare Link Make sure link established and traffic can passed. We can use Wireless Backbone or Tunnel via Fiber Broadband

Server PPTP / L2TP Setup PPP Profile and Secret for Client PPP User Password Use PTP Addressing /32 instead of IP Pool.

Client PPTP / L2TP Dial VPN Tunnel Check IP Test Connection, Ping to neighbor PTP IP address

11

Page 12: Aggregate Load Balance with BGP and MPLS 20 Oktober 2018 · 1. Prepare Link Make sure link established and traffic can passed. We can use Wireless Backbone or Tunnel via Fiber Broadband

Create VPLS links between point to point router.

Follow this information about VPLShttps://wiki.mikrotik.com/wiki/Manual:MPLSVPLS

Require OSPF

Require Loopback IP and Interfaces

Join to MTCINE Training to learn BGP and MPLS Topic

12

Page 13: Aggregate Load Balance with BGP and MPLS 20 Oktober 2018 · 1. Prepare Link Make sure link established and traffic can passed. We can use Wireless Backbone or Tunnel via Fiber Broadband

Create Interface Bridge ( For Topology 3 )

add VPLS and Ethernet on Bridge.

For topology 1 and 2 we don’t need bridge

13

Page 14: Aggregate Load Balance with BGP and MPLS 20 Oktober 2018 · 1. Prepare Link Make sure link established and traffic can passed. We can use Wireless Backbone or Tunnel via Fiber Broadband

Once the link is established and both router is reacheable.

Create BGP peering between both locations and each link.

Create new Routing Filter with custom action parameter.

Assign the routing filter on BGP Instance

14

Page 15: Aggregate Load Balance with BGP and MPLS 20 Oktober 2018 · 1. Prepare Link Make sure link established and traffic can passed. We can use Wireless Backbone or Tunnel via Fiber Broadband

Make Incoming BGP

Route Filter.

Make ICMP to Each

Opposite routers IP

Apply Route filter on

Core and Remote Router

15

Page 16: Aggregate Load Balance with BGP and MPLS 20 Oktober 2018 · 1. Prepare Link Make sure link established and traffic can passed. We can use Wireless Backbone or Tunnel via Fiber Broadband

Assign the Route filter to BGP Peers configuration

Establishing the BGP Peers

16

Page 17: Aggregate Load Balance with BGP and MPLS 20 Oktober 2018 · 1. Prepare Link Make sure link established and traffic can passed. We can use Wireless Backbone or Tunnel via Fiber Broadband

Routing Result from BGP + Routing Filter

Result on Remote Router

17

Page 18: Aggregate Load Balance with BGP and MPLS 20 Oktober 2018 · 1. Prepare Link Make sure link established and traffic can passed. We can use Wireless Backbone or Tunnel via Fiber Broadband

Result on Core Router

18

Page 19: Aggregate Load Balance with BGP and MPLS 20 Oktober 2018 · 1. Prepare Link Make sure link established and traffic can passed. We can use Wireless Backbone or Tunnel via Fiber Broadband

Add new firewall mangle and mark route all incoming traffic from each WAN interfaces.

Create new routing mark for each Gateway following the routing mark from ip firewall mangle.

Do this on both end.

19

Page 20: Aggregate Load Balance with BGP and MPLS 20 Oktober 2018 · 1. Prepare Link Make sure link established and traffic can passed. We can use Wireless Backbone or Tunnel via Fiber Broadband

20

Page 21: Aggregate Load Balance with BGP and MPLS 20 Oktober 2018 · 1. Prepare Link Make sure link established and traffic can passed. We can use Wireless Backbone or Tunnel via Fiber Broadband

21

Page 22: Aggregate Load Balance with BGP and MPLS 20 Oktober 2018 · 1. Prepare Link Make sure link established and traffic can passed. We can use Wireless Backbone or Tunnel via Fiber Broadband

22

Page 23: Aggregate Load Balance with BGP and MPLS 20 Oktober 2018 · 1. Prepare Link Make sure link established and traffic can passed. We can use Wireless Backbone or Tunnel via Fiber Broadband

Result on Remote Router

Load Balance Aggregated Traffic.

No NAT Packet go and comes with origin IP addresses

No src-address changes even when the routing path changes

Normally in load-balance our src-address always changes

23

Page 24: Aggregate Load Balance with BGP and MPLS 20 Oktober 2018 · 1. Prepare Link Make sure link established and traffic can passed. We can use Wireless Backbone or Tunnel via Fiber Broadband

Result on MAIN CORE Router

24

Page 25: Aggregate Load Balance with BGP and MPLS 20 Oktober 2018 · 1. Prepare Link Make sure link established and traffic can passed. We can use Wireless Backbone or Tunnel via Fiber Broadband

Q & A

Thanks To MikroTik

ClickMediaNet - Blora

25