Re: [ns] -DDEBUG option

2008-11-05 Thread Mubashir Rehmani
Hi Farhan Hyder To debug ns do the following: 1. in the directory of tcl-debug: a) ./configure --with-tcl=path b) make clean c) make 2. in the directory of ns a) make clean b) ./configure --enable-debug --with-tcl=tcl path --with-tk=tk path --with-tcldebug=tcl-debug path c)make This TCL

Re: [ns] assigning IP address to nodes

2008-11-05 Thread Ramy Eid
Hi Marlos, I am not sure but this linkhttp://tagus.inesc-id.pt/%7Epestrela/ns2/ns2_haddr_tips.html#_Toc121548868says that the addresses must be in the X.Y.Z format ? On Wed, Nov 5, 2008 at 14:03, Marlos Marques [EMAIL PROTECTED]wrote: Hello all, Currently, I am trying to implement an

Re: [ns] assigning IP address to nodes

2008-11-05 Thread Marlos Marques
Thanks Fernando, That's Ok, the node ID is used in the simulator core. But, it is possible assign real IP addresses to the nodes (not X.Y.Z hierarchical format)? I need the IP addresses because my protocol algorithm does some calculations with them. As a matter of fact, it is not so important IP

[ns] assigning IP address to nodes

2008-11-05 Thread Marlos Marques
Hello all, Currently, I am trying to implement an application layer multicast algorithm using NS2. For this purpose I need to assign IP address to every node in NS2. I checked out the NS2 nodes may have hierarchical routing addressing which is similar to IP addressing. But, I also found the addr

Re: [ns] assigning IP address to nodes

2008-11-05 Thread Marlos Marques
Thanks Rami, I read that link too. That is the hierarchical format in NS. It is like IP addressing but not the same. It uses 3 levels of hierarchy because optimum results were found with this value (The NS Manual). But I need assign real IP addresses to the nodes because my protocol algorithm

[ns] wireless corrupted packets monitoring

2008-11-05 Thread Ramy Eid
I want to simulate a wired-cum wireless scenario adding FEC, ARQ functionality to the wireless environment. Please help me in any of these topics : 1. I added uniform error model to my mobile nodes configuration, I can not get any dropped packets. I am using *cat

Re: [ns] assigning IP address to nodes

2008-11-05 Thread Sidney Doria
The best of NS-2 is its flexibility. If you didn't find a trivial solution to assign a simple IP to a node, you can add a new attribute to an inherited class of node. You can simply bind this new attribute in your TCL script and assign what IP you want on the node you want. The new atrribute can

Re: [ns] assigning IP address to nodes

2008-11-05 Thread Arturo Servin
If you are working with your code in TCL may be you can make a map Node_ID (from ns) to an IP address in your TCL script. If you are working in C++ you can do what Sidney proposes. Either way you have a way to do it, may be not trivial but definitely possible. -as

Re: [ns] assigning IP address to nodes

2008-11-05 Thread Marlos Marques
Thank you very much guys. I was considering if those structures exist in NS, in some way they are ready for use. I wouldn't like to reinvent the wheel :) So, any link/example/source would be *much* appreciated. Thanks again. []s, Marlos. On Wed, Nov 5, 2008 at 1:29 PM, Arturo Servin [EMAIL

[ns] Get node positions in C++

2008-11-05 Thread Ivanovich Medeiroa
Hi everyone, I am developing a wireless application and I need to get the X, Y and Z node positions. How can I do that? Example of my OTcl code: set ns [new Simulator] ... $node(0) set X_ 10.0 $node(0) set Y_ 20.0 $node(0) set Z_ 0.0 ... How can I get these values in the C++ (my application)

Re: [ns] Get node positions in C++

2008-11-05 Thread Mubashir Rehmani
Hi Ivanovich Medeiroa You can get the node location in your c++ by using the following code: double x,y,z; Node* srcnode = 0 ; srcnode = Node::get_node_by_address(2); //put here the node id MobileNode* tmnode = (MobileNode*)srcnode; tmnode-getLoc(x, y, z); coutNode Location : x yendl; Hope it

[ns] probabilistic modeling between wireless nodes

2008-11-05 Thread Fry Godwin
Hi All, Just want to confirm something. I have gone through the forum and documentation and it seems that in order to model the wireless link between two nodes probabilistically ( e.g if node A sends 100 packets to node B , node B would only receive a percentage of the packets sent say 85% )

[ns] creating malacious nodes

2008-11-05 Thread sriram balakrishnan
-- Forwarded message -- From: sriram balakrishnan [EMAIL PROTECTED] Date: Thu, Nov 6, 2008 at 8:18 AM Subject: creating malacious nodes To: ns-users@isi.edu any idea how to make a specific node drop packets irrespective of routing protocol -- B Sriram India mob : 09733706981