WO2018103454A1 - 一种单向联通的多层网络中的通讯方法和系统 - Google Patents

一种单向联通的多层网络中的通讯方法和系统 Download PDF

Info

Publication number
WO2018103454A1
WO2018103454A1 PCT/CN2017/105893 CN2017105893W WO2018103454A1 WO 2018103454 A1 WO2018103454 A1 WO 2018103454A1 CN 2017105893 W CN2017105893 W CN 2017105893W WO 2018103454 A1 WO2018103454 A1 WO 2018103454A1
Authority
WO
WIPO (PCT)
Prior art keywords
network
layer
layer network
subject
specified
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.)
Ceased
Application number
PCT/CN2017/105893
Other languages
English (en)
French (fr)
Inventor
王哲
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Qihoo Technology Co Ltd
Original Assignee
Beijing Qihoo Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Qihoo Technology Co Ltd filed Critical Beijing Qihoo Technology Co Ltd
Publication of WO2018103454A1 publication Critical patent/WO2018103454A1/zh
Anticipated expiration legal-status Critical
Ceased 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

Definitions

  • the present invention relates to the field of Internet technologies, and in particular, to a communication method and system in a multi-layer network that is unidirectionally connected.
  • FIG. 1 shows a schematic structural diagram of a multi-layer network, which is an intranet 110, a service network 120, and a segregation network 130 from the inner layer to the outer layer.
  • the intranet 110 is an inner layer network with respect to the service network 120 and the isolation network 130
  • the service network 120 is an inner layer network with respect to the isolation network 130
  • the office intranet 110 can access the service network 120 and the isolation network 130.
  • the service network 120 can access the isolation network 130.
  • the isolation network 130 is an outer network with respect to the office intranet 110 and the service network 120, the isolation network 130 can neither access the service network 120 nor access the office intranet 110; the service network 120 is an outer network relative to the office intranet. The service network 120 cannot access the office intranet 110.
  • the present invention has been made in order to provide a communication method and corresponding system in a one-way communication multi-layer network that overcomes the above problems or at least partially solves the above problems.
  • a communication method in a unidirectionally connected multi-layer network wherein an inner layer network can access an outer layer network in the multi-layer network, but an outer layer network cannot access an inner layer network
  • the method includes: the subject B in the Nth layer network determines that there is an interaction with the subject A in the Mth layer network; the subject B in the Nth layer network stores the data related to the interaction item to the Nth layer a specified location in the network; the host A in the M-th network obtains data related to the interaction by accessing a specified location in the Layer N network; wherein the M-th network and the N-th network are the multiple layers Networks of different layers in the network, and the Mth layer network is an inner layer network with respect to the Nth layer network, and M and N are both natural numbers.
  • a communication system in a unidirectionally interconnected multi-layer network in which an inner layer network can access an outer layer network, but an outer layer network cannot access an inner layer Network
  • the The system includes: a subject A in the Mth layer network and a subject B in the layer N network; the subject B is adapted to determine that there is an interaction with the subject A in the Mth layer network, and is adapted to interact with the subject
  • the related data is stored in a specified location in the layer N network; the host A is adapted to obtain data related to the interaction item by accessing a specified location in the layer N network; wherein the layer M network and the layer N network It is a network of different layers in the multi-layer network, and the M-th layer network is an inner layer network with respect to the N-th layer network, and M and N are both natural numbers.
  • a computer program comprising computer readable code, when said computer readable code is run on a computing device, causing said computing device to perform a plurality of layers in accordance with said one-way communication Communication methods in the network.
  • a computer readable medium storing a computer program as described above.
  • the inner layer network in the multi-layer network can access the outer layer network, but the outer layer network cannot access the inner layer network, if the total body of the inner layer network interacts with the subject in the outer layer network, And the outer network needs to send the data related to the interaction item to the inner layer network, then the main body of the outer network stores the data related to the interaction item to a specified location in the outer network; the inner layer network The entity in the real-time obtains data related to the interaction item by accessing a specified location in the outer network, so that the outer network can transmit the data related to the interaction item to the inner layer network, so that the inner layer network obtains the data and then performs the data.
  • the present invention stores data related to the interaction between the inner layer network and the outer layer network to a specified location in the outer network, and the inner layer network obtains corresponding information by accessing the specified location, thereby realizing the timely manner of the outer network.
  • the operation of transmitting data in the inner layer network ensures the operation efficiency of the entire network system.
  • Figure 1 shows a schematic structural view of a multi-layer network
  • FIG. 2 is a flow chart showing a communication method in a one-way communication multi-layer network according to an embodiment of the present invention
  • FIG. 3 is a block diagram showing the structure of a communication system in a unidirectionally connected multi-layer network according to an embodiment of the present invention
  • FIG. 4 is a schematic structural diagram of a communication system in a unidirectionally connected multi-layer network according to another embodiment of the present invention.
  • Figure 5 shows schematically a block diagram of a computing device for performing the method according to the invention
  • Fig. 6 schematically shows a storage unit for holding or carrying program code implementing the method according to the invention.
  • FIG. 2 shows a flow chart of the communication method in the one-way communication multi-layer network according to an embodiment of the present invention. As shown in Figure 2, the method includes:
  • Step S210 the subject B in the Nth layer network determines that there is an interaction with the subject A in the Mth layer network.
  • the Mth layer network and the Nth layer network are networks of different layers in the multi-layer network, and the Mth layer network is an inner layer network with respect to the Nth layer network, and M and N are both natural numbers.
  • the present invention first determines that there is an interaction between the subject B in the Nth layer network and the subject A in the M layer network. If there is an interaction event, the subject B of the Nth layer network needs to transmit related data to the main body A of the M layer network. The method needs to be implemented; if there is no interaction, the method of the present invention may not be implemented.
  • Step S220 the subject B in the Nth layer network stores the data related to the interaction item to a specified location in the Nth layer network.
  • the main body B of the Nth layer network and the main body A of the Mth layer network have interaction items, the main body B of the Nth layer network needs to transmit data related to the interaction matter to the main body A of the Mth layer network.
  • the Mth layer network is an inner layer network relative to the Nth layer network, and the Nth layer network cannot access the Mth layer network, in order to be the main body A of the Mth layer network, timely related data to the interaction item, in the Nth layer network
  • the main body B stores the data related to the interaction item to a specified location in the Nth layer network, where the designated location refers to a place that can be accessed by the subject A in the Mth layer network.
  • Step S230 the host A in the M layer network acquires data related to the interaction item by accessing the specified location in the layer N network.
  • the subject B in the Nth layer network stores the data related to the interaction item to a specified location in the layer N network, and the subject A in the M layer network can obtain the interaction item in time as long as the specified location is accessed. Data for further processing.
  • the data related to the interaction items stored in the specified location in the Nth layer network of the entity B in the layer N network must be related to the interaction item on the one hand, and must also be the M layer on the other hand. Subject A in the network can be perceived.
  • the present invention stores data related to the interaction between the inner layer network and the outer layer network to a specified location in the outer network, and the inner layer network obtains corresponding information by accessing the specified location, thereby realizing the timely manner of the outer network.
  • the operation of transmitting data in the inner layer network ensures the operation efficiency of the entire network system.
  • the data related to the interaction item in step S220 includes one or more of the following:
  • the main body B of the N-th network can store the log data at the designated location.
  • the main body B of the N-th network can store the execution result data of the designated operation at the designated position.
  • the main body B of the N-th network may indicate the M-th network.
  • the flag information of the execution subject performing a specific operation is stored in the specified location. For example, for a certain operation command a including step a1 and step a2, the main body A of the M layer network needs to control the N1 layer network main body B1 to perform step a1, and after the execution of a1, the N2 layer network main body B2 needs to be controlled. Step a2. To ensure the steps A2 goes smoothly.
  • the N1 layer network main body B1 When the N1 layer network main body B1 completes step a1, it needs to complete the flag information 1 of a1 (for example, "1" stands for completion; "0" stands for unfinished) is stored at the specified position, then when the Mth layer After the main body A of the network accesses the designated location to obtain the identification information "1", it will continue to send the instruction to perform the step a2 to the N2 layer network main body B2 to perform the execution of the step a2; if I have not stepped into the step a1, then the M The main body A of the layer network accesses the designated location to obtain the identification information "0", and the main body A of the M-th network does not send the instruction to perform the step a2 to the N2-th network main body B2.
  • the flag information 1 of a1 for example, "1" stands for completion; "0” stands for unfinished
  • the method shown in FIG. 2 further includes The main body A judges whether or not the specified flag information is included in the acquired data; if the specified flag information is included, the main body A performs an operation corresponding to the specified flag information.
  • the operation corresponding to the specified flag information may be pre-stored in an execution logic table in the main body A.
  • the method further includes: the main body A determines the operation corresponding to the specified flag information by querying the first execution logic table saved in advance. .
  • the first execution logic table here stores different flag information and corresponding execution operations. For example, for a certain operation instruction a including step a1 and step a2, "1" represents completion; “0" represents incomplete.
  • the instruction of performing the next step a2 may be sent; if the main body A of the M layer network accesses the designated location, the information is obtained.
  • the identification information "0" indicates that a1 is not executed, and the body A of the Mth layer network does not transmit the instruction to perform step a2.
  • "a2" is used directly to complete; "a1" is not completed.
  • the instruction of performing the next step a2 may be sent; if the main body A of the M layer network accesses the designated location, the information is obtained.
  • the identification information "a1" indicates that a1 is not executed, and the body A of the Mth layer network does not transmit the instruction to execute step a2.
  • the designated location in the N-th network in the present invention can pass the setting of the subject A in the M-th network. Therefore, in an embodiment of the present invention, the method shown in FIG. 2 is further performed before the subject B in the Nth layer network in step S220 stores the data related to the interaction item to a specified position in the layer N network.
  • the method includes: the subject A in the M layer network selects a specified location in the layer N network, and notifies the designated location to the subject B in the layer N network.
  • the subject in the Nth layer network includes one or more, and the subject that interacts with the subject A may also include one or more, and the subjects in each Nth layer network may pass through the respective designated positions.
  • the data stored in the interaction item is stored in the specified location selected by the main body A, then the main body A The corresponding data is obtained by accessing the specified location of the data stored in each of the Nth layer networks.
  • the subject A obtains the data related to the interaction item by accessing the specified location in the layer N network, and may be performed in real time, or may be performed periodically. In an embodiment of the present invention, the subject A in the M layer network in step S230 passes. Accessing a specified location in the Layer N network to obtain data related to the interaction matter includes any of the following:
  • the main body A in the M-th network synchronizes the data related to the interaction matter at the specified position in the N-th network to the local by the rsync method.
  • rsync is a data mirroring backup tool that can quickly synchronize data related to interactive matters to the local of subject A.
  • the subject A in the Mth layer network accesses the specified location in the layer N network at a fixed time point to acquire data related to the interaction item.
  • the fixed time point here can be set as needed, for example, setting the zero point and 12 points of the day to acquire. It is also possible to set a fixed time point and the number of times the data related to the interactive matter is acquired every day, for example, setting twice a day, setting zero and 12 points per day for acquisition.
  • the subject A in the Mth layer network accesses the specified location in the layer N network at a fixed frequency to acquire data related to the interaction item.
  • the fixed frequency here can also be set as needed, for example every four hours.
  • the access frequency here is different from the update frequency of the data in the specified location in the Nth layer network, and is set by a specific situation. If you want to get the latest data as fast as possible, you can access it more frequently; on the contrary, if you get more update data at the most, set the access frequency lower, but you may also miss the middle data.
  • the M-th layer network is an inner layer network relative to the N-th layer network
  • the N-th layer network is internal to the L-th layer network.
  • Layer network When the main body in the L-th network has interaction with the main body of the Mth layer and the Nth layer, the main body in the L-th network of the outer layer can store the data related to the interaction item in the L-th network.
  • the specified location in an embodiment of the present invention, the method shown in FIG.
  • the subject B in the Nth layer network acquires the specified data by accessing a specified location in the layer L network; wherein the layer L network The outer layer network is opposite to the layer N network; the main body B stores the acquired specified data to a specified location in the layer N network, so that the subject A in the layer M network accesses the specified location in the layer N network. Get the specified data.
  • the designated data at the specified position in the layer L network is specifically data related to the interaction of the subject C in the layer L network with the subject A in the layer M network.
  • the subject A in the M layer network can also obtain the designated data by accessing the specified location in the layer L network.
  • the main B in the N-th network needs to access the L-th network.
  • the specified location acquires the specified data; the principal B stores the acquired specified data to a specified location in the layer N network, so that the principal A in the layer M network obtains the designated data by accessing the specified location in the layer N network.
  • a certain operation command a includes the steps a1 and a2, and the L-th network main body C is required to perform the step a1 and the main B of the N-th network to perform the step a2, and only after the step a1 is executed, the main body of the N-th network B can perform step a2.
  • the data of the completion a1 needs to be stored at the designated position, and the main body B of the N-th network accesses the L-th layer.
  • the specified position of the network will continue to execute step a2.
  • the main body B will complete the data of a1 and the data of the completion step a2 are stored in the designated position of the Nth network, then the Mth The body A of the layer network accesses the specified location of the layer N network to obtain the execution of the entire operation instruction a.
  • FIG. 3 shows a schematic structural diagram of a communication system in the one-way communication multi-layer network according to an embodiment of the present invention.
  • the communication system 300 in the one-way communication multi-layer network includes: a main body A310 in the M-th network and a main body B320 in the N-th network.
  • the main body B320 is adapted to determine that there is an interaction with the main body A 310 in the M-th network, and is adapted to store data related to the interaction item to a specified location in the N-th network.
  • the Mth layer network and the Nth layer network are networks of different layers in the multi-layer network, and the Mth layer network is an inner layer network with respect to the Nth layer network, and M and N are both natural numbers.
  • the present invention first determines that there is an interaction between the main body B320 in the Nth layer network and the main body A310 in the Mth layer network. If there is an interaction event, the main body B320 of the Nth layer network needs to transmit related data to the main body A310 of the Mth layer network. The method needs to be implemented; if there is no interaction, the method of the present invention may not be implemented.
  • the body B320 of the Nth layer network needs to transmit data related to the interaction matter to the body A310 of the Mth layer network.
  • the Mth layer network is an inner layer network relative to the layer N network, and the layer N network cannot access the layer M network.
  • the data related to the interaction matter is timely, in the Nth layer network.
  • the main body B stores the data related to the interaction item to a specified position in the Nth layer network, where the designated position refers to a place that can be accessed by the main body A310 in the Mth layer network.
  • the main body A310 is adapted to obtain data related to the interaction item by accessing a specified location in the layer N network.
  • the main body B320 in the Nth layer network stores the data related to the interaction item to a specified location in the Nth layer network, and the subject A310 in the M layer network can obtain the interaction item in time as long as the specified location is accessed. Data for further processing.
  • the data related to the interaction items stored in the specified location in the Nth layer network in the Nth layer network must be related to the interaction item on the one hand, and must also be the M layer on the other hand.
  • the subject A310 in the network can be perceived.
  • the present invention stores data related to the interaction between the inner layer network and the outer layer network to a specified location in the outer network, and the inner layer network obtains corresponding information by accessing the specified location, thereby realizing the outer layer network to the inner layer network in time.
  • the operation of transmitting data ensures the operational efficiency of the entire network system.
  • the data related to the interactive matter includes one or more of the following:
  • the main body B320 of the N-th network can store the log data at the designated position.
  • the body B320 of the N-th network can store the execution result data of the specified operation at the specified position.
  • the main B320 of the N-th network may indicate the M-th network.
  • the flag information of the execution subject performing a specific operation is stored in the specified location. For example, for a certain operation command a including step a1 and step a2, the main body A310 of the M layer network needs to control the N1 layer network main body B1 to perform step a1, and after the execution of a1, the N2 layer network main body B2 needs to be controlled. Step a2.
  • the Nth layer network main body B1 completes the step a1
  • the flag information 1 of a1 for example, "1" stands for completion; "0” stands for unfinished
  • the instruction of the step a2 is continuously sent to the N2 layer network main body B2 to perform the execution of the step a2; if not, I press the step a1.
  • the host A310 of the M layer network accesses the designated location to obtain the identifier information “0”, and the host A310 of the M layer network does not send the instruction of step a2 to the N2 layer network host B2.
  • the main body A310 is further adapted to determine Whether the specified data is included in the acquired data; if the specified flag information is included, the operation corresponding to the specified flag information is performed.
  • the operation corresponding to the specified flag information may be pre-stored in an execution logic table in the main body A310, and the main body A310 is adapted to determine an operation corresponding to the specified flag information by querying the first execution logic table saved in advance.
  • the first execution logic table stores different flag information and corresponding execution operations. For example, for a certain operation instruction a including step a1 and step a2, "1" represents completion; “0" represents incomplete.
  • the instruction of performing the next step a2 may be sent; if the main body A of the M layer network accesses the designated location, the information is obtained.
  • the identification information "0" indicates that a1 is not executed, and the body A of the Mth layer network does not transmit the instruction to perform step a2.
  • "a2" is used directly to complete; "a1" is not completed.
  • the instruction of performing the next step a2 may be sent; if the main body A of the M layer network accesses the designated location, the information is obtained.
  • the identification information "a1" indicates that a1 is not executed, and the body A310 of the Mth layer network does not transmit an instruction to execute step a2.
  • the designated location in the Nth layer network in the present invention may pass through the setting of the subject A310 in the Mth layer network. Therefore, in one embodiment of the present invention, the main body A310 is further adapted to select a designated location in the Nth layer network and notify the designated B1 to the subject B320 in the Nth layer network.
  • the subject in the Nth layer network includes one or more, and the subject that interacts with the subject A may also include one or more, and the subjects in each Nth layer network may pass through the respective designated positions.
  • the designated location selected by the main body A is stored in the data related to the interaction item, and the main body A310 obtains the corresponding data by separately accessing the designated position of the main storage data in each Nth layer network.
  • the main body A 310 can obtain the data related to the interaction item by accessing the specified location in the Nth layer network, or can be performed in a real time. In an embodiment of the present invention, the main body A310 accesses the Nth layer network.
  • the specified location in the network to obtain data related to the interaction item includes any of the following:
  • the subject A310 in the M-th layer network synchronizes the data related to the interaction matter at the specified position in the N-th layer network to the local by the rsync method.
  • rsync is a data mirroring backup tool that can quickly synchronize data related to interactive matters to the local A310.
  • the subject A310 in the Mth layer network accesses a specified location in the layer N network at a fixed time point to acquire data related to the interaction item.
  • the fixed time point here can be set as needed, for example, setting the zero point and 12 points of the day to acquire. It is also possible to set a fixed time point and the number of times the data related to the interactive matter is acquired every day, for example, setting twice a day, setting zero and 12 points per day for acquisition.
  • the subject A310 in the Mth layer network accesses a specified location in the layer N network at a fixed frequency to acquire data related to the interaction item.
  • the fixed frequency here can also be set as needed, for example every four hours.
  • the access frequency here is different from the update frequency of the data in the specified location in the Nth layer network, and is set by a specific situation. If you want to get the latest data as fast as possible, you can access it more frequently; on the contrary, if you get more update data at the most, set the access frequency lower, but you may also miss the middle data.
  • the M-th layer network is an inner layer network relative to the N-th layer network
  • the N-th layer network is internal to the L-th layer network.
  • Layer network When the main body in the L-th network has interaction with the main body of the Mth layer and the Nth layer, the main body in the L-th network of the outer layer can store the data related to the interaction item in the L-th network.
  • the specified location. 4 is a block diagram showing the structure of a communication system in a one-way communication multi-layer network according to another embodiment of the present invention. As shown in FIG.
  • the communication system 400 in the unidirectionally-connected multi-layer network includes a main body A310 in the M-th network, a main B 420 in the N-th network, and a main C 430 in the L-th network.
  • the main body A410 in the M layer network and the main body B420 in the Nth layer network have the same functions and the same functions as the main body A310 in the Mth layer network shown in FIG. Part will not go into details here.
  • the main body B420 is further adapted to acquire the designated data by accessing a specified location in the layer L network;
  • the layer L network is an outer layer network with respect to the layer N network; and is adapted to acquire The specified data is stored in a specified location in the layer N network, such that the body A 410 in the layer M network obtains the specified data by accessing a specified location in the layer N network.
  • the main body 430 is adapted to store data related to the interaction matter of the subject A in the M layer network to the Lth At a specified location in the layer network.
  • the subject A in the M layer network can also obtain the designated data by accessing the specified location in the layer L network.
  • the main B in the N-th network needs to access the L-th network.
  • the specified location acquires the specified data; the principal B stores the acquired specified data to a specified location in the layer N network, so that the principal A in the layer M network obtains the designated data by accessing the specified location in the layer N network.
  • a certain operation command a includes the steps a1 and a2, and the L-th network main body C is required to perform the step a1 and the main B of the N-th network to perform the step a2, and only after the step a1 is executed, the main body of the N-th network B can perform step a2.
  • the data of the completion a1 needs to be stored at the designated position, and the main body B of the N-th network accesses the L-th layer.
  • the specified position of the network will continue to execute step a2.
  • the main body B will complete the data of a1 and the data of the completion step a2 are stored in the designated position of the Nth network, then the Mth The body A of the layer network accesses the specified location of the layer N network to obtain the execution of the entire operation instruction a.
  • the inner layer network in the multi-layer network can access the outer layer network, but the outer layer network cannot access the inner layer network, if the inner layer network has the main body and the outer layer network The subject has interaction items, and the outer network needs to send data related to the interaction item to the inner layer network, then the entity of the outer network stores a data related to the interaction item to a specified in the outer network.
  • the entity in the inner layer network acquires data related to the interaction item in real time by accessing a specified location in the outer network, so that the outer network can transmit the data related to the interaction item to the inner layer network, so that the inner layer
  • the network obtains the data and performs further processing, thereby solving the problem that the outer network cannot transmit information to the inner layer network.
  • the present invention stores data related to the interaction between the inner layer network and the outer layer network to a specified location in the outer network, and the inner layer network obtains corresponding information by accessing the specified location, thereby realizing the outer layer network to the inner layer network in time.
  • the operation of transmitting data ensures the operational efficiency of the entire network system.
  • modules in the devices of the embodiments can be adaptively changed and placed in one or more devices different from the embodiment.
  • the modules or units or components of the embodiments may be combined into one module or unit or component, and further they may be divided into a plurality of sub-modules or sub-units or sub-components.
  • any combination of the features disclosed in the specification, including the accompanying claims, the abstract and the drawings, and any methods so disclosed, or All processes or units of the device are combined.
  • Each feature disclosed in this specification (including the accompanying claims, the abstract and the drawings) may be replaced by alternative features that provide the same, equivalent or similar purpose.
  • the various component embodiments of the present invention may be implemented in hardware, or in a software module running on one or more processors, or in a combination thereof.
  • a microprocessor or digital signal processor may be used in practice to implement some or all of the components of a communication system in a unidirectionally interconnected multi-layer network in accordance with an embodiment of the present invention.
  • the invention can also be implemented as a device or device program (e.g., a computer program and a computer program product) for performing some or all of the methods described herein.
  • Such a program implementing the invention may be stored on a computer readable medium or may be in the form of one or more signals. Such signals may be downloaded from an Internet website, provided on a carrier signal, or provided in any other form.
  • Figure 5 shows a block diagram of a computing device for performing the method in accordance with the present invention.
  • the computing device A processor 510 and a computer program product or computer readable medium in the form of a memory 520 are conventionally included.
  • the memory 520 may be an electronic memory such as a flash memory, an EEPROM (Electrically Erasable Programmable Read Only Memory), an EPROM, a hard disk, or a ROM.
  • Memory 520 has a storage space 530 that stores program code 531 for performing any of the method steps described above.
  • the storage space 530 for storing program code may separately store respective program codes 531 for implementing various steps in the above method.
  • the program code can be read from or written to one or more computer program products.
  • Such computer program products include program code carriers such as hard disks, compact disks (CDs), memory cards or floppy disks.
  • Such a computer program product is typically a portable or fixed storage unit such as that shown in FIG.
  • the storage unit may have storage segments, storage spaces, and the like that are similarly arranged to memory 520 in the computing device of FIG.
  • the program code can be compressed in an appropriate form.
  • the storage unit stores computer readable program code 531' for performing the steps of the method according to the present invention, ie program code readable by a processor such as 510, when the program code is run by the computing device, resulting in The computing device performs the various steps in the methods described above.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Computer Security & Cryptography (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

