Keywords

1 Introduction

Polar codes are a major breakthrough in coding theory [1]. In binary-input adaptive white-Gaussian-noise channel (BI-AWGN), successive cancellation (SC) decoding is a vital algorithm can provide an approximate state-of-the-art error probability (EP) for polar codes in a communication system, and its complexity of decoding algorithm is acceptable in all decoding methods. In any error controlled coding strategy, code rate (CR) can adjust the EP. Therefore, many applications have used CR of the codeword to match the reliability of communication. This application is called adaptive code rate control (ACRC) polar codes. ACRC polar coding is also a flexible criteria. Characterized by a CR changes with signal-to-noise ratio (SNR) of T-AWGN channel,Footnote 1 the CR of polar codes can be modified solely by only one generator matrix.

In the normal SC decoding algorithm of polar codes over DMC, rate \( R \), length \( N \) and capacity \( I(W) \) of channel \( W \) are deduced by an inequation (1) [2]:

$$ N \ge \beta /(I(W) - R)^{\mu } , $$
(1)

here \( \beta \) is a constant that depends only on block error probability \( p_{e} \), \( R < I(W) \) and “=” implies a critical state with unreliability [2,3,4,5]. Where in DMC, the capacity \( I(W) \) of channel \( W \) is \( I(W) = \frac{1}{2T}\log (1 + 2R\frac{{E_{b} }}{{N_{0} }}) \), and \( \frac{1}{T} \) is symbol rate of speed. In the inequation (1), one of the three parameters can be calculated from the other two among \( R \), \( N \) and \( p_{e} \). Usually, the calculation method of the inequation is deemed as state of equation. And here “=” also means the state of the maximized CR. Therefore, it is significant to calculate CR in the equation state and weaken a critical state of unreliability. However, as methods of adjustment, the conventional \( \mu = 3.627 \) for binary erasure channel (BEC) [2] and \( \mu = 4.001 \) for AWGN channel [3] are edge states for their equations without guaranteeing reliability. In addition, packet loss rates on \( 10^{ - 3} \) order of voice link are generally acceptable; while for the data link, bit error rate (BER) of \( 10^{ - 6} \) is regarded as acceptable. In this paper, under constraint of acceptable link and adjusting \( \mu \) in inequation (1), we fulfill a maximized CR and achieve a better trade-off between the CR and the communication reliability. And in T-AWGN channel, the CR changes will better match the BER of data communication link constraint.

2 Coding and Reliable CR

2.1 Polar Coding

Polar codes, as a linear block coding scheme, have been proved to achieve the channel capacity at a low encoding and decoding complexity [1]. For polar codes, the generator matrix \( G_{2} \) of size \( 2 \times 2 \) can create the two independent copies of a probability \( W \) with double channels. Where \( G_{2} = \,\left[ {\begin{array}{*{20}c} {1{\mkern 1mu} \;0} \\ {1\;{\mkern 1mu} 1} \\ \end{array} } \right] \). Apply the transform matrix \( G_{2}^{ \otimes n} \) (where “\( \otimes \)” denotes the \( n \)-th Kronecker power) to constructed a codeword with length \( N = 2^{n} \). Data will be changed into polar codes as follow: data bits in the information set \( {\mathcal{A}} \) together with known bits in frozen set \( {\mathcal{A}}^{c} \) compose the un-encoded word \( U = u_{1}^{N} \triangleq (u_{1} ,\,u_{2} , \ldots \,,u_{n} ) \). The encoded code word is generated as the code word: \( UG_{2}^{ \otimes n} = X = x_{1}^{N} \triangleq (x_{1} ,\,x_{2} , \ldots \,,x_{n} ) \). After over T-AWGN channel, the received code word \( Y = y_{1}^{N} \triangleq \)\( (y_{1} ,\,y_{2} , \ldots \,,y_{n} ) \) will be decoded by SC decoder. This procedure is a process of bit-channel combining. This encoding procedure corresponds to transforming N copies of channel \( W \) into a channel combining: \( W_{N} (Y|U) = \prod\nolimits_{i = 1}^{N} {W(y_{i} |x_{i} )} \). Then, in the decoding process, its decomposed bit-channels and channel splitting probability \( P( \cdot ) \) are given by [1]:

$$ W_{N}^{(i)} (y_{0}^{N - 1} ,u_{0}^{i - 1} |u_{i} ) \triangleq P(y_{0}^{N - 1} ,u_{0}^{i - 1} |u_{i} ) = \sum\nolimits_{{u_{i + 1}^{N - 1} }} {\frac{{P(y_{0}^{N - 1} |u_{0}^{i - 1} )P(u_{0}^{i - 1} )}}{{P(u_{i} )}}} = \frac{1}{{2^{N - 1} }} $$

\( \sum\nolimits_{{u_{i + 1}^{N - 1} }} {P(y_{0}^{N - 1} |u_{0}^{i - 1} )} \). And SC decoding with the variable format of log-likelihood ratio (LLR) can be derived from [7]:

$$ {\mathcal{L}}_{N}^{(2i - 1)} (y_{1}^{N} ,\hat{u}_{1}^{2i - 2} ) \simeq {\text{sign}}(\phi ){\text{sign}}(\varphi ){ \hbox{min} }(|\phi |,|\varphi |), $$
(2)
$$ {\mathcal{L}}_{N}^{(2i)} (y_{1}^{N} ,{\mkern 1mu} \hat{u}_{1}^{2i - 2} ) = ( - 1)^{{\hat{u}_{2i - 1} }} \phi + \varphi , $$
(3)

where \( \phi = L_{N/2}^{(i)} (y_{1}^{N/2} ,{\mkern 1mu} \hat{u}_{1,o}^{2i - 2} \oplus \hat{u}_{1,e}^{2i - 2} ) \) and \( \varphi = L_{\,N/2}^{\;(i)} (y_{\,N/2 + 1}^{\;N} ,{\mkern 1mu} \hat{u}_{\,1,e}^{\;2i - 2} ) \). According to formula (1) and (2), the front decoded bits are used to deduce the sequel bits. Then, the LLR of each decoding bit can be decided as [8]. \( {\mathcal{L}}(\hat{u}_{i} ) = ln(\frac{{W_{\,N}^{(i)} (y_{1}^{N} ,\hat{u}_{1}^{i - 1} |0)}}{{W_{N}^{(i)} (y_{\,1}^{N} ,\hat{u}_{1}^{i - 1} |1)}}) \). In the recursive process, the decoding result is decided by

