Re: [ns] Error : ./install: line179 : cd: ./tcl8.3.2/unix: nosuch file or directory

2009-10-21 Thread Sergio Luis O. B. Correia

On Wed, Oct 21, 2009 at 9:59 PM, jeni martin  wrote:

>
>  hi guys,I installed slackware 10 and keep trying runnig NS,but I faced the
> following error:
>

slackware 10.. I remember I had problems with it too, and the problem was
the Tcl package from slackware didn't have a few headers ns2 would need to
build. Try building new tcl packages with the slackbuild from slackware 11.0
(the tcl packaging problem was fixed there). It might solve this particular
compilation problem.


> ./install: line179 : cd: ./tcl8.3.2/unix: nosuch file or
> directory,/install: line 186: ./configure : no such file or
> directory tcl8.3.2 configuration failed! Exiting ...> Tcl is not part of the
> ns project.  Please see> www.Scriptics.com%3chttp://www.scriptics.com/>>
> to see if they have a fix for your platform.
> anybody got any suggestions?thanks
>
>
>
>


-- 
Computer Networks and Security Laboratory (LARCES)
State University of Ceara (UECE/Brazil)


[ns] Nakagami propagation model

2010-01-27 Thread Sergio Luis O. B. Correia

Hello,

I'm trying to use the Nakagami propagation model in NS2 but I am
unable to correctly set up its parameters to meet my requirements (I'd
like to be able to test it with different transmission ranges, such as
500m and 1km).
Can somebody help me with this?

Thanks in advance,
Sergio.
-- 
Computer Networks and Security Laboratory (LARCES)
State University of Ceara (UECE/Brazil)



[ns] 80211ext (?) - logic error at TXC handling ACKIndication

2010-02-02 Thread Sergio Luis O. B. Correia

Hello,

I'm getting those messages* while running simulations with any routing
protocols. I am using 80211Ext MAC and PHY, with the tworayground
propagation method. The parameters I am using are the ones listes in
that IEEE802-11p.tcl file that comes with ns 2.34 witht the following
two changes:
Phy/WirelessPhyExt set Pt_  0.281838
Phy/WirelessPhyExt set RXThresh_1.42681e-12

Is that something I should be worried about?
thanks,
sergio

*
logic error at TXC handling ACKIndication
4
logic error at TXC handling ACKIndication
0


-- 
Computer Networks and Security Laboratory (LARCES)
State University of Ceara (UECE/Brazil)



Re: [ns] Error when invoking new routing protocol

2010-02-10 Thread Sergio Luis O. B. Correia

Hello,

