patents.google.com

CN106657043A - Communication method and system in multi-layer networks in unidirectional connection - Google Patents

  • ️Wed May 10 2017

发明内容Contents of the invention

鉴于上述问题,提出了本发明以便提供一种克服上述问题或者至少部分地解决上述问题的单向联通的多层网络中的通讯方法和相应的系统。In view of the above problems, the present invention is proposed to provide a communication method in a multi-layer network with unidirectional communication and a corresponding system that overcomes the above problems or at least partially solves the above problems.

依据本发明的一个方面,提供了一种单向联通的多层网络中的通讯方法,其中,在所述多层网络中内层网络可以访问外层网络,但外层网络不能访问内层网络,该方法包括:According to one aspect of the present invention, a communication method in a one-way multi-layer network is provided, wherein in the multi-layer network, the inner network can access the outer network, but the outer network cannot access the inner network , the method includes:

第N层网络中的主体B确定存在与第M层网络中的主体A的交互事项;Agent B in the N-tier network determines that there is an interaction with Agent A in the M-tier network;

第N层网络中的主体B将与所述交互事项相关的数据存放到第N层网络中的指定位置;The subject B in the N-tier network stores the data related to the interaction item in a designated location in the N-tier network;

第M层网络中的主体A通过访问第N层网络中的指定位置获取与所述交互事项相关的数据;Subject A in the M-tier network obtains data related to the interaction item by accessing a designated location in the N-tier network;

其中,第M层网络和第N层网络是所述多层网络中的不同层的网络,且第M层网络相对于第N层网络是内层网络,M和N均为自然数。Wherein, the M-layer network and the N-layer network are networks of different layers in the multi-layer network, and the M-layer network is an inner layer network relative to the N-layer network, and both M and N are natural numbers.

可选地,所述与所述交互事项相关的数据包括如下中的一种或多种:Optionally, the data related to the interaction item includes one or more of the following:

日志数据;log data;

指定操作的执行结果数据;The execution result data of the specified operation;

指示第M层网络中的执行主体执行特定操作的标志信息。Flag information that instructs the execution subject in the M-th layer network to perform a specific operation.

可选地,该方法进一步包括:Optionally, the method further includes:

主体A判断所获取的数据中是否包含指定标志信息;Subject A judges whether the acquired data contains specified flag information;

如果包含指定标志信息,则主体A执行与所述指定标志信息所对应的操作。If specified flag information is included, subject A performs an operation corresponding to the specified flag information.

可选地,该方法进一步包括:Optionally, the method further includes:

主体A通过查询预先保存的第一执行逻辑表,确定与所述指定标志信息对应的操作;Subject A determines the operation corresponding to the specified flag information by querying the pre-saved first execution logic table;

其中所述第一执行逻辑表中保存了不同的标志信息和相对应的执行操作。Wherein the first execution logic table stores different flag information and corresponding execution operations.

可选地,在第N层网络中的主体B将与所述交互事项相关的数据存放到第N层网络中的指定位置之前,该方法进一步包括:Optionally, before the subject B in the N-tier network stores the data related to the interaction item in a specified location in the N-tier network, the method further includes:

第M层网络中的主体A选定第N层网络中的指定位置,并将该指定位置通知给第N层网络中的主体B。Subject A in the M-th layer network selects a designated location in the N-layer network, and notifies the designated location to the subject B in the N-layer network.

可选地,所述第M层网络中的主体A通过访问第N层网络中的指定位置获取与所述交互事项相关的数据包括如下中的任一种:Optionally, the subject A in the M-tier network accessing a designated location in the N-tier network to obtain data related to the interaction item includes any of the following:

第M层网络中的主体A通过rsync方式将第N层网络中的指定位置处的与所述交互事项相关的数据同步到本地;The subject A in the M-layer network synchronizes the data related to the interaction items at the specified location in the N-layer network to the local through rsync;

第M层网络中的主体A在固定时间点访问第N层网络中的指定位置来获取与所述交互事项相关的数据;以及Subject A in the M-tier network accesses a designated location in the N-tier network at a fixed point in time to obtain data related to the interaction item; and

第M层网络中的主体A以固定频率访问第N层网络中的指定位置来获取与所述交互事项相关的数据。The subject A in the M-th layer network accesses a designated location in the N-th layer network at a fixed frequency to obtain data related to the interaction item.

可选地,该方法进一步包括:Optionally, the method further includes:

第N层网络中的主体B通过访问第L层网络中的指定位置获取指定数据;第L层网络相对于第N层网络是外层网络;Subject B in the N-tier network obtains the specified data by accessing the specified location in the L-tier network; the L-tier network is an outer network relative to the N-tier network;

主体B将所获取的指定数据存放到第N层网络中的指定位置,从而使得第M层网络中的主体A通过访问第N层网络中的指定位置获取该指定数据。The subject B stores the obtained specified data in a specified location in the N-layer network, so that the subject A in the M-layer network obtains the specified data by accessing the specified location in the N-layer network.

可选地,第L层网络中的指定位置处的指定数据,具体是第L层网络中的主体C与第M层网络中的主体A的交互事项相关的数据。Optionally, the specified data at a specified location in the L-tier network, specifically data related to the interaction between subject C in the L-tier network and subject A in the M-tier network.

根据本发明的另一方面,提供了一种单向联通的多层网络中的通讯系统,其中,在所述多层网络中内层网络可以访问外层网络,但外层网络不能访问内层网络,该系统包括:第M层网络中的主体A和第N层网络中的主体B;According to another aspect of the present invention, a communication system in a multi-layer network with one-way communication is provided, wherein in the multi-layer network, the inner network can access the outer network, but the outer network cannot access the inner layer network, the system includes: subject A in the M-layer network and subject B in the N-tier network;

主体B,适于确定存在与第M层网络中的主体A的交互事项,以及适于将与所述交互事项相关的数据存放到第N层网络中的指定位置;Subject B is adapted to determine that there is an interaction item with subject A in the M-tier network, and is suitable for storing data related to the interaction item in a specified location in the N-tier network;

主体A,适于通过访问第N层网络中的指定位置获取与所述交互事项相关的数据;Subject A is adapted to obtain data related to the interaction item by accessing a designated location in the N-tier network;

其中,第M层网络和第N层网络是所述多层网络中的不同层的网络,且第M层网络相对于第N层网络是内层网络,M和N均为自然数。Wherein, the M-layer network and the N-layer network are networks of different layers in the multi-layer network, and the M-layer network is an inner layer network relative to the N-layer network, and both M and N are natural numbers.

可选地,所述与所述交互事项相关的数据包括如下中的一种或多种:Optionally, the data related to the interaction item includes one or more of the following:

日志数据;log data;

指定操作的执行结果数据;The execution result data of the specified operation;

指示第M层网络中的执行主体执行特定操作的标志信息。Flag information that instructs the execution subject in the M-th layer network to perform a specific operation.

可选地,所述主体A,进一步适于判断所获取的数据中是否包含指定标志信息;如果包含指定标志信息,则执行与所述指定标志信息所对应的操作。Optionally, the subject A is further adapted to judge whether the acquired data contains designated flag information; if it contains designated flag information, perform an operation corresponding to the designated flag information.

可选地,所述主体A,适于通过查询预先保存的第一执行逻辑表,确定与所述指定标志信息对应的操作;Optionally, the subject A is adapted to determine the operation corresponding to the specified flag information by querying a pre-saved first execution logic table;

其中所述第一执行逻辑表中保存了不同的标志信息和相对应的执行操作。Wherein the first execution logic table stores different flag information and corresponding execution operations.

可选地,所述主体A,进一步适于选定第N层网络中的指定位置,并将该指定位置通知给第N层网络中的主体B。Optionally, the subject A is further adapted to select a specified location in the N-tier network, and notify the specified location to the subject B in the N-tier network.

