Joint protocol-channel decoding method based on factor graph and sum-product algorithm

By combining factor graph and sum-product algorithm in a joint protocol-channel decoding method, the problems of protocol natural redundancy and single channel code collaborative processing in wireless communication systems are solved, achieving efficient decoding across frames and layers and improving communication performance in low signal-to-noise ratio scenarios.

CN117459181BActive Publication Date: 2026-11-27Chinese People's Liberation Army Cyberspace Force Information Engineering University
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311099387.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-08-29
Publication Date
2026-11-27
Estimated Expiration
2043-08-29

AI Technical Summary

Technical Problem

In scenarios with low signal-to-noise ratio and high bit error rate, existing wireless communication systems rely on a single method for coordinating protocol natural redundancy and channel code artificial redundancy. This results in bandwidth waste and communication delays due to retransmission mechanisms, and makes effective decoding difficult in one-way broadcast and real-time streaming media scenarios.

Method used

A joint protocol-channel decoding method based on factor graph and sum-product algorithm is adopted. By analyzing the natural redundancy type in the protocol stack, a joint matrix and branch decoder across frames are constructed, and the sum-product algorithm of outer iteration and inner iteration is executed to perform joint decoding across frames and layers.

Benefits of technology

In the simulation of the 802.11n TCP/IP/MAC protocol stack, joint decoding of only two frames of data can improve the header error rate and payload bit error rate performance by about 0.8dB, avoid error propagation, and improve decoding efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117459181B_ABST
    Figure CN117459181B_ABST
Patent Text Reader

Abstract

The application provides a joint protocol-channel decoding method based on a factor graph and a sum-product algorithm. The method comprises the following steps: step 1: for a current protocol stack, analyzing a protocol natural redundancy type existing in each layer protocol, and dividing all header fields into fixed fields, inter-frame repetition fields, inter-frame sequence increment fields, legal set fields, check fields and random fields; step 2: constructing a cross-frame LDPC-repetition redundancy-sequence increment redundancy joint matrix H according to joint factor graphs of repetition redundancy, sequence increment redundancy and LDPC respectively L‑R‑I as a main decoder Decoder 1; step 3: constructing a legal set redundancy branch decoder Decoder 2, a Checksum redundancy branch decoder Decoder 3 and a CRC redundancy branch decoder Decoder 4 of each frame according to joint factor graphs of legal set redundancy, Checksum redundancy and CRC redundancy and the main decoder Decoder 1 respectively; and step 4: performing cross-frame cross-layer joint protocol-channel decoding based on the sum-product algorithm according to the constructed decoders.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of wireless communication technology, and in particular to a joint protocol-channel decoding method based on factor graph and sum product algorithm. Background Technology

[0002] Digital communication systems independently implement functions such as access, link verification, network routing, and end-to-end transmission through multi-layered protocol encapsulation. While this layered, independent design enables division of labor and cooperation among layers and eliminates functional coupling, it inevitably introduces a large amount of redundancy into the protocol fields of each layer. This redundancy is introduced based on the needs of network protocol processing, not to improve transmission reliability; we call it protocol natural redundancy. From an information theory perspective, protocol redundancy fields are not equiprobable 0 / 1, resulting in a decrease in information entropy, which provides a possibility for improving bit error rate. Furthermore, protocol headers at the physical layer are usually part of the information bits of the channel code; therefore, protocol natural redundancy and channel code artificial redundancy are inherently strongly correlated structurally.

[0003] Traditional wireless receivers often neglect the utilization of natural protocol redundancy, employing a sequentially cascaded, separate processing architecture of frame division, layer division, and field division. Verification is directly based on the hard decision results of channel decoding, with a feedback retransmission mechanism for discarded and retransmitted cases where verification fails. However, in scenarios with low signal-to-noise ratio and high bit error rate, the pass rate of verification at each layer decreases significantly, and the retransmission mechanism leads to severe bandwidth waste and communication delays. Furthermore, retransmission mechanisms are often difficult to implement in specific wireless scenarios such as one-way broadcasting, real-time streaming media, and non-cooperative reception. Existing protocol utilization methods mostly only consider some types of protocol redundancy, and their collaborative processing with channel codes is relatively simple, lacking a unified model for artificial redundancy of channel codes and natural redundancy of different protocol types, leaving significant room for performance improvement.

[0004] To approach optimal decoding performance, a unified framework should be adopted to describe both the natural redundancy of the protocol and the artificial redundancy of the channel code, and vector direct decoding should be implemented based on channel soft information. The factor graph is a widely used general mathematical model for describing the relationships between factor nodes and variable nodes; existing channel codes such as convolutional codes, LDPC codes, and Turbo codes can be considered as different special cases. The corresponding solution algorithm for the factor graph—the sum-product algorithm—has also been proven to unify various channel decoding algorithms and has great potential for achieving unified modeling of different redundancies. Summary of the Invention

[0005] To address the issue of coordinating the use of natural redundancy in different types of protocols and artificial redundancy in channel codes (taking LDPC as an example), this invention provides a joint protocol-channel decoding method based on factor graphs and sum-product algorithms.

