It actually does not happen like that. If you keep MAC trace  ON in ur tcl 
script then the downtarget of MAC object is the cmu-trace.cc. Only packet( 
address) from the mac layer is passed to that cmu code. And cmu trace extracts 
information from this particular packet.

If you wish to keep trace any variable inside MAC it is better to open a file 
inside mac code and write the variable directly to that file.

Or if u want to do it by cmu trace as u wished, u have to insert the variable 
into the packet body or header. And later when the packet will reach the 
cmu-trace, extract your expected variable from it. But I shall not suggest u to 
do so because it will deform the standard format of the packet .

--- On Wed, 3/24/10, deepthi p <deepthi.deepr...@gmail.com> wrote:

> From: deepthi p <deepthi.deepr...@gmail.com>
> Subject: [ns] How are mac802.11 packets traced in cmu-trace.cc?
> To: ns-users@ISI.EDU
> Date: Wednesday, March 24, 2010, 12:44 PM
> 
> Hi all,
> 
> I am working on the cmu-trace file to print the backoff
> values in the
> old/new trace files,
> but I am unable to correctly figure out the logical link
> from the mac 802.11
> packets traced into cmu-trace.cc code.
> 
> Could anyone help me regarding this,
> Thanks in advance,
> 
> -- 
> regards,
> deepthi
> 


      

Reply via email to