access point redundancy - mikrotikmum.mikrotik.com/presentations/pl12/grifonline.pdf · access...

42
Access Point Redundancy by Lorenzo Busatti MUM Warsaw 2012 ©Grifonline S.r.l., http://training.grifonline.it 1

Upload: trinhkiet

Post on 20-Jan-2019

216 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Access Point Redundancy - MikroTikmum.mikrotik.com/presentations/PL12/grifonline.pdf · Access Point Redundancy ... And just a SINGLE AP ... EU MUM 2012 PL Lorenzo Busatti - AccessPointRedundancy

Access Point Redundancy by Lorenzo Busatti

MUM Warsaw 2012 ©Grifonline S.r.l., http://training.grifonline.it 1

Page 2: Access Point Redundancy - MikroTikmum.mikrotik.com/presentations/PL12/grifonline.pdf · Access Point Redundancy ... And just a SINGLE AP ... EU MUM 2012 PL Lorenzo Busatti - AccessPointRedundancy

Lorenzo Busatti

Grifonline S.r.l., Grosseto – ITALY

ISP for more 15 years, WISP for more 6 years

MikroTik Certified Trainer / Consultant

• For: MTCNA, MTCWE, MTCRE, MTCTCE, MTCUME, MTCINE

• Specialization: Wireless, Routing

MUM Warsaw 2012 ©Grifonline S.r.l., http://training.grifonline.it 2

About me

Page 3: Access Point Redundancy - MikroTikmum.mikrotik.com/presentations/PL12/grifonline.pdf · Access Point Redundancy ... And just a SINGLE AP ... EU MUM 2012 PL Lorenzo Busatti - AccessPointRedundancy

Presentation Objectives

•Raise awareness on the issue of redundancy of access points used in base stations

•Provide a starting point for a setup

MUM Warsaw 2012 ©Grifonline S.r.l., http://training.grifonline.it 3

Page 4: Access Point Redundancy - MikroTikmum.mikrotik.com/presentations/PL12/grifonline.pdf · Access Point Redundancy ... And just a SINGLE AP ... EU MUM 2012 PL Lorenzo Busatti - AccessPointRedundancy

Uptime!

•The Uptime of a wireless service should be 100%.

•The more is closer to 100% the more the wireless users will be happy

MUM Warsaw 2012 ©Grifonline S.r.l., http://training.grifonline.it 4

Page 5: Access Point Redundancy - MikroTikmum.mikrotik.com/presentations/PL12/grifonline.pdf · Access Point Redundancy ... And just a SINGLE AP ... EU MUM 2012 PL Lorenzo Busatti - AccessPointRedundancy

Which Wireless Users?

•WISPs users

•Hotels & Conferences Users

•Corporate Offices Users

Any user in any wireless network

MUM Warsaw 2012 ©Grifonline S.r.l., http://training.grifonline.it 5

Page 6: Access Point Redundancy - MikroTikmum.mikrotik.com/presentations/PL12/grifonline.pdf · Access Point Redundancy ... And just a SINGLE AP ... EU MUM 2012 PL Lorenzo Busatti - AccessPointRedundancy

Basics common failures

•Power failure

MUM Warsaw 2012 ©Grifonline S.r.l., http://training.grifonline.it 6

Page 7: Access Point Redundancy - MikroTikmum.mikrotik.com/presentations/PL12/grifonline.pdf · Access Point Redundancy ... And just a SINGLE AP ... EU MUM 2012 PL Lorenzo Busatti - AccessPointRedundancy

Basics common failures

•Power failure

Can be solved with

• The use of UPS or batteries

MUM Warsaw 2012 ©Grifonline S.r.l., http://training.grifonline.it 7

Page 8: Access Point Redundancy - MikroTikmum.mikrotik.com/presentations/PL12/grifonline.pdf · Access Point Redundancy ... And just a SINGLE AP ... EU MUM 2012 PL Lorenzo Busatti - AccessPointRedundancy

Basics common failures

•Power supply failure

MUM Warsaw 2012 ©Grifonline S.r.l., http://training.grifonline.it 8

Page 9: Access Point Redundancy - MikroTikmum.mikrotik.com/presentations/PL12/grifonline.pdf · Access Point Redundancy ... And just a SINGLE AP ... EU MUM 2012 PL Lorenzo Busatti - AccessPointRedundancy

Basics common failures

•Power supply failure

Can be solved with

• The use of redundant power system