可选地,所述主体A通过访问第N层网络中的指定位置获取与所述交互事项相关的数据包括如下中的任一种:Optionally, the subject A obtaining data related to the interaction item by accessing a specified location in the N-tier network includes any of the following:

适于通过rsync方式将第N层网络中的指定位置处的与所述交互事项相关的数据同步到本地;It is suitable for synchronizing data related to the interaction item at a specified location in the N-layer network to the local through rsync;

适于在固定时间点访问第N层网络中的指定位置来获取与所述交互事项相关的数据;以及adapted to access a designated location in the N-tier network at a fixed point in time to obtain data related to the interaction item; and

适于以固定频率访问第N层网络中的指定位置来获取与所述交互事项相关的数据。It is suitable for accessing a specified location in the N-layer network at a fixed frequency to obtain data related to the interaction item.

可选地,所述主体B,进一步适于通过访问第L层网络中的指定位置获取指定数据;第L层网络相对于第N层网络是外层网络;以及适于将所获取的指定数据存放到第N层网络中的指定位置,从而使得第M层网络中的主体A通过访问第N层网络中的指定位置获取该指定数据。Optionally, the subject B is further adapted to obtain specified data by accessing a specified location in the L-th layer network; the L-th layer network is an external network relative to the N-th layer network; and is suitable for the obtained specified data Stored in a specified location in the N-tier network, so that subject A in the M-tier network can obtain the specified data by accessing the specified location in the N-tier network.

可选地,进一步包括:L层网络中的主体C:Optionally, further include: subject C in the L-layer network:

主体C,适于将与第M层网络中的主体A的交互事项相关的数据存放到第L层网络中的指定位置处的。The subject C is suitable for storing the data related to the interaction items of the subject A in the M-th layer network to a designated location in the L-th layer network.

根据本发明的技术方案,当多层网络中内层网络可以访问外层网络,但外层网络不能访问内层网络的时候,如果内层网络总的主体与外层网络中的主体存在交互事项,且外层网络需要将与交互事项相关的数据发送给内层网络,那么,外层网络的主体就将与所述交互事项相关的数据存放到外层网络中的一个指定位置;内层网络中的主体通过访问外层网络中的指定位置实时获取与所述交互事项相关的数据,这样外层网络就可以通过将交互事项相关的数据传输给内层网络,以便内层网络获得数据后进行进一步的处理,进而解决了外层网络不能将信息传输给内层网络的问题。综上所述,本发明将与内层网络和外层网络交互事项相关的数据存放到外层网络中的指定位置,内层网络就通过访问该指定位置获得相应信息,实现外层网络及时向内层网络传输数据的操作,保证整个网络系统的运行效率。According to the technical solution of the present invention, when the inner network in the multi-layer network can access the outer network, but the outer network cannot access the inner network, if there is an interaction between the main body of the inner network and the main body of the outer network , and the outer network needs to send the data related to the interaction item to the inner network, then the main body of the outer network will store the data related to the interaction item in a designated location in the outer network; the inner network The main body in the network obtains the data related to the interaction item in real time by accessing the specified location in the outer network, so that the outer network can transmit the data related to the interaction item to the inner network, so that the inner network can carry out after obtaining the data. Further processing further solves the problem that the outer network cannot transmit information to the inner network. To sum up, the present invention stores the data related to the interaction between the inner network and the outer network in a designated location in the outer network, and the inner network obtains corresponding information by accessing the designated location, so that the outer network can timely report to The operation of transmitting data in the inner layer network ensures the operating efficiency of the entire network system.

上述说明仅是本发明技术方案的概述,为了能够更清楚了解本发明的技术手段,而可依照说明书的内容予以实施,并且为了让本发明的上述和其它目的、特征和优点能够更明显易懂,以下特举本发明的具体实施方式。The above description is only an overview of the technical solution of the present invention. In order to better understand the technical means of the present invention, it can be implemented according to the contents of the description, and in order to make the above and other purposes, features and advantages of the present invention more obvious and understandable , the specific embodiments of the present invention are enumerated below.

具体实施方式detailed description

下面将参照附图更详细地描述本公开的示例性实施例。虽然附图中显示了本公开的示例性实施例,然而应当理解,可以以各种形式实现本公开而不应被这里阐述的实施例所限制。相反,提供这些实施例是为了能够更透彻地理解本公开,并且能够将本公开的范围完整的传达给本领域的技术人员。Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited by the embodiments set forth herein. Rather, these embodiments are provided for more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.

在多层网络中内层网络可以访问外层网络,但外层网络不能访问内层网络。为了解决外层网络因不能范围内层网络而无法实现信息传输的问题,图2示出了根据本发明一个实施例的单向联通的多层网络中的通讯方法的流程示意图。如图2所示,该方法包括:In a multi-layer network, the inner network can access the outer network, but the outer network cannot access the inner network. In order to solve the problem that the outer layer network cannot realize the information transmission because the inner layer network cannot reach, FIG. 2 shows a schematic flowchart of a communication method in a multi-layer network with one-way communication according to an embodiment of the present invention. As shown in Figure 2, the method includes:

步骤S210,第N层网络中的主体B确定存在与第M层网络中的主体A的交互事项。In step S210, subject B in the N-tier network determines that there is an interaction with subject A in the M-tier network.

其中,第M层网络和第N层网络是多层网络中的不同层的网络,且第M层网络相对于第N层网络是内层网络,M和N均为自然数。Wherein, the M-th layer network and the N-th layer network are networks of different layers in the multi-layer network, and the M-th layer network is an inner layer network relative to the N-th layer network, and both M and N are natural numbers.

例如,根据图1所示,第M层网络相对于第N层网络是内层网络,可以取M=1,即第一层网络是办公内网110,取N=2,即第二层网络是服务网120;或者取M=1,即第一层网络是办公内网110,取N=3,即第三层网络是隔离网130。For example, as shown in Figure 1, the M-th layer network is an inner layer network relative to the N-th layer network, and M=1 can be taken, that is, the first layer network is the office intranet 110, and N=2, that is, the second layer network is the service network 120;

本发明首先确定第N层网络中的主体B与第M层网络中的主体A存在交互事项,如果存在交互事项,说明第N层网络的主体B需要向第M层网络的主体A传输相关数据,需要实施本方法;如果没有交互事项,则可以不实施本发明中的方法。The present invention first determines that there is an interaction between subject B in the N-tier network and subject A in the M-tier network, and if there is an interaction item, it means that subject B in the N-tier network needs to transmit relevant data to subject A in the M-tier network , the method needs to be implemented; if there is no interaction item, the method in the present invention may not be implemented.

步骤S220,第N层网络中的主体B将与交互事项相关的数据存放到第N层网络中的指定位置。In step S220, subject B in the N-tier network stores the data related to the interaction items in a designated location in the N-tier network.

如果第N层网络的主体B和第M层网络的主体A存在交互事项,那么第N层网络的主体B需要向第M层网络的主体A传输交互事项相关的数据。但是第M层网络相对于第N层网络是内层网络,第N层网络不能访问第M层网络,为了是第M层网络的主体A及时的到交互事项相关的数据,第N层网络中的主体B将与交互事项相关的数据存放到第N层网络中的指定位置,这里的指定位置是指可以被第M层网络中的主体A访问到的地方。If there is an interaction between subject B of the N-tier network and subject A of the M-tier network, subject B of the N-tier network needs to transmit data related to the interaction event to subject A of the M-tier network. However, the M-layer network is an inner layer network compared to the N-layer network, and the N-layer network cannot access the M-layer network. In order for the subject A of the M-layer network to obtain the data related to the interaction in a timely manner, the N-layer network The subject B of the entity B stores the data related to the interaction items in a designated location in the N-layer network, where the designated location refers to a place that can be accessed by the subject A in the M-layer network.

步骤S230,第M层网络中的主体A通过访问第N层网络中的指定位置获取与交互事项相关的数据。In step S230, subject A in the M-tier network obtains data related to the interaction item by accessing a designated location in the N-tier network.