On Wed, Feb 10, 2010 at 6:54 AM, JUNG HOON LEE  wrote:
>
> Hi, all
>
> This is my error when I run "make"
> make[1]: Entering directory
> `/root/ns-allinone-2.34/ns-2.34/indep-utils/cmu-scen-gen/setdest'
> make[1]: Nothing to be done for `all'.
> make[1]: Leaving directory
> `/root/ns-allinone-2.34/ns-2.34/indep-utils/cmu-scen-gen/setdest'
> make[1]: Entering directory
> `/root/ns-allinone-2.34/ns-2.34/indep-utils/webtrace-conv/dec'
> make[1]: Nothing to be done for `all'.
> make[1]: Leaving directory
> `/root/ns-allinone-2.34/ns-2.34/indep-utils/webtrace-conv/dec'
> make[1]: Entering directory
> `/root/ns-allinone-2.34/ns-2.34/indep-utils/webtrace-conv/epa'
> make[1]: Nothing to be done for `all'.
> make[1]: Leaving directory
> `/root/ns-allinone-2.34/ns-2.34/indep-utils/webtrace-conv/epa'
> make[1]: Entering directory
> `/root/ns-allinone-2.34/ns-2.34/indep-utils/webtrace-conv/nlanr'
> make[1]: Nothing to be done for `all'.
> make[1]: Leaving directory
> `/root/ns-allinone-2.34/ns-2.34/indep-utils/webtrace-conv/nlanr'
> make[1]: Entering directory
> `/root/ns-allinone-2.34/ns-2.34/indep-utils/webtrace-conv/ucb'
> make[1]: Nothing to be done for `all'.
> make[1]: Leaving directory
> `/root/ns-allinone-2.34/ns-2.34/indep-utils/webtrace-conv/ucb'
> Is there someone who can solve this problem?
> Help me out.
> Thanks,
>

this is not an error, it's telling you the compilation finished.

sergio


-- 
Computer Networks and Security Laboratory (LARCES)
State University of Ceara (UECE/Brazil)



Re: [ns] Example of creating our own agent in ns 2.34?

2010-02-20 Thread Sergio Luis O. B. Correia

Hello,


On Sat, Feb 20, 2010 at 2:13 AM, johnadams986  wrote:
>
>
> Hi,
>
> Can someone point me to an updated version of Marc Greis's Ping tutorial? It
> doesn't necessarily have to be a Ping tutorial but anything that teaches
> addition of new protocols is fine. Anyone?

take a look at this material, it will be helpful:
http://masimum.inf.um.es/nsrt-howto/pdf/nsrt-howto.pdf

sergio



>
> Thanks,
> John
> --
> View this message in context: 
> http://old.nabble.com/Example-of-creating-our-own-agent-in-ns-2.34--tp27663685p27663685.html
> Sent from the ns-users mailing list archive at Nabble.com.
>
>



-- 
Computer Networks and Security Laboratory (LARCES)
State University of Ceara (UECE/Brazil)



Re: [ns] passing parameters to tcl script

2010-02-25 Thread Sergio Luis O. B. Correia

On Thu, Feb 25, 2010 at 10:26 AM, pedro chaparro  wrote:
>
> hi every one, i have a question about how to check the number of parameters
> i pass to the tcl script, i'm using
>
> if {  $argc != 3}
> {
> puts "Missing parameters  "
> exit 1
> }

try putting the opening brace in the same line, as in

if { $argc != 3 } {
bla bla bla
}

>
> but it does not work
>
> i got this error
>
> p...@calvin:/home/pdro7/Desktop/ns-allinone-2.34/ns-2.34# *./ns
> foreman1.tcl    *
> wrong # args: no script following "  $argc != 3" argument
>    while executing
> "if {  $argc != 3}"
>    (file "foreman1.tcl" line 7)
>
>
>
> thanks in advance
>
>
> --
> Ing Pedro Alonso Chaparro Valero
> Ciudad Politecnica de la Innovación
> iTEAM - Mobile Communications Group
> Polytechnic University of Valencia
> C\ Camino de Vera S/N, Edificio 8G
> 46022 Valencia, Spain
>



-- 
Computer Networks and Security Laboratory (LARCES)
State University of Ceara (UECE/Brazil)



[ns] How to check whether an attached agent/application is transmitting?

2010-03-19 Thread Sergio Luis O. B. Correia

Hello all,

# connection 1
set udp_(1) [new Agent/UDP]
set null_(1) [new Agent/Null]
$ns_ attach-agent $node_(0) $udp_(1)
$ns_ attach-agent $node_(1) $null_(1)
set cbr_(1) [new Application/Traffic/CBR]
$cbr_(1) set packetSize_ 512
$cbr_(1) set interval_ 0.25
$cbr_(1) set random_ 1
$cbr_(1) attach-agent $udp_(1)
$ns_ connect $udp_(1) $null_(1)
$ns_ at 1.0 "$cbr_(1) start"
$ns_ at 5.0 "$cbr_(1) stop"

the above tcl snippet will set up a UDP/CBR connection between nodes 0
(sender) and 1 (receiver), from 1.0 to 5.0 seconds.
How would I -- on node 0, through C++ --, access the attached UDP
agent to check whether it is transmitting or not?

thanks in advance for any pointers.
sergio



Re: [ns] Is there any way to SHUTDOWN a MobileNode?

2010-03-24 Thread Sergio Luis O. B. Correia

Hello,

have you tried calling "reset" for the node you want to turn off?
something like

# tell all nodes when the simulation ends
for { set i 0 } { $i < $opt(nn) } { incr i } {
$ns_ at $opt(stop).0 "$node_($i) reset";
}


att,
sergio

On Wed, Mar 24, 2010 at 9:43 AM, darkblue winnie
 wrote:
>
> Hi,
>
> I am currently implementing a protocol in wireless network. I use 802.11 as
> MAC, AODV as the routing protocol, and also use the Energy_Model to track
> energy.
> Now I have finished the basic protocol and want to do a simulation.
>
> But I need to shutdown a MobileNode during the simulation, which means the
> node should be totally OFF or at least does not transmit any packet.
> I have search a lot and do not find a right answer
>
> So, is there any way to shut down the mobile node either in the Otcl script
> or in the cpp code?
>
> Thank you in advance.
>
> Yi Gong
>



-- 
Computer Networks and Security Laboratory (LARCES)
State University of Ceara (UECE/Brazil)



Re: [ns] node position returns all the time zero

2010-03-25 Thread Sergio Luis O. B. Correia

Hello,

On Thu, Mar 25, 2010 at 10:20 AM, Ghofrane  wrote:
>
> Hi
> I want to know the current position of a node, but when I write this:
> node_ = (MobileNode*)Node::get_node_by_address(ra_addr());
> ((MobileNode *)Node::get_node_by_address(ra_addr()))->getLoc(&x, &y,&z);
>
> tcl.evalf("puts \" (sendHello) x position is  %d  :\"",x);

try changing %d into %f

att,
sergio

>
> It returns all the time 0 !
> Do you have any suggestion to solve this problem ?
> Thank you.
>
>
>
>
>
>



-- 
Computer Networks and Security Laboratory (LARCES)
State University of Ceara (UECE/Brazil)



Re: [ns] Request for ns2.28-allinone load (its no more available in distribution)!!

2010-10-22 Thread Sergio Luis O. B. Correia

On Fri, Oct 22, 2010 at 9:35 AM, svetla verma
 wrote:
>
> Hi,
>          I am a research student from king's college london and currently
> looking for a poisson traffic generator for ns2.
> I have a poisson traffic generator patch
> http://www.matlab.nitech.ac.jp/~khpoo/research/index-poisson.htm that runs
> only on ns2.28 release (tried on the latest ns2.34 but didn't work) but
> ns2.28 is no more available in distribution list
>
> Can anyone who has this load please send me the .tar.gz load???
>
try
http://www.isi.edu/nsnam/dist/

> Any other link or information on poission traffic generator on ns2 is also
> welcome.
>
> Thanks,
> Svetla
>



-- 
Sergio Luis O. B. Correia
ser...@larces.uece.br
Computer Networks and Security Laboratory (LARCES)
State University of Ceara (UECE/Brazil)