CN113542388A - Reliable data transmission method and device, computer equipment and storage medium - Google Patents
Reliable data transmission method and device, computer equipment and storage medium Download PDFInfo
- Publication number
- CN113542388A CN113542388A CN202110781810.5A CN202110781810A CN113542388A CN 113542388 A CN113542388 A CN 113542388A CN 202110781810 A CN202110781810 A CN 202110781810A CN 113542388 A CN113542388 A CN 113542388A
- Authority
- CN
- China
- Prior art keywords
- data
- message data
- receiving end
- message
- sent
- 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.)
- Withdrawn
Links
- 238000000034 method Methods 0.000 title claims abstract description 55
- 230000005540 biological transmission Effects 0.000 title claims description 51
- 238000004590 computer program Methods 0.000 claims description 13
- 230000010485 coping Effects 0.000 claims description 12
- 238000004140 cleaning Methods 0.000 claims description 4
- 238000013500 data storage Methods 0.000 claims description 2
- 238000010586 diagram Methods 0.000 description 4
- 238000005516 engineering process Methods 0.000 description 4
- 101000741965 Homo sapiens Inactive tyrosine-protein kinase PRAG1 Proteins 0.000 description 3
- 102100038659 Inactive tyrosine-protein kinase PRAG1 Human genes 0.000 description 3
- 230000014759 maintenance of location Effects 0.000 description 3
- 238000012545 processing Methods 0.000 description 2
- 238000004364 calculation method Methods 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 238000007796 conventional method Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000002068 genetic effect Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000011084 recovery Methods 0.000 description 1
- 230000000717 retained effect Effects 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
- 230000001960 triggered effect Effects 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/56—Provisioning of proxy services
- H04L67/568—Storing data temporarily at an intermediate stage, e.g. caching
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L47/00—Traffic control in data switching networks
- H04L47/10—Flow control; Congestion control
- H04L47/26—Flow control; Congestion control using explicit feedback to the source, e.g. choke packets
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Detection And Prevention Of Errors In Transmission (AREA)
- Communication Control (AREA)
Abstract
The application relates to a method and a device for reliably transmitting data, computer equipment and a storage medium. The method comprises the following steps: receiving message data sent by a sending end; storing the message data in a memory block; and sending the message data to a receiving end, and resending the message data from the memory block to the receiving end when the message data is sensitive data and data loss feedback sent by the receiving end is received. By adopting the method, the reliable delivery of the message can be ensured when the network is congested or interrupted.
Description
Technical Field
The present application relates to the field of data transmission technologies, and in particular, to a method and an apparatus for reliable data transmission, a computer device, and a storage medium.
Background
With the development of data transmission technology, in order to avoid data loss in the transmission process, reliable delivery of data messages is ensured, and thus, a data reliable transmission technology is provided.
In the conventional technology, protocols such as PGM protocol (pragmatic genetic multicast) are often used to implement reliable transmission, and a sending end maintains historical data of the sending end according to acknowledgement information of an active receiving end. If some receivers get congested or disrupted in the network to the sender, the sender may misunderstand that these receivers are inactive, thereby causing some of the historical data not to be delivered to the receivers.
However, the conventional method cannot guarantee reliable delivery of the message when the network is congested or interrupted.
Disclosure of Invention
In view of the above, it is necessary to provide a data reliable transmission method, apparatus, computer device and storage medium capable of ensuring reliable delivery of a message when a network is congested or interrupted.
A method of reliable transmission of data, the method comprising:
receiving message data sent by a sending end;
storing the message data in a memory block;
and sending the message data to a receiving end, and resending the message data from the memory block to the receiving end when the message data is sensitive data and data loss feedback sent by the receiving end is received.
In one embodiment, the message data is numbered message data, and the number of the message data is obtained by continuously numbering the message data to be sent by a sending end; the data loss feedback is sent at the receiving end when the number of the message data received at the next time is not continuous with the number of the last message data.
In one embodiment, the message data is message data with a tag; the method further comprises the following steps:
receiving window information sent by the sending end, wherein the window information comprises a mark of message data;
sending the window information to the receiving end;
the data loss feedback is sent when the mark of the message data received at the receiving end is inconsistent with the mark of the message data acquired through the window information.
In one embodiment, before receiving the data loss feedback sent by the receiving end, the method further includes:
receiving a data loss coping strategy sent by the receiving end;
when the message data is sensitive data and data loss feedback sent by the receiving end is received, the method further comprises the following steps: and determining that the data loss of the sensitive data should be a policy that data loss is not allowed, and based on the policy that data loss is not allowed, resending the message data from the memory block to the receiving end.
In one embodiment, the method further comprises: and when receiving the data loss feedback sent by the receiving end, cleaning or reserving the message data based on the occupation condition of the memory in the memory block.
In one embodiment, the method further comprises: if the message data is non-sensitive data, determining that the data loss coping strategy is allowed data loss;
and continuously sending new message data to the receiving end based on the strategy of allowing the data loss.
In one embodiment, when the message data is sensitive data and data loss feedback sent by the receiving end is received, the method further includes:
searching the message data from a disk;
and retransmitting the message data to the receiving end.
An apparatus for reliable transmission of data, the apparatus comprising:
the message data receiving module is used for receiving the message data sent by the sending end;
the message data storage module is used for storing the message data in a memory block;
and the message data retransmission module is used for sending the message data to a receiving end, and resending the message data from the memory block to the receiving end when the message data is sensitive data and receives data loss feedback sent by the receiving end.
A computer device comprising a memory and a processor, the memory storing a computer program, the processor implementing the following steps when executing the computer program:
receiving message data sent by a sending end;
storing the message data in a memory block;
and sending the message data to a receiving end, and resending the message data from the memory block to the receiving end when the message data is sensitive data and data loss feedback sent by the receiving end is received.
A computer-readable storage medium, on which a computer program is stored which, when executed by a processor, carries out the steps of:
receiving message data sent by a sending end;
storing the message data in a memory block;
and sending the message data to a receiving end, and resending the message data from the memory block to the receiving end when the message data is sensitive data and data loss feedback sent by the receiving end is received.
According to the data reliable transmission method, the data reliable transmission device, the computer equipment and the storage medium, the server receives the message data sent by the sending end, then synchronously forwards the message data to the receiving end, and meanwhile, the server stores all the message data in the memory block on the server. When the receiving end has data loss, that is, when the receiving end does not receive the message data due to network congestion or interruption, if the message data belongs to sensitive data, the receiving end will send data loss feedback to the sending end, and the server receives and responds to the data loss feedback, and sends the stored message data to the receiving end from the memory block, so that the receiving end can compensate the previously lost message data, and the integrity of the message data received by the receiving end is ensured. Therefore, the method and the device can ensure that the message can be reliably delivered when the network is congested or interrupted.
Drawings
FIG. 1 is a diagram of an exemplary implementation of a method for reliable data transmission;
FIG. 2 is a flow chart illustrating a method for reliable data transmission according to an embodiment;
FIG. 3 is a block diagram of an embodiment of a reliable data transfer device;
FIG. 4 is a diagram illustrating an internal structure of a computer device according to an embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
The data reliable transmission method provided by the application can be applied to the application environment shown in fig. 1. The system comprises a server 104, a sending end 102 and a receiving end 106, wherein the sending end 102 and the receiving end 106 realize data communication through the server 104. Specifically, the sending end 102 sends the message data to the server 104 through the sending terminal, and stores and forwards the message data to the receiving end 106 through the server 104, where the receiving end 106 is a receiving terminal that obtains the message data. The sender 102 and the receiver 106 may be, but are not limited to, various personal computers, laptops, smartphones, tablets, and portable wearable devices, and the server 104 may be implemented by an independent server 104 or a server 104 cluster composed of a plurality of servers 104.
The server 104 runs on a memory block 108, where the memory block 108 is used to store message data sent by the sender 102, and when the receiver 106 finds that the message data is lost, the receiver will send a data loss feedback to the sender 102 to apply for retransmission of the message data that was lost before the sender 102.
In one embodiment, as shown in fig. 2, a method for reliable data transmission is provided, which is described by taking the method as an example applied to the server in fig. 1, and includes the following steps:
step S202, receiving message data sent by the sending end.
The sending end is a sending terminal for sending message data to the server, a user inputs the message data to the sending end, and the sending end sends the message data to the receiving end.
Specifically, the server receives message data sent by the sending end, taking stock investment in financial industry as an example, the message data is transaction data performed by a large number of users through the sending end, and the transaction data comprises stock names, purchase counts, share of each stock purchase and the like.
Step S204, storing the message data in a memory block.
The memory block is located on the server and can be used for storing message data forwarded by the sending end to the receiving end through the server.
Specifically, after receiving message data sent by a sending end, a server may store a certain amount of message data, the time length of each message data stored in a memory block is set, when the message data is non-sensitive data, such message data may not need to be stored in the memory block, if the message data is stored in the memory block, a preset retention time may be set, and when the message data reaches the preset retention time, the message data is timely cleaned to reduce the memory load of the memory block. The non-sensitive data is message data which is relatively insensitive to data loss in the data transmission process based on a service scene at a receiving end relative to the sensitive data.
Step S206, sending the message data to a receiving end, and resending the message data from the memory block to the receiving end when the message data is sensitive data and data loss feedback sent by the receiving end is received.
When the message data is sensitive data, the message data can be stored in the memory block, the time length of the sensitive data stored in the memory block can also be set, and in order to realize retransmission of the message data as much as possible, the retention time of the sensitive data in the memory block is not limited under more conditions. In addition, in order to avoid the situation that the memory of the memory block is insufficient, the sensitive data is usually cleared from the memory block after the server determines that the sensitive data has been retransmitted to the receiving end.
Specifically, in a process of processing a service scene, when a receiving end receives a first piece of message data forwarded by a server, the receiving end informs the server that the message data is sensitive data or non-sensitive data. If the message data is sensitive data, when the receiving end loses the data, the receiving end sends data loss feedback to the server to inform the server that the data loss occurs, and the server needs to retransmit the lost message data. When receiving the data loss feedback, the server will resend the message data from the memory block to the receiving end, and resend the message data missed by the receiving end due to network outage.
In the above data reliable transmission method, the server receives the message data sent by the sending end, and then synchronously forwards the message data to the receiving end, and at the same time, the server stores each message data in the memory block on the server. When the receiving end has data loss, that is, when the receiving end does not receive the message data due to network congestion or interruption, if the message data belongs to sensitive data, the receiving end will send data loss feedback to the sending end, and the server receives and responds to the data loss feedback, and sends the stored message data to the receiving end from the memory block, so that the receiving end can compensate the previously lost message data, and the integrity of the message data received by the receiving end is ensured. Therefore, the method and the device can ensure that the message can be reliably delivered when the network is congested or interrupted.
In one embodiment, the message data is numbered message data, and the number of the message data is obtained by continuously numbering the message data to be sent by a sending end; the data loss feedback is sent at the receiving end when the number of the message data received at the next time is not continuous with the number of the last message data.
The message data received by the server is the message data with a number, and the numbering process occurs at the sending end. The sending end generates a corresponding sequence number every time the sending end sends a message data, and the message data numbers are continuous. The content of the message data is written on the memory block in a tail additional mode, and a new memory block is created when the size of the memory block reaches a certain size; while writing the file, the number of the message data, the name of the memory block, and the offset position and length information of the message data within the memory block are recorded in another index file. And performing associated indexing according to the number of the message data and the memory block, and quickly positioning the memory block where the corresponding message data is located and the offset in the memory block by accessing the index file.
The data loss feedback may be, but is not limited to, a NACK request, which is taken as an example, and the NACK message is sent to the server when the receiving end detects data loss. And the server finds the corresponding message data in the memory block according to the sequence number in the NACK message and sends the message data to the receiving end again.
Specifically, since the sending end continuously numbers the message data to be sent, the receiving end obtains the message data and also obtains the number of the message data. When data is lost, according to the fact that the serial number of the message data received at the current time is not continuous with the serial number of the previous message data, the receiving end sends data loss feedback to the server when monitoring the discontinuous situation. For example, the number of the last received message data is D44, when the next received message data, if the message data next to the last received message data, should theoretically be D45, but if there is a loss of message data in the intermediate transmission, when the number of the next received message data may be D48 or D59, etc., and there is a significant numbering interval with D44, there is a data loss at the receiving end, and when the data is sensitive data, a data loss feedback is sent to the server.
In this embodiment, the message data is continuously numbered by the sending end, the receiving end compares the number of the message data received this time with the number of the previous message data, and when the discontinuity is found, the data loss feedback is sent to the server, so that the accuracy of sending the data loss feedback by the receiving end is improved.
In one embodiment, the message data is tagged message data; the method further comprises the following steps:
receiving window information sent by the sending end, wherein the window information comprises a mark of message data;
sending the window information to the receiving end;
the data loss feedback is sent when the mark of the message data received at the receiving end is inconsistent with the mark of the message data acquired through the window information.
The window information is sent to the server by the sending end and then sent to the receiving end by the server, the window information comprises a mark of the message data, and the mark of the message data comprises the number of the current latest message data and the like. The window information is periodically sent to the server by the sending terminal.
Specifically, the server receives the window information sent by the sending end, and forwards the window information to the receiving end, and when determining whether data loss occurs, the receiving end compares whether the mark of the message data received at the time and the mark of the message data acquired through the window information are consistent. When the message data does not match with the message data that should be received at the time, it is indicated that the message data received at the time and the message data that should be received at the time are not the same message data, and therefore, the receiving end will send data loss feedback to the server. For example, the mark of the message data includes the number of the current latest message data, and when the server forwards the message data, the server sends the latest message data to the receiving end, and at the same time, sends the number of the latest message data to the receiving end. Therefore, the receiving end can compare whether the number of the message data received at the current time is consistent with the number of the latest message data, if so, the message data received at the current time is the latest message data, the intermediate transmission process is not lost, and if not, the message data loss exists in the intermediate transmission process.
In this embodiment, the server receives the window information of the sending end, and sends the window information to the receiving end, so that the receiving end sends data loss feedback to the server when the mark of the message data received by the receiving end at the time is inconsistent with the mark of the message data acquired through the window information.
In one embodiment, before receiving the data loss feedback sent by the receiving end, the method further includes:
receiving a data loss coping strategy sent by the receiving end;
when the message data is sensitive data and data loss feedback sent by the receiving end is received, the method further comprises the following steps: and determining that the data loss of the sensitive data should be a policy that data loss is not allowed, and based on the policy that data loss is not allowed, resending the message data from the memory block to the receiving end.
After the receiving end receives the first piece of message data sent by the sending end, the receiving end sends a data loss coping strategy to the server. The sensitive data mainly refers to reliability sensitive data, the reliability sensitive data comprises real-time sensitive data and non-real-time sensitive data, the reliability sensitive data is non-sensitive data relative to the sensitive data, and the non-sensitive data is data insensitive to data loss. Non-sensitive data also includes real-time sensitive data and non-real-time sensitive data. The real-time sensitive data refers to that a receiving end is very sensitive to real-time acquisition of message data in a service scene A, such as latest market exhibition. The reliable delivery of the message data is very sensitive to the receiving end in the B service scene, and the reliable delivery means that the message data can be completely received by the receiving end and cannot be lost in the transmission process. For example, transaction data archiving has low requirements on real-time performance, but has high requirements on integrity of message data, so that the message data received by the receiving end is reliability sensitive data. The reliability sensitive data can also be called lost sensitive data generally, and when reliable delivery is realized, as long as the receiving end can receive all message data, a fast transmission path can be selected, and a slow transmission path can also be selected. Generally, real-time sensitive data selects a fast transmission path and non-real-time sensitive data selects a slow transmission path. Because the fast transmission path allows the receiving end to receive lost message data more quickly than the slow transmission path. In some service scenarios, the reliability and the real-time performance of the message data are sensitive, for example, a transaction engine and the like, and the message data is reliably delivered while being transmitted through a fast transmission path.
Specifically, when the receiving end judges that the message data is sensitive data, the receiving end sends data loss feedback to the server. When the server receives the data loss feedback sent by the receiving end, the server can determine that the data loss countermeasure of the current sensitive data is slightly not allowed to be lost according to the data loss countermeasure strategy stored in the server, and correspondingly, the memory block is triggered to resend the message data to the receiving end. When the message data is retransmitted, the message data can be transmitted to the receiving end through the fast transmission path or the slow transmission path. If the fast transmission path needs to be retransmitted to the receiving end, the message data specified by the receiving end is directly acquired from the memory block on the server, and the specified message data is sent to the receiving end. When the receiving end sends the data loss feedback to the server, the data loss feedback comprises the serial number of the lost message data, so that the server can know which message data which should be acquired from the memory block to be retransmitted to the receiving end. The receiving end sends heartbeat data to the server regularly, and the server maintains a data loss coping strategy.
In this embodiment, before receiving the first data loss feedback, the server sends a data loss handling policy to the server in advance after receiving the first piece of message data sent by the sending end, so that when receiving the data loss feedback sent by the receiving end, the server can resend the corresponding message data based on the data loss handling policy.
In one embodiment, the method further comprises: and when receiving the data loss feedback sent by the receiving end, cleaning or reserving the message data based on the occupation condition of the memory in the memory block.
The memory block is a space for calculation and storage, and the storage capacity of the memory block is relatively limited. The occupation condition of the memory in the memory block is the consumption condition of the storage space of the memory block. When the memory block stores the message data, the server does not intelligently identify and store the message data according to the type, the importance and the like of the message data, so that the message data stored in the memory block comprises sensitive data, non-sensitive data and other data.
Specifically, when the server receives the data loss feedback sent by the receiving end, it is known that the receiving end considers that the lost message data is sensitive data, after the data loss feedback is retransmitted to the receiving end, according to the use condition of the memory block, when the memory margin of the memory block is lower than the preset margin, the server will clear the part of sensitive data, and when the memory margin of the memory block is not lower than the preset margin, the server does not need to clear but can select to clear the part of sensitive data, that is, the server can retain the sensitive data.
In this embodiment, sensitive data in the memory block is adaptively cleaned or retained based on the occupation of the memory in the memory block, so that the memory block is ensured to maintain sufficient memory margin to store subsequent sensitive data.
In one embodiment, the method further comprises: if the message data is non-sensitive data, determining that the data loss coping strategy is allowed data loss; and continuously sending new message data to the receiving end based on the strategy of allowing the data loss.
In particular, if the message data is non-sensitive data, that is, the receiving end allows the loss of the message data, the requirement for reliable delivery is low. The receiving end sends a data loss signal to the server, the data loss signal comprises a mark of non-sensitive data, and when the server receives the data loss signal, the server can determine that the message data lost by the receiving end is the non-sensitive data according to the mark, so that the matched data loss coping strategy is allowed data loss. Based on the policy allowing data loss, the server will not obtain corresponding message data from the memory block or the disk and retransmit the message data to the receiving end, but the server continues to forward new message data sent by the sending end in real time to the receiving end.
In this embodiment, when the received message data is non-sensitive data, the receiving end determines that the data loss handling policy is a policy that allows data loss, and based on the policy, continues to send new message data to the receiving end, so that the server selects a situation when retransmitting the message data, and meets various requirements of the receiving end for obtaining the message data.
In one embodiment, when the message data is sensitive data and data loss feedback sent by the receiving end is received, the method further includes:
searching the message data from a disk; and retransmitting the message data to the receiving end.
In this case, the disk stores message data of all histories, and thus stores much message data compared to the message data stored in the memory block. The slow transmission path refers to a path in which the server retrieves the message data from the disk, and in this manner, since the lost message data is searched from a large amount of historical message data, the searching efficiency is relatively low, and thus the slow transmission path is provided. When the message data is non-real-time data in the sensitive data, the message data can be retransmitted through the slow transmission path. Meanwhile, if the fast path cannot guarantee that the message data is not lost, the message data can be transmitted according to the low-speed transmission path. In one embodiment, before the disk searching for the message data, the method further includes: and creating an index based on the number of the message data, and calculating the address of the message data in the disk according to the number of the message data. And indexing according to the serial number of the message data, so that the message data in the disk can be directly read. In addition, data recovery capability can be improved when application software or a server fails.
In this embodiment, when the message data is sensitive data and the data loss feedback is received, the server may further search the message data from the disk and resend the message data to the receiving end, so that when the storage space of the memory block is not cleared in time, the message data can be compensated by this way, and an alternative way is provided for the server to resend the data to the receiving end or on the transmission path.
It should be understood that, although the steps in the flowcharts related to the above embodiments are shown in sequence as indicated by the arrows, the steps are not necessarily executed in sequence as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least a part of the steps in each flowchart related to the above embodiments may include multiple steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, and the order of performing the steps or stages is not necessarily sequential, but may be performed alternately or alternately with other steps or at least a part of the steps or stages in other steps.
In one embodiment, as shown in fig. 3, there is provided a data reliable transmission apparatus, including: a message data receiving module 301, a message data storing module 302 and a message data retransmitting module 303, wherein:
a message data receiving module 301, configured to receive message data sent by a sending end;
a message data saving module 302, configured to save the message data in a memory block;
a message data retransmission module 303, configured to send the message data to a receiving end, and when the message data is sensitive data and receives a data loss feedback sent by the receiving end, resend the message data from the memory block to the receiving end.
In one embodiment, the apparatus for reliable data transmission further comprises: the device comprises a window information receiving module, a window information sending module and a loss feedback sending module, wherein:
the window information receiving module is used for receiving window information sent by the sending end, wherein the window information comprises a mark of message data;
the window information sending module is used for sending the window information to the receiving end;
and the loss feedback sending module is used for sending the data loss feedback when the mark of the message data received at the receiving end at the time is inconsistent with the mark of the message data acquired through the window information.
In an embodiment, the apparatus for reliable data transmission further includes a failure handling policy receiving module, configured to receive a data loss handling policy sent by the receiving end.
In one embodiment, the apparatus for reliable data transmission further comprises: and the message data processing module is used for cleaning or reserving the message data based on the occupation condition of the memory in the memory block when receiving the data loss feedback sent by the receiving end.
In one embodiment, the apparatus for reliable data transmission further comprises: a coping strategy determining module and a message data continuous sending module, wherein:
a coping strategy determining module, configured to determine that the data loss coping strategy is allowable data loss if the message data is non-sensitive data;
and the message data continuous sending module is used for continuously sending new message data to the receiving end based on the strategy of allowing data loss.
In one embodiment, the apparatus for reliable data transmission further comprises: the message data searching module and the message data retransmitting module, wherein:
the message data searching module is used for searching the message data from a disk;
and the message data retransmission module is used for retransmitting the message data to the receiving end.
For specific limitations of the data reliable transmission device, reference may be made to the above limitations of the data reliable transmission method, which are not described herein again. The modules in the above-mentioned data reliable transmission device can be implemented wholly or partially by software, hardware and their combination. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer device is provided, which may be a server, the internal structure of which may be as shown in fig. 4. The computer device includes a processor, a memory, and a network interface connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The database of the computer device is used for storing data reliable transmission data. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a method of reliable data transmission.
Those skilled in the art will appreciate that the architecture shown in fig. 4 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, a computer device is further provided, which includes a memory and a processor, the memory stores a computer program, and the processor implements the steps of the above method embodiments when executing the computer program.
In an embodiment, a computer-readable storage medium is provided, on which a computer program is stored which, when being executed by a processor, carries out the steps of the above-mentioned method embodiments.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database or other medium used in the embodiments provided herein can include at least one of non-volatile and volatile memory. Non-volatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical storage, or the like. Volatile Memory can include Random Access Memory (RAM) or external cache Memory. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM), among others.
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.
Claims (10)
1. A method for reliable data transmission, the method comprising:
receiving message data sent by a sending end;
storing the message data in a memory block;
and sending the message data to a receiving end, and resending the message data from the memory block to the receiving end when the message data is sensitive data and data loss feedback sent by the receiving end is received.
2. The method according to claim 1, wherein the message data is numbered message data, and the number of the message data is obtained by continuously numbering the message data to be sent by a sending end; the data loss feedback is sent at the receiving end when the number of the message data received at the next time is not continuous with the number of the last message data.
3. The method of claim 1, wherein the message data is tagged message data; the method further comprises the following steps:
receiving window information sent by the sending end, wherein the window information comprises a mark of message data;
sending the window information to the receiving end;
the data loss feedback is sent when the mark of the message data received at the receiving end is inconsistent with the mark of the message data acquired through the window information.
4. The method of claim 1, wherein before receiving the feedback of data loss sent by the receiving end, the method further comprises:
receiving a data loss coping strategy sent by the receiving end;
when the message data is sensitive data and data loss feedback sent by the receiving end is received, the method further comprises the following steps: and determining that the data loss of the sensitive data should be a policy that data loss is not allowed, and based on the policy that data loss is not allowed, resending the message data from the memory block to the receiving end.
5. The method of claim 4, further comprising: and when receiving the data loss feedback sent by the receiving end, cleaning or reserving the message data based on the occupation condition of the memory in the memory block.
6. The method of claim 4, further comprising: if the message data is non-sensitive data, determining that the data loss coping strategy is allowed data loss;
and continuously sending new message data to the receiving end based on the strategy of allowing the data loss.
7. The method of claim 1, wherein when the message data is sensitive data and data loss feedback sent by the receiving end is received, the method further comprises:
searching the message data from a disk;
and retransmitting the message data to the receiving end.
8. An apparatus for reliable data transmission, the apparatus comprising:
the message data receiving module is used for receiving the message data sent by the sending end;
the message data storage module is used for storing the message data in a memory block;
and the message data retransmission module is used for sending the message data to a receiving end, and resending the message data from the memory block to the receiving end when the message data is sensitive data and receives data loss feedback sent by the receiving end.
9. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor, when executing the computer program, implements the steps of the method of any of claims 1 to 7.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110781810.5A CN113542388A (en) | 2021-07-09 | 2021-07-09 | Reliable data transmission method and device, computer equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110781810.5A CN113542388A (en) | 2021-07-09 | 2021-07-09 | Reliable data transmission method and device, computer equipment and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN113542388A true CN113542388A (en) | 2021-10-22 |
Family
ID=78127379
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110781810.5A Withdrawn CN113542388A (en) | 2021-07-09 | 2021-07-09 | Reliable data transmission method and device, computer equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113542388A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114244638A (en) * | 2021-11-03 | 2022-03-25 | 深圳华锐金融技术股份有限公司 | Multicast network communication method, device, equipment and medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20170346601A1 (en) * | 2016-05-30 | 2017-11-30 | Samsung Sds Co., Ltd. | Data transmission method and computing apparatus having data transmission function |
CN108075859A (en) * | 2016-11-17 | 2018-05-25 | 中国移动通信有限公司研究院 | Data transmission method and device |
CN112333268A (en) * | 2020-11-02 | 2021-02-05 | 中国联合网络通信集团有限公司 | Data transmission method and device |
-
2021
- 2021-07-09 CN CN202110781810.5A patent/CN113542388A/en not_active Withdrawn
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20170346601A1 (en) * | 2016-05-30 | 2017-11-30 | Samsung Sds Co., Ltd. | Data transmission method and computing apparatus having data transmission function |
CN108075859A (en) * | 2016-11-17 | 2018-05-25 | 中国移动通信有限公司研究院 | Data transmission method and device |
CN112333268A (en) * | 2020-11-02 | 2021-02-05 | 中国联合网络通信集团有限公司 | Data transmission method and device |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114244638A (en) * | 2021-11-03 | 2022-03-25 | 深圳华锐金融技术股份有限公司 | Multicast network communication method, device, equipment and medium |
CN114244638B (en) * | 2021-11-03 | 2022-05-10 | 深圳华锐金融技术股份有限公司 | Multicast network communication method, device, equipment and medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110460412B (en) | Method and RDMA network card for data transmission | |
CN108989432B (en) | User-mode file sending method, user-mode file receiving method and user-mode file receiving and sending device | |
US20170078207A1 (en) | Network prioritization based on node-level attributes | |
CN111490947B (en) | Data packet sending method, data packet receiving method, system, equipment and medium | |
CN109525376B (en) | Fast retransmission method and device and terminal equipment | |
CN110633168A (en) | Data backup method and system for distributed storage system | |
EP3334095A1 (en) | Method for establishing data connection, server side, and mobile terminal | |
CN111181698B (en) | Data processing method, device, equipment and medium | |
CN111752803A (en) | Method, device and medium for collecting and reporting buried point data | |
CN113542388A (en) | Reliable data transmission method and device, computer equipment and storage medium | |
JP2016515361A (en) | Network transmission coordination based on transmission metadata provided by the application | |
EP3345345A1 (en) | Systems and methods for remote network topology discovery | |
CN116260887A (en) | Data transmission method, data transmission device, data reception device, and storage medium | |
CN107666430B (en) | E-mail sending method, device and terminal | |
CN112506684A (en) | Method, system and storage medium for quickly transmitting big data across processes | |
CN116506902B (en) | Signaling processing method, device, signaling intercommunication gateway and storage medium | |
CN107615259B (en) | Data processing method and system | |
CN116827853A (en) | Path processing method and device and electronic equipment | |
CN111669431B (en) | Message transmission method and device, computer equipment and storage medium | |
CN110661836B (en) | Message routing method, device and system, and storage medium | |
CN116684388A (en) | Network card management method and device, electronic equipment and storage medium | |
CN111385069A (en) | Data transmission method and computer equipment | |
EP4084437A1 (en) | Data transmission method, terminal, and computer-readable storage medium | |
CN112395132B (en) | File backup method, system and computer storage medium | |
CN115442453A (en) | Cloud data transmission method and device, computing equipment and storage medium |
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 | ||
CB02 | Change of applicant information |
Address after: Room 2301, building 5, Shenzhen new generation industrial park, 136 Zhongkang Road, Meidu community, Meilin street, Futian District, Shenzhen City, Guangdong Province Applicant after: Shenzhen Huarui Distributed Technology Co.,Ltd. Address before: Room 2301, building 5, Shenzhen new generation industrial park, 136 Zhongkang Road, Meidu community, Meilin street, Futian District, Shenzhen City, Guangdong Province Applicant before: SHENZHEN ARCHFORCE FINANCIAL TECHNOLOGY Co.,Ltd. |
|
CB02 | Change of applicant information | ||
WW01 | Invention patent application withdrawn after publication |
Application publication date: 20211022 |
|
WW01 | Invention patent application withdrawn after publication |