CN112187759A - Cross-network data transmission method and device - Google Patents

Cross-network data transmission method and device Download PDF

Info

Publication number
CN112187759A
CN112187759A CN202010997369.XA CN202010997369A CN112187759A CN 112187759 A CN112187759 A CN 112187759A CN 202010997369 A CN202010997369 A CN 202010997369A CN 112187759 A CN112187759 A CN 112187759A
Authority
CN
China
Prior art keywords
network
data
storage space
instruction
transmitted
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
CN202010997369.XA
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.)
Zhejiang eCommerce Bank Co Ltd
Original Assignee
Zhejiang eCommerce Bank 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 Zhejiang eCommerce Bank Co Ltd filed Critical Zhejiang eCommerce Bank Co Ltd
Priority to CN202010997369.XA priority Critical patent/CN112187759A/en
Publication of CN112187759A publication Critical patent/CN112187759A/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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/382Information transfer, e.g. on bus using universal interface adapter
    • G06F13/385Information transfer, e.g. on bus using universal interface adapter for adaptation of a particular data processing system to different peripheral devices
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/148Migration or transfer of sessions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/568Storing data temporarily at an intermediate stage, e.g. caching
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2213/00Indexing scheme relating to interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F2213/0042Universal serial bus [USB]

Abstract

An embodiment of the present specification provides a method and an apparatus for cross-network data transmission, wherein the method for cross-network data transmission includes: acquiring data to be transmitted in a first network; writing the data to be transmitted into a storage space configured by the intermediate module, and writing a data instruction after the data to be transmitted is written; triggering a switch instruction for the memory space if the data instruction is written to the memory space; and switching the storage space from the connection with the first network to the connection with a second network based on the switching instruction so as to read the data to be transmitted from the storage space in the second network.

Description

