CN111246428A - Network reliable communication method, system, device and storage medium - Google Patents

Network reliable communication method, system, device and storage medium Download PDF

Info

Publication number
CN111246428A
CN111246428A CN201911228147.5A CN201911228147A CN111246428A CN 111246428 A CN111246428 A CN 111246428A CN 201911228147 A CN201911228147 A CN 201911228147A CN 111246428 A CN111246428 A CN 111246428A
Authority
CN
China
Prior art keywords
data block
data
sending
blocks
receiving end
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
Application number
CN201911228147.5A
Other languages
Chinese (zh)
Inventor
郑东曦
张春
郑聪毅
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Weide Information Technology Co Ltd
Original Assignee
Guangdong Weide Information Technology Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Guangdong Weide Information Technology Co Ltd filed Critical Guangdong Weide Information Technology Co Ltd
Publication of CN111246428A publication Critical patent/CN111246428A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/30Services specially adapted for particular environments, situations or purposes
    • H04W4/40Services specially adapted for particular environments, situations or purposes for vehicles, e.g. vehicle-to-pedestrians [V2P]
    • H04W4/42Services specially adapted for particular environments, situations or purposes for vehicles, e.g. vehicle-to-pedestrians [V2P] for mass transport vehicles, e.g. buses, trains or aircraft
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/004Arrangements for detecting or preventing errors in the information received by using forward error control
    • H04L1/0045Arrangements at the receiver end
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/004Arrangements for detecting or preventing errors in the information received by using forward error control
    • H04L1/0056Systems characterized by the type of code used
    • H04L1/0061Error detection codes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W28/00Network traffic management; Network resource management
    • H04W28/02Traffic management, e.g. flow control or congestion control
    • H04W28/04Error control
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W28/00Network traffic management; Network resource management
    • H04W28/02Traffic management, e.g. flow control or congestion control
    • H04W28/10Flow control between communication endpoints

Abstract

The invention discloses a network reliable communication method, a system, a device and a storage medium, wherein the method comprises the steps of dividing transmission data into a plurality of data blocks with the same data size, and numbering the data blocks; processing the transmission data and each data block through a hash algorithm to generate corresponding check codes; and sending each data block to a receiving end so that the receiving end carries out checksum reconstruction on each data block. The invention divides the transmission data into blocks by the sending end and generates the check code, so that the receiving end can check and recombine the data blocks, thereby effectively avoiding the situation of packet loss during communication, obviously improving the communication quality and greatly reducing the influence on the communication quality when the network signal is not good. The invention can be widely applied to the communication field.

Description