本发明公开了一种单向联通的多层网络中的通讯方法和系统。该方法包括:第N层网络中的主体B确定存在与第M层网络中的主体A的交互事项;第N层网络中的主体B将与交互事项相关的数据存放到第N层网络中的指定位置;第M层网络中的主体A通过访问第N层网络中的指定位置获取与交互事项相关的数据;其中,第M层网络和第N层网络是多层网络中的不同层的网络,且第M层网络相对于第N层网络是内层网络,M和N均为自然数。本发明将与内层网络和外层网络交互事项相关的数据存放到外层网络中的指定位置,内层网络就通过访问该指定位置获得相应信息,实现外层网络及时向内层网络传输数据的操作,保证整个网络系统的运行效率。

Description

一种单向联通的多层网络中的通讯方法和系统 技术领域
本发明涉及互联网技术领域,具体涉及一种单向联通的多层网络中的通讯方法和系统。
背景技术
在互联网技术领域中,一般都是包含内层网络和外层网络的多层网络,在这种多层网络中,内层网络可以访问外层网络,但外层网络不能访问内层网络。图1示出了一种多层网络的结构示意图,从内层到外层依次是办公内网110、服务网120、隔离网130。如图2所示,办公内网110相对于服务网120和隔离网130是内层网络,服务网120相对于隔离网130是内层网络;办公内网110可以访问服务网120和隔离网130,服务网120可以访问隔离网130。因为隔离网130相对于办公内网110和服务网120是外层网络,隔离网130既不能访问服务网120,也不能访问办公内网110;服务网120相对于办公内网是外层网络,服务网120不能访问办公内网110。
但是,当外层网络中出现变更或者需要向内层网络传输相关信息的时候,因为外层网络不能访问内层网络,就会造成信息不能及时传输给内层网络,内层网络不能及时获得相关信息,进而影响整个网络系统的运行效率。
发明内容
鉴于上述问题,提出了本发明以便提供一种克服上述问题或者至少部分地解决上述问题的单向联通的多层网络中的通讯方法和相应的系统。
依据本发明的一个方面,提供了一种单向联通的多层网络中的通讯方法,其中,在所述多层网络中内层网络可以访问外层网络,但外层网络不能访问内层网络,该方法包括:第N层网络中的主体B确定存在与第M层网络中的主体A的交互事项;第N层网络中的主体B将与所述交互事项相关的数据存放到第N层网络中的指定位置;第M层网络中的主体A通过访问第N层网络中的指定位置获取与所述交互事项相关的数据;其中,第M层网络和第N层网络是所述多层网络中的不同层的网络,且第M层网络相对于第N层网络是内层网络,M和N均为自然数。
根据本发明的另一方面,提供了一种单向联通的多层网络中的通讯系统,其中,在所述多层网络中内层网络可以访问外层网络,但外层网络不能访问内层网络,该 系统包括:第M层网络中的主体A和第N层网络中的主体B;主体B,适于确定存在与第M层网络中的主体A的交互事项,以及适于将与所述交互事项相关的数据存放到第N层网络中的指定位置;主体A,适于通过访问第N层网络中的指定位置获取与所述交互事项相关的数据;其中,第M层网络和第N层网络是所述多层网络中的不同层的网络,且第M层网络相对于第N层网络是内层网络,M和N均为自然数。
依据本发明的又一方面,提供了一种计算机程序,包括计算机可读代码,当所述计算机可读代码在计算设备上运行时,导致所述计算设备执行根据上述的单向联通的多层网络中的通讯方法。
依据本发明的再一方面,提供了一种计算机可读介质,其中存储了如上所述的计算机程序。
根据本发明的技术方案,当多层网络中内层网络可以访问外层网络,但外层网络不能访问内层网络的时候,如果内层网络总的主体与外层网络中的主体存在交互事项,且外层网络需要将与交互事项相关的数据发送给内层网络,那么,外层网络的主体就将与所述交互事项相关的数据存放到外层网络中的一个指定位置;内层网络中的主体通过访问外层网络中的指定位置实时获取与所述交互事项相关的数据,这样外层网络就可以通过将交互事项相关的数据传输给内层网络,以便内层网络获得数据后进行进一步的处理,进而解决了外层网络不能将信息传输给内层网络的问题。综上所述,本发明将与内层网络和外层网络交互事项相关的数据存放到外层网络中的指定位置,内层网络就通过访问该指定位置获得相应信息,实现外层网络及时向内层网络传输数据的操作,保证整个网络系统的运行效率。
上述说明仅是本发明技术方案的概述,为了能够更清楚了解本发明的技术手段,而可依照说明书的内容予以实施,并且为了让本发明的上述和其它目的、特征和优点能够更明显易懂,以下特举本发明的具体实施方式。
附图说明
通过阅读下文优选实施方式的详细描述,各种其他的优点和益处对于本领域普通技术人员将变得清楚明了。附图仅用于示出优选实施方式的目的,而并不认为是对本发明的限制。而且在整个附图中,用相同的参考符号表示相同的部件。在附图中:
图1示出了一种多层网络的结构示意图;
图2示出了根据本发明一个实施例的单向联通的多层网络中的通讯方法的流程示意图;
图3示出了根据本发明一个实施例的单向联通的多层网络中的通讯系统的结构示意图;
图4示出了根据本发明另一个实施例的单向联通的多层网络中的通讯系统的结构示意图;
图5示意性地示出了用于执行根据本发明的方法的计算设备的框图;以及
图6示意性地示出了用于保持或者携带实现根据本发明的方法的程序代码的存储单元。
具体实施例
下面将参照附图更详细地描述本公开的示例性实施例。虽然附图中显示了本公开的示例性实施例,然而应当理解,可以以各种形式实现本公开而不应被这里阐述的实施例所限制。相反,提供这些实施例是为了能够更透彻地理解本公开,并且能够将本公开的范围完整的传达给本领域的技术人员。
在多层网络中内层网络可以访问外层网络,但外层网络不能访问内层网络。为了解决外层网络因不能范围内层网络而无法实现信息传输的问题,图2示出了根据本发明一个实施例的单向联通的多层网络中的通讯方法的流程示意图。如图2所示,该方法包括:
步骤S210,第N层网络中的主体B确定存在与第M层网络中的主体A的交互事项。
其中,第M层网络和第N层网络是多层网络中的不同层的网络,且第M层网络相对于第N层网络是内层网络,M和N均为自然数。
例如,根据图1所示,第M层网络相对于第N层网络是内层网络,可以取M=1,即第一层网络是办公内网110,取N=2,即第二层网络是服务网120;或者取M=1,即第一层网络是办公内网110,取N=3,即第三层网络是隔离网130。
本发明首先确定第N层网络中的主体B与第M层网络中的主体A存在交互事项,如果存在交互事项,说明第N层网络的主体B需要向第M层网络的主体A传输相关数据,需要实施本方法;如果没有交互事项,则可以不实施本发明中的方法。
步骤S220,第N层网络中的主体B将与交互事项相关的数据存放到第N层网络中的指定位置。
如果第N层网络的主体B和第M层网络的主体A存在交互事项,那么第N层网络的主体B需要向第M层网络的主体A传输交互事项相关的数据。但是第M层网络相对于第N层网络是内层网络,第N层网络不能访问第M层网络,为了是第M层网络的主体A及时的到交互事项相关的数据,第N层网络中的主体B将与交互事项相关的数据存放到第N层网络中的指定位置,这里的指定位置是指可以被第M层网络中的主体A访问到的地方。
步骤S230,第M层网络中的主体A通过访问第N层网络中的指定位置获取与交互事项相关的数据。
第N层网络中的主体B将与交互事项相关的数据存放到第N层网络中的指定位置,那么第M层网络中的主体A只要访问该指定位置,就可以及时的获得交互事项相关的数据,以便进行下一步处理。
还需要说明的是,第N层网络中的主体B存放在第N层网络中的指定位置中的交互事项相关的数据一方面是必须和交互事项相关的,另一方面还必须是第M层网络中的主体A可以感知的。
综上所述,本发明将与内层网络和外层网络交互事项相关的数据存放到外层网络中的指定位置,内层网络就通过访问该指定位置获得相应信息,实现外层网络及时向内层网络传输数据的操作,保证整个网络系统的运行效率。
在本发明的一个实施例中,步骤S220中的与交互事项相关的数据包括如下中的一种或多种:
(1)日志数据。
当第M层网络中的主体A需要获取第N层网络的主体B的系统操作事件的记录时,第N层网络的主体B就可以将日志数据存放在指定位置。
(2)指定操作的执行结果数据。
当第M层网络中的主体A需要获取第N层网络的主体B的某一指定操作的执行情况时,第N层网络的主体B就可以将指定操作的执行结果数据存放在指定位置。
(3)指示第M层网络中的执行主体执行特定操作的标志信息。
当第M层网络中的主体A需要根据第N层网络的主体B的某一指定操作的执行情况进行下一步的操作时,第N层网络的主体B就可以将指示第M层网络中的执行主体执行特定操作的标志信息存放在指定位置。例如,对于某一操作指令a包括步骤a1和步骤a2,需要第M层网络的主体A分别控制第N1层网络主体B1进行步骤a1,当a1执行完毕后还需要控制第N2层网络主体B2进行步骤a2。为了保证步骤 a2的顺利进行,当第N1层网络主体B1完成步骤a1后,需要将完成a1的标志信息1(例如“1”代表完成;“0”代表未完成)存放在指定位置,那么当第M层网络的主体A访问该指定位置获取标识信息“1”后,会继续将执行步骤a2的指令发送给第N2层网络主体B2进行步骤a2的执行;如果还没有我按成步骤a1,则第M层网络的主体A访问该指定位置会获取标识信息“0”,第M层网络的主体A不会向第N2层网络主体B2发送进行步骤a2的指令。
如果第M层网络中的主体A需要根据第N层网络的主体B的某一指定操作的执行情况进行下一步的操作时,在本发明的一个实施例中,图2所示的方法进一步包括:主体A判断所获取的数据中是否包含指定标志信息;如果包含指定标志信息,则主体A执行与指定标志信息所对应的操作。
其中,指定标志信息所对应的操作可以预先存放在主体A中的一个执行逻辑表中,则上述方法进一步包括:主体A通过查询预先保存的第一执行逻辑表,确定与指定标志信息对应的操作。
这里的第一执行逻辑表中保存了不同的标志信息和相对应的执行操作。例如,对于某一操作指令a包括步骤a1和步骤a2,“1”代表完成;“0”代表未完成。当第M层网络的主体A访问指定位置获取标识信息“1”后,说明a1已经执行完毕,则可以发送执行下一步骤a2的指令;如果第M层网络的主体A访问该指定位置会获取标识信息“0”,说明a1没有被执行,则第M层网络的主体A不会发送进行步骤a2的指令。或者,直接用“a2”代表完成;“a1”代表未完成。当第M层网络的主体A访问指定位置获取标识信息“a2”后,说明a1已经执行完毕,则可以发送执行下一步骤a2的指令;如果第M层网络的主体A访问该指定位置会获取标识信息“a1”,说明a1没有被执行,则第M层网络的主体A不会发送执行步骤a2的指令。
为了确保第M层网络中的主体A一定可以实现指定位置的访问,本发明中的第N层网络中的指定位置可以经过第M层网络中的主体A的设定。所以,在本发明的一个实施例中,在步骤S220中的第N层网络中的主体B将与交互事项相关的数据存放到第N层网络中的指定位置之前,图2所示的方法进一步包括:第M层网络中的主体A选定第N层网络中的指定位置,并将该指定位置通知给第N层网络中的主体B。
需要说明的是,第N层网络中的主体包含一个或者多个,那么与主体A存在交互事项的主体也可以包含一个或多个,每个第N层网络中的主体可以通过各自的指定位置或者通过主体A选定的指定位置存放于交互事项相关的数据,那么主体A通 过分别访问每个第N层网络中的主体存放数据的指定位置获得相应的数据。
主体A通过访问第N层网络中的指定位置获取与交互事项相关的数据可以实时进行,也可以定期进行,在本发明的一个实施例中,步骤S230中的第M层网络中的主体A通过访问第N层网络中的指定位置获取与交互事项相关的数据包括如下中的任一种:
(1)第M层网络中的主体A通过rsync方式将第N层网络中的指定位置处的与交互事项相关的数据同步到本地。
这里的rsync是一种数据镜像备份工具,可以快速将与交互事项相关的数据同步到主体A的本地。
(2)第M层网络中的主体A在固定时间点访问第N层网络中的指定位置来获取与交互事项相关的数据。
这里的固定时间点可以根据需要进行设定,例如,设定每天的零点和12点进行获取。也可以同时设定固定时间点以及每天获取交互事项相关的数据的次数,例如,设定每天获取两次,设定每天的零点和12点进行获取。
(3)第M层网络中的主体A以固定频率访问第N层网络中的指定位置来获取与交互事项相关的数据。
这里的固定频率也可以根据需要进行设定,例如每四个小时访问一次。
需要说明的是,这里的访问频率不同于第N层网络中的指定位置中的数据的更新频率,是通过具体情况进行设定。如果希望以最快的速度获取到最新的数据,则可以访问频率高一些;相反,如果最大程度的获取较多的更新数据,则设定访问频率低一些,但是也可能错过中间的数据。
当存在多层网络时,例如存在第M层、第N层、第L层网络时,第M层网络相对于第N层网络是内层网络、第N层网络相对于第L层网络是内层网。当第L层网络中的主体与第M层、第N层的主体均有交互事项时,那么最外层的第L层网络中的主体可以将交互事项相关的数据存放在第L层网络中的指定位置,在本发明的一个实施例中,图2所示的方法进一步包括:第N层网络中的主体B通过访问第L层网络中的指定位置获取指定数据;其中,第L层网络相对于第N层网络是外层网络;主体B将所获取的指定数据存放到第N层网络中的指定位置,从而使得第M层网络中的主体A通过访问第N层网络中的指定位置获取该指定数据。
这里的第L层网络中的指定位置处的指定数据,具体是第L层网络中的主体C与第M层网络中的主体A的交互事项相关的数据。
需要说明的是,第M层网络中的主体A同样也可以通过访问第L层网络中的指定位置获取指定数据。
但是当第L层网络中的主体与第M层、第N层的主体存在的交互事项是层层递进的关系时,就需要第N层网络中的主体B通过访问第L层网络中的指定位置获取指定数据;主体B将所获取的指定数据存放到第N层网络中的指定位置,从而使得第M层网络中的主体A通过访问第N层网络中的指定位置获取该指定数据。例如,某一操作指令a包括步骤a1和步骤a2,需要第L层网络主体C进行步骤a1以及第N层网络的主体B进行步骤a2,且只有步骤a1执行完毕后,第N层网络的主体B才能执行步骤a2。为了第M层主体A需要获得整个操作指令的执行结果,当第L层网络主体C完成步骤a1后,需要将完成a1的数据存放在指定位置,当第N层网络的主体B访问第L层网络的指定位置获取完成a1的数据后,会继续将执行步骤a2,完成步骤a2后,主体B将完成a1的数据以及完成步骤a2的数据一通存放在第N层网络的指定位置,则第M层网络的主体A访问第N层网络的指定位置会获取整个操作指令a的执行情况。
在多层网络中内层网络可以访问外层网络,但外层网络不能访问内层网络。为了解决外层网络因不能范围内层网络而无法实现信息传输的问题,图3示出了根据本发明一个实施例的单向联通的多层网络中的通讯系统的结构示意图。如图3所示,该单向联通的多层网络中的通讯系统300包括:第M层网络中的主体A310和第N层网络中的主体B320。
主体B320,适于确定存在与第M层网络中的主体A310的交互事项,以及适于将与交互事项相关的数据存放到第N层网络中的指定位置。
其中,第M层网络和第N层网络是多层网络中的不同层的网络,且第M层网络相对于第N层网络是内层网络,M和N均为自然数。
例如,根据图1所示,第M层网络相对于第N层网络是内层网络,可以取M=1,即第一层网络是办公内网110,取N=2,即第二层网络是服务网120;或者取M=1,即第一层网络是办公内网110,取N=3,即第三层网络是隔离网130。
本发明首先确定第N层网络中的主体B320与第M层网络中的主体A310存在交互事项,如果存在交互事项,说明第N层网络的主体B320需要向第M层网络的主体A310传输相关数据,需要实施本方法;如果没有交互事项,则可以不实施本发明中的方法。
如果第N层网络的主体B320和第M层网络的主体A310存在交互事项,那么 第N层网络的主体B320需要向第M层网络的主体A310传输交互事项相关的数据。但是第M层网络相对于第N层网络是内层网络,第N层网络不能访问第M层网络,为了是第M层网络的主体A310及时的到交互事项相关的数据,第N层网络中的主体B将与交互事项相关的数据存放到第N层网络中的指定位置,这里的指定位置是指可以被第M层网络中的主体A310访问到的地方。
主体A310,适于通过访问第N层网络中的指定位置获取与交互事项相关的数据。
第N层网络中的主体B320将与交互事项相关的数据存放到第N层网络中的指定位置,那么第M层网络中的主体A310只要访问该指定位置,就可以及时的获得交互事项相关的数据,以便进行下一步处理。
还需要说明的是,第N层网络中的主体B320存放在第N层网络中的指定位置中的交互事项相关的数据一方面是必须和交互事项相关的,另一方面还必须是第M层网络中的主体A310可以感知的。
可见,本发明将与内层网络和外层网络交互事项相关的数据存放到外层网络中的指定位置,内层网络就通过访问该指定位置获得相应信息,实现外层网络及时向内层网络传输数据的操作,保证整个网络系统的运行效率。
在本发明的一个实施例中,与交互事项相关的数据包括如下中的一种或多种:
(1)日志数据。
当第M层网络中的主体A310需要获取第N层网络的主体B320的系统操作事件的记录时,第N层网络的主体B320就可以将日志数据存放在指定位置。
(2)指定操作的执行结果数据。
当第M层网络中的主体A310需要获取第N层网络的主体B320的某一指定操作的执行情况时,第N层网络的主体B320就可以将指定操作的执行结果数据存放在指定位置。
(3)指示第M层网络中的执行主体执行特定操作的标志信息。
当第M层网络中的主体A310需要根据第N层网络的主体B320的某一指定操作的执行情况进行下一步的操作时,第N层网络的主体B320就可以将指示第M层网络中的执行主体执行特定操作的标志信息存放在指定位置。例如,对于某一操作指令a包括步骤a1和步骤a2,需要第M层网络的主体A310分别控制第N1层网络主体B1进行步骤a1,当a1执行完毕后还需要控制第N2层网络主体B2进行步骤a2。为了保证步骤a2的顺利进行,当第N1层网络主体B1完成步骤a1后,需要将完成a1的标志信息1(例如“1”代表完成;“0”代表未完成)存放在指定位置,那么当 第M层网络的主体A310访问该指定位置获取标识信息“1”后,会继续将执行步骤a2的指令发送给第N2层网络主体B2进行步骤a2的执行;如果还没有我按成步骤a1,则第M层网络的主体A310访问该指定位置会获取标识信息“0”,第M层网络的主体A310不会向第N2层网络主体B2发送进行步骤a2的指令。
如果第M层网络中的主体A310需要根据第N层网络的主体B320的某一指定操作的执行情况进行下一步的操作时,在本发明的一个实施例中,主体A310,进一步适于判断所获取的数据中是否包含指定标志信息;如果包含指定标志信息,则执行与指定标志信息所对应的操作。
其中,指定标志信息所对应的操作可以预先存放在主体A310中的一个执行逻辑表中,主体A310,适于通过查询预先保存的第一执行逻辑表,确定与指定标志信息对应的操作。
其中,第一执行逻辑表中保存了不同的标志信息和相对应的执行操作。例如,对于某一操作指令a包括步骤a1和步骤a2,“1”代表完成;“0”代表未完成。当第M层网络的主体A访问指定位置获取标识信息“1”后,说明a1已经执行完毕,则可以发送执行下一步骤a2的指令;如果第M层网络的主体A访问该指定位置会获取标识信息“0”,说明a1没有被执行,则第M层网络的主体A不会发送进行步骤a2的指令。或者,直接用“a2”代表完成;“a1”代表未完成。当第M层网络的主体A访问指定位置获取标识信息“a2”后,说明a1已经执行完毕,则可以发送执行下一步骤a2的指令;如果第M层网络的主体A访问该指定位置会获取标识信息“a1”,说明a1没有被执行,则第M层网络的主体A310不会发送执行步骤a2的指令。
为了确保第M层网络中的主体A310一定可以实现指定位置的访问,本发明中的第N层网络中的指定位置可以经过第M层网络中的主体A310的设定。所以,在本发明的一个实施例中,主体A310,进一步适于选定第N层网络中的指定位置,并将该指定位置通知给第N层网络中的主体B320。
需要说明的是,第N层网络中的主体包含一个或者多个,那么与主体A存在交互事项的主体也可以包含一个或多个,每个第N层网络中的主体可以通过各自的指定位置或者通过主体A选定的指定位置存放于交互事项相关的数据,那么主体A310通过分别访问每个第N层网络中的主体存放数据的指定位置获得相应的数据。
主体A310通过访问第N层网络中的指定位置获取与交互事项相关的数据可以实时进行,也可以定期进行,在本发明的一个实施例中,主体A310通过访问第N层网 络中的指定位置获取与交互事项相关的数据包括如下中的任一种:
(1)第M层网络中的主体A310通过rsync方式将第N层网络中的指定位置处的与交互事项相关的数据同步到本地。
这里的rsync是一种数据镜像备份工具,可以快速将与交互事项相关的数据同步到主体A310的本地。
(2)第M层网络中的主体A310在固定时间点访问第N层网络中的指定位置来获取与交互事项相关的数据。
这里的固定时间点可以根据需要进行设定,例如,设定每天的零点和12点进行获取。也可以同时设定固定时间点以及每天获取交互事项相关的数据的次数,例如,设定每天获取两次,设定每天的零点和12点进行获取。
(3)第M层网络中的主体A310以固定频率访问第N层网络中的指定位置来获取与交互事项相关的数据。
这里的固定频率也可以根据需要进行设定,例如每四个小时访问一次。
需要说明的是,这里的访问频率不同于第N层网络中的指定位置中的数据的更新频率,是通过具体情况进行设定。如果希望以最快的速度获取到最新的数据,则可以访问频率高一些;相反,如果最大程度的获取较多的更新数据,则设定访问频率低一些,但是也可能错过中间的数据。
当存在多层网络时,例如存在第M层、第N层、第L层网络时,第M层网络相对于第N层网络是内层网络、第N层网络相对于第L层网络是内层网。当第L层网络中的主体与第M层、第N层的主体均有交互事项时,那么最外层的第L层网络中的主体可以将交互事项相关的数据存放在第L层网络中的指定位置。图4示出了根据本发明另一个实施例的单向联通的多层网络中的通讯系统的结构示意图。如图4所示,该单向联通的多层网络中的通讯系统400包括:第M层网络中的主体A310、第N层网络中的主体B420和第L层网络中的主体C430。其中,第M层网络中的主体A410、第N层网络中的主体B420与图3所示的第M层网络中的主体A310、第N层网络中的主体B320具有对应相同的功能,相同的部分在此不再赘述。
在本发明的一个实施例中,主体B420,进一步适于通过访问第L层网络中的指定位置获取指定数据;第L层网络相对于第N层网络是外层网络;以及适于将所获取的指定数据存放到第N层网络中的指定位置,从而使得第M层网络中的主体A410通过访问第N层网络中的指定位置获取该指定数据。
主体430,适于将与第M层网络中的主体A的交互事项相关的数据存放到第L 层网络中的指定位置处的。
需要说明的是,第M层网络中的主体A同样也可以通过访问第L层网络中的指定位置获取指定数据。
但是当第L层网络中的主体与第M层、第N层的主体存在的交互事项是层层递进的关系时,就需要第N层网络中的主体B通过访问第L层网络中的指定位置获取指定数据;主体B将所获取的指定数据存放到第N层网络中的指定位置,从而使得第M层网络中的主体A通过访问第N层网络中的指定位置获取该指定数据。例如,某一操作指令a包括步骤a1和步骤a2,需要第L层网络主体C进行步骤a1以及第N层网络的主体B进行步骤a2,且只有步骤a1执行完毕后,第N层网络的主体B才能执行步骤a2。为了第M层主体A需要获得整个操作指令的执行结果,当第L层网络主体C完成步骤a1后,需要将完成a1的数据存放在指定位置,当第N层网络的主体B访问第L层网络的指定位置获取完成a1的数据后,会继续将执行步骤a2,完成步骤a2后,主体B将完成a1的数据以及完成步骤a2的数据一通存放在第N层网络的指定位置,则第M层网络的主体A访问第N层网络的指定位置会获取整个操作指令a的执行情况。
综上所述,根据本发明的技术方案,当多层网络中内层网络可以访问外层网络,但外层网络不能访问内层网络的时候,如果内层网络总的主体与外层网络中的主体存在交互事项,且外层网络需要将与交互事项相关的数据发送给内层网络,那么,外层网络的主体就将与所述交互事项相关的数据存放到外层网络中的一个指定位置;内层网络中的主体通过访问外层网络中的指定位置实时获取与所述交互事项相关的数据,这样外层网络就可以通过将交互事项相关的数据传输给内层网络,以便内层网络获得数据后进行进一步的处理,进而解决了外层网络不能将信息传输给内层网络的问题。可见,本发明将与内层网络和外层网络交互事项相关的数据存放到外层网络中的指定位置,内层网络就通过访问该指定位置获得相应信息,实现外层网络及时向内层网络传输数据的操作,保证整个网络系统的运行效率。
需要说明的是:
在此提供的算法和显示不与任何特定计算机、虚拟装置或者其它设备固有相关。各种通用装置也可以与基于在此的示教一起使用。根据上面的描述,构造这类装置所要求的结构是显而易见的。此外,本发明也不针对任何特定编程语言。应当明白,可以利用各种编程语言实现在此描述的本发明的内容,并且上面对特定语言所做的描述是为了披露本发明的最佳实施方式。
在此处所提供的说明书中,说明了大量具体细节。然而,能够理解,本发明的实施例可以在没有这些具体细节的情况下实践。在一些实例中,并未详细示出公知的方法、结构和技术,以便不模糊对本说明书的理解。
类似地,应当理解,为了精简本公开并帮助理解各个发明方面中的一个或多个,在上面对本发明的示例性实施例的描述中,本发明的各个特征有时被一起分组到单个实施例、图、或者对其的描述中。然而,并不应将该公开的方法解释成反映如下意图:即所要求保护的本发明要求比在每个权利要求中所明确记载的特征更多的特征。更确切地说,如下面的权利要求书所反映的那样,发明方面在于少于前面公开的单个实施例的所有特征。因此,遵循具体实施方式的权利要求书由此明确地并入该具体实施方式,其中每个权利要求本身都作为本发明的单独实施例。
本领域那些技术人员可以理解,可以对实施例中的设备中的模块进行自适应性地改变并且把它们设置在与该实施例不同的一个或多个设备中。可以把实施例中的模块或单元或组件组合成一个模块或单元或组件,以及此外可以把它们分成多个子模块或子单元或子组件。除了这样的特征和/或过程或者单元中的至少一些是相互排斥之外,可以采用任何组合对本说明书(包括伴随的权利要求、摘要和附图)中公开的所有特征以及如此公开的任何方法或者设备的所有过程或单元进行组合。除非另外明确陈述,本说明书(包括伴随的权利要求、摘要和附图)中公开的每个特征可以由提供相同、等同或相似目的的替代特征来代替。
此外,本领域的技术人员能够理解,尽管在此所述的一些实施例包括其它实施例中所包括的某些特征而不是其它特征,但是不同实施例的特征的组合意味着处于本发明的范围之内并且形成不同的实施例。例如,在下面的权利要求书中,所要求保护的实施例的任意之一都可以以任意的组合方式来使用。
本发明的各个部件实施例可以以硬件实现,或者以在一个或者多个处理器上运行的软件模块实现,或者以它们的组合实现。本领域的技术人员应当理解,可以在实践中使用微处理器或者数字信号处理器(DSP)来实现根据本发明实施例的单向联通的多层网络中的通讯系统中的一些或者全部部件的一些或者全部功能。本发明还可以实现为用于执行这里所描述的方法的一部分或者全部的设备或者装置程序(例如,计算机程序和计算机程序产品)。这样的实现本发明的程序可以存储在计算机可读介质上,或者可以具有一个或者多个信号的形式。这样的信号可以从因特网网站上下载得到,或者在载体信号上提供,或者以任何其他形式提供。
例如,图5示出了用于执行根据本发明的方法的计算设备的框图。该计算设备 传统上包括处理器510和以存储器520形式的计算机程序产品或者计算机可读介质。存储器520可以是诸如闪存、EEPROM(电可擦除可编程只读存储器)、EPROM、硬盘或者ROM之类的电子存储器。存储器520具有存储用于执行上述方法中的任何方法步骤的程序代码531的存储空间530。例如,用于存储程序代码的存储空间530可以分别存储用于实现上面的方法中的各种步骤的各个程序代码531。这些程序代码可以从一个或者多个计算机程序产品中读出或者写入到这一个或者多个计算机程序产品中。这些计算机程序产品包括诸如硬盘,紧致盘(CD)、存储卡或者软盘之类的程序代码载体。这样的计算机程序产品通常为例如图6所示的便携式或者固定存储单元。该存储单元可以具有与图5的计算设备中的存储器520类似布置的存储段、存储空间等。程序代码可以以适当形式进行压缩。通常,存储单元存储有用于执行根据本发明的方法步骤的计算机可读程序代码531’,即可以由诸如510之类的处理器读取的程序代码,当这些程序代码由计算设备运行时,导致该计算设备执行上面所描述的方法中的各个步骤。
应该注意的是上述实施例对本发明进行说明而不是对本发明进行限制,并且本领域技术人员在不脱离所附权利要求的范围的情况下可设计出替换实施例。在权利要求中,不应将位于括号之间的任何参考符号构造成对权利要求的限制。单词“包含”不排除存在未列在权利要求中的元件或步骤。位于元件之前的单词“一”或“一个”不排除存在多个这样的元件。本发明可以借助于包括有若干不同元件的硬件以及借助于适当编程的计算机来实现。在列举了若干装置的单元权利要求中,这些装置中的若干个可以是通过同一个硬件项来具体体现。单词第一、第二、以及第三等的使用不表示任何顺序。可将这些单词解释为名称。
此外,还应当注意,本说明书中使用的语言主要是为了可读性和教导的目的而选择的,而不是为了解释或者限定本发明的主题而选择的。因此,在不偏离所附权利要求书的范围和精神的情况下,对于本技术领域的普通技术人员来说许多修改和变更都是显而易见的。对于本发明的范围,对本发明所做的公开是说明性的,而非限制性的,本发明的范围由所附权利要求书限定。

