[ns] multiple udp packets being sent at the same time

2009-06-17 Thread Mathiew Moussa
Hi guys. I've been trying to simulate a wireless network. I created a udp agent and attached it to multiple nodes and a cbr for each node as well. For some unknown reasons every source is sending the same packet at the SAME time about 10 times. There are no loops no nothing its just being

Re: [ns] help with assigning cbr connections

2009-06-02 Thread Mathiew Moussa
%s, Fixed); tcl.eval(); OR tcl.evalf(%s request %d %d, name_, sender, msgid); hope this will help!! (I am not sure, but I think this will work) regards, Kavan Sheth DA-IICT India On Mon, Jun 1, 2009 at 7:56 PM, Mathiew Moussa mm...@aub.edu.lb wrote: Hi All, I am implementing

Re: [ns] can't read Node_(20): no such variable

2009-04-03 Thread Mathiew Moussa
Hello Mahamadou, In your TCL script check for the number of nodes you have set initially and then check where you defined each node's X, Y, Z coordinates. you might have listed the coordinates of the nodes from Node 0 till node 20 and initialized the nn (number of nodes) to 20 which is

[ns] How to generate a topology in ns2

2009-03-23 Thread Mathiew Moussa
Dear Friends, How does one generate a topology of non-uniformly placed nodes, by non-uniform i mean that in some locations of the network alot of nodes are close and on other parts they are few and scattered. Of course I would need to know how to generate a topology in the first place, so

Re: [ns] Neighbor List for Wireless Nodes

2009-02-24 Thread Mathiew Moussa
Hello Mayank, The Link Below is for a thread between me and fellow NS users about almost the same query. I hope its helpful. http://www.nabble.com/How-to-get-the-Nodes'-coordinate-from-TCL-to-C%2B%2B-td21599457.html Regards, Mathiew Quoting Mayank Daga dagamay...@gmail.com: Dear All, I

Re: [ns] How to get the Nodes' coordinate from TCL to C++

2009-01-30 Thread Mathiew Moussa
Hi Samira, I had the same question and i got the following reply from Mr. Keven Sheth that turned out to be useful. What he answered specifically is how to calculate the distances between to nodes, which uses the coordinates of the nodes by accessing them from struct mb_node in file

[ns] NS2 isn't cleaning the .o files with make clean, why ?

2009-01-28 Thread Mathiew Moussa
Hello Guys, This is the weirdest thing that has happened with me till now. I added a piece of code to one of the c files and intentionally added an error to see whether ns2 was registering it or not. After doing make clean -- configure -- make, no error appeared, as if i hadn't added

Re: [ns] How to get the Nodes' coordinate from TCL to C++

2009-01-28 Thread Mathiew Moussa
::instance()-getdistance(i,k) noendl; } } coutendl; } cheers Kavan On Mon, Jan 26, 2009 at 1:28 PM, Mathiew Moussa mm...@aub.edu.lb wrote: Hello Walid, Thanks for replying. Here's the deal : im trying to simulate a WSN with nodes that are not mobile. In a topology.tcl file i

Re: [ns] How to get the Nodes' coordinate from TCL to C++

2009-01-26 Thread Mathiew Moussa
, 2009 at 11:48 AM, Mathiew Moussa mm...@aub.edu.lb wrote: Hello Walid, Thanks for the reply. You said getting the coordinates from the TCL file easier... i have them stored in a topography.tcl file (or so i recall) that has the X Y Z coordinates of each sensor. So what's the way to get them

[ns] How to get the Nodes' coordinate from TCL to C++

2009-01-22 Thread Mathiew Moussa
Dear NS Users, Can someone please tell me how you can retrieve the coordinates of the network nodes from a TCL file into C++. So is their some loop or something that can be written in C++ and traverses all the nodes and gets X, Y, Z, and how is it written. Hope you can help me. Thanks,

Re: [ns] How to get the Nodes' coordinate from TCL to C++

2009-01-22 Thread Mathiew Moussa
know what exactly you are doing. Hope this helps -- Waleed On Thu, Jan 22, 2009 at 9:59 AM, Mathiew Moussa mm...@aub.edu.lb wrote: Dear NS Users, Can someone please tell me how you can retrieve the coordinates of the network nodes from a TCL file into C++. So is their some loop

[ns] How to Simulate WSNs in NS2

2008-11-13 Thread Mathiew Moussa
Hi Guys. I want to implement an algorithm for Wireless Sensor Networks (IEEE 802.15.4)in NS2. I don't know what protocol to use at the MAC layer, there's no such implementation of IEEE 802.15.4 in NS2! i tried using SMAC (already in NS2, inteneded for the use of WSNs) but it was goiving

[ns] a note that appears while runnnig SMAC !!

2008-11-12 Thread Mathiew Moussa
Hello All, hope you guys are doing fine. When I simulate the smac protocol on top of GPSR (a routing protocol for WNSs), I get the following output: __ num_nodes is set 50 warning: Please use -channel as shown in tcl/ex/wireless-mitf.tcl GPSR configuration file INITIALIZE

[ns] How to disable a mobileNode's movement

2008-11-11 Thread Mathiew Moussa
Hello, If i have an implementation that uses NS2's mobileNode's implementation and i decided that without changing the whole class i just want to make all the mobileNode NOT move. How does one do that, do you change the speed to ZERO ??? Thanks, Mathiew

[ns] Need Simulation for WSNs (802.15)

2008-11-10 Thread Mathiew Moussa
Hi All, I've seen some implementations for WSNs in NS2 such as gpsr but it uses 802.11 as a MAC. I was wondering if anyone has any idea of the best package to use for simulating WSNs (its better if it functions over 802.15 which i know is implemented in the SMAC accompanying ns2). You're help

Re: [ns] Need Simulation for WSNs (802.15)

2008-11-10 Thread Mathiew Moussa
to the sensors. Any Idea guys ? Thanks. Mathiew Quoting Davide [EMAIL PROTECTED]: i'm working on different network (wired) but i know that the mac protocol 8021.15.4 is implemented in ns2 Davide 2008/11/10 Mathiew Moussa [EMAIL PROTECTED]: Hi All, I've seen some implementations for WSNs in NS2

[ns] What is Packet Interval !!

2008-10-27 Thread Mathiew Moussa
Hi All ns-users, Does anyone know what Packet Interval in NS2 is and WHERE can when change it. you see im using the SMAC and it was giving me an error Couldn't Schedule Timer after i ran my TCL script .. I got an answer from one of the guys that it might possibly have to do with the packet

Re: [ns] What is Packet Interval !!

2008-10-27 Thread Mathiew Moussa
2008-10-27 发件人: Mathiew Moussa 发送时间: 2008-10-27 16:34:13 收件人: ns-users@ISI.EDU 抄送: 主题: [ns] What is Packet Interval !! Hi All ns-users, Does anyone know what Packet Interval in NS2 is and WHERE can when change it. you see im using the SMAC and it was giving me an error Couldn't

[ns] Error: Couldn't Schedule Timer

2008-10-07 Thread Mathiew Moussa
Hello All, I have this GPSR package that was implemented with a IEEE 802.11 . i change the Mac to SMAC and got the Couldn't Schedule Timer after i ran my TCL script .. Does anyone have an idea what the error refers to and how i can FIX IT. Ur help is appreciated. Mathiew