networks setting wlan performance expectations4 scotch malt whisky society 82.19 ”stunning!” the...

44
Aerohive® NETWORKS Troy Martin @troymart #WLPC_EU 2016 Setting WLAN Performance Expectations

Upload: others

Post on 14-Mar-2020

4 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: NETWORKS Setting WLAN Performance Expectations4 Scotch Malt Whisky Society 82.19 ”Stunning!” The nose producedfascinating and weighty aromas – cola cubes, toffee, dark chocolate,

Aerohive®

NETWORKS

Troy Martin@troymart

#WLPC_EU 2016

Setting WLAN Performance Expectations

Page 2: NETWORKS Setting WLAN Performance Expectations4 Scotch Malt Whisky Society 82.19 ”Stunning!” The nose producedfascinating and weighty aromas – cola cubes, toffee, dark chocolate,

Allegory of the Cave

Page 3: NETWORKS Setting WLAN Performance Expectations4 Scotch Malt Whisky Society 82.19 ”Stunning!” The nose producedfascinating and weighty aromas – cola cubes, toffee, dark chocolate,

3

Who am I?

Troy Martin

CWNE #90

B.A.Sc. EE & B.Sc. Cmpt. Sci.

@troymart

CCIE-W #20999ACDX #312

SMWS#36

Page 4: NETWORKS Setting WLAN Performance Expectations4 Scotch Malt Whisky Society 82.19 ”Stunning!” The nose producedfascinating and weighty aromas – cola cubes, toffee, dark chocolate,

4

Scotch Malt Whisky Society

82.19 ”Stunning!”

The nose produced fascinating and weighty aromas – cola cubes, toffee, dark chocolate, treacle, nutmeg, walnut, plums, vintage port and Christmas cake with dark cherries, soaked in rum and Madeira. The palate was mouth-drying but ‘stunning!’ – juicy toffee apples, black tea, leather, toffee and molasses.

Page 5: NETWORKS Setting WLAN Performance Expectations4 Scotch Malt Whisky Society 82.19 ”Stunning!” The nose producedfascinating and weighty aromas – cola cubes, toffee, dark chocolate,

5

• LAN Throughput• WAN Throughput• Rate Limiting• Default Settings

Agenda

Page 6: NETWORKS Setting WLAN Performance Expectations4 Scotch Malt Whisky Society 82.19 ”Stunning!” The nose producedfascinating and weighty aromas – cola cubes, toffee, dark chocolate,

OSI Model – ”10” layer model

6Wi-Fi operates at layers one and two

Session

Application

NetworkTransport

Physical

Presentation

Data Link

PoliticalCost constraints to projectTread carefully

Can make-or-break great Wi-FiBusiness

Aesthetics

Page 7: NETWORKS Setting WLAN Performance Expectations4 Scotch Malt Whisky Society 82.19 ”Stunning!” The nose producedfascinating and weighty aromas – cola cubes, toffee, dark chocolate,

LAN Throughput

7

Page 8: NETWORKS Setting WLAN Performance Expectations4 Scotch Malt Whisky Society 82.19 ”Stunning!” The nose producedfascinating and weighty aromas – cola cubes, toffee, dark chocolate,

Impact of encryption

8

Question: Does encrypting Wi-Fi frames reduce throughput?

Scenario: Throughput across three different SSIDs• Open – no encryption• WPA/TKIP(ARC4)• WPA2/AES(CCMP)

Guestimate• Open (no encryption) is faster.

Page 9: NETWORKS Setting WLAN Performance Expectations4 Scotch Malt Whisky Society 82.19 ”Stunning!” The nose producedfascinating and weighty aromas – cola cubes, toffee, dark chocolate,

Network Test Setup

9

Source Destination

Page 10: NETWORKS Setting WLAN Performance Expectations4 Scotch Malt Whisky Society 82.19 ”Stunning!” The nose producedfascinating and weighty aromas – cola cubes, toffee, dark chocolate,

Impact of encryption

10

Results: ?

Scenario:• Open ~ 216 Mbps• WPA/TKIP ~ 32 Mbps• WPA2/AES ~ 213 Mbps

Conclusion• WPA/TKIP has significant performance impact. – Well sort

of.

Page 11: NETWORKS Setting WLAN Performance Expectations4 Scotch Malt Whisky Society 82.19 ”Stunning!” The nose producedfascinating and weighty aromas – cola cubes, toffee, dark chocolate,

Implications of TKIP

11

With TKIP enabled – 802.11n features may not be supported.• No MCS rates• No channel bonding

TKIP was intended to improve the state of security during transition to WPA2 or a Robust Security Network (RSN)

