CN111835712A - Data transmission method, device, system, equipment and storage medium - Google Patents

Data transmission method, device, system, equipment and storage medium Download PDF

Info

Publication number
CN111835712A
CN111835712A CN202010484681.9A CN202010484681A CN111835712A CN 111835712 A CN111835712 A CN 111835712A CN 202010484681 A CN202010484681 A CN 202010484681A CN 111835712 A CN111835712 A CN 111835712A
Authority
CN
China
Prior art keywords
data
computer
data transmission
sent
tcp
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
CN202010484681.9A
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.)
Beijing Baizhuo Network Technology Co ltd
Original Assignee
Beijing Baizhuo Network 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 Beijing Baizhuo Network Technology Co ltd filed Critical Beijing Baizhuo Network Technology Co ltd
Priority to CN202010484681.9A priority Critical patent/CN111835712A/en
Publication of CN111835712A publication Critical patent/CN111835712A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/16Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
    • H04L69/163In-band adaptation of TCP data exchange; In-band control procedures
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/104Peer-to-peer [P2P] networks
    • H04L67/1074Peer-to-peer [P2P] networks for supporting data block transmission mechanisms
    • H04L67/1078Resource delivery mechanisms
    • H04L67/1085Resource delivery mechanisms involving dynamic management of active down- or uploading connections
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources

Abstract

The invention discloses a data transmission method, a device, equipment and a storage medium, wherein the method comprises the following steps: numbering data to be sent of a first computer; persisting the data to be sent to a first local database; creating a TCP data transmission channel; transmitting the data to be transmitted to a second computer through the TCP data transmission channel based on a request of the second computer for extracting the data to be transmitted; receiving a response signal from the second computer, wherein the response signal comprises a number of the data to be sent and is used for indicating that the second computer extracts the data to be sent; and deleting the data to be sent matched with the serial number in the first local database. The invention can improve the reliability and stability of data transmission between computers.

Description

