Method for encoding and decoding data packets for protected transmission, data transmitter and data receiver
By using chained limited forward error correction codes in wireless networks, the problem of insufficient data transmission reliability in traditional methods in mobile environments is solved, and efficient and reliable transmission of small data transactions is achieved, which is suitable for mobile network environments.
Patent Information
- Application Number
- CN202280089329.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2022-04-07
- Publication Date
- 2024-08-30
- Estimated Expiration
- 2042-04-07
AI Technical Summary
When existing wireless networks transmit data, traditional methods cannot effectively improve the reliability of data transmission in the face of sudden bit error rates and a large number of false packet losses. Especially in mobile network environments, traditional FEC codes are not suitable. Small data transactions, and energy consumption and redundant data costs increase.
Chained finite forward error correction (NF FEC) code is used to divide the data packet into equal-sized fragments and use XOR operation to generate redundant fragments to form a transmission packet output sequence, which is suitable for small data transactions in mobile environments transmission, improving packet reliability and overall performance.
It improves the reliability and performance of small data transactions through wireless networks, is suitable for mobile environments, such as Web searches and payment transactions, and reduces the bit error rate and energy consumption of transmission.
Smart Images

Figure CN118575433A
Abstract
Description
Technical Field
[0001] The present invention generally relates to the field of mobile networks, and more particularly to a method of encoding a data packet for protected transmission, a method of decoding a data packet from a protected transmission, and a corresponding data transmitter and data receiver. Background Art
[0002] Currently, the number of mobile users is increasing day by day, and when all mobile users use mobile services around the world, network traffic (or large-scale network activity) is generated. Typically, an important part of network traffic is relatively small data packets exchanged between clients and servers during short sessions (such as user authentication sessions). Traditionally, network protocols are mainly used to optimize network traffic in traditional scenarios, such as working in wired networks with stable round-trip time (RTT), little packet loss, and no packet reordering. However, such network protocols are not efficient and cannot be used in wireless networks with varying RTT, a large amount of false packet loss, connection migration, and similar inherent characteristics.
[0003] Currently, wireless networks are based on wireless communication standards that involve forward erasure correction (FEC) codes to increase the probability of transmitting data. However, traditional FEC codes are not suitable for small data transactions on the one hand, and automatic repeat request (ARQ) systems cannot solve this problem because packet loss in any state will asymptotically affect the transmission time of feedback-based systems. In addition, due to the large number of mobile users, the energy consumption of traditional wireless networks is also increasing, as well as the additional cost of redundant data, which means that the generated FEC codes should be limited but scalable. The Gilbert-Elliot model for packet loss shows that in a specific scenario, if the network falls into a bad state and packet loss begins to occur, it is very likely that the network will continue in this state and continue to lose packets. However, there is a technical problem of how to improve the reliability of data transmission over wireless networks (such as transmitting excessive data transactions over mobile networks).
[0004] Therefore, in light of the foregoing discussion, a need exists to overcome the aforementioned disadvantages associated with conventional methods of transmitting data over wireless networks. Summary of the invention
[0005] The present invention provides a method for encoding a data packet for protected transmission, a method for decoding a data packet from a protected transmission, and a corresponding data transmitter and a corresponding data receiver. The present invention provides a scheme for solving the existing problem of how to improve the reliability of data transmission over a wireless network (for example, the transmission of excessive data transactions over a mobile network). The purpose of the present invention is to provide a scheme that at least partially overcomes the problems encountered in the prior art and provides an improved method for encoding a data packet for protected transmission, an improved method for decoding a data packet from a protected transmission, and a corresponding data transmitter and data receiver. The present invention also provides a chained limited forward error correction (NF FEC) code and application for data transactions over a mobile network.
[0006] One or more objects of the invention are achieved by what is presented in the attached independent claims. Advantageous implementations of the invention are further defined in the dependent claims.
[0007] In one aspect, the present invention provides a method for encoding a data packet for protected transmission. The method comprises: at a transmitting end, dividing the data packet to be protected into m data slices Y of equal size m The method further comprises: creating a first transmission packet X1 of the transmission packet output sequence to include the first data slice Y1 and its index, wherein the first transmission packet is marked as having degree 1 to serve as an entry point for decoding the output sequence. The method further comprises: creating a plurality of transmission packets immediately following the first transmission packet in the output sequence, wherein each of the plurality of transmission packets is marked as having degree 2 and includes a pair of different data slices Y1 and Y2. m The result of the XOR operation between and the index of the data slice in the pair, the multiple transmission packets include different data slices Y m The method further comprises: immediately after the plurality of transmission packets in the output sequence, from the remaining data fragments Y2, ..., Y m Creating final transmission packets, wherein each transmission packet in the final transmission packets is marked as having a degree of 1 to serve as an entry point for the decoding and includes a data slice and an index of the data slice. The method further includes: exchanging the first transmission packet X1 of the output sequence with the second transmission packet X2 of the output sequence.
[0008] The method is used to develop a lightweight systematic chained finite forward error correction (NF FEC) code that improves the reliability of data transmission over a packet-switched network with a burst bit error rate, is optimal for relatively small data transactions, and is suitable for mobile environments, such as Web searches and payment transactions. Compared with traditional methods, the method is also beneficial in generating optimal distributed redundancy for relatively small data and improving the overall performance of small packet transmission.
[0009] In another aspect, the present invention provides a method for decoding a data packet from a protected transmission. The method comprises: at a receiving end, receiving a protected transmission, wherein the protected transmission comprises k transmission packets X of a transmission packet output sequence i , where i is 1 to k, and the k transmission packets X i The method of claim 1 is used to encode and protect data packets, wherein the number k of received transmission packets is equal to or greater than the number m of data fragments. The method further comprises: i Get the index of the data slice that creates the transmission packet as parameters x and y, where if the received transmission packet X i is an entry point, then its parameters x and y are equal. The method further includes: constructing a graph G(Y,X), wherein vertex Y corresponds to data slice Y to be decoded m , edge X includes the received transmission packet X i As the payload, each edge X i Associated to vertex Y x or Vertex Y x , Y y , the Y x , Y y The method comprises creating the transmission packet X according to the acquired parameters x and y. i The method further comprises: sequentially slicing each edge X of the graph G(Y,X) according to the increasing index i i The following processing is performed: If the edge X i According to the vertex Y associated with its x parameter x is decoded and the edge X i According to the vertex Y associated with its y parameter y is decoded, the current edge processing is terminated and the next edge processing is continued. In addition, if X i is the entry point, that is, the x parameter is equal to the y parameter, then decode the vertex Y x ; If the vertex Y x is decoded, and the vertex Y yIf not decoded, the vertex Y y Decodes to be equal to (X i XOR Y x ). In addition, if the vertex Y y is decoded, and the vertex Y x If not decoded, the vertex Y x Decodes to be equal to (X i XOR Y y ); if the vertex Y x is not decoded, and the vertex Y y If it is not decoded, a new edge is added to the graph, the new edge having the payload X i , index i equals the number k plus one, and parameters x and y are the same as the current edge, so that the new edge is associated with the vertex Y x and Y y . In addition, if all vertices of the graph are decoded, then reconstructing the data packet encoded in the protected transmission, the decoding of vertex Y includes: marking the vertex Y as decoded, and checking each edge X associated with the vertex Y. In addition, if the vertex Y to which the edge X is associated x is decoded, the decoding is terminated; if the vertex Y x If not decoded, the vertex Y x Decodes to be equal to (X XOR Y).
[0010] The method is used to develop a lightweight systematic chained finite forward error correction (NF FEC) code, which improves the reliability of data transmission through packet switching networks with burst bit error rates, is optimal for relatively small data transactions, and is suitable for mobile environments, such as Web searches and payment transactions.
[0011] In yet another aspect, the present invention provides a data transmitter, the data transmitter comprising: a communication interface for communicating with a receiving end through one or more communication channels; a transmitter processor for selecting a data packet to be protected from a data packet queue. The transmitter processor is also used to: encode the selected data packet to obtain a transmission packet output sequence; send the selected data packet in an original format together with the transmission packet output sequence as a protected transmission to the receiving end; set a retransmission timer to a predefined time period. The transmitter processor is also used to: release the retransmission timer in response to receiving a confirmation message from the receiving end, the confirmation message confirming that the selected data packet is received in the protected transmission within the predefined time period, exclude the selected data packet from the queue, and if the queue is not empty, return the selection to select the next data packet. The transmitter processor is also used to: return the encoding of the selected data packet in response to triggering the retransmission timer.
[0012] The disclosed data transmitter realizes all the advantages and technical features of the method of the present invention.
[0013] In another aspect, the present invention provides a data receiver, the data receiver comprising: a communication interface for communicating with a transmitter through one or more communication channels; a receiver processor for receiving a protected transmission from the transmitter using the communication interface, the protected transmission comprising a plurality of transmission packets, the plurality of transmission packets being encoded by the method to protect the data packets. In addition, if the protected transmission also comprises a data packet in an original format, a confirmation message is sent to the transmitter to confirm receipt of the data packet and terminate processing of the protected transmission, otherwise, the data packet is decoded from the received transmission packet by the method to reconstruct the data packet, the reconstructed data packet is injected into a network stack, and the confirmation message is sent to the transmitter to confirm receipt of the data packet.
[0014] The disclosed data receiver realizes all the advantages and technical features of the method of the present invention.
[0015] It should be understood that all the above-mentioned embodiments can be combined together.
[0016] It should be noted that all devices, elements, circuits, units and components described in this application can be implemented by software or hardware elements or any type of combination thereof. All steps performed by various entities described in this application and the described functions to be performed by various entities are intended to indicate that the corresponding entities are used to perform the corresponding steps and functions. Although in the description of the following specific embodiments, the specific functions or steps performed by external entities are not reflected in the description of the specific detailed elements of the entities performing the specific steps or functions, it should be clear to the technician that these methods and functions can be implemented by corresponding hardware or software elements or any combination thereof. It is understandable that the features of the present invention are easy to be combined in various combinations without departing from the scope of the present invention as defined by the appended claims.
[0017] Additional aspects, advantages, features and objects of the present invention will become apparent from the accompanying drawings and detailed description of illustrative implementations interpreted in conjunction with the following appended claims. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] The above summary of the invention and the following detailed description of illustrative embodiments may be better understood when read in conjunction with the accompanying drawings. In order to illustrate the present invention, exemplary structures of the present invention are shown in the accompanying drawings. However, the present invention is not limited to the specific methods and tools disclosed herein. In addition, it should be understood by those skilled in the art that the accompanying drawings are not drawn to scale. Where possible, the same elements are represented by the same numbers.
[0019] Embodiments of the present invention will now be described by way of example only with reference to the following drawings, in which:
[0020] Figure 1 is a flow chart of a method for encoding a data packet for protected transmission provided by an embodiment of the present invention;
[0021] Figure 2 is a flow chart of a method for decoding a data packet from a protected transmission provided by an embodiment of the present invention;
[0022] Figure 3 is a block diagram of a data transmitter provided by an embodiment of the present invention;
[0023] Figure 4 is a block diagram of a data receiver provided by one embodiment of the present invention;
[0024] Figure 5A is a flowchart of a chained and finite (NF) encoding and decoding process for sending protected data between deletion channels provided by an embodiment of the present invention;
[0025] Figure 5B is a graphical representation of a decoding graph representation provided by one embodiment of the present invention;
[0026] Fig. 6A , Figure 6B and Figure 6C A flowchart of encoding NF code by a data transmitter is described together according to an embodiment of the present invention;
[0027] Fig. 7A and Figure 7B A flowchart of decoding NF code by a data receiver is described together according to one embodiment of the present invention;
[0028] Figure 8 is a diagram of communication between a data transmitter and a data receiver provided by one embodiment of the present invention;
[0029] Fig.9A is a diagram of communication for transmitting redundant data between a transmitter and a receiver provided by one embodiment of the present invention;
[0030] Fig. 9B It is a diagram of a quick UDP internet connections (QUIC) data packet provided by one embodiment of the present invention.
[0031] In the drawings, underlined numbers are used to indicate the item in which the underlined number is located or an item adjacent to the underlined number. Non-underlined numbers are associated with the item identified by the line that associates the non-underlined number with the item. When a number is not underlined and has an associated arrow, the non-underlined number is used to identify the general item that the arrow points to. DETAILED DESCRIPTION
[0032] The following detailed description describes embodiments of the invention and ways in which these embodiments may be implemented. Although some modes of implementing the invention have been disclosed, those skilled in the art will recognize that there are other embodiments for implementing or practicing the invention.
[0033] Figure 1 FIG. 1 is a flowchart of a method for encoding a data packet for protected transmission provided by an embodiment of the present invention. Figure 1 , a method 100 for encoding a data packet for protected transmission is shown. The method 100 includes steps 102 to 110.
[0034] A method 100 of encoding data packets for protected transmission is provided. The method 100 is used to improve the reliability of data transmission over a packet-switched network having a burst error rate, is optimal for relatively small data transactions, and is suitable for mobile environments.
[0035] In step 102, the method 100 includes, at the transmitting end, dividing the data packet to be protected into m data slices Y of equal size. m First, at the sending end, select a data packet, such as S j In one example, the data packet is also referred to as a given original data packet to be protected. Thereafter, the data packet is divided into m data fragments Y of equal size. m , for example, the number m is the number of partitions, such as Figure 5A According to one embodiment, the method 100 further includes: padding the data packet to be protected with zeros before dividing the data packet into data fragments. In one implementation, before dividing the data packet into data fragments, padding the data packet to be protected with zeros as needed. In one example, padding data is added to the data packet to be protected.
[0036] At step 104, the method 100 includes creating a first transport packet X1 of the transport packet output sequence at the transmitting end to include the first data fragment Y1 and its index, and the first transport packet X1 is marked as having a degree of 1 to serve as an entry point of the decoded output sequence. First, a packet sequence X is formed. k As an entry point. Thereafter, a first transport packet X1 is created and marked as having a degree of 1 to serve as an entry point for the decoded transport packet output sequence. The first transport packet X1 includes a first data slice Y1 and its index. In one example, the method 100 includes placing the data slice Y0 and the 0th transport packet X0 into the sequence X1. k As an entry point, the packet is marked as degree 1, which can be used in the decoding algorithm. In one implementation, packet X0 is equal to S j , as shown in Figure 5
[0037] In step 106, the method 100 includes, at the transmitting end, creating a plurality of transmission packets immediately after the first transmission packet X1 in the output sequence, and each transmission packet in the plurality of transmission packets is marked as having a degree of 2 and including a pair of different data fragments Y m The result of the XOR operation between and the index of the data slice in the pair, the multiple transmission packets include different data slices Y m In other words, the method 100 includes: for different data shards Y m Create multiple transmission packages, for example, multiple transmission packages include different data segments Y m In addition, a plurality of transmission packets are created immediately after the first transmission packet X1 in the output sequence. For example, the method 100 includes creating a transmission packet X2, a transmission packet X3, a transmission packet X4, until the transmission packet X 10 , these transport packets are created immediately after the first transport packet X1 in the output sequence, such as Figure 5AIn addition, each of the plurality of transmission packets is marked as degree 2 (i.e., constant value 2), and each of the plurality of transmission packets includes a pair of different data segments Y m In one example, method 100 includes selecting z as the distance between the reassembled fragments to be zero, and incrementing each loop step until z is less than m-1, and performing a final transmission of packet X. k =Yi⊕Yj+z, i≠j. In another example, the transmission packet X2 includes the first data fragment Y1, and the transmission packet X3 includes Y2^Y3.
[0038] In step 108, the method 100 includes, at the transmitting end, immediately following the plurality of transport packets in the output sequence, from the remaining data fragments Y2, ..., Y m The final transmission packet is created. In addition, each transmission packet in the final transmission packet is marked as having a degree of 1 to serve as an entry point for decoding, and includes a data slice and an index of the data slice. For example, the method 100 includes: m Placed to form the final transmission packet sequence X k In addition, the remaining data fragments Y2, ..., Y m is placed as an entry point, for example, each transport packet in the final transport packet is marked as having a degree of 1 to serve as an entry point for decoding, such as Figure 5A Further shown and described in .
[0039] At step 110, the method 100 includes, at the transmitting end, exchanging the first transmission packet X1 of the output sequence with the second transmission packet X2 of the output sequence. In one example, the 0th transmission packet X0 of the output sequence is also exchanged with the first transmission packet X1 of the output sequence. In addition, the first transmission packet X1 of the output sequence is exchanged with the second transmission packet X2 of the output sequence.
[0040] According to one embodiment, the method 100 further comprises: sending the transmission packet output sequence as a protected transmission to the receiving end. In other words, the method 100 comprises sending the transmission packet output sequence, such as X0, ..., X k In such an embodiment, the method 100 further includes sending the output sequence of transport packets as a protected transmission including sending the data packet in the original format as part of the protected transmission along with the output sequence of transport packets.
[0041] The method 100 is used to develop a lightweight systematic chained finite forward error correction (NF FEC) code, which improves the reliability of data transmitted through a packet switching network with a burst bit error rate, is optimal for relatively small data transactions, and is suitable for mobile environments, such as web searches and payment transactions. The method 100 is based on fountain codes and is also supported by the mathematical form of fountain codes. In addition, by modifying and optimizing these codes for our situation, the method 100 inherits most of the characteristics of fountain codes, and compared with traditional methods, it also takes into account the specific problems and challenges of small data packet optimization, and makes some improvements, so that the overall performance of small packet transmission is improved, thereby enhancing fountain codes.
[0042] Steps 102 to 110 are merely illustrative, and other alternatives may be provided in which one or more steps are added, one or more steps are deleted, or one or more steps are provided in a different order without departing from the scope of the claims herein.
[0043] Figure 2 FIG. 1 is a flowchart of a method for decoding a data packet from a protected transmission provided by an embodiment of the present invention. Figure 2 , a method 200 for decoding a data packet from a protected transmission is shown. The method 200 includes steps 202 to 208.
[0044] A method 200 of decoding a data packet from a protected transmission is provided. The method 200 improves the reliability of data transmission over a packet-switched network having a burst error rate, is optimal for relatively small data transactions, and is suitable for mobile environments.
[0045] In step 202, the method 200 includes: at a receiving end, receiving a protected transmission, the protected transmission including k transmission packets X of a transmission packet output sequence i , where i is 1 to k, and the k transmission packets X i The method 100 is used to encode the data packets to protect the data packets. In addition, the number k of received transmission packets is equal to or greater than the number m of data fragments. First, the method 100 includes encoding the transmission packet output sequence at the transmitting end to protect the data packets. Then, the method 200 includes: at the receiving end, receiving the protected transmission, the protected transmission including k transmission packets X of the transmission packet output sequence i , where i is from 1 to k.
[0046] In step 204, the method 200 includes: obtaining a creation transmission packet X from each received transmission packet i In addition, if the received transmission packet Xi is the entry point, then its parameters x and y are equal. At the receiving end, each packet X i Includes the index of the data slice for creating the transmission packet as parameters x and y. In addition, if the transmission packet X received from the sender i is an entry point, then its parameters x and y are equal, for example, if x is equal to 1 for this entry point, then y is also equal to 1, such as Figure 5A As further shown. In one implementation, for k transmission packets X i Given a set of all transport packets, all packets belong to the data packet (e.g., message S j ), the set includes any number of entry points in any order, and the number of transmission packets k is equal to or greater than the number of data fragments m.
[0047] In step 206, the method 200 includes: constructing a graph G(Y,X), wherein the vertex Y corresponds to the data slice Y to be decoded. m , edge X includes the received transmission packet X i As the payload, each edge X i Associated to vertex Y x or Vertex Y x , Y y , the Y x , Y y Including creating a transmission package X based on the obtained parameters x and y i First, construct a graph G(Y,X), where the vertex Y of the graph G(Y,X) corresponds to the data slice Y to be decoded. m In addition, the transmission packet corresponds to the edge E=X of the graph G(Y,X) k.x,k.y ,like Figure 5B Further shown and described in .
[0048] At step 208, method 200 includes: sequentially performing a search for each edge X of graph G(Y,X) according to the increasing index i. i In other words, for each edge X of the graph G(Y,X) i , and process the incremented index i in sequence. Step 208 is further decomposed into the following steps 208A to 208F, and the processing is performed in sequence. In step 208A, method 200 includes: processing if edge X i According to the vertex Y associated with the x parameter x is decoded and the edge X i According to the vertex Y associated with the y parameter y If x is decoded, terminate the current edge processing and continue to the next edge processing. In other words, if x is decoded and y is decoded, continue. In addition, in step 208B, method 200 includes: checking if x iis the entry point, that is, the x parameter is equal to the y parameter, then the decoded vertex Y x In other words, if the x parameter of the entry point is equal to the y parameter, then method 200 includes decoding vertex Y of graph G(Y,X) x In addition, at step 208C, method 200 includes checking if vertex Y x is decoded, and vertex Y y If not decoded, the vertex Y y Decodes to be equal to (X i XOR Y x ). For example, if x is decoded and y is not decoded, then method 200 includes decoding vertex Y of graph G(Y,X) y , for example, G(y)=Xk⊕G(x). Then, in step 208D, method 200 includes: checking if vertex Y y is decoded, and vertex Y x If not decoded, the vertex Y x Decodes to be equal to (X i XOR Y y ). For example, if y is decoded and x is not decoded, method 200 includes decoding vertex Y of graph G(Y,X) x , for example, G(x)=Xk⊕G(y). In addition, at step 208E, method 200 includes: checking if vertex Y x Not decoded, and vertex Y y If it is not decoded, a new edge is added to the graph G(Y,X) with a payload X i , the index i is equal to the number k plus one, and the parameters x and y are the same as the current edge, so that the new edge is associated with vertex Y x and Y y For example, if x is not decoded and y is not decoded, then method 200 includes adding a graph G(Y,X) with a payload X i , such as adding an edge Method 200 also includes the step of assigning an index i equal to the number k plus one, and parameters x and y being the same as the current edge, so that the new edge is associated with vertex Y x and Y y , for example, place the undecoded data packet G(X,Y)=X k and G(Y,X)=X k Finally, at step 208F, method 200 includes checking if all vertices of the graph are decoded, and then reconstructing the data packet encoded in the protected transmission. In other words, if all nodes in the graph G(Y,X) are decoded, method 200 includes reconstructing the protected data packet and injecting the protected data packet into the network stack.
[0049] Furthermore, decoding of vertex Y includes marking vertex Y as decoded and checking each edge X associated with vertex Y. Furthermore, if vertex Y to which edge X is associated x is decoded, the decoding is terminated if the vertex Y x Not decoded, vertex Y x Decodes to be equal to (X XOR Y). In other words, the decoding of vertex Y includes: marking vertex Y of graph G(Y,X) as decoded, such as marking G(y) as decoded. In addition, for each edge X associated with vertex Y, In addition, if the vertex Y of the graph G(Y,X) to which edge X is associated x is decoded, then method 200 includes terminating decoding. In addition, if vertex Y x If not decoded, the vertex Y x Decoded to be equal to G(x)=(G(Y,X)⊕G(Y)). According to one embodiment, if a data packet in the original format is sent in the protected transmission and is successfully received at the receiving end, the method 200 includes terminating the processing of the received transmission packet.
[0050] The method 200 is used to develop a lightweight systematic chained finite forward error correction (NF FEC) code, which improves the reliability of data transmission through a packet switching network with a burst bit error rate, is optimal for relatively small data transactions, and is suitable for mobile environments, such as Web searches and payment transactions.
[0051] Steps 202 to 208 and 208A to 208F are merely illustrative, and other alternatives may be provided in which one or more steps are added, one or more steps are deleted, or one or more steps are provided in a different order without departing from the scope of the claims herein.
[0052] Figure 3 FIG. 1 is a block diagram of a data transmitter provided by an embodiment of the present invention. Figure 3 , a block diagram 300 is shown, depicting a data transmitter 302 , a communication interface 304 , a transmitter processor 306 , a memory 308 , one or more communication channels 310 , and a receiving end 312 .
[0053] The data transmitter 302 may include suitable logic, circuitry, interfaces and / or code for transmitting an output sequence of transmission packets to a receiving end 312 via one or more communication channels 310. Examples of the data transmitter 302 may include, but are not limited to, a transmitter, a transmitter, a transceiver, an encoder, etc. The communication interface 304 includes hardware or software for communicating with the receiving end 312 via one or more communication channels 310. Examples of the communication interface 304 may include, but are not limited to, a computer port, a network socket, a network interface controller (NIC), and any other network interface device.
[0054] The transmitter processor 306 may include suitable logic, circuitry, interfaces and / or code for selecting a packet to be protected from a queue of packets. Implementation examples of the transmitter processor 306 may include, but are not limited to, a central data processing device, a microprocessor, a microcontroller, a complex instruction set computing (CISC) processor, an application-specific integrated circuit (ASIC) processor, a reduced instruction set (RISC) processor, a very long instruction word (VLIW) processor, a state machine, and other processors or control circuits.
[0055] The memory 308 may include suitable logic, circuitry, and / or interfaces for storing the transmission packet output sequence. Implementation examples of the memory 308 may include, but are not limited to, electrically erasable programmable read-only memory (EEPROM), dynamic random access memory (DRAM), random access memory (RAM), read-only memory (ROM), hard disk drive (HDD), flash memory, secure digital (SD) card, solid-state drive (SSD), and / or CPU cache memory.
[0056] Each of the one or more communication channels 310 corresponds to a channel used as an intermediary between the data transmitter 302 and a receiving end 312. The receiving end 312 may include suitable logic, circuitry, interfaces, and / or code for receiving an output sequence of transport packets via the one or more communication channels 310. Examples of the receiving end 312 may include, but are not limited to, a receiver, a decoder, a transceiver, etc.
[0057] A data transmitter 302 is provided that includes a communication interface 304 that is used to communicate with a receiving end 312 via one or more communication channels 310. The data transmitter 302 also includes a transmitter processor 306 that is used to select a data packet to be protected from a data packet queue and encode the selected data packet according to the method 100 to obtain a transmission packet output sequence. First, the transmitter processor 306 is used to receive a queue of data packets. Thereafter, the transmitter processor 306 is used to select a data packet to be protected from the data packet queue and encode the selected data packet to obtain a transmission packet output sequence. For example, the transmitter processor 306 divides the data packet to be protected into m data slices Y of equal size m , then creates a first transport packet X1 of the transport packet output sequence to include the first data slice Y1 and its index. In addition, the first transport packet is marked as having a degree of 1 to serve as an entry point for decoding the output sequence. The transmitter processor 306 also creates a plurality of transport packets immediately following the first transport packet in the output sequence. In addition, each of the plurality of transport packets is marked as having a degree of 2 and includes a pair of different data slices Y m The result of the XOR operation between and the index of the data slice in the pair, the multiple transmission packets include different data slices Y m Then, the transmitter processor 306 immediately follows the plurality of transport packets in the output sequence from the remaining data fragments Y2, ..., Y m A final transmission packet is created. In addition, each transmission packet in the final transmission packet is marked as having a degree of 1 to serve as an entry point for decoding, and includes a data slice and an index of the data slice, and the first transmission packet X1 of the output sequence is exchanged with the second transmission packet X2 of the output sequence. In an example, the transmitter processor 306 is configured to store the output sequence in the memory 308.
[0058] The transmitter processor 306 also sends the selected data packet in the original format together with the output sequence of transport packets as a protected transmission to the receiving end 312, and sets the retransmission timer to a predefined time period. For example, the transmitter processor 306 uses the communication interface 304 to send the selected data packet in the original format together with the output sequence of transport packets as a protected transmission to the receiving end 312 through one or more communication channels 310. Thereafter, the receiving end 312 is configured to receive the protected transmission through another communication interface.
[0059] The transmitter processor 306 is also used to release the retransmission timer in response to receiving a confirmation message from the receiving end 312, the confirmation message confirming that the selected data packet is received in the protected transmission within a predefined time period, excluding the selected data packet from the queue, and if the queue is not empty, returning the selection to select the next data packet. Alternatively, in response to triggering the retransmission timer, returning the encoding of the selected data packet. In other words, if the protected transmission also includes a data packet in the original format, the receiving end 312 is used to send a confirmation message to the data transmitter 302 through one or more communication channels 310. The confirmation message is used to confirm that the selected data packet is received in the protected transmission within a predefined time period. Thereafter, the transmitter processor 306 of the data transmitter 302 is used to exclude the selected data packet from the queue, and if the queue is not empty, returning the selection to select the next data packet, or in response to triggering the retransmission timer, returning the encoding of the selected data packet. The data transmitter 302 is conducive to improving the reliability of data transmission through a packet switching network with a burst bit error rate, is optimal for relatively small data transactions, and is suitable for a mobile environment.
[0060] Figure 4 FIG. 1 is a block diagram of a data receiver provided by an embodiment of the present invention. Figure 4 , a block diagram 400 is shown, depicting a data receiver 402 , a communication interface 404 , a receiver processor 406 , a memory 408 , a transmitter 410 , and one or more communication channels 310 .
[0061] The data receiver 402 may comprise suitable logic, circuitry, interfaces and / or code for receiving an output sequence of transport packets via one or more communication channels 310. Examples of the data receiver 402 may include, but are not limited to, a receiver, a decoder, a transceiver, etc.
[0062] The communication interface 404 includes hardware or software for communicating with the sender 410 through one or more communication channels 310. Examples of the communication interface 404 may include, but are not limited to, a computer port, a network socket, a network interface controller (NIC), and any other network interface device.
[0063] The receiver processor 406 may include suitable logic, circuitry, interfaces and / or code for receiving a packet to be protected from a packet queue. Implementation examples of the receiver processor 406 may include, but are not limited to, a central data processing device, a microprocessor, a microcontroller, a complex instruction set computing (CISC) processor, an application-specific integrated circuit (ASIC) processor, a reduced instruction set (RISC) processor, a very long instruction word (VLIW) processor, a state machine, and other processors or control circuits.
[0064] The memory 408 may include suitable logic, circuitry, and / or interfaces for storing the transmission packet output sequence. Implementation examples of the memory 408 may include, but are not limited to, electrically erasable programmable read-only memory (EEPROM), dynamic random access memory (DRAM), random access memory (RAM), read-only memory (ROM), hard disk drive (HDD), flash memory, secure digital (SD) card, solid-state drive (SSD), and / or CPU cache memory.
[0065] Each of the one or more communication channels 310 corresponds to a channel used as an intermediary between the data receiver 402 and the transmitter 410. The transmitter 410 may include suitable logic, circuitry, interfaces, and / or code for transmitting an output sequence of transport packets to the data receiver 402 via the one or more communication channels 310. Examples of the transmitter 410 may include, but are not limited to, a transmitter, a transmitter, a transceiver, an encoder, etc.
[0066] A data receiver 402 is provided that includes a communication interface 404 for communicating with a transmitter 410 via one or more communication channels 310. The data receiver 402 also includes a receiver processor 406 for receiving a protected transmission from the transmitter 410 using the communication interface 404, the protected transmission including a plurality of transmission packets transmitted via Figure 1The method 100 is used to encode the protected data packet. In addition, if the protected transmission also includes data packets in the original format, the receiver processor 406 is used to send an acknowledgment message to the sender 410 to confirm the receipt of the data packet and terminate the processing of the protected transmission. In one implementation, the communication interface 404 is used by the receiver processor 406 to send the acknowledgment message through one or more communication channels 310. In addition, if the protected transmission does not include data packets in the original format, the receiver processor 406 is used to decode the data packet from the received transmission packet through the method 200 to reconstruct the data packet, inject the reconstructed data packet into the network stack, and send a confirmation message to the sender 410 to confirm the receipt of the data packet.
[0067] In one implementation, the receiver processor 406 is configured to receive a protected transmission, the protected transmission comprising k transport packets X of a transport packet output sequence i , where i is 1 to k, and the k transmission packets X i pass Figure 1 The method 100 is used to encode the received transport packets to protect the data packets. The number k of received transport packets is equal to or greater than the number m of data fragments. The receiver processor 406 is also used to extract the received transport packets x from each received transport packet. i Get the index of the data slice that creates the transmission packet as parameters x and y. If the received transmission packet X i is an entry point, then its parameters x and y are equal. The receiver processor 406 is also used to construct a graph G(Y,X), where vertex Y corresponds to the data slice Y to be decoded m , edge X includes the received transmission packet X i As the payload, each edge X i Associated to vertex Y x or Vertex Y x , Y y , the Y x , Y y Including creating a transmission package X based on the obtained parameters x and y i Afterwards, the receiver processor 406 is further configured to sequentially perform a search on each edge X of the graph G(Y,X) according to the increasing index i. i Proceed as follows: If edge X i According to the vertex Y associated with its x parameter x Decoded and edge X i According to the vertex Y associated with its y parameter y is decoded, the current edge processing is terminated and the next edge processing is continued. In addition, if X i is the entry point, that is, the x parameter is equal to the y parameter, then decode the vertex Y x ; If the vertex Y x is decoded, and the vertex Yy If not decoded, the vertex Y y Decodes to be equal to (X i XOR Y x ). In addition, if vertex Y y is decoded and vertex Y x If not decoded, the vertex Y x Decodes to be equal to (X i XOR Y y ), if vertex Y x Not decoded and vertex Y y is not decoded, a new edge is added to the graph, the new edge having a payload X i , the index i is equal to the number k plus one, and the parameters x and y are the same as the current edge, so that the new edge is associated with vertex Y x and Y y . Furthermore, if all vertices of the graph are decoded, then the data packets encoded in the protected transmission are reconstructed. Furthermore, decoding of vertex Y includes marking vertex Y as decoded and checking each edge X associated with vertex Y, and if the vertex Y to which edge X is associated is x is decoded, the decoding is terminated, and if the vertex Y x If not decoded, the vertex Y x Decodes to be equal to (X XOR Y). Data receiver 402 provides a lightweight systematic chained and finite forward error correction (NF FEC) code that is beneficial for improving the reliability of data transmission over packet switching networks with burst error rates, is optimal for relatively small data transactions, and is suitable for mobile environments.
[0068] Figure 5A It is a flowchart of a chained and finite (NF) encoding and decoding process for sending protected data between erasure channels provided by an embodiment of the present invention. Figure 5A Combination Figure 3 and Figure 4 Reference Figure 5A , a flowchart 500A for decoding is shown, describing a chained and finite (NF) encoding and decoding process for sending protected data between erasure channels (eg, via one or more communication channels 310).
[0069] refer to Figure 5A , showing the actual implementation of the chained and finite (NF) encoding and decoding process. It is also shown that the data packet to be protected (such as S j) is divided into m data slices Y of equal size m , when m is equal to 4, the original data is also sent, and the first 7 transmission packets are lost during the transaction. In one implementation, the protected data packet Sj is divided into a plurality of data fragments Y of equal size m , for example, Y1, Y2, Y3 and Y4, such as Figure 5A In one implementation, the data transmitter 302 is used to pre-transmit the original data packet S j Then, the data transmitter 302 executes a reassembly algorithm to merge the data segments Y through XoR operation. m , to generate a finite series of transmission packets X1.. k , and evenly distributed sequences to overcome burst error events using the least optimal additional packets.
[0070] In one implementation, the data transmitter 302 is configured to perform NF encoding, which includes a systematic, uniformly distributed XoR product and a systematic, uniformly distributed entry point. The data transmitter 302 also creates a first transmission packet X1 of the transmission packet output sequence to include the first data fragment Y1 and its index, and the first transmission packet X1 is marked as having a degree of 1 to serve as an entry point for the decoding output sequence. Thereafter, the data transmitter 302 creates a plurality of transmission packets immediately after the first transmission packet in the output sequence. In addition, each of the plurality of transmission packets is marked as having a degree of 2 and includes a pair of different data fragments Y m The result of the XOR operation between and the index of the data slice in the pair, the multiple transmission packets include different data slices Y m After that, the data transmitter 302 outputs the data from the remaining data fragments Y2, ..., Y immediately after the plurality of transmission packets in the output sequence. m Create the final transmission packet, and then swap the first transmission packet X1 of the output sequence with the second transmission packet X2 of the output sequence, as Figure 5A shown.
[0071] Furthermore, the characteristics of the NF code recovery (or decoding) occurring at the data receiver 402 include various key points, such as Figure 5A Also shown are different digital combinations for multiple transmission packets. Figure 5ADifferent decoding points are also marked in , as well as a small amount of burst packet loss from multiple transmission packets. In one example, the data receiver 402 divides the size of the data packet according to the number m, for example, using the number m to determine how many parts the original data packet is divided into. In one example, the data transmitter 302 can lose any m single random transmission packets and successfully recover the original message. In addition, if the first transmission packet X1 (i.e., the original data packet) is not lost, the time to process the request on the data receiver 402 will be equal to the time to process the pure data packet sent. In one example, the data receiver 402 sends an additional data packet, such as k=m*(m–1) / 2+m. In addition, according to the number k, k–m+1 subsequent data packets are lost and the original data is successfully recovered. In one example, for two subsequent data packets, if m=2, then k=3. In another example, for four data packets, if m=3, then k=6. In another example, for seven data packets, if m=4, then k=10. In another example, for eight data packets, if m=5, then k=12. In addition, the encoding complexity is determined by a formula (e.g., O(d*(log2(m)+1))), where d is the data length and m is the partition size. In addition, the decoding complexity is determined by a formula O(m+k), where m is the partition size and k is the number of received packets.
[0072] Figure 5B is a graphical representation of a decoding graph representation provided by one embodiment of the present invention. Figure 5B Combination Figure 3 and Figure 4 Reference Figure 5B , a graphical representation 500B of a decoding graph representation is shown. The graphical representation 500B includes a first node 502, a second node 504, a third node 506, and a fourth node 508.
[0073] In one implementation, a graph representation 500B corresponding to a graph G(Y,X) is constructed, wherein vertex Y corresponds to data slice Y to be decoded. m , edge X includes the received transmission packet X i As the payload, each edge X i Associated to vertex Y x or Vertex Y x , Y y , the Y x , Y y Including creating a transmission package X based on the obtained parameters x and y i In one example, the transmission packet corresponds to the edge E=X of the graph G(Y,X) k.x,k.y , for example, the edges of each node, such as Figure 5BAs shown. Graphical representation 500B corresponds to the condition when there are four data fragments. In addition, since the NF code generates a finite sequence of transmission packets, it is necessary to select the optimal number of fragments Y by estimating the reliability of the network channel. m In one implementation, receiver processor 406 of data receiver 402 is used to decode all nodes of graph representation 500B, such as decoding first node 502, second node 504, third node 506, and fourth node 508. Furthermore, if all nodes in graph representation 500B (e.g., graph G(Y,X)) are decoded, protected data packets are reconstructed using data receiver 402 and injected into the network stack.
[0074] Fig. 6A , Figure 6B and Figure 6C The flowchart of encoding NF code by a data transmitter provided by one embodiment of the present invention is collectively described. Fig. 6A , Figure 6B and Figure 6C Combination Figures 3 to 5B Reference Fig. 6A , Figure 6B and Figure 6C , showing a flowchart 600A, a flowchart 600B and a flowchart 600C including a series of operations from 602 to 642. In one implementation, ( Figure 3 The data transmitter 302 is used to execute flowcharts 600A, 600B and 600C.
[0075] refer to Fig. 6A , showing that in operation 602, the data transmitter 302 starts a coding algorithm based on a chained finite forward error correction (NF FEC) code. In addition, in operation 604, the data transmitter 302 receives a data packet, such as "S j ", and further divide the received data packets "S j ", and divide the received data packets "S j ”. Thereafter, in operation 606, the received data packet “S j ” is divided into subsets of data shards of equal size, such as “Y m In one implementation, data fragmentation includes padding with zeros if necessary. In addition, at operation 608, the value of the number of received data packets "k" is set to zero, and at operation 610, the data transmitter 302 replaces the received data packets with data "S j "Filling transmission package"X kIn addition, in operation 612, the data transmitter 302 sets the number of data packets "k" by increasing the value of k by 1 (e.g., k=k+1). For example, if the value of k is 0, the value of k is increased by 1. Thereafter, in operation 614, the data transmitter 302 adds the data slice Y0 as an entry point to the head of the sequence, e.g., X k =Y0,X k .x=0,X k .y=0,X k .id=j,k=k+1.
[0076] refer to Figure 6B , it is shown that in operation 616, the k value representing the number of data packets is increased, and in operation 618, the values of the transmission packet "i" and the next transmission packet "z" of the first transmission packet are set to 0 and 1, respectively. In addition, in operation 620, the data transmitter 302 sets X k =XoR(Y i ,Y i+z ) and record X k .x=i,X k .y=i+z,X k .id=j. Thereafter, in operation 622, the value of k is increased, and the value of i+=1, and in operation 624, the data transmitter 302 checks whether the value of i+z (i.e., the value of the transmission packet and the value of the next transmission packet of the first transmission packet) is less than m (i.e., the number of divisions). If the value is less than the value of m, the data transmitter 302 performs operation 620, otherwise, the data transmitter 302 performs operation 626. In addition, in operation 626, the data transmitter 302 checks the value of z, and if the value of z is less than m–1, the data transmitter 302 performs operation 628, wherein the value of i is set to 0 and the value of z is increased by 1, and operation 620 is further performed. However, if the value of z is not less than m–1, the data transmitter 302 performs operation 630.
[0077] refer to Figure 6C , showing that at operation 630, the data transmitter 302 adds a data slice "e" and sets the value of e to 1. Thereafter, at operation 632, the data transmitter 302 sets X k =Y e , and recorded in X k , X k .x=e,X k .y=e,X k. The entry point index and message index when.id = j, and further increment the values of k and e by 1, as shown in operation 634. Again, data transmitter 302 checks if the value of e is less than the value of m, then data transmitter 302 performs operation 632, otherwise, it performs operation 638, where transmission packet X1 is exchanged with transmission packet X2, and the value of k is decremented. Finally, in operation 640, data transmitter 302 transmits transmission packet X 0..k . Further, in operation 642, data transmitter 302 completes NF encoding.
[0078] Fig. 7A and Figure 7B collectively describe a flowchart for decoding an NF code by a data receiver provided by an embodiment of the present invention. Fig. 7A and Figure 7B in combination with Figures 3 to 6C the elements of are described. Refer to Fig. 7A and Figure 7B , flowcharts 700A and 700B including a series of operations from 702 to 746 are shown. ( Figure 4 ) Data receiver 402 is used to execute flowcharts 700A and 700B.
[0079] Refer to Fig. 7A , it is shown that in operation 702, data receiver 402 starts decoding the NF code. Further, in operation 704, data receiver 402 checks if the number of data packets "k" is less than the number of partitions "m". If the number of data packets is less than the number of partitions (i.e., k < m), then data receiver 402 returns an error according to operation 706. However, if the number of data packets "k" is not less than the number of partitions "m", then data receiver 402 performs operation 708. In operation 708, data receiver 402 also checks if multiple transmission packets (such as X0) exist. If data receiver 402 exists, then data receiver 402 returns "ok" through operation 710, and if multiple transmission packets do not exist, then data receiver 402 performs operation 712. In operation 712, data receiver 402 creates SS with values from 0 to m - 1 and fills the set with the number of data shards decoded from set Xs. Thereafter, in operation 714, data receiver 402 checks the numbers from 0 to m - 1, and if set SS does not include any numbers, it returns an error through operation 716, otherwise, data receiver 402 performs operation 718 to check the entry point. If no entry point is found, then data receiver 402 returns an error, otherwise, data receiver 402 constructs a graph, such as G(Y,X), according to operation 720.
[0080] Refer to Figure 7B , it is shown that the vertices of the graph (such as "Y") represent data shard Y m, and the edges of the graph (e.g., “X”) represent the transmission of packet X k In addition, all data slices Y are decoded by implementing operation 722 m In operation 722, the data receiver 402 checks the transmission packet X k Then, operation 724 is performed to decode the next data fragment. In operation 724, the data receiver 402 checks whether X k .x's set SS is decoded and X k .y set SS is decoded. If it has X k .x sets SS and has X k .y are all decoded, the data receiver 402 performs operation 726 and then returns to operation 722 again. In addition, if there is X k .x sets SS and has X k If none of the sets SS of .y are decoded, the data receiver 402 performs operation 728 .
[0081] At operation 728, the data receiver 402 checks X k Is it an entry point? If X k is an entry point, the data receiver 402 decodes the data slice (X) by, for example, operation 730 k .x), and if X k If it is not an entry point, operation 732 is performed, and the data receiver 402 checks whether SS(Xk,x) is decoded and SS(Xk,y) is not decoded. Thereafter, in operation 734, the data receiver 402 decodes the data slice or X included in the set SS(Xk.x). k, Xk)). The data receiver 402 further checks whether the set SS(Xk,x) is decoded and the set SS(Xk,y) is not decoded, or whether the set SS(Xk,x) is not decoded and the set SS(Xk,y) is not decoded, or whether the set SS(Xk,x) is decoded and the set SS(Xk,y) is decoded. In addition, at operation 736, the data receiver 402 checks whether the set SS(Xk,y) is decoded and the set (Xk.x) is not undecoded. Then, in this case, the data receiver 402 performs operation 738. At operation 738, the data receiver 402 decodes the data slices included in the set SS(Xk.y) or the data slices included in Xk (i.e., (XoR(SS(Xk.y), Xk))). In addition, if the set SS(Xk,y) and the set (Xk.x) are not decoded and the set SS(Xk,y) is not decoded and the set (Xk.x) is decoded, the data receiver 402 performs operation 740. In operation 740, the data receiver 402 further checks whether both the set SS(Xk.x) and the set SS(Xk,y) are not decoded. Thereafter, if the set SS(Xk.x) and the set SS(Xk,y) are not decoded, the data receiver 402 adds an edge "G" (Xk.x.Xk.y) with a payload Xk by performing operation 742, and finally, the data receiver proceeds to the next data packet (ie, operation 726), and then performs operation 722 again until all data fragments are decoded. Thereafter, finally, the data receiver 402 reconstructs the original data and returns the data packet by performing operation 744, and then performs operation 746 to complete the decoding.
[0082] Figure 8 is a diagram of communication between a data transmitter and a data receiver provided by one embodiment of the present invention. Figure 8 Combination Figure 3 The elements of Figure 7 are described below. Figure 8 , a diagram showing communication between a data transmitter 302 and a data receiver 402 is shown.
[0083] In one implementation, the data transmitter 302 includes a transmitter processor 306 configured to transmit the protected data packet S to the data receiver 402. j 802. The data receiver 402 is first received by the NF encoder 804, which is used to encode the protected data packet S j 802. In addition, the NF encoder 804 is also used according to Figure 1 Method 100 for encoding a protected data packet S j 802 to obtain a transmission packet output sequence, such as transmission packet X i 806, transmission packet Xi 806 is connected to the send packet queue 808 so as to send the protected packet S j 802 is transmitted to the data receiver 402. In one example, the NF encoder 804 encodes the data packet using a chained and finite forward error correction (NF FEC) code. As a result, the data transmitter 302 transmits the protected data packet S in the original format. j 802 is sent to the data receiver 402 together with the transmission packet output sequence as a protected transmission. In one example, the data transmitter 302 is used to perform Figure 8 The algorithm is also marked as the algorithm transmitter.
[0084] In addition, the transmit packet queue 808 is also connected to the receive packet queue 810 at the output end to receive a protected transmission from the data transmitter 302, the protected transmission including a plurality of transmission packets, the plurality of transmission packets being encoded by the method 100 to protect the data packets. Thereafter, the data receiver 402 is used to decode the data packets from the received transmission packets using the NF decoder 812 by the method 200 to reconstruct the data packets. In one example, the NF decoder 812 uses a chained and finite forward error correction (NF FEC) code to decode the data packets from the received transmission packets. Thereafter, the data receiver 402 is used to inject the reconstructed data packets into the network stack and send an acknowledgment message to the data transmitter 302 via an acknowledgment (ACK) generator 814 to confirm receipt of the data packets. In one implementation, if the protected transmission also includes data packets in the original format, the acknowledgment generator 814 is used to send an acknowledgment message to the data transmitter 302 to confirm receipt of the data packets and terminate processing of the protected transmission. In one example, the data receiver 402 is used to perform the following steps: Figure 8 The algorithm is also marked as the algorithm receiver.
[0085] Fig.9A FIG9 is a diagram of a communication for transmitting redundant data between a transmitter and a receiver provided by an embodiment of the present invention. Figures 3 to 8 Reference Fig.9A , diagram 900A depicting a quick UDP internet connections (QUIC) sender 902, a QUIC receiver 904, an application 906, and a server 908 is shown.
[0086] In one implementation, hidra_nf, a core component that intercepts data flows into / out of the network, is able to access data before and after encryption. The component consumes an encrypted QUIC packet that is ready to be sent. In addition, if the packet has a STREAM_FRAME and any FEC_SCHEME_XX policy supported by the application 906, hidra_nf builds a QUIC packet, where the FEC_FRAME is located inside the QUIC packet, and transmits the packet to the QUIC receiver 904. In one example, the application 906 is used to run a QUIC session 910. In addition, QUICPacketCreator::SerializePacket 912 is used to create packets and serialize each packet. Afterwards, each packet is received by a forward erasure coding unit 914, which is used to determine whether a stream data frame is available and also activate the FEC coding policy. The forward erasure coding unit 914 further builds a forward erasure code block and sends the erasure code block immediately after the original data block. Thereafter, the output of the forward erasure coding unit 914 is received by QUICConnection::OnSerializedPacket 916, which is used to initialize the QUIC connection 918. In addition, the QUIC connection 918 also receives multiple streams, such as stream 1, stream 2, and stream N. Thereafter, the output of the QUIC connection 918 is encrypted by the encryption block 920, and then the data packet is sent to the QUIC receiver 904 through the sendmsgs() block. On the QUIC receiver 904 side, the QuicFramer processes the data packet and detects that it has a FEC_FRAME and processes the frame payload. Once the original data packet is recovered, the original data packet is processed in the normal manner, as shown in Figure 9. In other words, the QUIC receiver 904 is used to use the decryption block 922, QUICFramer::ProcessFecFrame 924, the forward erasure decoding unit 926, QUICConnection::OnFecProtectedPayload 928 and the QUIC connection 930 to obtain multiple streams.
[0087] Fig. 9B It is a diagram of a quick UDP internet connections (QUIC) data packet provided by one embodiment of the present invention. Fig. 9B Combination Figures 3 to 8 Reference Fig. 9B, a diagram 900B is shown describing a quick UDP internet connections (QUIC) packet 932 with FEC_FRAME and payload. The QUIC packet 932 includes an internet protocol (IP) header 934, a user datagram protocol (UDP) header 936, a QUIC header 938, and a QUIC payload 940. In one implementation, the QUIC protocol is extended by defining new frame data types, such as FrameType=0x88 (1B) - identifies the FEC frame itself in the QUIC IETF protocol implementation and 0x20 in the Google QUIC implementation; and FEC Frame version (1B) - FEC frame version. In addition, FEC Scheme (1 byte) - FEC scheme version (maximum 7), Xor1 (1 byte) - the number of the first XoR parameter, Xor2 (1 byte) - the number of the second XoR parameter. Additionally, FEC Payload ID – (variable length integer in IETF / QUIC format, values can be in the range 0..(2^62)–1), this field provides data about the FEC group identification, currently equal to the protected packet number, and the FEC Payload Length for QUIC Payload 940 is the length of the remaining payload.
[0088] Without departing from the scope of the invention as defined by the appended claims, the embodiments of the invention described above may be modified. "Including", "combining", "having", "being", etc., used to describe and claim the present invention, are intended to be interpreted in a non-exclusive manner, that is, to allow items, components or elements that are not explicitly described to also exist. References to the singular should also be interpreted as involving the plural. The word "exemplary" used herein means "as an example, instance or illustration". Any embodiment described as "exemplary" is not necessarily interpreted as being more preferred or more advantageous than other embodiments, or excluding the combination of features in other embodiments. The word "optionally" used herein means "provided in some embodiments and not provided in other embodiments". It should be understood that certain features of the present invention described in the context of a single embodiment for the sake of clarity may also be provided in a single embodiment by combination. On the contrary, the various features of the present invention described in the context of a single embodiment for the sake of brevity may also be provided separately, in any suitable combination, or suitable for any other described embodiment of the present invention.
Claims
1. A method (100) of encoding a data packet for protected transmission, It is characterized in that The method (100) comprises: at a sending end (410), Divide the data packet to be protected into m data fragments Y of equal size m ; Create the first transport X of the transport output sequence 1 , to include the first data fragment Y 1 and its index, wherein the first transmission packet X 1 is marked as having degree 1 to serve as an entry point for decoding said output sequence; In the output sequence, the first transmission packet X 1 Then, a plurality of transmission packets are created, wherein each transmission packet in the plurality of transmission packets is marked as having a degree of 2 and including a pair of different data fragments Y m The result of the XOR operation between and the index of the data slice in the pair, the multiple transmission packets include different data slices Y m All pairs of; In the output sequence, immediately after the plurality of transport packets, from the remaining data fragment Y 2 ,……,Y m Creating a final transmission packet, wherein each transmission packet in the final transmission packet is marked as having a degree of 1 to serve as an entry point for the decoding, and includes a data slice and an index of the data slice; The first transmission packet X of the output sequence 1 The second transmission packet X of the output sequence 2 exchange.
2. The method (100) according to claim 1, It is characterized in that Also includes: Before dividing the data packet into the data fragments, the data packet to be protected is filled with zeros.
3. The method (100) according to claim 1 or 2, It is characterized in that Also includes: The output sequence of transport packets is sent to a receiving end as a protected transmission (312).
4. The method (100) according to claim 3, It is characterized in that The sending of the output sequence of transport packets as the protected transport includes sending the data packets in original format as part of the protected transport along with the output sequence of transport packets.
5. A method (200) of decoding a data packet from a protected transmission, It is characterized in that The method (200) comprises: at a receiving end (312), Receive a protected transmission, the protected transmission comprising k transport packets X of a transport packet output sequence i , where i is 1 to k, and the k transmission packets X i Encoding to protect data packets by the method (100) of any one of claims 1 to 4, wherein the number k of received transport packets is equal to or greater than the number m of data fragments; From each received transmission packet X i The index of the data slice for creating the transmission packet is obtained as parameters x and y, wherein if the received transmission packet X i is an entry point, then its parameters x and y are equal; Construct a graph G(Y,X), where vertex Y corresponds to the data slice Y to be decoded m , edge X includes the received transmission packet X i As the payload, each edge X i Associated to vertex Y x or Vertex Y x , Y y , the Y x , Y y The method comprises creating the transmission packet X according to the acquired parameters x and y. i Data sharding; According to the increasing index i, for each edge X of the graph G(Y,X) i Perform the following processing: If the edge X i According to the vertex Y associated with its x parameter x is decoded and the edge X i According to the vertex Y associated with its y parameter y If it is decoded, the current edge processing is terminated and the next edge processing is continued; If X i is the entry point, that is, the x parameter is equal to the y parameter, then decode the vertex Y x ; If the vertex Y x is decoded, and the vertex Y y If not decoded, the vertex Y y Decodes to be equal to (X i XORY x ); If the vertex Y y is decoded, and the vertex Y x If not decoded, the vertex Y x Decodes to be equal to (X i XORY y ); If the vertex Y x is not decoded, and the vertex Y y If it is not decoded, a new edge is added to the graph, the new edge having the payload X i , index i equals the number k plus one, and parameters x and y are the same as the current edge, so that the new edge is associated with the vertex Y x and Y y ; reconstructing the data packet encoded in the protected transmission if all vertices of the graph are decoded; The decoding of vertex Y includes: Mark the vertex Y as decoded, and check each edge X associated with the vertex Y: If the edge X is associated with vertex Y x is decoded, then the decoding is terminated; If the vertex Y x If not decoded, the vertex Y x Decodes to be equal to (X XOR Y).
6. The method (200) according to claim 5, It is characterized in that If the data packet in the original format is sent in the protected transmission and is successfully received at the receiving end (312), the method (200) includes terminating the processing of the received transmission packet.
7. A data transmitter (302), It is characterized in that include: a communication interface (304) for communicating with a receiving end (312) via one or more communication channels (310), A transmitter processor (306) configured to: Selecting a data packet to be protected from a data packet queue; The method (100) according to claim 1 or 2 encodes the selected data packets to obtain a transport packet output sequence; sending the selected data packets in their original format along with the output sequence of transport packets to a receiving end as a protected transmission (312); Setting the retransmission timer to a predefined time period; releasing the retransmission timer in response to receiving an acknowledgement message from the receiving end (312), the acknowledgement message confirming that the selected data packet was received in the protected transmission within the predefined time period, excluding the selected data packet from the queue, and returning the selection to select a next data packet if the queue is not empty; or In response to triggering the retransmission timer, returning the encoding of the selected data packet.
8. A data receiver (402), It is characterized in that include: a communication interface (404) for communicating with a transmitting end (410) via one or more communication channels (310), A receiver processor (406) configured to: receiving a protected transmission from the transmitting end (410) using the communication interface, the protected transmission comprising a plurality of transmission packets, the plurality of transmission packets being encoded by the method (100) of claim 1 or 2 to protect the data packets; If the protected transmission also includes the data packet in the original format, sending an acknowledgement message to the sender (410) to acknowledge receipt of the data packet and terminate processing of the protected transmission; Otherwise, the method (200) described in claim 5 decodes the data packet from the received transmission packet to reconstruct the data packet, injects the reconstructed data packet into the network stack, and sends the confirmation message to the sending end (410) to confirm the receipt of the data packet.
Citation Information
Patent Citations
Adaptive packet loss recovery method based on error correction code, computing device and storage medium
CN110855400A
Systems and methods for error resilience in video communication systems
US20080165864A1
XOR forward error correction for isolated and burst losses over a software-defined-wide area network
US20200412483A1
Data transmission processing method and apparatus
WO2017177926A1
