[Ns-developers] tag rework for next release

Nicola Baldo nbaldo at cttc.es
Thu Mar 26 05:01:11 PDT 2009


Hi,


>> Are the new "packet tags" suitable for handling PHY layer metadata? I am 
>> thinking of all the parameters which are currently passed as parameters 
>> to WifiPhy::SendPacket(). Can we put those parameters in a packet tag 
>> instead?
> 
> You could, but really, I can't see why you would do this. How would
> hiding all the parameters be an improvement over making them explicit ?
> 

I am trying to develop a technology-independent channel. Passing 
explicitly to the channel parameters such as WifiMode and WifiPreamble 
make the channel technology-specific, and I think that the channel has 
no real reason to be technology-specific. Only the PHY needs that 
information, that's why I like the idea of not letting it mess up the 
API between Channel and PHY.

By the way, if we had a PHY header as per the 802.11 standard, then we 
wouldn't need to pass WifiMode and WifiPreamble explicitly.

Nicola




More information about the Ns-developers mailing list