CN114422247A - Data transmission method and device, electronic equipment and storage medium - Google Patents

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

Info

Publication number
CN114422247A
CN114422247A CN202210067112.3A CN202210067112A CN114422247A CN 114422247 A CN114422247 A CN 114422247A CN 202210067112 A CN202210067112 A CN 202210067112A CN 114422247 A CN114422247 A CN 114422247A
Authority
CN
China
Prior art keywords
data
intranet
temporary storage
extranet
storage module
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
CN202210067112.3A
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.)
Linkdoc Technology Beijing Co ltd
Original Assignee
Linkdoc Technology Beijing 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 Linkdoc Technology Beijing Co ltd filed Critical Linkdoc Technology Beijing Co ltd
Priority to CN202210067112.3A priority Critical patent/CN114422247A/en
Publication of CN114422247A publication Critical patent/CN114422247A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/02Network architectures or network communication protocols for network security for separating internal from external traffic, e.g. firewalls
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/12Applying verification of the received information
    • H04L63/123Applying verification of the received information received data contents, e.g. message integrity
    • 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/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Hardware Design (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The application provides a data transmission method, a data transmission device, electronic equipment and a storage medium. The data method comprises the following steps: receiving intranet data sent by an intranet-connected terminal; storing the intranet data by using an intranet temporary storage module; monitoring whether the data transmission network is stable; if the data transmission network is stable, sending intranet data to the extranet temporary storage module, and storing the intranet data by using the extranet temporary storage module; the intranet data in the extranet temporary storage module can be downloaded by a terminal connected with an extranet. In the implementation process, the data in the internal network temporary storage module is transmitted to the external network temporary storage module to be stored for standby when the network is stable, and even if the network is unstable or the network gate is closed, the data in the internal network is transmitted to the external network temporary storage module to be downloaded and used by the terminal of the external network when the network is stable, so that the influence on data transmission due to the instability of the network and the closing of the network gate can be reduced.

Description

Data transmission method and device, electronic equipment and storage medium
Technical Field
The present application relates to the field of data transmission technologies, and in particular, to a data transmission method and apparatus, an electronic device, and a storage medium.
Background
In recent years, with the construction of information technologies of hospitals and information manufacturers, cross-center large data application based on data sharing is more and more widespread. However, for the sake of information security, hospitals or information manufacturers can only open one-way network policies; meanwhile, a network gate is often arranged between an internal network and an external network of a hospital and an information manufacturer, and when the network gate is closed, data of the internal network and the external network cannot be transmitted. Whether the network strategy is unidirectional or the gatekeeper, the data transmission of internal and external networks of hospitals and information manufacturers is limited to a certain extent.
Disclosure of Invention
An object of the embodiments of the present application is to provide a data transmission method, an apparatus, an electronic device, and a storage medium, so as to solve the technical problem that data transmission of an intranet and an extranet of a hospital and an information manufacturer is limited under an above one-way network policy.
In a first aspect, an embodiment of the present application provides a data transmission method, which is applied to a server, and the method includes: receiving intranet data sent by an intranet-connected terminal; storing the intranet data by using an intranet temporary storage module; monitoring whether the data transmission network is stable; if the data transmission network is stable, sending intranet data to the extranet temporary storage module, and storing the intranet data by using the extranet temporary storage module; the intranet data in the extranet temporary storage module can be downloaded by a terminal connected with an extranet. In the implementation process, the data in the internal network temporary storage module is transmitted to the external network temporary storage module to be stored for standby when the network is stable, and even if the network is unstable or the network gate is closed, the data in the internal network is transmitted to the external network temporary storage module to be downloaded and used by the terminal of the external network when the network is stable, so that the influence on data transmission due to the instability of the network and the closing of the network gate can be reduced.
Optionally, in this embodiment of the application, before sending the intranet data to the extranet temporary storage module, the method further includes: cutting the intranet data according to the preset maximum file size to obtain a plurality of data slices of the intranet data; send intranet data to outer net module of keeping in, include: sending data slices of the intranet data to an intranet temporary storage module, and carrying out integrity check on the data slices of each intranet data; and recombining the plurality of data slices of the intranet data to obtain the intranet data. In the implementation process, it can be understood that, in practical applications, there is a certain limit to the size of data to be transmitted, and if the data is large, entry transmission cannot be performed, so that data exceeding the maximum file size can be sliced and transmitted before data transmission, so as to ensure that data transmission failure due to the data being too large cannot occur.
Optionally, in this embodiment of the present application, the integrity checking on the data slice of each intranet data includes: and if the data slice of the intranet data is incomplete, retransmitting the data slice. In the implementation process, all data slices can be completely transmitted through integrity check and retransmission, and the condition that the transmission of the data slices is incomplete and the recombined data is incomplete is avoided.
Optionally, in an embodiment of the present application, the method further includes: and if the data transmission network is stable, pulling the extranet data in the extranet temporary storage module, and uploading the extranet data by a terminal connected with the extranet. In the implementation process, it can be understood that the extranet data is uploaded to the extranet temporary storage module by the terminal connected to the extranet, but the extranet data in the extranet temporary storage module cannot be actively pushed to the intranet due to the unidirectional network policy. Therefore, the mode that the intranet actively pulls the extranet data in the extranet temporary storage module can be adopted when the network is stable, and the extranet data are stored in the intranet temporary storage module to be downloaded and used by the intranet, so that the influence of a unidirectional network strategy on data transmission is avoided.
Optionally, in an embodiment of the present application, wherein the extranet data includes a plurality of data slices of the extranet data; pull extranet data in extranet temporary storage module, include: and pulling the data slice of the extranet data in the extranet temporary storage module, and carrying out integrity check and recombination on the data slice of the extranet data to obtain the extranet data. In the implementation process, considering that the data size may be limited in the data transmission process, if the data is large, entry transmission cannot be performed, and therefore the data exceeding the maximum file size can be sliced and then pulled before the data is pulled, so that the data pulling failure caused by the data being too large can be avoided.
Optionally, in this embodiment of the present application, the intranet temporary storage module includes a plurality of intranet temporary storage units, and the plurality of intranet temporary storage units correspond to terminals connected to an external network; the method further comprises the following steps: receiving intranet data sent by an intranet-connected terminal includes: acquiring a target intranet temporary storage unit in an intranet temporary storage module; sending intranet data to a target intranet temporary storage unit; use intranet module of keeping in storage to intranet data includes: storing intranet data by using a target intranet temporary storage unit; send the intranet data to outer net module of keeping in to use outer net module of keeping in to save the intranet data, include: matching a target outer network temporary storage module corresponding to the target inner network temporary storage unit, wherein the target outer network temporary storage module is selected from one of a plurality of outer network temporary storage modules; and sending the intranet data to the target extranet temporary storage module, and storing the intranet data by using the target extranet temporary storage module. In the above-mentioned realization process, probably including the terminal with a plurality of connection extranets, consequently can be divided into a plurality of and be connected the intranet temporary storage unit that the extranet corresponds with intranet temporary storage module, at data transmission in-process, with intranet data according to the terminal of being connected with the extranet respectively save with different intranet temporary storage units, thereby different temporary storage units can only send intranet data to the extranet temporary storage module that corresponds thereby increased data transmission's flexibility, accuracy and security.
Optionally, in an embodiment of the present application, the pulling the extranet data in the extranet temporary storage module includes: pulling the extranet data in the target pull temporary storage module, wherein the target pull temporary storage module is selected from one of the extranet temporary storage modules; and matching the corresponding intranet temporary storage unit according to the pulled extranet temporary storage module and storing extranet data pulled in the target pulled temporary storage module into the intranet temporary storage unit. In the above-mentioned implementation process, when pulling extranet data, because the intranet temporary storage unit of intranet temporary storage module can only pull the extranet data in the corresponding extranet temporary storage module, consequently need pull the target and get temporary storage module and intranet temporary storage unit and match, can increase the accuracy that data were pulled and the security of data transmission through above-mentioned mode.
In a second aspect, an embodiment of the present application further provides a data transmission device, where the device includes: the system comprises a data receiving module, an internal network temporary storage module, a network monitoring module and an external network temporary storage module; the data receiving module is used for receiving intranet data sent by a terminal connected with an intranet; the network monitoring module is used for monitoring whether the data transmission network is stable; the internal network temporary storage module is used for sending internal network data to the external network temporary storage module when the data transmission network is stable; the outer network temporary storage module is used for storing the inner network data sent by the inner network temporary storage module; the intranet data in the extranet temporary storage module can be downloaded by a terminal connected with an extranet.
Optionally, in an embodiment of the present application, the apparatus further includes: the data cutting module is used for cutting the intranet data according to the preset maximum file size to obtain a plurality of data slices of the intranet data; the intranet temporary storage module is specifically used for sending data slices of intranet data to the extranet temporary storage module and carrying out integrity verification on the data slices of each intranet data; intranet module of keeping in. And the method is also used for recombining a plurality of data slices of the intranet data to obtain the intranet data.
Optionally, in this embodiment of the application, if the data slice of the intranet data is incomplete, the intranet temporary storage module retransmits the data slice.
Optionally, in this embodiment of the application, if the data transmission network is stable, the intranet temporary storage module pulls the extranet data in the extranet temporary storage module, and the extranet data is uploaded by the terminal connected to the extranet.
Optionally, in an embodiment of the present application, wherein the extranet data includes a plurality of data slices of the extranet data; the intranet temporary storage module is specifically used for pulling data slices of the extranet data in the extranet temporary storage module, and integrity verification and recombination are carried out on the data slices of the extranet data to obtain the extranet data.
Optionally, in this embodiment of the present application, the intranet temporary storage module includes a plurality of intranet temporary storage units, and the plurality of intranet temporary storage units correspond to terminals connected to an external network; the device comprises: the external network temporary storage modules correspond to terminals connected with an external network; the data receiving module is specifically configured to receive intranet data sent by an intranet-connected terminal, and includes: acquiring a target intranet temporary storage unit in an intranet temporary storage module; the intranet temporary storage module is also used for storing intranet data by using a target intranet temporary storage unit; the internal network temporary storage module is also used for matching a target external network temporary storage module corresponding to the target internal network temporary storage unit, wherein the target external network temporary storage module is selected from one of the plurality of external network temporary storage modules; and sending the intranet data to the target extranet temporary storage module, and storing the intranet data by using the target extranet temporary storage module.
Optionally, in this embodiment of the application, the intranet temporary storage module is further configured to pull extranet data in the extranet temporary storage module, including: pulling the extranet data in the target pull temporary storage module, wherein the target pull temporary storage module is selected from one of the extranet temporary storage modules; and matching the corresponding intranet temporary storage unit according to the pulled extranet temporary storage module and storing extranet data pulled in the target pulled temporary storage module into the intranet temporary storage unit.
In a third aspect, an embodiment of the present application further provides an electronic device, including: a processor and a memory, the memory storing processor-executable machine-readable instructions, which when executed by the processor perform the method as described in the first aspect.
In a fourth aspect, the present application further provides a computer-readable storage medium, on which a computer program is stored, where the computer program is executed by a processor to perform the method described in the first aspect.
Through the data transmission method that this application provided, can be when the network is stable with data transmission in the intranet module of keeping in to extranet module of keeping in order to provide the terminal of connecting the extranet and download the use, and pull the data in the extranet module of keeping in to the intranet module of keeping in order to provide the terminal entry download use of connecting the intranet, like this, even the network is unstable or the gatekeeper is closed, because data in the intranet has been transmitted to extranet module of keeping in and intranet module of keeping in when the network is stable, consequently can reduce because the influence to data transmission is closed to network instability and gatekeeper.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are required to be used in the embodiments of the present application will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered as limiting the scope, and that those skilled in the art can also obtain other related drawings based on the drawings without inventive efforts.
Fig. 1 is a schematic terminal interaction diagram of a data transmission method according to an embodiment of the present application;
fig. 2 is a schematic flowchart of a data transmission method according to an embodiment of the present application;
fig. 3 is a schematic diagram of a first terminal interaction provided in the embodiment of the present application;
fig. 4 is a schematic diagram of a second terminal interaction provided in the embodiment of the present application;
fig. 5 is a schematic structural diagram of a data transmission device according to an embodiment of the present application; and
fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be described below with reference to the drawings in the embodiments of the present application. It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures.
The terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, 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, article, 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, article, or apparatus that comprises the element.
The terms "first," "second," and the like, are used solely to distinguish one entity or action from another entity or action without necessarily being construed as indicating or implying any actual such relationship or order between such entities or actions.
It should be noted that the data transmission method provided in the embodiments of the present application may be executed by an electronic device, where the electronic device refers to a device terminal or a server having a function of executing a computer program, and the device terminal includes, for example: personal Computers (PCs), tablet computers, Personal Digital Assistants (PDAs), Mobile Internet Devices (MIDs), network switches or network routers, etc.
Before introducing the data transmission method provided in the embodiment of the present application, an application scenario applicable to the data transmission method is introduced, where the application scenario includes, but is not limited to: in the data transmission process of the internal network and the external network of the hospital system, as the unidirectional network strategy is adopted and the network gate is arranged between the internal network and the external network, the data transmission of the internal network and the external network can only be transmitted in a unidirectional way and is limited by the influence of the network gate. Therefore, the data transmission method can be used for transmitting the data in the internal network temporary storage module to the external network temporary storage module to provide downloading use for the terminal connected with the external network when the network is stable, and pulling the data in the external network temporary storage module to the internal network temporary storage module to provide entry downloading use for the terminal connected with the internal network, so that even if the network is unstable or the network gate is closed, the data in the internal network is transmitted to the external network temporary storage module and the internal network temporary storage module when the network is stable, and the influence of the network instability and the network gate closing on the data transmission can be reduced. Referring to fig. 1, fig. 1 is a schematic diagram of terminal interaction of a data transmission method according to an embodiment of the present application; the terminal of connecting the intranet in figure 1 can carry out data interaction (send intranet data or download extranet data) to intranet temporary storage module, and intranet temporary storage module can send the data of sending internally or pull extranet data to extranet temporary storage module, and the terminal of connecting the extranet can carry out data interaction (send extranet data or download extranet data) with extranet temporary storage module.
Referring to fig. 2, fig. 2 is a schematic flow chart of a data transmission method according to an embodiment of the present application, where the data transmission method includes:
step S100: and receiving intranet data sent by the terminal connected with the intranet.
Step S200: and storing the intranet data by using an intranet temporary storage module.
Step S300: monitoring whether the data transmission network is stable.
It should be noted that, in the above step S300, in a preferred embodiment, the monitoring whether the data transmission network is stable by using the scheduler includes: monitoring whether the gatekeeper is opened and/or whether the network state of the data transmission network can meet the data transmission requirement.
If the data transmission network is stable, step S400 is executed: and sending the intranet data to the extranet temporary storage module, and storing the intranet data by using the extranet temporary storage module.
It should be noted that, in the step S400, the intranet data in the extranet temporary storage module may be downloaded by the terminal connected to the extranet.
In the implementation process, the data in the internal network temporary storage module is transmitted to the external network temporary storage module to be stored for standby when the network is stable, and even if the network is unstable or the network gate is closed, the data in the internal network is transmitted to the external network temporary storage module to be downloaded and used by the terminal of the external network when the network is stable, so that the influence on data transmission due to the instability of the network and the closing of the network gate can be reduced.
In some optional embodiments, before sending the intranet data to the extranet temporary storage module, the method further includes: cutting the intranet data according to the preset maximum file size to obtain a plurality of data slices of the intranet data; send intranet data to outer net module of keeping in, include: sending data slices of the intranet data to an intranet temporary storage module, and carrying out integrity check on the data slices of each intranet data; and recombining the plurality of data slices of the intranet data to obtain the intranet data.
It can be understood that, in practical applications, there is a limit to the size of data to be transmitted, and if the data is large, the data cannot be transmitted in advance, so that the data exceeding the maximum file size can be transmitted after being sliced before the data is transmitted. Specifically, for example, the maximum file allowed by data transmission is 30M, but in the specific transmission, the size of one data is 50M, and if the data is directly transmitted, the data transmission will fail, so that before data transmission, the data entry can be cut, and two data slices divided into 30M and 20M are transmitted, thereby ensuring that data transmission failure cannot be caused by too large data.
In some optional embodiments, performing integrity check on the data slice of each intranet data includes: and if the data slice of the intranet data is incomplete, retransmitting the data slice.
Specifically, in the implementation process, integrity check is performed on all successfully transmitted intranet data to ensure the integrity of the transmitted data slice, and the condition that the transmission of the data slice is incomplete and the recombined data is incomplete is avoided. In a preferred embodiment, sha1 verification may be performed on the intranet data.
In some optional embodiments, the intranet data slice may be encrypted before being encrypted to increase the security of the data.
In some optional embodiments, the method further comprises: and if the data transmission network is stable, pulling the extranet data in the extranet temporary storage module, and uploading the extranet data by a terminal connected with the extranet.
In the implementation process, it can be understood that the extranet data is uploaded to the extranet temporary storage module by the terminal connected to the extranet, but the extranet data in the extranet temporary storage module cannot be actively pushed to the intranet due to the unidirectional network policy. Therefore, the mode that the intranet actively pulls the extranet data in the extranet temporary storage module can be adopted when the network is stable, the extranet data are stored in the intranet temporary storage module, the influence of a unidirectional network strategy on data transmission is avoided, meanwhile, the extranet data are stored in the intranet temporary storage module to be downloaded and used by a terminal connected with the intranet, and the influence caused by closing of a network gate or instability of the network can be reduced.
In some optional embodiments, optionally, in an embodiment of the present application, the intranet temporary storage module includes a plurality of intranet temporary storage units, and the plurality of intranet temporary storage units correspond to terminals connected to the extranet; receiving intranet data sent by an intranet-connected terminal includes: acquiring a target intranet temporary storage unit in an intranet temporary storage module; sending intranet data to a target intranet temporary storage unit; use intranet module of keeping in storage to intranet data includes: storing intranet data by using a target intranet temporary storage unit; send the intranet data to outer net module of keeping in to use outer net module of keeping in to save the intranet data, include: matching a target outer network temporary storage module corresponding to the target inner network temporary storage unit, wherein the target outer network temporary storage module is selected from one of a plurality of outer network temporary storage modules; and sending the intranet data to the target extranet temporary storage module, and storing the intranet data by using the target extranet temporary storage module.
In the above-mentioned realization process, probably including the terminal with a plurality of connection extranets, consequently can be divided into a plurality of and be connected the intranet temporary storage unit that the extranet corresponds with intranet temporary storage module, at data transmission in-process, with intranet data according to the terminal of being connected with the extranet respectively save with different intranet temporary storage units, thereby different temporary storage units can only send intranet data to the extranet temporary storage module that corresponds thereby increased data transmission's flexibility, accuracy and security.
In some optional embodiments, wherein pulling the extranet data in the extranet staging module includes: pulling the extranet data in the target pull temporary storage module, wherein the target pull temporary storage module is selected from one of the extranet temporary storage modules; and matching the corresponding intranet temporary storage unit according to the pulled extranet temporary storage module and storing extranet data pulled in the target pulled temporary storage module into the intranet temporary storage unit.
In the above-mentioned implementation process, when pulling extranet data, because the intranet temporary storage unit of intranet temporary storage module can only pull the extranet data in the corresponding extranet temporary storage module, consequently need pull the target and get temporary storage module and intranet temporary storage module and match, can increase the accuracy that data were pulled and the security of data transmission through above-mentioned mode.
In a preferred embodiment, the extranet temporary storage module may be divided into different extranet temporary storage units according to different intranet-connected terminals, and when the extranet data is uploaded by an extranet-connected terminal, the intranet-connected terminal corresponding to the extranet data is first obtained, and then the extranet data uploaded by the extranet-connected terminal according to the intranet-connected terminal is stored in the corresponding extranet temporary storage unit.
In the above implementation process, it can be understood that each terminal device connected to the intranet corresponds to a different intranet temporary storage module, and the data of each extranet temporary storage unit can only be pulled by the corresponding intranet temporary storage module, so that the security and flexibility of the data in the data pulling process can be increased.
For ease of understanding, the implementation of the above method is described below with hospital and pharmaceutical manufacturer data transmission as an example. In hospital data transmission, terminals of all hospitals are used as terminals for connecting an internal network, and terminals of pharmaceutical manufacturers are used as terminals for connecting an external network. In the present example, each hospital has a cooperation relationship with each pharmaceutical manufacturer (i.e., data interaction is required), and it can be understood that, due to the difference of cooperation contents, the confidential terms and the data that can be provided by the hospital for different manufacturers are not completely the same, so that the data transmission can be performed by using the above method for accurately transmitting data.
Referring to fig. 3, fig. 3 is a schematic diagram of a first terminal interaction provided in the embodiment of the present application, which is exemplarily illustrated by interactions between a hospital and a pharmaceutical manufacturer; how to transmit the intranet data to the extranet temporary storage module is described by taking an example of how the hospital a transmits the intranet data to the factory a. In this example, hospital a can only transmit a-type data for factory a, B-type data for factory B, and C-type data for factory C; therefore, the intranet temporary storage module corresponding to the hospital A is divided into a plurality of intranet temporary storage units, for example, the intranet temporary storage unit A, the intranet temporary storage unit B and the intranet temporary storage unit C. The intranet temporary storage unit A only stores the type A data (namely corresponding to the terminal of the plant A), the intranet temporary storage unit B only stores the type B data (namely corresponding to the terminal of the plant B), and the intranet temporary storage unit C only stores the type C data (namely corresponding to the terminal of the plant C). Meanwhile, the outer net temporary storage module corresponding to the plant A is the outer net temporary storage module A, the outer net temporary storage module corresponding to the plant B is the outer net temporary storage module B, and the outer net temporary storage module corresponding to the plant C is the outer net temporary storage module C. Therefore, in the specific data transmission, firstly, a target intranet temporary storage unit in the intranet temporary storage module is obtained, and the specific obtaining method includes that an intranet terminal selects a terminal connected with an extranet, specifically, for example, a terminal of a factory a, and the target intranet temporary storage unit is determined according to the terminal connected with the extranet, in this example, if the terminal connected with the extranet is the terminal of the factory a, the target intranet temporary storage unit is the intranet temporary storage unit a; or, the target temporary storage unit may be determined according to the received intranet data, specifically, for example, if the received intranet data is a type a data, the corresponding target temporary storage unit may be determined to be the intranet temporary storage unit a. After the intranet temporary storage unit A receives the intranet data, the intranet data is stored and whether a data transmission network is stable or not is monitored, if a network gate is in an open state, and the network state meets the data transmission requirement, the data stored in the intranet temporary storage unit A is transmitted to the extranet temporary storage module A.
Please refer to fig. 3, how to pull the data of the extranet in the temporary network storage module is taken as an example. And the outer net temporary storage modules corresponding to the plant A, the plant B and the plant C are respectively an outer net temporary storage module A, an outer net temporary storage module B and an outer net temporary storage module C. The intranet module A that keeps in that hospital A corresponds is divided into intranet unit A, intranet unit B and the intranet unit C that keeps in, and wherein, intranet unit A, intranet unit B and the intranet unit C that keeps in are used for saving extranet module A, extranet module B and the extranet data in the extranet module C that keeps in respectively. In the specific external data pulling process, firstly, pulling data in all external network temporary storage modules, namely pulling external network data in an external network temporary storage module A, an external network temporary storage module B and an external network temporary storage module C in the example; and then, the external network temporary storage module of the external network data source is matched with the corresponding internal network temporary storage unit to store the external network data. That is, if the extranet data comes from the extranet temporary storage module a, the extranet data is stored in the intranet temporary storage unit a; similarly, if the external network data comes from the external network temporary storage module B, the external network data is stored in the internal network temporary storage unit B; if the outer network data come from the outer network temporary storage module C, the outer network data are stored in the inner network temporary storage unit C.
For the situation that the external network temporary storage module is divided into a plurality of external network temporary storage units for pulling, please refer to fig. 4, where fig. 4 is a schematic diagram of a second terminal interaction provided in the embodiment of the present application, and the interaction between a hospital and a pharmaceutical manufacturer is still exemplarily explained; taking a plant A as an example, an outer net temporary storage module of the plant A is divided into an outer net temporary storage unit A, an outer net temporary storage unit B and an outer net temporary storage unit C, wherein the outer net temporary storage unit A, the outer net temporary storage unit B and the outer net temporary storage unit C respectively correspond to an inner net temporary storage module A (hospital A), an inner net temporary storage module B (hospital B) and an inner net temporary storage module C (hospital C); the intranet temporary storage module A can only pull the extranet data in the extranet temporary storage unit A, the intranet temporary storage module B can only pull the extranet data in the extranet temporary storage unit B, and the intranet temporary storage module B can only pull the extranet data in the extranet temporary storage unit B.
It should be noted that, can both divide into a plurality of intranet temporary storage units to intranet temporary storage module in practical application, divide into a plurality of outer net temporary storage units to outer net temporary storage module again to each intranet temporary storage unit of each intranet temporary storage module corresponds with each outer net temporary storage unit of each outer net temporary storage module, forms many-to-many's relation, after forming many-to-many's relation, its mode of drawing outer net data and sending intranet data is similar with the aforesaid, no longer gives details here.
In some optional embodiments, before sending the intranet data to the extranet temporary storage module and pulling the extranet data to the extranet temporary storage module, a compliance policy between an intranet-connected terminal and an extranet-connected terminal that receive the intranet data and pull the extranet data needs to be determined.
Specifically, taking a terminal connected to an intranet as a hospital and a terminal connected to an extranet as a pharmaceutical manufacturer as an example, the compliance policy refers to the type of data that can be interacted between the hospital and the pharmaceutical manufacturer, for example, the compliance policy specifies that the hospital can only send clinical data of a medicine to the pharmaceutical manufacturer, and only when the intranet data is the clinical data of the medicine, the intranet data can be sent to the extranet temporary storage module.
Referring to fig. 5, fig. 5 is a schematic structural diagram of a data transmission device according to an embodiment of the present application, where the data transmission device 300 includes: the system comprises a data receiving module 001, an internal network temporary storage module 002, a network monitoring module 003 and an external network temporary storage module 004; the data receiving module 001 is used for receiving intranet data sent by a terminal connected with an intranet; the network monitoring module 003 is used for monitoring whether the data transmission network is stable; the internal network temporary storage module 002 is used for sending internal network data to the external network temporary storage module 004 when the data transmission network is stable; the outer network temporary storage module 004 is used for storing the inner network data sent by the inner network temporary storage module 002; the intranet data in the extranet temporary storage module 004 can be downloaded by the terminal connected with the extranet.
In some optional embodiments, the apparatus further comprises: the data cutting module is used for cutting the intranet data according to the preset maximum file size to obtain a plurality of data slices of the intranet data; the intranet temporary storage module 002 is specifically configured to send data slices of intranet data to the extranet temporary storage module 004, and perform integrity check on each data slice of the intranet data; intranet temporary storage module 002. And the method is also used for recombining a plurality of data slices of the intranet data to obtain the intranet data.
In some alternative embodiments, if the data slice of the intranet data is not complete, the intranet temporary storage module 002 retransmits the data slice.
In some optional embodiments, if the data transmission network is stable, the internal network temporary storage module 002 pulls the external network data in the external network temporary storage module 004, and the external network data is uploaded by the terminal connected to the external network.
In some optional embodiments, the external network data includes a plurality of data slices of the external network data, and the internal network temporary storage module 002 is specifically configured to pull the data slice of the external network data in the external network temporary storage module 004, and perform integrity check and reassembly on the data slice of the external network data to obtain the external network data.
In some optional embodiments, the intranet temporary storage module 002 in the embodiment of the present application includes a plurality of intranet temporary storage units, and the plurality of intranet temporary storage units correspond to terminals connected to an extranet; the device comprises: the device still includes: a plurality of external network temporary storage modules 004 and the plurality of external network temporary storage modules 004 correspond to terminals connected with external networks; the data receiving module 001 is specifically configured to receive intranet data sent by a terminal connected to an intranet, and includes: acquiring a target intranet temporary storage unit in the intranet temporary storage module 002; the intranet temporary storage module 002 is further configured to store intranet data by using a target intranet temporary storage unit; the internal network temporary storage module 002 is further configured to match a target external network temporary storage module 004 corresponding to the target internal network temporary storage unit, wherein the target external network temporary storage module 004 is selected from one of the plurality of external network temporary storage modules 004; and sending the intranet data to the target extranet temporary storage module 004, and storing the intranet data by using the target extranet temporary storage module 004.
In some optional embodiments, the internal network staging module 002 is further configured to pull the external network data from the external network staging module 004, including: pulling the extranet data in the target pull temporary storage module, wherein the target pull temporary storage module is selected from one of the extranet temporary storage modules 004; and matching the corresponding intranet temporary storage unit according to the pull extranet temporary storage module 004 and storing extranet data pulled in the target pull temporary storage module into the intranet temporary storage unit.
The data transmission device provided in the embodiment of the present application, the implementation principle and the generated technical effects thereof have been introduced in the foregoing method embodiments, and for the sake of brief description, no mention is made in the device embodiments, and reference may be made to the corresponding contents in the method embodiments.
Fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present application. Referring to fig. 6, the electronic apparatus 4 includes: a processor 401, a memory 402, which are interconnected and in communication with each other via a communication bus 403 and/or other form of connection mechanism (not shown).
The Memory 402 includes one or more (Only one is shown in the figure), which may be, but not limited to, a Random Access Memory (RAM), a Read Only Memory (ROM), a Programmable Read Only Memory (PROM), an Erasable Programmable Read Only Memory (EPROM), an Electrically Erasable Programmable Read Only Memory (EEPROM), and the like. The processor 401, and possibly other components, may access, read and/or write data to the memory 402.
The processor 401 includes one or more (only one shown) which may be an integrated circuit chip having signal processing capabilities. The Processor 401 may be a general-purpose Processor, and includes a Central Processing Unit (CPU), a Micro Control Unit (MCU), a Network Processor (NP), or other conventional processors; the Processor may also be a dedicated Processor, including a Neural-Network Processing Unit (NPU), a Graphics Processing Unit (GPU), a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, a discrete Gate or transistor logic device, and a discrete hardware component. Also, when there are a plurality of processors 401, some of them may be general-purpose processors, and the other may be special-purpose processors.
One or more computer program instructions may be stored in the memory 402 and downloaded and executed by the processor 401 to implement the data transmission method provided by the embodiments of the present application.
It will be appreciated that the configuration shown in fig. 6 is merely illustrative and that the electronic device 4 may also include more or fewer components than shown in fig. 6, or have a different configuration than shown in fig. 6. The components shown in fig. 6 may be implemented in hardware, software, or a combination thereof. The electronic device 4 may be a physical device, such as a PC, a notebook, a tablet, a mobile phone, a server, an embedded device, etc., or may be a virtual device, such as a virtual machine, a virtualized container, etc. The electronic device 4 is not limited to a single device, and may be a combination of a plurality of devices or a cluster including a large number of devices.
The embodiment of the present application further provides a computer-readable storage medium, where computer program instructions are stored on the computer-readable storage medium, and when the computer program instructions are downloaded and executed by a processor of a computer, the data transmission method provided in the embodiment of the present application is executed. The computer-readable storage medium may be embodied as, for example, memory 402 in electronic device 4 in fig. 6.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and system may be implemented in other ways. The above-described system embodiments are merely illustrative, and for example, the division of the units is only one logical functional division, and there may be other divisions in actual implementation, and for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of devices or units through some communication interfaces, and may be in an electrical, mechanical or other form.
In addition, units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
Furthermore, the functional modules in the embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
The above description is only an example of the present application and is not intended to limit the scope of the present application, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present application shall be included in the protection scope of the present application.

Claims (10)

1. A data transmission method, applied to a server, the method comprising:
receiving intranet data sent by an intranet-connected terminal;
storing the intranet data by using an intranet temporary storage module;
monitoring whether the data transmission network is stable; and
if the data transmission network is stable, the intranet data is sent to an extranet temporary storage module, and the extranet temporary storage module is used for storing the intranet data;
the intranet data in the extranet temporary storage module can be downloaded by a terminal connected with an extranet.
2. The method according to claim 1, further comprising, before sending the intranet data to an extranet staging module:
cutting the intranet data according to a preset maximum file size to obtain a plurality of data slices of the intranet data;
the module of keeping in to outer net sends intranet data includes:
sending the data slices of the intranet data to an extranet temporary storage module, and carrying out integrity verification on each data slice of the intranet data; and
and recombining the plurality of data slices of the intranet data to obtain the intranet data.
3. The method according to claim 2, wherein the integrity checking of the data slice of each intranet data comprises:
and if the data slice of the intranet data is incomplete, retransmitting the data slice.
4. The method of claim 1, further comprising:
and if the data transmission network is stable, pulling the extranet data in the extranet temporary storage module, wherein the extranet data is uploaded by a terminal connected with the extranet.
5. The method of claim 4, wherein the extranet data comprises a plurality of data slices of the extranet data; the pulling of the extranet data in the extranet temporary storage module comprises the following steps:
and pulling the data slice of the extranet data in the extranet temporary storage module, and carrying out integrity check and recombination on the data slice of the extranet data to obtain the extranet data.
6. The method according to any one of claims 4 to 5, wherein the intranet temporary storage module comprises a plurality of intranet temporary storage units corresponding to terminals connected to an external network;
the receiving of the intranet data sent by the terminal connected with the intranet comprises: acquiring a target intranet temporary storage unit in the intranet temporary storage module; sending the intranet data to the target intranet temporary storage unit;
use the intranet module of keeping in is right the intranet data saves, include: storing the intranet data by using the target intranet temporary storage unit;
to outer net module of keeping in send intranet data to use outer net module of keeping in to save intranet data, include:
matching a target outer network temporary storage module corresponding to the target inner network temporary storage unit, wherein the target outer network temporary storage module is selected from one of a plurality of outer network temporary storage modules;
and sending intranet data to the target extranet temporary storage module, and storing the intranet data by using the target extranet temporary storage module.
7. The method of claim 6, wherein the pulling extranet data in the extranet staging module comprises:
pulling the extranet data in a target pull temporary storage module, wherein the target pull temporary storage module is selected from one of a plurality of extranet temporary storage modules;
and matching the corresponding intranet temporary storage unit according to the pulled extranet temporary storage module and storing extranet data pulled in the target pulled temporary storage module into the intranet temporary storage unit.
8. A data transmission apparatus, characterized in that the apparatus comprises: the system comprises a data receiving module, an internal network temporary storage module, a network monitoring module and an external network temporary storage module;
the data receiving module is used for receiving intranet data sent by an intranet-connected terminal;
the network monitoring module is used for monitoring whether the data transmission network is stable;
the intranet temporary storage module is used for sending the intranet data to the extranet temporary storage module when the data transmission network is stable; and
the outer network temporary storage module is used for storing the inner network data sent by the inner network temporary storage module; the intranet data in the extranet temporary storage module can be downloaded by a terminal connected with an extranet.
9. An electronic device, comprising: a processor and a memory, the memory storing machine-readable instructions executable by the processor, the machine-readable instructions, when executed by the processor, performing the method of any of claims 1 to 7.
10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 1 to 7.
CN202210067112.3A 2022-01-20 2022-01-20 Data transmission method and device, electronic equipment and storage medium Pending CN114422247A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210067112.3A CN114422247A (en) 2022-01-20 2022-01-20 Data transmission method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210067112.3A CN114422247A (en) 2022-01-20 2022-01-20 Data transmission method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN114422247A true CN114422247A (en) 2022-04-29

Family

ID=81276238

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210067112.3A Pending CN114422247A (en) 2022-01-20 2022-01-20 Data transmission method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114422247A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103384270A (en) * 2013-06-28 2013-11-06 环境保护部华南环境科学研究所 Method and system for data backup of internal and external network penetrating remote data transmission
CN103701897A (en) * 2013-12-18 2014-04-02 兴天通讯技术(天津)有限公司 Server, terminal and file transmission method
US20210157743A1 (en) * 2019-11-26 2021-05-27 Oracle International Corporation Multi-state midtier dynamic cache replacement
CN113315846A (en) * 2021-07-29 2021-08-27 武汉中科通达高新技术股份有限公司 Data transmission method and device
CN113422837A (en) * 2021-07-02 2021-09-21 广东电网有限责任公司 Cross-network data transmission device, method, terminal and readable storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103384270A (en) * 2013-06-28 2013-11-06 环境保护部华南环境科学研究所 Method and system for data backup of internal and external network penetrating remote data transmission
CN103701897A (en) * 2013-12-18 2014-04-02 兴天通讯技术(天津)有限公司 Server, terminal and file transmission method
US20210157743A1 (en) * 2019-11-26 2021-05-27 Oracle International Corporation Multi-state midtier dynamic cache replacement
CN113422837A (en) * 2021-07-02 2021-09-21 广东电网有限责任公司 Cross-network data transmission device, method, terminal and readable storage medium
CN113315846A (en) * 2021-07-29 2021-08-27 武汉中科通达高新技术股份有限公司 Data transmission method and device

Similar Documents

Publication Publication Date Title
US20070260750A1 (en) Adaptable data connector
CN108566290B (en) Service configuration management method, system, storage medium and server
CN108196961B (en) Asynchronous message processing method, terminal, system and storage medium
CN112867988A (en) Implementing compliance settings by a mobile device to follow a configuration scenario
US10999224B1 (en) Method and apparatus for parsing an electronic message and constructing multiple differently prioritized messages therefrom
US20220237295A1 (en) Remote Attestation Method and Device for Composite Device
CN110222107B (en) Data transmission method and related equipment
CN109495492B (en) Communication system for intelligent water business industry
US10075477B2 (en) Method, system and server for self-healing of electronic apparatus
CN114172829B (en) Server health monitoring method and system and computing equipment
CN108900627B (en) Network request method, terminal device and storage medium
WO2017124736A1 (en) Method, device and system for transmitting upgrade abnormality information
CN113691511B (en) Service request processing method and device, equipment and medium thereof
EP3805960B1 (en) Methods and systems for identifying software product installation instances
CN112380183B (en) Method and device for synchronizing distributed files, computer equipment and storage medium
CN114422247A (en) Data transmission method and device, electronic equipment and storage medium
WO2018042313A2 (en) Techniques for implementing universal commands in a welding or cutting system
EP3041187B1 (en) Method and mobile device for communicating information between a mobile device and an enterprise system
US20180059640A1 (en) Techniques for event driven scheduling in a welding or cutting system
US11665255B2 (en) Data push method, data push system, and computer-program product
CN110278248B (en) Method and device for distributing testament information and computer readable storage medium
CN111586135A (en) Cloud deployment micro-service application system and data transmission method, device and equipment thereof
CN112669480A (en) Data processing method and device, terminal equipment and storage medium
CN112799608B (en) Blood glucose data storage method and system and electronic equipment
US20230319559A1 (en) Enrollment of enrollee devices to a wireless network

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