Hi all, When I run a ring-topology protocol script,I get an error listed below. Would you please tell me how to deal with it? Thanks
I saw the response of a similar question, he commented "make sure it is fully connected". My topology is n0 ---> n1 ----> n2 ---> n0 Isn't it fully connected ? -------------------------------- set ns [new Simulator] $ns color 1 Blue $ns color 2 Red $ns color 3 Orange # Open the trace files set tracefile1 [open out.tr w] $ns trace-all $tracefile1 # Open a 'finish' procedure proc finish {} { global ns tracefile1 namfile $ns flush-trace close $tracefile1 close $namfile exit 0 } # Create 6 nodes set n0 [$ns node] set n1 [$ns node] set n2 [$ns node] $n0 label Master $n1 label Slave1 $n2 label Slave2 # Create links between the nodes $ns simplex-link $n0 $n1 25Mb 0ns DropTail $ns simplex-link $n1 $n2 25Mb 0ns DropTail $ns simplex-link $n2 $n0 25Mb 0ns DropTail $ns simplex-link-op $n0 $n1 orient right-up $ns simplex-link-op $n1 $n2 orient right-down $ns simplex-link-op $n2 $n0 orient down set most0 [new Agent/MOST] $ns attach-agent $n0 $most0 set most1 [new Agent/MOST] $ns attach-agent $n1 $most1 set most2 [new Agent/MOST] $ns attach-agent $n2 $most2 $ns connect $most0 $most1 $ns connect $most1 $most2 $ns connect $most2 $most0 $ns at 0.1 "$most0 start" $ns at 10.0 "finish" $ns run