Network reliable communication method, system, device and storage medium
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a method, a system, an apparatus, and a storage medium for network reliable communication.
Background
With the rapid development of high-speed railways, high-speed rail wireless communication systems are receiving more and more attention from people. And with the continuous increase of the user service demand, the service quality requirement of the high-speed rail wireless communication system is higher and higher. In the process of high-speed rail wireless communication, packet loss is often encountered, and the influence on the real-time communication quality is large.
Disclosure of Invention
In order to solve the above technical problems, an object of the present invention is to provide a network reliable communication method, system, apparatus and storage medium capable of improving communication quality.
In a first aspect, an embodiment of the present invention provides a network reliable communication method, including the following steps:
dividing transmission data into a plurality of data blocks with equal data size, and numbering each data block;
processing the transmission data and each data block through a hash algorithm to generate corresponding check codes;
and sending each data block to a receiving end so that the receiving end carries out checksum reconstruction on each data block.
As a further improvement of the network reliable communication method, the data block includes a total number of the data blocks, a number of the data block, data corresponding to the data block, and a check code corresponding to the data block, and both the first data block and the last data block further include the check code of the transmitted data.
As a further improvement of the network reliable communication method, the method further comprises the following steps:
and acquiring a retransmission request instruction sent by the receiving end, and retransmitting the corresponding data block to the receiving end according to the retransmission request instruction.
As a further improvement of the network reliable communication method, the method further comprises the following steps:
and when the data block is confirmed to be detected to exceed the preset time threshold value and a confirmation instruction of the data block sent by the receiving end is not received, the data block is sent to the receiving end again.
In a second aspect, an embodiment of the present invention provides a network reliable communication method, including the following steps:
receiving each data block sent by a sending end;
verifying the data block according to the check code in the data block and a preset hash algorithm, and sending a confirmation instruction of the data block to a sending end when the verification is confirmed to pass; when the verification is not passed, the retransmission request instruction of the data block is sent to the sending end;
and carrying out recombination processing on each data block passing the verification to obtain complete transmission data.
As a further improvement of the network reliable communication method, the step of performing reassembly on each verified data block to obtain complete transmission data specifically includes:
according to the total number and the number of the data blocks, carrying out missing detection on the data blocks, and sending a retransmission request instruction corresponding to the missing data blocks to a sending end;
and after the data block passes the missing detection, recombining all the data blocks according to the serial numbers of the data blocks to obtain complete transmission data.
In a third aspect, an embodiment of the present invention provides a network reliable communication system, including:
the dividing unit is used for dividing the transmission data into a plurality of data blocks with the same data size and numbering the data blocks;
the generating unit is used for processing the transmission data and each data block through a hash algorithm to generate a corresponding check code;
and the sending unit is used for sending each data block to a receiving end so that the receiving end can check and recombine each data block.
In a fourth aspect, an embodiment of the present invention provides a network reliable communication system, including:
the receiving unit is used for receiving each data block sent by the sending end;
the verification unit is used for verifying the data block according to the verification code in the data block and a preset hash algorithm, and sending a confirmation instruction of the data block to the sending end when the verification is confirmed to pass; when the verification is not passed, the retransmission request instruction of the data block is sent to the sending end;
and the recombination unit is used for recombining each verified data block to obtain complete transmission data.
In a fifth aspect, an embodiment of the present invention provides a network reliable communication apparatus, including:
at least one processor;
at least one memory for storing at least one program;
when executed by the at least one processor, causes the at least one processor to implement the method for network reliable communication.
In a sixth aspect, an embodiment of the present invention provides a storage medium having stored therein processor-executable instructions, where the processor-executable instructions are configured to perform the network reliable communication method when executed by a processor.
The invention has the beneficial effects that:
the network reliable communication method, the system, the device and the storage medium divide the transmission data into blocks through the sending end and generate the check code, so that the receiving end can check and recombine the data blocks, the condition of packet loss during communication can be effectively avoided, the communication quality is obviously improved, and the influence on the communication quality when the network signal is not good is greatly reduced.
Drawings
FIG. 1 is a flow chart illustrating the steps of one embodiment of a method for reliable communication over a network;
FIG. 2 is a flow chart illustrating steps of another embodiment of a method for network reliable communication in accordance with the present invention;
FIG. 3 is a block diagram of one embodiment of a network reliable communication system of the present invention;
fig. 4 is a block diagram of another embodiment of a network-reliable communication system of the present invention.
Detailed Description
The following further describes embodiments of the present invention with reference to the accompanying drawings:
referring to fig. 1, an embodiment of the present invention provides a network reliable communication method, including the following steps:
s101, dividing transmission data into a plurality of data blocks with equal data size, and numbering the data blocks.
In this embodiment, before the sending end sends the transmission data, the sending end divides the transmission data into a plurality of data blocks and numbers the data blocks at the same time, so that even if the data needs to be retransmitted in the subsequent verification, only the corresponding data block needs to be retransmitted, and the whole transmission data does not need to be retransmitted.
And S102, processing the transmission data and each data block through a hash algorithm to generate a corresponding check code.
S103, sending each data block to a receiving end so that the receiving end can check and recombine each data block.
In this embodiment, the data block includes the total number of the data blocks, the number of the data block, the data corresponding to the data block, and the check code corresponding to the data block, and the first data block and the last data block also include the check code for transmitting the data.
In this embodiment, after the sending end sends the data block to the receiving end, the receiving end may check the data block according to the total number, the serial number, the check code, and the like of the packet in the data block, detect whether any data block is missing or failed in the check, and if so, notify the sending end to retransmit the data block, thereby ensuring the integrity of the transmission data, effectively avoiding the situation of packet loss during communication, significantly improving the communication quality, and greatly reducing the influence on the communication quality when the network signal is not good.
Further, as a preferred embodiment of this embodiment, the method further includes the following steps:
and acquiring a retransmission request instruction sent by the receiving end, and retransmitting the corresponding data block to the receiving end according to the retransmission request instruction.
When the receiving end detects that the data block is missing, a retransmission request instruction is sent to the sending end, so that the sending end can resend the data block with the problem according to the retransmission request instruction.
Further, as a preferred embodiment of this embodiment, the method further includes the following steps:
and when the data block is confirmed to be detected to exceed the preset time threshold value and a confirmation instruction of the data block sent by the receiving end is not received, the data block is sent to the receiving end again.
Referring to fig. 2, an embodiment of the present invention provides a network reliable communication method, including the following steps:
s201, receiving each data block sent by a sending end.
S202, verifying the data block according to a check code in the data block and a preset hash algorithm, and sending a confirmation instruction of the data block to a sending end when the verification is confirmed to pass; and when the confirmation check fails, sending a retransmission request instruction of the data block to the sending end.
In this embodiment, only when the check is passed, the confirmation instruction of the data block is sent to the sending end, and if the sending end detects that neither the confirmation instruction nor the retransmission request instruction is received after a certain time, it indicates that the data block is in a problem, and the sending end also resends the data block to the receiving end.
S202, carrying out recombination processing on each data block passing the verification to obtain complete transmission data.
In this embodiment, if there is no data block that passes the verification or a missing data block is found, the sending end needs to be notified to resend the data block, and the data block is reassembled until all the data blocks pass the verification, so as to obtain complete transmission data.
As a preferred implementation manner of this embodiment, the reconstructing each verified data block to obtain complete transmission data specifically includes:
s2021, according to the total number and the serial number of the data blocks, carrying out missing detection on the data blocks, and sending a retransmission request instruction corresponding to the missing data blocks to a sending end;
and S2022, after the missing detection is carried out, recombining all the data blocks according to the serial numbers of the data blocks to obtain complete transmission data.
Referring to fig. 3, an embodiment of the present invention provides a network reliable communication system, including:
the dividing unit is used for dividing the transmission data into a plurality of data blocks with the same data size and numbering the data blocks;
the generating unit is used for processing the transmission data and each data block through a hash algorithm to generate a corresponding check code;
and the sending unit is used for sending each data block to a receiving end so that the receiving end can check and recombine each data block.
It can be seen that the contents in the foregoing method embodiments are all applicable to this system embodiment, the functions specifically implemented by this system embodiment are the same as those in the foregoing method embodiment, and the advantageous effects achieved by this system embodiment are also the same as those achieved by the foregoing method embodiment.
Referring to fig. 4, an embodiment of the present invention provides a network reliable communication system, including:
and the receiving unit is used for receiving each data block sent by the sending end.
The verification unit is used for verifying the data block according to the verification code in the data block and a preset hash algorithm, and sending a confirmation instruction of the data block to the sending end when the verification is confirmed to pass; and when the confirmation check fails, sending a retransmission request instruction of the data block to the sending end.
And the recombination unit is used for recombining each verified data block to obtain complete transmission data.
It can be seen that the contents in the foregoing method embodiments are all applicable to this system embodiment, the functions specifically implemented by this system embodiment are the same as those in the foregoing method embodiment, and the advantageous effects achieved by this system embodiment are also the same as those achieved by the foregoing method embodiment.
The embodiment of the invention provides a network reliable communication device, which comprises:
at least one processor;
at least one memory for storing at least one program;
when executed by the at least one processor, causes the at least one processor to implement the method for network reliable communication.
It can be seen that the contents in the foregoing method embodiments are all applicable to this apparatus embodiment, the functions specifically implemented by this apparatus embodiment are the same as those in the foregoing method embodiment, and the advantageous effects achieved by this apparatus embodiment are also the same as those achieved by the foregoing method embodiment.
Furthermore, an embodiment of the present invention provides a storage medium having stored therein processor-executable instructions, wherein the processor-executable instructions, when executed by a processor, are configured to perform the network reliable communication method.
From the above, it can be seen that the method, system, device and storage medium for network reliable communication according to the present invention block transmission data by the sending end and generate the check code, so that the receiving end can check and reassemble the data block, thereby effectively avoiding packet loss during communication, significantly improving communication quality, and greatly reducing the influence on communication quality when network signals are not good.
While the preferred embodiments of the present invention have been illustrated and described, it will be understood by those skilled in the art that various changes in form and details may be made therein without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (10)

