|
Bugzilla – Full Text Bug Listing |
| Summary: | Add 'drop oldest' drop policy to WifiMacQueue | ||
|---|---|---|---|
| Product: | ns-3 | Reporter: | Tom Henderson <tomh> |
| Component: | wifi | Assignee: | sebastien.deronne |
| Status: | RESOLVED FIXED | ||
| Severity: | enhancement | CC: | ns-bugs, stavallo |
| Priority: | P5 | ||
| Version: | unspecified | ||
| Hardware: | All | ||
| OS: | All | ||
| Attachments: | patch | ||
(patch posted on behalf of Ali Rostami) Agreed I think it is safe to apply this patch. Perhaps we might replace: PacketQueue::iterator it = m_queue.begin(); m_queue.erase(it); by: m_queue.pop_front (); I suggest to deliver this patch to the mainstream, maybe including comments from Stefano as well. pushed in changeset 12141:8756fe6b6f52 |
Created attachment 2362 [details] patch Some applications need to preserve the newest generated packet and drop the oldest one from the MAC layer queue. This patch enables an option to change the drop policy on the queue. If the drop oldest policy is selected, the oldest packet in the queue will be dropped and the new packet will be inserted at the tail of the queue. The drop-oldest policy was added to transmit the latest generated packet with most recent information instead of an old packet. This patch has been developed jointly at WINLAB, Rutgers University and West Virginia University as part of the V2V safety communications scalability activity of the Interoperability Issues of Vehicle-to-Vehicle Based Safety Systems (V2V-Interoperability) Project headed by the Crash Avoidance Metrics Partnership (CAMP) Vehicle Safety Communications 3 (VSC3) Consortium, in partnership with the United States Department of Transportation (USDOT).