CN112055058A - Data storage method and device and computer readable storage medium - Google Patents

Data storage method and device and computer readable storage medium Download PDF

Info

Publication number
CN112055058A
CN112055058A CN202010840376.9A CN202010840376A CN112055058A CN 112055058 A CN112055058 A CN 112055058A CN 202010840376 A CN202010840376 A CN 202010840376A CN 112055058 A CN112055058 A CN 112055058A
Authority
CN
China
Prior art keywords
data
terminal
memory
processing logic
message
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
CN202010840376.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.)
Guangdong Communications and Networks Institute
Original Assignee
Guangdong Communications and Networks Institute
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Communications and Networks Institute filed Critical Guangdong Communications and Networks Institute
Priority to CN202010840376.9A priority Critical patent/CN112055058A/en
Publication of CN112055058A publication Critical patent/CN112055058A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • 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/1097Protocols in which an application is distributed across nodes in the network for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/04Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks
    • H04L63/0428Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the data content is protected, e.g. by encrypting or encapsulating the payload

Abstract

The invention discloses a data storage method, a data storage device and a computer readable storage medium, wherein the data storage method comprises the following steps: a data storage device acquires a data message sent by a first terminal; acquiring first data in a memory in the second terminal according to the data message; the first data is stored to a memory of the first terminal. The invention reduces the storage delay of data storage.

Description

