wi-‐fi 101 fundamentals, design and troubleshoodng

56
WiFi 101 Fundamentals, Design and Troubleshoo9ng

Upload: haphuc

Post on 14-Feb-2017

220 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Wi-‐Fi 101 Fundamentals, Design and Troubleshoodng

Wi-­‐Fi  101    

Fundamentals,  Design  and  Troubleshoo9ng  

Page 2: Wi-‐Fi 101 Fundamentals, Design and Troubleshoodng

Who  am  i  

Troy  Mar9n            @troymart      •  Systems  Engineer  with  Aerohive  Networks  •  Wanted  to  be  a  philosophy  major  •  Took  Electrical  Engineering  instead  •  Worked  on  networks  with  >60,000  APs  

 

Page 3: Wi-‐Fi 101 Fundamentals, Design and Troubleshoodng

What  are  we  going  to  cover?  

•  Quickly  review  RF  fundamentals  •  Design  Tips/Guidelines  •  Arbitra9on  •  Troubleshoo9ng  •  Addi9onal  resources…always  more  to  learn    

Page 4: Wi-‐Fi 101 Fundamentals, Design and Troubleshoodng

Some  one  said  “They  first  heard  of  Wi-­‐Fi  on  Friday….  by  Monday,  everybody  had  it.”              

Page 5: Wi-‐Fi 101 Fundamentals, Design and Troubleshoodng

BATTERY  

BELONGING  –  LOVE  friendship,  family,  in9macy  

 SAFETY  

security,  stability,  freedom  from  fear  

PSYCOLOGICAL    breathing,  food,  water,  shelter,    sleep  

Wi-­‐Fi  

SELF-­‐ESTEEM  achievement,  recogni9on,  confidence,  respect  

SELF-­‐ACTUALIZATION  morality,  problem  solving,  

acceptance  of  facts  

MASLOW’s  HIERARCHY  

Page 6: Wi-‐Fi 101 Fundamentals, Design and Troubleshoodng

OSI  Model  

Wi-Fi operates at layers one and two

Wireless LAN’s provide access to the distribution systems of wired networks. This allows the users the ability to have connections to wired network resources.

Session  

Applica-on  

Network  

Transport  

Physical  

Presenta-on  

Data  Link  

Page 7: Wi-‐Fi 101 Fundamentals, Design and Troubleshoodng

One  Transmiaer  

Page 8: Wi-‐Fi 101 Fundamentals, Design and Troubleshoodng

Three  Transmiaers  

Page 9: Wi-‐Fi 101 Fundamentals, Design and Troubleshoodng

Many  Transmiaers  (Reality)  

Page 10: Wi-‐Fi 101 Fundamentals, Design and Troubleshoodng

Refrac9on  

Page 11: Wi-‐Fi 101 Fundamentals, Design and Troubleshoodng

Reflec9on  

Page 12: Wi-‐Fi 101 Fundamentals, Design and Troubleshoodng

Terminology  (sound  like  a  “Pro”)  

•  Wi-­‐Fi  –  sounds  cool  -­‐  means  nothing,  Wireless  Fidelity  is  a  myth  

•  SSID  –  ESS-­‐ESS-­‐EYE-­‐DEE,  not  SID  •  Access  Point  –  AP,    not  WAP  •  MIMO  –  My-­‐Moe,  not  Mee-­‐Moe  (IEEE  voted)  •  WLAN  –  “W”  or  “Wireless”  LAN  •  Antenna(s)  –  insects  have  antennae,  circuits  have  antennas  

•  802.1X,  not  802.1x  

Page 13: Wi-‐Fi 101 Fundamentals, Design and Troubleshoodng

Amendments  and  Rates  

DSSS    Direct  Sequencing  Spread  Spectrum  FHSS    Frequency  Hopping  Spread  Spectrum  OFDM    Orthogonal  Frequency  Division  Mul-plexing  HT    High  Throughput  VHT                                                Very  High  Throughput  SISO    Single  Input,  Single  Output  MIMO    Mul-ple  Input,  Mul-ple  Output  

