[ns] Regarding errors

2009-11-10 Thread gayathri devi

Hai ns users,
  
   I wrote simple tcl script to create 10 nodes ,but i had 
come across with the following error.




num_nodes is set
10

INITIALIZE THE LIST xListHead

channel.cc:sendUp - Calc highestAntennaZ_ and distCST_

highestAntennaZ_ = 1.5,  distCST_ =
550.0

SORTING LISTS ...DONE!

end simulation   I don't know the specific reason behind this error.So 
pls guide me to overcome this problem.







  The INTERNET now has a personality. YOURS! See your Yahoo! Homepage. 
http://in.yahoo.com/


[ns] NS2 Help for Makefile

2009-11-10 Thread Manan Shah



Hello Friends
I have configured ping example in NS2 with necessary changes.
but when i run make, i got the following error.

for i in indep-utils/cmu-scen-gen/setdest indep-utils/webtrace-conv/dec
indep-utils/webtrace-conv/epa indep-utils/webtrace-conv/nlanr
indep-utils/webtrace-conv/ucb; do ( cd $i; make all; ) done
make[1]: Entering directory
`/home/mstudent/ns-allinone-2.33/ns-2.33/indep-utils/cmu-scen-gen/setdest'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory
`/home/mstudent/ns-allinone-2.33/ns-2.33/indep-utils/cmu-scen-gen/setdest'
make[1]: Entering directory
`/home/mstudent/ns-allinone-2.33/ns-2.33/indep-utils/webtrace-conv/dec'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory
`/home/mstudent/ns-allinone-2.33/ns-2.33/indep-utils/webtrace-conv/dec'
make[1]: Entering directory
`/home/mstudent/ns-allinone-2.33/ns-2.33/indep-utils/webtrace-conv/epa'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory
`/home/mstudent/ns-allinone-2.33/ns-2.33/indep-utils/webtrace-conv/epa'
make[1]: Entering directory
`/home/mstudent/ns-allinone-2.33/ns-2.33/indep-utils/webtrace-conv/nlanr'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory
`/home/mstudent/ns-allinone-2.33/ns-2.33/indep-utils/webtrace-conv/nlanr'
make[1]: Entering directory
`/home/mstudent/ns-allinone-2.33/ns-2.33/indep-utils/webtrace-conv/ucb'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory
`/home/mstudent/ns-allinone-2.33/ns-2.33/indep-utils/webtrace-conv/ucb'

anyone can tell me how can i resolve this error?
thanks in advance.

-- 
View this message in context: 
http://old.nabble.com/NS2-Help-for-Makefile-tp26261620p26261620.html
Sent from the ns-users mailing list archive at Nabble.com.



[ns] qustion regarding database in Ns2

2009-11-10 Thread sashtari



-
Hello every body

I want to have a simple database on each node in NS2. I want to use the
information of this database in mac header.
Does anybody know how should I do this? I should do it in C++ codes or in
tcl codes?

Thanks
Saeideh







[ns] FW: Packet loss with MANET routing protocol !! ;(

2009-11-10 Thread adel belkhiri




Hi friends ,

I have noticed that not all the packets sent by my agent are received so I want 
to ask this question :
how to ensure that MANET routing protocols (such as AODV or DSDV) do not lose 
some packets ?!!
In fact what I want to do is to force the routing protocol to do not losing 
packets...are there a method
to ensure that every packet which I put on the network will arrive to its 
destination ??

Thanks for your responses in advance.



Sincerely / Adel Belkhiri.
  
Windows Live: Make it easier for your friends to see  what you’re up to on 
Facebook.  
_
Windows Live: Friends get your Flickr, Yelp, and Digg updates when they e-mail 
you.
http://www.microsoft.com/middleeast/windows/windowslive/see-it-in-action/social-network-basics.aspx?ocid=PID23461::T:WLMTAGL:ON:WL:en-xm:SI_SB_3:092010

[ns] Help me multichannels

2009-11-10 Thread thang

Hi all,
Anyone uses multichannels as
http://www.cse.msu.edu/~wangbo1/ns2/nshowto8.html? 

I made hyacinth on Ns-2.29 and test with twoflows-2channel.tcl and run
well. Now i have some nodes 0>1>(4)<---3<---2.There are 2
channels: 1-->2-->4 and 2--->3--->4. How to transfer a packet from 1 to
4 and 2 to 4. I tried

# Add routing tag
$node_(0) add-route-tag 1 999
$node_(1) add-route-tag 4 88
$node_(2) add-route-tag 3 8
$node_(3) add-route-tag 4 99
#$ragent add-next-hop $dst $tag $hop $nic
# Add next hop
$node_(0) add-next-hop 1 999 1 2
$node_(1) add-next-hop 4 88 4 5
$node_(2) add-next-hop 3 8 3 3
$node_(3) add-next-hop 4 99 4 1
*****
set null0 [new Agent/Null] 
$ns_ attach-agent $node_(1) $null0 
set cbr0 [attach-cbr-traffic $node_(0) $null0 500 0.005] 

$ns_ at 0.001 "$cbr0 start"
$ns_ at 4.9 "$cbr0 stop"

set null1 [new Agent/Null]
$ns_ attach-agent $node_(3) $null1
set cbr1 [attach-cbr-traffic $node_(2) $null1 500 0.005]
$ns_ at 0.001 "$cbr1 start"
$ns_ at 4.9 "$cbr1 stop"
==> result is only packets transfer from 0 to 1, 2 to 3, packets can't
reach to 4. 
Please, please help me soon.
Thank you very much.




[ns] usage of energy

2009-11-10 Thread gauri nir

Hi!
  I am working with wireless mobile nodes & need to use
energy of each node at every instant from the trace file.
How do I do it?
Thanx,
Gauri



  


Re: [ns] quesiton regarding database in NS2

2009-11-10 Thread galaxy-huang

hi,Both are OK. I don't know what kind of database software you use. But I know 
that MySQL offer the API for C,C++, Perl, PHP, Python, TCL etc.?