Redundant gateway system and redundant switching method

文档序号:1419302 发布日期:2020-03-13 浏览:12次 中文

阅读说明:本技术 一种冗余网关系统和冗余切换方法 (Redundant gateway system and redundant switching method ) 是由 林宏飞 张腾飞 聂浩 占志良 徐文卿 于 2019-12-02 设计创作,主要内容包括:本发明公开了一种冗余网关系统,包括通过网络连接的多个网关,各网关存储有冗余配置信息表,所述冗余配置信息表包含对外IP地址、自身IP地址、以及冗余网关地址表,所述冗余网关地址表包含有各网关的自身IP地址;其中所述多个网关被配置为在开启后读取各自冗余网关地址表,并根据主网关继承规则确定占用对外IP地址来响应外部应用软件的主网关。通过在各网关内设置包含了所有其它冗余网关地址的冗余网关地址表,可以实现任意N个网关冗余。通过冗余组对外IP地址,上层应用软件只需要通过冗余组对外IP地址进行数据交互,不需要与冗余组所有网关自身地址进行数据交互,大大提升网关冗余的易用性。(The invention discloses a redundant gateway system, which comprises a plurality of gateways connected through a network, wherein each gateway stores a redundant configuration information table, the redundant configuration information table comprises an external IP address, a self IP address and a redundant gateway address table, and the redundant gateway address table comprises the self IP address of each gateway; the plurality of gateways are configured to read respective redundant gateway address tables after being started, and determine a main gateway occupying an external IP address to respond to external application software according to a main gateway inheritance rule. Any N gateway redundancies can be realized by setting a redundant gateway address table containing all other redundant gateway addresses in each gateway. Through the external IP address of the redundancy group, the upper application software only needs to carry out data interaction on the external IP address through the redundancy group and does not need to carry out data interaction with the addresses of all gateways of the redundancy group, and therefore the usability of the redundancy of the gateways is greatly improved.)

1. A redundant gateway system, comprising:

the system comprises a plurality of gateways connected through a network, wherein each gateway stores a redundant configuration information table, the redundant configuration information table comprises an external IP address, a self IP address and a redundant gateway address table, and the redundant gateway address table comprises the self IP address of each gateway;

the plurality of gateways are configured to read respective redundant gateway address tables after being started, and determine a main gateway occupying an external IP address to respond to external application software according to a main gateway inheritance rule.

2. The redundant gateway system of claim 1, wherein: the plurality of gateways have the same external IP address.

3. The redundant gateway system of claim 2, wherein: the multiple gateways comprise a main gateway and a standby gateway, wherein the main gateway occupies interaction between an external IP address and external application software, and performs data interaction with other standby gateways in a redundant gateway address list through the own IP address.

4. The redundant gateway system of claim 3, wherein: the backup gateway is configured to confirm a backup gateway among the non-failed gateways to seize the external IP address in response to the external application software according to the primary gateway inheritance rule when the primary gateway is unable to interact with the external application software.

5. The redundant gateway system of claim 4, wherein: the redundancy configuration information table also comprises a redundancy voting strategy, and the main gateway judges and votes the acquired gateway data according to the redundancy voting strategy and sends voting result data to external application software.

6. The redundant gateway system of claim 5, wherein: and the main gateway is configured to change the redundancy voting strategy according to the number of the failed standby gateways when the data acquisition of one or more standby gateways fails, judge and vote the main gateway data and the rest of the standby gateway data according to the changed redundancy voting strategy, and send voting result data to external application software.

7. The redundant gateway system according to any of claims 3 to 6, wherein: and the standby gateways are configured to judge whether other high-priority gateways exist in each standby gateway according to the inheritance rule of the main gateway when the data of the main gateway cannot be acquired, if so, the standby state is maintained, otherwise, the standby gateways occupy external IP addresses to respond to external application software.

8. The redundant gateway system of claim 7, wherein: the standby gateway is configured to periodically and repeatedly determine whether a primary gateway exists in gateways on a redundant gateway address table.

9. The redundant gateway system of claim 8, wherein: the standby gateway is configured to periodically retrieve other gateway data on the redundant gateway address table.

10. A redundancy switching method for the redundant gateway system according to any one of claims 1 to 9, comprising:

each gateway reads a respective redundancy configuration information table, and judges whether other high-priority gateways exist in a redundancy group according to a main gateway inheritance rule, wherein the redundancy gateway address table comprises addresses of all gateways in the same redundancy group and external fixed addresses of the redundancy group;

if no other high-priority gateway occupies the external fixed address of the redundancy group to respond to the external software data, otherwise, the gateway enters a monitoring state.

Technical Field

The present invention relates to the field of gateway technologies, and in particular, to a redundant gateway system and a redundant switching method.

Background

Gateway redundancy is an indispensable technology in a network, when the requirement on network reliability is high, not only is the performance problem of the network itself considered, but also the redundancy technology is necessary. The gateway redundancy realizes the damage of any single gateway in the system, and the whole function of the system can not be influenced, thereby greatly improving the reliability of network data transmission. At present, the gateway redundancy widely uses a 1:1 hot standby redundancy technology or a 2-out-of-3 voting redundancy technology. The 1:1 hot standby redundancy technology means that two same gateways are in a running state, wherein one side of the two same gateways is in a normal working state and is in real-time sampling, and the other side of the two same gateways is in a standby state and does not participate in sampling. When the working gateway fails in the system operation process, the standby gateway can replace the fault gateway to enter a working state, and the fault gateway enters a standby state to complete undisturbed switching so as to ensure the continuous and correct operation of the system. The 2-out-of-3 voting redundancy technology means that the three same gateways are in a running state, all the three gateways are in a normal working state, are in real-time sampling, respectively upload data to a comparison module, and the comparison module performs 2-out-of-3 data voting and uploads the data to upper application software after the data is finished.

Disclosure of Invention

Aiming at the defects in the prior art, the invention provides a redundant gateway system, which comprises: the system comprises a plurality of gateways connected through a network, wherein each gateway stores a redundant configuration information table, the redundant configuration information table comprises an external IP address, a self IP address and a redundant gateway address table, and the redundant gateway address table comprises the self IP address of each gateway; the plurality of gateways are configured to read respective redundant gateway address tables after being started, and determine a main gateway occupying an external IP address to respond to external application software according to a main gateway inheritance rule.

Preferably, the plurality of gateways have the same external IP address.

Preferably, the plurality of gateways include a main gateway and a standby gateway, and the main gateway occupies interaction between an external IP address and external application software, and performs data interaction with other standby gateways in the redundant gateway address table through its own IP address.

Preferably, the backup gateway is configured to confirm a backup gateway among the non-failed gateways according to the primary gateway inheritance rule to occupy the external IP address in response to the external application software when the primary gateway cannot interact with the external application software.

Preferably, the redundancy configuration information table further includes a redundancy voting policy, and the master gateway determines and votes the acquired data of each gateway according to the redundancy voting policy and sends voting result data to external application software.

Preferably, the master gateway is configured to, when data acquisition of one or more backup gateways fails, change the redundancy voting policy according to the number of failed backup gateways, determine and vote the master gateway data and the remaining backup gateway data according to the changed redundancy voting policy, and send voting result data to external application software.

Preferably, the standby gateways are configured to judge whether other high-priority gateways exist in each standby gateway according to the inheritance rule of the main gateway when the data of the main gateway cannot be acquired, and maintain the standby state if the other high-priority gateways exist, otherwise occupy the external IP address to respond to the external application software.

Preferably, the standby gateway is configured to periodically and repeatedly determine whether a primary gateway exists in each gateway on the redundant gateway address table.

Preferably, the standby gateway is configured to periodically obtain other gateway data on the redundant gateway address table.

The invention also discloses a redundancy switching method, which is used for the redundancy gateway system and comprises the following steps: each gateway reads a respective redundancy configuration information table, and judges whether other high-priority gateways exist in a redundancy group according to a main gateway inheritance rule, wherein the redundancy gateway address table comprises addresses of all gateways in the same redundancy group and external fixed addresses of the redundancy group; if no other high-priority gateway occupies the external fixed address of the redundancy group to respond to the external software data, otherwise, the gateway enters a monitoring state.