MUM Warsaw 2012 ©Grifonline S.r.l., http://training.grifonline.it 9

Page 10: Access Point Redundancy - MikroTikmum.mikrotik.com/presentations/PL12/grifonline.pdf · Access Point Redundancy ... And just a SINGLE AP ... EU MUM 2012 PL Lorenzo Busatti - AccessPointRedundancy

Internet Backbone

•With two or more ISP you can setup RouterOS for having a backup line, in case one of the ISPs will go down.

MUM Warsaw 2012 ©Grifonline S.r.l., http://training.grifonline.it 10

Page 11: Access Point Redundancy - MikroTikmum.mikrotik.com/presentations/PL12/grifonline.pdf · Access Point Redundancy ... And just a SINGLE AP ... EU MUM 2012 PL Lorenzo Busatti - AccessPointRedundancy

Internet Backbone (as AS)

•With BGP it’s easy to setup more than one Internet upstream

• If one of the peers goes down there is another one(s).

MUM Warsaw 2012 ©Grifonline S.r.l., http://training.grifonline.it 11

Page 12: Access Point Redundancy - MikroTikmum.mikrotik.com/presentations/PL12/grifonline.pdf · Access Point Redundancy ... And just a SINGLE AP ... EU MUM 2012 PL Lorenzo Busatti - AccessPointRedundancy

Basic Network Example Clients

Access

Point

MUM Warsaw 2012 ©Grifonline S.r.l., http://training.grifonline.it 12

Internet

Router Wireless Link

(or a cable, fiber, ….)

Page 13: Access Point Redundancy - MikroTikmum.mikrotik.com/presentations/PL12/grifonline.pdf · Access Point Redundancy ... And just a SINGLE AP ... EU MUM 2012 PL Lorenzo Busatti - AccessPointRedundancy

Transport Redundancy

•Thanks to RSTP or OSPF or MPLS any network transport can be redunded. All transport links can be “doubled” and the network will be more reliable.

MUM Warsaw 2012 ©Grifonline S.r.l., http://training.grifonline.it 13

Page 14: Access Point Redundancy - MikroTikmum.mikrotik.com/presentations/PL12/grifonline.pdf · Access Point Redundancy ... And just a SINGLE AP ... EU MUM 2012 PL Lorenzo Busatti - AccessPointRedundancy

Advanced Network Example Clients

Access

Point

MUM Warsaw 2012 ©Grifonline S.r.l., http://training.grifonline.it 14

Internet peer 1

BGP

Router

Internet peer 2 Double transport Links (or

a cable, fiber, ….)

Page 15: Access Point Redundancy - MikroTikmum.mikrotik.com/presentations/PL12/grifonline.pdf · Access Point Redundancy ... And just a SINGLE AP ... EU MUM 2012 PL Lorenzo Busatti - AccessPointRedundancy

Advanced Network Example Clients

Access

Point

MUM Warsaw 2012 ©Grifonline S.r.l., http://training.grifonline.it 15

Internet peer 1

BGP

Router

Internet peer 2

Doubled transport Links

(or a cable, fiber, ….)

Page 16: Access Point Redundancy - MikroTikmum.mikrotik.com/presentations/PL12/grifonline.pdf · Access Point Redundancy ... And just a SINGLE AP ... EU MUM 2012 PL Lorenzo Busatti - AccessPointRedundancy

Advanced Network Example Clients

Access

Point

MUM Warsaw 2012 ©Grifonline S.r.l., http://training.grifonline.it 16

Internet peer 1

BGP

Router

Internet peer 2

Doubled transport Links

(or a cable, fiber, ….)

And just a SINGLE AP ……

Page 17: Access Point Redundancy - MikroTikmum.mikrotik.com/presentations/PL12/grifonline.pdf · Access Point Redundancy ... And just a SINGLE AP ... EU MUM 2012 PL Lorenzo Busatti - AccessPointRedundancy

Advanced Network Example Clients

Access

Points

MUM Warsaw 2012 ©Grifonline S.r.l., http://training.grifonline.it 17

Internet peer 1

BGP

Router

Internet peer 2

Doubled transport Links

(or a cable, fiber, ….)

Maybe you can add one more!

Page 18: Access Point Redundancy - MikroTikmum.mikrotik.com/presentations/PL12/grifonline.pdf · Access Point Redundancy ... And just a SINGLE AP ... EU MUM 2012 PL Lorenzo Busatti - AccessPointRedundancy