Data storage method and device and computer readable storage medium
Technical Field
The present invention relates to the field of data processing, and in particular, to a data storage method and apparatus, and a computer-readable storage medium.
Background
At present, the internet of things and big data are developed rapidly, data are collected through sensors or equipment and then are generally transmitted to a data collection center through a network, each service has different processing logics and bandwidth requirements, flow of the data collection center can be distributed to a service processing server, and the data are processed by the service processing server and then are stored in a storage unit system. In this process, distributed business process software needs to be customized, a large amount of server and network card resources are consumed, and storage delay is increased.
Disclosure of Invention
Embodiments of the present invention provide a data storage method, an apparatus, and a computer-readable storage medium, and aim to solve the problems that a distributed service processing software needs to be customized in a data access process, a large amount of server and network card resources are consumed, and storage delay is increased.
A first aspect of an embodiment of the present invention provides a data storage method, where the data storage method is applied to a data storage device, the data storage device is communicatively connected to a first terminal and a second terminal, and the data storage method includes:
a data storage device acquires a data message sent by a first terminal;
acquiring first data in a memory in a second terminal according to the data message;
storing the first data in a memory of the first terminal.
In an embodiment, after the step of obtaining the data packet sent by the first terminal, the method further includes the step of obtaining the data packet sent by the first terminal;
determining a control instruction corresponding to the data message;
when the control instruction is a reading instruction, executing the step of acquiring first data in a memory in a second terminal according to the data message;
when the control instruction is a write-in instruction, acquiring second data from the data message, wherein the second data is data stored in a first terminal memory;
storing the second data in a memory of the second terminal.
In an embodiment, the step of obtaining the second data from the data packet further includes:
determining a processing logic corresponding to the data message;
and preprocessing the data message according to the processing logic to obtain the second data, wherein the preprocessing comprises adding a time axis or encrypting.
In an embodiment, after the step of determining the processing logic corresponding to the data packet, the method further includes:
determining a complexity of the processing logic;
when the complexity of the processing logic does not meet a preset condition, executing the step of preprocessing the data message according to the processing logic to obtain second data;
and when the complexity of the processing logic meets a preset condition, sending the data message to a third terminal so as to receive the second data sent by the third terminal.
A second aspect of the embodiments of the present invention provides a data storage method, where the data storage method is applied to a data storage device, the data storage device is communicatively connected to a first terminal and a second terminal, and the data storage method includes:
a data storage device acquires a data message sent by a first terminal;
acquiring second data from the data message, wherein the second data is data stored in a memory of the first terminal;
storing the second data in a memory of the second terminal.
In an embodiment, after the step of obtaining the data packet sent by the first terminal, the method further includes the step of obtaining the data packet sent by the first terminal;
determining a control instruction corresponding to the data message;
when the control instruction is a reading instruction, acquiring first data in a memory in a second terminal according to the data message;
storing the first data in a memory of the first terminal;
and when the control instruction is a write instruction, executing the step of acquiring the second data from the data message.
In an embodiment, the step of acquiring the first data in the memory in the second terminal according to the data packet further includes:
determining a processing logic corresponding to the data message;
and preprocessing the data message according to the processing logic to obtain the first data, wherein the preprocessing comprises adding a time axis or encrypting.
In an embodiment, after the step of determining the processing logic corresponding to the data packet, the method further includes:
determining a complexity of the processing logic;
when the complexity of the processing logic does not meet a preset condition, executing the step of preprocessing the data message according to the processing logic to obtain first data;
and when the complexity of the processing logic meets a preset condition, sending the data message to a third terminal so as to receive the first data sent by the third terminal.
In order to achieve the above object, the present invention provides a data storage device, including: a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the steps of the storage means of data as described above when executing the computer program.
To achieve the above object, the present invention provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the storage apparatus of data as described above.
The invention provides a data storage method, a data storage device and a computer readable storage medium, which are used for acquiring a data message sent by a first terminal; acquiring first data in a memory in a second terminal according to the data message; and sending the first data to the first terminal so that the first terminal stores the first data to a memory of the first terminal. Acquiring a data message sent by a first terminal; acquiring second data from the data message, wherein the second data is data stored in a memory of the first terminal; and sending the second data to the second terminal so that the second terminal stores the second data into a memory of the second terminal. In the process of storing the data, the data are directly stored into the memory, so that a large amount of resources of the server and the network card can be avoided being consumed, and the storage delay is reduced.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a diagram of a hardware architecture according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating a first embodiment of a data storage method according to the present invention;
FIG. 3 is a flowchart illustrating a second embodiment of a data storage method according to the present invention;
FIG. 4 is a detailed flowchart of step S60 of the data storage method according to the third embodiment of the present invention;
FIG. 5 is a detailed flowchart of step S60 of the data storage method according to the fourth embodiment of the present invention;
FIG. 6 is a flow chart illustrating a fifth embodiment of the data storage method according to the present invention;
FIG. 7 is a flowchart illustrating a sixth embodiment of a data storage method according to the present invention;
FIG. 8 is a detailed flowchart of step S130 of the data storage method according to the seventh embodiment of the present invention;
fig. 9 is a detailed flowchart of step S130 of the eighth embodiment of the data storage method according to the present invention.
Detailed Description
For a better understanding of the above technical solutions, exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
The main solution of the invention is: acquiring a data message sent by a first terminal through a data storage device; acquiring first data in a memory in a second terminal according to the data message; storing the first data to a memory of the first terminal.
In the process of storing the data, the data are directly stored into the memory, so that a large amount of resources of the server and the network card can be avoided being consumed, and the storage delay is reduced.
Referring to fig. 1, fig. 1 is a schematic diagram of a hardware architecture of a data storage device according to an embodiment of the present invention.
The embodiment of the invention relates to a data storage device, which comprises: a processor 101, e.g. a CPU, a memory 102, a communication bus 103. Wherein a communication bus 103 is used for enabling the connection communication between these components.
The memory 102 may be a high-speed RAM memory or a non-volatile memory (e.g., a disk memory). As shown in fig. 1, the memory 103, which is a kind of computer storage medium, may include therein a detection program; and the processor 101 may be configured to call the detection program stored in the memory 102 and perform the following operations:
a data storage device acquires a data message sent by a first terminal;
acquiring first data in a memory in a second terminal according to the data message;
storing the first data in a memory of the first terminal.
In one embodiment, the processor 101 may be configured to call a detection program stored in the memory 102 and perform the following operations:
determining a control instruction corresponding to the data message;
when the control instruction is a reading instruction, executing the step of acquiring first data in a memory in a second terminal according to the data message;
when the control instruction is a write-in instruction, acquiring second data from the data message, wherein the second data is data stored in a first terminal memory;
storing the second data in a memory of the second terminal.
In one embodiment, the processor 101 may be configured to call a detection program stored in the memory 102 and perform the following operations:
determining a processing logic corresponding to the data message;
and preprocessing the data message according to the processing logic to obtain the second data, wherein the preprocessing comprises adding a time axis or encrypting.
In one embodiment, the processor 101 may be configured to call a detection program stored in the memory 102 and perform the following operations:
determining a complexity of the processing logic;
when the complexity of the processing logic does not meet a preset condition, executing the step of preprocessing the data message according to the processing logic to obtain second data;
and when the complexity of the processing logic meets a preset condition, sending the data message to a third terminal so as to receive the second data sent by the third terminal.
In one embodiment, the processor 101 may be configured to call a detection program stored in the memory 102 and perform the following operations:
a data storage device acquires a data message sent by a first terminal;
acquiring second data from the data message, wherein the second data is data stored in a memory of the first terminal;
storing the second data in a memory of the second terminal.
In one embodiment, the processor 101 may be configured to call a detection program stored in the memory 102 and perform the following operations:
determining a control instruction corresponding to the data message;
when the control instruction is a reading instruction, acquiring first data in a memory in a second terminal according to the data message;
storing the first data in a memory of the first terminal;
and when the control instruction is a write instruction, executing the step of acquiring the second data from the data message.
In one embodiment, the processor 101 may be configured to call a detection program stored in the memory 102 and perform the following operations:
determining a processing logic corresponding to the data message;
and preprocessing the data message according to the processing logic to obtain the first data, wherein the preprocessing comprises adding a time axis or encrypting.
In one embodiment, the processor 101 may be configured to call a detection program stored in the memory 102 and perform the following operations:
determining a complexity of the processing logic;
when the complexity of the processing logic does not meet a preset condition, executing the step of preprocessing the data message according to the processing logic to obtain first data; and when the complexity of the processing logic meets a preset condition, sending the data message to a third terminal so as to receive the first data sent by the third terminal.
In the technical scheme provided by this embodiment, a data message sent by a first terminal is acquired; acquiring first data in a memory in a second terminal according to the data message; and sending the first data to the first terminal so that the first terminal stores the first data to a memory of the first terminal. Acquiring a data message sent by a first terminal; acquiring second data from the data message, wherein the second data is data stored in a memory of the first terminal; and sending the second data to the second terminal so that the second terminal stores the second data into a memory of the second terminal. In the process of storing the data, the data are directly stored into the memory, so that a large amount of resources of the server and the network card can be avoided being consumed, and the storage delay is reduced.
In order to better understand the technical solution, the technical solution will be described in detail with reference to the drawings and the specific embodiments.
Referring to fig. 2, fig. 2 is a first embodiment of the data storage method of the present invention, which includes the following steps:
step S10, the data storage device obtains the data packet sent by the first terminal.
In this embodiment, the first terminal is in communication connection with the second terminal through a programmable chip, specifically, the programmable chip is a programmable switch and has a certain data processing capability processed by a CPU, the first terminal may be an electronic device with a storage function, such as a mobile phone and a computer, and further, the data packet is a data unit exchanged and transmitted in a network, that is, a data block to be sent by a station at one time. The message contains complete data information to be sent, and the message is very inconsistent in length, unlimited in length and variable.
Optionally, after the programmable switch obtains the data packet sent by the first terminal, the programmable switch may further determine the authority and the service type of the data packet, and then perform user configuration management on the controller to specify a service policy, where the policy includes: the network port of the service, the type of the network protocol, the type of the service, the processing code of the service, the storage unit and other requirements; the programmable switch can be subjected to service configuration through an interface provided by the programmable switch; at the end of this segment, the service configuration will take effect in the data processing node.
Step S20, obtaining the first data in the memory in the second terminal according to the data packet.
In this embodiment, the second terminal may be an electronic device with a storage function, such as a mobile phone or a computer, and further, the first data refers to target data to be stored.
Step S30, storing the first data in a memory of the first terminal.
In this embodiment, the first data is remotely and directly stored to the first terminal, and a specific Remote Direct Memory Access (Remote Direct Memory Access) technology is a host-off/host-bypass technology: one application (including storage) < -sending/receiving data- > memory space of another (remote) application. His underlying protocol may be that the underlying layer may be ethernet (RoCE or iWARP) or Infiniband.
Optionally, the first data is sent to the first terminal, so that the first terminal stores the first data in a memory of the first terminal
In the technical scheme of the embodiment, a data message sent by a first terminal is acquired; acquiring first data in a memory in a second terminal according to the data message; and sending the first data to the first terminal so that the first terminal stores the first data to a memory of the first terminal. In the process of storing the data, the data are directly stored into the memory, so that a large amount of resources of the server and the network card can be avoided being consumed, and the storage delay is reduced.
Referring to fig. 3, fig. 3 is a second embodiment of the data storage method of the present invention, and based on the first embodiment, after the step S10, the method further includes the following steps:
and step S40, determining a control instruction corresponding to the data message.
In this embodiment, the first terminal sends the data packet to the data processing node through protocol encapsulation; the programmable switch can control the data message according to the service configuration, and if the processing strategy does not exist, the data message is discarded; if the processing strategy authority is refused, the data message is discarded. If the processing strategy exists and the first terminal is allowed to access, acquiring a control instruction in a data plane, wherein one or more control instructions may exist in a message; the data plane referred to in this embodiment is a data processing node, and the service logic implemented by the programmable switch is used to implement high-speed data storage for packet processing directly in the data plane, where the control instruction includes a write instruction and a read instruction.
And step S50, when the control instruction is a reading instruction, executing the step of acquiring the first data in the memory in the second terminal according to the data message.
In this embodiment, when it is determined that the control instruction carried in the data packet is a read instruction, the location of the first data in the memory of the second terminal may be determined through the data packet, and the step of performing remote direct data storage on the first data to store the first data in the first terminal is performed.
Step S60, when the control command is a write command, obtaining second data from the data packet, where the second data is data stored in the first terminal memory.
In this embodiment, when it is determined that the control instruction carried in the data packet is a write instruction, the data packet is parsed to obtain second data to be stored in the second terminal, where the second data is data sent by the first terminal, and the data packet carries the second data.
Step S70, storing the second data in a memory of the second terminal.
In this embodiment, after the data packet is analyzed to obtain the second data, the programmable switch stores the second data in the memory of the second terminal through access between the remote data.
Optionally, the second data is sent to the second terminal, so that the second terminal stores the second data in a memory of the second terminal.
In the technical scheme of the embodiment, through different control instructions in the data message, under the condition of not consuming a large amount of server and network card resources and reducing storage delay, the data messages can be processed simultaneously, and the flexibility of instruction processing is improved.
Referring to fig. 4, fig. 4 is a third embodiment of the data storage method of the present invention, and based on the first and second embodiments, the step S60 further includes the following steps:
and step S61, determining the processing logic corresponding to the data message.
In this embodiment, the processing logic is a service processing logic, for example: we submit data from HTML to the server through forms, and then we sometimes need to do some processing to the submitted data, and then store it in the database. Then a series of processes on the data before committing the data to the database such as: encryption, or generation of current system time, adding a time axis, or performing operations such as partial interception on submitted data, which are collectively referred to as logical processing of services, may also be understood as preprocessing of data.
Step S62, pre-processing the data packet according to the processing logic to obtain the second data, where the pre-processing includes adding a time axis or encrypting.
In the technical solution of this embodiment, before storing data, the security and integrity of data to be stored can be respectively increased by performing service logic processing on a data packet, for example, by encrypting the data and adding a time axis.
Referring to fig. 5, fig. 5 is a fourth embodiment of the data storage method according to the present invention, and based on any one of the first to third embodiments, after the step of S61, the method includes the following steps:
step S63, determining the complexity of the processing logic.
In the technical solution of this embodiment, the complexity of the processing logic is determined by monitoring the operating state of the chip in the programmable switch, and further, the complexity may also be determined in advance by determining the data volume to be logically processed, for example: when the programmable switch determines that the service logic cannot be processed or is difficult to process, the processing can be performed through the processor node with stronger preset function. Optionally, the processor node may be a processor on a data storage side, for example: a processor node of the second terminal.
Step S64, when the complexity of the processing logic does not meet the preset condition, executing the step of preprocessing the data message according to the processing logic to obtain second data;
step S65, when the complexity of the processing logic meets a preset condition, sending the data packet to a third terminal, so as to receive the second data sent by the third terminal.
In the technical solution of this embodiment, in the stage of logic processing before data storage, when the programmable switch is difficult to implement processing logic in a data packet, a processor with a stronger function is called to perform processing, so as to indirectly improve the stability of data storage.
Referring to fig. 6, fig. 6 is a fifth embodiment of the data storage method of the present invention, which includes the following steps:
step S90, the data storage device obtains the data packet sent by the first terminal.
The first terminal is in communication connection with the second terminal through a programmable chip, specifically, the programmable chip is a programmable switch and has a certain data processing capability processed by a CPU, the first terminal can be an electronic device with a storage function, such as a mobile phone and a computer, and further, the data message is a data unit exchanged and transmitted in a network, that is, a data block to be sent by a station at one time. The message contains complete data information to be sent, and the message is very inconsistent in length, unlimited in length and variable.
Optionally, after the programmable switch obtains the data packet sent by the first terminal, the programmable switch may further determine the authority and the service type of the data packet, and then perform user configuration management on the controller to specify a service policy, where the policy includes: the network port of the service, the type of the network protocol, the type of the service, the processing code of the service, the storage unit and other requirements; the programmable switch can be subjected to service configuration through an interface provided by the programmable switch; at the end of this segment, the service configuration will take effect in the data processing node. The first terminal sends a data message to the data processing node through protocol encapsulation; the programmable switch can control the data message according to the service configuration, and if the processing strategy does not exist, the data message is discarded; if the processing strategy authority is refused, the data message is discarded. If the processing strategy exists and the first terminal is allowed to access, analyzing the message and acquiring a control instruction on the data plane, wherein one or more control instructions may exist in one message; the data plane referred to in this example is a data processing node, and high-speed data storage is directly realized on the packet processing in the data plane by adopting the service logic realized by the programmable switch.
Step S100, obtaining second data from the data packet, where the second data is data stored in the memory of the first terminal.
In this embodiment, the second terminal may be an electronic device with a storage function, such as a mobile phone and a computer, and further, the second data refers to target data to be subjected to data storage, and it should be noted that the data message includes the second data.
Step S110, storing the second data into a memory of the second terminal.
In this embodiment, the second data is stored in the memory of the second terminal directly through the programmable switch and the data storage device.
Optionally, the second data is sent to the second terminal, so that the second terminal stores the second data in a memory of the second terminal.
In the technical scheme of the embodiment, a data message sent by a first terminal is acquired; acquiring second data from the data message, wherein the second data is data stored in a memory of the first terminal; and sending the second data to the second terminal so that the second terminal stores the second data into a memory of the second terminal. In the process of storing the data, the data are directly stored into the memory, so that a large amount of resources of the server and the network card can be avoided being consumed, and the storage delay is reduced.
Referring to fig. 7, fig. 7 is a sixth embodiment of the data storage method of the present invention, and based on the fifth embodiment, after the step of step S90, the method includes the following steps:
and step S120, determining a control instruction corresponding to the data message.
In this embodiment, the first terminal sends a data packet to the data processing node through protocol encapsulation; the programmable switch can control the data message according to the service configuration, and if the processing strategy does not exist, the data message is discarded; if the processing strategy authority is refused, the data message is discarded. If the processing strategy exists and the first terminal is allowed to access, acquiring a control instruction in a data plane, wherein one or more control instructions may exist in a message; the data plane referred to in this embodiment is a data processing node, and high-speed data storage is directly implemented on the packet processing in the data plane by using service logic implemented by a programmable switch. The control command comprises a write command and a read command.
Step S130, when the control instruction is a reading instruction, first data in a memory in the second terminal is obtained according to the data message.
In this embodiment, when it is determined that the control instruction carried in the data packet is a read instruction, the location of the first data in the second terminal memory may be determined through the data packet.
Step S140, storing the first data to a memory of the first terminal.
In this embodiment, the first data is remotely and directly stored in the memory of the first terminal.
Optionally, the first data is sent to the first terminal, so that the first terminal stores the first data in a memory of the first terminal.
Step S150, when the control command is a write command, executing the step of obtaining the second data from the data packet.
In this embodiment, when the control command is determined to be a write command, the first data is remotely and directly stored to the first terminal.
In the technical scheme of the embodiment, through different control instructions in the data message, under the condition of not consuming a large amount of server and network card resources and reducing storage delay, the data messages can be processed simultaneously, and the flexibility of instruction processing is improved.
Referring to fig. 8, fig. 8 is a sixth embodiment of the data storage method of the present invention, and based on the fifth embodiment, the step S130 includes the following steps:
step S131, determining the processing logic corresponding to the data message;
step S132, preprocessing the data message according to the processing logic to obtain the first data, wherein the preprocessing includes adding a time axis or encrypting.
In the technical solution of this embodiment, before storing data, the security and integrity of data to be stored can be respectively increased by performing service logic processing on a data packet, for example, by encrypting the data and adding a time axis.
Referring to fig. 9, fig. 9 is a sixth embodiment of the data storage method of the present invention, and based on the fifth embodiment, after the step of step S131, the method includes the following steps:
step S133, determining the complexity of the processing logic;
in the technical solution of this embodiment, the complexity of the processing logic is determined by monitoring the operating state of the chip in the programmable switch, and further, the complexity may also be determined in advance by determining the data volume to be logically processed, for example: when the programmable switch determines that the service logic cannot be processed or is difficult to process, the processing can be performed through the processor node with stronger preset function. Optionally, the processor node may be a processor on a data storage side, for example: a processor node of the first terminal.
Step S134, when the complexity of the processing logic does not meet a preset condition, executing the step of preprocessing the data message according to the processing logic to obtain first data;
step S135, when the complexity of the processing logic meets a preset condition, sending the data packet to a third terminal, so as to receive the first data sent by the third terminal.
In the technical solution of this embodiment, in the logic processing stage before data storage, when it is difficult for the programmable switch to implement processing logic in a data packet, a processor with a stronger function is called to perform processing, so as to indirectly improve the stability of data storage.
In order to achieve the above object, the present invention provides a data storage device, including: a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the steps of the data storage method as described above when executing the computer program.
To achieve the above object, the present invention provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the storage method of data as described above.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention 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.
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.
It should be noted that in the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention may be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these means may be embodied by one and the same item of hardware. The usage of the words first, second and third, etcetera do not indicate any ordering. These words may be interpreted as names.
While preferred embodiments of the present invention have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the invention.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.

