access point redundancy, by lorenzo busatti - mikrotik mum usa las vegas 2011

24
Access Point Redundancy by Lorenzo Busatti MikroTik User Meeting in USA Las Vegas, October 13-14, 2011 MUM USA Las Vegas 2011 ©Grifonline S.r.l., All rights res. http://training.grifonline.it 1

Upload: lorenzo-busatti

Post on 10-Feb-2017

39 views

Category:

Engineering


3 download

TRANSCRIPT

Page 1: Access point redundancy, by Lorenzo Busatti - MikroTik MUM USA Las Vegas 2011

Access Point Redundancyby Lorenzo Busatti

MikroTik User Meeting in USA

Las Vegas, October 13-14, 2011

MUM USA Las Vegas 2011 ©Grifonline S.r.l., All rights res. http://training.grifonline.it 1

Page 2: Access point redundancy, by Lorenzo Busatti - MikroTik MUM USA Las Vegas 2011

Lorenzo Busatti

Grifonline S.r.l., Grosseto – ITALY

ISP for more 15 years, WISP for more 6 years

MikroTik Certified Trainer / Consultant

• For all courses: MTCNA, MTCWE, MTCRE,

MTCTCE, MTCUME, MTCINE

• Specialization: Wireless, Routing

MUM USA Las Vegas 2011 ©Grifonline S.r.l., All rights res. http://training.grifonline.it 2

About me

Page 3: Access point redundancy, by Lorenzo Busatti - MikroTik MUM USA Las Vegas 2011

Presentation Objectives

•Raise awareness on the issue of

redundancy of access points used

in base stations

•Provide a starting point for a

setup

MUM USA Las Vegas 2011 ©Grifonline S.r.l., All rights res. http://training.grifonline.it 3

Page 4: Access point redundancy, by Lorenzo Busatti - MikroTik MUM USA Las Vegas 2011

Uptime!

•The Uptime of a wireless service

should be 100%.

•The more is closer to 100% the

more the users will be happy

MUM USA Las Vegas 2011 ©Grifonline S.r.l., All rights res. http://training.grifonline.it 4

Page 5: Access point redundancy, by Lorenzo Busatti - MikroTik MUM USA Las Vegas 2011

The commons

operations in a Wireless

Network

MUM USA Las Vegas 2011 ©Grifonline S.r.l., All rights res. http://training.grifonline.it 5

Page 6: Access point redundancy, by Lorenzo Busatti - MikroTik MUM USA Las Vegas 2011

Power Supply

• It’s easy to double the power

supplies, UPS, large batteries, for

having "power" up to a week.

MUM USA Las Vegas 2011 ©Grifonline S.r.l., All rights res. http://training.grifonline.it 6

Page 7: Access point redundancy, by Lorenzo Busatti - MikroTik MUM USA Las Vegas 2011

Links Redundancy

•Thanks to RSTP or OSPF or MPLS

(for the masses thanks to MikroTik ☺)

your network is not a “tree”

anymore. All links are now

“doubled” and the network is

more reliable.

MUM USA Las Vegas 2011 ©Grifonline S.r.l., All rights res. http://training.grifonline.it 7

Page 8: Access point redundancy, by Lorenzo Busatti - MikroTik MUM USA Las Vegas 2011

Internet Backbone

•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 USA Las Vegas 2011 ©Grifonline S.r.l., All rights res. http://training.grifonline.it 8

Page 9: Access point redundancy, by Lorenzo Busatti - MikroTik MUM USA Las Vegas 2011

Basic Network Example

Clients

AccessPoint

MUM USA Las Vegas 2011 ©Grifonline S.r.l., All rights res. http://training.grifonline.it 9

Internet

Router

Link

Page 10: Access point redundancy, by Lorenzo Busatti - MikroTik MUM USA Las Vegas 2011

Advanced Network Example

Clients

AccessPoint

MUM USA Las Vegas 2011 ©Grifonline S.r.l., All rights res. http://training.grifonline.it 10

Internet

peer 1

BGPRouter

Internet

peer 2

Double Links

Page 11: Access point redundancy, by Lorenzo Busatti - MikroTik MUM USA Las Vegas 2011

Advanced Network Example

Clients

