Re: [ns] reading a variable in aodv.cc from channel.cc and channel.h

2014-07-11 Thread Behnaz Bostanipour
Hi, It's a segmentation fault since you create an uninitilized object WirelessChannel *tifp in your aodv class and after you call your function for this null object. Note that segmentation fault usually occurs when you call a function for a null object. Thus, you should first initialize

Re: [ns] How noise_floor_ is chosen for 802.11a

2013-07-02 Thread Behnaz Bostanipour
Hello, I have recently received many emails sent only to my email address and not to ns-users mailing list, with questions regarding ns-2. I would like to clarify this once for all: please send your emails only to ns2 mailing list and stop spanning specific users like me Ns2- mailing

Re: [ns] MTU handling for 802.11 in NS2

2013-06-30 Thread Behnaz Bostanipour
Hello, The default size of udp packets is defined in  ̃/ns /tcl/lib/ns-default.tcl as 1000 bytes. Now, when udp receives a CBR packet it does this (Look at   ̃/ns/apps/udp.cc): void UdpAgent::sendmsg(int nbytes, AppData* data, const char* flags) { Packet *p; int n;

Re: [ns] received signal power

2013-06-27 Thread Behnaz Bostanipour
Hello, It's called P_r and is usually calculated using a propagation model such as Two Ray Ground or shadowing. You can find more details in the ns manual chapter radio propagation. Best, Behnaz On Jun 27, 2013, at 10:51 PM, Fatma LOUATI fatma.lou...@gmail.com wrote: hi ns-users, How can

Re: [ns] received signal power

2013-06-27 Thread Behnaz Bostanipour
2013/6/27 Behnaz Bostanipour behnaz.bostanip...@unil.ch Hello, It's called P_r and is usually calculated using a propagation model such as Two Ray Ground or shadowing. You can find more details in the ns manual chapter radio propagation. Best, Behnaz On Jun 27, 2013, at 10:51 PM, Fatma

[ns] what is antenna gain unit in ns2?

2013-04-24 Thread Behnaz Bostanipour
Hello, In ns2, default.tcl we have : Antenna/OmniAntenna set Gt_ 1.0 Antenna/OmniAntenna set Gr_ 1.0 what is the unit of the gain? watts or dBm? Thanks, Behnaz

[ns] reference distance for Shadowing propagation model

2013-02-20 Thread Behnaz Bostanipour
Hello, By default the reference distance for shadowing model is 1. Which I suppose is 1meter. I read the manual but it is not still clear to me how we choose distance? and How does it influence the reception power. Thanks for your reply in advance, Behnaz

[ns] Create circular random topology for ad hoc wireless

2013-02-18 Thread Behnaz Bostanipour
Hello, I would like to place randomly 1800 wireless nodes in a circle of radius 600m. How could I generate a circular random topology like this? I would appreciate your reply, Thanks, Behnaz

[ns] BonnMotion and MAC-OS

2013-02-11 Thread Behnaz Bostanipour
Hi, Just a question : have anybody tried to install and use BonnMotion on a MAC-OS. Thanks, Best, behnaz

[ns] Nakagami, shadowing or Rayleigh RF model?

2013-02-07 Thread Behnaz Bostanipour
Hello, Which RF model among one shadowing, Nakagami or Rayleigh are better for MANETs simulation in indoor and outdoor simulations? As I understood Nakagami is better for mobility situations and Vanet scenarios, but I do not know the exact difference between these models. Also I saw that

[ns] How noise_floor_ is chosen for 802.11a

2013-02-05 Thread Behnaz Bostanipour
Hello, I would like to use an implementation of 802.11a which can be found in file IEEE802-11a.tcl, under the directory: .../ns-allinone-2.35/ns-2.35/tcl/ex/802.11 This implementation uses Phy/WirelessPhyExt and Mac/802_11Ext of ns2. So, I read the documentation about 802.11a standard and

[ns] Is 802.11 multi rate only used for unicast in dei80211mr-1.1.4/nsmiracle?

2013-01-23 Thread Behnaz Bostanipour
Hello all, I read somewhere that most network cards use multirate only in unicast mode and for broadcast they use only the basic rate (i.e., 1 or 2 Mbps in 802.11b/b+g, 6Mbps in 802.11a/g). Is it the case if in dei80211mr-1.1.4/nsmiracle implementation. I would really appreciate your reply,

[ns] Parameters of 802.11Ext to simulate 802.11 b/g

2013-01-23 Thread Behnaz Bostanipour
Hello, In ns2.35/tcl/ex/IEEE.802-11.a.tcl, we have the parameters to simulate 802.11a with 802.11Ext module. As I read in documentations of 802.11Ext, the parameters for 802.11 b/g should be set by the user. Below is the content of EEE.802-11.a.tc, I wonder if it is sufficient to only

[ns] Simulate 802.11b or g

2013-01-21 Thread Behnaz Bostanipour
Hi, Does any body have an example of how should I put the parameters of Mac-802_11Ext or Mac_802_11 to implement 802.11 b or g? I know that some patch written for this in ns-miracle but it seems complicated to use. Thanks, Behnaz

[ns] Shadowing propagation model

2012-12-18 Thread Behnaz Bostanipour
Hi all, As far as I understood we can use the shadowing propagation model for wireless simulation only with Mac/802_11Ext and not with Mac/802_11. Am I right? Thanks, behnaz

[ns] Code example of using Mac/802_11Ext

2012-12-18 Thread Behnaz Bostanipour
Hi All, Has any one a model of using Mac/802_11Ext? Thanks, Best, Behnaz

[ns] Patch to install NS2.35 to Mac OS(Lion)/Mountain Lion

2012-12-17 Thread Behnaz Bostanipour
Hello, Just by a deeper search you could find the link for the patch since it has been posted in this forum by me many times until now (last time was last week). So, I guess I send it for the very last time: http://old.nabble.com/file/p34431582/install.osx.patch you can find the instructions

[ns] PriQueue queueing delay

2012-12-10 Thread Behnaz Bostanipour
Hi friends, Is there a formula to calculate packet delay in a prioritized queue of a mobile node? I mean if a CBR connected to UDP, sends a pocket at rate r to a PriQueue, what is the queuing delay? I know that a queue can only send down a packet if (in this cases) the underlying MAC 802.11

Re: [ns] problem in ns2.35 installation

2012-12-05 Thread Behnaz Bostanipour
Hello, 1) Please send your questions to the ns mailing list and not only to a specific user (in this case not only to me). So please do not repeat this. 2) There was a whole discussion regarding this problem in the mailing list, so I do not know which part of the discussion you have found,