Claims (10)

1. A data storage method is applied to a data storage device, the data storage device is in communication connection with a first terminal and a second terminal, and the data storage method comprises the following steps:
a data storage device acquires a data message sent by a first terminal;
acquiring first data in a memory in a second terminal according to the data message;
storing the first data in a memory of the first terminal.
2. The method for storing data according to claim 1, wherein after the step of obtaining the data packet sent by the first terminal, the method further comprises;
determining a control instruction corresponding to the data message;
when the control instruction is a reading instruction, executing the step of acquiring first data in a memory in a second terminal according to the data message;
when the control instruction is a write-in instruction, acquiring second data from the data message, wherein the second data is data stored in a first terminal memory;
storing the second data in a memory of the second terminal.
3. The data storage method according to claim 2, wherein the step of obtaining the second data from the data message further comprises:
determining a processing logic corresponding to the data message;
and preprocessing the data message according to the processing logic to obtain the second data, wherein the preprocessing comprises adding a time axis or encrypting.
4. The data storage method according to claim 3, wherein after the step of determining the processing logic corresponding to the data packet, the method further comprises:
determining a complexity of the processing logic;
when the complexity of the processing logic does not meet a preset condition, executing the step of preprocessing the data message according to the processing logic to obtain second data;
and when the complexity of the processing logic meets a preset condition, sending the data message to a third terminal so as to receive the second data sent by the third terminal.
5. A data storage method is applied to a data storage device, the data storage device is in communication connection with a first terminal and a second terminal, and the data storage method comprises the following steps:
a data storage device acquires a data message sent by a first terminal;
acquiring second data from the data message, wherein the second data is data stored in a memory of the first terminal;
storing the second data in a memory of the second terminal.
6. The method for storing data according to claim 5, wherein after the step of obtaining the data packet sent by the first terminal, the method further comprises;
determining a control instruction corresponding to the data message;
when the control instruction is a reading instruction, acquiring first data in a memory in a second terminal according to the data message;
storing the first data in a memory of the first terminal;
and when the control instruction is a write instruction, executing the step of acquiring the second data from the data message.
7. The data storage method according to claim 6, wherein the step of obtaining the first data in the memory of the second terminal according to the data packet further comprises:
determining a processing logic corresponding to the data message;
and preprocessing the data message according to the processing logic to obtain the first data, wherein the preprocessing comprises adding a time axis or encrypting.
8. The data storage method according to claim 7, wherein after the step of determining the processing logic corresponding to the data packet, the method further comprises:
determining a complexity of the processing logic;
when the complexity of the processing logic does not meet a preset condition, executing the step of preprocessing the data message according to the processing logic to obtain first data;
and when the complexity of the processing logic meets a preset condition, sending the data message to a third terminal so as to receive the first data sent by the third terminal.
9. A storage device for data, the storage device comprising: memory, processor and computer program stored on the memory and executable on the processor, the processor implementing the steps of the method of storing data according to any one of claims 1 to 8 when executing the computer program.
10. A computer-readable storage medium, characterized in that a computer program is stored thereon, which computer program, when being executed by a processor, carries out the steps of the method of storing data according to any one of claims 1 to 8.
CN202010840376.9A 2020-08-19 2020-08-19 Data storage method and device and computer readable storage medium Pending CN112055058A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010840376.9A CN112055058A (en) 2020-08-19 2020-08-19 Data storage method and device and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010840376.9A CN112055058A (en) 2020-08-19 2020-08-19 Data storage method and device and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN112055058A true CN112055058A (en) 2020-12-08

