[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [ns] Is it possible ?!!!
You should be really careful using Simulator::lossmodel{}, which assumes a
WIRED link structure but understands nothing about a wireless link. You
should perhaps look for ways to directly insert an error model into a
wireless link, but at the top of my mind I don't know how.
- Haobo
On Wed, 31 Jan 2001, Al-kahtani wrote:
> hi ns experts,
> Sorry for repeating this question.
> It is most urgent to complete my simulation.
> I am doing little research by using ns-2.1b7a on Linux machine.
> I tried to build Error Model in wireless simulation but it gave me error.
> The following are the model and the error
>
> I would appreciate your help very much
> Thanks
>
> THE BASIC MODEL:
>
> source ns-errmodel.tcl
> set emm [new ErrorModel ]
> $emm unit pkt
> $emm set rate_ 0.2
> $emm ranvar [new RandomVariable/Uniform]
>
> $emm drop-target [new Agent/Null]
> $ns_ lossmodel $emm $node_(6) $node_(7)
>
> THE ERROR:
>
> invalid command name ""
> while executing
> "$link errormodule $lossobj"
> (procedure "_o4" line 3)
> (Simulator lossmodel line 3)
> invoked from within
> "$ns_ lossmodel $emm $node_(6) $node_(7)"