[0006] This invention provides a joint protocol-channel decoding method based on factor graph and sum-product algorithm, comprising:

[0007] Step 1: For the current protocol stack, analyze the types of natural redundancy in each layer of the protocol, and divide all header fields into fixed fields, inter-frame repetition fields, inter-frame sequentially increasing fields, legal set fields, check fields, and random fields;

[0008] Step 2: Based on the joint factor graphs of redundancy, sequential redundancy, and LDPC, construct the cross-frame LDPC-redundancy-sequential redundancy joint matrix H. L-R-I As the main decoder, Decoder 1;

[0009] Step 3: Based on the joint factor graphs of the legal set redundancy, checksum redundancy, and CRC redundancy with the main decoder Decoder 1, construct the legal set redundancy branch decoder Decoder 2, checksum redundancy branch decoder Decoder 3, and CRC redundancy branch decoder Decoder 4 for each frame respectively.

[0010] Step 4: Based on the constructed decoders, execute the cross-frame, cross-layer joint protocol-channel decoding based on the sum-product algorithm.

[0011] Furthermore, the cross-frame, cross-layer joint protocol-channel decoding based on the sum-product algorithm specifically includes:

[0012] Performing external iterations specifically includes: performing internal iterations of Decoder 1 until the set number of iterations is reached; calculating the external information passed from Decoder 1 to Decoder 4; performing internal iterations of Decoder 4 until the set number of iterations is reached; and calculating the external information passed from Decoder 4 to Decoder 1.

[0013] For H L-R-I For all variable nodes v, compute their posterior information L. APP (v);

[0014] For H L-R-I All variable nodes v, based on posterior information L APP (v) The hard decision is executed as follows: Here, sgn(·) represents the sign operation.

[0015] Furthermore, an iteration within Decoder 1 specifically includes:

[0016] The V2F message passing process of Decoder 1 includes: calculating H according to formula (1). L-R-ILogarithmic field messages passed from any variable node v to any adjacent factor node f:

[0017]

[0018] in, and These represent the external information passed from Decoder 4 and Decoder 2, respectively; L ch (v) represents the channel observation LLR information; Indicates that the variable node v is in H L-R-I The set of all adjacent factor nodes within In the context of factor node f, L is the set of remaining factor nodes after removing the factor node f itself. f′→v This represents the message passed from factor node f′ to variable node v;

[0019] The execution of the F2V message passing process of Decoder 1 includes: calculating according to formula (2). Log-domain messages passed from any factor node f to any adjacent variable node v:

[0020]

[0021] in, H represents L-R-I The LDPC submatrix in Indicates that factor node f is in H L-R-I The set of all adjacent variable nodes within In the context of variable node v, L is the set of the remaining variable nodes after removing the variable node v itself. v′→f This represents the message passed from variable node v′ to factor node f;

[0022] Calculate according to formula (3) Log-domain messages passed from any factor node f to any adjacent variable node v:

[0023]

[0024] in, H represents L-R-I The repeated redundant submatrices in;

[0025] Calculate according to formula (4) Log-domain messages passed from any factor node f to any adjacent variable node v:

[0026]

[0027] in, H represents L-R-IThe sequentially increasing redundant submatrix in the matrix, This represents the flip probability at variable node v between two adjacent frames;

[0028] Calculate the extrinsic information passed from Decoder 1 to Decoder 2;

[0029] Calculate the extrinsic information passed from Decoder 2 to Decoder 1;

[0030] right Calculate the checksum; if the checksum passes, update L. ch (v).

[0031] Furthermore, the joint matrix H is calculated according to formula (5). L-R-I Posterior information of any variable node v in the dataset:

[0032]

[0033] Furthermore, according to formula (8), the external information passed from Decoder 1 to Decoder 2 at the valid set field variable node v is calculated.

[0034]

[0035] in, For the valid set field variable node v in H L-R-I The set consisting of all adjacent factor nodes within.

[0036] Furthermore, the computation of extrinsic information passed from Decoder 2 to Decoder 1 specifically includes:

[0037] Calculate the sum of all logarithmic field information of the legal set field variable node v according to formula (9):

[0038]

[0039] Calculate N according to formula (10) p The probability ratio vector of the possible sequences

[0040] Where Pr represents probability, and "≡" indicates that dividing each element of the vector by a non-zero number will not affect the ratio between the elements. (·) T Table transpose operation, N b Indicates the length of the repeated field;

[0041] According to formula (11), the external information passed by the valid set redundant branch decoder Decoder 2 to the main decoder Decoder 1 at the valid set field variable node v is calculated.

[0042]

[0043] in, Representing vectors The value at v.

[0044] Furthermore, regarding Calculate the checksum. If the checksum passes, update L according to formula (12). ch (v):

[0045] L ch (v)=A m sgn(L APP (v)) (12)

[0046] Among them, A m The value is the amplified modulus, and sgn(·) is the sign operation.

[0047] Furthermore, Decoder 1 is calculated according to formula (13) in External information passed to Decoder4 at all variable nodes v

[0048]

