Friday, March 9, 2007

RFID Tags for Apple devices. Wi-Fi Enabled Apple Remote, iPod and Other Peripherals

While setting-up wireless Wi-Fi network in your home now is much easier then it was few years ago, configuring all devices and establishing sufficient security protocols can still be pain in the … for average user. Now Apple has a solution how to make everything easy, automatic and secure - RFID tags.

The idea, described in Apple’s patent “RFID network arrangement” is simple. Put RFID transceiver into a network wireless base station such as Airport Express or Airport Extreme and put RFID tags on other devices that you want to connect to Wi-Fi network.

apple-rfid-network-arrangement.jpg

All network configuration information, including communication parameters, SSID info, radio channels, encryption keys, etc; can be stored in the base station. When RFID enabled network device is brought in to close proximity of the base station, RFID transceiver collects this information and writes it to read/write RFID tag on the network device. When this device is turned on, it reads configuration data and security keys from RFID tag and establishes secure network connection.

That’s it. From a user stand point - you just bring you Macbook within a feet of your Airport Express and the network is set up. You don’t even have to have a Macbook on at the time. RFID info to the tag can be read/written without additional power source. Then you turn your laptop on and it’s already on the network.

RFID tags also solve the problem of how to connect various “dumb” devices that don’t have appropriate user interface (like screen or keypad) for easy configuration:

  • This may be the final piece in the puzzle to make Wi-Fi iPod a reality. Put WI-Fi chip inside, add RFID tag and that’s it. You take your iPod to your base station and then turn it on. Your iPod is another device on the network. Of course, passing Wi-Fi synchronization data to the iPod was already technically possible. But RFID tags make the process so much easier.
  • One of applications mentioned in the patent is Apple Wi-Fi Remote for:

    “… controlling the operation of the iTunes music software provided by Apple computer… Such a remote control might have buttons for a variety of playback-oriented functions, such as play, pause, skip forward, skip back, volume control, etc, but such a device might not include an alphanumeric keypad or display device suitable to allow configuration of the device to operate over a wireless network. Using the teachings herein, such a remote control could be configured merely be bringing it into proximity with the computer or network base station…”

  • Extending your WI-Fi network. You can have RFID transceiver on Airport Extreme and RFID tags on Airport Express. Then you just sync them and plug Airport Express where you need extended Wi-Fi coverage.
  • Wi-Fi enabled network printer and any other peripheral. Again, put Wi-Fi chip in it, slap RFID tag on, sync. Your printer is another device on the wireless network

Looks like Apple did it again. The basic idea is so simple and obvious in hindsight, yet it opens so many new possibilities that there will be lot of people wondering “Why didn’t I think of that earlier”.

Building a Voice Capable WiFi Network

Building a wireless network that supports data traffic is hard enough but trying to support VOIP over your WLAN (also known as VoFi) can be a nightmare. To make matters worse, when you ask your vendor how to make Voice work on your WLAN they explain you will need 2X-3X as many APs as you needed for data. "Sure I do", you respond. Confident that the sales person from your vendor just wants to sell you more APs. Or, better yet, you turn to your trusted VAR and he suggests another site survey. "Right, another one", you say, with that knowing look in your eye and a sinking feeling that you are being strung along. You feel like the guy who brings his car in for a tune-up and gets told he needs a complete overhaul.



Well, I have nothing to sell you and no agenda that I will benefit from by saying this but your infrastructure vendor and your VAR are absolutely correct. You probably will need more APs and you sure as heck will need another survey. Lets find out why, shall we?



Unlike Email and web access, slight lags or delays in traffic or small losses in connectivity will completely destroy calls. A person who has access to the Internet durring a meeting in a conference room is far less likely to lose his cool for small delays than when he is on the phone with an important client.