Family

ID=73599679

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010840376.9A Pending CN112055058A (en) 2020-08-19 2020-08-19 Data storage method and device and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN112055058A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114401218A (en) * 2021-12-28 2022-04-26 绿盟科技集团股份有限公司 Bypass forwarding method and device for data message

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103718167A (en) * 2011-06-30 2014-04-09 诺基亚公司 Methods, apparatuses and computer program products for improving network transmission by reducing memory copy overhead by providing direct access to data
CN107276912A (en) * 2016-04-07 2017-10-20 华为技术有限公司 Memory, message processing method and distributed memory system
WO2019000866A1 (en) * 2017-06-29 2019-01-03 京信通信系统(中国)有限公司 Data processing method and internet of things (iot) gateway
CN109302466A (en) * 2018-09-18 2019-02-01 华为技术有限公司 Data processing method, relevant device and computer storage medium
CN109739434A (en) * 2018-12-03 2019-05-10 中科恒运股份有限公司 File reads address acquiring method, file reading and terminal device
CN109981480A (en) * 2017-12-27 2019-07-05 华为技术有限公司 A kind of data transmission method and the first equipment

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103718167A (en) * 2011-06-30 2014-04-09 诺基亚公司 Methods, apparatuses and computer program products for improving network transmission by reducing memory copy overhead by providing direct access to data
CN107276912A (en) * 2016-04-07 2017-10-20 华为技术有限公司 Memory, message processing method and distributed memory system
WO2019000866A1 (en) * 2017-06-29 2019-01-03 京信通信系统(中国)有限公司 Data processing method and internet of things (iot) gateway
CN109981480A (en) * 2017-12-27 2019-07-05 华为技术有限公司 A kind of data transmission method and the first equipment
CN109302466A (en) * 2018-09-18 2019-02-01 华为技术有限公司 Data processing method, relevant device and computer storage medium
CN109739434A (en) * 2018-12-03 2019-05-10 中科恒运股份有限公司 File reads address acquiring method, file reading and terminal device

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
薛建生等: "物联网海量数据的分布式存储算法", 《小型微型计算机系统》 *
薛建生等: "物联网海量数据的分布式存储算法", 《小型微型计算机系统》, no. 09, 15 September 2013 (2013-09-15), pages 115 - 118 *
金浩;梅君君;: "一种RDMA传输控制方法研究", 网络安全技术与应用, no. 05, pages 484 - 23 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114401218A (en) * 2021-12-28 2022-04-26 绿盟科技集团股份有限公司 Bypass forwarding method and device for data message
CN114401218B (en) * 2021-12-28 2023-07-21 绿盟科技集团股份有限公司 Bypass forwarding method and device for data message