Cross-network data transmission method and device
Technical Field
The present invention relates to the field of data transmission technologies, and in particular, to a method and an apparatus for cross-network data transmission.
Background
With the increasing popularization of network office, various enterprises and public institutions enjoy the convenience brought by the network office, meanwhile, the safety problem of data in the transmission process is widely concerned, in order to improve the management of the data, some enterprises and public institutions have two networks, namely an internal network and an external network, a large amount of data are stored in the external network through operation and need to be transmitted to the internal network for processing, the internal network also needs to transmit the data to the external network, but the internal network and the external network cannot be completely isolated in the physical aspect when transmitting the data.
Disclosure of Invention
One or more embodiments of the present specification provide a method of cross-network data transmission. The cross-network data transmission method comprises the following steps: data to be transmitted in a first network is obtained. And writing the data to be transmitted into a storage space configured by the intermediate module, and writing a data instruction after the data to be transmitted is written. Triggering a switch instruction for the memory space if the data instruction is written to the memory space. And switching the storage space from the connection with the first network to the connection with a second network based on the switching instruction so as to read the data to be transmitted from the storage space in the second network.
One or more embodiments of the present specification provide another cross-network data transmission method, including: a switch instruction to switch the storage space configured by the intermediate module from connection with the first network to connection with the second network is monitored. And if the switching instruction is not triggered and a data instruction exists in the storage space, triggering the switching instruction. Switching the storage space from being connected with the first network to being connected with the second network based on the switching instruction. Reading the data to be transmitted written from the first network from the storage space.
One or more embodiments of the present specification provide an inter-network data transmission apparatus, including: the acquisition module is configured to acquire data to be transmitted in a first network. And the writing module is configured to write the data to be transmitted into the storage space configured by the intermediate module and write a data instruction after the data to be transmitted is written. A triggering module configured to trigger a switching instruction for the storage space if the data instruction is written to the storage space. A switching module configured to switch the storage space from being connected with the first network to being connected with a second network based on the switching instruction, so as to read the data to be transmitted from the storage space in the second network.
One or more embodiments of the present specification provide another cross-network data transmission apparatus, including: a monitoring module configured to monitor a handover instruction to handover a storage space configured by the intermediate module from connection with the first network to connection with the second network. And the instruction triggering module is configured to trigger the switching instruction if the switching instruction is not triggered and a data instruction exists in the storage space. A network switching module configured to switch the storage space from being connected with the first network to being connected with the second network based on the switching instruction. A reading module configured to read the data to be transmitted written from the first network from the storage space.
One or more embodiments of the present specification provide an inter-network data transmission apparatus, including: a processor; and a memory configured to store computer-executable instructions that, when executed, cause the processor to: data to be transmitted in a first network is obtained. And writing the data to be transmitted into a storage space configured by the intermediate module, and writing a data instruction after the data to be transmitted is written. Triggering a switch instruction for the memory space if the data instruction is written to the memory space. And switching the storage space from the connection with the first network to the connection with a second network based on the switching instruction so as to read the data to be transmitted from the storage space in the second network.
One or more embodiments of the present specification provide another cross-network data transmission apparatus, including: a processor; and a memory configured to store computer-executable instructions that, when executed, cause the processor to: a switch instruction to switch the storage space configured by the intermediate module from connection with the first network to connection with the second network is monitored. And if the switching instruction is not triggered and a data instruction exists in the storage space, triggering the switching instruction. Switching the storage space from being connected with the first network to being connected with the second network based on the switching instruction. Reading the data to be transmitted written from the first network from the storage space.
One or more embodiments of the present specification provide a storage medium storing computer-executable instructions that, when executed, implement the following: data to be transmitted in a first network is obtained. And writing the data to be transmitted into a storage space configured by the intermediate module, and writing a data instruction after the data to be transmitted is written. Triggering a switch instruction for the memory space if the data instruction is written to the memory space. And switching the storage space from the connection with the first network to the connection with a second network based on the switching instruction so as to read the data to be transmitted from the storage space in the second network.
One or more embodiments of the present specification provide another storage medium storing computer-executable instructions that, when executed, implement the following: a switch instruction to switch the storage space configured by the intermediate module from connection with the first network to connection with the second network is monitored. And if the switching instruction is not triggered and a data instruction exists in the storage space, triggering the switching instruction. Switching the storage space from being connected with the first network to being connected with the second network based on the switching instruction. Reading the data to be transmitted written from the first network from the storage space.
Drawings
In order to more clearly illustrate one or more embodiments or prior art solutions of the present specification, the drawings that are needed in the description of the embodiments or prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments described in the present specification, and that other drawings can be obtained by those skilled in the art without inventive exercise.
Fig. 1 is a processing flow diagram of a cross-network data transmission method according to one or more embodiments of the present disclosure;
fig. 2 is a processing flow diagram of a cross-network data transmission method applied to a service scenario according to one or more embodiments of the present disclosure;
fig. 3 is a process flow diagram of another cross-network data transmission method provided in one or more embodiments of the present disclosure;
fig. 4 is a processing flow diagram of another cross-network data transmission method applied to a service scenario, according to one or more embodiments of the present disclosure;
fig. 5 is a schematic diagram of an inter-network data transmission apparatus according to one or more embodiments of the present disclosure;
fig. 6 is a schematic diagram of another cross-network data transmission apparatus according to one or more embodiments of the present disclosure;
fig. 7 is a schematic structural diagram of an inter-network data transmission apparatus according to one or more embodiments of the present disclosure;
fig. 8 is a schematic structural diagram of another cross-network data transmission device according to one or more embodiments of the present disclosure.
Detailed Description
In order to make those skilled in the art better understand the technical solutions in one or more embodiments of the present disclosure, the technical solutions in one or more embodiments of the present disclosure will be clearly and completely described below with reference to the drawings in one or more embodiments of the present disclosure, and it is obvious that the described embodiments are only a part of the embodiments of the present disclosure, and not all embodiments. All other embodiments that can be derived by a person skilled in the art from one or more of the embodiments described herein without making any inventive step shall fall within the scope of protection of this document.
An embodiment of a cross-network data transmission method provided in this specification:
referring to fig. 1, a processing flow chart of an inter-network data transmission method provided in this embodiment is shown, and referring to fig. 2, a processing flow chart of an inter-network data transmission method applied to a service scenario provided in this embodiment is shown.
Referring to fig. 1, the cross-network data transmission method provided in this embodiment specifically includes the following steps S102 to S108.
Step S102, data to be transmitted in the first network is obtained.
In practical application, the problem of cross-network data transmission is often encountered in the process of building a service project in a service processing scene; for example, in the process of reporting daily accounts, a service person downloads a file to be reported from an office network service system, moves the file to a terminal device in another special network, and completes a large amount of reporting work on a system of a special network computer, and the repeated and procedural work is performed by the service person, so that the efficiency is low, and errors are easy to make.
The cross-network data transmission method provided in this embodiment includes first obtaining data to be transmitted generated on the first network, writing the data to be transmitted into a storage space configured by an intermediate module, continuing to write a data instruction into the storage space when the data to be transmitted is written, triggering a switching instruction capable of switching connection between the storage space and the first network to connection with a second network when the data instruction is found in the storage space, connecting the storage space to the second network, further reading and processing the data to be transmitted written into the storage space in the first network in the second network, and transmitting the data to be transmitted from the first network to the second network, so as to improve security of the data to be transmitted in the cross-network data transmission, the cost is saved, and the efficiency of cross-network data transmission is improved.
In order to implement cross-network data transmission without breaking physical network isolation, in an optional implementation manner provided in this embodiment, the cross-network data transmission method is applied to a first application in the first network; and after the switching instruction is triggered, reading the data to be transmitted from the storage space by a second application in the second network.
The first network in this embodiment refers to a network environment where actual service processing is performed, and the second network is a network environment isolated from the first network; the first application refers to an application or a component which exists in a first network and can realize flow automation and business automation, such as a customer service robot which automatically executes customer service applications; the second application refers to an application or a component which exists in a second network and can realize process automation; for example, in a service processing scenario, data submitted by a user on a user-oriented terminal device in an office network needs to be stored on a terminal device in a private network of the service organization, and then the office network is the first network, and the private network is the second network. The data to be transmitted refers to data which needs to be transmitted from a first network to a second network for processing; specifically, the method includes data generated by the first network and a service processing instruction for how the data is processed on the second network. For example, in a service processing scenario, a user wants to change a mobile phone number bound to a service card of the user, submits a service card number of the user and a new phone number on a terminal device in an office network, generates an instruction for changing the phone number corresponding to the service card number into the new phone number on the terminal device, and uses the phone number submitted by the user, the service card number and the instruction generated on the terminal device as data to be transmitted.
In specific implementation, the first application monitors whether data is generated in the first network, if so, the data generated in the first network is downloaded to a terminal device in the first network, and the first application reads the data generated in the first network from the terminal device; if not, monitoring is carried out all the time; in an optional implementation manner provided in this embodiment, the following operations are adopted to obtain data to be transmitted:
when data generation in the first network is monitored, downloading the data generated in the first network to terminal equipment in the first network;
and acquiring the data and a service processing instruction for processing the data on the second network from the terminal equipment as to-be-transmitted data.
For example, in a service processing scenario, an office application monitors whether data is generated in an office network, if so, the data is downloaded to a terminal device in the office network, and the office application acquires the data from the terminal device.
In addition, the first application may also directly obtain the data generated in the first network without downloading the data to the terminal device in the first network, for example, the first application may directly obtain the data when querying that the data is generated in the first network.
And step S104, writing the data to be transmitted into the storage space configured by the intermediate module, and writing a data instruction after the data to be transmitted is written.
The intermediate module in this embodiment refers to a hardware box having a plurality of USB sockets configured to connect a first network and a second network; the storage space is a storage medium which is configured on the intermediate module and stores data to be transmitted written from the first application and the second application; the data instruction refers to an instruction capable of indicating that the data to be transmitted has been written into the storage space.
In practical applications, in order to improve efficiency of cross-network data transmission and ensure reliability of cross-network data transmission, in an optional implementation manner provided in this embodiment, the intermediate module is respectively connected to the first network and the second network, and the storage space is only connected to one of the first network and the second network during an operation process; and monitoring the intermediate module in the first network and the second network in the process that the storage space is written in the data to be transmitted and the data instruction.
In an optional implementation manner provided by this embodiment, the storage space is provided by a storage medium configured by the intermediate module, and the storage medium is connected to the intermediate module through a USB interface configured on the intermediate module; the storage medium includes: and the removable memory is connected with the USB interface. The removable memory may be a U disk, a removable hard disk, or the like.
In specific implementation, the terminal device in the first network is connected to the intermediate module, the terminal device in the second network is also connected to the intermediate module, the storage space is provided by a storage medium configured by the intermediate module, the storage medium is inserted into a USB interface of the intermediate module, the storage medium can only be connected to one of the terminal device in the first network and the terminal device in the second network in specific implementation, and the storage space stores the data in a database of the storage medium when receiving the data written by the first application.
In an optional implementation manner provided in this embodiment, data is written to the intermediate module specifically in the following manner:
writing the data to be transmitted into a database of the storage space and storing the data in the database;
and after the data to be transmitted is written, writing a data instruction into the database and storing the data instruction in the database.
In specific implementation, in order to ensure that the connection state of the storage space is effectively switched, the storage space needs to be switched from the connection with the first network to the connection with the second network only when it is determined that the writing process of the storage space is completed when the storage space is connected with the first network, and in order to determine that the writing of the data to be transmitted is completed, a data instruction indicating that the data to be transmitted has been written into the storage space needs to be written into the storage space after the first application completes writing the data to be transmitted into the storage space.
For example, in a service processing scenario, a user wants to replace a mobile phone number bound to a service card of the user, an office application in an office network acquires data to be transmitted, which includes the service card number, the phone number, and a change instruction of the user, from the office network, writes the data to be transmitted into an intermediate module, specifically, writes the data into a database of a storage space configured by the intermediate module, and after the data to be transmitted is written, the office application continues to write a data instruction, which indicates that the data to be transmitted has been written into the database of the storage space.
And step S106, under the condition that the data instruction is written into the storage space, triggering a switching instruction aiming at the storage space.
The switching instruction in this embodiment is an instruction that can switch the storage space from the connection with the first network to the connection with the second network when the switching instruction is triggered.
In practical applications, if the second application switches the control right of the second application to the data in the storage space under the condition that the first application writes the data into the storage space, the writing of the first application fails. In order to prevent the switching instruction from being triggered to cause transmission failure, the embodiment allows triggering the switching instruction only when the data instruction is detected to be written into the storage space.
In a specific implementation, the first application and the second application monitor the whole process, and specifically in the monitoring process, the switching instruction can be triggered only when the data instruction written by the first application already exists in the memory space; in order to ensure that the switching instruction can be triggered when the data writing is completed, in an optional implementation manner provided by this embodiment, it is specifically determined whether triggering of the switching instruction can be triggered by the following manner:
inquiring whether the data instruction exists in the storage space;
if so, determining that the data to be transmitted is written completely, and triggering the switching instruction;
if not, continuing to inquire, and returning to execute the substep of inquiring whether the data instruction exists in the storage space until the data instruction exists in the storage space.
For example, in a service processing scenario, in a case that a storage space is connected to an office network, an office application in the office network is always querying a state of a terminal device and the storage space in the office network, and when a data instruction exists in the storage space, the office application can trigger a switching instruction to switch a control right of the storage space.
In specific implementation, if the data instruction is not inquired to be contained in the storage space, the inquiry is continued until the data instruction exists in the storage space.
In this embodiment, a switching instruction for the storage space controls connection of the storage space by controlling an entity key, and in an optional manner provided in this embodiment, the switching instruction is used to control an entity key configured on the intermediate module; the entity key is connected with the intermediate module through a USB interface configured on the intermediate module; and under the condition that the switching instruction is triggered, the entity key switches the storage space from the current network connection to another network connection.
In a specific implementation, the switching instruction for the storage space is triggered, actually, the entity key configured on the intermediate module is triggered by the switching instruction, and the connection state of the storage space is switched by triggering the entity key. For example, in a service processing scenario, when it is found that a data instruction exists in a storage space configured on an intermediate module connecting an office network and a private network, an office application in the office network triggers a switching instruction, and when the switching instruction is triggered, the switching instruction controls triggering of an entity key configured on the intermediate module, specifically, after the triggering, the storage space connected to the office network is switched to be connected to the private network.
Step S108, based on the switching instruction, switching the storage space from being connected with the first network to being connected with a second network so as to read the data to be transmitted from the storage space in the second network.
In practical applications, when the switching instruction is triggered, that is, when the physical key is triggered, the storage space is switched from being connected to the first network to being connected to the second network, and after the storage space is connected to the second network, the second application can read and write data from the storage space.
In an optional implementation manner provided by this embodiment, in order to implement cross-network data transmission more efficiently, when it is monitored that the first network connected to the storage space is switched to the second network, the to-be-transmitted data written in the storage space is read in the second network.
For example, in a service processing scenario, a user wants to change a mobile phone number bound to a service card of the user, an office application in an office network inquires that a switching instruction exists in a storage space of an intermediate module connecting the office network and a private network, and the triggering of the switching instruction is to trigger an entity button configured in the intermediate module to switch the storage space from connection with the office network to connection with the private network.
In specific implementation, when the second application reads the data to be transmitted from the storage space, according to a service processing instruction for performing service processing operation included in the data to be processed, the second application performs corresponding service processing on the data included in the data to be processed, generates a service processing result for the service processing, and stores the processed data subjected to the service processing in the terminal device in the second network.
After that, similar to the process of writing the to-be-processed data into the storage space by the first application, the second application may also write the generated service processing result into the storage space, and further transmit the service processing result to the first network, specifically, the second application writes the service processing result into the database of the storage space, after the writing of the service processing result is completed, writes a processing completion instruction identifying that the service processing result has been written into the storage space, and under the condition that the processing completion instruction has been written into the storage space, triggers a secondary switching instruction to switch the storage space from being connected with the second network to being connected with the first network, and the first application reads the service processing result written into the storage space, and displaying the service processing result to the terminal equipment in the first network.
In practical applications, in order to ensure effectiveness of cross-network data transmission and determine whether the cross-network data transmission is successful, in an optional implementation manner provided in this embodiment, after triggering the switching instruction to switch the storage space from being connected to the first network to being connected to the second network, and after the second network reads the to-be-processed data stored in the data table of the storage space, the following operations are further performed in the second network:
performing service processing on the data to be transmitted based on a service processing instruction contained in the data to be transmitted;
generating a service processing result based on the service processing, and writing the service processing result into a database of the storage space;
triggering a secondary switching instruction; and switching the storage space to be connected with the first network from the second network connection.
For example, in the service processing scenario, the user wants to replace the mobile phone number bound to his service card, inquires that the storage space located in the intermediate module connecting the office network and the private network has been switched to be connected with the private network, the proprietary application in the proprietary network reads the data to be transmitted stored in the data set of the storage space from the storage space, according to the business processing instruction of how to operate the data acquired from the office network contained in the data to be transmitted, the method comprises the steps of performing a change instruction of binding telephone change on a service card number submitted by a user, performing service processing on the service card number and the telephone number of the user, which are acquired from the office network and contained in data to be transmitted, and storing the updated service card number and the updated telephone number as service processing results on terminal equipment in the proprietary network;
after that, writing a service processing result into a database in a storage space, after the writing of the service processing result is completed, writing a processing completion instruction indicating that the service processing result has been written into the database in the storage space, and triggering a secondary switching instruction when the processing completion instruction is inquired to exist in the database in the storage space, so that the storage space is switched from being connected with the private network to being connected with the office network; and under the condition that the office application in the office network inquires that the storage space is connected with the office network, reading the service processing result written in the database of the storage space and displaying the service processing result to the terminal equipment in the office network, so that the terminal equipment in the office network performs further operation according to the service processing result.
The following describes the cross-network data transmission method provided in this embodiment by taking an application of the cross-network data transmission method provided in this embodiment in a service scenario as an example with reference to fig. 2. Referring to fig. 2, the cross-network data transmission method applied to the service scenario specifically includes steps S202 to S212.
Step S202, monitoring that business data is generated in the office network, and storing the business data to the terminal equipment in the office network.
Step S204, acquiring service data and service processing instructions in the office network from the terminal equipment.
Step S206, writing the service data and the service processing instruction into a database of a storage space configured by the intermediate module and storing the service data and the service processing instruction in the database.
And step S208, after the writing of the service data and the service processing instruction is finished, writing a data instruction into the database and storing the data instruction into the database.
Specifically, the intermediate module is respectively connected with the office network and the private network, the storage space can only be connected with one of the office network and the private network in the operation process, and the intermediate module is monitored in both the office network and the private network in the process of writing data and data instructions to be transmitted into the storage space; the storage space is provided by a storage medium arranged on the intermediate module, and the storage medium and the intermediate module are connected together through a USB interface arranged on the intermediate module; the data to be transmitted and the data command are written into the storage space, and actually, the data to be transmitted and the data command are written into a data table of the storage space.
Step S210, when it is found that the data command has been written into the storage space, a switching command for the storage space is triggered.
In specific implementation, the office network inquires whether a data instruction is written into the storage space, if the data instruction is written, the data to be transmitted is determined to be written completely, a switching instruction can be triggered, and if the data instruction is not written into the storage space, the switching instruction is forbidden to be triggered. The switching instruction is used for controlling an entity key configured on the intermediate module, the entity key is connected with the intermediate module through a USB interface configured on the intermediate module, and the entity key is triggered to switch the connection of the storage space under the condition that the switching instruction is triggered.
Step S212, the storage space is switched from being connected with the office network to being connected with the proprietary network, so that the data to be transmitted are read from the storage space in the proprietary network.
Specifically, the triggering of the switching instruction is equivalent to triggering of an entity key, triggering of the entity key switches the connection of the storage space with the office network to the connection with the private network, and reading the data to be transmitted from the storage space under the condition that the private network monitors that the storage space is connected with the private network.
In specific implementation, after data to be transmitted is read, in the private network, service processing is performed on the data according to a service processing instruction contained in the data to be transmitted, a service processing result is generated, the service processing result is written into the storage space, a processing completion instruction is written into the storage space after the service processing result is written, and when the processing completion instruction exists in the storage space, a secondary switching instruction is triggered, the storage space is switched from connection with the private network to connection with an office network, and the service processing result is read from the storage space in the office network and displayed to terminal equipment in the office network.
In summary, the cross-network data transmission method includes first obtaining the data to be transmitted generated on the first network, writing the data to be transmitted into a storage space configured by an intermediate module, continuing to write a data instruction into the storage space when the data to be transmitted is written, triggering a switching instruction capable of switching connection between the storage space and the first network to connection with the second network when the data instruction is found in the storage space, so that the storage space is connected with the second network, further reading and processing the data to be transmitted written into the storage space in the first network in the second network, and thus transmitting the data to be transmitted from the first network to the second network, so as to improve security of the data in cross-network data transmission, the cost is saved, and the efficiency of cross-network data transmission is improved.
Another embodiment of a cross-network data transmission method provided in this specification is as follows:
referring to fig. 3, it shows a flow chart of another cross-network data transmission method provided in this embodiment. Referring to fig. 4, it shows a flowchart of another cross-network data transmission method applied to a service scenario provided in this embodiment.
Referring to fig. 3, the cross-network data transmission method provided in this embodiment specifically includes the following steps S302 to S308.
Step S302, a switching instruction for switching the storage space configured by the intermediate module from the connection with the first network to the connection with the second network is monitored.
In the cross-network data transmission method provided by this embodiment, a second application in the second network is used as an execution main body, the switching instruction is triggered by the second network by monitoring the switching instruction, when it is monitored that the switching instruction is not triggered and a data instruction exists in the storage space, the storage space is switched from being connected with the first network to being connected with the second network, the data to be transmitted stored in the storage space is read in the second network, the data in the data to be transmitted is processed according to a service processing instruction included in the data to be transmitted, a service processing result is generated when the processing is completed, the processed data is stored in a terminal device in the second network, and the service processing result is written in a data table in the storage space, after the writing of the service processing result is completed, writing the processing completion instruction into the data table of the storage space, triggering a secondary switching instruction in the first network when the processing completion instruction is monitored to exist in the storage space in the first network, switching the storage space from the connection with the second network to the connection with the first network, and reading the service processing result from the storage space in the first network and displaying the service processing result to the terminal device in the first network when the connection of the storage space with the first network is monitored in the first network, so that the cross-network data transmission is realized, the effectiveness of cross-network data transmission can be improved, and the transmission failure caused by the control right switching in the cross-network data transmission process is ensured, and the safety of the cross-network data transmission is further improved.
The cross-network transmission method provided by the embodiment is applied to a second application for realizing process automation in the second network; and after the switching instruction is triggered, a second application in the second network reads the data to be transmitted from the storage space. The data to be transmitted refers to data which needs to be transmitted from a first network to a second network for processing; including data generated by the first network and traffic handling instructions for how the data is to be handled on the second network. For example, in a service processing scenario, a user wants to change a mobile phone number bound to a service card of the user, submits a service card number of the user and a new phone number on a terminal device in an office network, generates an instruction for changing the phone number corresponding to the service card number into the new phone number on the terminal device, and uses the phone number submitted by the user, the service card number and the instruction generated on the terminal device as data to be transmitted.
The first network in this embodiment refers to a network environment where actual service processing is performed, and the second network is a network environment isolated from the first network; the first application refers to an application or a component which exists in the first network and can realize process automation and business automation, such as a customer service robot which automatically executes customer service applications; the second application refers to an application or a component which exists in the second network and can realize process automation; for example, in a service processing scenario, data submitted by a user on a user-oriented terminal device in an office network needs to be stored on a terminal device in a private network of the service organization, and then the office network is the first network, and the private network is the second network. The middle module is a hardware box which is provided with a plurality of USB (universal serial bus) sockets and is configured for connecting a first network and a second network; (ii) a The storage space is a storage medium which is configured on the intermediate module and stores data to be transmitted written from the first application and the second application; the switching instruction is an instruction that can switch the storage space from the connection with the first network to the connection with the second network when triggered.
In practical applications, the intermediate module is connected to the first network and the second network at the same time, but the storage space is only connected to one of the first network and the second network during operation, but the storage space is monitored in both the first network and the second network during operation. In order to enable the cross-network data transmission to be implemented without breaking physical isolation, this embodiment provides an optional implementation manner, in which the intermediate module is respectively connected to the first network and the second network, and the storage space is connected to only one of the first network and the second network during operation;
and monitoring the intermediate module in the first network and the second network in the process that the storage space is written in the data to be transmitted and the data instruction.
In an optional implementation manner provided by this embodiment, the storage space is provided by a storage medium configured by the intermediate module, and the storage medium is connected to the intermediate module through a USB interface configured on the intermediate module; the storage medium includes: and the removable memory is connected with the USB interface.
In practical application, whether a data instruction written in the first network exists in the intermediate module needs to be inquired, and whether the switching instruction is triggered is inquired again when the data instruction exists in the storage space; in order to improve reliability of cross-network data transmission, in an optional implementation manner provided in this embodiment, the following manner is specifically adopted to monitor the switching instruction:
inquiring whether a data instruction exists in the storage space;
if yes, inquiring whether a switching instruction for switching the storage space from the first network connection to the second network connection is triggered;
if not, returning to execute the substep of inquiring whether the data instruction exists in the storage space.
For example, in a service processing scenario, a user wants to change a mobile phone number bound to a service card of the user, and queries whether a data instruction exists in a storage space configured by an intermediate module, and if so, queries whether a switching instruction for the storage space is triggered; if the data instruction does not exist in the storage space, the query is continued until the data instruction exists in the storage space.
Step S304, if it is detected that the switching command is not triggered and a data command exists in the storage space, triggering the switching command.
In practical application, after the data to be transmitted is written into the storage space in the first network, only monitoring is performed in the first network, and the switching instruction is triggered in the second network; before triggering the switching instruction in the second network, writing the data to be transmitted and a data instruction into the storage space from the first network, wherein the switching instruction can be triggered by the second network only on the basis of inquiring that the data instruction exists in the storage space.
In order to ensure the integrity of data transmission, in an optional implementation manner provided by this embodiment, before triggering the switching instruction, the following steps are further performed in the first application:
acquiring data to be transmitted in the first network;
and writing the data to be transmitted into the storage space configured by the intermediate module, and writing a data instruction after the data to be transmitted is written.
For example, in a service processing scenario, a user wants to change a mobile phone number bound to a service card of the user, an office application in an office network acquires data to be transmitted, which includes the service card number of the user, a phone number, and a change instruction, from the office network, writes the data to be transmitted into an intermediate module, specifically, writes the data into a database of a storage space configured by the intermediate module, and after the data to be transmitted is written, the office application continues to write a data instruction, which indicates that the data to be transmitted has been written into the database of the storage space.
Step S306, based on the switching instruction, switching the storage space from being connected to the first network to being connected to the second network.
In practical applications, in order to make a transmission process more standardized, in an optional implementation manner provided by this embodiment, the switching instruction is used to control an entity key configured on the middle module; the entity key is connected with the intermediate module through a USB interface configured on the intermediate module; and under the condition that the switching instruction is triggered, the entity key switches the storage space from the current network connection to another network connection.
In specific implementation, the switching instruction for the storage space is triggered, actually, an entity key configured on the intermediate module is triggered, and the connection state of the storage space is switched by triggering the entity key. For example, in a service processing scenario, when it is found that a storage space configured on an intermediate module connecting an office network and a private network contains a data instruction, a switching instruction is triggered in the private network, and when the switching instruction is triggered, the switching instruction controls triggering of an entity key configured on the intermediate module, and specifically, after the triggering, the storage space connected to the office network is switched to be connected to the private network.
Step S308, reading the data to be transmitted written from the first network from the storage space.
In practical applications, when the storage device is connected to the second network, the second network may read the data to be transmitted written from the first network from the storage device, and after reading the data to be transmitted, the data in the data to be transmitted is also subjected to business processing according to business processing instructions contained in the data to be transmitted, and generates a service processing result, stores the processed data in the terminal device in the second network, in order to make the transmission result more obvious and improve the perception degree of the transmission result, the service processing result is further required to be transmitted to the first network, specifically, the service processing result is written into the storage device, and under the condition that the writing of the business processing result is completed, writing a processing completion instruction which represents the completion of the writing of the business processing result into the storage equipment.
In a specific implementation, in order to ensure that the cross-network data transmission is successfully implemented, a service processing result needs to be returned to the first network, and in an optional implementation manner provided in this embodiment, on the basis of obtaining the data to be transmitted, the following steps are further performed:
performing service processing on the data to be transmitted based on a service processing instruction contained in the data to be transmitted;
and generating a service processing result based on the service processing, and writing the service processing result into the storage space.
In an optional manner provided in this embodiment, the following manner is specifically adopted to write the service processing result into the storage space: writing the service processing result into a database of the storage space and storing the service processing result in the database;
and after the writing of the service processing result is completed, writing a processing completion instruction into the database and storing the processing completion instruction into the database.
For example, in a service processing scenario, a user wants to change a mobile phone number bound to his/her service card, reads data to be transmitted including a user service card number, a phone number, and a change instruction from a storage space in a private network, changes information belonging to the user stored in a second network according to the change instruction, generates a service processing result after the change is successful, writes the service processing result into the storage space, and writes a processing completion instruction into the storage space after the processing completion instruction is written.
In practical application, after the service processing result is written into the storage space, the service processing result is further read in the first network, and in order to enable the service processing result to be displayed more intuitively in the first network, in an optional implementation manner provided in this embodiment, after the second network writes both the service processing result and the processing completion instruction into the storage space, the following steps are further performed in the first network:
monitoring a secondary switching instruction for switching the storage space configured by the intermediate module from the connection with the second network to the connection with the first network;
and if the secondary switching instruction is not triggered and a processing completion instruction exists in the storage space, triggering the secondary switching instruction.
For example, in a service processing scenario, a service processing result written from a private network already exists in a storage space, in an office network, whether a processing completion instruction exists in the storage space is queried, if so, whether a secondary switching instruction for the storage device is triggered is queried, if not, the secondary switching instruction is triggered, and in a case where the storage space is connected to the office network, the service processing result is read from the storage space and displayed to a terminal device located in the office network.
The following describes the cross-network data transmission method provided in this embodiment by taking an application of the cross-network data transmission method provided in this embodiment in a service scenario as an example with reference to fig. 4. Referring to fig. 4, the cross-network data transmission method applied to the service scenario specifically includes steps S402 to S414.
Step S402, inquiring that a data instruction exists in the storage space.
Before this, it is necessary to obtain service data and a service processing instruction generated by the first network in the first network, write the service data and the service processing instruction into a database of the storage space, and write the data instruction into the storage space when the writing is completed.
In step S404, it is queried that the switching instruction for the storage space is not triggered.
Specifically, the office network queries whether a data instruction has been written into the storage space, determines that data to be transmitted has been written and can trigger the switching instruction if the data instruction has been written, and prohibits triggering the switching instruction if the data instruction has not been written into the storage space. The switching instruction is used for controlling an entity key configured on the intermediate module, the entity key is connected with the intermediate module through a USB interface configured on the intermediate module, and the entity key is triggered to switch the connection of the storage space under the condition that the switching instruction is triggered.
Step S406, a switch instruction is triggered.
Step S408, reading the service data and the service processing instruction from the storage space.
And step S410, processing the service data according to the service processing instruction and generating a service processing result.
Step S412, writing the service processing result into the database of the storage space.
In step S414, a processing completion instruction is written into the database of the storage space after the writing of the service processing result is completed.
In summary, in the cross-network data transmission method, by monitoring the handover instruction, when it is monitored that the handover instruction is not triggered and a data instruction exists in the storage space, the second network triggers the handover instruction, so that the storage space is switched from being connected to the first network to being connected to the second network, the data to be transmitted stored in the storage space is read in the second network, and the data in the data to be transmitted is processed according to a service processing instruction included in the data to be transmitted, and when the processing is completed, a service processing result is generated, the processed data is stored in the terminal device in the second network, and the service processing result is written in a data table of the storage space, and after the service processing result is written in, writing a processing completion instruction into the data table of the storage space, wherein when the processing completion instruction is monitored to exist in the storage space in the first network, triggering a secondary switching instruction in the first network to switch the storage space from the connection with the second network to the connection with the first network, reading the service processing result from the storage space in the first network and displaying the service processing result to the terminal equipment in the first network under the condition that the storage space is monitored to be connected with the first network in the first network, by the method, the cross-network data transmission is realized, the effectiveness of the cross-network data transmission can be improved, and the transmission failure caused by control right switching in the process of cross-network data transmission is ensured, and the safety of the cross-network data transmission is further improved.
The embodiment of the cross-network data transmission device provided by the specification is as follows:
in the foregoing embodiment, a cross-network data transmission method is provided, and correspondingly, a cross-network data transmission apparatus is also provided, which is described below with reference to the accompanying drawings.
Referring to fig. 5, a schematic diagram of an inter-network data transmission apparatus according to the present embodiment is shown.
Since the device embodiments correspond to the method embodiments, the description is relatively simple, and the relevant portions only need to refer to the corresponding description of the method embodiments provided above. The device embodiments described below are merely illustrative.
The present embodiment provides an inter-network data transmission apparatus, including:
an obtaining module 502 configured to obtain data to be transmitted in a first network;
a write-in module 504 configured to write the data to be transmitted into the storage space configured by the intermediate module, and write a data instruction after the write-in of the data to be transmitted is completed;
a triggering module 506 configured to trigger a switching instruction for the storage space if the data instruction is written into the storage space;
a switching module 508 configured to switch the storage space from being connected with the first network to being connected with a second network based on the switching instruction, so as to read the data to be transmitted from the storage space in the second network.
Optionally, the intermediate module is connected to the first network and the second network respectively, and the storage space is connected to only one of the first network and the second network during operation;
and monitoring the intermediate module in the first network and the second network in the process that the storage space is written in the data to be transmitted and the data instruction.
Optionally, when it is monitored that the first network connected to the storage space is switched to the second network, the to-be-transmitted data written in the storage space is read in the second network.
Optionally, the cross-network data transmission apparatus further includes:
performing the following operations in the second network:
the processing module is configured to perform service processing on the data to be transmitted based on a service processing instruction contained in the data to be transmitted;
the generating module is configured to generate a business processing result based on the business processing and write the business processing result into a database of the storage space;
a secondary switching module configured to trigger a secondary switching instruction; and switching the storage space to be connected with the first network from the second network connection.
Optionally, the triggering module 506 includes:
a query submodule configured to query whether the data instruction exists in the storage space;
if yes, operating a determining submodule, wherein the determining submodule is configured to determine that the data to be transmitted is completely written and trigger the switching instruction;
and if not, operating the query submodule.
Optionally, the cross-network data transmission method is applied to a first application in the first network;
and after the switching instruction is triggered, a second application in the second network reads the data to be transmitted from the storage space.
Optionally, the writing module 504 includes:
the data to be transmitted is written into the sub-module and is configured to write the data to be transmitted into the database of the storage space and store the data in the database;
and the data instruction writing submodule is configured to write a data instruction into the database and store the data instruction in the database after the data to be transmitted is written.
Optionally, the storage space is provided by a storage medium configured by the intermediate module, and the storage medium is connected with the intermediate module through a USB interface configured on the intermediate module;
the storage medium includes: and the removable memory is connected with the USB interface.
Optionally, the switching instruction is used to control an entity key configured on the intermediate module;
the entity key is connected with the intermediate module through a USB interface configured on the intermediate module;
and under the condition that the switching instruction is triggered, the entity key switches the storage space from the current network connection to another network connection.
Optionally, the obtaining module 502 includes:
the monitoring submodule is configured to monitor that data are generated in the first network, and download the data generated in the first network to terminal equipment in the first network;
and the to-be-transmitted data generation submodule is configured to acquire the data and a service processing instruction for processing the data on the second network from the terminal equipment as to-be-transmitted data.
Another embodiment of an inter-network data transmission apparatus provided in this specification is as follows:
in the above embodiments, another cross-network data transmission method is provided, and correspondingly, another cross-network data transmission apparatus is also provided, which is described below with reference to the accompanying drawings.
Referring to fig. 6, a schematic diagram of another cross-network data transmission apparatus provided in this embodiment is shown.
Since the device embodiments correspond to the method embodiments, the description is relatively simple, and the relevant portions only need to refer to the corresponding description of the method embodiments provided above. The device embodiments described below are merely illustrative.
The present embodiment provides another cross-network data transmission apparatus, including:
a monitoring module 602 configured to monitor a switching instruction for switching the storage space configured by the intermediate module from connection with the first network to connection with the second network;
an instruction triggering module 604 configured to trigger the switching instruction if it is detected that the switching instruction is not triggered and a data instruction exists in the storage space;
a network switching module 606 configured to switch the storage space from being connected to the first network to being connected to the second network based on the switching instruction;
a reading module 608 configured to read the data to be transmitted written from the first network from the storage space.
Optionally, the intermediate module is connected to the first network and the second network respectively, and the storage space is connected to only one of the first network and the second network during operation;
and monitoring the intermediate module in the first network and the second network in the process that the storage space is written in the data to be transmitted and the data instruction.
Optionally, the cross-network data transmission apparatus further includes:
performing the following operations in the first network:
the acquisition module is configured to acquire data to be transmitted in the first network;
and the writing module is configured to write the data to be transmitted into the storage space configured by the intermediate module and write a data instruction after the data to be transmitted is written.
Optionally, the cross-network data transmission apparatus further includes:
the service processing module is configured to perform service processing on the data to be transmitted based on a service processing instruction contained in the data to be transmitted;
and the processing result generating module is configured to generate a service processing result based on the service processing and write the service processing result into the storage space.
Optionally, the cross-network data transmission apparatus further includes:
a secondary monitoring module configured to monitor a secondary switching instruction in the first network for switching the storage space from the second network connection to the first network connection in the intermediate module;
a secondary triggering module configured to trigger the secondary handover instruction in the first network when it is monitored that the secondary handover instruction is not triggered and a processing completion instruction exists in the storage space.
Optionally, the monitoring module 602 includes:
the query submodule is configured to query whether a data instruction exists in the storage space;
if yes, operating the secondary query submodule, wherein the secondary query submodule is configured to query whether a switching instruction for switching the storage space from the first network connection to the second network connection in the intermediate module is triggered;
and if not, operating the query submodule.
Optionally, the cross-network data transmission method is applied to a second application for implementing process automation in the second network;
and after the switching instruction is triggered, a second application in the second network reads the data to be transmitted from the storage space.
Optionally, the storage space is provided by a storage medium configured by the intermediate module, and the storage medium is connected with the intermediate module through a USB interface configured on the intermediate module;
the storage medium includes: and the removable memory is connected with the USB interface.
Optionally, the switching instruction is used to control an entity key configured on the intermediate module;
the entity key is connected with the intermediate module through a USB interface configured on the intermediate module;
and under the condition that the switching instruction is triggered, the entity key switches the storage space from the current network connection to another network connection.
Optionally, the processing result generating module includes:
the processing result writing sub-module is configured to write the service processing result into a database of the storage space and store the service processing result in the database;
and the completion instruction writing submodule is configured to write a processing completion instruction into the database and store the processing completion instruction in the database after the writing of the service processing result is completed.
An embodiment of an inter-network data transmission device provided in this specification is as follows:
on the basis of the same technical concept, one or more embodiments of the present specification further provide an inter-network data transmission device, where the device is configured to execute the above-mentioned inter-network data transmission method, and fig. 7 is a schematic structural diagram of the inter-network data transmission device provided in one or more embodiments of the present specification.
As shown in fig. 7, the data transmission device across the network may have a large difference due to different configurations or performances, and may include one or more processors 701 and a memory 702, where one or more stored applications or data may be stored in the memory 702. Memory 702 may be, among other things, transient storage or persistent storage. The application program stored in memory 702 may include one or more modules (not shown), each of which may include a series of computer-executable instructions in a cross-network data transfer device. Still further, the processor 701 may be configured to communicate with the memory 702 to execute a series of computer-executable instructions in the memory 702 on a cross-network data transfer device. The cross-network data transmission apparatus may also include one or more power supplies 703, one or more wired or wireless network interfaces 704, one or more input-output interfaces 705, one or more keyboards 706, and the like.
In a particular embodiment, the cross-network data transfer apparatus comprises a memory, and one or more programs, wherein the one or more programs are stored in the memory, and the one or more programs may comprise one or more modules, and each module may comprise a series of computer-executable instructions for the cross-network data transfer apparatus, and the one or more programs configured for execution by the one or more processors comprise computer-executable instructions for:
acquiring data to be transmitted in a first network;
writing the data to be transmitted into a storage space configured by the intermediate module, and writing a data instruction after the data to be transmitted is written;
triggering a switch instruction for the memory space if the data instruction is written to the memory space;
and switching the storage space from the connection with the first network to the connection with a second network based on the switching instruction so as to read the data to be transmitted from the storage space in the second network.
Optionally, the intermediate module is connected to the first network and the second network respectively, and the storage space is connected to only one of the first network and the second network during operation; and monitoring the intermediate module in the first network and the second network in the process that the storage space is written in the data to be transmitted and the data instruction.
Optionally, when it is monitored that the first network connected to the storage space is switched to the second network, the to-be-transmitted data written in the storage space is read in the second network.
Optionally, the computer executable instructions, when executed, further comprise: performing the following operations in the second network: performing service processing on the data to be transmitted based on a service processing instruction contained in the data to be transmitted; generating a service processing result based on the service processing, and writing the service processing result into a database of the storage space; triggering a secondary switching instruction; and switching the storage space to be connected with the first network from the second network connection.
Another embodiment of the cross-network data transmission apparatus provided in this specification is as follows:
on the basis of the same technical concept, one or more embodiments of the present specification further provide an inter-network data transmission device, where the device is configured to execute the above-mentioned inter-network data transmission method, and fig. 8 is a schematic structural diagram of another inter-network data transmission device provided in one or more embodiments of the present specification.
As shown in fig. 8, the data transmission device across the network may have a large difference due to different configurations or performances, and may include one or more processors 801 and a memory 802, where the memory 802 may store one or more stored applications or data. Wherein the memory 802 may be a transient storage or a persistent storage. The application program stored in memory 802 may include one or more modules (not shown), each of which may include a series of computer-executable instructions in a cross-network data transfer device. Still further, the processor 801 may be configured to communicate with the memory 802 to execute a series of computer-executable instructions in the memory 802 on the cross-network data transfer device. The cross-network data transmission apparatus may also include one or more power supplies 803, one or more wired or wireless network interfaces 804, one or more input-output interfaces 805, one or more keyboards 806, and the like.
In a particular embodiment, the cross-network data transfer apparatus comprises a memory, and one or more programs, wherein the one or more programs are stored in the memory, and the one or more programs may comprise one or more modules, and each module may comprise a series of computer-executable instructions for the cross-network data transfer apparatus, and the one or more programs configured for execution by the one or more processors comprise computer-executable instructions for:
monitoring a switching instruction for switching the storage space configured by the intermediate module from the connection with the first network to the connection with the second network;
if the switching instruction is not triggered and a data instruction exists in the storage space, triggering the switching instruction;
switching the storage space from being connected with the first network to being connected with the second network based on the switching instruction;
reading the data to be transmitted written from the first network from the storage space.
Optionally, the intermediate module is connected to the first network and the second network respectively, and the storage space is connected to only one of the first network and the second network during operation; and monitoring the intermediate module in the first network and the second network in the process that the storage space is written in the data to be transmitted and the data instruction.
Optionally, the computer executable instructions, when executed, further comprise: performing the following operations in the first network: acquiring data to be transmitted in the first network; and writing the data to be transmitted into a storage space configured by the intermediate module, and writing a data instruction after the data to be transmitted is written.
Optionally, the computer executable instructions, when executed, further comprise: performing service processing on the data to be transmitted based on a service processing instruction contained in the data to be transmitted; and generating a service processing result based on the service processing, and writing the service processing result into the storage space.
Optionally, the computer executable instructions, when executed, further comprise: performing the following operations in the first network: monitoring a secondary switching instruction for switching the storage space from the connection with the second network to the connection with the first network in the intermediate module; and under the condition that the secondary switching instruction is not triggered and a processing completion instruction exists in the storage space, triggering the secondary switching instruction.
An embodiment of a storage medium provided in this specification is as follows:
on the basis of the same technical concept, one or more embodiments of the present specification further provide a storage medium corresponding to the above-described cross-network data transmission method.
The storage medium provided in this embodiment is used to store computer-executable instructions, and when executed, the computer-executable instructions implement the following processes:
acquiring data to be transmitted in a first network;
writing the data to be transmitted into a storage space configured by the intermediate module, and writing a data instruction after the data to be transmitted is written;
triggering a switch instruction for the memory space if the data instruction is written to the memory space;
and switching the storage space from the connection with the first network to the connection with a second network based on the switching instruction so as to read the data to be transmitted from the storage space in the second network.
Optionally, the intermediate module is connected to the first network and the second network respectively, and the storage space is connected to only one of the first network and the second network during operation; and monitoring the intermediate module in the first network and the second network in the process that the storage space is written in the data to be transmitted and the data instruction.
Optionally, when it is monitored that the first network connected to the storage space is switched to the second network, the to-be-transmitted data written in the storage space is read in the second network.
Optionally, the computer executable instructions, when executed, further implement the following process: performing the following operations in the second network: performing service processing on the data to be transmitted based on a service processing instruction contained in the data to be transmitted; generating a service processing result based on the service processing, and writing the service processing result into a database of the storage space; triggering a secondary switching instruction; and switching the storage space to be connected with the first network from the second network connection.
Another storage medium embodiment provided in this specification is as follows:
on the basis of the same technical concept, one or more embodiments of the present specification further provide another storage medium corresponding to the above-described cross-network data transmission method.
The storage medium provided in this embodiment is used to store computer-executable instructions, and when executed, the computer-executable instructions implement the following processes:
monitoring a switching instruction for switching the storage space configured by the intermediate module from the connection with the first network to the connection with the second network;
if the switching instruction is not triggered and a data instruction exists in the storage space, triggering the switching instruction;
switching the storage space from being connected with the first network to being connected with the second network based on the switching instruction;
reading the data to be transmitted written from the first network from the storage space.
Optionally, the intermediate module is connected to the first network and the second network respectively, and the storage space is connected to only one of the first network and the second network during operation; and monitoring the intermediate module in the first network and the second network in the process that the storage space is written in the data to be transmitted and the data instruction.
Optionally, the computer executable instructions, when executed, further implement the following process: performing the following operations in the first network: acquiring data to be transmitted in the first network; and writing the data to be transmitted into a storage space configured by the intermediate module, and writing a data instruction after the data to be transmitted is written.
Optionally, the computer executable instructions, when executed, further implement the following process: performing service processing on the data to be transmitted based on a service processing instruction contained in the data to be transmitted; and generating a service processing result based on the service processing, and writing the service processing result into the storage space.
Optionally, the computer executable instructions, when executed, further implement the following process: performing the following operations in the first network: monitoring a secondary switching instruction for switching the storage space from the connection with the second network to the connection with the first network in the intermediate module; and under the condition that the secondary switching instruction is not triggered and a processing completion instruction exists in the storage space, triggering the secondary switching instruction.
It should be noted that the embodiment of the storage medium in this specification and the embodiment of the user resource processing method in this specification are based on the same inventive concept, and therefore, for specific implementation of this embodiment, reference may be made to implementation of the foregoing corresponding method, and repeated details are not described here.
The foregoing description has been directed to specific embodiments of this disclosure. Other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims may be performed in a different order than in the embodiments and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing may also be possible or may be advantageous.
In the 30 s of the 20 th century, improvements in a technology could clearly be distinguished between improvements in hardware (e.g., improvements in circuit structures such as diodes, transistors, switches, etc.) and improvements in software (improvements in process flow). However, as technology advances, many of today's process flow improvements have been seen as direct improvements in hardware circuit architecture. Designers almost always obtain the corresponding hardware circuit structure by programming an improved method flow into the hardware circuit. Thus, it cannot be said that an improvement in the process flow cannot be realized by hardware physical modules. For example, a Programmable Logic Device (PLD), such as a Field Programmable Gate Array (FPGA), is an integrated circuit whose Logic functions are determined by programming the Device by a user. A digital system is "integrated" on a PLD by the designer's own programming without requiring the chip manufacturer to design and fabricate application-specific integrated circuit chips. Furthermore, nowadays, instead of manually making an Integrated Circuit chip, such Programming is often implemented by "logic compiler" software, which is similar to a software compiler used in program development and writing, but the original code before compiling is also written by a specific Programming Language, which is called Hardware Description Language (HDL), and HDL is not only one but many, such as abel (advanced Boolean Expression Language), ahdl (alternate Hardware Description Language), traffic, pl (core universal Programming Language), HDCal (jhdware Description Language), lang, Lola, HDL, laspam, hardward Description Language (vhr Description Language), vhal (Hardware Description Language), and vhigh-Language, which are currently used in most common. It will also be apparent to those skilled in the art that hardware circuitry that implements the logical method flows can be readily obtained by merely slightly programming the method flows into an integrated circuit using the hardware description languages described above.
The controller may be implemented in any suitable manner, for example, the controller may take the form of, for example, a microprocessor or processor and a computer-readable medium storing computer-readable program code (e.g., software or firmware) executable by the (micro) processor, logic gates, switches, an Application Specific Integrated Circuit (ASIC), a programmable logic controller, and an embedded microcontroller, examples of which include, but are not limited to, the following microcontrollers: ARC 625D, Atmel AT91SAM, Microchip PIC18F26K20, and Silicone Labs C8051F320, the memory controller may also be implemented as part of the control logic for the memory. Those skilled in the art will also appreciate that, in addition to implementing the controller as pure computer readable program code, the same functionality can be implemented by logically programming method steps such that the controller is in the form of logic gates, switches, application specific integrated circuits, programmable logic controllers, embedded microcontrollers and the like. Such a controller may thus be considered a hardware component, and the means included therein for performing the various functions may also be considered as a structure within the hardware component. Or even means for performing the functions may be regarded as being both a software module for performing the method and a structure within a hardware component.
The systems, devices, modules or units illustrated in the above embodiments may be implemented by a computer chip or an entity, or by a product with certain functions. One typical implementation device is a computer. In particular, the computer may be, for example, a personal computer, a laptop computer, a cellular telephone, a camera phone, a smartphone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.
For convenience of description, the above devices are described as being divided into various units by function, and are described separately. Of course, the functions of the units may be implemented in the same software and/or hardware or in multiple software and/or hardware when implementing the embodiments of the present description.
One skilled in the art will recognize that one or more embodiments of the present description may be provided as a method, system, or computer program product. Accordingly, one or more embodiments of the present description may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the description may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The description has been presented with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the description. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, 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 like elements in a process, method, article, or apparatus that comprises the element.
One or more embodiments of the present description may be described in the general context of computer-executable instructions, such as program modules, being executed by a computer. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform particular tasks or implement particular abstract data types. One or more embodiments of the specification may also be practiced in distributed computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed computing environment, program modules may be located in both local and remote computer storage media including memory storage devices.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the system embodiment, since it is substantially similar to the method embodiment, the description is simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
The above description is only an example of this document and is not intended to limit this document. Various modifications and changes may occur to those skilled in the art from this document. Any modifications, equivalents, improvements, etc. which come within the spirit and principle of the disclosure are intended to be included within the scope of the claims of this document.