第N层网络中的主体B将与交互事项相关的数据存放到第N层网络中的指定位置,那么第M层网络中的主体A只要访问该指定位置,就可以及时的获得交互事项相关的数据,以便进行下一步处理。The subject B in the N-layer network stores the data related to the interaction items in the specified location in the N-tier network, then the subject A in the M-tier network can obtain the information related to the interaction items in time as long as it visits the specified location. data for further processing.

还需要说明的是,第N层网络中的主体B存放在第N层网络中的指定位置中的交互事项相关的数据一方面是必须和交互事项相关的,另一方面还必须是第M层网络中的主体A可以感知的。It should also be noted that the data related to the interaction items stored in the specified location in the N-layer network by the subject B in the N-layer network must be related to the interaction items on the one hand, and must be the M-th layer data on the other hand. Subject A in the network can perceive.

综上所述,本发明将与内层网络和外层网络交互事项相关的数据存放到外层网络中的指定位置,内层网络就通过访问该指定位置获得相应信息,实现外层网络及时向内层网络传输数据的操作,保证整个网络系统的运行效率。To sum up, the present invention stores the data related to the interaction between the inner network and the outer network in a designated location in the outer network, and the inner network obtains corresponding information by accessing the designated location, so that the outer network can timely report to The operation of transmitting data in the inner layer network ensures the operating efficiency of the entire network system.

在本发明的一个实施例中,步骤S220中的与交互事项相关的数据包括如下中的一种或多种:In one embodiment of the present invention, the data related to the interaction item in step S220 includes one or more of the following:

(1)日志数据。(1) Log data.

当第M层网络中的主体A需要获取第N层网络的主体B的系统操作事件的记录时,第N层网络的主体B就可以将日志数据存放在指定位置。When subject A in the M-layer network needs to obtain the system operation event records of subject B in the N-tier network, subject B in the N-tier network can store the log data in a designated location.

(2)指定操作的执行结果数据。(2) Execution result data of the specified operation.

当第M层网络中的主体A需要获取第N层网络的主体B的某一指定操作的执行情况时,第N层网络的主体B就可以将指定操作的执行结果数据存放在指定位置。When subject A in the M-tier network needs to obtain the execution status of a specified operation of subject B in the N-tier network, subject B in the N-tier network can store the execution result data of the specified operation in a designated location.

(3)指示第M层网络中的执行主体执行特定操作的标志信息。(3) Flag information that instructs the execution subject in the M-th layer network to perform a specific operation.

当第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的指令。When the subject A in the M-layer network needs to perform the next operation according to the execution of a specified operation of the subject B in the N-tier network, the subject B in the N-tier network can instruct the subject in the M-tier network The flag information for the execution subject to perform a specific operation is stored in the specified location. For example, for a certain operation instruction a including step a1 and step a2, the subject A of the M-layer network needs to control the N1-layer network subject B1 to perform step a1 respectively, and after a1 is executed, it also needs to control the N2-layer network subject B2 to perform Step a2. In order to ensure the smooth progress of step a2, when the N1-layer network subject B1 completes step a1, it needs to store the flag information 1 of completing a1 (for example, "1" means completed; "0" means not completed) in the designated location, then when After the subject A of the M-layer network visits the designated location to obtain the identification information "1", it will continue to send the instruction to execute step a2 to the N2-layer network subject B2 to execute step a2; if not, I will press step a1, Then the subject A of the M-th layer network will obtain the identification information "0" when visiting the designated location, and the subject A of the M-th layer network will not send an instruction to perform step a2 to the N2-layer network subject B2.

如果第M层网络中的主体A需要根据第N层网络的主体B的某一指定操作的执行情况进行下一步的操作时,在本发明的一个实施例中,图2所示的方法进一步包括:主体A判断所获取的数据中是否包含指定标志信息;如果包含指定标志信息,则主体A执行与指定标志信息所对应的操作。If the subject A in the M-layer network needs to perform the next step according to the execution of a specified operation of the subject B of the N-tier network, in one embodiment of the present invention, the method shown in FIG. 2 further includes : The subject A judges whether the acquired data contains the specified flag information; if the specified flag information is included, the subject A performs the operation corresponding to the specified flag information.

其中,指定标志信息所对应的操作可以预先存放在主体A中的一个执行逻辑表中,则上述方法方法进一步包括:主体A通过查询预先保存的第一执行逻辑表,确定与指定标志信息对应的操作。Wherein, the operation corresponding to the specified flag information can be pre-stored in an execution logic table in the subject A, then the above method further includes: the subject A determines the operation corresponding to the specified flag information by querying the pre-saved first execution logic table operate.

这里的第一执行逻辑表中保存了不同的标志信息和相对应的执行操作。例如,对于某一操作指令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的指令。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" means completed; "0" means not completed. When the subject A of the M-th layer network visits the designated location to obtain the identification information "1", it means that a1 has been executed, and then the instruction to execute the next step a2 can be sent; if the subject A of the M-th layer network visits the designated location, it will get The identification information "0" indicates that a1 has not been executed, and the subject A of the M-th layer network will not send an instruction to perform step a2. Or, directly use "a2" to represent completion; "a1" to represent incomplete. When the subject A of the M-th layer network visits the designated location to obtain the identification information "a2", it means that a1 has been executed, and then the instruction to execute the next step a2 can be sent; if the subject A of the M-th layer network visits the specified location, it will get The identification information "a1" indicates that a1 has not been executed, and the subject A of the M-th layer network will not send an instruction to execute step a2.

为了确保第M层网络中的主体A一定可以实现指定位置的访问,本发明中的第N层网络中的指定位置可以经过第M层网络中的主体A的设定。所以,在本发明的一个实施例中,在步骤S220中的第N层网络中的主体B将与交互事项相关的数据存放到第N层网络中的指定位置之前,图2所示的方法进一步包括:第M层网络中的主体A选定第N层网络中的指定位置,并将该指定位置通知给第N层网络中的主体B。In order to ensure that subject A in the M-th layer network must be able to access the specified location, the specified location in the N-th layer network in the present invention can be set by subject A in the M-th layer network. Therefore, in one embodiment of the present invention, before the subject B in the N-layer network in step S220 stores the data related to the interaction item in the specified location in the N-layer network, the method shown in FIG. 2 further It includes: subject A in the M-layer network selects a designated location in the N-layer network, and notifies the designated location to the subject B in the N-layer network.

需要说明的是,第N层网络中的主体包含一个或者多个,那么与主体A存在交互事项的主体也可以包含一个或多个,每个第N层网络中的主体可以通过各自的指定位置或者通过主体A选定的指定位置存放于交互事项相关的数据,那么主体A通过分别访问每个第N层网络中的主体存放数据的指定位置获得相应的数据。It should be noted that if there are one or more subjects in the N-layer network, then one or more subjects that have interaction matters with subject A may also be included. Or the data related to the interaction items is stored in the specified location selected by the subject A, then the subject A obtains the corresponding data by separately accessing the designated location where the subject stores the data in each N-th layer network.

主体A通过访问第N层网络中的指定位置获取与交互事项相关的数据可以实时进行,也可以定期进行,在本发明的一个实施例中,步骤S230中的第M层网络中的主体A通过访问第N层网络中的指定位置获取与交互事项相关的数据包括如下中的任一种:Subject A can obtain the data related to the interaction item by accessing the designated location in the N-layer network, which can be carried out in real time or periodically. In one embodiment of the present invention, the subject A in the M-layer network in step S230 passes Accessing specified locations in the N-tier network to obtain data related to interaction items includes any of the following:

(1)第M层网络中的主体A通过rsync方式将第N层网络中的指定位置处的与交互事项相关的数据同步到本地。(1) The subject A in the M-layer network synchronizes the data related to the interaction items at the specified location in the N-layer network to the local through rsync.