Data transmission method, device, system, equipment and storage medium
Technical Field
The present specification relates to the field of communications technologies, and in particular, to a data transmission method, apparatus, device, and storage medium.
Background
Since the communication between one computer and another computer in the network is realized in different ways by different manufacturers, the standard framework, namely the OSI model, for the interconnection of various computers as a network worldwide is established by the international organization for standardization. The OSI model is mainly divided into the following layers: link layer (define data frame, confirm physical address of host, transmit data); network layer (define IP address, confirm the network location of host computer); a transport layer (providing end-to-end communication for two hosts); application layer (where the user program is located).
However, in the related art, reliable transmission cannot be provided between one host and another host under abnormal conditions of the network, for example, when abnormal conditions such as disconnection of the network cable or abnormal shutdown of the host are encountered, even if the network cable is reconnected for data transmission, a technical problem of partial data loss still exists.
Disclosure of Invention
An object of the embodiments of the present specification is to provide a data transmission method, apparatus, device and storage medium, so as to improve reliability and stability of data transmission between computers.
To achieve the above object, in one aspect, an embodiment of the present specification provides a data transmission method, including:
numbering data to be sent of a first computer;
persisting the data to be sent to a first local database;
creating a TCP data transmission channel;
transmitting the data to be transmitted to a second computer through the TCP data transmission channel based on a request of the second computer for extracting the data to be transmitted;
receiving a response signal from the second computer, wherein the response signal comprises a number of the data to be sent and is used for indicating that the second computer extracts the data to be sent;
and deleting the data to be sent matched with the serial number in the first local database.
On the other hand, an embodiment of the present specification further provides a data transmission method, including:
creating a TCP data transmission channel;
receiving numbered data to be extracted sent from a first computer through the TCP data transmission channel based on a data extraction request of a second computer;
persisting the data to be extracted to the second local database;
acquiring the serial number of the data to be extracted;
and sending a response signal to the first computer, wherein the response signal comprises the number and is used for indicating that the second computer extracts the data to be extracted.
On the other hand, an embodiment of the present specification further provides a data transmission method, including:
acquiring and numbering data to be sent of a first computer based on a data extraction request of a second computer;
persisting the data to be sent to a first local database;
creating a TCP data transmission channel;
transmitting the data to be transmitted to the second computer through the TCP data transmission channel;
receiving numbered data to be sent from the first computer through the TCP data transmission channel;
after receiving the data to be sent, persisting the data to be sent to a second local database;
sending a response signal to the first computer, wherein the response signal comprises the number and is used for indicating that the second computer extracts the data to be sent;
receiving the reply signal from the second computer;
and deleting the data to be sent matched with the serial number in the first local database.
On the other hand, an embodiment of the present specification further provides a data transmission apparatus, including:
the data to be sent numbering module is used for numbering the data to be sent of the first computer;
the data to be sent persistence module is used for persisting the data to be sent to a first local database;
the TCP data transmission channel creating module is used for creating a TCP data transmission channel;
a data to be sent sending module, configured to transmit, based on a request of a second computer to extract the data to be sent, the data to be sent to the second computer through the TCP data transmission channel;
a response signal receiving module, configured to receive a response signal from the second computer, where the response signal includes a number of the data to be sent, and is used to indicate that the second computer has extracted the data to be sent;
and the deleting module is used for deleting the data to be sent matched with the serial number in the first local database.
On the other hand, an embodiment of the present specification further provides a data transmission apparatus, including:
the TCP data transmission channel creating module is used for creating a TCP data transmission channel;
the data receiving module to be extracted is used for receiving numbered data to be extracted sent from the first computer through the TCP data transmission channel based on a data extracting request of the second computer;
the data to be extracted persistence module is used for persisting the data to be extracted to the second local database;
the number acquisition module is used for acquiring the number of the data to be extracted;
and the response signal sending module is used for sending a response signal to the first computer, wherein the response signal comprises the number and is used for indicating that the second computer extracts the data to be extracted.
On the other hand, an embodiment of the present specification further provides a data transmission system, including:
a first data transmission device of a first computer and a second data transmission device of a second computer;
the first data transmission device and the second data transmission device are provided with a TCP data transmission channel establishing module which is used for establishing the TCP data transmission channel between the first data transmission device and the second data transmission device;
the first data transmission device is used for acquiring and numbering the data to be sent of the first computer based on the data extraction request of the second computer, transmitting the data to be sent to the second computer through the TCP data transmission channel, and deleting the data to be sent matched with the serial number in the first local database after receiving a response signal from the second computer;
in another aspect, an embodiment of the present specification further provides an electronic device, including:
memory for storing computer software program
And the processor is used for realizing the steps of the data transmission method in the embodiment of the invention when the computer software program is run.
On the other hand, the embodiments of the present specification further provide a computer readable storage medium, on which a computer software program is stored, where the computer software program is executed to implement the steps of the data transmission method in the embodiments of the present invention.
According to the technical scheme provided by the embodiment of the specification, the embodiment of the specification improves the reliability and stability of data transmission between computers. By further example, the data loss problem which is easily caused under the following abnormal conditions such as but not limited to the following conditions is avoided, for example, when the connection between one host and the other host is established and data is being transmitted, a network cable is disconnected; or the host at the other end is abnormally shut down in the data transmission process; or when the data to be sent is copied from the user mode to the kernel mode, the computer in which the data is located is abnormally shut down. Therefore, by the technical scheme provided by the embodiment of the specification, the technical problem that the reliability and stability of abnormal data transmission are insufficient is solved, and the reliability and stability of data transmission between computers are guaranteed.
Drawings
Fig. 1 is a flow chart of a data transmission method according to some embodiments of the present disclosure.
Fig. 2 is a flow diagram of another method of data transmission according to some embodiments of the present disclosure.
Fig. 3 is a flow chart of another data transmission method according to some embodiments of the present disclosure.
Fig. 4 is a block diagram of a data transmission device according to some embodiments of the present disclosure.
Fig. 5 is a block diagram of a data transmission device according to some embodiments of the present disclosure.
Fig. 6 is a schematic diagram of a data transmission system in accordance with some embodiments of the present description.
Detailed Description
In order to make those skilled in the art better understand the technical solutions in the present specification, the technical solutions in the embodiments of the present specification will be clearly and completely described below with reference to the drawings in the embodiments of the present specification, and it is obvious that the described embodiments are only a part of the embodiments of the present specification, and not all of the embodiments. All other embodiments obtained by a person skilled in the art based on the embodiments in the present specification without any inventive step should fall within the scope of protection of the present specification.
As shown in fig. 1, some embodiments of the present specification provide a data transmission method, which may be specifically understood as a method for transmitting data from a data transmitting end, where the method includes the following steps:
s102, numbering data to be sent of a first computer;
s104, persisting data to be sent to a first local database;
s106, creating a TCP (Transmission Control protocol) data transmission channel;
s108, transmitting the data to be transmitted to the second computer through a TCP data transmission channel based on the request of the second computer for extracting the data to be transmitted;
s110, receiving a response signal from the second computer, wherein the response signal comprises a number of data to be sent and is used for indicating that the second computer extracts the data to be sent;
and S112, deleting the data to be sent matched with the serial number in the first local database.
In some embodiments of the present description, creating a TCP data transmission channel specifically includes creating at least two SOCKET communication channels based on a TCP protocol, for example, there may be multiple SOCKET communication channels based on a TCP protocol, and the multiple SOCKET communication channels based on a TCP protocol may be created, and may also be disconnected or reconnected.
In some embodiments of the present disclosure, the TCP data transmission channel is saved in a local file, and the first local database includes a level db embedded database, where the level db is one of the embedded databases and is responsible for storing, extracting, and confirming deletion of data.
As shown in fig. 2, some embodiments of the present disclosure provide a data transmission method, which may be specifically understood as a method for transmitting data from a requesting end and a receiving end of data, where the method includes the following steps:
s202, creating a TCP data transmission channel;
s204, receiving numbered data to be extracted sent from the first computer through a TCP data transmission channel based on a data extraction request of the second computer;
s206, persisting the data to be extracted to a second local database;
s208, acquiring the number of the data to be extracted;
and S210, sending a response signal to the first computer, wherein the response signal comprises a number used for indicating that the second computer extracts the data to be extracted.
As shown in fig. 3, some embodiments of the present specification provide a data transmission method, which may be specifically understood as a method for performing data transmission from a sending end and a receiving end of data, where the method includes the following steps:
s302, acquiring and numbering data to be sent of a first computer based on a data extraction request of a second computer;
s304, persisting data to be sent to a first local database;
s306, creating a TCP data transmission channel;
s308, transmitting data to be transmitted to a second computer through a TCP data transmission channel;
s310, receiving numbered data to be sent from a first computer through a TCP data transmission channel;
s312, after receiving the data to be sent, persisting the data to be sent to a second local database; sending a response signal to the first computer, wherein the response signal comprises a number used for indicating that the second computer extracts data to be sent;
and S314, receiving a response signal from the second computer, and deleting the data to be sent matched with the serial number in the first local database.
In an actual application environment, data includes messages, and a sending end and a receiving end of the data can be used as a data proxy sending end and a data proxy receiving end for data transmission of a first computer and a second computer. The method comprises the steps that a data agent sending end numbers a message and then persists the message to a local level DB embedded database, then message data are extracted from a persisted interface according to a request signal of a data receiving end, a created TCP connection channel is selected according to the data type of the message to send the data, the message is still persisted after obtaining the message number after being transmitted to the agent data receiving end, a response message with a number is sent to the data agent sending end after the message is persisted locally, and the message is deleted from the local persistence according to the message number after the data agent sending end receives the response message. And automatically acquiring the next message to continue sending until no message to be sent exists in the local persistence. When network abnormal conditions such as network breaking, crash and the like occur, the data transmission channel reconnection can be automatically carried out when the data agent sending end and the data agent receiving end are connected, after the reconnection is finished, the information to be sent at present is continuously obtained from the local persistence, and the sending process of the information is continuously carried out.
It should be noted that, in some embodiments, the data proxy sending function and the data proxy receiving function are not independent, that is, the data proxy sending end and the data proxy receiving end are only relative to the transmission direction of the data, when the data is communicated bidirectionally, the data proxy sending end also has and implements the function of the data proxy receiving end, and the data proxy receiving end also can have and implements the function of the data proxy sending end.
As shown in fig. 4, some embodiments of the present specification further provide a data transmission apparatus, including:
a data to be sent numbering module 401, configured to number data to be sent of a first computer;
a to-be-sent data persistence module 402, configured to persist data to be sent to a first local database;
a TCP data transmission channel creating module 403, configured to create a TCP data transmission channel;
a data to be sent sending module 404, configured to transmit, based on a request of the second computer to extract data to be sent, the data to be sent to the second computer through the TCP data transmission channel;
a response signal receiving module 405, configured to receive a response signal from the second computer, where the response signal includes a number of data to be sent, and is used to indicate that the second computer has extracted the data to be sent;
and a deleting module 406, configured to delete the data to be sent in the first local database, where the data is matched with the serial number.
As shown in fig. 5, some embodiments of the present specification further provide a data transmission apparatus, including:
a TCP data transmission channel creating module 501, configured to create a TCP data transmission channel;
a to-be-extracted data receiving module 502, configured to receive, based on a data extraction request of a second computer, numbered to-be-extracted data sent from a first computer through a TCP data transmission channel;
a to-be-extracted data persistence module 503, configured to persist the to-be-extracted data to the second local database;
a number obtaining module 504, configured to obtain a number of the data to be extracted;
and a response signal sending module 505, configured to send a response signal to the first computer, where the response signal includes a number for indicating that the second computer has extracted the data to be extracted.
As shown in fig. 6, some embodiments of the present specification further provide a data transmission system, where the apparatus includes:
a first data transmission means 601 of the first computer and a second data transmission means 602 of the second computer;
the first data transmission device 601 and the second data transmission device 602 have a TCP data transmission channel creation module for creating a TCP data transmission channel between the first data transmission device 601 and the second data transmission device 602, wherein the TCP data transmission channel may be created in a plurality;
a first data transmission device 601, configured to obtain and number data to be sent of a first computer based on a data extraction request of a second computer, transmit the data to be sent to the second computer through a TCP data transmission channel, and delete the data to be sent matching the number in a first local database after receiving a response signal from the second computer;
the second data transmission device 602 is configured to receive the numbered data to be sent from the first data transmission device 601, persist the data to be sent to the second local database after receiving the data to be sent, and send a response signal to the first data transmission device 601, where the response signal includes a number and is used to indicate that the second data transmission device 602 has extracted the data to be sent.
In an actual application environment, the data includes a message, and the first data transmission apparatus 601 and the second data transmission apparatus 602 may serve as a data agent sending end and a data agent receiving end for data transmission of the first computer and the second computer. The method comprises the steps that a data agent sending end numbers a message and then persists the message to a local level DB embedded database, then message data are extracted from a persisted interface according to a request signal of a data receiving end, a created TCP connection channel is selected according to the data type of the message to send the data, the message is still persisted after obtaining the message number after being transmitted to the agent data receiving end, a response message with a number is sent to the data agent sending end after the message is persisted locally, and the message is deleted from the local persistence according to the message number after the data agent sending end receives the response message. And automatically acquiring the next message to continue sending until no message to be sent exists in the local persistence. When network abnormal conditions such as network breaking, crash and the like occur, the data transmission channel reconnection can be automatically carried out when the data agent sending end and the data agent receiving end are connected, after the reconnection is finished, the information to be sent at present is continuously obtained from the local persistence, and the sending process of the information is continuously carried out.
It should be noted that, in some embodiments, the data proxy sending function of the first data transmission apparatus 601 and the data proxy receiving function of the second data transmission apparatus 602 are not independent, that is, the data proxy sending end and the data proxy receiving end are only relative to the transmission direction of the data, when the data is in bidirectional communication, the data proxy sending end also has and implements the function of the data proxy receiving end, that is, the first data transmission apparatus 601 also has and implements the function of the second data transmission apparatus 602, and the second data transmission apparatus 602 also has and implements the function of the first data transmission apparatus 601.
In some embodiments of the present description, there is also provided an electronic device comprising: a memory for storing a computer software program; and a processor, configured to implement the steps of the data transmission method in the embodiments of the present specification when running the computer software program.
In some embodiments of the present description, there is also provided a computer readable storage medium on which a computer software program is stored, the computer software program being executed to implement the steps of the data transmission method in the embodiments of the present description.
For example, the computer software program may be a communication agent software program, both ends of communication need to have a communication agent program, and the communication agent program provides a data sending and extracting interface, multiple TCP data transmission channels may be managed inside the communication agent program, the communication agent program may send data after numbering and persisting the data, and may completely delete the sent data only after receiving a number response corresponding to an opposite end.
While the process flows described above include operations that occur in a particular order, it should be appreciated that the processes may include more or less operations that are performed sequentially or in parallel (e.g., using parallel processors or a multi-threaded environment). The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks. These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks. These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks. In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory. The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium. Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method or device comprising the element.
As will be appreciated by one skilled in the art, embodiments of the present description may be provided as a method, system, or computer program product. Accordingly, the description may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the description may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein. This description may be described in the general context of computer-executable instructions, such as program modules, being executed by a computer. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform particular tasks or implement particular abstract data types. The specification may also be practiced in distributed computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed computing environment, program modules may be located in both local and remote computer storage media including memory storage devices. The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, as for the method embodiment, since it is substantially similar to the apparatus embodiment, the description is simple, and the relevant points can be referred to the partial description of the apparatus embodiment. The above description is only an example of the present specification, and is not intended to limit the present specification. Various modifications and alterations to this description will become apparent to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present specification should be included in the scope of the claims of the present specification.