[0049] in, For variable node v in H L-R-I The set consisting of all adjacent factor nodes within. H is the parity check matrix of CRC. C n C A set consisting of variable nodes.

[0050] Furthermore, a single iteration within Decoder 4 specifically includes:

[0051] The V2F message passing process of Decoder 4 includes: calculating according to formula (14) Logarithmic field messages passed from any variable node v to any adjacent factor node f:

[0052]

[0053] in, Indicates the variable node v in the matrix The set of all adjacent factor nodes within In the context of factor node f, the set of remaining factor nodes after removing the factor node f itself. For H C The extended parity check matrix obtained by sparsification;

[0054] The execution of the F2V message passing process of Decoder 4 includes: calculating the matrix according to formula (15). Log-domain messages passed from any factor node f to any adjacent variable node v:

[0055]

[0056] in, Indicates that factor node f is in The set of all adjacent variable nodes within In the context of variable node v, L is the set of the remaining variable nodes after removing the variable node v itself. v′→f This represents the message passed from variable node v′ to factor node f.

[0057] Furthermore, Decoder 4 is calculated according to formula (16) in... All variable nodes v within the code are passed external information to Decoder 1.

[0058]

[0059] in, Indicates that the variable node v is in The set consisting of all adjacent factor nodes within.

[0060] The beneficial effects of this invention are:

[0061] (1) This invention overcomes the limitation that most existing protocol redundancy utilization methods only consider some protocol natural redundancy types. It uses factor graphs to uniformly model various protocol natural redundancy, and under different protocol stack standards, different protocol natural redundancy decoding modules can be flexibly combined and used.

[0062] (2) This invention overcomes the shortcomings of the single application of protocol natural redundancy and channel code artificial redundancy in existing methods, and provides a joint protocol-channel decoding method across frames and layers based on the sum-product algorithm, which avoids the error propagation phenomenon of recursive layer-by-layer decoding.

[0063] (3) Simulation results of the 802.11n TCP / IP / MAC protocol stack show that when using 5 / 6 code rate LDPC code with a code length of 1296, only two consecutive QoS data frames in the same session stream need to be jointly decoded. This can approximate the maximum gain of the protocol's natural redundancy with relatively small computational overhead. The performance of header error rate (HER) and bit error rate (BER) of payload data are both improved by about 0.8dB. Attached Figure Description

[0064] Figure 1 This is a flowchart illustrating the joint protocol-channel decoding method based on factor graph and sum-product algorithm provided in an embodiment of the present invention.

[0065] Figure 2 The repetitive redundancy-LDPC joint factor map (2 frames) provided for embodiments of the present invention;

[0066] Figure 3 The LDPC-repetitive redundancy-sequentially increasing redundancy joint matrix (3 frames) provided in this embodiment of the invention;

[0067] Figure 4 The legal set redundancy-master decoder joint factor graph provided in the embodiments of the present invention;

[0068] Figure 5 A joint factor diagram of CRC redundancy-master decoder provided for embodiments of the present invention;

[0069] Figure 6 This invention provides a cross-frame, cross-layer joint protocol-channel decoding framework based on a sum-product algorithm.

[0070] Figure 7 The 802.11n protocol field division provided in this embodiment of the invention;

[0071] Figure 8 Performance comparison under different decoding conditions provided for embodiments of the present invention. Detailed Implementation

[0072] To make the objectives, technical solutions, and advantages of this invention clearer, the technical solutions of the embodiments of this invention will be clearly described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of this invention. All other embodiments obtained by those skilled in the art based on the embodiments of this invention without creative effort are within the scope of protection of this invention.

[0073] Example 1

[0074] like Figure 1 As shown, this embodiment of the invention provides a joint protocol-channel decoding method based on factor graph and sum-product algorithm, including the following steps:

[0075] S101: For the current protocol stack, analyze the types of protocol redundancy in each layer and divide all header fields into fixed fields, inter-frame repetition fields, inter-frame sequentially increasing fields, legal set fields, check fields (CRC and Checksum), and random fields.

[0076] Specifically, due to the independent encapsulation of each protocol layer in the protocol stack, a large amount of natural redundancy is introduced into the protocol fields. Therefore, it is first necessary to analyze the types of natural redundancy existing in the current protocol stack. In this embodiment of the invention, it is proposed to divide the fields in the protocol stack into the above-mentioned 6 types of fields to distinguish redundancy types. The explanation of these 6 fields is as follows:

[0077] 1) Fixed fields: Some protocol fields take fixed values. For example, the unused 6-bit Reserve field in the TCP header is fixed at 0. The information entropy of these fields is 0, and they can be simply treated as known data.

[0078] 2) Duplicate fields: Fields that remain unchanged across different data frames in the same session stream are considered cross-frame redundancy, such as TCP port number, IP address, IP protocol number, and MAC address.

[0079] 3) Sequentially increasing fields: These fields increment according to a certain pattern between adjacent data frames in the same session stream, which is a form of cross-frame redundancy. For example, the sequence number field in the TCP header increments by the number of payload bytes of the previous frame each time, while the ID in the IP header is incremented by 1 in each newly generated IP packet.

