[ns] Fw:Re: How to shut down a mobile node

2009-05-03 Thread realoneone
nd) { struct hdr_cmn *hdr = HDR_CMN(p); hdr->error() = 1; } //... original code below } hi I have the same problem . Please can you give the change you did In mac/mac-802_11.cc thanks in advance De : realoneone À : ns-users@ISI.EDU Envoyé le : Jeudi, 30 Avril 2009, 1h51mn 08s Objet : Re: [ns] How to sh

Re: [ns] How to shut down a mobile node

2009-05-03 Thread realoneone
regarding this, does the shuted down node continue to consume energy? > >--- El mié 29-abr-09, realoneone  escribió: >De: realoneone  >Asunto: Re: [ns] How to shut down a mobile node >Para: ns-us...@isi.edu >Fecha: miércoles, 29 de abril de 2009, 10:51 pm > >Hi there, > &g

Re: [ns] How to shut down a mobile node

2009-04-29 Thread realoneone
Hi there, Though I had problems by just using "on/off" command of the mobile nodes, I finally used a tricky way to "shut down" some nodes at certain time: In mac/mac-802_11.cc, I added a few lines in the beginning of transmit() and recv(), which stop transmitting/receiving the packet depending

[ns] How to get the MAC ACK packets from within a routing protocol?

2009-04-29 Thread realoneone
Hi there, I want to be aware of the MAC ACK in my own routing protocol, do you have any idea? In the recv() function of my protocol, I tried to test the ptype filed in the common header against "PT_ACK" , but there is no results. I guess I need some cross-layer techniques to accomplish that.

Re: [ns] extract data from trace output files

2009-04-25 Thread realoneone
Hi Rania, I found the awk scripts related to the trace analysis very useful on this page: http://hpds.ee.ncku.edu.tw/~smallko/ns2/ns2.htm Best, Ryan 在2009-04-26 05:00:16,"Rania Kamal"  写道: > >hi all >i simulate gpsr protocol and i get trace o/p file how can i draw a relationship between packet

Re: [ns] 802.11p WAVE Code/Patch?

2009-04-23 Thread realoneone
Hi Syed, Just search "802.11p" in this page: http://hpds.ee.ncku.edu.tw/~smallko/ns2/ns2.htm Best, Ryan 在2009-04-23?17:40:34,"Syed?Faraz?Hasan"??写道: > >Hi?everybody! > >Can?some?one?please?provide?me?with?the?code?of?802.11p?WAVE.?I?think?it?is?available?in?80211p_Performance.tcl?but?I?don

[ns] How to shut down a mobile node

2009-04-22 Thread realoneone
Hi there, I tried to disable some mobile nodes during the simulation(i.e. it can't receive or send any packets), but I don't know how. Any one met with this problem before? Thanks! I've tried the mobile node command "on"/"off", but saw the following error msg. BTW, My mobile node runs my own