Japan QualNet Community Forums Japan QualNet Community Forums
Welcome Guest 
ログイン
ユーザ名:

パスワード:


パスワード紛失

新規登録
検索
メインメニュー
アクセスカウンター
2024/04/29:8/8
2024/04/28:16/23

2024/02/29より289/1375
人気モジュール
No.1: フォーラム 17
日曜日からの合計
人気Browser&OS
No.1:巡回ロボット24

No.1:どっかの巡回ロボット24

日曜日からの合計
メイン
   Routing Protocols Implementation & Model Development
     Finding Queue length
投稿するにはまず登録を

題名 投稿者 日時
   Finding Queue length amitkumar 2013/5/7 13:31
   » Re: Finding Queue length chackn 2013/5/7 16:03
フラット表示 前のトピック | 次のトピック
投稿者 スレッド
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!
フラット表示 前のトピック | 次のトピック
Copyright c KOZO KEIKAKU ENGINEERING Inc. All Rights Reserved.
XOOPS Cube PROJECT