Claims (18)

  1. 一种单向联通的多层网络中的通讯方法,其中,在所述多层网络中内层网络可以访问外层网络,但外层网络不能访问内层网络,该方法包括:
    第N层网络中的主体B确定存在与第M层网络中的主体A的交互事项;
    第N层网络中的主体B将与所述交互事项相关的数据存放到第N层网络中的指定位置;以及
    第M层网络中的主体A通过访问第N层网络中的指定位置获取与所述交互事项相关的数据;
    其中,第M层网络和第N层网络是所述多层网络中的不同层的网络,且第M层网络相对于第N层网络是内层网络,M和N均为自然数。
  2. 如权利要求1所述的方法,其中,所述与所述交互事项相关的数据包括如下中的一种或多种:
    日志数据;
    指定操作的执行结果数据;以及
    指示第M层网络中的执行主体执行特定操作的标志信息。
  3. 如权利要求1所述的方法,其中,该方法进一步包括:
    主体A判断所获取的数据中是否包含指定标志信息;以及
    如果包含指定标志信息,则主体A执行与所述指定标志信息所对应的操作。
  4. 如权利要求3所述的方法,其中,该方法进一步包括:
    主体A通过查询预先保存的第一执行逻辑表,确定与所述指定标志信息对应的操作;
    其中所述第一执行逻辑表中保存了不同的标志信息和相对应的执行操作。
  5. 如权利要求1所述的方法,其中,在第N层网络中的主体B将与所述交互事项相关的数据存放到第N层网络中的指定位置之前,该方法进一步包括:
    第M层网络中的主体A选定第N层网络中的指定位置,并将该指定位置通知给第N层网络中的主体B。
  6. 如权利要求1所述的方法,其中,所述第M层网络中的主体A通过 访问第N层网络中的指定位置获取与所述交互事项相关的数据包括如下中的任一种:
    第M层网络中的主体A通过rsync方式将第N层网络中的指定位置处的与所述交互事项相关的数据同步到本地;
    第M层网络中的主体A在固定时间点访问第N层网络中的指定位置来获取与所述交互事项相关的数据;以及
    第M层网络中的主体A以固定频率访问第N层网络中的指定位置来获取与所述交互事项相关的数据。
  7. 如权利要求1所述的方法,其中,该方法进一步包括:
    第N层网络中的主体B通过访问第L层网络中的指定位置获取指定数据;第L层网络相对于第N层网络是外层网络;以及
    主体B将所获取的指定数据存放到第N层网络中的指定位置,从而使得第M层网络中的主体A通过访问第N层网络中的指定位置获取该指定数据。
  8. 如权利要求7所述的方法,其中,
    第L层网络中的指定位置处的指定数据,具体是第L层网络中的主体C与第M层网络中的主体A的交互事项相关的数据。
  9. 一种单向联通的多层网络中的通讯系统,其中,在所述多层网络中内层网络可以访问外层网络,但外层网络不能访问内层网络,该系统包括:第M层网络中的主体A和第N层网络中的主体B;
    主体B,适于确定存在与第M层网络中的主体A的交互事项,以及适于将与所述交互事项相关的数据存放到第N层网络中的指定位置;以及
    主体A,适于通过访问第N层网络中的指定位置获取与所述交互事项相关的数据;
    其中,第M层网络和第N层网络是所述多层网络中的不同层的网络,且第M层网络相对于第N层网络是内层网络,M和N均为自然数。
  10. 如权利要求9所述的通讯系统,其中,所述与所述交互事项相关的数据包括如下中的一种或多种:
    日志数据;
    指定操作的执行结果数据;以及
    指示第M层网络中的执行主体执行特定操作的标志信息。
  11. 如权利要求9所述的通讯系统,其中,
    所述主体A,进一步适于判断所获取的数据中是否包含指定标志信息;如果包含指定标志信息,则执行与所述指定标志信息所对应的操作。
  12. 如权利要求11所述的通讯系统,其中,
    所述主体A,适于通过查询预先保存的第一执行逻辑表,确定与所述指定标志信息对应的操作;
    其中所述第一执行逻辑表中保存了不同的标志信息和相对应的执行操作。
  13. 如权利要求9所述的通讯系统,其中,
    所述主体A,进一步适于选定第N层网络中的指定位置,并将该指定位置通知给第N层网络中的主体B。
  14. 如权利要求9所述的通讯系统,其中,
    所述主体A通过访问第N层网络中的指定位置获取与所述交互事项相关的数据包括如下中的任一种:
    适于通过rsync方式将第N层网络中的指定位置处的与所述交互事项相关的数据同步到本地;
    适于在固定时间点访问第N层网络中的指定位置来获取与所述交互事项相关的数据;以及
    适于以固定频率访问第N层网络中的指定位置来获取与所述交互事项相关的数据。
  15. 如权利要求9所述的通讯系统,其中,
    所述主体B,进一步适于通过访问第L层网络中的指定位置获取指定数据;第L层网络相对于第N层网络是外层网络;以及适于将所获取的指定数据存放到第N层网络中的指定位置,从而使得第M层网络中的主体A通过访问第N层网络中的指定位置获取该指定数据。
  16. 如权利要求15所述的通讯系统,其中,进一步包括:L层网络中的主体C:
    主体C,适于将与第M层网络中的主体A的交互事项相关的数据存放到第L层网络中的指定位置处的。
  17. 一种计算机程序,包括计算机可读代码,当所述计算机可读代码在 计算设备上运行时,导致所述计算设备执行根据权利要求1-8中的任一个所述的单向联通的多层网络中的通讯方法。
  18. 一种计算机可读介质,其中存储了如权利要求17所述的计算机程序。