Standard   Supported  Data  Rates   2.4  GHz   5  GHz   RF  Technology   Radios  

802.11  legacy   1,  2  Mbps   Yes   No   FHSS  or  DSSS   SISO  

802.11b   1,  2,  5.5  and  11  Mbps   Yes   No   HR-­‐DSSS   SISO  

802.11a   6  -­‐  54  Mbps   No   Yes   OFDM   SISO  

802.11g   6  -­‐  54  Mbps   Yes   No   OFDM   SISO  

802.11n   6  -­‐  600  Mbps   Yes   Yes   HT   MIMO  

802.11ac   Up  to  6.933  Gbps*   No   Yes   VHT   MIMO  

*First generation 802.11ac chipsets support up to 1.3 Gbps

Page 14: Wi-‐Fi 101 Fundamentals, Design and Troubleshoodng

802.11n,  802.11ac  and  MIMO  radios  

Aerohive AP 141 Aerohive AP 350

3x3:3 2x2:2 1x1:1

iPhone  

3x3:3

Transmit Receive Spatial Streams

1x1:1

iPad  

3x3:3

Aerohive AP

Page 15: Wi-‐Fi 101 Fundamentals, Design and Troubleshoodng

What’s  new  with  802.11ac  

•  5  GHz  ONLY  •  MU-­‐MIMO  (mul9-­‐user)  •  Up  to  8  spa9al  streams  •  256  QAM  •  Updated  Modula9on  and  Coding  schemes  •  20/40/80/80+80/160  MHz  wide  channels  •  Beamforming  (only  one  type  this  9me  –  explicit  with  Null  Data  Packet  -­‐  NDP)  

Page 16: Wi-‐Fi 101 Fundamentals, Design and Troubleshoodng

Binary  Phase  Ship  Key  -­‐  BPSK  

b  =  0  

Q  

I  

-­‐1   1  

b  =  1  

Page 17: Wi-‐Fi 101 Fundamentals, Design and Troubleshoodng

Quadrature  Phase  Ship  Key  -­‐  QPSK  

b  =  01   Q  

I  -­‐1   1  

b  =  11  

+1  

-­‐1  

b  =  00   b  =  10  

Page 18: Wi-‐Fi 101 Fundamentals, Design and Troubleshoodng

Quadrature  Phase  Ship  Key  -­‐  QPSK  

Page 19: Wi-‐Fi 101 Fundamentals, Design and Troubleshoodng

QAM  –  16-­‐bit  Q  

I  

b  =  1111  

b  =  0000  

Page 20: Wi-‐Fi 101 Fundamentals, Design and Troubleshoodng

QAM  –  64-­‐bit  Q  

I  

b  =  111111  

Page 21: Wi-‐Fi 101 Fundamentals, Design and Troubleshoodng

QAM  –  256-­‐bit  Q  

I  

b  =  11111111  

Page 22: Wi-‐Fi 101 Fundamentals, Design and Troubleshoodng

MU-­‐MIMO  

•  Maximizes  available  Spa9al  Streams  on  APs  

•  Downstream  direc9on  only  

•  “Aiming”  sequence,  then  transmit  data  to  mul9ple  clients  

•  Each  client  must  acknowledge  its  frame  

Page 23: Wi-‐Fi 101 Fundamentals, Design and Troubleshoodng

dBm  and  mW  conversions  dBm                              milliwaHs      +60dBm    1,000,000  mW    1000  Waa  (~Microwave  Oven)  +30  dBm  1000  mW    1  Waa        +20  dBm  100  mW          1/10th  of  1  Waa    +10  dBm  10  mW          1/100th  of  1  Waa            0  dBm    1  mW                                  1/1,000th  of  1  Waa    –10  dBm  .1  mW                                      1/10th  of  1  milliwaa    –20  dBm  .01  mW          1/100th  of  1  milliwaa    –30  dBm  .001  mW    1/1,000th  of  1  milliwaa    –40  dBm  .0001  mW    1/10,000th  of  1  milliwaa    –50  dBm  .00001  mW    1/100,000th  of  1  milliwaa    –60  dBm  .000001  mW    1  millionth  of  1  milliwaa    –70  dBm  .0000001  mW    1  ten-­‐millionth  of  1  milliwaa  –80  dBm  .00000001  mW    1  hundred-­‐millionth  of  1  milliwaa  –90  dBm  .000000001  mW    1  billionth  of  1  milliwaa  –95  dBm  .0000000002511 mW  Noise  Floor    

