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

パスワード:


パスワード紛失

新規登録
検索
メインメニュー
アクセスカウンター
2024/05/15:12/15
2024/05/14:20/24

2024/03/16より392/1401
人気モジュール
No.1: フォーラム 66
No.2: ニュース 2
No.3: QualNet概要 1
日曜日からの合計
人気Browser&OS
No.1:巡回ロボット50
No.2:Unknown OS1

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

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

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