PCT/CN2017/105893 2016-12-09 2017-10-12 一种单向联通的多层网络中的通讯方法和系统 Ceased WO2018103454A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201611132403.7 2016-12-09
CN201611132403.7A CN106657043A (zh) 2016-12-09 2016-12-09 一种单向联通的多层网络中的通讯方法和系统

Publications (1)

Publication Number Publication Date
WO2018103454A1 true WO2018103454A1 (zh) 2018-06-14

Family

ID=58825020

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/105893 Ceased WO2018103454A1 (zh) 2016-12-09 2017-10-12 一种单向联通的多层网络中的通讯方法和系统

Country Status (2)

Country Link
CN (1) CN106657043A (zh)
WO (1) WO2018103454A1 (zh)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106657043A (zh) * 2016-12-09 2017-05-10 北京奇虎科技有限公司 一种单向联通的多层网络中的通讯方法和系统

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020042832A1 (en) * 2000-08-14 2002-04-11 Fallentine Mark D. System and method for interoperability of H.323 video conferences with network address translation
CN105208043A (zh) * 2015-10-13 2015-12-30 网易(杭州)网络有限公司 外网代理模块、内网代理模块、数据传输方法及系统
CN106060011A (zh) * 2016-05-12 2016-10-26 浪潮软件集团有限公司 内外网交互方法、自助办税系统、外网装置及内网装置
CN106657043A (zh) * 2016-12-09 2017-05-10 北京奇虎科技有限公司 一种单向联通的多层网络中的通讯方法和系统

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020042832A1 (en) * 2000-08-14 2002-04-11 Fallentine Mark D. System and method for interoperability of H.323 video conferences with network address translation
CN105208043A (zh) * 2015-10-13 2015-12-30 网易(杭州)网络有限公司 外网代理模块、内网代理模块、数据传输方法及系统
CN106060011A (zh) * 2016-05-12 2016-10-26 浪潮软件集团有限公司 内外网交互方法、自助办税系统、外网装置及内网装置
CN106657043A (zh) * 2016-12-09 2017-05-10 北京奇虎科技有限公司 一种单向联通的多层网络中的通讯方法和系统