Claims (13)

1. A method of data transmission, the method comprising:
numbering data to be sent of a first computer;
persisting the data to be sent to a first local database;
creating a TCP data transmission channel;
transmitting the data to be transmitted to a second computer through the TCP data transmission channel based on a request of the second computer for extracting the data to be transmitted;
receiving a response signal from the second computer, wherein the response signal comprises a number of the data to be sent and is used for indicating that the second computer extracts the data to be sent;
and deleting the data to be sent matched with the serial number in the first local database.
2. The data transmission method of claim 1, further comprising:
the creating of the TCP data transmission channel specifically includes creating at least two SOCKET communication channels based on a TCP protocol.
3. The data transmission method according to claim 1 or 2, characterized in that the method further comprises:
and storing the TCP data transmission channel in a local file, wherein the first local database comprises a levelDB embedded database.
4. A method of data transmission, the method comprising:
creating a TCP data transmission channel;
receiving numbered data to be extracted sent from a first computer through the TCP data transmission channel based on a data extraction request of a second computer;
persisting the data to be extracted to the second local database;
acquiring the serial number of the data to be extracted;
and sending a response signal to the first computer, wherein the response signal comprises the number and is used for indicating that the second computer extracts the data to be extracted.
5. The data transmission method according to claim 4,
the creating of the TCP data transmission channel specifically includes creating at least two SOCKET communication channels based on a TCP protocol, and the second local database includes a LevelDB embedded database.
6. A method of data transmission, the method comprising:
acquiring and numbering data to be sent of a first computer based on a data extraction request of a second computer;
persisting the data to be sent to a first local database;
creating a TCP data transmission channel;
transmitting the data to be transmitted to the second computer through the TCP data transmission channel;
receiving numbered data to be sent from the first computer through the TCP data transmission channel;
after receiving the data to be sent, persisting the data to be sent to a second local database;
sending a response signal to the first computer, wherein the response signal comprises the number and is used for indicating that the second computer extracts the data to be sent;
receiving the reply signal from the second computer;
and deleting the data to be sent matched with the serial number in the first local database.
7. A data transmission apparatus, characterized in that the apparatus comprises
The data to be sent numbering module is used for numbering the data to be sent of the first computer;
the data to be sent persistence module is used for persisting the data to be sent to a first local database;
the TCP data transmission channel creating module is used for creating a TCP data transmission channel;
a data to be sent sending module, configured to transmit, based on a request of a second computer to extract the data to be sent, the data to be sent to the second computer through the TCP data transmission channel;
a response signal receiving module, configured to receive a response signal from the second computer, where the response signal includes a number of the data to be sent, and is used to indicate that the second computer has extracted the data to be sent;
and the deleting module is used for deleting the data to be sent matched with the serial number in the first local database.
8. The data transmission apparatus of claim 7,
the TCP data transmission channel is stored in a local file and comprises at least two SOCKET communication channels based on a TCP protocol, and the first local database comprises a levelDB embedded database.
9. A data transmission apparatus, characterized in that the apparatus comprises
The TCP data transmission channel creating module is used for creating a TCP data transmission channel;
the data receiving module to be extracted is used for receiving numbered data to be extracted sent from the first computer through the TCP data transmission channel based on a data extracting request of the second computer;
the data to be extracted persistence module is used for persisting the data to be extracted to the second local database;
the number acquisition module is used for acquiring the number of the data to be extracted;
and the response signal sending module is used for sending a response signal to the first computer, wherein the response signal comprises the number and is used for indicating that the second computer extracts the data to be extracted.
10. The data transmission apparatus of claim 9,
the TCP data transmission channel is stored in a local file and comprises at least two SOCKET communication channels based on a TCP protocol, and the second local database comprises a levelDB embedded database.
11. A data transmission system, comprising a first data transmission means of a first computer and a second data transmission means of a second computer;
the first data transmission device and the second data transmission device are provided with a TCP data transmission channel establishing module which is used for establishing the TCP data transmission channel between the first data transmission device and the second data transmission device;
the first data transmission device is used for acquiring and numbering the data to be sent of the first computer based on the data extraction request of the second computer, transmitting the data to be sent to the second computer through the TCP data transmission channel, and deleting the data to be sent matched with the serial number in the first local database after receiving a response signal from the second computer;
the second data transmission device is configured to receive the numbered data to be sent from the first data transmission device, persist the data to be sent to a second local database after receiving the data to be sent, and send a response signal to the first data transmission device, where the response signal includes the number and is used to indicate that the data to be sent has been extracted by the second data transmission device.
12. An electronic device, comprising
Memory for storing computer software program
A processor for implementing the steps of the data transmission method according to any one of claims 1 to 6 when running the computer software program.
13. A computer-readable storage medium, characterized in that a computer software program is stored on the computer-readable storage medium, which computer software program is executed to implement the steps of the data transmission method according to any one of claims 1 to 6.
CN202010484681.9A 2020-06-01 2020-06-01 Data transmission method, device, system, equipment and storage medium Pending CN111835712A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010484681.9A CN111835712A (en) 2020-06-01 2020-06-01 Data transmission method, device, system, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010484681.9A CN111835712A (en) 2020-06-01 2020-06-01 Data transmission method, device, system, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN111835712A true CN111835712A (en) 2020-10-27

