Hi,
Here, I want to implement a Queue with custom round robin to select the packet to be dequeued in a dequeue operation.
Take DropTailQueue as an example.
I did some modifications to DropTailQueue.
1. I add multiple queues for the purpose that I classify the packets into 2 groups by using (source ip address mod 2).
2. In the dequeue function, I implement my custom round robin, like HTB in QoS. But something may occur that I must keep the packet in the queue in a dequeue operation for implementing HTB in QoS which cause a sequence of errors. :-(
Could you please give me some suggestion? (like, where to implement it? cuz, I implement it in the dequeue function, it seems that the queue is "static" due to the fact that no packets will be enqueued during this dequeue operation)
Best,
Tao