Also Published As

Publication number Publication date
CN106657043A (zh) 2017-05-10

Similar Documents

Publication Publication Date Title
US10679210B2 (en) Blockchain transaction commitment ordering
US8140512B2 (en) Consolidated information retrieval results
US10360897B2 (en) System and method for crowd-sourced data labeling
WO2016091069A1 (zh) 一种数据操作方法及装置
US10105593B2 (en) File prefetching for gaming applications accessed by electronic devices
US9405523B2 (en) Automated build and deploy system
WO2017101642A1 (zh) 分布式系统的数据节点升级方法及装置
CN106682021B (zh) 数据库迁移方法及装置
CN109189612A (zh) 一种Linux内核异常时的日志处理方法及电子设备
CN106897123B (zh) 数据库操作方法及装置
CN105608143A (zh) 多副本数据一致性的检测方法及装置
CN105843937A (zh) 数据处理方法和装置
US20230238120A1 (en) Equipment utilization and healthcare technology management platform
CN110348711A (zh) 一种基于差错预判的案件质检方法、装置和电子设备
CN106991071B (zh) 内核调度方法及系统
CN108769157B (zh) 消息弹窗的展示方法、装置、计算设备及计算机存储介质
CN106873970A (zh) 一种操作系统的安装方法和装置
US8583873B2 (en) Multiport data cache apparatus and method of controlling the same
WO2016101751A1 (zh) 一种分布式存储系统中的主从平衡方法和装置
CN106227769B (zh) 数据存储方法及装置
US20180218793A1 (en) Physician examination scheduling system and processes to self-report symptoms for an examination
CN110990329B (zh) 一种联邦计算高可用方法、设备及介质
US20180329900A1 (en) Prediction models for concurrency control types
US20250132058A1 (en) Systems and Methods for Adaptive Electronic Medical Record Filtering Leveraging Dynamic Parsing Configuration
CN106776775B (zh) 并发主从同步方法及装置

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17878407

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 17878407

Country of ref document: EP

Kind code of ref document: A1