CN109039536A - Transmission method, equipment and the readable medium of data - Google Patents
Transmission method, equipment and the readable medium of data Download PDFInfo
- Publication number
- CN109039536A CN109039536A CN201810822562.2A CN201810822562A CN109039536A CN 109039536 A CN109039536 A CN 109039536A CN 201810822562 A CN201810822562 A CN 201810822562A CN 109039536 A CN109039536 A CN 109039536A
- Authority
- CN
- China
- Prior art keywords
- data packet
- transmitted
- data
- check code
- check
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L1/00—Arrangements for detecting or preventing errors in the information received
- H04L1/004—Arrangements for detecting or preventing errors in the information received by using forward error control
- H04L1/0056—Systems characterized by the type of code used
- H04L1/0061—Error detection codes
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W28/00—Network traffic management; Network resource management
- H04W28/02—Traffic management, e.g. flow control or congestion control
- H04W28/04—Error control
Abstract
A kind of transmission method of data, equipment and readable medium, the transmission method of the data include: to obtain data packet to be transmitted;For the data packet to be transmitted, generate check code identical with the data packet size to be transmitted, and the i-th bit in the check code is by being verified to the i-th bit in the data packet to be transmitted, 0≤i≤N-1, N are the digit of the data packet to be transmitted;Send the check code of the data packet to be transmitted and generation.Using above scheme, network overhead, the robustness of improve data transfer can be reduced.
Description
Technical field
The present embodiments relate to the communications field more particularly to a kind of transmission methods of data, equipment and readable medium.
Background technique
In wireless communications, data are transmitted to receiving end from transmitting terminal, unstable due to wireless network, in the biography of data
During defeated, it is possible to which wrong packet occurs, and perhaps packet loss, that is, data occur mistake or lost in transmission process.
In existing technology, when mistake occurs in transmission process when data or losing, a kind of scheme is to pass through hair
The mode that sending end retransmits sends data again, although the accuracy rate of data transmission can be guaranteed by retransmitting data, due to transmission
Number is greater than 1, therefore causes network overhead larger, influences network transmission performance;Another scheme is to pass through forward error correction
(Forward Error Correction, FEC) increases more redundant data so that receiving end restores that the number of mistake occurs
According to packet or the data packet lost, since redundant data is more, therefore it is larger to also result in network overhead.
In conclusion existing technical solution, network overhead are larger.
Summary of the invention
The embodiment of the present invention solve the technical issues of be how the robustness of improve data transfer, reduce network overhead.
In order to solve the above technical problems, the embodiment of the present invention provides a kind of transmission method of data, comprising: obtain to be transmitted
Data packet;For the data packet to be transmitted, check code identical with the data packet size to be transmitted, and institute are generated
Stating the i-th bit in check code is 0≤i≤N-1 by being verified to the i-th bit in the data packet to be transmitted,
N is the digit of the data packet to be transmitted;Send the check code of the data packet to be transmitted and generation.
Optionally, it is verified using i-th bit of the following at least one algorithm to all data packets to be transmitted: odd
Verification, even parity check, cyclic check.
Optionally, the number of the check code is one or more.
Optionally, when the number of the check code is multiple, the checking algorithm that each check code uses is identical or not
Together.
Optionally, the data packet to be transmitted is following at least one: IOT data packet, UDP message packet.
The embodiment of the present invention provides a kind of equipment, comprising: acquiring unit is suitable for obtaining data packet to be transmitted;It generates single
Member is suitable for being directed to the data packet to be transmitted, generates check code identical with the data packet size to be transmitted, and described
I-th bit in check code is 0≤i≤N-1, N by being verified to the i-th bit in the data packet to be transmitted
For the digit of the data packet to be transmitted;Transmission unit, suitable for sending described in the data packet to be transmitted and generation
Check code.
Optionally, the generation unit is suitable for using following at least one algorithm to all data packets to be transmitted
I-th bit verified, generate check code identical with the data packet size to be transmitted: odd, recycles school at even parity check
It tests.
Optionally, the number of the check code is one or more.
Optionally, when the number of the check code is multiple, the generation unit, suitable for using same or different
Checking algorithm generates multiple check codes.
Optionally, the data packet to be transmitted is following at least one: IOT data packet, UDP message packet.
The embodiment of the present invention provides a kind of computer readable storage medium, and computer readable storage medium is non-volatile deposits
Storage media or non-transitory storage media, are stored thereon with computer instruction, and the computer instruction executes any of the above-described when running
The step of kind the method.
The embodiment of the present invention provides a kind of equipment, including memory and processor, and being stored on the memory can be in institute
The computer instruction run on processor is stated, the processor executes any of the above-described kind of side when running the computer instruction
The step of method.
Compared with prior art, the technical solution of the embodiment of the present invention has the advantages that
The embodiment of the present invention is directed to data packet to be transmitted, generates check code identical with data packet size to be transmitted,
Then data packet to be transmitted and its corresponding check code are sent.Since check code is by every in data packet to be transmitted
One is verified and is obtained, therefore one side digit is less, and identical as the digit of data packet to be transmitted, network overhead is small;Separately
On the one hand receiving end can be made to correct the data packet of data packet or loss that mistake occurs based on check code, to avoid sending out
Sending end retransmits the data packet of data packet or loss that mistake occurs, reduces network overhead, the robustness of improve data transfer.It is comprehensive
Upper described, technical solution provided in an embodiment of the present invention can reduce network overhead.
Further, using multiple check codes, the information of more data to be transmitted packets can be obtained, is based on school to improve
The success rate that code corrects the data packet of data packet or loss that mistake occurs is tested, the robustness of data transmission is further increased.
Further, multiple and different check codes is generated using different checking algorithms, can be further improved based on verification
Code corrects the success rate of the data packet of data packet or loss that mistake occurs, the robustness of improve data transfer.
Detailed description of the invention
Fig. 1 is a kind of detail flowchart of the transmission method of data provided in an embodiment of the present invention;
Fig. 2 is a kind of structural schematic diagram of equipment provided in an embodiment of the present invention.
Specific embodiment
In existing technology, when mistake occurs in transmission process when data or losing, a kind of scheme is to pass through hair
The mode that sending end retransmits sends data again, although the accuracy rate of data transmission can be guaranteed by retransmitting data, due to transmission
Number is greater than 1, therefore causes network overhead larger, influences network transmission performance;Another scheme is to pass through forward error correction
(Forward Error Correction, FEC) increases more redundant data so that receiving end restores that the number of mistake occurs
According to packet or the data packet lost, since redundant data is more, therefore it is larger to also result in network overhead.
The embodiment of the present invention is directed to data packet to be transmitted, generates check code identical with data packet size to be transmitted,
Then data packet to be transmitted and its corresponding check code are sent.Since check code is by every in data packet to be transmitted
One is verified and is obtained, therefore one side digit is less, and identical as the digit of data packet to be transmitted, network overhead is small;Separately
On the one hand receiving end can be made to correct the data packet of data packet or loss that mistake occurs based on check code, to avoid sending out
Sending end retransmits the data packet of data packet or loss that mistake occurs, reduces network overhead, the robustness of improve data transfer.It is comprehensive
Upper described, technical solution provided in an embodiment of the present invention can reduce network overhead.
It is understandable to enable above-mentioned purpose of the invention, feature and beneficial effect to become apparent, with reference to the accompanying drawing to this
The specific embodiment of invention is described in detail.
Referring to Fig. 1, the embodiment of the invention provides a kind of transmission methods of data, may include steps of:
Step S101 obtains data packet to be transmitted.
In specific implementation, the data packet to be transmitted can be one, or multiple.
In specific implementation, when mistake occurs in transmission process when data or losing, due to existing technical solution
Network overhead is larger, therefore consideration of the embodiment of the present invention carries out joint verification to data packet to be transmitted, obtains check code, then base
The data packet of data packet or loss that mistake occurs is corrected in the check code.
In specific implementation, the data packet to be transmitted can be user packet protocol (User
DatagramProtocol, UDP) data packet, or Internet of Things (Internet of things, IOT) data packet may be used also
Think other protocol data packets, belongs to the protection scope of the embodiment of the present invention.
In an embodiment of the present invention, the data packet to be transmitted is following at least one: IOT data packet, UDP message
Packet.
Step S102 generates school identical with the data packet size to be transmitted for the data packet to be transmitted
Code is tested, and the i-th bit in the check code is by being verified to the i-th bit in the data packet to be transmitted 0
≤ i≤N-1, N are the digit of the data packet to be transmitted.
In specific implementation, when mistake occurs in transmission process when data or losing, due to existing technical solution
Network overhead is larger, therefore the embodiment of the present invention combine to the i-th bit in the data packet to be transmitted and be verified
Code is then based on the check code and corrects the data packet that mistake occurs or loses.
In specific implementation, when the data packet to be transmitted is multiple, the digit of multiple data packets to be transmitted can
, can not also be identical with identical, N is the digit of a data packet to be transmitted in multiple data packets to be transmitted.
In specific implementation, when the data packet to be transmitted is multiple, the i-th bit in the check code is by right
I-th bit in the data packet to be transmitted carries out what joint verification obtained.
For example, data packet to be transmitted includes: P1, P2 and P3, wherein the digit of P1 is N1, and the digit of P2 is N2, P3's
Digit is N3, and N2 < N1 < N3 then has:
Joint verification is carried out to the 1st of P1, P2, P3, the check value of generation is as the 1st bit check code;
Joint verification is carried out to the 2nd of P1, P2, P3, the check value of generation is as the 2nd bit check code;
…
Joint verification is carried out to N2 of P1, P2, P3, the check value of generation is as N2 bit check code;
Joint verification is carried out to N2+1 of P1, P3, the check value of generation is as N2+1 bit check code;
…
Joint verification is carried out to N1 of P1, P3, the check value of generation is as N1 bit check code.
In specific implementation, the check code can be odd check code, or even parity check code can also be circulation school
Code is tested, the protection scope of the embodiment of the present invention is belonged to.
In an embodiment of the present invention, using following at least one algorithm to the i-th of all data packets to be transmitted
Position is verified: odd, even parity check, cyclic check.
In specific implementation, the check code can be one, or multiple (two or more).
Using multiple check codes, the information of more data to be transmitted packets can be obtained, is entangled to improve based on check code
The success rate of the data packet of the positive data packet that mistake occurs or loss, further increases the robustness of data transmission.
In specific implementation, when the check code is multiple, multiple check codes can use identical checking algorithm,
Different checking algorithms can be used.
For example, carrying out joint verification using odd algorithm to all data packets to be transmitted, generating check code 1;
Using even parity check algorithm, joint verification is carried out to all data packets to be transmitted, generates check code 2.
Multiple and different check codes is generated using different checking algorithms, be can be further improved to correct based on check code and be sent out
The success rate of the data packet of the data packet or loss of raw mistake, the robustness of improve data transfer.
It is understood that check code provided in an embodiment of the present invention, substantially and a kind of FEC.
Step S103 sends the check code of the data packet to be transmitted and generation.
In specific implementation, the check code of the data packet to be transmitted and generation can be sent simultaneously, so that
Receiving end can correct the data packet or loss that mistake occurs based on the check code and the data packet being properly received
Data packet, so that transmitting terminal be avoided to retransmit the data packet that wrong data packet or loss occurs.
For receiving end, when the data packet number being properly received is more, and the data packet that mistake occurs or loses
When number is less, the data packet of data packet or loss that mistake occurs can be corrected based on check code, to avoid transmitting terminal
Retransmit the data packet of data packet or loss that mistake occurs.
For example, receiving end received correctly 9 data packets, only 1 data packet malfunctions, then can be according to check code
Restore that wrong data packet occurs by turn.
Check code identical with data packet size to be transmitted is generated for data packet to be transmitted using above scheme,
Then data packet to be transmitted and its corresponding check code are sent.Since check code is by every in data packet to be transmitted
One is verified and is obtained, therefore one side digit is less, and identical as the digit of data packet to be transmitted, network overhead is small;Separately
On the one hand receiving end can be made to correct the data packet of data packet or loss that mistake occurs based on check code, to avoid sending out
Sending end retransmits the data packet of data packet or loss that mistake occurs, reduces network overhead, the robustness of improve data transfer.It is comprehensive
Upper described, technical solution provided in an embodiment of the present invention can reduce network overhead.
To better understand those skilled in the art and implementing the present invention, the embodiment of the invention also provides one kind can
The equipment for realizing the transmission method of above-mentioned data, as shown in Figure 2.
Referring to fig. 2, the equipment 20 may include: acquiring unit 21, generation unit 22 and transmission unit 23, in which:
The acquiring unit 21 is suitable for obtaining data packet to be transmitted.
The generation unit 22 is suitable for being directed to the data packet to be transmitted, generate and the data packet position to be transmitted
The identical check code of number, and the i-th bit in the check code is by carrying out school to the i-th bit in the data packet to be transmitted
It tests, 0≤i≤N-1, N are the digit of the data packet to be transmitted.
The transmission unit 23, suitable for sending the check code of the data packet to be transmitted and generation.
In specific implementation, the generation unit 22 is suitable for using following at least one algorithm to the institute to be transmitted
There is the i-th bit of data packet to be verified, generates check code identical with the data packet size to be transmitted: odd, idol school
It tests, cyclic check.
In specific implementation, the number of the check code is one or more.
In an embodiment of the present invention, when the number of the check code is multiple, the generation unit 22 is suitable for using
Same or different checking algorithm generates multiple check codes.
In specific implementation, the data packet to be transmitted is following at least one: IOT data packet, UDP message packet.
In specific implementation, the workflow of the equipment 20 and principle can be with reference to the methods provided in above-described embodiment
In description, details are not described herein again.
The embodiment of the present invention provides a kind of computer readable storage medium, and computer readable storage medium is non-volatile deposits
Storage media or non-transitory storage media, are stored thereon with computer instruction, and the computer instruction executes any of the above-described when running
Step corresponding to kind the method, details are not described herein again.
The embodiment of the present invention provides a kind of equipment, including memory and processor, and being stored on the memory can be
The computer instruction run on the processor, the processor execute described in any of the above-described kind when running the computer instruction
Step corresponding to method, details are not described herein again.
Those of ordinary skill in the art will appreciate that all or part of the steps in the various methods of above-described embodiment is can
It is completed with instructing relevant hardware by program, which can be stored in a computer readable storage medium, storage
Medium may include: ROM, RAM, disk or CD etc..
Although present disclosure is as above, present invention is not limited to this.Anyone skilled in the art are not departing from this
It in the spirit and scope of invention, can make various changes or modifications, therefore protection scope of the present invention should be with claim institute
Subject to the range of restriction.
Claims (12)
1. a kind of transmission method of data characterized by comprising
Obtain data packet to be transmitted;
For the data packet to be transmitted, check code identical with the data packet size to be transmitted, and the school are generated
Testing the i-th bit in code is by being verified to the i-th bit in the data packet to be transmitted, and 0≤i≤N-1, N are
The digit of the data packet to be transmitted;
Send the check code of the data packet to be transmitted and generation.
2. the transmission method of data according to claim 1, which is characterized in that using following at least one algorithm to described
The i-th bit of all data packets to be transmitted is verified:
Odd, even parity check, cyclic check.
3. the transmission method of data according to claim 2, which is characterized in that the number of the check code is one or more
It is a.
4. the transmission method of data according to claim 3, which is characterized in that when the number of the check code is multiple
When, the checking algorithm that each check code uses is same or different.
5. the transmission method of data according to claim 1, which is characterized in that the data packet to be transmitted be with down toward
Few one kind: IOT data packet, UDP message packet.
6. a kind of equipment characterized by comprising
Acquiring unit is suitable for obtaining data packet to be transmitted;
Generation unit is suitable for being directed to the data packet to be transmitted, generates school identical with the data packet size to be transmitted
Code is tested, and the i-th bit in the check code is by being verified to the i-th bit in the data packet to be transmitted 0
≤ i≤N-1, N are the digit of the data packet to be transmitted;
Transmission unit, suitable for sending the check code of the data packet to be transmitted and generation.
7. equipment according to claim 6, which is characterized in that the generation unit is suitable for utilizing following at least one calculation
Method verifies the i-th bit of all data packets to be transmitted, generates identical with the data packet size to be transmitted
Check code:
Odd, even parity check, cyclic check.
8. equipment according to claim 7, which is characterized in that the number of the check code is one or more.
9. equipment according to claim 8, which is characterized in that when the number of the check code is multiple, the generation
Unit, suitable for generating multiple check codes using same or different checking algorithm.
10. equipment according to claim 6, which is characterized in that the data packet to be transmitted is following at least one:
IOT data packet, UDP message packet.
11. a kind of computer readable storage medium, computer readable storage medium is non-volatile memory medium or non-transient deposits
Storage media is stored thereon with computer instruction, which is characterized in that perform claim requires in 1 to 5 when the computer instruction is run
The step of any one the method.
12. a kind of equipment, including memory and processor, the meter that can be run on the processor is stored on the memory
Calculation machine instruction, which is characterized in that perform claim requires any one of 1 to 5 institute when the processor runs the computer instruction
The step of stating method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810822562.2A CN109039536A (en) | 2018-07-24 | 2018-07-24 | Transmission method, equipment and the readable medium of data |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810822562.2A CN109039536A (en) | 2018-07-24 | 2018-07-24 | Transmission method, equipment and the readable medium of data |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109039536A true CN109039536A (en) | 2018-12-18 |
Family
ID=64645753
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810822562.2A Pending CN109039536A (en) | 2018-07-24 | 2018-07-24 | Transmission method, equipment and the readable medium of data |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109039536A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110445583A (en) * | 2019-08-12 | 2019-11-12 | 珠海市伟高变频科技有限公司 | Method of calibration, check system and the computer readable storage medium of data transmission |
CN117221894A (en) * | 2023-11-09 | 2023-12-12 | 湖南雷诺科技发展有限公司 | Big data-based 5G communication transmission method |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1176558A (en) * | 1996-09-06 | 1998-03-18 | 三星电子株式会社 | Valid decision method of control code |
CN1538754A (en) * | 2003-04-19 | 2004-10-20 | Lg������ʽ���� | Error detecting method and apparatus |
CN105005511A (en) * | 2015-06-30 | 2015-10-28 | 宁波东海仪表水道有限公司 | Serial communication data checking method |
-
2018
- 2018-07-24 CN CN201810822562.2A patent/CN109039536A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1176558A (en) * | 1996-09-06 | 1998-03-18 | 三星电子株式会社 | Valid decision method of control code |
CN1538754A (en) * | 2003-04-19 | 2004-10-20 | Lg������ʽ���� | Error detecting method and apparatus |
CN105005511A (en) * | 2015-06-30 | 2015-10-28 | 宁波东海仪表水道有限公司 | Serial communication data checking method |
Non-Patent Citations (1)
Title |
---|
李迎春,李长青等: "《信息基础理论解析》", 30 April 2017 * |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110445583A (en) * | 2019-08-12 | 2019-11-12 | 珠海市伟高变频科技有限公司 | Method of calibration, check system and the computer readable storage medium of data transmission |
CN110445583B (en) * | 2019-08-12 | 2022-05-17 | 珠海市伟高变频科技有限公司 | Data transmission verification method, data transmission verification system and computer-readable storage medium |
CN117221894A (en) * | 2023-11-09 | 2023-12-12 | 湖南雷诺科技发展有限公司 | Big data-based 5G communication transmission method |
CN117221894B (en) * | 2023-11-09 | 2024-01-12 | 湖南雷诺科技发展有限公司 | Big data-based 5G communication transmission method |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107276722B (en) | Data transmission method and system based on UDP | |
US8738982B2 (en) | Method of communication in mobile communication system | |
WO2021008248A1 (en) | Data frame reception method and device and communication method and system | |
CN107257270B (en) | Data transmission method and system based on hybrid automatic repeat request | |
US20150117468A1 (en) | Apparatus and method for transmitting data | |
US10341469B2 (en) | Data transmission method and apparatus and data receiving method and apparatus | |
CN106031072A (en) | Harq frame data structure and method of transmitting and receiving with harq in systems using blind detection | |
EP2782281A1 (en) | Data transmission using rateless coding | |
CN108933642B (en) | Downlink retransmission method based on code block grouping, base station and terminal | |
CN106656424A (en) | Verification method of data transmission | |
CN109039536A (en) | Transmission method, equipment and the readable medium of data | |
JP7282895B2 (en) | Data retransmission decoding method, device, system and communication device | |
KR20120112981A (en) | Receiving node and method of reducing retransmission of data frame | |
CN109120385B (en) | Data transmission method, device and system based on data transmission system | |
US10637610B2 (en) | Information sending method and apparatus, and information receiving method and apparatus | |
CN104579579B (en) | A kind of big data package transmission method and system | |
US10200154B2 (en) | System and method for early packet header verification | |
CN109921884B (en) | Data receiving and transmitting method, device and communication system | |
CN106471785A (en) | A kind of virtual carrier sensing method and device | |
CN110071780A (en) | Method of calibration and device, communication equipment applied to low-density parity-check inspection LDPC | |
WO2017024528A1 (en) | Method for transmitting feedback information, user equipment and access device | |
CN110798295B (en) | Method and device for determining physical shared channel transmission data | |
CN108809539B (en) | Data retransmission method and device, computer readable storage medium and transmitter | |
CN108322293B (en) | Log-likelihood ratio determining method for HARQ, HARQ feedback method and device | |
WO2018133001A1 (en) | Method for transmitting downlink control information, network side device and terminal device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WD01 | Invention patent application deemed withdrawn after publication | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20181218 |