Family

ID=72897505

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010484681.9A Pending CN111835712A (en) 2020-06-01 2020-06-01 Data transmission method, device, system, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111835712A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113132480A (en) * 2021-04-16 2021-07-16 北京京东振世信息技术有限公司 Data transmission method, device and system
CN113163025A (en) * 2021-03-25 2021-07-23 盛立安元科技(杭州)股份有限公司 Data transmission method, device, equipment and storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102202076A (en) * 2010-03-23 2011-09-28 深圳市金蝶中间件有限公司 Data transmitting method and device and data sending and receiving methods and devices
CN103051678A (en) * 2012-12-04 2013-04-17 中国电信股份有限公司云计算分公司 Method and device for high-reliability data communication
CN103428072A (en) * 2012-05-23 2013-12-04 北京大学 Persistent message publishing method and system
US20150301875A1 (en) * 2014-04-22 2015-10-22 Andreas Harnesk Persisting and managing application messages
CN105959298A (en) * 2016-06-24 2016-09-21 乐视控股(北京)有限公司 Data transmission method and data transmission device
CN106101026A (en) * 2016-06-07 2016-11-09 深圳证券通信有限公司 A kind of UDP multicasting method of highly reliable low latency
CN109274466A (en) * 2018-08-07 2019-01-25 中国人民银行清算总中心 A kind of middleware message transmitting method and system
CN111177161A (en) * 2019-11-07 2020-05-19 腾讯科技(深圳)有限公司 Data processing method and device, computing equipment and storage medium

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102202076A (en) * 2010-03-23 2011-09-28 深圳市金蝶中间件有限公司 Data transmitting method and device and data sending and receiving methods and devices
CN103428072A (en) * 2012-05-23 2013-12-04 北京大学 Persistent message publishing method and system
CN103051678A (en) * 2012-12-04 2013-04-17 中国电信股份有限公司云计算分公司 Method and device for high-reliability data communication
US20150301875A1 (en) * 2014-04-22 2015-10-22 Andreas Harnesk Persisting and managing application messages
CN106101026A (en) * 2016-06-07 2016-11-09 深圳证券通信有限公司 A kind of UDP multicasting method of highly reliable low latency
CN105959298A (en) * 2016-06-24 2016-09-21 乐视控股(北京)有限公司 Data transmission method and data transmission device
CN109274466A (en) * 2018-08-07 2019-01-25 中国人民银行清算总中心 A kind of middleware message transmitting method and system
CN111177161A (en) * 2019-11-07 2020-05-19 腾讯科技(深圳)有限公司 Data processing method and device, computing equipment and storage medium

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113163025A (en) * 2021-03-25 2021-07-23 盛立安元科技(杭州)股份有限公司 Data transmission method, device, equipment and storage medium
CN113163025B (en) * 2021-03-25 2022-10-21 盛立安元科技(杭州)股份有限公司 Data transmission method, device, equipment and storage medium
CN113132480A (en) * 2021-04-16 2021-07-16 北京京东振世信息技术有限公司 Data transmission method, device and system
CN113132480B (en) * 2021-04-16 2023-04-07 北京京东振世信息技术有限公司 Data transmission method, device and system

