![]() ![]() ![]() | 投稿するにはまず登録を |
スレッド表示 | 新しいものから | 前のトピック | 次のトピック | 下へ |
投稿者 | スレッド |
---|---|
amitkumar | 投稿日時: 2013/5/7 13:31 |
新米 ![]() ![]() 登録日: 2013/4/7 居住地: 投稿: 2 |
Finding Queue length hello, i am using AODV as my routing protocol and i want to use queue vacancy as an metric for routing. however i am unable to debug, when and how a received packet is added into the input queue and how an outgoing message is added and removed from the queue.
any help would be really appreciated. |
chackn | 投稿日時: 2013/5/7 16:03 |
常連 ![]() ![]() 登録日: 2005/5/13 居住地: Kanagawa, Japan 投稿: 61 |
Re: Finding Queue length Hello,
As you may know, AODV has its own queue. Thus, you may find the code manipulating the queue in the source file "routing_aodv.cpp". I looked through the source file and found the following functions. (1)AodvInsertBuffer() This function is used to queue a data packet into AODV message buffer(input queue) when the route to the destination is not available. (2)AodvGetBufferedPacket() This function is used to retrieve a data packet from AODV message buffer. The data packet retrieved from the buffer will be sent to the next hop towards destination. Referring to the code text of two functions above, you can easily find how to detect vacancy status of the message buffer. Note that each node has only one queue and it consists of messages have different destinations. So, you need to filter messages in the queue when counting up the number of messages for a specific destination. Good luck! |
スレッド表示 | 新しいものから | 前のトピック | 次のトピック | トップ |