[0080] 4) Legal set fields: Some fields may not take all possible values ​​within the bit space, which is considered redundant within the field. For example, although the Duration field in the 802.11 protocol MAC header is 16 bits, its actual value range is less than 2. 16 ;

[0081] 5) Checksum field: This field is designed for error detection and is an intra-frame redundancy. It is purely redundant relative to the content being checked, such as the CRC field in the MAC header of the 802.3 and 802.11 protocols, and the Checksum field in the TCP and IP headers.

[0082] 6) Other fields: Other fields with relatively random values.

[0083] S102: Based on the joint factor graphs of repetitive redundancy, sequential increasing redundancy and LDPC respectively, construct the cross-frame LDPC-repetitive redundancy-sequential increasing redundancy joint matrix as the master decoder Decoder 1.

[0084] Specifically, repeated fields typically remain unchanged across different data frames within the same session stream, which can be considered as inter-frame redundancy. Figure 2 The number of frames N is given in the text. f The joint factorial plot of redundancy and LDPC under condition = 2. The black boxes and all circles represent the factor nodes and variable nodes of LDPC, respectively. The blue circles are the variable nodes corresponding to the repeated fields. In the first frame, the repeated field (length N) b A bit or variable node of ) Clearly, it only relates to the variable node at the corresponding position of that field in frame 2. Since there is a correlation, a new factor node is connected between the corresponding variable nodes (bits) of this field in the two frames. To introduce redundancy constraints, indicated by the blue boxes, the above factor graph can be extended to the number of frames N. f In the case of >2, that is, each factor node constrains the corresponding variable nodes of multiple frames to satisfy the repetition constraint.

[0085] For sequentially increasing redundancy, incrementing introduces carry and overflow in the binary field. Therefore, all bits or variable nodes in this field are correlated between two frames, leading to complex edge-mapping calculations when computing the factor graph. Therefore, considering ignoring the correlation between different bits within the increasing field, that is, treating the flipping of different bits as independent, the joint factor graph will formally degenerate into... Figure 2 .at this time, This constrains the corresponding bits between two adjacent frames to flip with a certain probability. When the number of frames N... f When the value is greater than 2, to avoid complex bit-flipping relationships between multiple frames, consider introducing a set of sequentially increasing factor nodes between every two adjacent frames. Based on conditional independence, this transformation holds true.

[0086] Based on the joint factor graphs of LDPC constructed above for both repetitive redundancy and sequential increasing redundancy, a cross-frame joint matrix H of LDPC-repetitive redundancy-sequential increasing redundancy can be further constructed. L-R-I Each column of the joint matrix represents a variable node, and each row represents a factor node. Each position in the matrix represents the connection between the factor node represented by its row and the variable node represented by its column. Black dots (non-zero values) indicate that there is a connection between the factor node represented by its row and the variable node represented by its column, forming an "edge". Blank positions indicate that there is no connection.

[0087] Figure 3 An example of the joint matrix under a 3-frame condition is given. Above this joint matrix is ​​an LDPC submatrix formed by diagonally concatenating the LDPC parity check matrices of the three frames ("LDPC 1", "LDPC 2", and "LDPC 3"). "Repeated 1-2-3" indicates a repeated redundant submatrix. The three diagonal dashed lines indicate the positions of the repeated fields in the three frames; the "incrementing 1-2" and "incrementing 2-3" below represent the sequential incrementing relationships introduced between the first and second frames and between the second and third frames, respectively, which together constitute a sequentially increasing redundant sub-matrix. Similarly, dashed lines indicate the position of sequentially increasing fields.

[0088] S103: Based on the joint factor graphs of legal set redundancy, checksum redundancy and CRC redundancy with the main decoder Decoder1, construct legal set redundancy branch decoder Decoder 2, checksum redundancy branch decoder Decoder 3 and CRC redundancy branch decoder Decoder 4 for each frame.

[0089] Specifically, Figure 4 The example given is a joint factor graph of the valid set redundancy-master decoder. The black and blue dashed boxes represent the master decoder Decoder 1 and the valid set redundancy branch decoder Decoder 2, respectively. The blue circles represent valid set field variable nodes. The set they form is... The blue boxes indicate the newly introduced factor nodes. The value of this field variable node can only be selected from a finite set of legal sequences specified by the protocol.

[0090] Similar to sequentially increasing redundancy, checksum calculation involves carry and overflow in binary, and there may be some correlation between all the checked bits and the check bits themselves. Therefore, we can obtain a form that is similar to... Figure 4 Similar to the checksum redundancy-master decoder joint factor graph, the checked data and the check bits themselves together form N. b A set of variable nodes Factor nodes replaced with The checksum redundant branch decoder is denoted as Decoder 3.

