WiFi Explorer, as well as other wireless scanning tools, provides an option to display signal strength in dBm or percentage values. The purpose of this blog is to describe this conversion process in WiFi Explorer. It should also help clarify why percentage values in WiFi Explorer might look so different when we compare them to the values we see in other tools.
Before we start discussing how the conversion works, let's ask ourselves the following question: when we say that a network has 75% signal strength, what does that mean? Let's assume for a moment that such value represents the percentage of transmitted power at which the signal is being received. So, if the AP is transmitting at 100 mW for example, 90% would mean the transmitted signal is being received at 90 mW, 80% at 80 mW, and so on. Unfortunately, it is not how it works.
Because of physics and Isaac Newton's Inverse-Square Law, signals attenuate very rapidly within just a few meters away from the transmitter and they will always measure below 1 mW at the receiver, making it impractical to use percentage values this way. In fact, this is the reason we use dBm instead. dBm is a unit of comparison and we use it to compare a signal to 1 milliwatt of power. It makes it possible to express both very large and very small values in a short form:
|Power (dBm)||Power (mW)|
You can convert milliwatts values to dBm using the formula:
PdBm = 10 x log10(PmW)
In an inverse manner, to convert dDm to milliwatts values you would use:
PmW = 10(PdBm/10)
In the context of 802.11 networks, a signal received at -40 dBm (0.0001 mW) would be considered a very strong signal, while a signal received at -80 dBm (0.00000001 mW) would be considered very weak. By now you can conclude that the closer the dBm value is to 0, the stronger the signal is. Also, in practice, typical dBm measurements range approximately from -20 to -95 dBm. To see signal strengths as high as -20 dBm you must be located right next to the AP, but on the other hand, how weak of a signal can be "heard" by the receiver will depend on the receiver's sensitivity and noise floor (the background noise).
At this point, it seems natural to perform a simple one-to-one conversion to express dBm values as percentage, for example: 0 dBm = 100%, -1 dBm = 99%, -2 dBm = 98%, ..., -98 dBm = 2%, -99 dBm = 1%, no signal = 0%. We can even adjust the model to consider only the range of dBm values that we expect to see in practice. For example, if we assume a maximum signal strength of -20 dBm and a minimum signal strength of -85 dBm, then the percentage value can be calculated using linear interpolation as follows:
percent = 100 x (1 - (PdBm_max - PdBm) / (PdBm_max - PdBm_min))
The problem with this approach is that is that RF signals propagate non-linearly! Consider for example a received signal value of -40 dBm. If we use a linear model, then that would be equivalent to 60% signal strength, which would be considered not a very strong signal, but in reality it is. At -40 dBm, not only the signal is strong, your network can achieve very high transmit rates (assuming an ideal environment). Therefore, using a linear model is not appropriate.
If a linear model is not a good choice, how is the conversion done in WiFi Explorer? A few years ago, while researching about dBm to percent conversion and how to implement it in WiFi Explorer, I came across this document titled Signal Quality as a Percent for IPW2200. In this document, the author describes various conversion models: the linear model we just discussed, lookup tables based on a perception about the performance of the network at various signal levels (excellent, very fast, slow, not associated, etc.), and quadratic models. Lookup tables as described are very subjective (what's perceived as "fast" for you might not be the same for others), but quadratic models seem to provide a mathematical and consistent mapping between dBm, percentage values, and the user's expectations for quality of the network at various signal levels.
WiFi Explorer uses a quadratic model derived from the IPW2200 driver implementation. The model's parameters have been adjusted based on my own observations, and although we can still argue that the accuracy of the model might not be the best, I believe it is more consistent than the lookup table and better than a linear conversion, especially if you again ask yourself the question what does 75% signal strength mean, not only from a user's perspective but also how it relates to the original dBm measurement.
Below you can see a comparison of the linear model and the quadratic model used in WiFi Explorer:
And just as a reference, I'm including here the list of dBm - percentage value mappings that are generated from this model.
I hope this blog helps clarify some of the mysteries behind the conversion between dBm and percentage values, and why other tools show percentage values for signal strength that are far off from what you see in WiFi Explorer.