I am using NS2 to simulate a reactive routing protocol. I want to send cbr traffic in a MANET.
The design of the buffer is based on a map which key is dir ip and the second elment is a vector, where packets are stored. I copy the first packet in a buffer in order to send it before the source has found the route. As you can see, the next line launch the route discovery process: D 45.000000000 _3_ RTR NRTE 158 cbr 90 [0 0 0 0] ------- [3:0 0:0 32 0] [0] 0 0 In the trace I can see that the packet is ready for sending: s 46.723228090 _3_ RTR --- 158 cbr 90 [0 0 0 0] ------- [3:0 0:0 32 0] [0] 0 0 This code works correctly, but the problem is when I want to send the packet stored in my map. because it does not reach the MAC layer. And consecuently it is not sent. And the end of the trace I get the following line: D 105.000000000 _3_ IFQ END 158 cbr 90 [0 0 3 800] ------- [3:0 0:0 32 0] [0] 0 0 Has anyone ever experienced this problem too? Thanks in advance Sara