Re: [ns] Error in Muli-Channel + CRCN

2013-03-11 Thread Vitor Ramalho

Hi Fazlullag.

I installed CRCN as described in the tutorial, but I'm not able to simulate
the Ruting Protocol: WCETT.
I am using linux UBUNTU VERSION 12-04

Tutorial:
http://mclab.wikidot.com/wiki:howto-install-ns-2-with-crcn-patch-on-ubuntu10-04

The error that occurs is this:

vitor @ vitor-Vostro-1014 :/ opt/ns-2/ns-allinone-2.31/ns-2.31 $ ns test.tcl
num_nodes is September 10
INITIALIZE THE LIST xListHead
INITIALIZE THE LIST xListHead
Starting Simulation ...
format_wcett: invalid packet type WCETT
vitor @ vitor-Vostro-1014 :/ $ opt/ns-2/ns-allinone-2.31/ns-2.31

Can you help me?
I do not know what I'm doing wrong.

2013/1/8 Fazlullah Khan fazlullah@gmail.com


 Dear all!
 I installed CRCN patch and the run the tcl file with nodes=2, and
 channels=2, and get the following error and warning!
 Any onw knows how to avoid this error and warning!
 INITIALIZE THE LIST xListHead
 Warning: nodes cannot have more radio interfaces on the same channel!! 1st
 can't read chan(2): no such element in array
 while executing
 $node add-interface $chan([expr $i*$channum_]) $propInstance_
 $llType_ $macType_  $ifqType_ $ifqlen_ $phyType_ $antType_
 $topoInstance_  $inerrProc_ $...
 (procedure _o3 line 77)
 (Simulator create-wireless-node line 77)
 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  $val(nn)} {incr i} {
  set node_($i) [$ns_ node]
 # $node_($i) set SingleIfMultiChan 1
  $node_($i) random-motion 0 ;# ...
 (file multi-channel.tcl line 123)
 num_nodes is set 2

 --
 Regards
 Khan




-- 
 Vitor Gomes Ramalho
Mestrando em Ciência da Computação - UFV
   Bacharel em Ciência da Computação - UFV
  Universidade Federal de Viçosa


[ns] Error in Muli-Channel + CRCN

2013-01-07 Thread Fazlullah Khan

Dear all!
I installed CRCN patch and the run the tcl file with nodes=2, and
channels=2, and get the following error and warning!
Any onw knows how to avoid this error and warning!
INITIALIZE THE LIST xListHead
Warning: nodes cannot have more radio interfaces on the same channel!! 1st
can't read chan(2): no such element in array
while executing
$node add-interface $chan([expr $i*$channum_]) $propInstance_
$llType_ $macType_  $ifqType_ $ifqlen_ $phyType_ $antType_
$topoInstance_  $inerrProc_ $...
(procedure _o3 line 77)
(Simulator create-wireless-node line 77)
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  $val(nn)} {incr i} {
 set node_($i) [$ns_ node]
# $node_($i) set SingleIfMultiChan 1
 $node_($i) random-motion 0 ;# ...
(file multi-channel.tcl line 123)
num_nodes is set 2

-- 
Regards
Khan