Re: [ns] Schedule the backoff timer in mac-802_11

2012-12-05 Thread Behnaz Bostanipour
Itishi - No, ack mechanism in 802.11 DCF is used for unicast packets, in this code we are faced to mac broadcast, and there is no ack mechanism for mac broadcast regardless of version of ns2. M. Falahati - i am also working on mac-802.11, the code is very complicated, as I understood :

[ns] call-back from mac-802.11.cc to interface queue

2012-12-03 Thread Behnaz Bostanipour
Hi all, As I checked in mac-802.11.cc, it seems that interface queue only sends one packet at a time to MAC 802.11 (but i am not 100% sure) and it waits to dequeue and send the next packet to 802.11 MAC until a callback is triggered by mac-802.11. So the call back is triggered by mac-802.11

Re: [ns] Default Channel bandwidth in 802.11?

2012-12-03 Thread Behnaz Bostanipour
you to study how Mac802_11::txtime(double psz, double drt) function works in mac-802.11.cc Good Luck. rgds Saravanan K On Sun, Dec 2, 2012 at 1:02 PM, Behnaz Bostanipour behnaz.bostanip...@unil.ch wrote: Hello, I would like to calculate transmission time (tx_time

[ns] Default Channel bandwidth in 802.11?

2012-12-02 Thread Behnaz Bostanipour
Hello, I would like to calculate transmission time (tx_time) for packets sent by CMU MAC 802.11. Usually we have tx_time=packet size/channel bandwidth. I looked in the ns-default.tcl file and I have found this value: Phy/WirelessPhy set bandwidth_ 2e6 Is this the value used for calculation

Re: [ns] Default Channel bandwidth in 802.11?

2012-12-02 Thread Behnaz . Bostanipour
, Behnaz Bostanipour behnaz.bostanip...@unil.ch wrote: Hello, I would like to calculate transmission time (tx_time) for packets sent by CMU MAC 802.11. Usually we have tx_time=packet size/channel bandwidth. I looked in the ns-default.tcl file and I have found this value: Phy

Re: [ns] how to get value from .cc file to tcl script?????

2012-11-26 Thread Behnaz . Bostanipour
Hi, Tcl tcl=Tcl::instance(); tcl.resultf(%1.1f,value); where resultf(const char* fmt,...) uses the C++ format “fmt” of printf to passe a string to the TCL interpreter. There are other functions similar to resultf. I am sure you can find them easily on the Web. Best, Behnaz - Original

Re: [ns] Error Model

2012-11-25 Thread Behnaz . Bostanipour
Hello, Personally I have not seen the use of Error Models in Wireless Networks. I thought that they are only used for modeling transmission error in wired networks. As I am also working on wireless networks, that would be nice if you could send me the link for a wireless example in which an

Re: [ns] Fragmentation in SMAC

2012-11-19 Thread Behnaz . Bostanipour
Hi, I do not know anything about SMAC, but usually if you have a UDP agent connected to your CBR application, the fragmantation is done by UDP. So, a UDP packet is by default 1000 bytes. if your CBR sends less than 1000 bytes to UDP, the CBR bytes are put in one UDP packet and the packet is sent

[ns] Implement a key-value list in TCL

2012-11-13 Thread Behnaz Bostanipour
Hi, I need to make a key-value list in TCL (where key is the time and value is the (x,y) coordinates of a mobile node). However the command keyless of the tclX does not recognized in NS2 environment and I can not use keyed list structure of tclX. Do you have a code example or implementation

[ns] Where is the tcl implementation of FTP or CBR?

2012-11-07 Thread Behnaz . Bostanipour
Hi all, Sorry for this easy question but I always have the same problem when I want to find c++ or tcl implementation of an ns2 element. Is there any source where I can find the path of classes? For instance, in which directory is the TCL class for FTP or CBR? Thanks in advance, Behnaz

[ns] one hop Wireless Broadcast of CBR packets

2012-11-06 Thread Behnaz . Bostanipour
Hello, I would like a source node (n0) to broadcast CBR packets via UDP to 1 hop neighbors (n1,n2) in a wireless dhoc network. I've tried the following solution: One way, could be to attach the source to each destination as below: set udp1 [new Agent/UDP] $ns attach-agent $n0 $udp1 set

Re: [ns] what is the meaning of HDR_CMN?

2012-11-05 Thread Behnaz Bostanipour
Hi, It is the common header for NS2 packets. I would suggest that you read the ns2 manual or look here : http://nile.wpi.edu/NS/ for this type of questions. Best, Behnaz On Nov 5, 2012, at 1:39 PM, shiny shiny@gmail.com wrote: hi frndz, what is the meaning of HDR_CMN? where this

[ns] Broadcast a UDP packet using 802.11 MAC layer broadcast

2012-11-05 Thread Behnaz Bostanipour
Hello, I would like a source node (n0) to broadcast CBR packets via UDP to 1 hop neighbors (n1,n2) in a in a wireless dhoc network. One way, could be to attach the source to each destination as below: set udp1 [new Agent/UDP] $ns attach-agent $n0 $udp1 set src1 [new

Re: [ns] Error while installing NS2.35 to Mac OS(Lion)

2012-10-05 Thread Behnaz Bostanipour
direct me to the patch or post it again? Would be grateful. NAmanquah Tom Henderson-2 wrote: On 08/08/2012 11:49 PM, Behnaz Bostanipour wrote: Hi all, I've downloaded ns-allinone-2.35 and extracted into the directory /Users/username/ (where username refers to my username on my

Re: [ns] ns 2.35/4 on MAC OS Mountain Lion (10.8)

2012-10-01 Thread Behnaz Bostanipour
Actually, the first line of the content of my .profile was truncated in the email, so here it is again: export PATH=$PATH:/Users/behnaz/ns-allinone-2.35/bin:/Users/behnaz/ns-allinone-2.35/tcl8.5.10/unix:/Users/behnaz/ns-allinone-2.35/tk8.5.10/unix:/Users/behnaz/ns-allinone-2.35/nam-1.15/bin

Re: [ns] ns 2.35/4 on MAC OS Mountain Lion (10.8)

2012-09-30 Thread Behnaz Bostanipour
Hi, see this (works for both lion and mouton lion): http://old.nabble.com/build-nam-on-mac-OSx-td34431429.html Here is the url for the patch: http://old.nabble.com/file/p34431582/install.osx.patch Best, Behnaz On Sep 30, 2012, at 12:08 PM, bcaceiro bcace...@gmail.com wrote: Hello

Re: [ns] NS2 development using Xcode IDE

2012-09-06 Thread Behnaz Bostanipour
, Behnaz On 5 sept. 2012, at 16:06, Stephan Lorenz wrote: see: http://mailman.isi.edu/pipermail/ns-users/2011-February/069537.html On Wed, Sep 5, 2012 at 9:14 AM, Behnaz Bostanipour behnaz.bostanip...@unil.ch wrote: Hello, Has anybody used Xcode IDE for developing and running ns2 code

[ns] NS2 development using Xcode IDE

2012-09-05 Thread Behnaz Bostanipour
Hello, Has anybody used Xcode IDE for developing and running ns2 code on MAC OS? It would be nice to present a source that explains how one can do it. Thanks in advance, RGDS, Behnaz

Re: [ns] ns-2.34 validation tests fail (64bit-processor)

2012-08-30 Thread Behnaz Bostanipour
Hello Tom, Thanks for your reply. I put some comments on your email below: On 30 août 2012, at 16:13, Tom Henderson wrote: On 08/29/2012 06:50 AM, behnaz.bostanip...@unil.ch wrote: I'm not able to reproduce that error, so I would like to see some examples of the diffed output. Would

[ns] Fwd: ns-2.34 validation tests fail (64bit-processor)

2012-08-29 Thread Behnaz Bostanipour
simulations if I these models do not work properly on my machine? Thanks in advance for your reply, Kind regards, Behnaz Begin forwarded message: From: Behnaz Bostanipour behnaz.bostanip...@unil.ch Subject: Re: [ns] ns-2.34 validation tests fail (64bit-processor) Date: 10 août 2012 16:53:33

Re: [ns] ns-2.34 validation tests fail (64bit-processor)

2012-08-29 Thread Behnaz Bostanipour
On 29 août 2012, at 15:00, Tom Henderson wrote: Could you please send the full validate output? It seems like the file you sent is truncated at 2204 lines. Thanks for your reply. I opened this one in my texShop and it has 7167 lines. Best, Behnaz

[ns] ns-2.34 validation tests fail (64bit-processor)

2012-08-09 Thread Behnaz Bostanipour
Hello, I successfuly installed ns2.34 on a MacOS(Lion). My Mac is a (Core i7-64bit processor). When I execute ./validate and these tests fail: validate overall report: some portable tests failed: ./test-all-newreno ./test-all-sack ./test-all-tcpOptions ./test-all-tcpLinux

[ns] Error while installing NS2.35 to Mac OS(Lion)

2012-08-09 Thread Behnaz Bostanipour
Hi all, I've downloaded ns-allinone-2.35 and extracted into the directory /Users/username/ (where username refers to my username on my Mac). Then, I run ./install and it fails to build OTcl-1.14, as you can see below: * Build