Monday, May 21, 2012

Are Apple iPhones Misbehaving on Wi-Fi

The latest generation of mobile devices, including the Apple iPhone 4S, may be causing performance degradation on your Wi-Fi network, which could be reported as a Denial of Service (DoS) attack by WIPS (wireless intrusion prevention systems).

One of my blog readers contacted me about a disturbing finding he had and asked for my opinion (thanks Thanh). The finding in question was that the Apple iPhone, iPad, and other mobile devices based on the latest Broadcom chipsets are setting really long Duration values in the range of 10-14ms within Wi-Fi control frames (e.g. RTS/CTS-to-self). This essentially reserves the medium for the device to transmit without a collision. The problem is that this is an excessively long period of time for an 802.11n capable device, and through my packet analysis I have found that no large frame transmission is subsequently occurring. This indicates that a performance problem may exist with the devices, and may be reported as an NAV DoS attack on the network by WIPS systems.

I've also heard anecdotal reports of this being observed on HTC Google Nexus One, Apple iPad 2, iPhone 4, some RIM Blackberrys, and even on a Broadcom evaluation board. So, there is a distinct possibility that this issue lies in the Broadcom chipset used in these devices and is not isolated to Apple devices. However, I have only tested this on my personal iPhone 4S and cannot directly verify those observations. So this post only details what I have actual been able to test and observe directly.

I had a hard time believing this could be true, so I investigated myself. Sure enough, I found the behavior when I tested.

Apple iPhone 4S Large Duration Value

What you see in the figure above is that the iPhone transmits CTS-to-Self frames at regular intervals, around once every second, with an excessively large Duration value. This causes all other Wi-Fi clients to set the NAV (virtual carrier sense) to the specified Duration value and defer transmission. Essentially, my iPhone was causing a blockage of all traffic on my wireless network for 11ms at regular intervals. Definitely not good for performance.

Possible valid explanations for this behavior could be:

1) Frame aggregation with 802.11n. I did see the iPhone using frame aggregation in other instances and using an appropriate Duration value around 4ms in those cases. But I did not see frame aggregation being used after the 11ms Duration control frames.

2) The use of a Transmit Opportunity (TXOP) on a QoS enabled WLAN in order to transmit a burst of packets within a specific QoS traffic class. I double-checked the TXOP values advertised by my access point and they are using the 802.11 default values of 0ms (single frame only) for best effort and background queues, 3.008ms for the video queue, and 1.504ms for the voice queue, which are much lower than the 11ms observed value.

3) A really large frame transmitted at a really low data rate. This is possible if the iPhone needed to transmit a 1,384 byte or larger frame at 1 Mbps to get such a Duration value. But I have all 802.11b rates disabled on my AP and verified in the packet trace that the iPhone was using 24 - 65 Mbps almost all the time, with only a few frames at my lowest available data rate of 6 Mbps.

After analyzing my packet trace I can find no evidence of my iPhone transmitting any data frames immediately after the control frame containing the high Duration value. This essentially rules out all three possible explanations.

Other possible explanations would be a poor client roaming algorithm that wants to halt traffic while it goes off-channel to scan for other APs to which it could roam, or a poorly designed battery saving technique for mobile devices. However, I captured on all three non-overlapping 2.4GHz channels and found no evidence of my iPhone probing on other channels during that 11ms time period. And using this as a battery saving technique doesn't even make a whole lot of sense because clients can already notify the AP of it's power save mode and the AP will buffer traffic until it wakes up, or at worst case send broadcast traffic at the configured DTIM interval, which is usually 102ms which allows for a much longer  sleep period anyways. Regardless, the iPhone indicated that it was staying awake (in active mode) in the control frames, so it appears to have not been putting the radio to sleep.

Frankly, I have no answer to explain this behavior. I don't exactly know what is going on.

The effect on a home network is likely to be small, since 11ms out of every 1 second is only about 1% of available airtime. However, in a corporate environment where mobile devices are being introduced into the environment at a staggering rate, the compound effect could be a serious reduction in Wi-Fi network performance and capacity! Think of having 30 students in a single classroom all connected with their mobile devices, 200 in a university lecture hall, or 500 at a trade show or conference. This is increasingly likely as smartphone and mobile device penetration is over 50% in the U.S. and other countries already, and consumers are typically carrying 2-3 Wi-Fi enabled devices with them at all time. The worst-case result in these environments would be so much reserved airtime that almost no network capacity would be left for actual user traffic. Just what we need trying to support tons of mobile devices on enterprise networks, huh.

If I uncover more details, I will update this post accordingly.

Thanks,
Andrew vonNagy

Sunday, May 20, 2012

Wi-Fi Alliance Rebrands Hotspot 2.0 as Wi-Fi Certified Passpoint

In case you didn't seen the press release back on May 8th, the Wi-Fi Alliance announced official branding for the Hotspot 2.0 program as Wi-Fi Certified Passpoint (TM).



The initial focus remains on service provider and carrier integration for easier authentication and better security on Wi-Fi hotspots. However, there are provisions for other identification and authentication methods to the network that could enable other web identities to be used, such as common social media usernames and passwords. These other methods will be critical for consumer adoption on non-cellular devices, such as Wi-Fi only tablets and laptops, which are heavily favored today over cellular models due to lack of bundled pricing by carriers and higher expense of data plans.

