+ All Categories
Home > Documents > ISP Setup using MikroTik - badshashorif.files.wordpress.com · ISP Setup using MikroTik Class - V...

ISP Setup using MikroTik - badshashorif.files.wordpress.com · ISP Setup using MikroTik Class - V...

Date post: 26-Apr-2019
Category:
Upload: duongtram
View: 310 times
Download: 15 times
Share this document with a friend
44
ISP Setup using MikroTik Class - V Youtube Cache / BDiX BW Control, Mangle, Load Balancing, Link Redundancy with Failover, IPSLA M Abdullah Al Naser B.Sc in CSE CCNA, RHCE, RHCSA, MTCNA
Transcript
Page 1: ISP Setup using MikroTik - badshashorif.files.wordpress.com · ISP Setup using MikroTik Class - V Youtube Cache / BDiX BW Control, Mangle, Load Balancing, Link Redundancy with Failover,

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

Page 2: ISP Setup using MikroTik - badshashorif.files.wordpress.com · ISP Setup using MikroTik Class - V Youtube Cache / BDiX BW Control, Mangle, Load Balancing, Link Redundancy with Failover,

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)

Page 3: ISP Setup using MikroTik - badshashorif.files.wordpress.com · ISP Setup using MikroTik Class - V Youtube Cache / BDiX BW Control, Mangle, Load Balancing, Link Redundancy with Failover,

Youtube Cache Bandwidth Control

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

Page 4: ISP Setup using MikroTik - badshashorif.files.wordpress.com · ISP Setup using MikroTik Class - V Youtube Cache / BDiX BW Control, Mangle, Load Balancing, Link Redundancy with Failover,

Youtube Cache Bandwidth Control

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

Page 5: ISP Setup using MikroTik - badshashorif.files.wordpress.com · ISP Setup using MikroTik Class - V Youtube Cache / BDiX BW Control, Mangle, Load Balancing, Link Redundancy with Failover,

Youtube Cache Bandwidth Control

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

Page 6: ISP Setup using MikroTik - badshashorif.files.wordpress.com · ISP Setup using MikroTik Class - V Youtube Cache / BDiX BW Control, Mangle, Load Balancing, Link Redundancy with Failover,

Youtube Cache Bandwidth Control

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

Page 7: ISP Setup using MikroTik - badshashorif.files.wordpress.com · ISP Setup using MikroTik Class - V Youtube Cache / BDiX BW Control, Mangle, Load Balancing, Link Redundancy with Failover,

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)

Page 8: ISP Setup using MikroTik - badshashorif.files.wordpress.com · ISP Setup using MikroTik Class - V Youtube Cache / BDiX BW Control, Mangle, Load Balancing, Link Redundancy with Failover,

BDiX Bandwidth Control

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

Page 9: ISP Setup using MikroTik - badshashorif.files.wordpress.com · ISP Setup using MikroTik Class - V Youtube Cache / BDiX BW Control, Mangle, Load Balancing, Link Redundancy with Failover,

BDiX Bandwidth Control

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

Page 10: ISP Setup using MikroTik - badshashorif.files.wordpress.com · ISP Setup using MikroTik Class - V Youtube Cache / BDiX BW Control, Mangle, Load Balancing, Link Redundancy with Failover,

BDiX Bandwidth Control

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

Page 11: ISP Setup using MikroTik - badshashorif.files.wordpress.com · ISP Setup using MikroTik Class - V Youtube Cache / BDiX BW Control, Mangle, Load Balancing, Link Redundancy with Failover,

BDiX Bandwidth Control

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

Page 12: ISP Setup using MikroTik - badshashorif.files.wordpress.com · ISP Setup using MikroTik Class - V Youtube Cache / BDiX BW Control, Mangle, Load Balancing, Link Redundancy with Failover,

BDiX Bandwidth Control

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

Page 13: ISP Setup using MikroTik - badshashorif.files.wordpress.com · ISP Setup using MikroTik Class - V Youtube Cache / BDiX BW Control, Mangle, Load Balancing, Link Redundancy with Failover,

