[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Error model help!



There have been a bunch of fixes to the multistate error model since
2.1b4 by Eddie Hsu ([email protected]) and  PAN Jianping
([email protected]). You may want to try get related files from
current release, or get their patches from the mailing list archive
http://www-mash.cs.berkeley.edu/dist/archive/ns-users/9908/0257.html
http://www-mash.cs.berkeley.edu/dist/archive/ns-users/9805/0023.html

- Haobo

On Thu, 24 Feb 2000, jamester wrote:

> I am trying to use multistate error model in ns version 2.1b4.  However I am
> having a bit of trouble.  Packets are not dropped.  I hope you could help me on
> this matter.
> 
> set tmp [new ErrorModel/Uniform .04 pkt]
> set tmp1 [new ErrorModel/Uniform .4 pkt]
> 
> set m_states [list $tmp $tmp1]
> set m_transmx { {0.95 0.05 } {0.7 0.3} }
> 
> set m_trunit pkt
> set m_nstates 2
> 
> set m_nstart [lindex $m_states 0]
> set em [new ErrorModel/MultiState $m_states $m_transmx $m_trunit $m_nstates $m_nstart]
> 
>  $ns lossmodel $em $node(1) $node(2)
> 
> There is a duplex link between node 1 and 2.
> I think everything is set and packets should drop.  But no packet seems to be
> dropping.  Any help on this matter would be greatly appreciated.
> Thanks
> 
> -James Kwon
> 
> 
> 
> 
> 
>