hi dears i still didnt get answer for my error of ns-2.31 with ubuntu On Sat, May 17, 2008 at 5:00 AM, <[EMAIL PROTECTED]> wrote:
> Send Ns-users mailing list submissions to > [email protected] > > To subscribe or unsubscribe via the World Wide Web, visit > http://mailman.isi.edu/mailman/listinfo/ns-users > or, via email, send a message with subject or body 'help' to > [EMAIL PROTECTED] > > You can reach the person managing the list at > [EMAIL PROTECTED] > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of Ns-users digest..." > > > Today's Topics: > > 1. Re: node id in c++ (Mubashir Rehmani) > 2. Re: node id in c++ (Jorge Lanza) > 3. How to place Wireless Node in flat gird (topology) of let's > say 1000 by 1000 randomly without any hierarchy? (Mubashir Rehmani) > 4. node id at the c++ code (Emmy Bernard) > 5. Re: node id at the c++ code (Emmy Bernard) > 6. measure the consumed power (mohamed Sabry) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Fri, 16 May 2008 09:17:01 +0200 > From: "Mubashir Rehmani" <[EMAIL PROTECTED]> > Subject: Re: [ns] node id in c++ > To: "anas abu_taleb" <[EMAIL PROTECTED]> > Cc: [email protected] > Message-ID: > <[EMAIL PROTECTED]> > Content-Type: text/plain; charset=ISO-8859-1 > > 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 udpagent c++ codes. > Can > > anyone provide my with the way to do that and I will be grateful. > > > > Regards > > Anas > > > > > > > > > -- > Mubashir Husain Rehmani > > M2R R?seaux et T?l?communications > L2S Sup?lec > Universit? de Paris Sud XI > > Mobile France: 00 33 (0)6 32 00 89 35 > > > ------------------------------ > > Message: 2 > Date: Fri, 16 May 2008 10:01:38 +0200 > From: Jorge Lanza <[EMAIL PROTECTED]> > Subject: Re: [ns] node id in c++ > To: anas abu_taleb <[EMAIL PROTECTED]> > Cc: ISI <[email protected]> > Message-ID: <[EMAIL PROTECTED]> > Content-Type: text/plain; charset=ISO-8859-1; format=flowed > > 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 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 > > > > > > > > > > ------------------------------ > > Message: 3 > Date: Fri, 16 May 2008 10:12:11 +0200 > From: "Mubashir Rehmani" <[EMAIL PROTECTED]> > Subject: [ns] How to place Wireless Node in flat gird (topology) of > let's say 1000 by 1000 randomly without any hierarchy? > To: [email protected] > Message-ID: > <[EMAIL PROTECTED]> > Content-Type: text/plain; charset=ISO-8859-1 > > Hi all, > > I have a question regarding node placement in flat grid. > > As we all know that there are many ways to declare node position in flat > grid like: > > 1. Using ~ns/indep-utils/cmu-scen-gen to generate scenarios but it is > specific for mobile nodes. > 2. We can declare the node position in TCL script like > $node(0) set X 12.0 > $node(0) set Y 40.0 > $node(0) set Z 0.0 > But this is not good in case if there are many nodes like 200 to 500 > nodes. > 3. We can create a loop to declare the position of nodes in our TCL script > like > #creation of topology for nodes > {set k 0} {$k < 10 } {incr k} { > for {set l 0} {$l < 10} {incr l} { > $node([expr ($k*10)+$l]) set X $k > $node([expr ($k*10)+$l]) set Y $l > $node([expr ($k*10)+$l]) set Z 0 > } > } > > But again this will put the nodes in a fixed location on grid, we can also > put a random number but i don't think so that it is a good approach. > > 4. There are different topology generation available like > http://www.isi.edu/nsnam/ns/ns-topogen.html but again I am not sure that > whether they are hierarchical or flat. > > My questions are: > > 1. Is there any way to generate the random node position (topology) of > WIRELESS STATIC NODES in a grid of let's say 1000 by 1000? > 2. Once declared, how do we get those position to get the picture of Node > topology? > > > > Thanks for all those who are giving suggestions. > Regards > > -- > Mubashir Husain Rehmani > > M2R R?seaux et T?l?communications > L2S Sup?lec > Universit? de Paris Sud XI > > Mobile France: 00 33 (0)6 32 00 89 35 > > > ------------------------------ > > Message: 4 > Date: Fri, 16 May 2008 14:25:03 +0100 > From: "Emmy Bernard" <[EMAIL PROTECTED]> > Subject: [ns] node id at the c++ code > To: [email protected] > Message-ID: > <[EMAIL PROTECTED]> > Content-Type: text/plain; charset=ISO-8859-1 > > 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, > > > ------------------------------ > > Message: 5 > Date: Fri, 16 May 2008 20:46:07 +0100 > From: "Emmy Bernard" <[EMAIL PROTECTED]> > Subject: Re: [ns] node id at the c++ code > To: [email protected] > Message-ID: > <[EMAIL PROTECTED]> > Content-Type: text/plain; charset=ISO-8859-1 > > 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, > > > ------------------------------ > > Message: 6 > Date: Fri, 16 May 2008 21:55:25 +0000 > From: mohamed Sabry <[EMAIL PROTECTED]> > Subject: [ns] measure the consumed power > To: ns help <[email protected]> > Message-ID: <[EMAIL PROTECTED]> > Content-Type: text/plain; charset="windows-1256" > > > > > > > hi,all > i couldn't know where i wrote my c++ code > and how i create a new protocol > i want to measure the power consumed using some existing protocols such as > AODV and DSR, then create anothe protocol if i can > put the first step to measure the consumed power, or the total energy for > any given protocol > i have a problem with this, have any one any knowledge about this > thanks > M.Sabry > _________________________________________________________________ > Explore the seven wonders of the world > http://search.msn.com/results.aspx?q=7+wonders+world&mkt=en-US&form=QBRE > > > > ------------------------------ > > _______________________________________________ > Ns-users mailing list > [email protected] > http://mailman.isi.edu/mailman/listinfo/ns-users > > > End of Ns-users Digest, Vol 53, Issue 16 > **************************************** >
