[ns] how to know (or measure) the carrier sensing range of a node in practice

2012-07-30 Thread Wei Zhang



Hi All,

In NS2, we set the carrier sensing range of a node, for example:
Phy/WirelessPhy set CSThresh_ 9.77249e-11 // the carrier sense range is 450m

Could anybody tell me how to know (or measure) the carrier sensing range of a 
node in practice? It is already set on a node?


Thank you in advance,Wei





[ns] script for energy consumption

2012-05-14 Thread Wei Zhang

Hello All,

I need script file to calculate energy consumption and lifetime. Could anybody 
send me it?

Thank you in advance.
Wei





[ns] script for network life time

2012-02-26 Thread Wei Zhang

Hello All,

I need script file to calculate network life time. Could anybody send me it?

Thank you in advance.
Wei





[ns] Error of Installation of AOMDV in ns2.33

2011-11-21 Thread Wei Zhang



Hello All,

I tried to install NS-2.33-AOMDV-Multiple-Interface
patch in
ns-allinone-2.33  from website
http://mohittahiliani.blogspot.com/2011/07/modified-aomdv-with-multiple-interface.html. 
I followed the instructions above in this blog (Paste
the downloaded patch in ns-allinone-2.33 folder; Give the following
command: 
patch -p1  NS-2.33-AOMDV-Multiple-Interface.patch).

When i given ./install i had the following error:

trace/cmu-trace.o: In function `hdr_aomdv::access(Packet const*)':
cmu-trace.cc:(.gnu.linkonce.t._ZN9hdr_aomdv6accessEPK6Packet+0x7): undefined 
reference to `hdr_aomdv::offset_'
collect2: ld returned 1 exit status
make: *** [ns] Error 1
Ns make failed!

Could anybody please help me soon?

Thanks in advance.

Wei




[ns] How to to set the pause time of node in TCL script

2011-07-28 Thread Wei Zhang

Hello All,



I would like you help me to set the pause time of node in TCL script.





I try the following code but it has error: setdest –n num
nodes –p pause time –s speed –t Time –x
x –y y





I can only set the speed and coordinate and it is ok:





$ns_ at 10 $node_(0) setdest  300 680 5





Please help me soon.





Thank you in advance.





Wei




[ns] Ask for Tcl script for TCP connection

2011-06-13 Thread Wei Zhang

Hello All,




Could anybody please tell me:

How to set up a size of packet, data rate in TCP
connection in TCL script? What are the most important parameters in TCP 
connection.
How to set up all bandwidths between nodes as 5.5Mbps?


 If you have got a good Tcl script for TCP connection? Please send me soon.





Thank you in advance.





Wei





[ns] Error when testing DSR in NS2 with more than 10 nodes

2011-05-24 Thread Wei Zhang

Hello All,

I use Ns2.33 to run DSR. I cannot know why I test DSR with more than 10 nodes  
it has an error
error of segment
Could you please explain me why?  If you have a
tcl script that run DSR well please send me.

Thank you in advance.
Wei




[ns] Set environment in Ns2

2011-03-07 Thread Wei Zhang


Hello All,



Could anybody tell me how to set 



 

 

The
distributed coordination function (DCF) of IEEE 802.11 for wireless
LANs


in NS2 to run AODV, DSR? It is default when installing Ns-allinone2.33?



Thank you in advance.



Wei





  


[ns] script(TCl file) for DSR

2011-02-28 Thread Wei Zhang

Hello All, 





I need  a script(TCl file) for DSR . Could anybody please send me?





Thank you in advance.



Wei




  


[ns] install ns2.29.3 in ubuntu 8.04, please help me

2010-11-20 Thread Wei Zhang



Hi All,
 
I install ns2.29.3 in ubuntu 8.04 as follows:
 
1) run
 
# sudo apt-get install build-essential
# sudo apt-get install tcl8.4 tcl8.4-dev tk8.4 tk8.4-dev
# sudo apt-get install libxmu-dev libxmu-headers

2) ./install
 
3) in ./bashrc file i add:
export PATH=$PATH:/home/wei/ns-allinone 
2.29/bin:/home/wei/ns-allinone-2.29/tcl8.4.11/unix:/home/wei/ns-allinone-2.29/tk8.4.11/unix
export TCL_LIBRARY=$TCL_LIBRARY:/home/wei/ns-allinone-2.29/tcl8.4.11/library
export 
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/wei/ns-allinone-2.29/otcl-1.11:/home/wei/ns-allinone-2.29/lib

when i run ns-allinone2.29/ns2.29/tcl/ex$ ns simple.tcl 
It has an error: 
Namesever not reachable
simple.tcl  NS record not found
 
(I checked simple.tcl file is always in ns-allinone2.29/ns2.29/tcl/ex)
 
Could anybody please help me soon?
 
Thank you in advance.
Wei



  


[ns] awk file to calculate Route Discovery Frequency

2010-09-27 Thread Wei Zhang


Hello All,
 
Could anybody has awk file to calculate Route Discovery Frequency in routing 
protocol in manet? Please send me.
 
Thank you in advance.
Wei




  


[ns] code to add the hops(path) to source routing in the packet

2010-08-10 Thread Wei Zhang

Hello everybody,

I need code to add the hops of path to source routing in the packet. If you 
have it please send me soon.

