isp setup using mikrotik - badshashorif.files.wordpress.com · isp setup using mikrotik class - v...

Post on 26-Apr-2019

307 Views

Category:

Documents

15 Downloads

Preview:

Click to see full reader

TRANSCRIPT

ISP Setup using MikroTik

Class - V

Youtube Cache / BDiX BW Control, Mangle,

Load Balancing, Link Redundancy with Failover, IPSLA

M Abdullah Al NaserB.Sc in CSE

CCNA, RHCE, RHCSA, MTCNA

Youtube Cache Bandwidth Control

2

Now a days we can have Youtube Cache bwfrom our ISP/IIG. Upstream service providers deliver us Youtube Cache bw from their Cache server, for this we must have the IP block of that Cache server from where our upstream is providing us the Cache bandwidth. And we have to mention that specific IP block in QUEUE

Prepared by- M Abdullah Al Naser (tutorial.mnaser.net)

Youtube Cache Bandwidth Control

3Prepared by- M Abdullah Al Naser (tutorial.mnaser.net)

Youtube Cache Bandwidth Control

4Prepared by- M Abdullah Al Naser (tutorial.mnaser.net)

Youtube Cache Bandwidth Control

5Prepared by- M Abdullah Al Naser (tutorial.mnaser.net)

Youtube Cache Bandwidth Control

6Prepared by- M Abdullah Al Naser (tutorial.mnaser.net)

BDiX Bandwidth Control

7

Now a days we can also have BDiX bw from our ISP. Unlike Youtube Cache BDiX has hundreds of routes/IP blocks (currently 1600+). And for these large numbers of routes we can’t create queue using DST-Address like Youtube Cache. To do this we have to collect all the routes from our ISP and create a ADDRESS-LIST to bundle all the routes. And then we need to Mark all the packets from and/or to those destinations. And finally create queue using the marked packets to shape bw.

Prepared by- M Abdullah Al Naser (tutorial.mnaser.net)

BDiX Bandwidth Control

8Prepared by- M Abdullah Al Naser (tutorial.mnaser.net)

BDiX Bandwidth Control

9Prepared by- M Abdullah Al Naser (tutorial.mnaser.net)

BDiX Bandwidth Control

10Prepared by- M Abdullah Al Naser (tutorial.mnaser.net)

BDiX Bandwidth Control

11Prepared by- M Abdullah Al Naser (tutorial.mnaser.net)

BDiX Bandwidth Control

12Prepared by- M Abdullah Al Naser (tutorial.mnaser.net)

BDiX Bandwidth Control

13Prepared by- M Abdullah Al Naser (tutorial.mnaser.net)

BDiX Bandwidth Control

14Prepared by- M Abdullah Al Naser (tutorial.mnaser.net)

BDiX Bandwidth Control

15Prepared by- M Abdullah Al Naser (tutorial.mnaser.net)

BDiX Bandwidth Control

16Prepared by- M Abdullah Al Naser (tutorial.mnaser.net)

BDiX Bandwidth Control

17Prepared by- M Abdullah Al Naser (tutorial.mnaser.net)

BDiX Bandwidth Control

18Prepared by- M Abdullah Al Naser (tutorial.mnaser.net)

BDiX Bandwidth Control

19Prepared by- M Abdullah Al Naser (tutorial.mnaser.net)

BDiX Bandwidth Control

20Prepared by- M Abdullah Al Naser (tutorial.mnaser.net)

BDiX Bandwidth Control

21Prepared by- M Abdullah Al Naser (tutorial.mnaser.net)

BDiX Bandwidth Control

22Prepared by- M Abdullah Al Naser (tutorial.mnaser.net)

BDiX Bandwidth Control

23Prepared by- M Abdullah Al Naser (tutorial.mnaser.net)

BDiX Bandwidth Control

24Prepared by- M Abdullah Al Naser (tutorial.mnaser.net)

Load Balancing

25

If we have two ISP connected to our MikroTik then we can load balance the traffic.

Prepared by- M Abdullah Al Naser (tutorial.mnaser.net)

Load Balancing

26Prepared by- M Abdullah Al Naser (tutorial.mnaser.net)

Load Balancing

27

To do this:

Step - 1: Mark Connection for Each ISP

Step - 2: Mark Routing individually using Marked Connection for Each ISP

Step - 3: Add Routes

Prepared by- M Abdullah Al Naser (tutorial.mnaser.net)

Load Balancing Step - 1

28Prepared by- M Abdullah Al Naser (tutorial.mnaser.net)

Load Balancing Step - 1

29Prepared by- M Abdullah Al Naser (tutorial.mnaser.net)

Load Balancing Step - 1

30Prepared by- M Abdullah Al Naser (tutorial.mnaser.net)

Load Balancing Step - 1

31Prepared by- M Abdullah Al Naser (tutorial.mnaser.net)

Load Balancing Step - 1

32Prepared by- M Abdullah Al Naser (tutorial.mnaser.net)

Load Balancing Step - 2

33Prepared by- M Abdullah Al Naser (tutorial.mnaser.net)

Load Balancing Step - 2

34Prepared by- M Abdullah Al Naser (tutorial.mnaser.net)

Load Balancing Step - 2

35Prepared by- M Abdullah Al Naser (tutorial.mnaser.net)

Load Balancing Step - 2

36Prepared by- M Abdullah Al Naser (tutorial.mnaser.net)

Load Balancing

37

In Step -1 and Step -2, we marked the connections and routes respectively to ensure that, the outgoing packet will go only through that link through which link it came.

Thus we can minimize latency/packet loss issue and enhance overall performance.

Prepared by- M Abdullah Al Naser (tutorial.mnaser.net)

Load Balancing

38Prepared by- M Abdullah Al Naser (tutorial.mnaser.net)

Load Balancing Step - 3

39Prepared by- M Abdullah Al Naser (tutorial.mnaser.net)

Load Balancing Step - 3

40Prepared by- M Abdullah Al Naser (tutorial.mnaser.net)

Load Balancing Step - 3

41Prepared by- M Abdullah Al Naser (tutorial.mnaser.net)

Load Balancing Step - 3

42

Why Double Gateway entries to ISP A and Triple Gateway entries to ISP B ??

Because in this topology we have 4 Mbps bwin ISP A and 6 Mbps bw in ISP B.

ISP A : ISP B = 4 : 6

= 2 : 3 (4 and 6 both can be divided by 2)

You need to calculate exact number of gateway entries during you r real time configuration

Prepared by- M Abdullah Al Naser (tutorial.mnaser.net)

Load Balancing Step - 3

43

IPSLA: If we use Check Gateway: Ping option then router will send ICMP to the gateway on a regular interval and will check ping response. If there is no ping response to a gateway then the route will be de-active for that corresponding link and traffic will go through another link. Thus we can ensure Link Redundancy with Failover.

In this case, if we have any SRC-NAT rules using MASQUERADE, then any OUT-INTERFACE shouldn’t be mentioned in that rules.

Prepared by- M Abdullah Al Naser (tutorial.mnaser.net)

Thank you very much

44Prepared by- M Abdullah Al Naser (tutorial.mnaser.net)

top related