Urgent NS2 Help: Error Model in Wireless

55 views
Skip to first unread message

lopince

unread,
May 14, 2022, 10:49:11 PM5/14/22
to Network Simulator 2 (NS2)
Hi, I'm the beginner of NS2. 
I'm using the error model to simlatue the packet error in wireless system.
But since I set the error rate to 1, the simulation can still work. It seem that the error model could not raise the mac layer retransmission, and the wireless system did not crash.

The error model code I used:
set loss_module [new ErrorModel] 
$loss_module set rate_ 0.01
$loss_module unit pkt
$loss_module ranvar [new RandomVariable/Uniform]
$loss_module drop-target [new Agent/Null]
$ns node-config -IncomingErrProc  $loss_module  -OutgoingErrProc $loss_module

So can you provide some example can simulate the above scenario.

knudfl

unread,
May 15, 2022, 1:34:33 AM5/15/22
to Network Simulator 2 (NS2)
Hi.

The "3000 simulations ex package"  all_tcl-examples-5.tar.xz
https://drive.google.com/file/d/1tptvzNOYJWeoA28Vm92sFIl0w1_qMAvi/view?usp=sharing
..... checking for your settings .....
$ cd 000-All-examples-5/
$ grep -ni "loss_module ranvar" * > ../Errormodel/2022.txt
$ grep -ni "set loss_module" * >> ../Errormodel/2022.txt
$ grep -ni "loss_module set rate" * >> ../Errormodel/2022.txt
$ grep -ni "loss_module unit pkt" * >> ../Errormodel/2022.txt
$ grep -ni "loss_module drop-target" * >> ../Errormodel/2022.txt

Examples with most 'Errormodel' settings are the LTE examples "bic1-***"
Reply all
Reply to author
Forward
0 new messages