这里的rsync是一种数据镜像备份工具,可以快速将与交互事项相关的数据同步到主体A的本地。The rsync here is a data mirroring backup tool, which can quickly synchronize the data related to the interaction items to the local of subject A.

(2)第M层网络中的主体A在固定时间点访问第N层网络中的指定位置来获取与交互事项相关的数据。(2) The subject A in the M-layer network accesses the specified location in the N-layer network at a fixed time point to obtain data related to the interaction items.

这里的固定时间点可以根据需要进行设定,例如,设定每天的零点和12点进行获取。也可以同时设定固定时间点以及每天获取交互事项相关的数据的次数,例如,设定每天获取两次,设定每天的零点和12点进行获取。The fixed time point here can be set according to needs, for example, set every day at zero o'clock and 12 o'clock for acquisition. It is also possible to set a fixed time point and the number of times of daily acquisition of data related to interactive items at the same time, for example, set acquisition twice a day, and set acquisition at 0:00 and 12:00 every day.

(3)第M层网络中的主体A以固定频率访问第N层网络中的指定位置来获取与交互事项相关的数据。(3) Subject A in the M-layer network visits the specified location in the N-layer network at a fixed frequency to obtain data related to the interaction items.

这里的固定频率也可以根据需要进行设定,例如每四个小时访问一次。The fixed frequency here can also be set according to needs, for example, visit once every four hours.

需要说明的是,这里的访问频率不同于第N层网络中的指定位置中的数据的更新频率,是通过具体情况进行设定。如果希望以最快的速度获取到最新的数据,则可以访问频率高一些;相反,如果最大程度的获取较多的更新数据,则设定访问频率低一些,但是也可能错过中间的数据。It should be noted that the access frequency here is different from the update frequency of the data in the specified location in the N-th layer network, and is set according to specific circumstances. If you want to obtain the latest data at the fastest speed, you can access it more frequently; on the contrary, if you want to obtain more updated data to the greatest extent, set the access frequency lower, but you may miss the intermediate data.

当存在多层网络时,例如存在第M层、第N层、第L层网络时,第M层网络相对于第N层网络是内层网络、第N层网络相对于第L层网络是内层网。当第L层网络中的主体与第M层、第N层的主体均有交互事项时,那么最外层的第L层网络中的主体可以将交互事项相关的数据存放在第L层网络中的指定位置,在本发明的一个实施例中,图2所示的方法进一步包括:第N层网络中的主体B通过访问第L层网络中的指定位置获取指定数据;其中,第L层网络相对于第N层网络是外层网络;主体B将所获取的指定数据存放到第N层网络中的指定位置,从而使得第M层网络中的主体A通过访问第N层网络中的指定位置获取该指定数据。When there is a multi-layer network, for example, when there are M-layer, N-layer, and L-layer networks, the M-layer network is an internal network relative to the N-layer network, and the N-layer network is an internal network relative to the L-layer network. layer net. When the subjects in the L-layer network have interaction items with the subjects in the M-layer and N-layer, then the subjects in the outermost L-layer network can store the data related to the interaction items in the L-layer network In one embodiment of the present invention, the method shown in FIG. 2 further includes: subject B in the N-layer network obtains specified data by accessing a designated location in the L-layer network; wherein, the L-layer network Compared with the N-layer network, it is an outer network; subject B stores the acquired specified data in a designated location in the N-layer network, so that subject A in the M-layer network accesses the specified location in the N-layer network Get the specified data.

这里的第L层网络中的指定位置处的指定数据,具体是第L层网络中的主体C与第M层网络中的主体A的交互事项相关的数据。The specified data at a specified location in the L-layer network here specifically refers to data related to the interaction between subject C in the L-tier network and subject A in the M-tier network.

需要说明的是,第M层网络中的主体A同样也可以通过访问第L层网络中的指定位置获取指定数据。It should be noted that subject A in the M-layer network can also obtain specified data by accessing a specified location in the L-layer network.

但是当第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的执行情况。However, when the interaction between the subject in the L-layer network and the subject in the M-layer and N-layer is a progressive relationship, it is necessary for the subject B in the N-tier network to access the L-tier network. The specified location obtains the specified data; the subject B stores the acquired specified data in the specified location in the N-layer network, so that the subject A in the M-layer network obtains the specified data by accessing the specified location in the N-layer network. For example, an operation instruction a includes step a1 and step a2, which requires the subject C of the L-layer network to perform step a1 and the subject B of the N-tier network to perform step a2, and only after step a1 is completed, the subject of the N-tier network B can execute step a2. In order to obtain the execution result of the entire operation instruction for the subject A of the M-th layer, when the subject C of the L-tier network completes step a1, it needs to store the completed data of a1 in a designated location, when the subject B of the N-tier network accesses the L-tier After obtaining the data of a1 at the designated location of the network, step a2 will continue to be executed. After step a2 is completed, the subject B will store the data of a1 and the data of step a2 in the designated location of the N-layer network, then the Mth When the subject A of the layer network accesses the specified location of the N layer network, the execution of the entire operation instruction a will be obtained.

在多层网络中内层网络可以访问外层网络,但外层网络不能访问内层网络。为了解决外层网络因不能范围内层网络而无法实现信息传输的问题,图3示出了根据本发明一个实施例的单向联通的多层网络中的通讯系统的结构示意图。如图3所示,该单向联通的多层网络中的通讯系统300包括:第M层网络中的主体A310和第N层网络中的主体B320。In a multi-layer network, the inner network can access the outer network, but the outer network cannot access the inner network. In order to solve the problem that the outer layer network cannot realize information transmission because the inner layer network cannot reach, FIG. 3 shows a schematic structural diagram of a communication system in a multi-layer network with one-way communication according to an embodiment of the present invention. As shown in FIG. 3 , the communication system 300 in the unidirectionally connected multi-layer network includes: an agent A310 in the M-layer network and an agent B320 in the N-layer network.

主体B320,适于确定存在与第M层网络中的主体A310的交互事项,以及适于将与交互事项相关的数据存放到第N层网络中的指定位置。The subject B320 is adapted to determine that there is an interaction item with the subject A310 in the M-layer network, and is adapted to store data related to the interaction item in a specified location in the N-tier network.

其中,第M层网络和第N层网络是多层网络中的不同层的网络,且第M层网络相对于第N层网络是内层网络,M和N均为自然数。Wherein, the M-th layer network and the N-th layer network are networks of different layers in the multi-layer network, and the M-th layer network is an inner layer network relative to the N-th layer network, and both M and N are natural numbers.

例如,根据图1所示,第M层网络相对于第N层网络是内层网络,可以取M=1,即第一层网络是办公内网110,取N=2,即第二层网络是服务网120;或者取M=1,即第一层网络是办公内网110,取N=3,即第三层网络是隔离网130。For example, as shown in Figure 1, the M-th layer network is an inner layer network relative to the N-th layer network, and M=1 can be taken, that is, the first layer network is the office intranet 110, and N=2, that is, the second layer network is the service network 120;

本发明首先确定第N层网络中的主体B320与第M层网络中的主体A310存在交互事项,如果存在交互事项,说明第N层网络的主体B320需要向第M层网络的主体A310传输相关数据,需要实施本方法;如果没有交互事项,则可以不实施本发明中的方法。The present invention first determines that there is an interaction between subject B320 in the N-tier network and subject A310 in the M-tier network. If there is an interaction item, it means that subject B320 in the N-tier network needs to transmit relevant data to subject A310 in the M-tier network , the method needs to be implemented; if there is no interaction item, the method in the present invention may not be implemented.