Page 24: Wi-‐Fi 101 Fundamentals, Design and Troubleshoodng

Simple  and  fast  way  to  get  close  to  RF  signal  strength  values  For  every  10  dB  of  gain  you  mul9ply  signal  strength  by  10.      

If  calcula9ng  loss,  for  every  10  dB  of  loss  you  divide  signal  strength  by  10.    

For  every  3  dB  of  gain  mul9ply  the  signal  strength  by  2.    If  calcula9ng  loss,  for  every  3  dB  of  loss  divide  the  signal  strength  

by  2.    

“If    management  doesn’t  think  3  dB  is  a  lot,  I’d  like  a  3  dB  raise.”    -­‐  crapy  RF  Engineer  

Decibel  (dB)  Math  

Page 25: Wi-‐Fi 101 Fundamentals, Design and Troubleshoodng

2.4  GHz  Channels  Used  for  802.11b/g/n  

Channels  1,  6,  and  11  are  the  only  non-­‐overlapping  channels  between  1  and  11  with  most  channel  re-­‐use  

 Using  channels  that  cause  overlap  may  cause  CRC  and  other  wireless  interference  and  

errors    

If  you  are  in  a  country  that  has  channels  1  –  13  or  14  available,  you  may  s-ll  want  to  use  1,  6,  and  11  for  compa-bility  with  mobile  users  from  other  countries  

Page 26: Wi-‐Fi 101 Fundamentals, Design and Troubleshoodng

802.11n  defines  the  use  of  40  MHz  wide  channels.  802.11ac  defines  dynamic  channel  sizes  up  to  160  MHz  wide.    

5  GHz  Channels  -­‐  Used  for  802.11  a/n/ac  

5.825  

36  

40  

44  

48  

52  

56  

60  

62  

100  

104  

108  

112  

116  

120  

124  

128  

132  

136  

140  

144  

149  

153  

157  

161  

165  

U-­‐NII-­‐1   U-­‐NII-­‐2   U-­‐NII-­‐2E   U-­‐NII-­‐3   ISM  

5.15  

38   46   54   62   102   110   118   126   134   142   151   159  

42   58   106   122   138   155  

50   114  

40  MHz  

80  MHz  

160  MHz  

20  MHz  

5.25   5.35   5.47   5.725  

   

WeatherRADAR  

Page 27: Wi-‐Fi 101 Fundamentals, Design and Troubleshoodng

Design  

Page 28: Wi-‐Fi 101 Fundamentals, Design and Troubleshoodng

Gathering  the  Design  Requirements  

• Informa-on  Gathering  (The  “Interview”)  •  Types  of  Environments  

• Client  device  types  to  be  used  • Applica9ons  to  be  used  •  Expected  Growth  vs.  Current  Needs  

• Access  Points  to  be  used  • Moun9ng  Concerns  

• Coverage  vs.  Capacity  Planning  • Device  Density  •  Security  Enterprise  and  Guest  use  

Knowing the Device Types and Applications to be used will greatly assist you in planning and deploying successful networking solutions.

Page 29: Wi-‐Fi 101 Fundamentals, Design and Troubleshoodng

AP  heat  map  

-­‐67  dBm  cutoff   -­‐82dBm  cutoff  

Page 30: Wi-‐Fi 101 Fundamentals, Design and Troubleshoodng

Channel  Re-­‐use  

36  

36  

36  

36  1  

1  

3  ch    (2.4GHz)   20  ch  (5GHz,  with  DFS)  8  ch  (5GHz,  non-­‐DFS)  

Page 31: Wi-‐Fi 101 Fundamentals, Design and Troubleshoodng

Channel  Reuse  Paaern  

In this plan only the non-overlapping channels of 1, 6 and 11 are used.