Similar Documents

Publication Publication Date Title
EP3057281B1 (en) M2m application remote registration method, device, system and storage medium
CN111835712A (en) Data transmission method, device, system, equipment and storage medium
CN108880972B (en) Information processing method, server and terminal
CN112799688A (en) Method and device for installing software package in container application, computer equipment and medium
CN113391979A (en) Processing method, equipment and system for monitoring data display and storage medium
CN110932918A (en) Log data acquisition method and device and storage medium
CN111240892A (en) Data backup method and device
CN111159269B (en) Data processing method, device and system
CN111654399A (en) Networking method, device and equipment based on SD-WAN and storage medium
CN112600703B (en) Network equipment remote access fault positioning method and device
CN110932393B (en) Substation information protection master station system and data initialization method thereof
CN107222453B (en) file transmission method and device
CN105827423A (en) Data acquisition method and data acquisition device
CN116303286A (en) Batch file processing method, device and system
CN105338058A (en) Application updating method and device
CN111782435B (en) Method and system for recovering and processing cascade exception of video monitoring management platform
CN109688204B (en) File downloading method, node and terminal based on NDN (named data networking)
CN114844772A (en) Management method and system based on Zabbix monitoring platform
CN114024822A (en) Block chain-based Internet of things equipment management method, equipment, server and medium
CN103763401A (en) Distributed management system of devices in semiconductor plant
CN114500036A (en) Method, device and medium for transmitting data
EP3040891A1 (en) Method for providing information to determine a graph associated with a data item
US10936431B2 (en) Method, device and computer readable medium for restoring files
CN109743188A (en) Daily record data treating method and apparatus
CN114374644B (en) Industrial Internet identification analysis method and system based on infrastructure logic architecture

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

Application publication date: 20201027

RJ01 Rejection of invention patent application after publication