Loading
network: Add Reorder Queue
In ns-3, we raised merge request !2406 to implement DSACK, which detects duplicate packets that typically arise due to packet reordering when packets are received in a different order than they are sent. However, ns-3 does not provide built-in scenarios that naturally generate packet reordering. To address this limitation,reordering queue is implemented that intentionally introduces packet reordering at the queue level. A custom ReorderQueue enqueues packets normally but performs controlled packet reordering during dequeue by temporarily holding and later releasing packets. This enables reproducible packet reordering scenarios, which are useful for testing and evaluating the D-SACK implementation.