The advantages of double APs

MUM Warsaw 2012 ©Grifonline S.r.l., http://training.grifonline.it 18

Page 19: Access Point Redundancy - MikroTikmum.mikrotik.com/presentations/PL12/grifonline.pdf · Access Point Redundancy ... And just a SINGLE AP ... EU MUM 2012 PL Lorenzo Busatti - AccessPointRedundancy

Failover

•With RouterOS you can have a failover system for your APs

MUM Warsaw 2012 ©Grifonline S.r.l., http://training.grifonline.it 19

Page 20: Access Point Redundancy - MikroTikmum.mikrotik.com/presentations/PL12/grifonline.pdf · Access Point Redundancy ... And just a SINGLE AP ... EU MUM 2012 PL Lorenzo Busatti - AccessPointRedundancy

Failover

•With RouterOS you can have a failover system for your Aps

•Without external software or hardware

MUM Warsaw 2012 ©Grifonline S.r.l., http://training.grifonline.it 20

Page 21: Access Point Redundancy - MikroTikmum.mikrotik.com/presentations/PL12/grifonline.pdf · Access Point Redundancy ... And just a SINGLE AP ... EU MUM 2012 PL Lorenzo Busatti - AccessPointRedundancy

Failover

•With RouterOS you can have a failover system for your Aps

•Without external software or hardware ($$$$$)

•Just doubling the Aps ($)

MUM Warsaw 2012 ©Grifonline S.r.l., http://training.grifonline.it 21

Page 22: Access Point Redundancy - MikroTikmum.mikrotik.com/presentations/PL12/grifonline.pdf · Access Point Redundancy ... And just a SINGLE AP ... EU MUM 2012 PL Lorenzo Busatti - AccessPointRedundancy

In the Real Environments

MUM Warsaw 2012 ©Grifonline S.r.l., http://training.grifonline.it 22

Page 23: Access Point Redundancy - MikroTikmum.mikrotik.com/presentations/PL12/grifonline.pdf · Access Point Redundancy ... And just a SINGLE AP ... EU MUM 2012 PL Lorenzo Busatti - AccessPointRedundancy

Advantages

•Doing long term scan

•Doing long term snooper

•Doing long term Freq. Usage

•Doing long term Spectral Scan

•Doing long term Spectral History

MUM Warsaw 2012 ©Grifonline S.r.l., http://training.grifonline.it 23

Page 24: Access Point Redundancy - MikroTikmum.mikrotik.com/presentations/PL12/grifonline.pdf · Access Point Redundancy ... And just a SINGLE AP ... EU MUM 2012 PL Lorenzo Busatti - AccessPointRedundancy

Advantages

•Doing RouterOS update

•Trying different radio cards

•Avoid Antenna failure

•Avoid RF Cable failure

•Doing …. Trying …. Scan ….. ….

MUM Warsaw 2012 ©Grifonline S.r.l., http://training.grifonline.it 24

Page 25: Access Point Redundancy - MikroTikmum.mikrotik.com/presentations/PL12/grifonline.pdf · Access Point Redundancy ... And just a SINGLE AP ... EU MUM 2012 PL Lorenzo Busatti - AccessPointRedundancy

Without disconnecting the Clients!

(maybe just for few seconds ….)

MUM Warsaw 2012 ©Grifonline S.r.l., http://training.grifonline.it 25

Page 26: Access Point Redundancy - MikroTikmum.mikrotik.com/presentations/PL12/grifonline.pdf · Access Point Redundancy ... And just a SINGLE AP ... EU MUM 2012 PL Lorenzo Busatti - AccessPointRedundancy

How to manage double APs (Failover)

MUM Warsaw 2012 ©Grifonline S.r.l., http://training.grifonline.it 26

Page 27: Access Point Redundancy - MikroTikmum.mikrotik.com/presentations/PL12/grifonline.pdf · Access Point Redundancy ... And just a SINGLE AP ... EU MUM 2012 PL Lorenzo Busatti - AccessPointRedundancy

RouterOS HowTo

•Thanks to RouterOS's features it is possible to have “hot spare” APs in few easy steps.

•And thanks to his flexibility there are “lot” of ways to do this.

MUM Warsaw 2012 ©Grifonline S.r.l., http://training.grifonline.it 27

