[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



[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] 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] Fwd: Linking C++ and OTcl

2009-05-07 Thread Abhijeet Mirikar

 ns-users@ISI.EDUHello 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] 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.


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] 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] 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] 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