$$ \hat{u}_{i} { = }\left\{ {\begin{array}{*{20}c} 1 & {if} & {{\mathcal{L}}(\hat{u}_{i} ) < 0} \\ 0 & {if} & {{\mathcal{L}}(\hat{u}_{i} ) \ge 0} \\ {u_{i} } & {if} & {i \in {\mathcal{A}}^{c} } \\ \end{array} } \right.. $$

2.2 An Equation and an Inequation

Consider a binary-input DMC channel \( W. \) The channel capacity is \( I(W) \) with any CR of \( R < I(W) \) and strictly block error probability \( p_{e} \), a coding scheme is constructed that allows transmission at \( R \) with an EP not exceeding \( p_{e} \). Ideally, given a family of polar coding, the constraint relationship among the three parameters above. There have been two relationships among these three parameters.

The first one is a universal equation for channel coding as a fellow [6]:

$$ I_{AWGN} - \sqrt {\frac{V}{N}} Q^{ - 1} (p_{e} /RN) + \frac{{{ \log }(N)}}{2N} = R. $$
(4)

where \( V \triangleq \frac{P(P + 2)}{{2(P + 1)^{2} }}\log_{2}^{2} (e) \), \( Q^{ - 1} ( \cdot ) \) is the inverse of Q-function. Due to (4) fitting AWGN channel, the construction polar codes utilized by Gaussian (normal) approximation can well match (4). Inequation (1) is the relation of CR and SNR. \( \mu \) is a defined parameter: Consider the block error probability function \( p_{e} ( \cdot ) \) of SC decoding algorithm. If there is a function \( f \) with a constant \( \mu > 0 \) as Eq. (4), \( \mu \) will be defined to satisfy (4) by [3],

$$ \mathop {\lim }\limits_{{N \to \infty ,N^{1/\mu } (I_{AWGN} - R) = \ell }} P_{N} (R,I_{AWGN} ) = f(\ell ). $$
(5)

\( \mu \) is provided by a heuristic method for computing in BEC by [2]. In [3], the error probability \( E(W) \) of channel \( W \) of the information set \( {\mathcal{A}} \) satisfies \( \sum\limits_{{\exists \varepsilon > 0,i \in {\mathcal{A}}}} {E(W_{N}^{(i)} )} \le \delta \). An inequation \( R < I(W) - \beta N^{{ - \frac{1}{\mu }}} \) can revise a size of \( \mu \). In [4], because of a 0.5 switching probability of the Arikan’s recursions between \( Z_{i + 1} = Z_{i}^{2} \) and \( Z_{i + 1} = 2Z_{i} - \) \( Z_{i}^{2} \), the eigenvalues of the expanded matrix of the recursions help to calculate \( \mu \) in the BEC. Where \( Z \) is Bhattacharyya parameter and \( \delta \) is a constant. \( \mu \) in aforementioned studies can be estimated under the ideal condition. The definition of \( \mu \) in Eq. (3) is also based on the ideal polarization of polar codes. Hence, the sizes of \( \mu \) of the inequation (1) are in critical states when the “=” is established. However, Eq. (2) should aid inequation (1) to enhance the reliability of the transmission.

3 \( \mu \) Calculation with Verification

3.1 Polar Coding

Given an encoding and decoding couple, the key of reliable transmission is characterized by CR. Obviously, the more small CR is adjusted that means the more reliability in transmission. However, this trade-off is subtly based on maximal CR and reliability. Define \( {\mathcal{R}} \) as a CR calculated by inequation (1), \( {\mathcal{R}}^{{\prime }} \) s CR of Eq. (3). Under the same block error probability \( p_{e} \) constraint, \( {\mathcal{R}} \le {\mathcal{R}}^{{\prime }} \) of the same condition will be explained by [10] in AWGN channel. However, based on “=” in (1), \( {\mathcal{R}} \) in (1) means the edge of unreliable transmission. Hence, suppose \( {\mathcal{R}}_{x} \) presents a CR of (1) to escape from the unreliable edge of transmission adjusted by \( \mu \) and based on “=” calculation, there should be \( {\mathcal{R}}_{x} \le {\mathcal{R}} \le {\mathcal{R}}^{{\prime }} \) for ACR criteria of polar codes and \( {\mathcal{R}}_{x} \) is more reliable than others. From the (1) and (2), the deduction is as follows.

Deducing: First, difference of channel capacity:

$$ \Delta I \triangleq I_{AWGN} - R \Rightarrow $$
$$ \Delta I = (\beta /N)^{1/\mu } ,\;\mu > 0,\,\mu_{{\mathcal{R}}} = \mu ,\beta > 0, $$
(6)

Similarly:

$$ 2\Delta I^{{\prime }} \triangleq \sqrt {V/N} Q^{ - 1} (p_{e} /{\mathcal{R}}^{{\prime }} N), $$
(7)

From (6) and (7), we get: \( \Delta I^{{\prime }} \le\Delta I \), and then we can get result of \( {\mathcal{R}}_{x} \le {\mathcal{R}} \le {\mathcal{R}}^{{\prime }} \) as follows:

$$ \begin{aligned} \Delta I^{{\prime }} & \le \Delta I \\ & \quad \Rightarrow \mu_{{\mathcal{R}}} = {{\ln (\beta /N)} \mathord{\left/ {\vphantom {{\ln (\beta /N)} {\ln (\Delta I)}}} \right. \kern-0pt} {\ln (\Delta I)}} \le {{\ln (\beta /N)} \mathord{\left/ {\vphantom {{\ln (\beta /N)} {\ln (\Delta I^{{\prime }} )}}} \right. \kern-0pt} {\ln (\Delta I^{{\prime }} )}} = \mu_{{{\mathcal{R}}^{{\prime }} }} \\ & \quad \Rightarrow {\mathcal{R}}_{x} = I_{AWGN} - (\beta /N)^{{1/\mu_{{{\mathcal{R}}^{{\prime }} }} }} \le {\mathcal{R}} = I_{AWGN} - (\beta /N)^{{1/\mu_{{{\mathcal{R}}^{{\prime }} }} }} \le {\mathcal{R}}^{{\prime }} \\ & \quad \Rightarrow {\mathcal{R}}_{x} \le {\mathcal{R}} \le {\mathcal{R}}^{{\prime }} \\ \end{aligned} $$

Over deducing.

With \( \mu_{{{\mathcal{R}^{\prime}}}} \) to govern the CR changes, \( {\mathcal{R}}_{x} \) means more reliable communication than that of the conventional \( \mu \). Hence, \( {\mathcal{R}}_{x} \) is a suitable CR. Gratified \( p_{e} \) by the transmission over the un-encoded channel, the channel environment will be deemed a noiseless channel on a certain SNR. Hence, if the CR equals to 1, Eq. (4) is still valid, and the size of \( \mu \) is verified by the known CR with SNR. As polar coding scheme, the strategy is the “provably capacity achieving” code scheme and the CR must show \( R \ne 1 \) because of the inevitable redundancy.

3.2 \( \mu \) Calculation

Due to \( \Delta I^{{\prime }} \le \Delta I \), the gap to capacity of \( \Delta I^{{\prime }} \) guarantees to reliably govern changes of ACRC by a size of \( \mu \) in inequation (1). If \( \Delta I^{{\prime }} \) substitutes into inequation (1), \( R \) equals to 1 and \( \beta = \chi p_{e} \), as a fixed coefficient, and \( \chi \in {\mathbb{R}} \) is aided to verify the point of \( R = 1 \). \( \mu \) calculation of polar codes is represented by:

$$ \left. {\hat{\mu } = \frac{{\log ({{p_{e} } \mathord{\left/ {\vphantom {{p_{e} } k}} \right. \kern-0pt} k})}}{{\log (\Delta I^{\prime})}}} \right|_{k = N,R = 1} $$

On \( E_{b} /N_{0} = 13\,{\text{dB}} \) of the AWGN channel, the BER of on-off keying (OOK) modulation, as a modulation scheme, is less than \( 10^{ - 6} \) which is an acceptable communication data link. \( \mu \) equals to 4.639 by calculation of (4) when block length is 2048. As shown in Fig. 1, the calculated \( \mu \) also keeps an independent constant character while the block length approaches infinity in AWGN channel. In Fig. 2, the calculated value of \( \mu \) has shown to govern changes of ACRC as a function \( \beta /(I_{AWGN} - R)^{{\hat{\mu }}} - N \) equals to 0. In [3], Gaussian approximation deduces that \( \mu \) equals to 4.001. However, from Fig. 2, there is not a large difference between the proposed \( \mu \) and the \( \mu = 4.001 \) for the CR changes in AWGN channel. Thus, as block length belongs to finite-block length regime, \( \mu \) will govern the CR changes with a slight preference for the reliability.

Fig. 1.
figure 1

\( \mu \) calculation aided by Eq. (4).

Fig. 2.
figure 2

Changing CR estimation

4 Utilizing RTL Scene to Simulate Polar Codes

More than 70% of total global people will be expected to live in cities by 2050 [9], then, greenhouse gas emissions and energy consumption will increase greatly. As a green communication, the RTL in cities can provide a sufficient light communication service for the waiting, the passing, and other users nearby to alleviate these problems above. Then, a simulation demonstrates an ACRC control of polar codes for RTL wireless transmission in T-AWGN channel environment.

4.1 RTL Physical Scene

The physical scene of the RTL communication system can be shown in Fig. 3. The desired optical and undesirable optical signals travel through air before reaching RTL receiver. Optical filter is used to minimize the ambient-light noise. In RTL system, error performance variation is occurred in whole daytime. Due to daylight wavelength variation on multi-color channel, the daylight passing the optical filter and the sun can be removed but the color channels of green. Then yellow and red from diffuse reflectance from sun are all distributed itself color-light noise.

Fig. 3.
figure 3

RTL physical scene.

4.2 Numerical Results from RTL Simulation

Primarily, we assume that sender and receiver of RTL are ideal. The visible light from the sun is the very significance of photosynthesis, but the visible red light, yellow light and green light in the sunlight are interferences to the visible light transmissions over Gaussian channel model [11]. The light wavelength of green is from 455 nm to 492 nm, yellow is from 577 nm to 597 nm and red is from 622 nm to 780 nm. A fluctuating SNR in one day can be estimated by [10]. Based on the SNR, the frozen set is confirmed with the CR from \( N = \beta /(I_{AWGN} - R)^{{\hat{\mu }}} \) calculation. As a visible light communication in varying channel environment, RTL wireless transmission can be OOK modulation [11]. In the paper of [10], Hu, Wang, and Liu took more than two years to observe and measure the photosynthetic photon flux density \( (Q_{p} ) \). In this paper, the literature [10] will be utilized to estimate the varying variance of optical noise in the daytime. In [10], the maximum \( Q_{p\_\hbox{max} } \) can be obtained in every hour. Hence, the wireless transmission of RTL is considered as a T-AWGN channel model. The users can receive signal power of \( S = (E_{r} /1.09\pi d^{2} )A_{ph} \) (A fan-shaped angle of RTL wireless emission is about 50°) and the ambient light noise power of \( N = \kappa \,{\text{var}}(Q_{p} )\hbar \nu A_{ph} N_{A} \), meanwhile the variance can be estimated. Where \( \hbar \) is Planck constant, \( \nu \) is green, red or yellow light frequency, \( N_{A} \) is the Avogadro constant and \( E_{r} \) is the rated power of RTL. \( \kappa \) is ratio coefficient (based on sundown or sunrise illumination, the non-direct by sunlight efficiency estimation is \( \kappa = Q_{{p\_{ \hbox{min} }}} /(Q_{{p\_{ \hbox{max} }}} (hour) - Q_{{p\_{\text{mi}}n}} ) \), all kinds of wavelength from 400 nm to 700 nm, \( \kappa \) is about \( 10/(1500 - 10) \times 1/(700 - 400) \). The luminous power of red, green or yellow RTL is about limited by \( E_{r} = 10\,{\text{W}} . \) From 80 m to RTL, if the receiving area of user antenna of visible light is \( A_{ph} = 0.8\,{\text{cm}}^{2} \), the signal power of \( S = 3.98 \times 10^{ - 7} \) W can be received. Algorithm 1 can calculate the estimated code rate of \( \hat{R} \)ACRC by the iterative method.

figure a

In the background of solar irradiance and the data in [10], the diurnal SNR (dB) of green, yellow and red light can be estimated. Under the constraint of BER \( 10^{ - 6} \), the Fig. 4 shows the simulation of the fixed CR and ACRC of polar codes in the RTL wireless transmission. Based on reliable data communication, if CR is 0.54 of polar codes with block length 2048 in the RTL system, the communication data link works availably for 20 h a day. If CR is fixed 0.758 for polar codes of length 2048, the communication link can’t be set up from 8:00 to 17:00 in the sunny days of RTL wireless transmission. However, if the ACRC varies with SNR under the error rate of \( 10^{ - 6} \) constraint, the communication is more perfect with SC decoding algorithm of parameter \( \mu \) in this paper than that of \( \mu = 4.001 \). In fact, the polar codes of block length 2048 with fixed 0.758 CR does not match communication link for most of the daytime, but an average polar CR of 0.781 in the adaptive regime can be obtained in an uninterrupted wireless communication connection of a day. Hence, the criteria proposed in this paper can achieve a high average CR in time-varying channel.

Fig. 4.
figure 4

Seamlessly ACRC by a generator of polar codes in RTL.

5 Conclusion

The trade-off between reliability and CR (or throughput) for frame length is significance. Polar codes have only one generator matrix to cater the variable CR. Nonetheless, in the fluctuating channel environment, the conventional “=” state of single inequation (1) cannot guarantee the reliable communication with any CR from the channel state. However, we find and create a criterion to control variable CR. In T-AWGN channel, \( \mu \) has been adjusted to satisfy the perfect and reliable mapping for any CR, while preserving the largest CR.