Page 28: Access Point Redundancy - MikroTikmum.mikrotik.com/presentations/PL12/grifonline.pdf · Access Point Redundancy ... And just a SINGLE AP ... EU MUM 2012 PL Lorenzo Busatti - AccessPointRedundancy

Planning the behavior

•How do you want your “spare” AP will react?

•Don’t exist exact rules, with RouterOS you are free to decide.

• I will show you just one example, a starting point.

MUM Warsaw 2012 ©Grifonline S.r.l., http://training.grifonline.it 28

Page 29: Access Point Redundancy - MikroTikmum.mikrotik.com/presentations/PL12/grifonline.pdf · Access Point Redundancy ... And just a SINGLE AP ... EU MUM 2012 PL Lorenzo Busatti - AccessPointRedundancy

Planning the behavior Clients

Access

Points

MUM Warsaw 2012 ©Grifonline S.r.l., http://training.grifonline.it 29

• We want the “spare” AP will have the wireless OFF when the main AP is working.

MA

IN A

P

SP

AR

E A

P

Page 30: Access Point Redundancy - MikroTikmum.mikrotik.com/presentations/PL12/grifonline.pdf · Access Point Redundancy ... And just a SINGLE AP ... EU MUM 2012 PL Lorenzo Busatti - AccessPointRedundancy

Planning the behavior Clients

Access

Points

MUM Warsaw 2012 ©Grifonline S.r.l., http://training.grifonline.it 30

• We want the “spare” AP will have the wireless OFF when the main AP is working.

• We don’t want both APs with wireless cards ON at the same time.

MA

IN A

P

SP

AR

E A

P

Page 31: Access Point Redundancy - MikroTikmum.mikrotik.com/presentations/PL12/grifonline.pdf · Access Point Redundancy ... And just a SINGLE AP ... EU MUM 2012 PL Lorenzo Busatti - AccessPointRedundancy

Planning the behavior Clients

Access

Points

MUM Warsaw 2012 ©Grifonline S.r.l., http://training.grifonline.it 31

• We want the “spare” AP will have the wireless OFF when the main AP is working.

• We don’t want both APs with wireless cards ON at the same time.

• We want a “protection” from ethernet disconnections or failures, when the routers are powered ON

MA

IN A

P

SP

AR

E A

P

Page 32: Access Point Redundancy - MikroTikmum.mikrotik.com/presentations/PL12/grifonline.pdf · Access Point Redundancy ... And just a SINGLE AP ... EU MUM 2012 PL Lorenzo Busatti - AccessPointRedundancy

VRRP

MUM Warsaw 2012 ©Grifonline S.r.l., http://training.grifonline.it 32

• With an “easy” VRRP setup you can avoid:

• Router failures;

• Power failures

Access

Points

MA

IN A

P

SP

AR

E A

P

Clients

Page 33: Access Point Redundancy - MikroTikmum.mikrotik.com/presentations/PL12/grifonline.pdf · Access Point Redundancy ... And just a SINGLE AP ... EU MUM 2012 PL Lorenzo Busatti - AccessPointRedundancy

VRRP

MUM Warsaw 2012 ©Grifonline S.r.l., http://training.grifonline.it 33

• With an “easy” VRRP setup you can avoid:

• Router failures;

• Power failures

• What about ethernet failures?

Access

Points

MA

IN A

P

SP

AR

E A

P

Clients

Page 34: Access Point Redundancy - MikroTikmum.mikrotik.com/presentations/PL12/grifonline.pdf · Access Point Redundancy ... And just a SINGLE AP ... EU MUM 2012 PL Lorenzo Busatti - AccessPointRedundancy

A starting point

MUM Warsaw 2012 ©Grifonline S.r.l., http://training.grifonline.it 34

• We can use just some simple “netwatch” and scripts for doing all the job.

• Very easy to deploy, to apply, to experiment.

• Later you can develop your own behavior and technology

Page 35: Access Point Redundancy - MikroTikmum.mikrotik.com/presentations/PL12/grifonline.pdf · Access Point Redundancy ... And just a SINGLE AP ... EU MUM 2012 PL Lorenzo Busatti - AccessPointRedundancy

Behavior Example

MUM Warsaw 2012 ©Grifonline S.r.l., http://training.grifonline.it 35

• For this behavior example we need a “reference” (or fixed) point in the network.

• We can choose the internet gateway.

• If the internet gateway will fail nobody can use the network.