如果第N层网络的主体B320和第M层网络的主体A310存在交互事项,那么第N层网络的主体B320需要向第M层网络的主体A310传输交互事项相关的数据。但是第M层网络相对于第N层网络是内层网络,第N层网络不能访问第M层网络,为了是第M层网络的主体A310及时的到交互事项相关的数据,第N层网络中的主体B将与交互事项相关的数据存放到第N层网络中的指定位置,这里的指定位置是指可以被第M层网络中的主体A310访问到的地方。If the subject B320 of the N-tier network and the subject A310 of the M-tier network have interaction items, then the subject B320 of the N-tier network needs to transmit data related to the interaction items to the subject A310 of the M-tier network. However, the M-layer network is an inner layer network compared to the N-layer network. The N-layer network cannot access the M-layer network. The subject B in the network stores the data related to the interaction item in a designated location in the N-layer network, where the designated location refers to a place that can be accessed by the subject A310 in the M-layer network.

主体A310,适于通过访问第N层网络中的指定位置获取与交互事项相关的数据。The subject A310 is adapted to obtain data related to the interaction item by accessing a specified location in the N-tier network.

第N层网络中的主体B320将与交互事项相关的数据存放到第N层网络中的指定位置,那么第M层网络中的主体A310只要访问该指定位置,就可以及时的获得交互事项相关的数据,以便进行下一步处理。The subject B320 in the N-layer network stores the data related to the interaction item in the specified location in the N-tier network, then the subject A310 in the M-tier network can obtain the information related to the interaction item in time as long as it visits the specified location. data for further processing.

还需要说明的是,第N层网络中的主体B320存放在第N层网络中的指定位置中的交互事项相关的数据一方面是必须和交互事项相关的,另一方面还必须是第M层网络中的主体A310可以感知的。It should also be noted that, on the one hand, the subject B320 in the N-layer network stores the data related to the interaction items in the specified location in the N-layer network. On the one hand, it must be related to the interaction items; Subject A310 in the network can perceive.

可见,本发明将与内层网络和外层网络交互事项相关的数据存放到外层网络中的指定位置,内层网络就通过访问该指定位置获得相应信息,实现外层网络及时向内层网络传输数据的操作,保证整个网络系统的运行效率。It can be seen that in the present invention, the data related to the interaction between the inner network and the outer network is stored in a designated location in the outer network, and the inner network obtains corresponding information by accessing the designated location, so that the outer network can send information to the inner network in a timely manner. The operation of transmitting data ensures the operating efficiency of the entire network system.

在本发明的一个实施例中,与交互事项相关的数据包括如下中的一种或多种:In an embodiment of the present invention, the data related to the interaction item includes one or more of the following:

(1)日志数据。(1) Log data.

当第M层网络中的主体A310需要获取第N层网络的主体B320的系统操作事件的记录时,第N层网络的主体B320就可以将日志数据存放在指定位置。When the subject A310 in the M-tier network needs to obtain the system operation event records of the subject B320 in the N-tier network, the subject B320 in the N-tier network can store the log data in a designated location.

(2)指定操作的执行结果数据。(2) Execution result data of the specified operation.

当第M层网络中的主体A310需要获取第N层网络的主体B320的某一指定操作的执行情况时,第N层网络的主体B320就可以将指定操作的执行结果数据存放在指定位置。When the subject A310 in the M-tier network needs to obtain the execution status of a specified operation of the subject B320 in the N-tier network, the subject B320 in the N-tier network can store the execution result data of the specified operation in a specified location.

(3)指示第M层网络中的执行主体执行特定操作的标志信息。(3) Flag information that instructs the execution subject in the M-th layer network to perform a specific operation.

当第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的指令。When the main body A310 in the M-layer network needs to perform the next operation according to the execution of a specified operation of the main body B320 of the N-layer network, the main body B320 of the N-layer network can instruct the M-layer network The flag information for the execution subject to perform a specific operation is stored in the specified location. For example, for a certain operation instruction a including step a1 and step a2, the main body A310 of the M-layer network needs to control the main body B1 of the N1-layer network to perform step a1, and after the execution of a1, it needs to control the main body B2 of the N2-layer network to perform Step a2. In order to ensure the smooth progress of step a2, when the N1-layer network subject B1 completes step a1, it needs to store the flag information 1 of completing a1 (for example, "1" means completed; "0" means not completed) in the designated location, then when After the main body A310 of the M-layer network visits the specified location to obtain the identification information "1", it will continue to send the instruction to execute step a2 to the N2-layer network main body B2 to execute step a2; if not, I will press step a1, Then, the subject A310 of the M-th layer network will obtain the identification information "0" when accessing the specified location, and the subject A310 of the M-th layer network will not send an instruction to perform step a2 to the N2-th layer network subject B2.

如果第M层网络中的主体A310需要根据第N层网络的主体B320的某一指定操作的执行情况进行下一步的操作时,在本发明的一个实施例中,主体A310,进一步适于判断所获取的数据中是否包含指定标志信息;如果包含指定标志信息,则执行与指定标志信息所对应的操作。If the subject A310 in the M-layer network needs to perform the next operation according to the execution of a specified operation of the subject B320 in the N-tier network, in one embodiment of the present invention, the subject A310 is further suitable for judging the Whether the acquired data contains the specified flag information; if it contains the specified flag information, perform the operation corresponding to the specified flag information.

其中,指定标志信息所对应的操作可以预先存放在主体A310中的一个执行逻辑表中,主体A310,适于通过查询预先保存的第一执行逻辑表,确定与指定标志信息对应的操作。Wherein, the operation corresponding to the specified flag information may be pre-stored in an execution logic table in the subject A310, and the subject A310 is adapted to determine the operation corresponding to the specified flag information by querying the pre-stored first execution logic table.

其中,第一执行逻辑表中保存了不同的标志信息和相对应的执行操作。例如,对于某一操作指令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的指令。Wherein, different flag information and corresponding execution operations are stored in the first execution logic table. For example, for a certain operation instruction a including step a1 and step a2, "1" means completed; "0" means not completed. When the subject A of the M-th layer network visits the designated location to obtain the identification information "1", it means that a1 has been executed, and then the instruction to execute the next step a2 can be sent; if the subject A of the M-th layer network visits the designated location, it will get The identification information "0" indicates that a1 has not been executed, and the subject A of the M-th layer network will not send an instruction to perform step a2. Or, directly use "a2" to represent completion; "a1" to represent incomplete. When the subject A of the M-th layer network visits the designated location to obtain the identification information "a2", it means that a1 has been executed, and then the instruction to execute the next step a2 can be sent; if the subject A of the M-th layer network visits the specified location, it will get The identification information "a1" indicates that a1 has not been executed, and the subject A310 of the M-th layer network will not send an instruction to execute step a2.

为了确保第M层网络中的主体A310一定可以实现指定位置的访问,本发明中的第N层网络中的指定位置可以经过第M层网络中的主体A310的设定。所以,在本发明的一个实施例中,主体A310,进一步适于选定第N层网络中的指定位置,并将该指定位置通知给第N层网络中的主体B320。In order to ensure that the subject A310 in the M-layer network can surely realize the access to the designated location, the designated location in the N-layer network in the present invention can be set by the subject A310 in the M-layer network. Therefore, in an embodiment of the present invention, subject A310 is further adapted to select a designated location in the N-layer network, and notify the designated location to subject B320 in the N-layer network.

需要说明的是,第N层网络中的主体包含一个或者多个,那么与主体A存在交互事项的主体也可以包含一个或多个,每个第N层网络中的主体可以通过各自的指定位置或者通过主体A选定的指定位置存放于交互事项相关的数据,那么主体A310通过分别访问每个第N层网络中的主体存放数据的指定位置获得相应的数据。It should be noted that if there are one or more subjects in the N-layer network, then one or more subjects that have interaction matters with subject A may also be included. Or store the data related to the interaction item in the specified location selected by subject A, then subject A310 obtains the corresponding data by separately accessing the specified location where the subject stores data in each N-th layer network.

主体A310通过访问第N层网络中的指定位置获取与交互事项相关的数据可以实时进行,也可以定期进行,在本发明的一个实施例中,主体A310通过访问第N层网络中的指定位置获取与交互事项相关的数据包括如下中的任一种:Subject A310 obtains the data related to the interaction item by accessing the specified location in the N-layer network, which can be carried out in real time or periodically. In one embodiment of the present invention, the subject A310 obtains Data related to an interaction event includes any of the following:

(1)第M层网络中的主体A310通过rsync方式将第N层网络中的指定位置处的与交互事项相关的数据同步到本地。(1) The subject A310 in the M-layer network synchronizes the data related to the interaction items at the specified location in the N-layer network to the local through rsync.

这里的rsync是一种数据镜像备份工具,可以快速将与交互事项相关的数据同步到主体A310的本地。The rsync here is a data mirror backup tool, which can quickly synchronize the data related to the interaction items to the local of the main body A310.

(2)第M层网络中的主体A310在固定时间点访问第N层网络中的指定位置来获取与交互事项相关的数据。(2) The subject A310 in the M-tier network accesses a designated location in the N-tier network at a fixed time point to obtain data related to the interaction item.

这里的固定时间点可以根据需要进行设定,例如,设定每天的零点和12点进行获取。也可以同时设定固定时间点以及每天获取交互事项相关的数据的次数,例如,设定每天获取两次,设定每天的零点和12点进行获取。The fixed time point here can be set according to needs, for example, set every day at zero o'clock and 12 o'clock for acquisition. It is also possible to set a fixed time point and the number of times of daily acquisition of data related to interactive items at the same time, for example, set acquisition twice a day, and set acquisition at 0:00 and 12:00 every day.

(3)第M层网络中的主体A310以固定频率访问第N层网络中的指定位置来获取与交互事项相关的数据。(3) The subject A310 in the M-layer network accesses a designated location in the N-layer network at a fixed frequency to obtain data related to the interaction items.

这里的固定频率也可以根据需要进行设定,例如每四个小时访问一次。The fixed frequency here can also be set according to needs, for example, visit once every four hours.

需要说明的是,这里的访问频率不同于第N层网络中的指定位置中的数据的更新频率,是通过具体情况进行设定。如果希望以最快的速度获取到最新的数据,则可以访问频率高一些;相反,如果最大程度的获取较多的更新数据,则设定访问频率低一些,但是也可能错过中间的数据。It should be noted that the access frequency here is different from the update frequency of the data in the specified location in the N-th layer network, and is set according to specific circumstances. If you want to obtain the latest data at the fastest speed, you can access it more frequently; on the contrary, if you want to obtain more updated data to the greatest extent, set the access frequency lower, but you may miss the intermediate data.

当存在多层网络时,例如存在第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具有对应相同的功能,相同的部分在此不再赘述。When there is a multi-layer network, for example, when there are M-layer, N-layer, and L-layer networks, the M-layer network is an internal network relative to the N-layer network, and the N-layer network is an internal network relative to the L-layer network. layer net. When the subjects in the L-layer network have interaction items with the subjects in the M-layer and N-layer, then the subjects in the outermost L-layer network can store the data related to the interaction items in the L-layer network specified location. Fig. 4 shows a schematic structural diagram of a communication system in a multi-layer network with unidirectional communication according to another embodiment of the present invention. As shown in FIG. 4 , the communication system 400 in the unidirectional multi-layer network includes: subject A310 in the M-layer network, subject B420 in the N-tier network, and subject C430 in the L-tier network. Wherein, the main body A410 in the M-layer network and the main body B420 in the N-layer network have the same functions as the main body A310 in the M-layer network and the main body B320 in the N-layer network shown in FIG. Some will not be repeated here.

在本发明的一个实施例中,主体B420,进一步适于通过访问第L层网络中的指定位置获取指定数据;第L层网络相对于第N层网络是外层网络;以及适于将所获取的指定数据存放到第N层网络中的指定位置,从而使得第M层网络中的主体A410通过访问第N层网络中的指定位置获取该指定数据。In one embodiment of the present invention, subject B420 is further adapted to obtain specified data by accessing a specified location in the L-tier network; the L-tier network is an outer network relative to the N-tier network; The specified data of is stored in a specified location in the N-layer network, so that the subject A410 in the M-layer network obtains the specified data by accessing the specified location in the N-layer network.

主体430,适于将与第M层网络中的主体A的交互事项相关的数据存放到第L层网络中的指定位置处的。The subject 430 is adapted to store data related to the interaction items of subject A in the M-th layer network to a designated location in the L-th layer network.

需要说明的是,第M层网络中的主体A同样也可以通过访问第L层网络中的指定位置获取指定数据。It should be noted that subject A in the M-layer network can also obtain specified data by accessing a specified location in the L-layer network.

但是当第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的执行情况。However, when the interaction between the subject in the L-layer network and the subject in the M-layer and N-layer is a progressive relationship, it is necessary for the subject B in the N-tier network to access the L-tier network. The specified location obtains the specified data; the subject B stores the acquired specified data in the specified location in the N-layer network, so that the subject A in the M-layer network obtains the specified data by accessing the specified location in the N-layer network. For example, an operation instruction a includes step a1 and step a2, which requires the subject C of the L-layer network to perform step a1 and the subject B of the N-tier network to perform step a2, and only after step a1 is completed, the subject of the N-tier network B can execute step a2. In order to obtain the execution result of the entire operation instruction for the subject A of the M-th layer, when the subject C of the L-tier network completes step a1, it needs to store the completed data of a1 in a designated location, when the subject B of the N-tier network accesses the L-tier After obtaining the data of a1 at the designated location of the network, step a2 will continue to be executed. After step a2 is completed, the subject B will store the data of a1 and the data of step a2 in the designated location of the N-layer network, then the Mth When the subject A of the layer network accesses the specified location of the N layer network, he will obtain the execution status of the entire operation instruction a.

综上所述,根据本发明的技术方案,当多层网络中内层网络可以访问外层网络,但外层网络不能访问内层网络的时候,如果内层网络总的主体与外层网络中的主体存在交互事项,且外层网络需要将与交互事项相关的数据发送给内层网络,那么,外层网络的主体就将与所述交互事项相关的数据存放到外层网络中的一个指定位置;内层网络中的主体通过访问外层网络中的指定位置实时获取与所述交互事项相关的数据,这样外层网络就可以通过将交互事项相关的数据传输给内层网络,以便内层网络获得数据后进行进一步的处理,进而解决了外层网络不能将信息传输给内层网络的问题。可见,本发明将与内层网络和外层网络交互事项相关的数据存放到外层网络中的指定位置,内层网络就通过访问该指定位置获得相应信息,实现外层网络及时向内层网络传输数据的操作,保证整个网络系统的运行效率。In summary, according to the technical solution of the present invention, when the inner network in the multi-layer network can access the outer network, but the outer network cannot access the inner network, if the main body of the inner network is connected to the outer network There are interaction items in the main body of the outer network, and the outer network needs to send the data related to the interaction items to the inner network, then the main body of the outer network will store the data related to the interaction items in a specified location; the main body in the inner network accesses the specified location in the outer network to obtain data related to the interaction item in real time, so that the outer network can transmit the data related to the interaction item to the inner network, so that the inner layer After the network obtains the data, it performs further processing, thus solving the problem that the outer network cannot transmit information to the inner network. It can be seen that in the present invention, the data related to the interaction between the inner network and the outer network is stored in a designated location in the outer network, and the inner network obtains corresponding information by accessing the designated location, so that the outer network can send information to the inner network in a timely manner. The operation of transmitting data ensures the operating efficiency of the entire network system.

需要说明的是:It should be noted:

在此提供的算法和显示不与任何特定计算机、虚拟装置或者其它设备固有相关。各种通用装置也可以与基于在此的示教一起使用。根据上面的描述,构造这类装置所要求的结构是显而易见的。此外,本发明也不针对任何特定编程语言。应当明白,可以利用各种编程语言实现在此描述的本发明的内容,并且上面对特定语言所做的描述是为了披露本发明的最佳实施方式。The algorithms and displays presented herein are not inherently related to any particular computer, virtual appliance, or other device. Various general purpose devices can also be used with the teachings based on this. The structure required to construct such an apparatus will be apparent from the foregoing description. Furthermore, the present invention is not specific to any particular programming language. It should be understood that various programming languages can be used to implement the content of the present invention described herein, and the above description of specific languages is for disclosing the best mode of the present invention.

