Default Transmission Delay Model (dra_txdel)
This section describes the functionality and implementation of the default model occupying stage one of the Radio Transceiver Pipeline. This model is named dra_txdel. The source code is provided in the file dra_txdel.ps.c, which resides in the <reldir>/models/std/wireless directory.
Invocation Context
The Transmission Delay Model is invoked by the Simulation Kernel immediately upon the start of a packet transmission. Its purpose is to compute the time required for the radio transmitter of interest to completely process and transmit the packet. This is the simulated time interval separating the beginning of transmission of the first bit and the end of transmission of the last bit of the packet.
The result of the Transmission Delay Model invocation for each packet is a single double precision floating point value which represents the transmission delay for the packet. The Simulation Kernel expects that this result will be placed in the packet’s OPC_TDA_RA_TX_DELAY transmission data attribute.
Transmission Delay Computation
For all transmitted packets, the transmission delay is computed based on the channel data rate and the length of the packet. dra_txdel first obtains the data rate of the channel which is available in the OPC_TDA_RA_TX_DRATE transmission data attribute of the packet. The packet’s length in bits is obtained and divided by the data rate to obtain transmission delay. This value is stored in the OPC_TDA_RA_TX_DELAY attribute of the packet as the final result of the procedure.