Page 32: Wi-‐Fi 101 Fundamentals, Design and Troubleshoodng

Adjacent  Interference/Coopera9on    

Improper designs use overlapping channels in the same physical area.

Page 33: Wi-‐Fi 101 Fundamentals, Design and Troubleshoodng

Co-­‐Channel  Interference/Coopera9on    

Improper design using the same channel on all AP’s in the same physical area.

Page 34: Wi-‐Fi 101 Fundamentals, Design and Troubleshoodng

   Carrier  Sense  Mul9ple  Access  –  Collision  Detec9on  

–  Collision  handling  happens  aper  a  collision  occurs      Carrier  Sense  Mul9ple  Access  –  Collision  Avoidance  

–  Collision  handling  happens  before  any  data  is  transmiaed  

Wi-­‐Fi  is  just  wireless  Ethernet?  

Page 35: Wi-‐Fi 101 Fundamentals, Design and Troubleshoodng

Arbitra9on  •  Physical  carrier  sense    

– Clear  Channel  Assessment  –  CCA  

•  Virtual  carrier  sense  – Network  Alloca9on  Vector  –  NAV  – Value  carried  in  the  802.11  header  

Page 36: Wi-‐Fi 101 Fundamentals, Design and Troubleshoodng

Conten9on  Window  

1   2   3   4   5   6   7   8   9   10  

15   31  63  

127  

255  

511  

1023   1023   1023   1023  

CWmax  

CWmin  

CW=  2x  -­‐  1  

Page 37: Wi-‐Fi 101 Fundamentals, Design and Troubleshoodng

Wi-­‐Fi  Arbitra9on  

PHY Carrier SenseMedium Idle?

Virtual Carrier SenseNAV = 0?

NAV = NAV - 1

Backoff Timer = 0?

Pick Random Backoff #

Backoff = Backoff - 1

Frame to Tx

Tx FrameYes

Yes

NoNo

No

Wait appropriate IFS interval

Page 38: Wi-‐Fi 101 Fundamentals, Design and Troubleshoodng

Birthday  Paradox  

Page 39: Wi-‐Fi 101 Fundamentals, Design and Troubleshoodng

Mul9ple  Sta9ons  

Sta9on  2  

Sta9on  1  

RTS  

CTS   ACK  

DATA   Sta9on  Defers  DIFS  

Random  Backoff    (7  slots)  

SIFS  

SIFS  

SIFS  

DIFS  

Sta9on  4  

Sta9on  3  

Sta9on  6  

Sta9on  5  

Data  

ACK  Sta9on  sets  NAV  upon  receiving  RTS  

NAV  

SIFS  

DIFS  

ACK  

DATA   SIFS  

Sta9on  defers,  but  keeps  backoff  count  (=2)    

Sta9on  set  NAV  upon  receiving  RTS  

Sta9on  sets  NAV  upon  receiving  CTS,  hidden  node  to  Sta9on  1  

Random  Backoff    (9  slots)  

DIFS  

Remaining  Backoff      (2  slots)  

Sta9on  Defers  

NAV  

New  Random  Backoff    (10  slots)  

Sta9on  Defers  

NAV  

Sta9on  Defers  

NAV  

Sta9on  Defers  

NAV  

Sta9on  Defers  

NAV  

Sta9on  Defers  

NAV  

Page 40: Wi-‐Fi 101 Fundamentals, Design and Troubleshoodng

Antenna  Paaerns  

Patch/Yagi  

Rubber-­‐Duck  

Internal  

Page 41: Wi-‐Fi 101 Fundamentals, Design and Troubleshoodng

Troubleshoo9ng  

Page 42: Wi-‐Fi 101 Fundamentals, Design and Troubleshoodng

Clients  are  responsible  for  when  to  roam  and  which  AP  to  roam.  

Page 43: Wi-‐Fi 101 Fundamentals, Design and Troubleshoodng

AP  heat  map  

-­‐82  dBm  cutoff  -­‐67  dBm  cutoff  

Page 44: Wi-‐Fi 101 Fundamentals, Design and Troubleshoodng

iOS  Client  Roaming  

