[ns] ns-OBS invalid command error

2009-05-15 Thread COULIBALY Yaya

Hi All,

Here is the error I get when I try to run test01.tcl and test02.tcl of
ns-OBS under NS-2.33, NS-2.28. I am using fedora 8 as OS.

Any suggestions?

*./ns test01.tcl -*
Invalid command name StatCollector
while executing
StatCollector set debug_ 0  
(file test01.tcl line 7)

 *./ns test02.tcl  -*
invalid command name StatCollector
while executing
StatCollector set debug_ 0
(file test02.tcl line 7)



COULIBALY Yahaya
PhD Candidate
Faculty of Computer Science  Information Systems
Department of Communication  Computer Systems
Malaysia University of Technology (UTM)
81310 Skudai, Johor Bahru, Johor
Cell: 0060196886615


Re: [ns] Problem with tracing SCTP Agent Trafic

2009-05-15 Thread Arnaud Ongenae

Hello,

below you can find a piece of my code which is working:
set sctp_start_08 [new Agent/SCTP/CMT]
$ns multihome-attach-agent $start0 $sctp_start_08
$sctp_start_08 set fid_ 0 
$sctp_start_08 set debugMask_ 0
$sctp_start_08 set debugFileIndex_ 0
$sctp_start_08 set mtu_ 1500
$sctp_start_08 set dataChunkSize_ 1468
$sctp_start_08 set numOutStreams_ 2
$sctp_start_08 set useCmtReordering_ 1# turn on Reordering algo.
$sctp_start_08 set useCmtCwnd_ 1  # turn on CUC algo.
$sctp_start_08 set useCmtDelAck_ 1# turn on DAC algo.
$sctp_start_08 set eCmtRtxPolicy_ 2   # rtx. policy : RTX_SSTHRESH
$sctp_start_08 set useCmtPF_ 1# turn on CMT-PF
$sctp_start_08 set cmtPFCwnd_ 2   # cwnd=2*MTU after HB-ACK

set trace_sctp08 [open bw50_d5_sctp_0_sctp08.tr w]
$sctp_start_08 set trace_all_ 1   # trace them all on one line
$sctp_start_08 trace cwnd_
$sctp_start_08 trace rto_
$sctp_start_08 trace errorCount_
$sctp_start_08 attach $trace_sctp08

I notice a tiny difference in the place of the set trace_all_. As you
can see I am using SCTP-CMT. I do not know if it is related


Arnaud


On Thu, 2009-05-14 at 22:52 +0200, Ines Kechiche wrote:
  From: 
 Ines Kechiche
 noussa.in...@gmail.com
To: 
 Ns-users@ISI.EDU
   Subject: 
 [ns] Problem with tracing SCTP
 Agent Trafic
  Date: 
 Thu, 14 May 2009 22:52:28 +0200
 
 
 
 hi to all,
 I'm trying to trace SCTP trafic,to explore the cwnd and rto values.
 Unfortunately 


[ns] SFQ in Wireless

2009-05-15 Thread F A

Hi all,

Do you have any experience in using SFQ instead of DropTail/PriQueue in
wireless link? When I set  ifq as  Queue/SFQ  or Queue/FQ when I run the
simulator it returns Segmentation Fault. Do I need to set any particular
parameter when I use SFQ? Based on NS manual two configuration parameters
(i.e. maxqueue_ and buckets_) are important for SFQ and in this regard both
have default values.

I would be grateful for any suggestions.

Thanks
Fariborz


Re: [ns] problem adding a new protocol

2009-05-15 Thread Ibrahim3100



hi ns-users,
 
    i have followed all the steps for adding a new
clustering agent in ns-2.31. but when i run the tcl script i get the
following error message--
 
[code omitted because of length]
invalid command name Agent/MyClusAgent
while executing
Agent/MyClusAgent set packetsize_ 100
 
the last line was added in ns-default.tcl.
 
after adding the necessary lines in the respective files (packet.h,
ns-default.tcl, ns-packet.tcl) i ran make as --
 
./configure
make clean
make depend
make
 
please help me with this situation
 
meeta


  



-- 
View this message in context: 
http://www.nabble.com/problem-adding-a-new-protocol-tp23515507p23527978.html
Sent from the ns-users mailing list archive at Nabble.com.




[ns] Handover1.cc Mobility code

2009-05-15 Thread El hadi Cherkaoui

hi all,

i have a code of handover1.cc when creating handover module

/*
 * Creates a handover module
 */
Handover1::Handover1() : Handover(), connectingMac_(-1), scanTimer_(0)
{
  bind (case_, case_);
  bind (confidence_th_, confidence_th_); 
} 

My question is : where can i find the value of confidence_th_ , is it a 
argument or given in an other class ?

thanx 




  


Re: [ns] Problem with tracing SCTP Agent Trafic

