[ns] queuing of packets

Bhaskar Anepu mobnets at yahoo.com
Wed Feb 25 09:48:57 PST 2004


Bryan,
  Thanks for your response but there is one more thing
I want to know. When a node is sleeping, MAC is not
available for packet transmission and hence any packet
that is intended for transmission during this period
is supposed to be queued. But in mac-802_11.cc, the
"send" function has a comment that says

/* drop the packet if the node is in sleep mode
XXX sleep mode can't stop node from sending packets
*/

are we not suppsed to queue the packet instead of
dropping it?

Thanks,
Bhaskar

--- Bryan Hogan <bryan at csn.ul.ie> wrote:
> 
> Scheduler::instance().schedule(ll, p, 0.0);
> or similar calls add packets to the queue.
> 
> as for a "specific answer" to "who calls this
> function, from where and
> under what conditions" you'll have to read
> dsragent.cc to see the various condition under which
> a packet is queued.
> 
> Bryan
> Bryan's NS2 DSR FAQ
> http://www.geocities.com/b_j_hogan


=====
http://www.winlab.rutgers.edu/~bhaskar

__________________________________
Do you Yahoo!?
Yahoo! Mail SpamGuard - Read only the mail you want.
http://antispam.yahoo.com/tools



More information about the Ns-users mailing list