[Ns-developers] Delete a packet in WifiMacQueue
mk.banchi at gmail.com
Sun Jan 18 05:24:18 PST 2009
Mathieu Lacage ha scritto:
> On Fri, 2009-01-16 at 12:03 +0100, Mirko Banchi wrote:
>> Hi all,
>> I have to realize aggregation for packets in WifiMacQueue. I have to
>> select all packets that have same receiver address as first packet in
>> the queue and aggregate some of them. If aggregated packet is sent
>> correctly i also have to delete from the queue all packets contained in
>> aggregated packet.
>> Which could be the best way to realize this?
> I think that it is much simpler to avoid this problem:
> 1) when you need to transmit a set of packets, remove them from the
> 2) keep a copy of the packets in EdcaTxopN after the transmission is
> started to ensure that you can do retransmissions
> 3) drop the copy when the transmission is done.
The problem is:
Packet number - Receiver
I remove from queue P1 so aggregation could be made with P3 and P4 that
have same receiver RA. But aggregation is performed by an algorithm that
decides how many packets will form aggregated packet so they should be
removed from queue only if they are really part of final A-MSDU.The
others must preserve arrive order.
Another way than deletion with packet id, could be storing of a
PacketQueueI per packet?
Maybe in this way:
WifiMacQueue::GetPacketsForReceiver (Mac48Address addr)
WifiMacQueue::Erase (PacketQueueI pos)
Erase is called for every packet in A-MSDU.
If GetPacketsForReceiver is called every time an aggregation occurs the
iterators are always valid.
But in this way code seems too complex :(
e-mail: mk.banchi at gmail.com
e-mail: mk.banchi at virgilio.it
id-jabber: mk.banchi at jabber.org
id-msn: mb11684 at hotmail.com
PGP key fingerprint:
308F BFB1 4E67 2522 C88E
DC69 7631 52ED 32A5 6456
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 3410 bytes
Desc: S/MIME Cryptographic Signature
Url : http://mailman.isi.edu/pipermail/ns-developers/attachments/20090118/ced3099d/smime.bin
More information about the Ns-developers