Probléme patch wimax

Fermé
Hajmimou Messages postés 3 Date d'inscription dimanche 22 mai 2011 Statut Membre Dernière intervention 22 mai 2011 - 22 mai 2011 à 00:39
Bonjour,
j'ai installé ns2.31 ,et j'ai essayé d'installer le patch du Wimax à partir les étapes suivantes :
a- Using the ns-allinone installation

step1: install the patch by running "patch -p0 <patch-ns-2.31-041707" from the ns-allinone-2.31 directory.

step2: re-run "./configure ; make clean ; make" in the ns-2.31 directory.



b- From the ns-2.31 directory

step1: install the patch by running "patch -p1 <patch-ns-2.31-041707"

step2: re-run "./configure ; make clean ; make" in the ns-2.31 directory.
Mais, lorsque j'ai fait l'éxecution de script suivant:
set val(chan) Channel/WirelessChannel ;# channel type

set val(prop) Propagation/TwoRayGround ;# radio-propagation model

set val(netif) Phy/WirelessPhy ;# network interface type

set val(mac) Mac/802_16 ;# MAC type

set val(ifq) Queue/DropTail/PriQueue ;# interface queue type

set val(ll) LL ;# link layer type

set val(ant) Antenna/OmniAntenna ;# antenna model

set val(ifqlen) 50 ;# max packet in ifq

set val(nn) 3 ;# number of mobilenodes

set val(rp) DSDV ;# routing protocol

set val(x) 628 ;# X dimension of topography

set val(y) 490 ;# Y dimension of topography

set val(stop) 6.0 ;# time of simulation end

#===================================

# Initialization

#===================================

#Create a ns simulator

set ns [new Simulator]



#Setup topography object

set topo [new Topography]

$topo load_flatgrid $val(x) $val(y)

create-god $val(nn)



#Open the NS trace file

set tracefile [open 2ss.tr w]

$ns trace-all $tracefile



Mac/802_16 set channelSize_ 20

Mac/802_16 set modulation_ 0

Mac/802_16 set codeRate_ 0



#Open the NAM trace file

set namfile [open 2ss.nam w]

$ns namtrace-all $namfile

$ns namtrace-all-wireless $namfile $val(x) $val(y)

set chan [new $val(chan)];#Create wireless channel



#===================================

# Mobile node parameter setup

#===================================

$ns node-config -adhocRouting $val(rp) \

-llType $val(ll) \

-macType $val(mac) \

-ifqType $val(ifq) \

-ifqLen $val(ifqlen) \

-antType $val(ant) \

-propType $val(prop) \

-phyType $val(netif) \

-channel $chan \

-topoInstance $topo \

-agentTrace ON \

-routerTrace OFF\

-macTrace ON \

-movementTrace OFF



#===================================

# Nodes Definition

#===================================

#Create 3 nodes

set n0 [$ns node]

$n0 set X_ 466

$n0 set Y_ 338

$n0 set Z_ 0.0

$ns initial_node_pos $n0 20

set n1 [$ns node]

$n1 set X_ 528

$n1 set Y_ 390

$n1 set Z_ 0.0

$ns initial_node_pos $n1 20

set n2 [$ns node]

$n2 set X_ 518

$n2 set Y_ 293

$n2 set Z_ 0.0

$ns initial_node_pos $n2 20



#===================================

# Agents Definition

#===================================

#Setup a UDP connection

set udp0 [new Agent/UDP]

$ns attach-agent $n1 $udp0

set null2 [new Agent/Null]

$ns attach-agent $n0 $null2

$ns connect $udp0 $null2





#Setup a UDP connection

set udp1 [new Agent/UDP]

$ns attach-agent $n2 $udp1

set null3 [new Agent/Null]

$ns attach-agent $n0 $null3

$ns connect $udp1 $null3







#===================================

# Applications Definition

#===================================

#Setup a CBR Application over UDP connection

set cbr1 [new Application/Traffic/CBR]

$cbr1 attach-agent $udp1

$cbr1 set packetSize_ 100

$cbr1 set rate_ 12.0Mb

$cbr1 set random_ null

$ns at 2.0 "$cbr1 start"

$ns at 3.0 "$cbr1 stop"



#Setup a CBR Application over UDP connection

set cbr2 [new Application/Traffic/CBR]

$cbr2 attach-agent $udp0

$cbr2 set packetSize_ 100

$cbr2 set rate_ 10.0Mb

$cbr2 set random_ null

$ns at 1.0 "$cbr2 start"

$ns at 5.0 "$cbr2 stop"





#===================================

# Termination

#===================================

#Define a 'finish' procedure

proc finish {} {

global ns tracefile namfile

$ns flush-trace

close $tracefile

close $namfile

exec nam out.nam &

exit 0

}

for {set i 0} {$i < $val(nn) } { incr i } {

$ns at $val(stop) "\$n$i reset"

}

$ns at $val(stop) "$ns nam-end-wireless $val(stop)"

$ns at $val(stop) "finish"

$ns at $val(stop) "puts \"done\" ; $ns halt"

$ns run

Il m'affiche les erreurs suivants:
invalid command name "Mac/802_16"
while executing
"Mac/802_16 set channelSize_ 20"
(file "2ss.tcl" line 35)


Est ce que quelq'un pouvez m'aider pour resoudre ça ?????

Merci d'avance !!!!!!!!!!!