ZMAC simulation in NS2

View: New views
4 Messages — Rating Filter:   Alert me  

ZMAC simulation in NS2

by INTstu :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi everybody,
I want to run zmac ns2 code in ns2.26, But i got problem as shown below. If anyone knows this, would you please give me hint why it is showing this message in ns2.26.

slama@linux:~/NS_ZMAC/zmacTcl> more bb
ns simZMAC.tcl -numsources 5 -zmacMode 1 -interval 0.1 -valuefile abgg -sinknode
 20 -maxX 100 -maxY 100 -nn 24 -ack 1 -to 10 -tno 20 -timeSyncErrorFlag true -ti
meSyncErrorValue 1
slama@linux:~/NS_ZMAC/zmacTcl>
slama@linux:~/NS_ZMAC/zmacTcl> ./bb
Setting slot size to 0.0012880000000000001
num_nodes is set 24
values-file lookup failed

    (_o20 cmd line 1)
    invoked from within
"_o20 cmd values-file abgg"
    invoked from within
"catch "$self cmd $args" ret"
    (procedure "_o20" line 2)
    (SplitObject unknown line 2)
    invoked from within
"$mac_($i) values-file $valuefile"
    ("for" body line 6)
    invoked from within
"for {set i 0} {$i < $numNodes } {incr i} {
  set node_($i) [$ns_ node $i]
  $node_($i) random-motion 0            ;# disable random motion
  $god_ new_node $nod..."
    (file "multiHopTopoGen.tcl" line 1)
    invoked from within
"source.orig multiHopTopoGen.tcl"
    ("uplevel" body line 1)
    invoked from within
"uplevel source.orig [list $fileName]"
    (procedure "source" line 12)
    invoked from within
"source "multiHopTopoGen.tcl""
    (file "simZMAC.tcl" line 99)

Re: ZMAC simulation in NS2

by nehagupta :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


INTstu wrote:
Hi everybody,
I want to run zmac ns2 code in ns2.26, But i got problem as shown below. If anyone knows this, would you please give me hint why it is showing this message in ns2.26.

slama@linux:~/NS_ZMAC/zmacTcl> more bb
ns simZMAC.tcl -numsources 5 -zmacMode 1 -interval 0.1 -valuefile abgg -sinknode
 20 -maxX 100 -maxY 100 -nn 24 -ack 1 -to 10 -tno 20 -timeSyncErrorFlag true -ti
meSyncErrorValue 1
slama@linux:~/NS_ZMAC/zmacTcl>
slama@linux:~/NS_ZMAC/zmacTcl> ./bb
Setting slot size to 0.0012880000000000001
num_nodes is set 24
values-file lookup failed

    (_o20 cmd line 1)
    invoked from within
"_o20 cmd values-file abgg"
    invoked from within
"catch "$self cmd $args" ret"
    (procedure "_o20" line 2)
    (SplitObject unknown line 2)
    invoked from within
"$mac_($i) values-file $valuefile"
    ("for" body line 6)
    invoked from within
"for {set i 0} {$i < $numNodes } {incr i} {
  set node_($i) [$ns_ node $i]
  $node_($i) random-motion 0            ;# disable random motion
  $god_ new_node $nod..."
    (file "multiHopTopoGen.tcl" line 1)
    invoked from within
"source.orig multiHopTopoGen.tcl"
    ("uplevel" body line 1)
    invoked from within
"uplevel source.orig [list $fileName]"
    (procedure "source" line 12)
    invoked from within
"source "multiHopTopoGen.tcl""
    (file "simZMAC.tcl" line 99)

Re: ZMAC simulation in NS2

by nehagupta :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi frd,
      Can you send me full source code of zmac so that i can help you, if it is not possible for you than send me the link where i can find the sorce codes.

Re: ZMAC simulation in NS2

by J.P. () :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

can you pls help me with simulating ZMAC in ns2-26?
I tried to install and simulate ZMAC in ns-2.26, but I have problem.

After installation everything looks OK, but when I want to run zmacSIM.tcl i got following error:

"$mac trace-target $rcvT"
    (procedure "_o15" line 134)
    (Node/MobileNode add-interface line 134)
    invoked from within
"$node add-interface $chan $propInstance_ $llType_ $macType_  $ifqType_ $ifqlen_ $phyType_ $antType_  $inerrProc_ $outerrProc_ $FECProc_"
    (procedure "_o4" line 64)
    (Simulator create-wireless-node line 64)
    invoked from within
"_o4 create-wireless-node 0"
    ("eval" body line 1)
    invoked from within
"eval $self create-wireless-node $args"
    (procedure "_o4" line 14)
    (Simulator node line 14)
    invoked from within
"$ns_ node $i"
    ("for" body line 2)
    invoked from within
"for {set i 0} {$i < $numNodes } {incr i} {
  set node_($i) [$ns_ node $i]
  $node_($i) random-motion 0            ;# disable random motion
  $god_ new_node $nod..."
    (file "multiHopTopoGen.tcl" line 1)
    invoked from within
"source.orig multiHopTopoGen.tcl"
    ("uplevel" body line 1)
    invoked from within
"uplevel source.orig [list $fileName]"
    (procedure "source" line 12)
    invoked from within
"source "multiHopTopoGen.tcl""
    (file "simZMAC.tcl" line 99)


I'm new in simulating in ns2, so I'm not sure, if this bug means problem in ns-2 - maybe with "trace-target" (I suspect that simZMAC.tcl is OK).

Can anyone pls help me, or do you have an idea where error can be ?

Thanks a lot.

JP