Claims (26)

1. An inter-network data transmission method, comprising:
acquiring data to be transmitted in a first network;
writing the data to be transmitted into a storage space configured by the intermediate module, and writing a data instruction after the data to be transmitted is written;
triggering a switch instruction for the memory space if the data instruction is written to the memory space;
and switching the storage space from the connection with the first network to the connection with a second network based on the switching instruction so as to read the data to be transmitted from the storage space in the second network.
2. The cross-network data transmission method according to claim 1, wherein the intermediate module is respectively connected with the first network and the second network, and the storage space is connected with only one of the first network and the second network during operation;
and monitoring the intermediate module in the first network and the second network in the process that the storage space is written in the data to be transmitted and the data instruction.
3. The cross-network data transmission method according to claim 1, wherein the data to be transmitted written in the storage space is read in the second network when it is monitored that the first network connected to the storage space is switched to the second network.
4. The cross-network data transmission method according to claim 3, wherein after the data to be transmitted is read in the second network, the following operations are performed in the second network:
performing service processing on the data to be transmitted based on a service processing instruction contained in the data to be transmitted;
generating a service processing result based on the service processing, and writing the service processing result into a database of the storage space;
triggering a secondary switching instruction; switching the storage space from being connected with the second network to being connected with the first network.
5. The cross-network data transmission method according to claim 1, wherein the triggering a switching instruction for the storage space in a case that the data instruction is written into the storage space includes:
inquiring whether the data instruction exists in the storage space;
if so, determining that the data to be transmitted is written completely, and triggering the switching instruction;
if not, returning to execute the substep of inquiring whether the data instruction exists in the storage space.
6. The cross-network data transmission method according to claim 1, applied to a first application in the first network;
and after the switching instruction is triggered, a second application in the second network reads the data to be transmitted from the storage space.
7. The cross-network data transmission method according to claim 1, wherein writing the data to be transmitted into the storage space configured by the intermediate module and writing a data command after the data to be transmitted is written into the storage space, comprises:
writing the data to be transmitted into a database of the storage space and storing the data in the database;
and after the data to be transmitted is written, writing the data instruction into the database and storing the data instruction in the database.
8. The cross-network data transmission method according to claim 1, wherein the storage space is provided by a storage medium configured by the intermediate module, and the storage medium is connected with the intermediate module through a USB interface configured on the intermediate module;
the storage medium includes: and the removable memory is connected with the USB interface.
9. The cross-network data transmission method according to claim 8, wherein the switching instruction is used for controlling an entity key configured on the intermediate module;
the entity key is connected with the intermediate module through a USB interface configured on the intermediate module;
and under the condition that the switching instruction is triggered, the entity key switches the storage space from the current network connection to another network connection.
10. The cross-network data transmission method according to claim 1, wherein the acquiring data to be transmitted in the first network includes:
monitoring that data is generated in the first network, and downloading the data generated in the first network to terminal equipment in the first network;
and acquiring the data and a service processing instruction for processing the data in the second network from the terminal equipment as to-be-transmitted data.
11. An inter-network data transmission method, comprising:
monitoring a switching instruction for switching the storage space configured by the intermediate module from the connection with the first network to the connection with the second network;
if the switching instruction is not triggered and a data instruction exists in the storage space, triggering the switching instruction;
switching the storage space from being connected with the first network to being connected with the second network based on the switching instruction;
and reading the data to be transmitted written from the first network from the storage space.
12. The cross-network data transmission method according to claim 11, wherein the intermediate module is connected to the first network and the second network respectively, and the storage space is connected to only one of the first network and the second network during operation;
and monitoring the intermediate module in the first network and the second network in the process that the storage space is written in the data to be transmitted and the data instruction.
13. The cross-network data transmission method according to claim 11, wherein before the handover command is triggered in the second network, the following operations are performed in the first network:
acquiring data to be transmitted in the first network;
and writing the data to be transmitted into the storage space configured by the intermediate module, and writing the data instruction after the data to be transmitted is written.
14. The cross-network data transmission method according to claim 11, after the step of reading the data to be transmitted written from the first network from the storage space is executed, further comprising:
performing service processing on the data to be transmitted based on a service processing instruction contained in the data to be transmitted;
and generating a service processing result based on the service processing, and writing the service processing result into the storage space.
15. The cross-network data transmission method according to claim 14, wherein after the service processing result is written into the storage space, the following operations are performed in the first network:
monitoring a secondary switching instruction for switching the storage space configured by the intermediate module from the connection with the second network to the connection with the first network;
and if the secondary switching instruction is not triggered and a processing completion instruction exists in the storage space, triggering the secondary switching instruction.
16. The method according to claim 11, wherein the monitoring a handover command for handing over the storage space configured by the intermediate module from the first network connection to the second network connection comprises:
inquiring whether a data instruction exists in the storage space;
if yes, inquiring whether a switching instruction for switching the storage space from the first network connection to the second network connection is triggered;
if not, returning to execute the substep of inquiring whether the data instruction exists in the storage space.
17. The cross-network data transmission method according to claim 11, applied to a second application in the second network;
and after the switching instruction is triggered, a second application in the second network reads the data to be transmitted from the storage space.
18. The cross-network data transmission method according to claim 11, wherein the storage space is provided by a storage medium configured by the intermediate module, and the storage medium is connected with the intermediate module through a USB interface configured on the intermediate module;
the storage medium includes: and the removable memory is connected with the USB interface.
19. The cross-network data transmission method according to claim 17, wherein the switching command is used to control an entity button configured on the intermediate module;
the entity key is connected with the intermediate module through a USB interface configured on the intermediate module;
and under the condition that the switching instruction is triggered, the entity key switches the storage space from the current network connection to another network connection.
20. The cross-network data transmission method according to claim 14, wherein the generating a service processing result based on the service processing and writing the service processing result into the storage space includes:
writing the service processing result into a database of the storage space and storing the service processing result in the database;
and after the writing of the service processing result is completed, writing the processing completion instruction into the database and storing the processing completion instruction in the database.
21. An inter-network data transmission apparatus comprising:
the device comprises an acquisition module, a transmission module and a transmission module, wherein the acquisition module is configured to acquire data to be transmitted in a first network;
the writing module is configured to write the data to be transmitted into the storage space configured by the intermediate module, and write a data instruction after the data to be transmitted is written;
a triggering module configured to trigger a switching instruction for the storage space if the data instruction is written to the storage space;
a switching module configured to switch the storage space from being connected with the first network to being connected with a second network based on the switching instruction, so as to read the data to be transmitted from the storage space in the second network.
22. An inter-network data transmission apparatus comprising:
a monitoring module configured to monitor a switching instruction for switching the storage space configured by the intermediate module from connection with the first network to connection with the second network;
the instruction triggering module is configured to trigger the switching instruction if the switching instruction is not triggered and a data instruction exists in the storage space;
a network switching module configured to switch the storage space from being connected with the first network to being connected with the second network based on the switching instruction;
a reading module configured to read the data to be transmitted written from the first network from the storage space.
23. An inter-network data transmission apparatus comprising:
a processor; and the number of the first and second groups,
a memory configured to store computer-executable instructions that, when executed, cause the processor to:
acquiring data to be transmitted in a first network;
writing the data to be transmitted into a storage space configured by the intermediate module, and writing a data instruction after the data to be transmitted is written;
triggering a switch instruction for the memory space if the data instruction is written to the memory space;
and switching the storage space from the connection with the first network to the connection with a second network based on the switching instruction so as to read the data to be transmitted from the storage space in the second network.
24. An inter-network data transmission apparatus comprising:
a processor; and the number of the first and second groups,
a memory configured to store computer-executable instructions that, when executed, cause the processor to:
monitoring a switching instruction for switching the storage space configured by the intermediate module from the connection with the first network to the connection with the second network;
if the switching instruction is not triggered and a data instruction exists in the storage space, triggering the switching instruction;
switching the storage space from being connected with the first network to being connected with the second network based on the switching instruction;
reading the data to be transmitted written from the first network from the storage space.
25. A storage medium storing computer-executable instructions that when executed implement the following:
acquiring data to be transmitted in a first network;
writing the data to be transmitted into a storage space configured by the intermediate module, and writing a data instruction after the data to be transmitted is written;
triggering a switch instruction for the memory space if the data instruction is written to the memory space;
and switching the storage space from the connection with the first network to the connection with a second network based on the switching instruction so as to read the data to be transmitted from the storage space in the second network.
26. A storage medium storing computer-executable instructions that when executed implement the following:
monitoring a switching instruction for switching the storage space configured by the intermediate module from the connection with the first network to the connection with the second network;
if the switching instruction is not triggered and a data instruction exists in the storage space, triggering the switching instruction;
switching the storage space from being connected with the first network to being connected with the second network based on the switching instruction;
reading the data to be transmitted written from the first network from the storage space.
CN202010997369.XA 2020-09-21 2020-09-21 Cross-network data transmission method and device Pending CN112187759A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010997369.XA CN112187759A (en) 2020-09-21 2020-09-21 Cross-network data transmission method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010997369.XA CN112187759A (en) 2020-09-21 2020-09-21 Cross-network data transmission method and device