You see, wireless handsets are much lower powered compared to the access points they talk through. A typical AP is usually set to communicate at 100milliwatts (mw) whereas the typical handset is roughly 5mw. This makes it very easy for the handset to hear the AP but very hard for the AP to hear the handset when it is far away. Also they are far less resilient to fragmented packets, retries, packet loss etc.



So what can I do? Well the simplest thing to do would be to ensure that the handset is always at the same power as the AP. That means either increasing the power on the handset or, more likely, lowering the power on the AP. This will mean, of course, that you will need more APs to cover the same area.

For example here are 4 APs at 100milliwatts:


Here are the same APs but now set to 5mw instead, notice the gaps in coverage:


In order to compensate, we must add many more APs to fill in the holes, all configured to run at 5 mw:


As you can see, much better. Now, though, our main issue is channels. APs that overlap thier signal on the same channel take away from the usable bandwidth. We want to ensure we do not trample the signal from another AP so we must adjust the channel plan.
Also, remember we only have 3 channels to work from.

Cisco, at this point recommends the following:


That explains why I limited the seen signal to -67dbM making all the other signal fall off and appear grey.



In a week or two, we will discuss debugging Voice issues and setting MOS scores.



Saturday, February 3, 2007

The Ripple Effect - Problems with Cisco’s Radio Resource Management (RMM)

(NOTE: This information is out of date. Cisco has changed their RRM calculations and have removed much of the information linked to in this post.)


Introduction:
In its Unified Wireless Network architecture, Cisco has developed patent pending technology for dealing with interference detection and avoidance, dynamic channel assignment, dynamic power adjustment, coverage-hole detection and correction, rogue detection and client load balancing. This system is known as RRM or Radio Resource management. The stated goal of which is to avoid problems in the fixed ISM band of 802.11b/g where only 11 channels are available to U.S. WLANs. This system, though sound in theory, has problems when applied to large WLANs in urban areas or locales that have heavily deployed WLANs such as Metro WiFi, skyscrapers, hospitals, universities and businesses near residential neighborhoods.
Background on Channel Overlap:
Anyone who has configured their own home access point (AP) knows they are allowed to choose a channel for the AP to transmit on. Since APs use Dynamic Spread Spectrum technology they actually utilize 5 channels per AP.
If an admin were to configure APs to use all channels in the 802.11b/g spectrum, a serious decrease in available bandwidth would occur and users would experience sever throughput loss. Thus an admin is restricted to only configure his/her APs to 3 non-overlapping channels; 1, 6 and 11. In some cases an admin may opt, out of necessity, to go for a slight overlap and configure a 4 channel plan consisting of channels 1, 4, 7 and 11.

WLAN planning and Site Surveying:
Administrators need to then plan out their deployment so that each AP avoids overlapping its coverage with another AP on the same channel. APs must have their power adjusted to compensate for walls and coverage gaps that may ensue when a building is not a standard rectangular shape or when neighbors move in and configure their AP on a channel used by the organization the admin works for. This adjustment in power may increase or decrease the size of the cell of each AP and the additional adjustments to all the other APs will now be needed. Lastly, the admin must plan for areas where usage may change very dynamically such as in conference rooms and auditoriums. As one can see, this is really an art and a whole industry has evolved around designing wireless networks. Usually a Site Survey is needed to map out the existing neighbor APs as well as to plan where to place and map the new APs. Surveys are also recommended from time to time to adjust to changes that may happen around the organization as well as within it.

Cisco's Solution:
The Cisco Unified Wireless Network (UWN) architecture hopes to avoid this problem by sensing the types of problems that occur in WLANs and automatically compensating. Problems such as:
  • A neighbor moving in next door or upstairs and implementing APs that overlap yours
  • Coverage gaps that occurs when walls, cubicles and other furniture are moved, added or removed
  • Loss in throughput when people, who are 78% water, move around in a company and group together in conference rooms or other areas (water attenuates or "blocks" radio waves)
Cisco has (had) a brief description on their website at HERE and a much more in depth description HERE
On that second page Cisco describes how this works under the section entitled, "Radio Resource Monitoring"