[0091] CRC is a type of cyclic code. To avoid the influence of short cycles in its high-density parity check matrix, this embodiment of the invention considers using the existing maximum cycle strategy for the CRC parity check matrix. Sparsification is performed to obtain an extended parity check matrix. Where, n′C >n C Then, a Turbo iteration is performed with the master decoder, exchanging information about common variable nodes. Therefore, a joint factor graph of the sparse CRC and the master decoder can be obtained, as shown below. Figure 5 As shown. Figure 5 In Decoder 1, the main decoder is defined. Decoder 4 (excluding the black circle) represents the extended CRC. In Decoder 4, the dark blue circles and squares represent the variable nodes and factor nodes that existed before sparsification, while the light blue circles and squares represent the variable nodes and factor nodes that were added after sparsification. The first n C Each variable node corresponds to H C n C There are n variable nodes, and the set they form is: The newly added n′ C -n C The set consisting of variable nodes is Before decoding, it is necessary to... Partial channel observation LLR value L ch (v) is initialized to 0. All variable nodes constitute a set

[0092] S104: Based on the constructed decoders, perform cross-frame and cross-layer joint protocol-channel decoding based on the sum-product algorithm.

[0093] This invention overcomes the limitations of existing protocol redundancy utilization methods, which mostly only consider some types of protocol natural redundancy. It uses factor graphs to uniformly model various types of protocol natural redundancy, and can flexibly combine and use different protocol natural redundancy decoding modules under different protocol stack standards.

[0094] Example 2

[0095] Based on the above embodiment 1, the present invention designs the cross-frame and cross-layer joint protocol-channel decoding framework based on the sum-product algorithm as follows.

[0096] S201: Perform external iterations until the set number of iterations is reached; wherein, one external iteration specifically includes: performing internal iterations of Decoder 1 until the set number of iterations is reached; calculating the external information passed from Decoder 1 to Decoder 4; performing internal iterations of Decoder 4 until the set number of iterations is reached; calculating the external information passed from Decoder 4 to Decoder 1;

[0097] Specifically, an iteration within Decoder 1 includes: executing the V2F message passing process of Decoder 1; executing the F2V message passing process of Decoder 1; calculating the extrinsic information passed from Decoder 1 to Decoder 2; calculating the extrinsic information passed from Decoder 2 to Decoder 1; and... Calculate the checksum; if the checksum passes, update L. ch (v). A single iteration within Decoder4 specifically includes: executing the V2F message passing process of Decoder4, and executing the F2V message passing process of Decoder4.

[0098] S202: For H L-R-I For all variable nodes v, compute their posterior information L. APP (v);

[0099] S203: For H L-R-I All variable nodes v, based on posterior information L APP (v) The hard decision is executed as follows: Here, sgn(·) represents the sign operation.

[0100] Specifically, in this cross-frame, cross-layer joint protocol-channel decoding framework, the sum-product algorithm for each decoder is designed as follows.

[0101] (I) Design the corresponding sum-product algorithm for the main decoder Decoder 1

[0102] In the V2F (Variable to Factor) message passing process of the main decoder, i.e., the vertical iteration process, there is no distinction between the three types of redundancy; the processing mode of each variable node is the same. External information from the branch decoders is taken into consideration. For the variable node at position H... L-R-I For any variable node v in the algorithm, the logarithmic field message passed from it to any adjacent factor node f can be uniformly calculated as follows:

[0103]

[0104] in, and L represents the external information (details to be provided later) passed from the CRC redundancy branch decoder Decoder 4 and the legal set redundancy branch decoder Decoder 2, respectively. ch (v) represents the channel observation LLR (log-likelihood ratio) information. Indicates that the variable node v is in H L-R-I The set of all adjacent factor nodes within In the equation, L is the set of remaining factor nodes after removing the factor node f itself. f′→vThis represents the message passed from factor node f′ to variable node v.

[0105] In the F2V (Factor to Variable) message passing process, also known as the horizontal iteration process, of the master decoder, due to the differences in the factor functions of the three types of redundancy, it is necessary to determine which type of redundancy or which submatrix each row in the joint matrix belongs to.

[0106] For those in the LDPC submatrix For any factor node f in the equation, the logarithmic field message passed from it to any adjacent variable node v can be calculated as follows:

[0107]

[0108] in, Indicates that factor node f is in H L-R-I The set of all adjacent variable nodes within In L, the set of remaining variable nodes after removing the variable node v itself. v′→f This represents the message passed from variable node v′ to factor node f.

[0109] For any redundant submatrix The logarithmic field message passed from factor node f to any adjacent variable node v can be calculated as follows:

[0110]

[0111] For any redundant submatrix in ascending order The logarithmic field message passed from factor node f to any adjacent variable node v can be calculated as follows:

[0112]

[0113] in, This represents the flip probability at variable node v between two adjacent frames.

[0114] When N is completed in-H After the V2F and F2V iterations of the master decoder, H L-R-I The posterior information for each variable node v can be calculated as follows:

[0115]

[0116] (II) Design of the sum-product algorithm for the valid set redundant branch decoder Decoder 2

[0117] Based on the idea of ​​Turbo iterative decoding in the sum-product algorithm, Decoder 2 is regarded as a component decoder parallel to Decoder 1, and decoding is performed by passing external information between the legal set field variable nodes that are connected together.

