[Ns-developers] [Fwd: Re: tag rework for next release]

Ruben Merz ruben at net.t-labs.tu-berlin.de
Thu Mar 26 23:53:10 PDT 2009


If we start from Mathieu's proposal to have a RadioChannel class, then 
we would have the following, right?

MAC class
     |
PHY class
     |
RadioChannel class

Actually, we could even have the following

MAC class
     |
PHY class
     |
RF class
     |
RadioChannel class

The RF class could contain the antenna radiation pattern and other weird 
stuff that could be implemented at some point.

A MAC, PHY and RF class could be technology specific with an 80211MAC, 
an 80211PHY or a BluetoothMAC and BluetoothPHY.

Now, for setting the parameters, say the transmission power or 
frequency, why not calling a setTxPower or setTxFrequency from the MAC 
before a call to send()? Instead of a send() with lots of parameters.
For instance, at the transmitter side, before sending a packet to the 
lower layer, you set the parameters first.

Of course, you still need a way at the receiver side to get the 
parameters with which the packet was sent. But, IMHO, having the MAC 
setting the parameters of the PHY and letting the receiver have a way to 
know what were the transmission parameters of a packet are two different 
things.

Ruben

On 3/26/09 1:55 PM, Mathieu Lacage wrote:
> oops, forgot to CC ns-dev


More information about the Ns-developers mailing list