Hi, I want to know how can I effectively choose the "packetSize_" in my tcl file? (I'm simulating WSN with 802.15.4/WPAN's tcl) For example, in "wpan_demo4.tcl", why packetSize = 80 bytes?
proc cbrtraffic { src dst interval starttime } { global ns_ node_ set udp_($src) [new Agent/UDP] eval $ns_ attach-agent \$node_($src) \$udp_($src) set null_($dst) [new Agent/Null] eval $ns_ attach-agent \$node_($dst) \$null_($dst) set cbr_($src) [new Application/Traffic/CBR] eval \$cbr_($src) set packetSize_ 80 eval \$cbr_($src) set interval_ $interval eval \$cbr_($src) set random_ 0 #eval \$cbr_($src) set maxpkts_ 10000 eval \$cbr_($src) attach-agent \$udp_($src) eval $ns_ connect \$udp_($src) \$null_($dst) $ns_ at $starttime "$cbr_($src) start" } while in "wpan_demo1.tcl", "wpan_demo2.tcl" & "wpan_demo3.tcl" packetSize = 70 bytes ? Regards -- View this message in context: http://old.nabble.com/WSN-packet-size-tp27238663p27238663.html Sent from the ns-users mailing list archive at Nabble.com.