Thank you in advance.
Wei





  


[ns] code to add the hops(path) to source routing in the packet

2010-08-07 Thread Wei Zhang

Hello everybody,

I need code to add the hops of path to source routing in the packet. If you 
have it please send me soon.

Thank you in advance.
Wei





  


[ns] the formula(way) to convert from w to m(meter)

2010-05-30 Thread Wei Zhang

Hello,

For using the transmission range,receiving range,..., it is difficult to 
imagine if using w unit.
-Does anyone has the formula to convert from w to m(meter) or an easy way to 
imagine  :

- transmission range from  w to meter?  e.g  8.5872e-4 w ~ 40m


  the power consumption for transmission from  w to meter?


- power consumption for reception from  w to meter?


- idle power consumption from  w to meter?


- sleep power consumption  from  w to meter?


- receiving range   from  w to meter?


- carrier sensing range  from  w to meter?





Thank you in advance!





  


[ns] drop packet during transmission

2010-05-20 Thread Wei Zhang


Hello everybody,

Could anybody tell me: 

which cases a packet drops during it was transmitted in network except having 
not the route from source to destination? I tested OLSR, it has no drop if 
having the route from source to destination. How to set up parameter in tcl 
script to cause drop of packet? Please help me.

set opt(chan)   Channel/WirelessChannel  ;
set opt(prop)   Propagation/TwoRayGround ;
set opt(netif)  Phy/WirelessPhy  ;
set opt(mac)    Mac/802_11   ; 
set opt(ifq)    Queue/DropTail/PriQueue  ; 
set opt(ll) LL   ; 
set opt(ant)    Antenna/OmniAntenna  ; 
set opt(ifqlen) 50   ; 
set opt(adhocRouting)   OLSR ;
 
set opt(cp)    ; 
set opt(sc)    ; 
set opt(x)  700  ;
set opt(y)  700  ;
set opt(stop)   100   ; 
 
set opt(cbr-start)  30.0
 
Phy/WirelessPhy set CPThresh_ 10.0
Phy/WirelessPhy set CSThresh_ 1.74269e-10 ;
Phy/WirelessPhy set RXThresh_ 1.08918e-9 ;
Phy/WirelessPhy set bandwidth_ 512kb 
Phy/WirelessPhy set Pt_ 0.2818 ; 
Phy/WirelessPhy set freq_ 2.4e+9
Phy/WirelessPhy set L_ 1.0


Thanks in advance.
Wei





  


[ns] TCL script 50 nodes or more for DSR,AODV

2010-05-09 Thread Wei Zhang

 
Hello,
 
I want to try a TCL script 50 nodes or more for DSR,AODV. Anyone please send me.
 
Thanks in advance.
Wei





  


[ns] trace file in ns2

2010-04-13 Thread Wei Zhang


Hello everybody,
 
In ns2, there existed a trace file for AODV,DSR?  Where is it? Please tell me.
 
Thank you so much.
Wei




  


[ns] find the current position of node

2010-03-15 Thread Wei Zhang

 
Hello everybody,

To find the current position of node i I use:

int i;
double x,y,z; 
    Node* srcnode = 0;
srcnode = Node::get_node_by_address(i); 
    MobileNode* tmnode = (MobileNode*)srcnode; 
        tmnode-getLoc(x, y, z);

I use ubuntu 8.04, ns2.33. when I translate(use make command). There are 2 
errors:
invalide use incomplete type struct mobileNode
common/packet/stamp.h:13 error: forward declaration of struct mobileNode

Could anybody please help me or send me other way.
 
Thanks in advance.
Wei




  


[ns] call a function from TCl script

2010-03-11 Thread Wei Zhang


Hello,
 
Could anybody please help me:


ABC() is a function writing by C++(in ns2) how to call it from TCl script?

Thanks so much.
Wei






  


[ns] interference or influence between two nodes in NS2, please help me

2009-08-12 Thread Wei Zhang



Hi All,
 
I have a problem for performing the interference in NS2:
 
Two nodes A and B are in transmission(or interference) range each other and 
susgest that interference level between us is x  How do I must declare some 
parameters and where to the network can understand that there is interference 
between A and B to be x in NS2?
 
Thank you very much for your help.
Wei Zhang




  


[ns] perform interference or influence between two nodes in NS2, please help me

2009-08-09 Thread Wei Zhang

 
Dear All,
 
I w­ant to perform interference or influence(not formula) between two nodes in 
transmission range each other in NS2. I do not  know­ ho­w to do. 
Could anybody please help me? I need your help.
 
Thank you very much.
W­­ei zhang





  


[ns] show result DSR, DSDV in ns 2, please help me

2009-07-26 Thread Wei Zhang

 
Dear all,
 
I try to test DSR and DSDV in ns 2(version 2.33). It run well but show nothing. 
I can not find its trace file. Where is its trace file or its result file? How 
I can see its result? who could please help me?
 
Thanks in advance.




  


[ns] implement an routing algorithm by Ns2, please help me

2009-07-25 Thread Wei Zhang

Dear All,
 
I must implement an routing algorithm  in mobile ad hoc by Ns2 that is the same 
as AODV, DSR in Ns2. Who have document for guiding way to build or tell me 
steps to build?
 
Thank you in advance.