AccessPoint

MUM USA Las Vegas 2011 ©Grifonline S.r.l., All rights res. http://training.grifonline.it 11

Internet

peer 1

BGPRouter

Internet

peer 2

Double Links

Why just a SINGLE AP ????

Page 12: Access point redundancy, by Lorenzo Busatti - MikroTik MUM USA Las Vegas 2011

Advanced Network Example

ClientsAccessPoints

MUM USA Las Vegas 2011 ©Grifonline S.r.l., All rights res. http://training.grifonline.it 12

Internet

peer 1

BGPRouter

Internet

peer 2

Double Links

Two is better than one!!!

Page 13: Access point redundancy, by Lorenzo Busatti - MikroTik MUM USA Las Vegas 2011

How to manage

double APs

(Failover)

MUM USA Las Vegas 2011 ©Grifonline S.r.l., All rights res. http://training.grifonline.it 13

Page 14: Access point redundancy, by Lorenzo Busatti - MikroTik MUM USA Las Vegas 2011

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 USA Las Vegas 2011 ©Grifonline S.r.l., All rights res. http://training.grifonline.it 14

Page 15: Access point redundancy, by Lorenzo Busatti - MikroTik MUM USA Las Vegas 2011

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 USA Las Vegas 2011 ©Grifonline S.r.l., All rights res. http://training.grifonline.it 15

Page 16: Access point redundancy, by Lorenzo Busatti - MikroTik MUM USA Las Vegas 2011

Behavior Example

ClientsAccessPoints

MUM USA Las Vegas 2011 ©Grifonline S.r.l., All rights res. http://training.grifonline.it 16

• 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 ONM

AIN

AP

SP

AR

E A

P

Page 17: Access point redundancy, by Lorenzo Busatti - MikroTik MUM USA Las Vegas 2011

Behavior Example

MUM USA Las Vegas 2011 ©Grifonline S.r.l., All rights res. http://training.grifonline.it 17

• 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.

• We will use just some simple “Ping” and

scripts for doing all the job.

Page 18: Access point redundancy, by Lorenzo Busatti - MikroTik MUM USA Las Vegas 2011

Behavior Example

MUM USA Las Vegas 2011 ©Grifonline S.r.l., All rights res. http://training.grifonline.it 18

MA

IN A

P

SP

AR

E A

P

InternetGateway

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 19: Access point redundancy, by Lorenzo Busatti - MikroTik MUM USA Las Vegas 2011

The RouterOS Setup (MAIN AP)

MUM USA Las Vegas 2011 ©Grifonline S.r.l., All rights res. http://training.grifonline.it 19

/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 20: Access point redundancy, by Lorenzo Busatti - MikroTik MUM USA Las Vegas 2011

The RouterOS Setup (SPARE AP)

MUM USA Las Vegas 2011 ©Grifonline S.r.l., All rights res. http://training.grifonline.it 20

/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 21: Access point redundancy, by Lorenzo Busatti - MikroTik MUM USA Las Vegas 2011

End of the Settings!

MUM USA Las Vegas 2011 ©Grifonline S.r.l., All rights res. http://training.grifonline.it 21

• Yes, we’re done all the settings for this basic

example (as a starting point!).

Page 22: Access point redundancy, by Lorenzo Busatti - MikroTik MUM USA Las Vegas 2011

Live Demo

The “Gateway”192.168.1.1/24

My Laptop192.168.1.4/24

MUM USA Las Vegas 2011 ©Grifonline S.r.l., All rights res. http://training.grifonline.it 22

The “Main” AP192.168.1.2/24

A Wireless“Client”

192.168.1.5/24

The “Spare” AP192.168.1.3/24

Page 23: Access point redundancy, by Lorenzo Busatti - MikroTik MUM USA Las Vegas 2011

In the Real Environments

MUM USA Las Vegas 2011 ©Grifonline S.r.l., All rights res. http://training.grifonline.it 23

Page 24: Access point redundancy, by Lorenzo Busatti - MikroTik MUM USA Las Vegas 2011

Thankyou!

Q & A

http://training.grifonline.it

[email protected]

MUM USA Las Vegas 2011 ©Grifonline S.r.l., All rights res. http://training.grifonline.it 24