[ns] WFQ Error in Wireless simulation

Abhishek Maheshwari abh2001mah at gmail.com
Sun Mar 12 13:55:11 PST 2006


Dear All,
I am trying to use wfq ext (designed for Wired simulations) in
Wireless scenarios. After doing all the necessary modifications needed
for wireless simualtion, I am getting folowing error:

Usually Queue/DropTail/PriQueue used in Wireless simulation. I am
using Queue/WFQ for wfq simualtions. I did some more modifications in
ns-lib.tcl and ns-mobilenode.tcl. Assuming only 2 node (index 0 and 1)
are in my simuation, Flow is CBR from 0->1 with flow-id=2.

In the beginning for simulation, node 1 sends a packet with "flow-id=0
and dst=-1" and this packet doesn't touch any queue at all rather
scheduling of this packet calls WirelessChannel::sendUp(Packet* p, Phy
*tifp) .. and this packet is recved by node 0. After this the
simulation goes fine (i.e. packets generated with flow id 2 with dst
1)

BUT in the case of WFQ simulation, the same packet touches my WFQ
queue and my wfq Queue does not find any class related to
flow-id(=0)[because my cbr flow-id is 2] .. How to bypass this first
packet with WFQ simulations ? I hope that once this first packet
bypass is done my simulation will go smoothly :)

Thanks in advance :)
Abhishek.
--



More information about the Ns-users mailing list