Publications (1)

Publication Number Publication Date
CN112187759A true CN112187759A (en) 2021-01-05

Family

ID=73955660

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010997369.XA Pending CN112187759A (en) 2020-09-21 2020-09-21 Cross-network data transmission method and device

Country Status (1)

Country Link
CN (1) CN112187759A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113904896A (en) * 2021-08-18 2022-01-07 北京市大数据中心 Three-network switching gateway for multi-element data fusion platform

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1450460A (en) * 2003-05-16 2003-10-22 杭州展望科技有限公司 SCSI interface network data isolation and switching transmission method and device
EP1404098A2 (en) * 2002-09-30 2004-03-31 Tenovis GmbH & Co. KG Method and system for the establishment of a VoIP telephone call is a secure network
CN108040122A (en) * 2017-12-26 2018-05-15 迈普通信技术股份有限公司 Document transmission method and device
CN109639652A (en) * 2018-11-22 2019-04-16 贵州华云创谷科技有限公司 The method and system of data access between a kind of net based on security isolation
CN210053421U (en) * 2019-08-30 2020-02-11 福建中信网安信息科技有限公司 Network safety isolation device for realizing intranet information safety

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1404098A2 (en) * 2002-09-30 2004-03-31 Tenovis GmbH & Co. KG Method and system for the establishment of a VoIP telephone call is a secure network
CN1450460A (en) * 2003-05-16 2003-10-22 杭州展望科技有限公司 SCSI interface network data isolation and switching transmission method and device
CN108040122A (en) * 2017-12-26 2018-05-15 迈普通信技术股份有限公司 Document transmission method and device
CN109639652A (en) * 2018-11-22 2019-04-16 贵州华云创谷科技有限公司 The method and system of data access between a kind of net based on security isolation
CN210053421U (en) * 2019-08-30 2020-02-11 福建中信网安信息科技有限公司 Network safety isolation device for realizing intranet information safety

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113904896A (en) * 2021-08-18 2022-01-07 北京市大数据中心 Three-network switching gateway for multi-element data fusion platform
CN113904896B (en) * 2021-08-18 2023-11-10 北京市大数据中心 Three-network switching gateway for multi-element data fusion platform