[0118] Assuming the protocol defines all N fields of the legal set... p The set of possible sequences is Each vector element in this set (dimension 1×N) b The legal set matrix is ​​obtained by concatenating the columns sequentially. The corresponding prior probability vector is Then the probability vector of each bit of the legal set field taking the value 1 can be calculated as follows:

[0119]

[0120] Based on this, the prior LLR of the initial legal set for each bit can be calculated:

[0121]

[0122] in, For vectors The value taken at variable v.

[0123] For Decoder 1, it takes the external information passed from Decoder 2 at the valid set field variable node v. Treating it as its own prior information, it is used to calculate formula (1), where, The initial value is

[0124] At the same time, Decoder 1 will update the external information it passes to Decoder 2 at the valid set field variable node v:

[0125]

[0126] in, For variable node v in H L-R-I The set consisting of all adjacent factor nodes within.

[0127] Decoder 2 then Treating it as its own prior information, combined with channel observation information L ch (v) Together, they obtain the distribution information for all possible legal sequences and pass it as extrinsic information to Decoder 1. This process can be divided into three steps:

[0128] Step 1: Calculate the sum of all logarithmic field information for each variable node in the valid set field:

[0129]

[0130] Step 2: Calculate N p The probability ratio vector of the possible sequences is:

[0131] Where Pr represents probability, and "≡" indicates that dividing each element of the vector by a non-zero number will not affect the ratio between the elements. (·) T Table transpose operation.

[0132] Step 3: Similar to equations (6) and (7), update the extrinsic information passed to Decoder 1 at each bit of the valid set field in Decoder 2.

[0133]

[0134] in, Representing vectors The value at v.

[0135] (III) Design of the sum-product algorithm for the Checksum redundant branch decoder Decoder 3

[0136] To avoid the complex marginal calculations of the F2V step in the sum-product algorithm, we consider using the success or failure of the checksum verification to simplify the redundant decoding algorithm. When the master decoder 1 iterates to the point where the local data checksum verification is successful, we ignore the small probability of missed detections and determine that both the data being verified and the check bits themselves are correctly decoded. At this time, in order to use this verification information to promote the decoding of the remaining information bits without destroying the joint redundant decoding frameworks introduced above, this embodiment of the invention refers to the existing CRC verification processing method in disk recording channels, assigns a large confidence level to the correctly decoded information bits, and then continues to participate in the iteration of the master decoder 1. Specifically, the channel observation LLR value of this part of the bits can be directly calculated according to the posterior LLRL obtained by formula (12). APP (v) is amplified uniformly regardless of whether it is positive or negative:

[0137] L ch (v)=A m sgn(L APP (v)) (12)

[0138] Among them, A mThe value is the amplified modulus, and sgn(·) is the sign operation.

[0139] This operation can accelerate the improvement of the LLR of the remaining bits, while avoiding the possible flipping of bits that have just been verified in subsequent iterations. This processing mechanism can also be regarded as a variant of Turbo, where Decoder 1 passes information to Decoder 3 in each iteration, while Decoder 3 only passes information to Decoder 1 when the verification is successful.

[0140] (iv) Design of the sum-product algorithm for the CRC redundant branch decoder Decoder 4

[0141] Decoder 1 in The extrinsic information passed to Decoder 4 at all variable nodes v can be calculated as follows:

[0142]

[0143] in, For variable node v in H L-R-I The set consisting of all adjacent factor nodes within.

[0144] For Decoder 4, because It is still a parity check matrix, so the sum-product algorithm of the CRC redundant branch decoder is similar to that of LDPC.

[0145] In the V2F message passing process of Decoder 4, for any state... The logarithmic field message passed from variable node v to any adjacent factor node f can be calculated as follows:

[0146]

[0147] in, Indicates that the variable node v is in The set of all adjacent factor nodes within In the equation, the set of remaining factor nodes after removing the factor node f itself.

[0148] In the F2V message passing process of Decoder 4, for any state... The logarithmic field message passed from factor node f to any adjacent variable node v can be calculated as follows:

[0149]

[0150] in, Indicates that factor node f is in The set of all adjacent variable nodes within In L, the set of remaining variable nodes after removing the variable node v itself. v′→f This represents the message passed from variable node v′ to factor node f.

[0151] The above V2F and F2V iterations were executed in total. After each iteration, Decoder 4 will compute its value in [the next iteration]. All variable nodes v within the code are passed external information to Decoder 1. Used to help Decoder 1 calculate formula (1), The following can be calculated:

[0152]

[0153] in, Indicates that the variable node v is in The set consisting of all adjacent factor nodes within.

[0154] After constructing each decoder and its corresponding sum-product algorithm, further consideration is given to all types of protocol natural redundancy, resulting in the following: Figure 6 The diagram shows a cross-frame, cross-layer joint protocol-channel decoding framework based on the sum-product algorithm.

[0155] Figure 6 The top is composed of N f The joint matrix H of LDPC-duplication redundancy-sequential increasing redundancy of a frame L-R-I The main decoder is shown as Decoder 1. Below it are the branch decoder groups for each frame. Each group includes a valid set redundancy branch decoder (Decoder 2), a checksum redundancy branch decoder (Decoder 3), and a CRC redundancy branch decoder (Decoder 4). Decoder 2 and Decoder 3 exchange external information with Decoder 1 during each iteration of Decoder 1; while Decoder 4 exchanges external information with Decoder 1 during the external iteration process.