Management of an RF network requires strong visibility into the factors affecting the air space. Cisco lightweight access points are specially designed to not only offer service, but to also monitor all channels at the same time. This is a result of the extensive development work Cisco has performed on the 802.11 MAC layer as part of its split MAC architecture.
In addition to offering service, Cisco lightweight access points can simultaneously scan all valid 802.11a/b/g channels for the country of operation, as well as for channels valid in other geographies. This provides the highest level of protection-the system will discover rogue access points that might be imported from other countries, or a hacker that knows how to change the country of operation such that the rogue would be out of band and not detected by most WLAN intrusion detection systems (IDSs).
The Cisco lightweight access point goes "off-channel" for a period not greater than 60 ms to listen to these channels. Packets collected during this time are sent to the Cisco Wireless LAN Controller, where they are analyzed to detect rogue access points (whether service set identifiers [SSIDs] are broadcast or not), rogue clients, ad-hoc clients, and interfering access points.
By default, each access point spends only 0.2 percent of its time off-channel. This is statistically distributed across all access points so that adjacent access points are not scanning at the same time, which could adversely affect WLAN performance. This enables administrators to build a picture of what is happening in their WLANs from the perspective of every access point, and increases network visibility beyond what an overlay network can provide, eliminating the "hidden node" problem that can result when air monitors are deployed for every three to five access points.

I will not debate the issues around part time scanning in this article; many others have addressed that already. But I will address the next issue which is how Cisco responds once it has discovered any of the aforementioned problems.

When a station has something to say, it announces it to the media. An access point will allow the station to send its data if the medium is open. If not, the station will be told to wait to transmit until other stations using that medium are finished with it. This prevents two clients from transmitting on the same channel at the same time, which would result in corrupted frames.
With CSMA/CA, two access points on the same channel (in the same vicinity) will get half the capacity of two access points on different channels. This becomes an issue, for example, when someone reading e-mail in a café affects the performance of the access point in a neighboring business. Even though these are completely separate networks, someone sending traffic to the café on Channel 1 can cause data corruption in an enterprise using the same channel. Cisco wireless LAN controllers address this problem and other co-channel interference issues by dynamically allocating access point channel assignments to avoid conflict. Since the Cisco lightweight solution has enterprisewide visibility with its RRM tools, channels are "reused" to avoid wasting scarce RF resources. In other words, Channel 1 will be allocated to a different access point far from the café. This is much more effective than not using Channel 1 altogether, which is what other WLAN systems often do.

Later in the same document it describes a similar situation as Interference.


"Interference" is defined as any 802.11 traffic that is not part of the Cisco WLAN system, including a rogue access point, a Bluetooth device, or a neighboring WLAN. Cisco lightweight access points are constantly scanning all channels looking for major sources of interference (Figure 3).
If the amount of 802.11 interference a predefined threshold (the default is 10 percent), a trap is sent to the Cisco Wireless Control System (WCS).The Cisco Wireless LAN Controller will attempt to rearrange channel assignments to increase system performance in the presence of the interference.
Again I will refrain from diving too deep on interference sources as Cisco does not even have a way to detect much less respond to such non-803.11 interferers as Cordless phones, baby monitors, wireless cameras, DECT phones and headsets etc.


The Problem:
When you have a large number of APs implemented and you are covering a large area, the Cisco system will adjust to compensate for rogues, neighbors and interferers almost continuously. As you add more and more interferers in and around the WLAN, more and more adjustments must be made to compensate for these. As the compensations take place they run into adjustments coming the other direction from the other side of the building and you get a huge ripple effect that will in some cases cancel out adjustments and in others build up over adjustments. The WLAN starts to behave like a wave phase experiment.


