[ns] Introduce delay in passing packet to Link Layer
samira.niafar@gmail.com
samira.niafar at gmail.com
Wed Jul 16 02:33:10 PDT 2008
hi
Although there is a field delay_ in the parent class MAC which simulates the
MAC computational overhead, it is not used for any simulation in ll or
mac-802.11. So if a MAC layer overhead needs to be simulated, the delay_ field
needs to be inserted at 2 places:
{ simulating the send down overhead in transmit(): replacing
downtarget_->recv(p->copy(),this) to
s.schedule( sometimer ,p->copy(),delay_): the sometimer is a Handler or
TimerHandler
whose expiring would call the downtarget_->recv();
{ simulating the send up overhead in recvDATA(): replacing
uptarget_->recv(p,(Handler*)0) to
s.schedule( sometimer, p, delay_);
above changes will inserted at mac_802.11.
--------------
Samira Niafar
Iran University of Science and Technology
--
Sincerely
Samira Niafar
Iran University of Science and Technology
More information about the Ns-users
mailing list