Are the MAC packets meant to go into the interface queue? Yes, they can is what I gathered from the documentation of NS2. But the codes in priority queue are not able to detect that the obtained packet is a MAC packet. I have tried with CMUPriQueue and PriQueue as well but encountered the same problem in both the cases. Please help me in this regard.