Page 36: Access Point Redundancy - MikroTikmum.mikrotik.com/presentations/PL12/grifonline.pdf · Access Point Redundancy ... And just a SINGLE AP ... EU MUM 2012 PL Lorenzo Busatti - AccessPointRedundancy

Behavior Example

MUM Warsaw 2012 ©Grifonline S.r.l., http://training.grifonline.it 36

MA

IN A

P

SP

AR

E A

P

Internet

Gateway

Netwatch

At startup:

WLAN ON At startup:

WLAN OFF

If I can’t ping the

gateway I can

turn off the

WLAN

If I can’t ping the

Main AP but I can

ping the gateway, I

can turn on the

WLAN

Page 37: Access Point Redundancy - MikroTikmum.mikrotik.com/presentations/PL12/grifonline.pdf · Access Point Redundancy ... And just a SINGLE AP ... EU MUM 2012 PL Lorenzo Busatti - AccessPointRedundancy

The RouterOS Setup (MAIN AP)

MUM Warsaw 2012 ©Grifonline S.r.l., http://training.grifonline.it 37

/tool netwatch

add comment="Ping the Gateway" \

host=192.168.1.1 interval=2s timeout=1s \

down-script="interface wireless disable 0" \

up-script="interface wireless enable 0"

/system script

add name=enablewlan source="/interface wireless enable wlan1"

/system scheduler

add name=enablewlan on-event=enablewlan start-time=startup

Page 38: Access Point Redundancy - MikroTikmum.mikrotik.com/presentations/PL12/grifonline.pdf · Access Point Redundancy ... And just a SINGLE AP ... EU MUM 2012 PL Lorenzo Busatti - AccessPointRedundancy

The RouterOS Setup (SPARE AP)

MUM Warsaw 2012 ©Grifonline S.r.l., http://training.grifonline.it 38

/tool netwatch

add comment="Ping the Gateway" host=192.168.1.1 interval=2s timeout=1s \

down-script="interface wireless disable 0"

add comment="Ping Master AP" host=192.168.1.2 interval=2s timeout=1s \

up-script="interface wireless disable 0"

/system script

add name=disablewlan source="/interface wireless disable wlan1"

add name=checkAP source="\

:if (([/tool netwatch get 1 status ] = "down") && ([/tool netwatch get 0 status ]

= "up")) do={ \

:if ([/interface wireless get 0 disabled ] = true ) do={ \

[/interface wireless enable 0] } \

}"

/system scheduler

add name=disablewlan start-time=startup on-event=disablewlan

add name=checkAP start-time=startup interval=3s on-event=checkAP

Page 39: Access Point Redundancy - MikroTikmum.mikrotik.com/presentations/PL12/grifonline.pdf · Access Point Redundancy ... And just a SINGLE AP ... EU MUM 2012 PL Lorenzo Busatti - AccessPointRedundancy

End of the Settings!

MUM Warsaw 2012 ©Grifonline S.r.l., http://training.grifonline.it 39

• Yes, we’re done all the settings for this basic example (as a starting point!).

Page 40: Access Point Redundancy - MikroTikmum.mikrotik.com/presentations/PL12/grifonline.pdf · Access Point Redundancy ... And just a SINGLE AP ... EU MUM 2012 PL Lorenzo Busatti - AccessPointRedundancy

Live Demo

The Internet Gateway

192.168.10.1/24

My Laptop

192.168.10.4/24

MUM Warsaw 2012 ©Grifonline S.r.l., http://training.grifonline.it 40

The “Main” AP

192.168.10.2/24

A Wireless

Client

192.168.10.5/24

The “Spare” AP

192.168.10.3/24

Page 41: Access Point Redundancy - MikroTikmum.mikrotik.com/presentations/PL12/grifonline.pdf · Access Point Redundancy ... And just a SINGLE AP ... EU MUM 2012 PL Lorenzo Busatti - AccessPointRedundancy

Live Demo

MUM Warsaw 2012 ©Grifonline S.r.l., http://training.grifonline.it 41

Connect now with your device at the SSID

RedundantApLAB

Page 42: Access Point Redundancy - MikroTikmum.mikrotik.com/presentations/PL12/grifonline.pdf · Access Point Redundancy ... And just a SINGLE AP ... EU MUM 2012 PL Lorenzo Busatti - AccessPointRedundancy

Thankyou!

Q & A

http://training.grifonline.it [email protected]

MUM Warsaw 2012 ©Grifonline S.r.l., http://training.grifonline.it 42