2009-05-15 Thread Ines Kechiche

I tried the two ways but it didn't work :(
Do you have other propositions?

2009/5/15 najla najla.tr...@cert.mincom.tn

 I have already faced this problem when working on SCTP. I think that you
 must add the command set-multihome-core with its arguments (as mentioned
 in the Ns documentation)
 Good luck
 Najla
 -Message d'origine-
 De : ns-users-boun...@isi.edu [mailto:ns-users-boun...@isi.edu] De la part
 de Ines Kechiche
 Envoyé : jeudi 14 mai 2009 21:52
 À : Ns-users@isi.edu
 Objet : [ns] Problem with tracing SCTP Agent Trafic


 hi to all,
 I'm trying to trace SCTP trafic,to explore the cwnd and rto values.
 Unfortunately when I added the suitable lines to trace the agent I got this
 error.

 --- Classfier::no-slot{} default handler (tcl/lib/ns-lib.tcl) ---
_o51: no target for slot 0
_o51 type: Classifier/Hier
 I need your help to resolve this problem.Do you have any advice?


 Below are the lines that I've added to trace agent trafic
 set sctp0 [new Agent/SCTP]
 $ns_ multihome-attach-agent $sgsn $sctp0
 $sctp0 set fid_ 0
 $sctp0 set debugMask_ -1
 $sctp0 set debugFileIndex_ 0
 $sctp0 set mtu_ 1500
 $sctp0 set dataChunkSize_ 1448
 $sctp0 set numOutStreams_ 1
 $sctp0 set oneHeartbeatTimer_ 1
 $sctp0 set initialCwnd_ 2
 $sctp0 set useMaxBurst_ 1
 $sctp0 set trace_all_ 1

 set trace_ch [open trace.sctp w]
 $sctp0 trace cwnd_
 $sctp0 trace rto_
 $sctp0 trace errorCount_
 $sctp0 attach $trace_ch




[ns] tracing SCTP trafic

2009-05-15 Thread sofia insat

Hi,

I have to trace SCTP trafic
I have used this script but it didn't work :

set trace_ch [open trafic.sctp w]
$sctp0 set trace_all_oneline_ 1
$sctp0 trace cwnd_
$sctp0 attach $trace_ch

Do you have any idea ??
thanks


  


Re: [ns] Error in creating new agent

2009-05-15 Thread Ibrahim3100


I got same this error message when i run the tcl script  as follow:

[u...@localhost ~]$ ns ibrahim.tcl
ns:
[code omitted because of length]
: invalid command name Agent/Ibrahim
while executing
Agent/Ibrahim set packetSize_ 64
[u...@localhost ~]$

this happened because of the name of the class in the linkage part not
correct, i mean in the .cc file you should check the spelling in this line
for example: IbrahimClass() : TclClass(Agent/ibrahim) {} , the error
happened because of the Agent/ibrahim  ibrahim is not  correct name it
must be Agent/Ibrahim. In your case must be Agent/MyClusAgent so check
the spelling name.

I hope this help you.

Ibrahim


ottoman wrote:
 
 
  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
 
 

-- 
View this message in context: 
http://www.nabble.com/Error-in-creating-new-agent-tp23410893p23562932.html
Sent from the ns-users mailing list archive at Nabble.com.



[ns] Optimization !!!

2009-05-15 Thread shreyas toro

Hey ! With all your help i worked hard on the routing protocol and finally i 
was able to complete the task successfully on ns-2.28... Now i need some 
guidance of optimization of this protocol... How do i go about it ? Please give 
me your useful guidance... 
 
Regards,
Shreyas Toro


  Cricket on your mind? Visit the ultimate cricket website. Enter 
http://beta.cricket.yahoo.com


Re: [ns] tracing SCTP trafic

2009-05-15 Thread Arnaud Ongenae

Does the example found in 
ns-2.33/sctp/SCTP.README
are working ?

They are with me...


Arnaud


On Fri, 2009-05-15 at 13:04 +, sofia insat wrote:
 Hi,
 
 I have to trace SCTP trafic
 I have used this script but it didn't work :
 
 set trace_ch [open trafic.sctp w]
 $sctp0 set trace_all_oneline_ 1
 $sctp0 trace cwnd_
 $sctp0 attach $trace_ch
 
 Do you have any idea ??
 thanks
 
 
   


[ns] help needed to rectify error......

2009-05-15 Thread Nikheel Kumar

*hi all,

friends this tcl script is very necessary for my thesis please replay ASAP.
i am using n-2.31 with cygwin Actually i want to simulate short session and
to measure the distribution of the transmission duration of the number of
ongoing connections and the throughput in TCP connections. for this i use
monitoring the number of session. it will be look like following scenario::
*


S(1)  
.   |
.   |
.   |
.
|---ND(1)
...D(NodeNb)
.   |
.   |
.   |
S(NodeNb)-