1. A method for network reliable communication, comprising the steps of:
dividing transmission data into a plurality of data blocks with equal data size, and numbering each data block;
processing the transmission data and each data block through a hash algorithm to generate corresponding check codes;
and sending each data block to a receiving end so that the receiving end carries out checksum reconstruction on each data block.
2. The method of claim 1, wherein: the data blocks comprise the total number of the data blocks, the serial numbers of the data blocks, the data corresponding to the data blocks and the check codes corresponding to the data blocks, and the first data block and the last data block also comprise the check codes for transmitting the data.
3. The method of claim 1, wherein: further comprising the steps of:
and acquiring a retransmission request instruction sent by the receiving end, and retransmitting the corresponding data block to the receiving end according to the retransmission request instruction.
4. The method of claim 1, wherein: further comprising the steps of:
and when the data block is confirmed to be detected to exceed the preset time threshold value and a confirmation instruction of the data block sent by the receiving end is not received, the data block is sent to the receiving end again.
5. A method for network reliable communication, comprising the steps of:
receiving each data block sent by a sending end;
verifying the data block according to the check code in the data block and a preset hash algorithm, and sending a confirmation instruction of the data block to a sending end when the verification is confirmed to pass; when the verification is not passed, the retransmission request instruction of the data block is sent to the sending end;
and carrying out recombination processing on each data block passing the verification to obtain complete transmission data.
6. The method of claim 5, wherein: the step of performing reassembly on each data block passing verification to obtain complete transmission data specifically includes:
according to the total number and the number of the data blocks, carrying out missing detection on the data blocks, and sending a retransmission request instruction corresponding to the missing data blocks to a sending end;
and after the data block passes the missing detection, recombining all the data blocks according to the serial numbers of the data blocks to obtain complete transmission data.
7. A network-reliable communication system, comprising:
the dividing unit is used for dividing the transmission data into a plurality of data blocks with the same data size and numbering the data blocks;
the generating unit is used for processing the transmission data and each data block through a hash algorithm to generate a corresponding check code;
and the sending unit is used for sending each data block to a receiving end so that the receiving end can check and recombine each data block.
8. A network-reliable communication system, comprising:
the receiving unit is used for receiving each data block sent by the sending end;
the verification unit is used for verifying the data block according to the verification code in the data block and a preset hash algorithm, and sending a confirmation instruction of the data block to the sending end when the verification is confirmed to pass; when the verification is not passed, the retransmission request instruction of the data block is sent to the sending end;
and the recombination unit is used for recombining each verified data block to obtain complete transmission data.
9. A network-reliable communications apparatus, comprising:
at least one processor;
at least one memory for storing at least one program;
when executed by the at least one processor, cause the at least one processor to implement a method of network reliable communication as claimed in any one of claims 1-6.
10. A storage medium having stored therein processor-executable instructions, which when executed by a processor, are configured to perform a method for network reliable communication according to any one of claims 1-6.
CN201911228147.5A 2019-11-20 2019-12-04 Network reliable communication method, system, device and storage medium Pending CN111246428A (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201911142510 2019-11-20
CN2019111425101 2019-11-20

Publications (1)

Publication Number Publication Date
CN111246428A true CN111246428A (en) 2020-06-05

Family

ID=70879353

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911228147.5A Pending CN111246428A (en) 2019-11-20 2019-12-04 Network reliable communication method, system, device and storage medium

Country Status (1)

Country Link
CN (1) CN111246428A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111726288A (en) * 2020-06-24 2020-09-29 国电南瑞科技股份有限公司 Real-time data transmission and recovery method and system for power secondary equipment
CN114567485A (en) * 2022-03-01 2022-05-31 北京全路通信信号研究设计院集团有限公司 Data processing method, device, equipment and storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101034959A (en) * 2006-03-10 2007-09-12 华为技术有限公司 Mixed automatic retransferring method and its device and system
CN102143073A (en) * 2011-03-23 2011-08-03 深圳创维数字技术股份有限公司 Data transmission method and system
CN104102605A (en) * 2014-06-25 2014-10-15 华为技术有限公司 Data transmission method, device and system
CN106453233A (en) * 2016-08-10 2017-02-22 深圳市中兴物联科技股份有限公司 Data transmission method and apparatus based on UDP
CN106559186A (en) * 2016-03-21 2017-04-05 天地融科技股份有限公司 Data transmission method and system, main communication apparatus and from communication apparatus
CN108540526A (en) * 2018-02-28 2018-09-14 阿里巴巴集团控股有限公司 data processing method and terminal device
CN109905205A (en) * 2019-04-03 2019-06-18 苏州金螳螂文化发展股份有限公司 Data transmission, received method and apparatus, data transmission method and system
CN110299970A (en) * 2018-03-23 2019-10-01 天地融科技股份有限公司 A kind of data message sending method and device

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101034959A (en) * 2006-03-10 2007-09-12 华为技术有限公司 Mixed automatic retransferring method and its device and system
CN102143073A (en) * 2011-03-23 2011-08-03 深圳创维数字技术股份有限公司 Data transmission method and system
CN104102605A (en) * 2014-06-25 2014-10-15 华为技术有限公司 Data transmission method, device and system
CN106559186A (en) * 2016-03-21 2017-04-05 天地融科技股份有限公司 Data transmission method and system, main communication apparatus and from communication apparatus
CN106453233A (en) * 2016-08-10 2017-02-22 深圳市中兴物联科技股份有限公司 Data transmission method and apparatus based on UDP
CN108540526A (en) * 2018-02-28 2018-09-14 阿里巴巴集团控股有限公司 data processing method and terminal device
CN110299970A (en) * 2018-03-23 2019-10-01 天地融科技股份有限公司 A kind of data message sending method and device
CN109905205A (en) * 2019-04-03 2019-06-18 苏州金螳螂文化发展股份有限公司 Data transmission, received method and apparatus, data transmission method and system

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111726288A (en) * 2020-06-24 2020-09-29 国电南瑞科技股份有限公司 Real-time data transmission and recovery method and system for power secondary equipment
CN111726288B (en) * 2020-06-24 2022-07-19 国电南瑞科技股份有限公司 Real-time data transmission and recovery method and system for power secondary equipment
CN114567485A (en) * 2022-03-01 2022-05-31 北京全路通信信号研究设计院集团有限公司 Data processing method, device, equipment and storage medium

Similar Documents

Publication Publication Date Title
CN104539739B (en) A kind of system, method and device that file uploads
KR100355523B1 (en) Method and apparatus for restoring data in an automatic repeat request system
JP6067637B2 (en) Packet level erasure protection coding in transmission of aggregated packets
KR101405927B1 (en) Method of coommunication in mobile communication system
KR101374680B1 (en) Apparatus and method for arq feedback message generating in wireless communication system
CN107257270B (en) Data transmission method and system based on hybrid automatic repeat request
JP4703310B2 (en) Communication method and communication system
CN111030785B (en) Method, system and wireless receiver for data retransmission in wireless network
CN109905205B (en) Data sending method, data receiving method, data sending equipment, data receiving equipment, data transmission method and data transmission system
CN108933642B (en) Downlink retransmission method based on code block grouping, base station and terminal
US8219867B2 (en) Forward feedback for UL macrodiversity
CN111246428A (en) Network reliable communication method, system, device and storage medium
CN101964703A (en) Data retransmission method and system
EP1408639A1 (en) Transmission apparatus and reception apparatus
JP5236735B2 (en) Improved data structure boundary synchronization between transmitter and receiver
US11411680B2 (en) OMAMRC transmission method and system with reduced signalling
CN108809539B (en) Data retransmission method and device, computer readable storage medium and transmitter
WO2002087140A1 (en) Return channel for broadcast transmissions
WO2010020264A1 (en) Method for coded data transmission and apparatus for decoding coded data
CN103684718B (en) Error-tolerant network redundancy elimination implementation method
US9209947B1 (en) Fault-tolerant data transmission system for networks subject to jamming conditions
CN115412210A (en) Information packet retransmission method and system for very high frequency data exchange system
CN114499747A (en) Audio and video data processing method and device, electronic equipment and storage medium
TW200525958A (en) Packet transmission system and packet transmission device
JP2011182465A (en) Data retransmission method, and communication 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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20200605