Similar Documents

Publication Publication Date Title
CN111163130B (en) Network service system and data transmission method thereof
US20230042747A1 (en) Message Processing Method and Device, Storage Medium, and Electronic Device
CN111064626B (en) Configuration updating method, device, server and readable storage medium
CN109348434B (en) Scene information sending method, sending device and terminal equipment
CN104243610A (en) Distributed file transmission service method
CN110912805B (en) Message reading state synchronization method, terminal, server and system
CN112615753A (en) Link abnormity tracking method, first node, second node and link
CN110290190A (en) A kind of method, monitored device and monitoring server acquiring data
CN109788251B (en) Video processing method, device and storage medium
CN114676205A (en) Event information processing method and device
CN112055058A (en) Data storage method and device and computer readable storage medium
CN111698310B (en) Multi-test environment scheduling method and device based on SWIFT network
CN117176802A (en) Full-link monitoring method and device for service request, electronic equipment and medium
CN108289165B (en) Method and device for realizing camera control based on mobile phone and terminal equipment
CN112019689A (en) Incoming call show service processing system and method
CN108805741B (en) Fusion method, device and system of power quality data
CN115883639A (en) Web real-time message pushing method and device, equipment and storage medium
CN115080771A (en) Data processing method and device based on artificial intelligence, medium and gateway equipment
CN113726885A (en) Method and device for adjusting flow quota
CN112422693A (en) User online short video draft queue exporting method
CN113076380A (en) Data synchronization method, device, system, equipment and storage medium
CN112766486A (en) Searching method of neural network structure, terminal, server and readable storage medium
CN114189384B (en) Service processing method, device, equipment and storage medium
CN113852919B (en) Method and device for generating early warning message, storage medium and electronic device
CN113132324B (en) Sample identification method and system

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