Default Error Allocation Model (dpt_error)
This section describes the functionality and implementation of the default model occupying stage two of the Point-to-Point Link Transceiver Pipeline. This model is named dpt_error. Source code is provided in the file dpt_error.ps.c, which resides in the <reldir>/models/std/links directory.
Invocation Context
Packets transmitted on a point-to-point link may be subjected to a stochastic application of bit-errors. Bit errors are typically the only source of transmission failure on point-to-point links. Stage two of the transceiver pipeline is used to allocate errors for each transmitted packet. The procedure installed in this stage is called at the time where packet reception completes (i.e, the last bit of the packet is received). The Simulation Kernel expects this stage to compute the number of bit errors affecting the packet and return this integer value in the packet's OPC_TDA_PT_NUM_ERRORS transmission data attribute.
Error Allocation Algorithm
The dpt_error error allocation model is identical in form to the dbu_error model presented in Pipeline Stages/Bus Link, though the names of the TDA fields used to access information in the transmitted packet differ slightly. The error allocation algorithm is not repeated here. See Default Error Allocation Model (dbu_error) for a detailed explanation of dbu_error, which is applicable to dpt_error's implementation.