Professional Documents
Culture Documents
Test Arq Be
Test Arq Be
tcl
# Test for 802.16 scheduler.
# @author Xingting Guo
# @date 06/01/2008
# Test file for wimax
# Scenario: Communication between MN and Sink Node with MN attached to BS.
#
Using grep ^r out.res | grep MAC | grep -c cbr you can see the number of
Using grep ^s out.res | grep MAC | grep -c cbr you can see the number of
# Topology scenario:
#
|-----|
| MN0 |
|-----|
(^)
|--------------|
| Base Station |
|--------------|
|-----------|
| Sink node |
|-----------|
; 1.0.1
; 1.0.0
; 0.0.0
set packet_size
1500
set output_dir .
set gap_size 0.05 ;#compute gap size between packets
puts "gap size=$gap_size"
set traffic_start 20
set traffic_stop 25
set simulation_stop 50
set diuc 7 ;#modulation for MNs
20
20
Test arq BE.tcl 2
.3
.3
10e+6
10000
Channel/WirelessChannel
;# channel type
set opt(prop)
Propagation/OFDMA
;# radio-propagation model
set opt(netif)
Phy/WirelessPhy/OFDMA
set opt(mac)
set opt(ifq)
set opt(ll)
set opt(ant)
Mac/802_16/BS
;# MAC type
Queue/DropTail/PriQueue
LL
Antenna/OmniAntenna
set opt(ifqlen)
50
;# antenna model
;# routing protocol
set opt(x)
1100
set opt(y)
1100
;# domain number
;# cluster number for each domain
# Create God
create-god [expr ($nb_mn + 2)]
sink node)
-phyType $opt(netif) \
-channel [new $opt(chan)] \
-topoInstance $topo \
-wiredRouting ON \
-agentTrace ON \
-routerTrace ON \
-macTrace ON \
-movementTrace OFF
#puts "Configuration of base station"
$wl_node_($i) random-motion 0
;# debug info
if { $direction == "ul" } {
$ns attach-agent $wl_node_($i) $udp_($i)
} else {
$ns attach-agent $sinkNode $udp_($i)
}