[ns] 802.11etkn error during execute the sample

2009-08-21 Thread ali bala

hi
i think add 802.11e tkn without any error but when i run a example i recive 
this error :
ns:
[code omitted because of length]
:invalid command name ...
    while executing
...
    invoked from within
if [tclobject is-class mac/802_11e]{
...
copy settings of mac/802.11
(which are contained in this file) into this section
and at an e at the end o...

what's the problem ?
thanks for your attention.
 mr.ali.balador
homepage:www.balador.org 


  


[ns] nist mobility package

2009-08-21 Thread zhujian

Hi:

 ALL!

 I am trying my best to learn the code of nist mobility package, but
without document of the code, I feel too difficult for me to know the code
clearly.

 Is there someone who are learning the code too? if you are, please
reply me. I hope that you can give me some help or we can discuss some
segment together.

 Thanks for your reply!

 

祝 建建 |  Zhu Jian Jian

- 

Master 

School of Information Science and Technology

Southwest Jiaotong University

Chengdu, Sichuan 610031 P.R. China

Phone:13540654875

 



[ns] leachApp under mannasim extension

2009-08-21 Thread K.manel


Hi ns-users ,

 Please, Can someone explain  to me  this part of LeachApp.cc code .
And , plz  where shall found the declaration  and initialization of
sensor_node (pointer on  chadv structure leachApp.h )   

Void LeachApp::start()
{
if (agent_ == NULL)
{
char agentName[32];

printf(Warning! LeachApp::start() = agent_ of %d is null! Creating
a RCAgent!\n, sensor_node_-nodeid()); // exactly this line 

sprintf(agentName, __rcagent%d, sensor_node_-nodeid());   

agent_ = new RCAgent();
agent_-name(agentName);

Tcl::instance().enter(agent_);

printf(%s attach %s, name(), agent_-name());
Tcl::instance().evalf(%s attach %s, name(), agent_-name());
}

sensedData_-node_id() == sensor_node_-nodeid();

mac_ = (MacSensor *) ((RCAgent *) agent_)-getMAC();
mac_-node_num() = sensor_node_-nodeid();
decideClusterHead();

CommonNodeApp::start();
}

Many thanks
-- 
View this message in context: 
http://www.nabble.com/leachApp-under-mannasim-extension-tp25082599p25082599.html
Sent from the ns-users mailing list archive at Nabble.com.



[ns] help me please in ns-2.27

2009-08-21 Thread ali majeed



--- On Fri, 8/21/09, ali majeed alimm...@yahoo.com wrote:


From: ali majeed alimm...@yahoo.com
Subject: 
To: ns-users@isi.edu
Date: Friday, August 21, 2009, 11:14 PM










  

[ns] wrong node routing agent error

2009-08-21 Thread Oladapo Oluwadiya

hello,

i m having problems running my ns simulation after i patched ns2.33 with 
mobiwan to allow mobile ipv6 support. when i try running ns2.33 after the 
patching, i get this error:
number of node is 5 ... wrong node routing agent!
please does anyone know what the problem could be?
regards



  


[ns] Help with Code

2009-08-21 Thread νι∂нуα ρяαкαѕн R

i have installed the ns2 successfully when i try to run my frnds code i get
this error message plase help me...

SARP.tcl
#===
# Define options
#===
set opt(chan)   Channel/WirelessChannel;# channel type
set opt(prop)   Propagation/TwoRayGround   ;# radio-propagation
model
set opt(netif)  Phy/WirelessPhy;# network interface type
set opt(mac)Mac/802_11
set opt(ifq)Queue/DropTail/PriQueue;# interface queue type
set opt(ll) LL ;# Link layer type
set opt(rlc)RLC;# Radio Link Control
set opt(ant)Antenna/OmniAntenna;# antenna model
set opt(ifqlen) 500;# max packet in ifq
set opt(adhocRouting)   SARP   ;# routing protocol
set opt(x)  1000 ;# x coordinate of topology
set opt(y) 1000   ;# y coordinate of
topology
set opt(nn) 100;# number of mobilenodes
set opt(start) 1  ;# simulation start time
set opt(stop)   15 ;# simulation stop time
set opt(att)5   ;# number of attackers
set st_atk  56   ;# starting attacker node
set opt(pause)10
#==

set ns_ [new Simulator]
# $ns_ use-newtrace
set nf [open out.nam w]
set tf [open out.tr w]
$ns_ namtrace-all-wireless $nf $opt(x) $opt(y)
$ns_ trace-all $tf

set topo [new Topography]
$topo load_flatgrid $opt(x) $opt(y)

set god_  [create-god $opt(nn)]

set channel [new $opt(chan)]


$ns_ node-config -adhocRouting $opt(adhocRouting) \
 -llType $opt(ll) \
 -rlcType $opt(rlc) \
 -macType $opt(mac) \
 -ifqType $opt(ifq) \
 -ifqLen $opt(ifqlen) \
 -antType $opt(ant) \
 -propType $opt(prop) \
 -phyType $opt(netif) \
 -topoInstance $topo \
 -wiredRouting OFF \
 -agentTrace ON \
 -routerTrace ON \
 -macTrace OFF \
 -movementTrace OFF \
 -channel $channel

#node creation
for {set i 0} {$i  $opt(nn) } {incr i} {
set node_($i) [$ns_ node]
$node_($i) random-motion 0;# disable random motion
}

#$ns_ color 0 red

puts Loading scenario files ..
source ../scen/SCENP$opt(pause)

for {set i $st_atk} {$i  [expr $st_atk+$opt(att)] } {incr i} {
 $ns_ at 0.0 $node_($i) add-mark m1 red circle
}

set rate [expr $opt(att)*50]kb

set udp1 [new Agent/UDP]
$ns_ attach-agent $node_(0) $udp1
set null1 [new Agent/Null]
$ns_ attach-agent $node_(50) $null1
set cbr1 [new Application/Traffic/CBR]
$cbr1 set packetSize_ 1000
$cbr1 set rate_ $rate
$cbr1 attach-agent $udp1
$ns_ connect $udp1 $null1
$ns_ at 1.0 $node_(0) label Src;
$ns_ at 1.0 $node_(50) label Dest;
$ns_ at 1.0 $cbr1 start


for {set i 0} {$i  $opt(nn) } {incr i} {
$ns_ at $opt(stop) $node_($i) reset;
}

for {set i 0} {$i  $opt(nn)} {incr i} {
$ns_ initial_node_pos $node_($i) 20
}

$ns_ at $opt(stop).01 puts \NS EXITING...\ ; $ns_ halt

proc finish {} {
global nf tf ns_
$ns_ flush-trace
close $nf
close $tf
exec ./find2.bin
#exec nam out.nam 
exit 0
}

$ns_ at $opt(stop) finish
$ns_ run

when i try run i get this error please help me frnds..
[r...@localhost tcl]# ns SARP.tcl
num_nodes is set 100

(_o14 cmd line 1)
invoked from within
_o14 cmd addr
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 _o14 line 2)
(SplitObject unknown line 2)
invoked from within
_o14 addr
(eval body line 1)
invoked from within
eval $node addr $args
(default arm line 2)
invoked from within
switch -exact $routingAgent_ {
DSDV {
set ragent [$self create-dsdv-agent $node]
}
DSR {
$self at 0.0 $node start-dsr
}
AODV {
set ragent [$self cre...
(procedure _o3 line 14)
(Simulator create-wireless-node line 14)
invoked from within
_o3 create-wireless-node
(eval body line 1)
invoked from within
eval $self create-wireless-node $args
(procedure _o3 line 23)
(Simulator node line 23)
invoked from within
$ns_ node
(for body line 2)
invoked from within
for {set i 0} {$i  $opt(nn) } {incr i} {
set node_($i) [$ns_ node]
$node_($i) random-motion 0  ;# disable random
motion
}
(file SARP.tcl line 57)
[r...@localhost tcl]#
-- 
I мαkє мy σwи яυlєร
I รєт мy σwи gσαlร
I fσllσw