Example:
Let us say that we are in a hospital in San Francisco where the average number of APs per block is around a hundred. The hospital has 20 APs per floor and 10 floors in the main building. That's 200 APs, which is quite a large number. This hospital, since it is in an urban setting has many neighbors, many of whom also have APs.
In a typical situation a neighbor to the hospital puts an AP on Channel 1. The Cisco architecture senses this and adjusts to compensate, moving APs from adjacent channels to ones farther away. At or around the same time but on the other side of the hospital, another neighbor appears but this time the AP is on Channel 11. A similar situation occurs there. At some point the two waves of adjustments meet or cross in the middle. This is made possible because the split MAC architecture of the Cisco UWN has many decisions made in its WLAN controllers. These controllers are distributed and can act semi-independently. By the time the wave reaches the other side of the hospital, the system realizes it is again being interefered and readjusts.

This wave or ripple action, because it moves across floors and up stories may go on forever. As more neighbors or interferers come on line more waves are sent out. The larger the implementation the worse the problem gets. The effect is readily visible and measurable to anyone with a WLAN analyzer. They will see MAC addresses hopping from one channel to the next on a second by second basis. They will also be changing output power continuously so the signal will be rising and falling.


Effects of the "Ripple"
The net effect of this phenomenon is a serious decrease in throughput and a large increase in latency. If you use your WLAN for applications that need low latency or high throughput such as VOIP over a WLAN (known as VoWLAN or VoFi) or you have low power handhelds such as the kind used for barcode scanning, this network is unusable. The VoFi traffic will be filled with jitter and conversations will be choppy at best. The handhelds will never be able to sleep or go to low power as they will always be probing for changes to the environment. If the system had been statically mapped to specific channels that do not change, the WLAN would have had problems, for certain, but these problems would be affecting just the few APs that face the neighbors. Now that all the APs are reconfiguring continuously, the whole WLAN is affected all the time.
WLAN STAs that are associated and attempting to pass data will continuously be probing for new channels and APs to associate with. The amount of roaming will go up dramatically. Roaming takes a few seconds to complete so the problem will be very serious for the end user.

Cisco even mentions this problem in one of their release notes for the CB21AG card found here: HERE


CSCse49324-CB21AG retransmission mechanism has problems with RRM in LWAPP network
A CB21AG client that is operating in an LWAPP infrastructure loses connection for small periods of time. When the AP is performing radio resource management (RRM), the AP goes off channel. During these periods, the AP cannot hear and answer ACK and RTS frames from the client. The client card initiates a scan for another AP, and network traffic for the client is affected.
Workaround: Increase the HwTxRetries value from 4 to 14 (registry entry) so that the client card continues to retry for the 20 to 30 milliseconds that the AP is off channel.

SpectraLink and other VoWLAN vendors specifically warn their customers not to deploy their Cisco UWN architecture with RRM enabled. When a WLAN needs to support voice, the requirements for stability increase dramatically.


Conclusion:
The idea behind automatically adjusting and configuring networks is a good one. Maybe sometime in the near future Cisco will program their controllers to avoid this type of effect but in the meantime, unless you have a pretty small network or are located far from interference sources and neighbors, admins are urged to complete a thorough site survey and statically map all their APs to a channel and resurvey from time to time.

Monday, January 29, 2007

Dilbert - The Knack



Got this from Adrian (thanks! I love you, Man!)



This is my mom and me when I was young. Adrian pointed out what a great voice the guy has.

Sunday, January 28, 2007

How to Increase Your Wi-Fi Signal

OK, this guy is dorky and the tin-foil hat/antenna he made is so ghetto BUT his thing on carrier waves and the CAT 5 wrapped cell phone - pure genius.

Monday, January 22, 2007

Repost: Why Would Anyone Think Wireless Is Easy?

I really love this post over at Tech Dirt. It illustrates the fallacies that most people have about implementing Wireless VOIP. The VOIP guys think all they have to do is plop down an AP and shebang! VoWiFI. http://news.techdirt.com/news/wireless/article/6905



