Mahesh schrieb: > is there anyway to find the bandwidth of a wireless node in the ns-2 (C++ ) > DSR code. And is there any way to find the bandwidth of a wireless node in > the TCL script. > > And also i need to know how to find the bandwidth of the neighboring nodes in > a wireless network in NS-2 ( C++ ) DSR code. > > I am trying to implement an admission control protocol in DSR which requires > me to find the bandwidth of a node as well as the bandwidth of the > neighboring nodes. Since i am new to ns-2, i couldn't find it. > Before you start to implement an admission control protocol you should become more familiar with the nature of wireless communication. It is a common misunderstanding that bandwidth is assigned to individual nodes. In the wireless setup you only define the transmission speed of the node. Wireless communication uses a shared medium and so a node has to share the channel access with all nodes that are within interference range. Additionally you should keep in mind that a message from one node to a target multiple hops away probably consumes bandwidth multiple times - just as an example, a message consumes bandwidth at the node when the node transmits the message, and when the neighbor and most likely the 2-hop neighbor forward it towards the destination.
btw - this question has been asked multiple times before on this list. Regards, Daniel.