Wimaxrun TCL
Wimaxrun TCL
Wimaxrun TCL
if {$argc < 4} {
puts ""
puts ""
exit 1
#read arguments
if {$use_going_down == 1} {
} else {
set nb_mn 1
Mac/802_16 set t21_timeout_ 0.02 ;#max 10s, to replace the timer for looking at preamble
set output_dir .
set traffic_start 10
set traffic_stop 150
set use_voice 0
set use_video 1
proc finish {} {
$ns flush-trace
close $tf
exit 0
$ns use-newtrace
lappend eilastlevel 2 [expr ($nb_mn+2)] [expr ($nb_mn+2)];# number of nodes for each cluster
(1 for sink and one for mobile nodes + base station
# Create God
-llType $opt(ll) \
-macType $opt(mac) \
-ifqType $opt(ifq) \
-ifqLen $opt(ifqlen) \
-antType $opt(ant) \
-propType $opt(prop) \
-phyType $opt(netif) \
-topoInstance $topo \
-wiredRouting ON \
-agentTrace ON \
-routerTrace ON \
-macTrace ON \
-movementTrace OFF
$bstation random-motion 0
#set the scheduler for the node. Must be changed to -shed [new $opt(sched)]
$bs_sched set-contention-size 5
$bstation2 random-motion 0
#set the scheduler for the node. Must be changed to -shed [new $opt(sched)]
if {$other_node == 1} {
set m_node_(0) [$ns node 1.0.1] ;# create the node with given @.
#set the scheduler for the node. Must be changed to -shed [new $opt(sched)]
set m_node_(1) [$ns node 2.0.1] ;# create the node with given @.
$m_node_(1) random-motion 0 ;# disable random motion
#set the scheduler for the node. Must be changed to -shed [new $opt(sched)]
set wl_node_($i) [$ns node 1.0.[expr $i + 2]] ;# create the node with given @.
if {$i == 0} {
$ns at $tmp "$wl_node_($i) setdest 2200.0 1000.0 2.0" ;#100 to get out of cell 2
} else {
#set the scheduler for the node. Must be changed to -shed [new $opt(sched)]
if {$i == 0} {
$handover nd_mac $nd_mn [$wl_node_($i) set mac_(0)] ;#to know how to send RS
$handover connect-mih $mih ;#create connection between MIH and iface management
##configure traffic
#sinkNode is transmitter
if {$use_video == 1} {
if {$use_voice == 1} {
# install MIH in BS
# ND in wireless lan
# Traffic scenario: here the all start talking at the same time
if {$use_video == 1} {
if {$use_voice == 1} {
$ns run