- Home Page of ProjectGuideline.com ›
- Forums ›
- Get Help to do your B.E., and M.E., M.Tech., & M.S., Project in Ns2 ›
- how to introduce error model in manet?
I am doin my project on manet. i want to compare various variants of TCP so please help me on how to introduce error model in manet?
email: [email protected]
Set the required error rate in a variable
set ErrorRate 0.15
write a procedure to set error rate
proc UniformErr {} {
global ErrorRate
set err [new ErrorModel]
$err unit packet
$err set rate_ $ErrorRate
$err drop-target [new Agent/Null]
return $err
}
Call the procedure while creating the MANET node.
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)
-topoInstance $topo
-agentTrace ON
-routerTrace ON
-macTrace ON
-movementTrace ON
-IncomingErrProc UniformErr