I am trying stop enqueue in 802.11, I find Mac::send will resume the queue
(blocked = 0). I will put a condition before mac::sned to stop enqueue. 
you can
check if your MAC do same - always get and send packets in the queue.

Quoting Jesse <[EMAIL PROTECTED]>:

>
> Hi, All,
>    I have a problem with queue blocking. In my simulation, I need to
> implement the XON/XOFF mechanism(IEEE 802.3x) in data link layer to stop th=
> e
> packet dequeueing at the switch. I tried to set blocked_ as true and
> unblock_on_resume_ as false at the same time. However, it just block the
> queue for a moment, then the queue starts to dequeue packets...
>    Also I tried to add a pause_ state for the queue, when at the pause_
> state, I simply disabled the deque() in the deque() function and return
> NULL. It seems that there are packets enqueing. However, some never deque
> even when the deque() is enabled...
>    Now, I have no idea about how to block the queue correctly. Have you
> got the same experience? Any idears and comments are appreciated.
>    Thank you in advance.
>
> Jesse
>



Reply via email to