Page 12: NETWORKS Setting WLAN Performance Expectations4 Scotch Malt Whisky Society 82.19 ”Stunning!” The nose producedfascinating and weighty aromas – cola cubes, toffee, dark chocolate,

TKIP – channel width

12

Page 13: NETWORKS Setting WLAN Performance Expectations4 Scotch Malt Whisky Society 82.19 ”Stunning!” The nose producedfascinating and weighty aromas – cola cubes, toffee, dark chocolate,

TKIP – PMK vs GMK

13

When configuring auto WPA/WPA2

STA abilities negotiated during client association• PMK negotiated individually• GMK negotiated for the group• PMK can use WPA or WPA2 depending on STA abilities• GMK will use WPA

Page 14: NETWORKS Setting WLAN Performance Expectations4 Scotch Malt Whisky Society 82.19 ”Stunning!” The nose producedfascinating and weighty aromas – cola cubes, toffee, dark chocolate,

14

iOS 10 – Wi-Fi security warnings

Page 15: NETWORKS Setting WLAN Performance Expectations4 Scotch Malt Whisky Society 82.19 ”Stunning!” The nose producedfascinating and weighty aromas – cola cubes, toffee, dark chocolate,

CSMA/CA

©2016 Aerohive Networks Confidential 15

802.11 Arbitration• White paper by

Marcus Burton• https://www.cwnp.com/uploads

/802-11_arbitration.pdf

Page 16: NETWORKS Setting WLAN Performance Expectations4 Scotch Malt Whisky Society 82.19 ”Stunning!” The nose producedfascinating and weighty aromas – cola cubes, toffee, dark chocolate,

Moment of Silence for the 3.5mm Jack

16

Page 17: NETWORKS Setting WLAN Performance Expectations4 Scotch Malt Whisky Society 82.19 ”Stunning!” The nose producedfascinating and weighty aromas – cola cubes, toffee, dark chocolate,

CSMA/CD

17 https://en.wikipedia.org/wiki/Carrier_sense_multiple_access_with_collision_detection

Page 18: NETWORKS Setting WLAN Performance Expectations4 Scotch Malt Whisky Society 82.19 ”Stunning!” The nose producedfascinating and weighty aromas – cola cubes, toffee, dark chocolate,

Birthday Paradox

18

In a room full of only 23 people – there is over a50% chance that two of them will share the same birthday.

Page 19: NETWORKS Setting WLAN Performance Expectations4 Scotch Malt Whisky Society 82.19 ”Stunning!” The nose producedfascinating and weighty aromas – cola cubes, toffee, dark chocolate,

Ethernet Frame Sizes

19

Ethernet Header –14 bytes

Layer 2 – payload - 46-1500 bytes CRC - 4 bytes

InterframeGap - 12 bytes Ethernet Frame -1518 (1522 with .1Q) BytesPreamble - 8

bytes

Page 20: NETWORKS Setting WLAN Performance Expectations4 Scotch Malt Whisky Society 82.19 ”Stunning!” The nose producedfascinating and weighty aromas – cola cubes, toffee, dark chocolate,

Frame Size – Ethernet Efficiency

20

Frame Size Data Payload Efficiency

64 42 66%128 106 83%256 234 91%

512 490 96%768 746 97%

1024 1002 98%1500 1478 99%

1522 (w/ .1Q) 1500 99%

Page 21: NETWORKS Setting WLAN Performance Expectations4 Scotch Malt Whisky Society 82.19 ”Stunning!” The nose producedfascinating and weighty aromas – cola cubes, toffee, dark chocolate,

Frame Size – Wi-Fi Efficiency

21

Maximum MSDU size = 2304 bytes (without frame aggregation)

Maximum frame size - depends:• WEP – 2346 bytes• TKIP – 2358 bytes• CCMP – 2354 bytes

Efficiency ranges between 0 – 98%

Page 22: NETWORKS Setting WLAN Performance Expectations4 Scotch Malt Whisky Society 82.19 ”Stunning!” The nose producedfascinating and weighty aromas – cola cubes, toffee, dark chocolate,

IMIX Traffic – RFC 2544 & 6985

22

IP Length % of Total Length at other Layers

64 23 82

128 67 146

1000 10 1018

https://tools.ietf.org/html/rfc2544https://tools.ietf.org/html/rfc6985

Page 23: NETWORKS Setting WLAN Performance Expectations4 Scotch Malt Whisky Society 82.19 ”Stunning!” The nose producedfascinating and weighty aromas – cola cubes, toffee, dark chocolate,

IMIX Traffic – Real world

23

IP Length # Packets Distribution (in packets) Bytes Distribution (in bytes)40 7 58.333333% 280 7%

