Default Error Correction Model (dra_ecc)
This section describes the functionality and implementation of the default model occupying stage thirteen of the Radio Transceiver Pipeline. This model is named dra_ecc. The source code is provided in the file dra_ecc.ps.c, which resides in the <reldir>/models/std/wireless directory. An alternate version of this stage, for networks not using receiver channel state information, is in the file dra_ecc_no_rxstate.ps.c.
Invocation Context
The error correction model is the final stage of the Radio Transceiver Pipeline, and is called after the allocation of errors for the last packet segment. The simulation time at invocation corresponds to the end of packet reception (i.e., the time at which the last bit of the packet has been received).
The result of the error correction model for each received packet is a single Boolean value (i.e., OPC_TRUE or OPC_FALSE) which represents the acceptability of the packet in the destination node. A result of OPC_FALSE indicates to the Simulation Kernel that the packet should be dropped, while a result of OPC_TRUE indicates that the packet should be accepted. The Simulation Kernel expects this result to be placed in the packet’s OPC_TDA_RA_PK_ACCEPT transmission data attribute.
Acceptability Test
dra_ecc determines whether a packet can be accepted by the receiver based on the application of two criteria. The first test has to do with packets that might not have been transmitted in full due to a decision at the source to abort the transmission. Truncated packets, or runts as they are sometimes called, are filtered out as unacceptable. The second test compares the proportion of bit errors occurring in the packet and the error correction threshold of the receiver.