[0156] Table 1. Cross-frame, cross-layer joint protocol - channel decoding algorithm code

[0157]

[0158]

[0159] The joint protocol-channel decoding method provided in this invention overcomes the shortcomings of existing methods that rely solely on the collaborative application of protocol natural redundancy and channel code artificial redundancy, and avoids the error propagation phenomenon of recursive layer-by-layer decoding.

[0160] Example 3

[0161] To verify the effectiveness of the proposed joint protocol-channel decoding method based on factor graphs and sum-product algorithms, we conducted tests on 802.11n TCP / IP / MAC protocol stack data. We simplified the reception conditions to a unidirectional, in-order reception scenario within the same session stream, considering only redundant protocol fields at the transport, network, and MAC layers. We simply assumed the application layer data to be random, and that the transport and network layers used TCP and IPv4 protocols respectively, with a fixed header length of 20 bytes for both. The MAC layer used QoS data frames, and frame aggregation was not considered. Furthermore, we assumed that segmentation or fragmentation only occurred at the TCP layer. Before verifying the scheme, it is necessary to analyze the inherent redundancy of the included protocols. Figure 7 The three-layer protocol field types have been categorized, and the detailed classification is as follows:

[0162] 1) Fixed fields (94 bits): Under the current assumptions, the TCP Header Length field is fixed at 4 (×5 bytes), the Reserve field is 0, the IP Version field is 4, the Header Length field is 4 (×5 bytes), and the Total Length field can also be determined after receiving a complete QoS data frame. Since IP layer fragmentation is not considered, the Flag subfield in the Flag & Offset field takes binary '010', the Offset subfield takes 0, and the Protocol field is 6 (i.e., the upper layer is TCP). The subfields in the MAC layer Frame Control field can also be determined according to the currently assumed communication reception scenario. Since MAC layer fragmentation is not considered, the Frag Number field also takes 0, and the QoS Control field also defaults to 0.

[0163] 2) Duplicate fields (240 bits): TCP port number, IP address number and MAC address number of different data frames within the same session stream can be regarded as duplicates.

[0164] 3) Sequence Incrementing Field (60 bits): Assuming that segmentation or fragmentation only occurs at the TCP layer, for packets received in order, the TCP layer's Sequence Number field is incremented by the number of TCP payload bytes of the previous frame each time, while the IP layer's ID field and the MAC layer's Sequence Number field are incremented by 1 each time.

[0165] 4) Valid Set Field (16 bits): Although the Duration field of the MAC layer is 16 bits, the actual number of possible values ​​is far less than 2. 16 .

[0166] 5) Checksum fields (64 bits): including the TCP overall checksum field, the IP layer header checksum field, and the MAC layer overall checksum CRC field.

[0167] 6) Other fields (86 bits): Under the current assumption, the values ​​are highly random and can be directly simplified and considered as random fields.

[0168] Each frame is block-coded using LDPC code with a code length of 1296 and a code rate of 5 / 6 under the 802.11n standard. All considered redundant fields are included in the first LDPC block. Since this paper focuses on the recovery of header fields and application layer data, and the channel coding of each block is performed independently, subsequent decoding will only consider the received data of the first block. Assuming the TCP payload is 1000 bytes of random numbers, the TCP layer checksum and MAC layer CRC check are too complex and have limited gain; therefore, the utilization of these two redundant fields is discarded. The number of outer iterations is thus reduced. The number of internal iterations of Decoder 4 Setting all values ​​to 0 determines the number of internal iterations for Decoder 1. The value is set to 50. Transmitted data uses BPSK modulation, and received data is obtained after passing through the AWGN channel. The algorithm performs cross-frame, cross-layer joint decoding on the first block of data in each frame, and statistically obtains the header error rate (HER) and bit error rate (BER) of the payload data under different decoding conditions. The performance is as follows: Figure 8 As shown.

[0169] from Figure 8 As can be seen, the proposed joint protocol-channel decoding method only requires joint decoding of two frames of data to approximate the maximum redundancy gain under known header conditions with a small computational overhead. Compared with standard LDPC decoding, its header error rate and payload bit error rate performance are improved by about 0.8dB. This result effectively proves the effectiveness of the present invention.