You can register on the Wi-Fi Alliance's website to download this free whitepaper on the Passpoint program.

Cheers,
Andrew

Thursday, April 5, 2012

Wi-Fi and Aerohive, The Right Fit!


This blog was originally posted on the Aerohive HiveMind Blog, but I wanted to make sure that my regular readers on this site were informed. I will splitting my blogging between Aerohive and Revolution Wi-Fi from here on out, so you may notice some drop in the frequency of posts on this site. Please visit the Aerohive blog to read my posts over there as well!

About a month ago I made the leap... I changed employers and hopped over the fence from the customer side to the vendor side. I knew the time was right, and the opportunity was right and I’ve been looking to put it into words ever since. I’ve thought long and hard, searching for a deep insight into why I made the decision to join Aerohive Networks, let alone a vendor in general. Finally, I realized I was over-thinking it. The reasons are simple...

Wi-Fi Is My Passion (and a burgeoning industry)
The first reason comes down to doing what I love to do. I started my career as a general technologist, working equally on building networks, servers, data center facilities, and core services like DNS and Active Directory. I quickly fell in love with networking because it was the glue that held everything together.  

Then I found Wi-Fi. I’m the first one to admit it, I’m a dreamer (and an idealist). I love seeing how technology changes how we interact with the world, how it influences our society, culture and behaviors. I’m a people-gazer.  Wi-Fi ignites my passion because it is on the front lines, directly affecting people’s lives. In the same fashion that Steve Jobs and Apple have changed how people interact with each other and the world through the effective design and use of technology, I think Wi-Fi has much the same effect. And I love being a part of that!


Wi-Fi gives one time to think and reflect. No wonder I’m a dreamer!
This is me performing a site survey for an outdoor mesh deployment.

I’m also very lucky to be involved in this industry at a time when Wi-Fi is experiencing a second wave of growth. It really took off in the home around 2003 with 802.11g. The release of 802.11n revitalized and broadened the possibilities in the enterprise. And with the wave of mobile devices, expansion of hotspots, and carrier offload, Wi-Fi is poised to play a prominent role in how people stay connected in their personal and professional lives like never before. Technology advancements like 802.11ac and 802.11ad will be exciting enablers to make solutions for video more pervasisve.

I’m fortuitous to be working with a technology I love, in an industry that is full of potential!

Innovating not Following
The second reason, and specifically why I joined Aerohive, is I believe in our technology. It’s important for me to work at a company that has an innovative spirit and a forward-thinking vision. I believe Aerohive offers that in spades!

The Aerohive Cooperative Control architecture is modern, is not constricted by legacy controller mindset, and allows our team to focus on solving business problems using innovative technology for our customers. Examples include the Bonjour Gateway, BYOD and mobile device solutions, Branch on Demand routing, Client Health Score for simplified troubleshooting, PPSK for enterprise class security that’s easier for smaller organizations to deploy and support, directory integration capabilities for high availability, Cloud SaaS operating model options, TeacherView and StudentManager.

I’ve worked with almost every Wi-Fi vendor solution on the market, and while most are capable solutions, they’re also complex to deploy, manage, and support for customers. In addition they’re spinning significant development cycles on re-designing a controller architecture back into a distributed architecture rather than on focusing on customer needs. We see this with Cisco’s move towards FlexConnect, Aruba towards RAP and Instant, and with Motorola toward Wing5. They’re busy making the Wi-Fi basics work in a distributed fashion, incrementally migrating existing features back into the access point. But they’re suffering from feature and scalability limitations while doing so, and limiting their ability to innovate at the same time. They are also validating the Aerohive position that was pioneered years ago with Cooperative Control (albeit in a twisted fashion) – Thank You!

Aerohive offers a focus on innovation. I want to be a part of that.

Relationships Matter
I’ll be the first to admit this... my success is a direct result of the relationships that I form with other [very smart] individuals. I learn best and succeed most when I surround myself with people smarter than I am. This was true when I first started my career, getting mentorship from an incredibly experienced radio and network engineer (thanks Tony, if you ever read this). It’s still true, no matter how far I’ve come in my career.


Making friends, at -15° F (I’m far left)

Aerohive is a pool of incredible Wi-Fi talent. I know other vendors are as well, but I think our team is especially so. It’s like a laundry list of who’s who in the industry, not only from name recognition but from respect. And respect matters a lot to me. Individuals like David Coleman, Matthew Gast, Bob O’Hara, Joel Vincent, Abby Strong, and my new boss Devin Akin are well-known thought leaders in this industry and well respected by everyone. I can learn from these people, and will in buckets!

The leadership team also exudes confidence and experience in running a small tech company and know how to succeed. We’ve got David Flynn, ChangmingLiu, Adam Conway, and others who have “been here, done it before” with Netscreen and Juniper. These individuals give me great confidence on our ability to execute and be successful.

The Right Fit
Putting all these things together, Aerohive was the right fit.

I’m excited to be on the Aerohive team, and can’t wait to evangelize Wi-Fi technology in general and our solutions in particular. We have a lot to offer today and a ton more coming in the pipeline!

Exciting times!

Cheers,
Andrew vonNagy