access point redundancy - mum - mikrotik user...
TRANSCRIPT
![Page 1: Access Point Redundancy - MUM - MikroTik User Meetingmum.mikrotik.com/presentations/US11/us11-lorenzo.pdf · Access Point Redundancy, by Lorenzo Busatti - MUM USA Las Vegas 2011 Author:](https://reader034.vdocument.in/reader034/viewer/2022042809/5f953cff58b46e719154f7df/html5/thumbnails/1.jpg)
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 - MUM - MikroTik User Meetingmum.mikrotik.com/presentations/US11/us11-lorenzo.pdf · Access Point Redundancy, by Lorenzo Busatti - MUM USA Las Vegas 2011 Author:](https://reader034.vdocument.in/reader034/viewer/2022042809/5f953cff58b46e719154f7df/html5/thumbnails/2.jpg)
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 - MUM - MikroTik User Meetingmum.mikrotik.com/presentations/US11/us11-lorenzo.pdf · Access Point Redundancy, by Lorenzo Busatti - MUM USA Las Vegas 2011 Author:](https://reader034.vdocument.in/reader034/viewer/2022042809/5f953cff58b46e719154f7df/html5/thumbnails/3.jpg)
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 - MUM - MikroTik User Meetingmum.mikrotik.com/presentations/US11/us11-lorenzo.pdf · Access Point Redundancy, by Lorenzo Busatti - MUM USA Las Vegas 2011 Author:](https://reader034.vdocument.in/reader034/viewer/2022042809/5f953cff58b46e719154f7df/html5/thumbnails/4.jpg)
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 - MUM - MikroTik User Meetingmum.mikrotik.com/presentations/US11/us11-lorenzo.pdf · Access Point Redundancy, by Lorenzo Busatti - MUM USA Las Vegas 2011 Author:](https://reader034.vdocument.in/reader034/viewer/2022042809/5f953cff58b46e719154f7df/html5/thumbnails/5.jpg)
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 - MUM - MikroTik User Meetingmum.mikrotik.com/presentations/US11/us11-lorenzo.pdf · Access Point Redundancy, by Lorenzo Busatti - MUM USA Las Vegas 2011 Author:](https://reader034.vdocument.in/reader034/viewer/2022042809/5f953cff58b46e719154f7df/html5/thumbnails/6.jpg)
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 - MUM - MikroTik User Meetingmum.mikrotik.com/presentations/US11/us11-lorenzo.pdf · Access Point Redundancy, by Lorenzo Busatti - MUM USA Las Vegas 2011 Author:](https://reader034.vdocument.in/reader034/viewer/2022042809/5f953cff58b46e719154f7df/html5/thumbnails/7.jpg)
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 - MUM - MikroTik User Meetingmum.mikrotik.com/presentations/US11/us11-lorenzo.pdf · Access Point Redundancy, by Lorenzo Busatti - MUM USA Las Vegas 2011 Author:](https://reader034.vdocument.in/reader034/viewer/2022042809/5f953cff58b46e719154f7df/html5/thumbnails/8.jpg)
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 - MUM - MikroTik User Meetingmum.mikrotik.com/presentations/US11/us11-lorenzo.pdf · Access Point Redundancy, by Lorenzo Busatti - MUM USA Las Vegas 2011 Author:](https://reader034.vdocument.in/reader034/viewer/2022042809/5f953cff58b46e719154f7df/html5/thumbnails/9.jpg)
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 - MUM - MikroTik User Meetingmum.mikrotik.com/presentations/US11/us11-lorenzo.pdf · Access Point Redundancy, by Lorenzo Busatti - MUM USA Las Vegas 2011 Author:](https://reader034.vdocument.in/reader034/viewer/2022042809/5f953cff58b46e719154f7df/html5/thumbnails/10.jpg)
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 - MUM - MikroTik User Meetingmum.mikrotik.com/presentations/US11/us11-lorenzo.pdf · Access Point Redundancy, by Lorenzo Busatti - MUM USA Las Vegas 2011 Author:](https://reader034.vdocument.in/reader034/viewer/2022042809/5f953cff58b46e719154f7df/html5/thumbnails/11.jpg)
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 - MUM - MikroTik User Meetingmum.mikrotik.com/presentations/US11/us11-lorenzo.pdf · Access Point Redundancy, by Lorenzo Busatti - MUM USA Las Vegas 2011 Author:](https://reader034.vdocument.in/reader034/viewer/2022042809/5f953cff58b46e719154f7df/html5/thumbnails/12.jpg)
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 - MUM - MikroTik User Meetingmum.mikrotik.com/presentations/US11/us11-lorenzo.pdf · Access Point Redundancy, by Lorenzo Busatti - MUM USA Las Vegas 2011 Author:](https://reader034.vdocument.in/reader034/viewer/2022042809/5f953cff58b46e719154f7df/html5/thumbnails/13.jpg)
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 - MUM - MikroTik User Meetingmum.mikrotik.com/presentations/US11/us11-lorenzo.pdf · Access Point Redundancy, by Lorenzo Busatti - MUM USA Las Vegas 2011 Author:](https://reader034.vdocument.in/reader034/viewer/2022042809/5f953cff58b46e719154f7df/html5/thumbnails/14.jpg)
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 - MUM - MikroTik User Meetingmum.mikrotik.com/presentations/US11/us11-lorenzo.pdf · Access Point Redundancy, by Lorenzo Busatti - MUM USA Las Vegas 2011 Author:](https://reader034.vdocument.in/reader034/viewer/2022042809/5f953cff58b46e719154f7df/html5/thumbnails/15.jpg)
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 - MUM - MikroTik User Meetingmum.mikrotik.com/presentations/US11/us11-lorenzo.pdf · Access Point Redundancy, by Lorenzo Busatti - MUM USA Las Vegas 2011 Author:](https://reader034.vdocument.in/reader034/viewer/2022042809/5f953cff58b46e719154f7df/html5/thumbnails/16.jpg)
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 - MUM - MikroTik User Meetingmum.mikrotik.com/presentations/US11/us11-lorenzo.pdf · Access Point Redundancy, by Lorenzo Busatti - MUM USA Las Vegas 2011 Author:](https://reader034.vdocument.in/reader034/viewer/2022042809/5f953cff58b46e719154f7df/html5/thumbnails/17.jpg)
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 - MUM - MikroTik User Meetingmum.mikrotik.com/presentations/US11/us11-lorenzo.pdf · Access Point Redundancy, by Lorenzo Busatti - MUM USA Las Vegas 2011 Author:](https://reader034.vdocument.in/reader034/viewer/2022042809/5f953cff58b46e719154f7df/html5/thumbnails/18.jpg)
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 - MUM - MikroTik User Meetingmum.mikrotik.com/presentations/US11/us11-lorenzo.pdf · Access Point Redundancy, by Lorenzo Busatti - MUM USA Las Vegas 2011 Author:](https://reader034.vdocument.in/reader034/viewer/2022042809/5f953cff58b46e719154f7df/html5/thumbnails/19.jpg)
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 - MUM - MikroTik User Meetingmum.mikrotik.com/presentations/US11/us11-lorenzo.pdf · Access Point Redundancy, by Lorenzo Busatti - MUM USA Las Vegas 2011 Author:](https://reader034.vdocument.in/reader034/viewer/2022042809/5f953cff58b46e719154f7df/html5/thumbnails/20.jpg)
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 - MUM - MikroTik User Meetingmum.mikrotik.com/presentations/US11/us11-lorenzo.pdf · Access Point Redundancy, by Lorenzo Busatti - MUM USA Las Vegas 2011 Author:](https://reader034.vdocument.in/reader034/viewer/2022042809/5f953cff58b46e719154f7df/html5/thumbnails/21.jpg)
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 - MUM - MikroTik User Meetingmum.mikrotik.com/presentations/US11/us11-lorenzo.pdf · Access Point Redundancy, by Lorenzo Busatti - MUM USA Las Vegas 2011 Author:](https://reader034.vdocument.in/reader034/viewer/2022042809/5f953cff58b46e719154f7df/html5/thumbnails/22.jpg)
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 - MUM - MikroTik User Meetingmum.mikrotik.com/presentations/US11/us11-lorenzo.pdf · Access Point Redundancy, by Lorenzo Busatti - MUM USA Las Vegas 2011 Author:](https://reader034.vdocument.in/reader034/viewer/2022042809/5f953cff58b46e719154f7df/html5/thumbnails/23.jpg)
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 - MUM - MikroTik User Meetingmum.mikrotik.com/presentations/US11/us11-lorenzo.pdf · Access Point Redundancy, by Lorenzo Busatti - MUM USA Las Vegas 2011 Author:](https://reader034.vdocument.in/reader034/viewer/2022042809/5f953cff58b46e719154f7df/html5/thumbnails/24.jpg)
Thankyou!
Q & A
http://training.grifonline.it
MUM USA Las Vegas 2011 ©Grifonline S.r.l., All rights res. http://training.grifonline.it 24