Is there a way to measure packet loss on a wifi network that is caused by bad reception or interference?
I would like to measure it from the client side without moving the computer or access point.
Is there a way to measure packet loss on a wifi network that is caused by bad reception or interference?
I would like to measure it from the client side without moving the computer or access point.
i experienced same problem in site with 40 AP are installed and controlled by wireless controller . they take photos in any place in the site and upload it on FTP server automatically ,some places are working good and other upload in big time . i used very useful android application called WiFi Speed Test which is simulating upload and download files between your phone and other remote PC and show you the upload and download speed of this file Transfer.
regarding the problem of those APs it was the AP output power , which need to be adjusted on the controller it self
if you want to plot the shape of packet loss percentage you can use the great application ping plotter
Ping -n 40 (IP Address or domain name)
another option can be traceroute, although the output will not show you the packet loss but it will show the slow-responding routers along the path, this will help you find where the packet loss may occur.
or test some monitoring tools such as: IP-SLA or pingplotter (http://pingplotter.com/index.php)
As @YLearn has pointed out: you have to destinguish between frame loss (on wireless MAC layer) and packet loss (IP layer).
IEEE 802.11 has a retransmission scheme for the wireless link to compensate for the high frame loss rate compared to wire bound networks. Only if a frame has failed to be acknowledged on the wireless link for a number of times, the packet encapsulated in that frame gets lost. The number of retransmissions is adapted by a vendor specific algorithm.
On a linux system you can use e.g. iwconfig
to obtain the number of lost packets caused by excessive retries on the wireless link:
$ /sbin/iwconfig wlan0
wlan0 IEEE 802.11abg ESSID:"XXX"
Mode:Managed Frequency:2.412 GHz Access Point: aa:bb:cc:dd:ee:ff
Bit Rate=54 Mb/s Tx-Power=15 dBm
Retry short limit:7 RTS thr:off Fragment thr:off
Power Management:off
Link Quality=62/70 Signal level=-48 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:26 Invalid misc:1830 Missed beacon:0
So if you are interested in the number of IP packets that are lost on the uplink (laptop→access point) of the wireless link, then Tx excessive retries is what you are looking for.
Since you want to measure packet loss from a client, I suggest to run ping IP_address -i 0.001 -M do -n -s 1472
and try to stress the link as much as possible.
-i
option drastically shortens the interval.-M do
option sets the Don't Fragment bit which is a must for testing the MTU.-n
option disables DNS resolution which is unnecessary for testing packet loss.-s
option sets the packet size.If a message containing Frag needed and DF set
is printed, then either the MTU is less than 1500 bytes or there actually is packet loss.
Because ping -i 0.001
prints many lines, it comes in handy to use the -q
option as well. So you'll get a summary when ping is stopped. Alternatively, you can use the -c
option to limit the number of packets sent by ping.
By stressing the link, I mean that you should try to creates as much throughput as possible by using other tools than ping. This increases the round-trip time and allows you to test the network as if everyone in the office is working. Even the fastest ping test does not show performance issues. There could be a switch or a router which cannot handle a certain load and consequenly could cause an inacceptable latency or even packet loss.
Signal levels can also help you figure out wireless interference, as can channel assignments of APs around you. For free, you can use vistumbler if on Windows, or InSSIDer (which isn't free anymore I don't think).
On Mac, you have some options in the App Store, but I prefer NetSpot which has a free version and also has some site surveying options included in it.