Hello all,
Does anyone know how to get node Id from TCL side?
It is possible to hold node ID when it is created since ns-2 starts
assigning node from 0, but as I have several nodes I want to access at some
point during simulation.
There is something like srcId_ and dstId_ in Queue-monitor, are th
Hi,
In wired network ... how do I get the node id at certain timeIn other
words, I'm adding block of code in droptail.cc and I need to perform
some action for certain node in the topology.
I have tried :
Node * node= Node::get_node_address (1)
int nodeNumber =node->nodeid_;
It is not w
Dear friend,
Try to use printf statement. i.e. *printf("src_node_id:%d",index);*
You can also print the destination id at the same time by *
printf("src_node_id:%d\t**dst_node_id:%d**",index,dst);*
If you add this line in the AODV::sendRequest function then, you will be
having information regar
Hello ,
I am using NS2 simulator. Right now i am working on AODV protocol. My
scenario is a simple one with 3 nodes. What i want is to display the each
node id on command line to understand the sequence of the packets (RREQ,
RREP and RERR) generation when i run the command "ns myfile.tcl" on
com
Hi,
I 'm modifying the UDP.cc code and I want to check at certain time in which
node the packet in? I tried to use the source (src_) of the ip header
however, it printed the source of the original packet. In other words, in
the following example:
A---BC A sends to C packets
Hello,
In aodv.cc i dont find the fonction that give the node id.
The best
Lyx
Thank you for the answers, what i need exactly is to intercept packets in
intermediate nodes and do some changes on them.
this means if a packet is at node x i need to know x and other information
about the packet it self.
Emmy,
hi all,
Please, can you tell me how can i get the node id of an intermediate node,
the id of the sender of a CBR packet and the sequence number of that packet
in an intermediate node in the mac_802.11 source code.
Thank you, as a beginner i hope can get some help here to start
Emmy,
This is what I do in my agent (I'm not an expert ;))
int nodeid = -1;
Node* thisnode = Node::get_node_by_address(addr()); // here you
if (thisnode) {
nodeid = node->nodeid();
}
Hope it helps.
Jorge
At 15/05/2008 23:30, anas abu_taleb wrote:
> Hi all
>
> I am trying to get the
Hi,
Yes you can get the node ID through this code
Total number of Nodes: God::instance()->nodes();
Node ID: Node::nodeid();
Don't forget the include God.h
Hope it works
Regards
2008/5/15 anas abu_taleb <[EMAIL PROTECTED]>:
>
> Hi all
>
> I am trying to get the node id in the aodv and the u
Hi all
I am trying to get the node id in the aodv and the udpagent c++ codes. Can
anyone provide my with the way to do that and I will be grateful.
Regards
Anas
Dear All,
In the case of collision over a network, how can we find a reference to the
current node? or how can we know if the colliding node is the current node
or not?
Thanks.
12 matches
Mail list logo