BDiX Bandwidth Control

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

Page 14: ISP Setup using MikroTik - badshashorif.files.wordpress.com · ISP Setup using MikroTik Class - V Youtube Cache / BDiX BW Control, Mangle, Load Balancing, Link Redundancy with Failover,

BDiX Bandwidth Control

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

Page 15: ISP Setup using MikroTik - badshashorif.files.wordpress.com · ISP Setup using MikroTik Class - V Youtube Cache / BDiX BW Control, Mangle, Load Balancing, Link Redundancy with Failover,

BDiX Bandwidth Control

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

Page 16: ISP Setup using MikroTik - badshashorif.files.wordpress.com · ISP Setup using MikroTik Class - V Youtube Cache / BDiX BW Control, Mangle, Load Balancing, Link Redundancy with Failover,

BDiX Bandwidth Control

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

Page 17: ISP Setup using MikroTik - badshashorif.files.wordpress.com · ISP Setup using MikroTik Class - V Youtube Cache / BDiX BW Control, Mangle, Load Balancing, Link Redundancy with Failover,

BDiX Bandwidth Control

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

Page 18: ISP Setup using MikroTik - badshashorif.files.wordpress.com · ISP Setup using MikroTik Class - V Youtube Cache / BDiX BW Control, Mangle, Load Balancing, Link Redundancy with Failover,

BDiX Bandwidth Control

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

Page 19: ISP Setup using MikroTik - badshashorif.files.wordpress.com · ISP Setup using MikroTik Class - V Youtube Cache / BDiX BW Control, Mangle, Load Balancing, Link Redundancy with Failover,

BDiX Bandwidth Control

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

Page 20: ISP Setup using MikroTik - badshashorif.files.wordpress.com · ISP Setup using MikroTik Class - V Youtube Cache / BDiX BW Control, Mangle, Load Balancing, Link Redundancy with Failover,

BDiX Bandwidth Control

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

Page 21: ISP Setup using MikroTik - badshashorif.files.wordpress.com · ISP Setup using MikroTik Class - V Youtube Cache / BDiX BW Control, Mangle, Load Balancing, Link Redundancy with Failover,

BDiX Bandwidth Control

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

Page 22: ISP Setup using MikroTik - badshashorif.files.wordpress.com · ISP Setup using MikroTik Class - V Youtube Cache / BDiX BW Control, Mangle, Load Balancing, Link Redundancy with Failover,

BDiX Bandwidth Control

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

Page 23: ISP Setup using MikroTik - badshashorif.files.wordpress.com · ISP Setup using MikroTik Class - V Youtube Cache / BDiX BW Control, Mangle, Load Balancing, Link Redundancy with Failover,

BDiX Bandwidth Control

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

Page 24: ISP Setup using MikroTik - badshashorif.files.wordpress.com · ISP Setup using MikroTik Class - V Youtube Cache / BDiX BW Control, Mangle, Load Balancing, Link Redundancy with Failover,

BDiX Bandwidth Control

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

Page 25: ISP Setup using MikroTik - badshashorif.files.wordpress.com · ISP Setup using MikroTik Class - V Youtube Cache / BDiX BW Control, Mangle, Load Balancing, Link Redundancy with Failover,

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)

Page 26: ISP Setup using MikroTik - badshashorif.files.wordpress.com · ISP Setup using MikroTik Class - V Youtube Cache / BDiX BW Control, Mangle, Load Balancing, Link Redundancy with Failover,

Load Balancing

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

Page 27: ISP Setup using MikroTik - badshashorif.files.wordpress.com · ISP Setup using MikroTik Class - V Youtube Cache / BDiX BW Control, Mangle, Load Balancing, Link Redundancy with Failover,

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)

Page 28: ISP Setup using MikroTik - badshashorif.files.wordpress.com · ISP Setup using MikroTik Class - V Youtube Cache / BDiX BW Control, Mangle, Load Balancing, Link Redundancy with Failover,

Load Balancing Step - 1

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