在此处所提供的说明书中,说明了大量具体细节。然而,能够理解,本发明的实施例可以在没有这些具体细节的情况下实践。在一些实例中,并未详细示出公知的方法、结构和技术,以便不模糊对本说明书的理解。In the description provided herein, numerous specific details are set forth. However, it is understood that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure the understanding of this description.

类似地,应当理解,为了精简本公开并帮助理解各个发明方面中的一个或多个,在上面对本发明的示例性实施例的描述中,本发明的各个特征有时被一起分组到单个实施例、图、或者对其的描述中。然而,并不应将该公开的方法解释成反映如下意图:即所要求保护的本发明要求比在每个权利要求中所明确记载的特征更多的特征。更确切地说,如下面的权利要求书所反映的那样,发明方面在于少于前面公开的单个实施例的所有特征。因此,遵循具体实施方式的权利要求书由此明确地并入该具体实施方式,其中每个权利要求本身都作为本发明的单独实施例。Similarly, it should be appreciated that in the foregoing description of exemplary embodiments of the invention, in order to streamline this disclosure and to facilitate an understanding of one or more of the various inventive aspects, various features of the invention are sometimes grouped together in a single embodiment, figure, or its description. This method of disclosure, however, is not to be interpreted as reflecting an intention that the claimed invention requires more features than are expressly recited in each claim. Rather, as the following claims reflect, inventive aspects lie in less than all features of a single foregoing disclosed embodiment. Thus, the claims following the Detailed Description are hereby expressly incorporated into this Detailed Description, with each claim standing on its own as a separate embodiment of this invention.

本领域那些技术人员可以理解,可以对实施例中的设备中的模块进行自适应性地改变并且把它们设置在与该实施例不同的一个或多个设备中。可以把实施例中的模块或单元或组件组合成一个模块或单元或组件,以及此外可以把它们分成多个子模块或子单元或子组件。除了这样的特征和/或过程或者单元中的至少一些是相互排斥之外,可以采用任何组合对本说明书(包括伴随的权利要求、摘要和附图)中公开的所有特征以及如此公开的任何方法或者设备的所有过程或单元进行组合。除非另外明确陈述,本说明书(包括伴随的权利要求、摘要和附图)中公开的每个特征可以由提供相同、等同或相似目的的替代特征来代替。Those skilled in the art can understand that the modules in the device in the embodiment can be adaptively changed and arranged in one or more devices different from the embodiment. Modules or units or components in the embodiments may be combined into one module or unit or component, and furthermore may be divided into a plurality of sub-modules or sub-units or sub-assemblies. All features disclosed in this specification (including accompanying claims, abstract and drawings) and any method or method so disclosed may be used in any combination, except that at least some of such features and/or processes or units are mutually exclusive. All processes or units of equipment are combined. Each feature disclosed in this specification (including accompanying claims, abstract and drawings) may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated otherwise.

此外,本领域的技术人员能够理解,尽管在此所述的一些实施例包括其它实施例中所包括的某些特征而不是其它特征,但是不同实施例的特征的组合意味着处于本发明的范围之内并且形成不同的实施例。例如,在下面的权利要求书中,所要求保护的实施例的任意之一都可以以任意的组合方式来使用。Furthermore, those skilled in the art will understand that although some embodiments described herein include some features included in other embodiments but not others, combinations of features from different embodiments are meant to be within the scope of the invention. and form different embodiments. For example, in the following claims, any of the claimed embodiments may be used in any combination.

本发明的各个部件实施例可以以硬件实现,或者以在一个或者多个处理器上运行的软件模块实现,或者以它们的组合实现。本领域的技术人员应当理解,可以在实践中使用微处理器或者数字信号处理器(DSP)来实现根据本发明实施例的单向联通的多层网络中的通讯系统中的一些或者全部部件的一些或者全部功能。本发明还可以实现为用于执行这里所描述的方法的一部分或者全部的设备或者装置程序(例如,计算机程序和计算机程序产品)。这样的实现本发明的程序可以存储在计算机可读介质上,或者可以具有一个或者多个信号的形式。这样的信号可以从因特网网站上下载得到,或者在载体信号上提供,或者以任何其他形式提供。The various component embodiments of the present invention may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. It should be understood by those skilled in the art that a microprocessor or a digital signal processor (DSP) can be used in practice to implement some or all of the components in the communication system in the one-way communication multi-layer network according to the embodiment of the present invention Some or all functions. The present invention can also be implemented as an apparatus or an apparatus program (for example, a computer program and a computer program product) for performing a part or all of the methods described herein. Such a program for realizing the present invention may be stored on a computer-readable medium, or may be in the form of one or more signals. Such a signal may be downloaded from an Internet site, or provided on a carrier signal, or provided in any other form.

应该注意的是上述实施例对本发明进行说明而不是对本发明进行限制,并且本领域技术人员在不脱离所附权利要求的范围的情况下可设计出替换实施例。在权利要求中,不应将位于括号之间的任何参考符号构造成对权利要求的限制。单词“包含”不排除存在未列在权利要求中的元件或步骤。位于元件之前的单词“一”或“一个”不排除存在多个这样的元件。本发明可以借助于包括有若干不同元件的硬件以及借助于适当编程的计算机来实现。在列举了若干装置的单元权利要求中,这些装置中的若干个可以是通过同一个硬件项来具体体现。单词第一、第二、以及第三等的使用不表示任何顺序。可将这些单词解释为名称。It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and that those skilled in the art will be able to design alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention can be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In a unit claim enumerating several means, several of these means can be embodied by one and the same item of hardware. The use of the words first, second, and third, etc. does not indicate any order. These words can be interpreted as names.

本发明公开了A1、一种单向联通的多层网络中的通讯方法,其中,在所述多层网络中内层网络可以访问外层网络,但外层网络不能访问内层网络,该方法包括:The invention discloses A1, a communication method in a multi-layer network with one-way communication, wherein, in the multi-layer network, the inner network can access the outer network, but the outer network cannot access the inner network, the method include:

第N层网络中的主体B确定存在与第M层网络中的主体A的交互事项;Agent B in the N-tier network determines that there is an interaction with Agent A in the M-tier network;

第N层网络中的主体B将与所述交互事项相关的数据存放到第N层网络中的指定位置;The subject B in the N-tier network stores the data related to the interaction item in a designated location in the N-tier network;

第M层网络中的主体A通过访问第N层网络中的指定位置获取与所述交互事项相关的数据;Subject A in the M-tier network obtains data related to the interaction item by accessing a designated location in the N-tier network;

其中,第M层网络和第N层网络是所述多层网络中的不同层的网络,且第M层网络相对于第N层网络是内层网络,M和N均为自然数。Wherein, the M-layer network and the N-layer network are networks of different layers in the multi-layer network, and the M-layer network is an inner layer network relative to the N-layer network, and both M and N are natural numbers.

A2、如A1所述的方法,其中,所述与所述交互事项相关的数据包括如下中的一种或多种:A2. The method according to A1, wherein the data related to the interaction item includes one or more of the following:

日志数据;log data;

指定操作的执行结果数据;The execution result data of the specified operation;

指示第M层网络中的执行主体执行特定操作的标志信息。Flag information that instructs the execution subject in the M-th layer network to perform a specific operation.

A3、如A1所述的方法,其中,该方法进一步包括:A3. The method as described in A1, wherein the method further comprises:

主体A判断所获取的数据中是否包含指定标志信息;Subject A judges whether the acquired data contains specified flag information;

如果包含指定标志信息,则主体A执行与所述指定标志信息所对应的操作。If specified flag information is included, subject A performs an operation corresponding to the specified flag information.

