[ns] node Id from queue monitor

2012-08-04 Thread Dejene B.
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

[ns] node id

2012-05-29 Thread Mohammed Alenezi
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

Re: [ns] Node ID display in aodv

2011-11-09 Thread Pathik Shah
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

[ns] Node ID display in aodv

2011-11-09 Thread shoaib saleem
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

[ns] Node ID

2011-04-14 Thread Mohammed Alenezi
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

[ns] node id

2010-04-03 Thread Lyx
Hello, In aodv.cc i dont find the fonction that give the node id. The best Lyx

Re: [ns] node id at the c++ code

2008-05-16 Thread Emmy Bernard
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,

[ns] node id at the c++ code

2008-05-16 Thread Emmy Bernard
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,

Re: [ns] node id in c++

2008-05-16 Thread Jorge Lanza
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

Re: [ns] node id in c++

2008-05-16 Thread Mubashir Rehmani
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

[ns] node id in c++

2008-05-15 Thread anas abu_taleb
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

[ns] Node ID

2006-02-01 Thread Catherine Mackenzi
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.