I'm trying to determine whether a computer capturing WLAN frames on an 802.11n network does this correctly.
I do this by letting one computer (1) generate traffic by downloading some files, and capture that generated traffic. The other computer (2) captures the WLAN traffic generated by computer (1). Apparently I can only save traffic in Ethernet format on computer (1) (although it's sent through my wireless interface). Computer (2) receives traffic on the wireless monitor interface with link type IEEE802_11_RADIO.
This works to some degree. After a while, computer (1) sees the following (arbitrary numbers):
tshark -r /tmp/testcap -Y "eth.dst==[mac NIC] or eth.src==[mac NIC]" | wc -l
gives 3757 packets.
Computer (2) sees the following:
tshark -r /tmp/ctrlcap -Y "wlan.sa==[mac NIC] or wlan.da==[mac NIC] or wlan.ra==[mac NIC] or wlan.ta==[mac NIC]" | wc -l
gives 7234 packets.
One would imagine the number of packets would be the same, but apparently the number of packets differs a lot.
I've been looking for an explanation for this, and I came across something called MSDU aggregation (http://en.wikipedia.org/wiki/Frame_aggregation). However, if I understand correctly, this would imply the number of 802.11 packets on computer (2) would be lower than the number of Ethernet packets on computer (1), which is not the case at all.
Could anyone explain this behaviour? Would it be possible to verify if I'm capturing the right number of packets in another way?