*for this tcl file is as follows:*

set ns [new Simulator]

#this file contain transfer time of different connection
set Out [open Out.ns w]

#next file will contain the number of connections
set Conn [open Conn.tr w]

#open the trace file
set tf [open out.tr w]
$ns trace-all $tf

#we define the 3 files that will be used to trace the queue size,
#the bandwidth and lasses at the bottleneck.
set qsize [open queuesize.tr w]
set qbw [open queuebw.tr w]
set qlost [open queuelost.tr w]

#defining the topology
set N [$ns node]
set D [$ns node]
$ns duplex-link $N $D 2Mb 1ms DropTail
$ns queue-limit $N $D 3000

#number of sources
set NodeNb 6

#number of flows per source node
set NumberFlows 530

#Nodes and links
for { set j 1 } {$j=$NodeNb} {incr j} {
set S($j) [$ns node]
$ns duplex-link $S($j) $N 100Mb 1ms DropTail
$ns queue-limit $S($j) $N 1000
}

#TCP sources and destinations
for {set i 1} {$i=$NodeNb} { incr i } {
for {set j 1} {$j=$NumberFlows} { incr j } {
set tcpsrc ($i, $j) [new Agent/TCP/Newreno]
set tcp_snk ($i, $j) [new Agent/TCPSink]
$tcpsrc($i, $j) set window_ 2000
}
}

#connections
for {set i 1} {$i=$NodeNb} { incr i } {
for {set j 1} {$j=$NumberFlows} { incr j } {
$ns attach-agent $S($i) $tcpsrc($i, $j)
$ns attach-agent $D $tcp_snk($i, $j)
$ns connect $tcpsrc($i, $j) $tcp_snk($i, $j)
}
}

#ftp sources
for {set i 1} {$i=$NodeNb} { incr i } {
for {set j 1} {$j=$NumberFlows} { incr j } {
set ftp($i, $j) [$tcpsrc($i, $j) attach-source FTP]
}
}

#generator for the random size of files
set rng1 [new RNG]
$rng1 seed 0
set rng2 [new RNG]
$rng2 seed 0

#random interarrival time of tcp transfers at each source i
set RV [new RandomVariable/Exponential]
$RV set avg_ 0.045
$RV use-rng $rng1

#random size of files to transmit
set RV [new RandomVariable/Exponential]
$RVSize set avg_ 1
$RVSize set shape_ 1.5
$RVSize use-rng $rng2

#we nw define the begining times of transfers and the transfer sizes
#arrivals of sessions follow a poisson process
for {set i 1} {$i=$NodeNb} { incr i } {
set t [$ns now]
for {set j 1} {$j=$NumberFlows} { incr j } {

#set the begining time of next transfer from source i
set t [expr $t + [$RV value]]
set Conct($i, $j) $t

#set the size of next transfer from source i
set Size($i, $j) [expr [$RVSize value]]
$ns at $Conct($i, $j) $ftp($i, $j) send $Size($i, $j)

#update the number of flows
$ns at #Conct($i, $j) countFlows $i 1
}
}

#next is a recursive procedure that checks for each session whether
#it has ended. the procedure calls itself each 0.1 sec (this is set in
#the variable time)
#if a connection has ended then we print in the file $Out
#* the connection identifiers r i and j
#* the start and end time of the connection,
#* the throughput of the session,
#* the size of the transfer in bytes
# and we further defines another begining  of transfer after a random times
proc Test {} {
global  Conct tcpsrc Size NodeNB NumberFlows ns RV ftp Out tcp_snk
RVSize
set time 0.1
for {set i 1} {$i=$NodeNb} { incr i } {
for {set j 1} {$j=$NumberFlows} { incr j } {

#we now check if the transfer is over
if {[$tcpsrc($i, $j) set ack_]==[$tcpsrc($i, $j) set maxseq_]} {
if {[$tcpsrc($i, $j) set ack_]=0} {

#if the transfer is over, we print relevent information  in $Out
puts $Out $i, $j\t$Conct($i, $j)\t[expr [$ns now]]\t\
[expr ($Size($i, $j))/(1000*([expr [$ns now ]] - $Conct($i,
$j)))]\t$Size($i, $j)
countFlows $i 0
$tcpsrc($i, $j) reset
$tcp_snk($i, $j) reset
}
}
}
}
$ns at [expr [$ns now]+$time] Test
}
for {set j 1} {$j=$NodeNb} { incr j } {
set Cnts($j) 0
}

# the following recursive procedure updates the number of connections as a
function of time.
# Each 0.2 it prints them in to $Conn. This is done by calling the procedure
with the sign
# parameter equal 3 (in which case the ind parameter does not play a
role). the procedure
# is also called by the Test procedure whenever a connection from source i
ends by