[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [manet] How to find out the queue size for a node?



You can find out the queue length as follows.
This assumes only one interface per node and the use of priority queues.

int QueueLength(GlomoNode* node)
{
  GlomoNetworkIp* ipLayer = (GlomoNetworkIp*)node->networkData.networkVar;
  IpOutputQueueType* ifq = ipLayer->interfaceQueues[0];
  int que_len = 0;
  NetworkQueueingPriorityType pri;
  for (pri = 0; pri < IP_QUEUE_NUM_OF_PRIORITIES; pri++)
    que_len += (*ifq->numberInQueueFunction)(ifq->queueUnion, pri);

  return que_len;
}

Hope this helps.

Young


On Thu, 9 Sep 2004, panneer pandi wrote:

> Hello ,
>
>   I need to know how to find out the queue size for each node in glomosim, how does the intermediate node drop the packet due to overflow? Whether there is a fixed size for queue. Is it present in the mac layer. If so in which function?
>
> Please reply.
>
>                             Thank you.
>
>
> ---------------------------------
> Do you Yahoo!?
> Shop for Back-to-School deals on Yahoo! Shopping.


_______________________________________________
manet mailing list
manet at ietf.org
https://www1.ietf.org/mailman/listinfo/manet