[0170] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, and not to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features; and these modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A joint protocol-channel decoding method based on factor graph and sum-product algorithm, characterized in that, include: Step 1: For the current protocol stack, analyze the types of natural redundancy in each layer of the protocol, and divide all header fields into fixed fields, inter-frame repetition fields, inter-frame sequentially increasing fields, legal set fields, check fields, and random fields; Step 2: Based on the joint factor graphs of redundancy, sequential increasing redundancy, and LDPC, construct the cross-frame LDPC-redundancy-sequential increasing redundancy joint matrix. As the main decoder, Decoder 1; Step 3: Based on the joint factor graphs of the legal set redundancy, checksum redundancy, and CRC redundancy with the main decoder Decoder 1, construct the legal set redundancy branch decoder Decoder 2, checksum redundancy branch decoder Decoder 3, and CRC redundancy branch decoder Decoder 4 for each frame respectively. Step 4: Based on the constructed decoders, execute the cross-frame, cross-layer joint protocol-channel decoding based on the sum-product algorithm; specifically, the cross-frame, cross-layer joint protocol-channel decoding based on the sum-product algorithm includes: Performing external iterations specifically includes: performing internal iterations of Decoder 1 until the set number of iterations is reached; calculating the external information passed from Decoder 1 to Decoder 4; performing internal iterations of Decoder 4 until the set number of iterations is reached; and calculating the external information passed from Decoder 4 to Decoder 1. right All variable nodes Calculate its posterior information ; right All variable nodes Based on posterior information The hard judgment is as follows: ;in, Indicates the sign-reset operation; One iteration within Decoder 1 specifically includes: The V2F message passing process of Decoder 1 includes: calculating according to formula (1) any variable node in Pass to any adjacent factor node Logarithmic field message: (1) in, and These represent the external information passed from Decoder 4 and Decoder 2, respectively. For channel observation of LLR information; Represents variable nodes exist The set of all adjacent factor nodes within In the middle, remove factor nodes The set of the remaining factor nodes after itself; Indicates the presence of factor nodes Passed to variable node The message; The execution of the F2V message passing process of Decoder 1 includes: calculating according to formula (2) any factor node in Pass to any adjacent variable node Logarithmic field message: (2) in, express The LDPC submatrix in Represents factor nodes exist The set of all adjacent variable nodes within Remove variable nodes The set of the remaining variable nodes after itself; Indicates the variable node Passed to factor nodes The message; Calculate according to formula (3) any factor node in Pass to any adjacent variable node Logarithmic field message: (3) in, express The repeated redundant submatrices in; Calculate according to formula (4) any factor node in Pass to any adjacent variable node Logarithmic field message: (4) in, express The sequentially increasing redundant submatrix in the matrix, For the variable node between two adjacent frames The probability of flipping at that point; Calculate the extrinsic information passed from Decoder 1 to Decoder 2; Calculate the extrinsic information passed from Decoder 2 to Decoder 1; right Calculate the checksum; if the checksum passes, update. ; One iteration of Decoder 4 specifically includes: The V2F message passing process of Decoder 4 includes: calculating according to formula (14) any variable node in Pass to any adjacent factor node Logarithmic field message: (14) in, Represents variable nodes In the matrix The set of all adjacent factor nodes within In the middle, remove factor nodes The set of the remaining factor nodes after itself; To The extended parity check matrix obtained by sparsification; The F2V message passing process of Decoder 4 includes: calculating the matrix according to formula (15). any factor node in Pass to any adjacent variable node Logarithmic field message: (15) in, Represents factor nodes exist The set of all adjacent variable nodes within Remove variable nodes The set of the remaining variable nodes after itself; Indicates the variable node Passed to factor nodes The news.

2. The joint protocol-channel decoding method based on factor graph and sum-product algorithm according to claim 1, characterized in that, Calculate the joint matrix according to formula (5) any variable node in Posterior information: (5)。 3. The joint protocol-channel decoding method based on factor graph and sum-product algorithm according to claim 1, characterized in that, Calculate the variable node of the valid set field of Decoder 1 according to formula (8). External information passed to Decoder 2 : (8) in, For valid set field variable nodes exist The set consisting of all adjacent factor nodes within.

4. The joint protocol-channel decoding method based on factor graph and sum-product algorithm according to claim 3, characterized in that, The computation of external information passed from Decoder 2 to Decoder 1 specifically includes: Calculate the legal set field variable nodes according to formula (9) The sum of all logarithmic field information: (9) Calculate according to formula (10) The probability ratio vector of the possible sequences : (10) Where Pr represents probability, "" indicates that dividing each element of a vector by a non-zero number simultaneously will not affect the ratio between the elements. , Table transpose operation Indicates the length of the repeated field; The valid set redundant branch decoder Decoder 2 is calculated according to formula (11) at the valid set field variable node. External information passed to the main decoder Decoder 1 : (11) in, Representing vectors exist The value at that location.

5. The joint protocol-channel decoding method based on factor graph and sum-product algorithm according to claim 1, characterized in that, right Calculate the checksum. If the checksum passes, update according to formula (12). : (12) in, This is the amplified modulus. This is a sign-retrieving operation.

6. The joint protocol-channel decoding method based on factor graph and sum-product algorithm according to claim 1, characterized in that, Calculate Decoder 1 according to formula (13) All variable nodes External information passed to Decoder 4 : (13) in, For variable nodes exist The set consisting of all adjacent factor nodes within. Parity check matrix for CRC of A set consisting of variable nodes.

7. The joint protocol-channel decoding method based on factor graph and sum-product algorithm according to claim 1, characterized in that, Calculate Decoder 4 according to formula (16) All variable nodes within External information passed to Decoder 1 : (16) in, Represents variable nodes exist The set consisting of all adjacent factor nodes within.