Page 29: ISP Setup using MikroTik - badshashorif.files.wordpress.com · ISP Setup using MikroTik Class - V Youtube Cache / BDiX BW Control, Mangle, Load Balancing, Link Redundancy with Failover,

Load Balancing Step - 1

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

Page 30: ISP Setup using MikroTik - badshashorif.files.wordpress.com · ISP Setup using MikroTik Class - V Youtube Cache / BDiX BW Control, Mangle, Load Balancing, Link Redundancy with Failover,

Load Balancing Step - 1

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

Page 31: ISP Setup using MikroTik - badshashorif.files.wordpress.com · ISP Setup using MikroTik Class - V Youtube Cache / BDiX BW Control, Mangle, Load Balancing, Link Redundancy with Failover,

Load Balancing Step - 1

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

Page 32: ISP Setup using MikroTik - badshashorif.files.wordpress.com · ISP Setup using MikroTik Class - V Youtube Cache / BDiX BW Control, Mangle, Load Balancing, Link Redundancy with Failover,

Load Balancing Step - 1

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

Page 33: ISP Setup using MikroTik - badshashorif.files.wordpress.com · ISP Setup using MikroTik Class - V Youtube Cache / BDiX BW Control, Mangle, Load Balancing, Link Redundancy with Failover,

Load Balancing Step - 2

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

Page 34: ISP Setup using MikroTik - badshashorif.files.wordpress.com · ISP Setup using MikroTik Class - V Youtube Cache / BDiX BW Control, Mangle, Load Balancing, Link Redundancy with Failover,

Load Balancing Step - 2

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

Page 35: ISP Setup using MikroTik - badshashorif.files.wordpress.com · ISP Setup using MikroTik Class - V Youtube Cache / BDiX BW Control, Mangle, Load Balancing, Link Redundancy with Failover,

Load Balancing Step - 2

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

Page 36: ISP Setup using MikroTik - badshashorif.files.wordpress.com · ISP Setup using MikroTik Class - V Youtube Cache / BDiX BW Control, Mangle, Load Balancing, Link Redundancy with Failover,

Load Balancing Step - 2

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

Page 37: ISP Setup using MikroTik - badshashorif.files.wordpress.com · ISP Setup using MikroTik Class - V Youtube Cache / BDiX BW Control, Mangle, Load Balancing, Link Redundancy with Failover,

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)

Page 38: ISP Setup using MikroTik - badshashorif.files.wordpress.com · ISP Setup using MikroTik Class - V Youtube Cache / BDiX BW Control, Mangle, Load Balancing, Link Redundancy with Failover,

Load Balancing

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

Page 39: ISP Setup using MikroTik - badshashorif.files.wordpress.com · ISP Setup using MikroTik Class - V Youtube Cache / BDiX BW Control, Mangle, Load Balancing, Link Redundancy with Failover,

Load Balancing Step - 3

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

Page 40: ISP Setup using MikroTik - badshashorif.files.wordpress.com · ISP Setup using MikroTik Class - V Youtube Cache / BDiX BW Control, Mangle, Load Balancing, Link Redundancy with Failover,

Load Balancing Step - 3

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

Page 41: ISP Setup using MikroTik - badshashorif.files.wordpress.com · ISP Setup using MikroTik Class - V Youtube Cache / BDiX BW Control, Mangle, Load Balancing, Link Redundancy with Failover,

Load Balancing Step - 3

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

Page 42: ISP Setup using MikroTik - badshashorif.files.wordpress.com · ISP Setup using MikroTik Class - V Youtube Cache / BDiX BW Control, Mangle, Load Balancing, Link Redundancy with Failover,

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)

Page 43: ISP Setup using MikroTik - badshashorif.files.wordpress.com · ISP Setup using MikroTik Class - V Youtube Cache / BDiX BW Control, Mangle, Load Balancing, Link Redundancy with Failover,

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)

Page 44: ISP Setup using MikroTik - badshashorif.files.wordpress.com · ISP Setup using MikroTik Class - V Youtube Cache / BDiX BW Control, Mangle, Load Balancing, Link Redundancy with Failover,

Thank you very much

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


Recommended