[Madwifi-devel] Big loss of small packets

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <madwifi-devel@...>
Date: Friday, July 3, 2009 - 8:31 pm

Hi everyone,

During a few tests with madwifi-hal-testing and madwifi-free branches, I've
noticed strange packet loss at the sender.

I'm using iperf to send small (100 bytes long) UDP packets to a unicast
destination (in ad-hoc mode, without any protection) and ask purposefully for
a sending rate of 54 Mbps, just to see how fast the card is able to transmit
in that very environment.

Sometimes these packets get lost before they even have a chance to get sent by
the hardware.  Iperf happily shows it is sending at the requested 54 Mbps,
which is clearly impossible given the mode, the hardware, and given what
iperf at the server side is reporting (more or less 5 Mbps).  There are many
gaps in the iperf sequence numbers, but not in the MAC sequence numbers, as
reported by the monitor trace from a third machine.  In other words, there may
very well be a big gap of iperf sequence numbers in two packets in two
successive MAC frames (according to the MAC sequence numbers).

The strangest thing is that if I enable tx debugging (athdebug +xmit), the
problem disappears at least in a great part and the sender iperf correctly
reports around 5 Mbps, most of the time.

I'm actually becoming familiar with the code, so I looked at ath_hardstart and
ath_tx_start, but can't really figure out what the ATH_DEBUG_XMIT setting
could really change regarding the above problem.

Any idea?

-- 
If you're not living on the edge, you're taking up too much space.

------------------------------------------------------------------------------
_______________________________________________
Madwifi-devel mailing list
Madwifi-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/madwifi-devel
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[Madwifi-devel] Big loss of small packets, Ignacy Gawedzki, (Fri Jul 3, 8:31 pm)
Re: [Madwifi-devel] Big loss of small packets, Benoit PAPILLAULT, (Sat Jul 4, 3:33 am)
Re: [Madwifi-devel] Big loss of small packets, Ignacy Gawedzki, (Sat Jul 4, 6:34 am)
Re: [Madwifi-devel] Big loss of small packets, Benoit PAPILLAULT, (Sat Jul 4, 9:26 am)
Re: [Madwifi-devel] Big loss of small packets, Ignacy Gawedzki, (Sat Jul 4, 11:30 am)
Re: [Madwifi-devel] Big loss of small packets, Ignacy Gawedzki, (Sun Jul 5, 9:35 am)