[ns] Ns-users Digest, Vol 53, Issue 16
muazzam ali
khattakmuazzam at gmail.com
Sat May 17 02:13:15 PDT 2008
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, <ns-users-request at isi.edu> wrote:
> Send Ns-users mailing list submissions to
> ns-users at isi.edu
>
> 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
> ns-users-request at isi.edu
>
> You can reach the person managing the list at
> ns-users-owner at isi.edu
>
> 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" <mshrehmani at gmail.com>
> Subject: Re: [ns] node id in c++
> To: "anas abu_taleb" <anas_h_82 at yahoo.com>
> Cc: ns-users at ISI.EDU
> Message-ID:
> <ee77fa130805160017o56deffefua7fb587d57c9b1a8 at mail.gmail.com>
> 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 <anas_h_82 at yahoo.com>:
>
> >
> > 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 <jlanza at tlmat.unican.es>
> Subject: Re: [ns] node id in c++
> To: anas abu_taleb <anas_h_82 at yahoo.com>
> Cc: ISI <ns-users at ISI.EDU>
> Message-ID: <482D3F62.9040107 at tlmat.unican.es>
> 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" <mshrehmani at gmail.com>
> Subject: [ns] How to place Wireless Node in flat gird (topology) of
> let's say 1000 by 1000 randomly without any hierarchy?
> To: ns-users at ISI.EDU
> Message-ID:
> <ee77fa130805160112t76255076odd3df79deafc2603 at mail.gmail.com>
> 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" <emmii85 at gmail.com>
> Subject: [ns] node id at the c++ code
> To: ns-users at ISI.EDU
> Message-ID:
> <d3ad85d30805160625m3b53813emcfa24df935b101bf at mail.gmail.com>
> 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" <emmii85 at gmail.com>
> Subject: Re: [ns] node id at the c++ code
> To: ns-users at ISI.EDU
> Message-ID:
> <d3ad85d30805161246q6b789e1dpda7a9efee48488fb at mail.gmail.com>
> 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 <mohamedsabry83 at hotmail.com>
> Subject: [ns] measure the consumed power
> To: ns help <ns-users at ISI.EDU>
> Message-ID: <BAY114-W4997097B47536D5FDADC95D8C80 at phx.gbl>
> 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
> Ns-users at isi.edu
> http://mailman.isi.edu/mailman/listinfo/ns-users
>
>
> End of Ns-users Digest, Vol 53, Issue 16
> ****************************************
>
More information about the Ns-users
mailing list