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

パスワード:


パスワード紛失

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

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

No.1:どっかの巡回ロボット26
No.2:Majestic-12巡回ロボット1

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

スレッド表示 | 新しいものから 前のトピック | 次のトピック | 下へ
投稿者 スレッド
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!
スレッド表示 | 新しいものから 前のトピック | 次のトピック | トップ
Copyright c KOZO KEIKAKU ENGINEERING Inc. All Rights Reserved.
XOOPS Cube PROJECT