576 4 33.333333% 2304 56%1500 1 3.333333% 1500 37%

https://en.wikipedia.org/wiki/Internet_Mix

IP Length # Packets Distribution (in packets) Bytes Distribution (in bytes)1500 1 100% 1500 100%

Non-real world

Closer to reality

Page 24: NETWORKS Setting WLAN Performance Expectations4 Scotch Malt Whisky Society 82.19 ”Stunning!” The nose producedfascinating and weighty aromas – cola cubes, toffee, dark chocolate,

IMIX meets iPerf

24

Professional grade packet blasting tools

Capture real world traffic for your environmentiperf3 –s –i 1iperf3 –s –i 1 -p 5202iperf3 –s –i 1 -p 5203

Capture real world traffic for your environmentiperf3 –u –b 23m -i 10 -c 127.0.0.1 -i 1 &iperf3 –u –b 67m -i 10 -c 127.0.0.1 -i 1 -p 5202 &iperf3 –u –b 10m -i 10 -c 127.0.0.1 –i 1 -p 5203

Page 25: NETWORKS Setting WLAN Performance Expectations4 Scotch Malt Whisky Society 82.19 ”Stunning!” The nose producedfascinating and weighty aromas – cola cubes, toffee, dark chocolate,

WAN Throughput

25

Page 26: NETWORKS Setting WLAN Performance Expectations4 Scotch Malt Whisky Society 82.19 ”Stunning!” The nose producedfascinating and weighty aromas – cola cubes, toffee, dark chocolate,

TCP vs UDP

26

TCP UDPConnection

OrientedConnectionless

Reliable Unreliable

Slow Fast

Ordered Unordered

Heavy Overhead Light Overhead

Page 27: NETWORKS Setting WLAN Performance Expectations4 Scotch Malt Whisky Society 82.19 ”Stunning!” The nose producedfascinating and weighty aromas – cola cubes, toffee, dark chocolate,

How many times to ACK-BACK?

2727

Your Army

Enemy Army Allied

Army

Data

Ack

Ack

Ack

Page 28: NETWORKS Setting WLAN Performance Expectations4 Scotch Malt Whisky Society 82.19 ”Stunning!” The nose producedfascinating and weighty aromas – cola cubes, toffee, dark chocolate,

L2 vs L4 ACKs

28

Layer 4 – TCP session

Layer 2 Wi-Fi Layer 2 Wi-Fi

SYN (Window 65KB)SYN / ACK (Window 32KB)

ACK

Page 29: NETWORKS Setting WLAN Performance Expectations4 Scotch Malt Whisky Society 82.19 ”Stunning!” The nose producedfascinating and weighty aromas – cola cubes, toffee, dark chocolate,

TCP Back-off Algorithms (RFC5681)

29

• If SMSS > 2190 bytes:IW = 2 * SMSS bytes and MUST NOT be more than 2 segments

• If (SMSS > 1095 bytes) and (SMSS <= 2190 bytes):IW = 3 * SMSS bytes and MUST NOT be more than 3 segments

• If SMSS <= 1095 bytes:IW = 4 * SMSS bytes and MUST NOT be more than 4 segments

Initial Window (IW): The initial window is the size of the sender's congestion window after the three-way handshake is completed.

Sender Maximum Segment Size (SMSS): The SMSS is the size of the largest segment that the sender can transmit. This value can be MTU of network, Rx Max segment size or based on other factors.

Page 30: NETWORKS Setting WLAN Performance Expectations4 Scotch Malt Whisky Society 82.19 ”Stunning!” The nose producedfascinating and weighty aromas – cola cubes, toffee, dark chocolate,

Example of TCP Slow start

30

cwnd = 1 x MSS

cwnd = 2 x MSS

cwnd = 4 x MSS

cwnd = 3 x MSS

• Exponential increase of cwnd until first loss event

Page 31: NETWORKS Setting WLAN Performance Expectations4 Scotch Malt Whisky Society 82.19 ”Stunning!” The nose producedfascinating and weighty aromas – cola cubes, toffee, dark chocolate,

TCP Congestion policy: Example

31

Page 32: NETWORKS Setting WLAN Performance Expectations4 Scotch Malt Whisky Society 82.19 ”Stunning!” The nose producedfascinating and weighty aromas – cola cubes, toffee, dark chocolate,

Common TCP Window sizes

32

Operating System Window Size (bytes) TTLLinux (Kernel 2.4 and 2.6) 5840 64Google Linux 5720 64FreeBSD 65535 64WindowsXP 65535 128Windows Vista & 7 (Server 2008) 65535 128OSX 131360 ?iOS (Apple) 131360 ?Android (Marshmellow) 87616 ?