The invention sets a redundant configuration information table for a plurality of gateways in the network, wherein the redundant configuration information table comprises a redundant gateway address table comprising the IP address of each gateway in the same redundant group and the external IP address of the redundant group. When the gateway works, whether other high-priority gateways exist in the redundancy group or not can be judged according to the inheritance rule of the main gateway by reading the redundancy gateway address table, if no other high-priority gateway exists, the external IP address of the redundancy group is occupied to respond to external software data, and if not, the gateway enters a monitoring state. The system forms a redundancy group concept by setting a redundancy gateway address table containing all other redundancy gateway addresses in each gateway, and can realize redundancy of any N gateways. According to the redundancy voting strategy, a 1:1 hot standby redundancy technology or an N-to-M voting redundancy technology can be realized, and the reliability of gateway redundancy is improved. Through the external IP address of the redundancy group, the upper application software only needs to carry out data interaction on the external IP address through the redundancy group and does not need to carry out data interaction with the IP addresses of all gateways of the redundancy group, and the usability of the redundancy of the gateways is greatly improved. Meanwhile, data are only needed to be interacted among the redundant gateways through the network, interaction is not needed to be carried out through a special channel as in a redundant gateway system in the prior art, the redundancy rate cannot be changed rapidly through a simple mode to meet different using requirements, and the maintainability is poor.

Additional aspects and advantages of the invention will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the invention.

Drawings

The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the invention without limiting the invention. In the drawings:

fig. 1 is a schematic diagram of a 1:1 hot standby redundant gateway connection in the prior art.

Fig. 2 is a schematic flowchart of a gateway redundancy control method according to an embodiment of the present invention.

Fig. 3 is a schematic flowchart of a gateway redundancy control method according to another embodiment of the present invention.

Fig. 4 is a schematic connection diagram of a redundant gateway system according to an embodiment of the present invention.

Fig. 5 is a flowchart illustrating a gateway redundancy control method according to another embodiment of the present invention.

Fig. 6 is a schematic connection diagram of a 1:1 hot standby redundant gateway system according to an embodiment of the present invention.

Fig. 7 is a schematic diagram of a working flow of a 1:1 hot standby redundant master gateway according to an embodiment of the present invention.

Fig. 8 is a schematic diagram of a working flow of a 1:1 hot standby redundant standby gateway according to an embodiment of the present invention.

Fig. 9 is a schematic connection diagram of a 3-out-of-2 voting redundant gateway system according to an embodiment of the present invention.

Fig. 10 is a schematic diagram of a primary gateway workflow of 2-out-of-3 voting redundancy according to an embodiment of the present invention.

Fig. 11 is a schematic diagram of a working flow of a standby gateway with 2-out-of-3 voting redundancy according to an embodiment of the present invention.

Fig. 12 is a schematic structural diagram of an industrial gateway according to an embodiment of the present invention.

Detailed Description

In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the drawings of the embodiments of the present invention. It is to be understood that the embodiments described are only a few embodiments of the present invention, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the described embodiments of the invention without any inventive step, are within the scope of protection of the invention.

In the present invention, unless otherwise expressly specified or limited, the terms "mounted," "connected," "secured," and the like are to be construed broadly and can, for example, be fixedly connected, detachably connected, or integrally connected; can be mechanically or electrically connected; they may be connected directly or indirectly through intervening media, or they may be interconnected between two elements. The specific meanings of the above terms in the present invention can be understood by those skilled in the art according to specific situations.

In the present invention, unless otherwise expressly stated or limited, "above" or "below" a first feature means that the first and second features are in direct contact, or that the first and second features are not in direct contact but are in contact with each other via another feature therebetween. Also, the first feature being "on," "above" and "over" the second feature includes the first feature being directly on and obliquely above the second feature, or merely indicating that the first feature is at a higher level than the second feature. A first feature being "under," "below," and "beneath" a second feature includes the first feature being directly under and obliquely below the second feature, or simply meaning that the first feature is at a lesser elevation than the second feature.

Unless defined otherwise, technical or scientific terms used herein shall have the ordinary meaning as understood by one of ordinary skill in the art to which this invention belongs. The use of "first," "second," and similar terms in the description and claims of the present application do not denote any order, quantity, or importance, but rather the terms are used to distinguish one element from another. Also, the use of the terms "a" or "an" and the like do not denote a limitation of quantity, but rather denote the presence of at least one.

22页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种修复切换控制模块

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!