I especially love this sentence, "When we begun developing the mobile phone version we didn't realize the number of technical obstacles. It is challenging and is taking much longer than expected"



What are some undiscussed issues surrounding San Francisco's Metro WiFi plans?

I am a San Francisco resident and I have been pondering this Google/Earthlink deal for quite awhile. I authored a couple of postings at Glenn Fleischman's WiFiNetNews site and Om Malick's GigaOm and I am just reposting because I feel that I did not get a sufficient answer to them , although there were some interesting comments later. Here are some open questions to the world at large:



How does the SF WLAN look to affect existing WLANs? What about the businesses that are in and around SF that already have WiFi? Is this new network going to stomp all over the existing networks? Causing co-channel and adjacent channel interference? Are employees of these networks going to connect to the free network while still connected to the wired Ethernet cable of their company's network. Possibly opening up a security hole? What if your company has a "No Wireless" policy, will you be able to just sit by a windows and connect to the MetroWLAN to check your stocks, Gmail account etc? What kinds of security/ authentication system (if any) are going to be used in the big Muni wireless deployments like Philadelphia and San Francisco to ensure the privacy of your internet communication.



Many companies have invested a great deal of time and money into putting up wireless networks in their offices. Some financial companies spent up to a million dollars on their WLAN. This new network may cause a whole host of problems for them. Did anyone consult with any of the existing businesses in downtown SF and/or Mountain View as well? [Editorial Note: I later learned there was an open forum and the results were hilarious. I have also learned that the City's Board of Supervisors is less than optimistic about the whole plan, regardless of the PR steamroller that The SF Chronicle has implemented] Should citizens and businesses have a say in how their "airspace" is used?


It sounds honorable and good to provide free WiFi to the community. I live here in SF and nobody asked me nor did they put up a votable resolution, They are just doing it. This was proposed years ago for a fraction of the cost it would take to implement now by the BARWN folks but was dropped. Why?



I still have to pay for Water, Trash, Phone, Streets, Schools etc. Why should I get free WiFi? I would rather get free trash pickup, or lower local taxes. (We liberals love taxes ;-)



If Gavin Newsom, Mayor of our fine city, has so much buy-in, or Mountain View as well, then why are so many of the companies in these areas scared to death that their investment of hundreds of thousands of dollars might just have been for naught. I have personally spoken to several IT people in Mountain View that really do not want Google's WiFi to tempt their users to connect to it instead of the encrypted and authenticated network that is provided for them.



I also have heard that people who are near one of the Metro WLAN APs cannot use their internal WLAN because the free city WLAN is MUCH LOUDER than their own (Caps are intended). So now what do they do? The Tropos APs that are being implemented in Mountain View and are being considered for San Francisco, are 1 watt (4 Watt effective output) transmitters. thats 40x more powerful that a default configured Cisco unit (which comes at 100mw). Additionally, there are only 3 non overlapping channels, so chances are 100% that this network will stomp all over the internal WLANs of Wells Fargo, PG&E, Charles Schwab and whoever else has offices downtown.



Similarly, in SF we already have around 100 APs per block, residentialy. We have been unwired for years. Heck, every coffee shop in town, of which there are legion, has free WiFi. So why do we need all this other WiFi drowning everything else out?



I actually asked a gentleman that works for a Mesh AP firm about this, He said not to worry about it, that the skin of the building would block a majority of the signal. Then after I distracted him with a tangential question I brought him back around with this question, "how do get access to the signal from my house, this is supposed to provide the community with Internet Access. will I be able to hear it from the core of my building?" and he replied, "...of course you will we will be transmitting at 4W (effective). It will be like I was right there in your living room."


Friday, January 19, 2007

I was in the papers a few times also...

So maybe I am in a, "toot your own horn" kinda mood. (I must not get enough love at work) but I thought I would catalog some props from my past.



I have been printed in a variety of articles in the mainstream press, most of which I am very proud of. For example, I just happened to be a a h@x0r convention in Washington DC called ShmooCon on behalf of AirMagnet when Simple Nomad relased a [kinda] zero day for wifi. I was just hangin out afterwards when a reporter from the Washington Post grabbed a seat at my lonely table to discuss it. Brian Krebs is very well respected and I was happy to talk to him so we chatted about how lame it was that Microsoft kept having stuff blow up on them and this one was such a silly thing. It really blew us away. He asked for a real interview to learn how this had been effecting some of my customers - which it had - and then we went a had a few beers.


You see I was getting calls from a bunch of my customers saying that they were seeing bizarre SSIDs showing up on the Dashboard of our IDS, AirMagnet Enterprise. And to top it all off, they were all in Ad-Hoc, or peer-to-peer mode. SSIDs with names like, linksys, tmobile, hpsetup and wayport-access. My customers were blaming our software, saying we were, "sending false positives". Well, it turns out it was Microsoft's fault the whole time. Go Figure.


Brian is a great guy so I will probably grab a few beers with him this year when I go out in March, but it just goes to show you that 80% of success is just showing up (thanks Woody Allen).


Here are some other links to press on me:



Here is the Washington Post piece. And almost exactly a year later, here is Microsoft's resolution to the vulnerability.



I conducted a walk around with the New York Times (didn't get a mention but my neighborhood did).


And here are a bunch from DefCon 13 where I found a bunch of radio interference:


Wireless Week


The IEEE


EE Times


Information Week




There is also some stuff from waaaaayyyyy back with computer world and a ton of ISSA, ISACA and other speaking engagements. too old to worry about.


Hey, I was on TV!

So a long time ago, I was asked by my V.P. of Marketing at the time, Rich Mironov (One of the best Marketing guys I know, BTW), to assist our PR firm with a show they were putting together. Tactical to Practical on the History Channel. It is a show where in the first half hour they show the military doing something really cool and then, for the second half hour they show you how you, The average American, can do something similar with stuff you can pick up from Frys.


It was a fun shoot. I brought along a friend of mine, Jon Erikson, who wrote a fabulous book called the Art of Exploitation. One of the most well received books on security exploits I know of. He and I were to conduct an actual hack over wireless at a hotspot in downtown San Jose for the cameras.


Jon had a few prepared 'splots he wanted to run. One was a MitM attack with stream injection. I would search for, oh, lets say, "shrimp" at Google and he would substitute, say, "giant" for "shrimp" so all the returns from Google were about really big things. Kinda funny but a hard concept to convey in 15 minutes to a TV audience.


The other idea was pretty simple (read:LAME), I would log into my mail account and he would snarf my password and go read my mail. It came off OK and they kept it as the final for the show. It was fun to do and we got a ton of inquiries. I actually get about 15 minutes of airtime. So there is my Andy Warhol quote for the day. Here is the link: Bruce_on_TV

Monday, December 4, 2006

PSP Thumb, Ouch!


So, I fly. I fly, A LOT! SFO-DEN, SFO-LAX, SFO-ABQ, SFO-BOI etc etc. Because I do fly so much I have a variety of gadgets to keep me occupied during boring waits at the airport or en route to a meeting. I have the ubiquitous iPod (my 5th. I had the very first 5GB model which my brother-in-law- now uses), a PSP, my Laptop (of course) and a blackberry.

They allow me to watch a movie or two, listen to music, Surf the Web, answer email, and play games.

Until today (where I had a long wait for my co-workers to arrive) I never realized the strain the Blackberry and PSP put on my thumb. I mean, "OUCH!" I am in pain. That damn Star Wars Lego II game has a snowspeeder scenario and I am dyin'. Then I had to pause to answer an email with the trusty BB and now I can barely type on my laptop keyboard.

They (whoever "they" are) should make these new tiny gadgets more ergonomic. If I had to hitch hike right now I would get a ride quick due to the increased size of my thumb due to swelling but I would be hard pressed to actually use it for fear it would explode.