[ns] multi state error model in mobile ip3
squal xenogear
ses_bada2000 at yahoo.com
Wed Apr 13 01:01:58 PDT 2005
hello ns users,
I just want to know if any one know how to insert
multi-state error model in the mobile ip (mip)
environment in the ns simulator(the wireless part).
## wireless-mobileIP-simulation
# o W1 WIRED
NODES
# |
# o W2
# / \
# / \
#--*--*--*--*--*--*- o o base-stn nodes
--*-*-*-*-*-*-*-
# HA FA
# o
# o WL o WIRELESS
NODE MOVING
# WL WL FROM HA TO FA.
#
#
The following is how to create the error model =
***create multi-state error model:
#set tmp [new ErrorModel/Uniform 0 pkt]
set tmp1 [new ErrorModel/Uniform .9 pkt]
set tmp2 [new ErrorModel/Uniform .5 pkt]
# Array of states (error models)
set m_states [list $tmp $tmp1 $tmp2]
# Durations for each of the states, tmp, tmp1 and
tmp2, respectively
set m_periods [list 0 .0075 .00375]
# Transition state model matrix
set m_transmx { {0.95 0.05 0}
{0 0 1}
{1 0 0} }
set m_trunit pkt
# Use time-based transition
set m_sttype time
set m_nstates 3
set m_nstart [lindex $m_states 0]
set em [new ErrorModel/MultiState $m_states
$m_periods $m_transmx \\
$m_trunit $m_sttype $m_nstates $m_nstart]
****************************
what i need is how to insert this model in the packet
data path ( for wireless part of the mip, the packets
that is received to the mobile host)
i think that is simple and i need just a guide (eg.
example script of inserting an error model in the data
path in wireless environment).
please if any one can advice me any thing ,i'll be so
greatfull.
thank you very much for your help and support.
i simulate in ns 2.27
please help me
Please~~~~near to the deadline..
Best regards,
________________________________________________________________________
Yahoo! Messenger - Communicate instantly..."Ping"
your friends today! Download Messenger Now
http://uk.messenger.yahoo.com/download/index.html
More information about the Ns-users
mailing list