A4、如A3所述的方法,其中,该方法进一步包括:A4, the method as described in A3, wherein, the method further comprises:

主体A通过查询预先保存的第一执行逻辑表,确定与所述指定标志信息对应的操作;Subject A determines the operation corresponding to the specified flag information by querying the pre-saved first execution logic table;

其中所述第一执行逻辑表中保存了不同的标志信息和相对应的执行操作。Wherein the first execution logic table stores different flag information and corresponding execution operations.

A5、如A1所述的方法,其中,在第N层网络中的主体B将与所述交互事项相关的数据存放到第N层网络中的指定位置之前,该方法进一步包括:A5. The method as described in A1, wherein, before the subject B in the N-layer network stores the data related to the interaction item in a specified location in the N-layer network, the method further includes:

第M层网络中的主体A选定第N层网络中的指定位置,并将该指定位置通知给第N层网络中的主体B。Subject A in the M-th layer network selects a designated location in the N-layer network, and notifies the designated location to the subject B in the N-layer network.

A6、如A1所述的方法,其中,所述第M层网络中的主体A通过访问第N层网络中的指定位置获取与所述交互事项相关的数据包括如下中的任一种:A6. The method as described in A1, wherein the subject A in the M-th layer network obtains data related to the interaction item by accessing a designated location in the N-th layer network, including any of the following:

第M层网络中的主体A通过rsync方式将第N层网络中的指定位置处的与所述交互事项相关的数据同步到本地;The subject A in the M-layer network synchronizes the data related to the interaction items at the specified location in the N-layer network to the local through rsync;

第M层网络中的主体A在固定时间点访问第N层网络中的指定位置来获取与所述交互事项相关的数据;以及Subject A in the M-tier network accesses a designated location in the N-tier network at a fixed point in time to obtain data related to the interaction item; and

第M层网络中的主体A以固定频率访问第N层网络中的指定位置来获取与所述交互事项相关的数据。The subject A in the M-th layer network accesses a designated location in the N-th layer network at a fixed frequency to obtain data related to the interaction item.

A7、如A1所述的方法,其中,该方法进一步包括:A7. The method as described in A1, wherein the method further comprises:

第N层网络中的主体B通过访问第L层网络中的指定位置获取指定数据;第L层网络相对于第N层网络是外层网络;Subject B in the N-tier network obtains the specified data by accessing the specified location in the L-tier network; the L-tier network is an outer network relative to the N-tier network;

主体B将所获取的指定数据存放到第N层网络中的指定位置,从而使得第M层网络中的主体A通过访问第N层网络中的指定位置获取该指定数据。The subject B stores the obtained specified data in a specified location in the N-layer network, so that the subject A in the M-layer network obtains the specified data by accessing the specified location in the N-layer network.

A8、如A7所述的方法,其中,A8. The method as described in A7, wherein,

第L层网络中的指定位置处的指定数据,具体是第L层网络中的主体C与第M层网络中的主体A的交互事项相关的数据。The specified data at the specified location in the L-layer network, specifically data related to the interaction between subject C in the L-tier network and subject A in the M-tier network.

本发明还公开了B9、一种单向联通的多层网络中的通讯系统,其中,在所述多层网络中内层网络可以访问外层网络,但外层网络不能访问内层网络,该系统包括:第M层网络中的主体A和第N层网络中的主体B;The present invention also discloses B9, a communication system in a multi-layer network with one-way communication, wherein, in the multi-layer network, the inner network can access the outer network, but the outer network cannot access the inner network. The system includes: subject A in the M-layer network and subject B in the N-tier network;

主体B,适于确定存在与第M层网络中的主体A的交互事项,以及适于将与所述交互事项相关的数据存放到第N层网络中的指定位置;Subject B is adapted to determine that there is an interaction item with subject A in the M-tier network, and is suitable for storing data related to the interaction item in a specified location in the N-tier network;

主体A,适于通过访问第N层网络中的指定位置获取与所述交互事项相关的数据;Subject A is adapted to obtain data related to the interaction item by accessing a designated location in the N-tier network;

其中,第M层网络和第N层网络是所述多层网络中的不同层的网络,且第M层网络相对于第N层网络是内层网络,M和N均为自然数。Wherein, the M-layer network and the N-layer network are networks of different layers in the multi-layer network, and the M-layer network is an inner layer network relative to the N-layer network, and both M and N are natural numbers.

B10、如B9所述的通讯系统,其中,所述与所述交互事项相关的数据包括如下中的一种或多种:B10. The communication system as described in B9, wherein the data related to the interaction item includes one or more of the following:

日志数据;log data;

指定操作的执行结果数据;The execution result data of the specified operation;

指示第M层网络中的执行主体执行特定操作的标志信息。Flag information that instructs the execution subject in the M-th layer network to perform a specific operation.

B11、如B9所述的通讯系统,其中,B11. The communication system as described in B9, wherein,

所述主体A,进一步适于判断所获取的数据中是否包含指定标志信息;如果包含指定标志信息,则执行与所述指定标志信息所对应的操作。The subject A is further adapted to judge whether the acquired data contains designated flag information; if it contains designated flag information, perform an operation corresponding to the designated flag information.

B12、如B11所述的通讯系统,其中,B12. The communication system as described in B11, wherein,

所述主体A,适于通过查询预先保存的第一执行逻辑表,确定与所述指定标志信息对应的操作;The subject A is adapted to determine the operation corresponding to the specified flag information by querying a pre-saved first execution logic table;

其中所述第一执行逻辑表中保存了不同的标志信息和相对应的执行操作。Wherein the first execution logic table stores different flag information and corresponding execution operations.

B13、如B9所述的通讯系统,其中,B13. The communication system as described in B9, wherein,

所述主体A,进一步适于选定第N层网络中的指定位置,并将该指定位置通知给第N层网络中的主体B。The subject A is further adapted to select a designated location in the N-layer network, and notify the designated location to the subject B in the N-layer network.

B14、如B9所述的通讯系统,其中,B14. The communication system as described in B9, wherein,

所述主体A通过访问第N层网络中的指定位置获取与所述交互事项相关的数据包括如下中的任一种:The acquisition of data related to the interaction item by the subject A by accessing a designated location in the N-tier network includes any of the following:

适于通过rsync方式将第N层网络中的指定位置处的与所述交互事项相关的数据同步到本地;It is suitable for synchronizing data related to the interaction item at a specified location in the N-layer network to the local through rsync;

适于在固定时间点访问第N层网络中的指定位置来获取与所述交互事项相关的数据;以及adapted to access a designated location in the N-tier network at a fixed point in time to obtain data related to the interaction item; and

适于以固定频率访问第N层网络中的指定位置来获取与所述交互事项相关的数据。It is suitable for accessing a specified location in the N-layer network at a fixed frequency to obtain data related to the interaction item.

B15、如B9所述的通讯系统,其中,B15. The communication system as described in B9, wherein,

所述主体B,进一步适于通过访问第L层网络中的指定位置获取指定数据;第L层网络相对于第N层网络是外层网络;以及适于将所获取的指定数据存放到第N层网络中的指定位置,从而使得第M层网络中的主体A通过访问第N层网络中的指定位置获取该指定数据。The subject B is further adapted to obtain specified data by accessing a specified location in the L-th layer network; the L-th layer network is an external network relative to the N-th layer network; and is suitable for storing the obtained specified data in the N-th layer network The specified location in the layer network, so that the subject A in the M layer network obtains the specified data by accessing the specified location in the N layer network.

B16、如B15所述的通讯系统,其中,进一步包括:L层网络中的主体C:B16. The communication system as described in B15, further comprising: subject C in the L-layer network:

主体C,适于将与第M层网络中的主体A的交互事项相关的数据存放到第L层网络中的指定位置处的。The subject C is suitable for storing the data related to the interaction items of the subject A in the M-th layer network to a designated location in the L-th layer network.