http://www.howtogeek.com/104337/hacker-geek-os-fingerprinting-with-ttl-and-tcp-window-sizes/

Page 33: NETWORKS Setting WLAN Performance Expectations4 Scotch Malt Whisky Society 82.19 ”Stunning!” The nose producedfascinating and weighty aromas – cola cubes, toffee, dark chocolate,

Default TCP Window Size

33 http://www.speedguide.net/analyzer.php

OSX

Page 34: NETWORKS Setting WLAN Performance Expectations4 Scotch Malt Whisky Society 82.19 ”Stunning!” The nose producedfascinating and weighty aromas – cola cubes, toffee, dark chocolate,

Rate Limiting

34

Page 35: NETWORKS Setting WLAN Performance Expectations4 Scotch Malt Whisky Society 82.19 ”Stunning!” The nose producedfascinating and weighty aromas – cola cubes, toffee, dark chocolate,

Impact rate limiting

35

Question: Does rate limiting affect Wi-Fi data rates?

Scenario: 5Mbps rate limiter is applied on the other side of the Internet (or deeper in the core)

Guestimate• Throttling of user traffic – might as well disable higher Wi-Fi

data rates to align with rate limit

- Not always good!

Page 36: NETWORKS Setting WLAN Performance Expectations4 Scotch Malt Whisky Society 82.19 ”Stunning!” The nose producedfascinating and weighty aromas – cola cubes, toffee, dark chocolate,

Network Test Setup

36

Rate Limit Policy

Page 37: NETWORKS Setting WLAN Performance Expectations4 Scotch Malt Whisky Society 82.19 ”Stunning!” The nose producedfascinating and weighty aromas – cola cubes, toffee, dark chocolate,

TCP Congestion Control Protocols

37

• Reno• Three duplicate ACKs & fast recovery

• Tahoe• Loss event: timeout

• New Reno• RFC6582 – obsoletes RFC 3782 & 2582, improves fast recovery

• TCP Hybia• Aims to address high latency links

• TCP BIC • as of Linux 2.6.8 – 2.6.18

• TCP CUBIC• as of Linux 2.6.19

Page 38: NETWORKS Setting WLAN Performance Expectations4 Scotch Malt Whisky Society 82.19 ”Stunning!” The nose producedfascinating and weighty aromas – cola cubes, toffee, dark chocolate,

Impact of rate limiting

38

Results: ?

Scenario: 5Mbps rate limiter is applied on the other side of the Internet (or deeper in the core)

Conclusion• Wi-Fi data rates remained same with or without rate limit

applied

Page 39: NETWORKS Setting WLAN Performance Expectations4 Scotch Malt Whisky Society 82.19 ”Stunning!” The nose producedfascinating and weighty aromas – cola cubes, toffee, dark chocolate,

Impact of rate limiting

39

• TCP dynamically adjusts window size to match bottleneck

• Wi-Fi data rates are unchanged

• Keep higher data rates, minimize airtime utilization

• Let upper layer protocols deal with rate limit

Page 40: NETWORKS Setting WLAN Performance Expectations4 Scotch Malt Whisky Society 82.19 ”Stunning!” The nose producedfascinating and weighty aromas – cola cubes, toffee, dark chocolate,

Default Settings - Tools

40

Page 41: NETWORKS Setting WLAN Performance Expectations4 Scotch Malt Whisky Society 82.19 ”Stunning!” The nose producedfascinating and weighty aromas – cola cubes, toffee, dark chocolate,

Default Settings - Tools

41

Know what they are!!!

Change them – when appropriate.

Have an expectation of what your results should be, so you know if they are wrong.

Page 42: NETWORKS Setting WLAN Performance Expectations4 Scotch Malt Whisky Society 82.19 ”Stunning!” The nose producedfascinating and weighty aromas – cola cubes, toffee, dark chocolate,

42

Drawing the wrongconclusion.

Page 43: NETWORKS Setting WLAN Performance Expectations4 Scotch Malt Whisky Society 82.19 ”Stunning!” The nose producedfascinating and weighty aromas – cola cubes, toffee, dark chocolate,

Complimentary Troubleshooting Chapter

43

CWNA Troubleshooting Chapter

https://goo.gl/hTB6lT

Or

https://community.aerohive.com/aerohive/topics/download-a-free-booklet-about-wlan-troubleshooting

Page 44: NETWORKS Setting WLAN Performance Expectations4 Scotch Malt Whisky Society 82.19 ”Stunning!” The nose producedfascinating and weighty aromas – cola cubes, toffee, dark chocolate,

FIN ACK

44

@troymart#WLPC_EU