[ns] Wrong node Routing Agent !!!!!

2009-05-07 Thread shreyas toro

hi all,
Shreyas Toro here...
I am working on NS-2.27 installed on RedHat 9.0 ... My aim is to implement a 
new routing protocol for this simulator in wireless networks... I refered the 
"NS-HOW TO" manual to implement... Everything's working fine till i execute 
make... But when i run the TCL script its giving the error as "WRONG NODE 
ROUTING AGENT ! "... This message is present in "tcl/lib/ns-lib.tcl" file... 
This error message is a default statement in "switch" where a new routing agent 
is created for our protocol... Inspite of commenting the error message its 
giving the same message...When i execute the file "ns-lib..tcl" using the 
command  "source ns-lib.tcl" its giving the error as "unexpected token )" in 
line 49...I tried lot of things but its not workin... Could anybody tell me the 
way to overcome this problem ?? and please post me the whole "ns-lib.tcl" 
source code... 


  Bollywood news, movie reviews, film trailers and more! Go to 
http://in.movies.yahoo.com/


[ns] Receiver Advertized Window

2009-05-07 Thread LiViAn ZaH

Hello
 
I am novice in ns-2. I want to know the size of Receiver Advertized window --- 
which variable in ns-2 represnts that ? I have seen the code but still confused.
 
Waiting for someone's kind response.
Livian
 
 
 


  


[ns] 1 byte of Data (Sender)

2009-05-07 Thread LiViAn ZaH

Hello

I want to know If TCP sender wants to send 1 bit of data periodically with 
some intervals(in which receiver will not Acknowledge those 
segment).how can I implemet it in TCP.CC ?
 
Thanks in advance for your ...reply.

Livian


  


[ns] regarding the simulation software

2009-05-07 Thread Geetha

 Dear NS-Users,


Apart from NS-2, I would like to know which other simulation software would
be most suited to run in cygwin or windows for simulating MANET.



Looking forward for ur reply,

Thanking you

With Regards
Geetha


[ns] WSN system simulation using NS2.27

2009-05-07 Thread mohamed said




From: msai...@hotmail.com
To: ns-users@isi.edu
Subject: 
Date: Fri, 8 May 2009 00:47:37 +0300








hi there 

i am a NS2 user and i am using NS2-2.27 in my graduation project .
i've search and i found a simulation to WSN system using NS2- ver 2.27
in this web site i think it is helpful for ur work :


http://apachepersonal.miun.se/~qinwan/resources.htm

i want u to try to run it and if u can to run it plz tell me as i tried to run 
it and i have an error 


thanks

 

See all the ways you can stay connected to friends and family
_
Windows Live™: Keep your life in sync. Check it out!
http://windowslive.com/explore?ocid=TXT_TAGLM_WL_t1_allup_explore_012009

Re: [ns] Error in creating new agent

2009-05-07 Thread Usman Amin

Hi

I added the following definitions in *

ns-agent.tcl*

Class Agent/VanetCR -superclass Agent

Agent/VanetCR instproc init args {

 $self next $args
}

Agent/VanetCR set sport_   0
Agent/VanetCR set dport_   0

Now the following error is coming.


*Error*

[r...@localhost VanetCR]# ns b_univ_twm_active_suicide_usman.tcl 10 2 20
num_nodes is set 150
INITIALIZE THE LIST xListHead

(_o2415 cmd line 1)
invoked from within
"_o2415 cmd log-target _o10"
invoked from within
"catch "$self cmd $args" ret"
invoked from within
"if [catch "$self cmd $args" ret] {
set cls [$self info class]
global errorInfo
set savedInfo $errorInfo
error "error when calling class $cls: $args" $..."
(procedure "_o2415" line 2)
(SplitObject unknown line 2)
invoked from within
"$p($i) log-target $RevTrace"
("for" body line 5)
invoked from within
"for {set i 0} {$i < $opt(nn)} {incr i} {
set p($i) [new Agent/VanetCR $i]
$ns_ attach-agent $node($i) $p($i)
# set the logtarget for every agent
$..."
(file "b_univ_twm_active_suicide_usman.tcl" line 343)
[r...@localhost VanetCR]#

Can anybody help.

Usman
313-424-0122

---

 Hi

I have NS2.33 running on FC9 in VMWARE. I have to create a new agent.

I have made the following changes in the below listed files

*Makefile*

