I like to announce sch_ooo, a new queue discipline that, attached to a
class (or a device, as root) reorder the packets that pass by delaying some.
tc qdisc add dev eth0 root ooo limit 100 gap 4 wait 1100
This queue will create a pfifo with limit 100 and will delay
every 4th packet with 1100ms.
An stream of 6 packets like this: 1 2 3 4 5 6, generated by
ping will be reordered like this: 1 2 3 5 4 6.
+ tristate "Out-of-order qdisc discipline"
+ depends on NET_SCHED
+ Say Y if you want to simulate out-of-order packets by delaying
+ some of them. This qdisc is useful if you develop
+ protocols or network monitoring applications.