Bit Error Rate (BER) Calculation

Receiver sensitivity is the minimum signal strength that a receiver can detect. In NetSim, if the received signal power is higher than the receiver sensitivity, then the signal is decoded with its BER calculated from the SINR-BER formulas/tables given in this section.

Note that the BER source codes are not open for user modification. If a user wishes to change the BER then they can comment NetSim’s BER function call and write their own function. This can be written in C or it can be written in MATLAB (and a call made to MATLAB from NetSim).

\[SINR\ (dB) = RxPower(dBm) - (Noise + Interference)(dBm)\]
\[Noise = k \times Temp\ \times Bandwidth\]
\[SINR(linear) = 10^{\frac{SINR\ (dB)}{10}}\]
\[\frac{E_{b}}{N_{0}} = \frac{\left( \frac{P \times T_{s}}{M} \right)}{\left( \frac{N + I}{W} \right)} = \frac{(SINR \times W)}{\left( \frac{M}{T_{s}} \right)} = SINR(Linear) \times \frac{ChannelBandwidth(Hz)}{ChannelDataRate(bps)}\]

Thus,

\[\frac{E_{b}}{N_{0}} = \ \frac{SINR(Linear) \times ChannelBandwidth}{DataSymbolRate(kBd) \times ModulationOrder \times CodeRate}\]

Where \(P\) is the received power, \(T_{s}\) is the symbol duration, \(M\) is the modulation order, \(N\ \)is noise,\(\ I\ \)is interference and \(W\) is the channel bandwidth. An implication of this calculation is that the coding gain equals the reciprocal of the code rate. This is an approximation.

BER Calculation for QAM

Computation of the exact bit error rate (BER) for square M-ary QAM (8, 16, 32, 64, 128 and 256 QAM) is based on [2]

\[P_{b} = \frac{1}{\log_{2}\sqrt{M}}\sum_{k = 1}^{\log_{2}\sqrt{M}}{P_{b}(k)}\]

where

\[P_{b} = \frac{1}{\sqrt{M}}\sum_{j = 0}^{\left( 1 - 2^{- k} \right).\sqrt{M} - 1}\left\lfloor ( - 1)^{\left\lfloor \frac{{j.2}^{k - 1}}{\sqrt{M}} \right\rfloor}.\left( 2^{k - 1} - \left\lfloor \frac{{j.2}^{k - 1}}{\sqrt{M}} - \frac{1}{2} \right\rfloor \right).erfc\left( (2.j + 1)\sqrt{\frac{3\left( \log_{2}M \right).r}{2(M - 1)}} \right) \right\rfloor\]

and

\[r = \ \frac{E_{b}}{N_{0}}\]

BER Calculation for DQPSK, O-QPSK and QPSK

\[BER = 0.5 \times ERFC\ \left( 0.5 \times \frac{E_{b}}{N_{0}} \right)^{\frac{1}{2}}\]

NOTE: The 802.15.4 2003 and 802.15.4 2006 standards used the formula

\[BER = \ \frac{8}{15} \times \frac{1}{16} \times {\sum_{k}^{}{{( - 1)}^{k}\binom{16}{k}}e}^{- 20 \times SINR \times \left( \frac{1}{k} - 1 \right)}\ \\]

for O-QPSK which has since been changed.

BER Calculation for DBPSK and BPSK

\[BER = 0.5 \times ERFC\ \left( \frac{E_{b}}{N_{0}} \right)^{\frac{1}{2}}\]

BER Calculation for LTE

In the case of LTE an SNR-BER table is looked up for each MCS.

SINR-PER Curves for 802.11g

_images/Figure-1.png

Figure-1: PER – SINR Combined Curve for all PHY rates

We get the BER by looking up the SINR-PER curves. Then \(PER = 1\ - (1 - BER)^{L}\) where \(L = 1512 \times 8\). The Figure-1 plot was obtained from the NetSim function used to calculate BER in IEEE 802.11 Phy.c

Calculate_ber_by_calculation (double sinr, PHY_MODULATION modulation,double dataRate_mbps, double bandwidth_mHz)

_images/Figure-2.png

Figure-2: 802.11g/n PER – SINR Individual Curves for each PHY rate (MCS)

References

[1] G. Marsaglia and W. W. Tsang, "A Simple Method for Generating Gamma Variables," ACM Transactions on Mathematical Software, 2000.

[2] Y. Dongweon, K. Cho and J. Lee, "Bit Error Probability of M-ary Quadrature Amplitude Modulation," in IEEE Vehicular Technology Conference Fall 2000, Boston, 2000.