[ns] puzzled about two kinds of flooding code

2008-11-22 Thread Phenix
Hi, all Can anybody tell me the differences of between $NS_HOME\sensor-nets\flood-agent.cc(h) and $NS_HOME\diffusion\flooding.cc(h) ? If I'd like to apply flooding technique for Vehicle Safety Communication, which should I choose? Regards, Phenix

[ns] flooding and diffusion

2008-11-24 Thread Phenix
Hi,guys What's the exact difference between flooding and diffusion ? Regards, Phenix

Re: [ns] cygwin problem

2008-12-01 Thread Phenix
11-libs-data xorg-x11-etc" So, please make sure that choose all of these items when you install cygwin. Wish you good luck! Regards, Phenix -- From: "Nour" <[EMAIL PROTECTED]> Sent: Monday, December 01, 2008 9:52 PM To: Subject

[ns] puzzles on Agent and Router

2008-12-19 Thread Phenix
Which one should I use when evaluating my algorithm ? Wish someone can give me some explains. Thanks in advance. Regards, Phenix

Re: [ns] DHT implementation in NS-2

2008-12-22 Thread Phenix
h_Entry *)Tcl_GetHashValue(entryPtr); delete hashPtr; Tcl_DeleteHashEntry(entryPtr); entryPtr = Tcl_NextHashEntry(&searchPtr); } } Regards, Phenix -- From: "Shailander Srinivasa V" Sent: Saturday, December 20, 2008 7:21 PM

[ns] how to build tcl scripts for VANET

2008-12-28 Thread Phenix
Hi All, I'd like to know how to build a scenario script for vehicular Ad Hoc Network (VANET)? Can somebody give me some directions? Or if someone have example TCL scripts for VANET, please let me know . Thanks in advance! Regards, Phenix

Re: [ns] how to build tcl scripts for VANET

2008-12-29 Thread Phenix
Hi sarym, As I'm a newbie to NS2, I don't know how to deal with so many mobile node with variable speed in VANET. Could you please show me a tcl example? Thanks ~ Regards, Phenix From: sarym binome Sent: Monday, December 29, 2008 5:39 PM To: phenix...@hhu.edu.cn Subject: RE: [

[ns] how to set different transmit range for different node

2009-01-02 Thread Phenix
an be passed: N0 --> N1 <---> N2 Let me know how to set different transmit range please. Thank you in advance! Regards, Phenix

Re: [ns] how to set different transmit range for different node

2009-01-03 Thread Phenix
$val(nn) } {incr i} { $ns_ at $val(stop).0 "$node_($i) reset"; } $ns_ at $val(stop).0 "stop" $ns_ at $val(stop).01 "puts \"NS EXITING...\" ; $ns_ halt" proc stop {} { global ns_ tracefd namtrace $ns_ flush-trace close $tracefd close $namtra

Re: [ns] (A naive solution) how to set different transmit range for different node

2009-01-05 Thread Phenix
Node 1: %f \n", tx_range); } This is just a reference. You should do some changes according to your trace file if you use other routing protocol. Regards, Phenix ------ From: "kavan sheth" Sent: Sunday, January 04, 2009 1:24 PM To: "

[ns] otcl script for broadcast

2009-01-10 Thread Phenix
Application/Traffic/CBR] $cbr_(0) attach-agent $udp_(0) However, it's only a point-to-point way. How should I deal with broadcast in which scenario only one node send packets and all of the others receive. Waiting for your help. Thanks ! Regards, Phenix

Re: [ns] after recompiling

2009-01-15 Thread Phenix
Hi, You can add these two statements at the beginning of proxytrace2any.cc: extern int IsLittleEndian(void); extern void ToOtherEndian(TEntry *e); It'll works well. However, I don't know the reason. If you know, please let me know. Regar

Re: [ns] MAC cache_ array out of range

2009-01-16 Thread Phenix
e 1963. > > Thanks in advance > > > > Regards, Phenix

[ns] how to forward packets based on probability

2009-02-17 Thread Phenix
(target_, p, delay); But how to deal with the probability? Regards, Phenix

Re: [ns] how to forward packets based on probability

2009-02-18 Thread Phenix
ideas? Regards, Phenix From: Mubashir Rehmani Sent: Wednesday, February 18, 2009 3:49 PM To: Phenix Cc: ns-users Subject: Re: [ns] how to forward packets based on probability Hi Phenix, To forward a packet with certain probability, you need to include an if condition in the sendPkt() fun

Re: [ns] how to forward packets based on probability

2009-02-18 Thread Phenix
Hi Sidney, > Phenix, > > Is this discussion about probability technics or about how to > implement them in c++? Both. I'd like to know how can I implement probability-based mechanism in c++ more exactly. > > Sidney Doria > UFCG / BRAZIL > > > 2009/2/18 Pheni

Re: [ns] velocity and direction of mobile nodes

2009-03-15 Thread Phenix
f anybody know, pls let me know. Thank you! Regards, Phenix -- From: "Rainn" Sent: Monday, March 16, 2009 12:45 PM To: Subject: [ns] velocity and direction of mobile nodes > > Dear all, > > I need to manipulate velocity and di

Re: [ns] velocity and direction of mobile nodes

2009-03-18 Thread Phenix
Hi Erico, I don't mean this. What I want is how to control the movement of nodes in C++ code. Thank you all the same. Regards, Phenix -- From: "Erico Augusto" Sent: Tuesday, March 17, 2009 12:25 PM To: "ns users" Subje