Hi Helber, Thanks for the prompt response. Actually, I am looking for the code in ns2 (source code) where we can detect collisions. I want to simulate interference, so I need to get the packets that were received at the same time on some node. I know interference happens on the physical layer, but I think it would be much more easier to implement it on the MAC in ns2. So I am actually looking the source code part that says here is another packet being transmitted while receiving another packet ( which is collision if both packets are meant for the same receiver, and interference if both packets belong to the same (or an adjacent) channel. Can you help with that ? cheers,
On Tue, Nov 11, 2008 at 8:35 PM, Helber Wagner <[EMAIL PROTECTED]>wrote: > Hi, Imad. > > As far as I understood your question, you should analyze the trace file > generated > by your simulations. > > If the MAC trace is enabled in your .tcl file, it will be a row like "D > ... COL ..." > indicating the time, the node, the packet and other information about a > collision > that has been happened. > > Finally, a simple perl/awk script can retrieve this information from the > trace file. > > You can find more about mac trace in NS2 over the Internet. > > Good luck. > > --- > Helber Wagner da Silva > Federal University of Ceará - Brazil > URL: www.great.ufc.br/~helberhws <http://www.great.ufc.br/%7Ehelberhws> > > > > ------------------------------ > *De:* Imad Abdeljaouad <[EMAIL PROTECTED]> > *Para:* "[email protected]" <[email protected]> > *Enviadas:* Terça-feira, 11 de Novembro de 2008 23:17:46 > *Assunto:* [ns] collisions in 802.11 or interference > > > Hello there, > I am looking for the code where collisions in 802.11 occur so that I know > which packet(s) collided and for how long they collided? this is a step in > trying to implement interference! > thank you! > > -- > best regards, > ________________________ > Imad Abdeljaouad > > ------------------------------ > Novos endereços, o Yahoo! que você conhece. Crie um email > novo<http://br.rd.yahoo.com/mail/taglines/mail/*http://br.new.mail.yahoo.com/addresses>com > a sua cara @ > ymail.com ou @rocketmail.com. > -- best regards, ________________________ Imad Abdeljaouad