VanetCR/vanetcr.o VanetCR/vanetcr_accdb.o VanetCR/vanetcr_myheard.o \
VanetCR/vanetcr_nghbdb.o VanetCR/vanetcr_sspdb.o \

*ns-default.tcl*

Agent/VanetCR set packetSize_ 1000;# for VANETCR added May 5th, 2009
Agent/VanetCR set jitterFactorRBC_ 0.0001
Agent/VanetCR set jitterFactorRev_ 0.0002
Agent/VanetCR set sig_delay_ 0.003255
Agent/VanetCR set verif_delay_ 0.00762
Agent/VanetCR set lastheard_interval_ 1
Agent/VanetCR set statinterval_ 0.01

*ns-packet.tcl*

# Wireless:
   ARP # Address Resolution Protocol, network wireless stack
   GAF # Geographic Adaptive Delity, for ad-hoc networks
   LL # network wireless stack
   LRWPAN  # zheng, wpan/p802_15_4mac.cc
   Mac # network wireless stack
   *VanetCR # Added for Vanet on May 5th, 2009*

*packet.h*

name_[PT_VANETCR]= "VanetCR"; //Added for VANETCR on May 5th, 2009
static const packet_t PT_VANETCR = 61; //for VANETCR May 5th, 2009

*After Modifications
*
I execute the following commands to recompile

touch common/packet.cc
make
make clean
configure


*ERROR*

[r...@localhost ns-2.33]# ns
ns:
[code omitted because of length]
: invalid command name "Agent/VanetCR"
   while executing
"Agent/VanetCR set packetSize_ 1000"

 the strange thing is as soon as I make this change in ns-default.tcl. All
other tcl files also stop working and the error I listed before is
returned.

Any help inthis regard will be highly appreciated.

Thanks & Regards,

Usman
313-424-0122


[ns] need help: adding new c++ variable gives floating point exception.

2009-05-07 Thread Ravikant Patil

Dear NS users,

I am trying to add new member variable to class 
class Mac802_11 : public Mac {
...
...
int authcount;
...
}

I am initializing it in Mac802_11::Mac802_11() : and then trying to use
it in member functions of class Mac802_11 but its giving me an error: --
> floating point exception.

please tell me how should i figure out the problem, also are there any
other files that i should update? currently i am updating Mac-802_11.cc,
Mac-802_11..h

thank you.

regards,

Ravikant.


[ns] Fwd: Linking C++ and OTcl

2009-05-07 Thread Abhijeet Mirikar

 Hello All,

   I am trying for linking C++ and OTcl. I have defined a HerAgent class as
subclass of Agent class. I am trying to link it with parallel OTcl class as
Agent/HerAgentOTcl. But I get following error whrn I followed all the
procedure and tried to run a script trying to create object instance of type
Agent.HerAgentOtcl,

invalid command name "Agent/HerAgentOtcl"
   while executing
"Agent/HerAgentOtcl create _o3 "
   invoked from within
"catch "$className create $o $args" msg"
   invoked from within
"if [catch "$className create $o $args" msg] {
if [string match "__FAILED_SHADOW_OBJECT_" $msg] {
delete $o
return ""
}
global errorInfo
error "class $..."
   (procedure "new" line 3)
   invoked from within
"new Agent/HerAgentOtcl"
   invoked from within
"set h1 [new Agent/HerAgentOtcl]"
   (file "HerAgent.tcl" line 1)

  Can anyone help me please?


regards,

Abhijeet Mirikar


[ns] scaning interface in NS-2

2009-05-07 Thread El hadi Cherkaoui

hi all,

i want to know how to recolte network information of an up interface: for 
exemple if we have
a multinoeud interfece (wimax , umts) , i want to recolte for each interface : 
the RSS , SNR

thanx for give me an exemple.
   



  


[ns] SCTP Code

2009-05-07 Thread Syed Faraz Hasan

Hello Everyone!

I am starting to explore using SCTP in NS-2, I have gone through the NS manual. 
If some one can provide me with a starting code of SCTP, I would be very 
grateful. It will help me start grasping early.

Thanks and Regards,
Faraz


[ns] TENS1.2 on NS2.33 (Ubuntu 8.10)

2009-05-07 Thread Saravanan Kandasamy

Hi,

I am new to NS2.

Have anyone successfully installed TENS1.2 on NS2.33 running on Ubuntu 8.10 ?
Need some pointers.

I could be reached at svanan77[at]gmail[dot]com

rgds
Saravanan K