Similar Documents

Publication Publication Date Title
CN111859470B (en) Business data chaining method and device
CN110046187B (en) Data processing system, method and device
CN116405554B (en) Network communication method and device, storage medium and electronic equipment
CN111459724A (en) Node switching method, device, equipment and computer readable storage medium
CN113709696B (en) Vehicle remote control method and device, and key initialization method and device
CN110046052B (en) Service calling method and device
CN112187759A (en) Cross-network data transmission method and device
CN111768303A (en) Transaction processing method, device, equipment and system
CN111355672A (en) Message forwarding method and device
CN110633096B (en) Node control method and device, version control method and device and distributed system
CN114546639A (en) Service call processing method and device
CN112015817A (en) Processing method, device and equipment of block chain data
CN107704502B (en) Routing method, device, equipment and system
CN113254163B (en) Processing method and device of block chain data
CN111163171A (en) Remote control method and device for terminal equipment
CN114546524B (en) Application authority processing method and device
CN117041980B (en) Network element management method and device, storage medium and electronic equipment
CN111796864A (en) Data verification method and device
CN110955653A (en) Data page processing method, device, equipment and computer system
CN110413935B (en) Data information processing method, device and system
CN112019617B (en) Data storage method, device and equipment
CN117093161B (en) Memory management system, method, medium and equipment based on optical transceiver chip
CN110659328B (en) Data query method, device, equipment and computer readable storage medium
CN115941757A (en) IROS robot-oriented management interaction method, equipment and medium
CN115098384A (en) Method and device for testing block chain storage cluster, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20210105