•  Trigger  roam  at  -­‐70dBm  •  During  ac9ve  session  –  next  hop  AP  must  have  RSSI  8dB+  than  current  RSSI  

•  During  unac9ve  session  –  next  hop  AP  must  have  RSSI  12dB+  than  current  RSSI  

haps://support.apple.com/en-­‐us/HT203068  

Page 45: Wi-‐Fi 101 Fundamentals, Design and Troubleshoodng

iOS  Client  

CURRENT  AP  RSSI  =  -­‐73  dBm  

AP-­‐2  RSSI  =  -­‐63  dBm  

AP-­‐3  RSSI  =  -­‐67  dBm  

Ac9ve  Session  

Page 46: Wi-‐Fi 101 Fundamentals, Design and Troubleshoodng

RSSI  from  different  clients  

-­‐73  dBm  

-­‐65  dBm  

-­‐71  dBm   -­‐75  dBm  

-­‐69  dBm  

Page 47: Wi-‐Fi 101 Fundamentals, Design and Troubleshoodng

S9cky  Client  

56  44  

36  

48  52  

Even  though  cell  53  has  greater  RSSI,  client  remains  connected  to  cell  44  

Building  entrance  –  1st  associa9on  

Some  clients  prefer  to  stay  connected  to  a  AP  they  know  rather  than  take  chance  connec9ng  to  a  new  AP  

Page 48: Wi-‐Fi 101 Fundamentals, Design and Troubleshoodng

Client  Connec9on  Problem  #1  

Page 49: Wi-‐Fi 101 Fundamentals, Design and Troubleshoodng

Client  Connec9on  Problem  #2  

Page 50: Wi-‐Fi 101 Fundamentals, Design and Troubleshoodng

Client  Connec9on  Success  

Page 51: Wi-‐Fi 101 Fundamentals, Design and Troubleshoodng

Books  CWNA  Cer(fied  Wireless  Network  Administrator  Official  Study  Guide  -­‐>  Wi-­‐Fi  101  

CWSP  Cer(fied  Wireless  Security  Professional  Official  Study  Guide  -­‐>  Wi-­‐Fi  Security  

CWAP  Cer(fied  Wireless  Analysis  Professional  Official  Study  Guide  -­‐>  Wi-­‐Fi  the  Protocol  

802.11  Wireless  Networks:  The  Defini(ve  Guide,  Second  Edi(on  by  MaHhew  Gast    

802.11n:  A  Survival  Guide  by  MaHhew  Gast    

802.11ac:  A  Survival  Guide  by  MaHhew  Gast    

CWDP  Cer(fied  Wireless  Design  Professional  Official  Study  Guide  -­‐>  Wi-­‐Fi  Design  

Page 52: Wi-‐Fi 101 Fundamentals, Design and Troubleshoodng

W-­‐Fi  Community  

•  Social  Media  •  Vendor  Communi9es  •  User  groups  •  Blogs  •  Wi-­‐Fi  conferences  

The image cannot be displayed. Your computer may not have enough memory to open the image, or the image may have been corrupted. Restart your computer, and then open the file again. If the red x still appears, you may have to delete the image and then insert it again.

Page 53: Wi-‐Fi 101 Fundamentals, Design and Troubleshoodng

Wi-­‐Fi  Conferences  

•  CWNP  Conference  •  WFD  –  Wireless  Field  Day  •  WLPC  –  WLAN  Professional  Conference  •  WBA  –  Wireless  Broadband  Alliance  •  Defcon  –  Wireless  Village  

Page 54: Wi-‐Fi 101 Fundamentals, Design and Troubleshoodng

Free  Troubleshoo9ng  Book  

haps://goo.gl/8Dv2qg  

or  

haps://community.aerohive.com/aerohive/topics/download-­‐a-­‐free-­‐booklet-­‐about-­‐wlan-­‐troubleshoo9ng  

Page 55: Wi-‐Fi 101 Fundamentals, Design and Troubleshoodng

QUESTIONS?  

Page 56: Wi-‐Fi 101 Fundamentals, Design and Troubleshoodng

FIN  ACK