CN106452952B - A kind of method and gateway cluster detecting group system communications status - Google Patents

A kind of method and gateway cluster detecting group system communications status Download PDF

Info

Publication number
CN106452952B
CN106452952B CN201610865479.4A CN201610865479A CN106452952B CN 106452952 B CN106452952 B CN 106452952B CN 201610865479 A CN201610865479 A CN 201610865479A CN 106452952 B CN106452952 B CN 106452952B
Authority
CN
China
Prior art keywords
gateway
cluster
central node
communications status
gateways
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.)
Active
Application number
CN201610865479.4A
Other languages
Chinese (zh)
Other versions
CN106452952A (en
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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201610865479.4A priority Critical patent/CN106452952B/en
Publication of CN106452952A publication Critical patent/CN106452952A/en
Priority to PCT/CN2017/081069 priority patent/WO2018058941A1/en
Application granted granted Critical
Publication of CN106452952B publication Critical patent/CN106452952B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0805Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability
    • H04L43/0811Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability by checking connectivity
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/10Active monitoring, e.g. heartbeat, ping or trace-route

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Environmental & Geological Engineering (AREA)
  • Health & Medical Sciences (AREA)
  • Cardiology (AREA)
  • General Health & Medical Sciences (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The embodiment of the present invention provides a kind of method and gateway cluster for detecting group system communications status, it is related to computer field, to there are when magnanimity communication link in group system, reduce the pressure of central node, including the first gateway cluster and the second gateway cluster, wherein, first gateway cluster includes the first central node and N number of first gateway, second gateway cluster includes the second central node and M the second gateways, there are communication links for the second gateway of one or more of N number of first gateway at least one of the first gateway and the second gateway cluster, first central node obtains state-detection message, the state-detection message is used to indicate the communications status of the communication link between the second gateway in each of one or more first gateways the first gateway and the second gateway cluster;First central node determines the communications status between the first gateway cluster and the second gateway cluster according to state-detection message.The embodiment of the present invention is applied in distributed cluster system scene.

Description

A kind of method and gateway cluster detecting group system communications status
Technical field
The present embodiments relate to computer field more particularly to a kind of methods and net for detecting group system communications status Close cluster.
Background technique
Distributed cluster system is typically deployed under the business cluster that two or more needs communicate, such as Fig. 1 institute Show, wherein a gateway cluster corresponds at least one business cluster, the corresponding gateway cluster of a business cluster, for being to be somebody's turn to do Business cluster provides data transmission capabilities, and there are at least one communication chains between the every two gateway cluster in multiple gateway clusters Road, for supporting the data between business cluster to transmit.Therefore, it is necessary to understand the communications status between gateway cluster at any time, divide at present The communications status of cloth group system is mainly determined by detecting the communication link heartbeat of communication link.
As shown in Fig. 2, distributed cluster system shown in Fig. 2 includes gateway cluster 10 and gateway cluster 20, wherein gateway There are at least one communication links between cluster 10 and gateway cluster 20, and gateway cluster 10 is including central node 101 and at least One the first gateway, gateway cluster 20 include central node 201 and at least one second gateway, central node 101 and center To between gateway cluster 10 and gateway cluster 20, there are communication link every at least one communication link progress respectively for node 201 Heartbeat detection to obtain the communications status of every communication link, and determines gateway according to the communications status of every communication link Communications status between cluster 10 and gateway cluster 20, in this way when the communication link between gateway cluster 10 and gateway cluster 20 is non- When often more, and gateway cluster 10 also gateway cluster 20 except remaining gateway cluster between there are when communication link, by obtaining The communications status of every communication link is taken, and determines the communication shape between gateway cluster according to the communications status of every communication link State will definitely increase the burden of central node.
Summary of the invention
The embodiment of the present invention provides a kind of method and gateway cluster for detecting group system communications status, in reducing The burden of heart node.
In order to achieve the above objectives, the embodiment of the present invention adopts the following technical scheme that
In a first aspect, the embodiment of the present invention provides a kind of method for detecting group system communications status, the group system packet Include the first gateway cluster and the second gateway cluster, wherein the first gateway cluster includes the first central node and one or more First gateway, second gateway cluster include the second central node and one or more second gateway, each first gateway with There are at least one communication link, method packets provided in an embodiment of the present invention for the second gateway of at least one of second gateway cluster Include: the first central node obtains state-detection message, which is used to indicate in the first gateway cluster one or more The communications status of the communication link between the second gateway in each of a first gateway the first gateway and the second gateway cluster; First central node determines the communications status between the first gateway cluster and the second gateway cluster according to state-detection message.
The embodiment of the present invention provides a kind of method for detecting group system communications status, is obtained and is used by the first central node The second net in the first gateway cluster of instruction in one or more first gateways in each first gateway and the second gateway cluster The state-detection message of the communications status of communication link between pass, then the first central node is determined according to state-detection message Communications status between first gateway cluster and the second gateway cluster, so that, the first central node is only needed according to first The communications status of the communication link between the second gateway in gateway and the second gateway cluster, that is, can determine the first gateway cluster with Communications status between second gateway cluster, in the prior art, the first central node needs to obtain the first gateway cluster and The communications status of every communication link between two gateway clusters, and the first net is determined according to the communications status of every communication link Cluster is closed compared with the communications status between the second gateway cluster, detection group system communications status provided in an embodiment of the present invention Method can reduce by the first central node between the first gateway cluster and the second gateway cluster there are when magnanimity communication link Burden.
With reference to first aspect, in the first possible implementation of the first aspect, the first central node obtains state Detection message specifically includes: first central node receives what the first gateway of each of one or more first gateways reported State-detection message, the state-detection message that first gateway reports are used to indicate first gateway and the second gateway cluster Communications status is to disconnect or normally, obtain each first gateway in one or more first gateways by the first central node in this way Communications status, to determine the communications status between the first gateway cluster and the second gateway cluster, due to each first gateway A corresponding state, and the communication link between the first gateway cluster and the second gateway cluster is than the in the first gateway cluster One gateway quantity is more, therefore, obtains every communication chain between the first gateway cluster and the second gateway cluster with the first central node The communications status on road is compared, and the state-detection message reported by obtaining each first gateway can reduce the first central node Burden.
The first possible implementation with reference to first aspect or first aspect, second in first aspect may Implementation in, when above-mentioned state detecting information show in the first gateway of one or more of first gateway cluster exist extremely The communications status between the second gateway in first gateway and the second gateway cluster is normal less, then shows the first gateway collection Group the second gateway cluster between communications status be it is normal, due to the state between any one first gateway and the second gateway When being normal, it can reflect between first gateway and the second gateway there are the communications status of a communication link be it is normal, Therefore, when the communications status between any one first gateway and the second gateway is normal, that is, show first gateway cluster And second between gateway cluster there are the communications status of a communication link be it is normal, therefore, the first central node can basis Being normal there are the communications status of at least one first gateway and the second gateway in first gateway cluster and the second gateway cluster is It can determine that communications status is normal between the first gateway cluster and the second gateway cluster, in this way and according to the logical of every communication link Letter state determines that the communications status between the first gateway cluster and the second gateway cluster is compared, and can reduce the first central node Burden.
Any one possible implementation into second of possible implementation of first aspect with reference to first aspect, In a third possible implementation of the first aspect, when above-mentioned state detecting information show it is N number of in the first gateway cluster Between M the second gateways in the first gateway of one or more of first gateway in each first gateway and the second gateway cluster Communications status be to disconnect, then show communications status between the first gateway cluster and the second gateway cluster to disconnect, due to State between any one first gateway and the second gateway is to disconnect, that is, shows the institute between first gateway and the second gateway Have communication link be disconnect, therefore, the first central node can according to the first gateway each at least one first gateway with Communications status in second gateway cluster between the second gateway is to disconnect, and is determined between the first gateway cluster and the second gateway cluster All communication links are to disconnect, and determine the first gateway cluster and the second net with according to the communications status of every communication link in this way The communications status closed between cluster is compared, and the burden of the first central node can be reduced.
Any one possible implementation into the third possible implementation of first aspect with reference to first aspect, In a fourth possible implementation of the first aspect, which is any one in one or more first gateways The second gateway of at least one of one or more second gateways in the second gateway cluster that a first gateway reports is sent Heartbeat detection reply message, the first central node is replied message and be can be thus achieved to the first gateway collection by obtaining heartbeat detection The determination of communications status can drop in this way without the communications status for detecting every communication link between group and the second gateway cluster The processing load of low central node.
Any one possible implementation into the 4th kind of possible implementation of first aspect with reference to first aspect, In the fifth possible implementation of the first aspect, before the first central node obtains state-detection message, the present invention The method that embodiment provides further include: first central node sends the first instruction message to one or more first gateways, should First instruction message is used to indicate one or more first gateways at least one of one or more of second gateways the Two gateways send heartbeat detection information, by sending to one or more first gateways for sending at least one the second gateway First instruction message of heartbeat detection information, since the heartbeat detection message in the embodiment of the present invention is destined to the second gateway collection The second gateway in group, heartbeat detection message is made a response and the second gateway, therefore the first central node is in second It is still can receive when heart node failure to the heartbeat detection that the second gateway cluster is sent and is replied message, avoided in the first gateway collection When communications status between group and the second gateway is normal, due to the second central node failure, and cause because not receiving the The heartbeat detection communications status that replies message and judge by accident between the first gateway cluster and the second gateway of two central nodes feedback is It disconnects.
Any one possible implementation into the 5th kind of possible implementation of first aspect with reference to first aspect, In the sixth possible implementation of the first aspect, method provided in an embodiment of the present invention further include: the first central node It is replied message if it is determined that receiving the heartbeat detection that any one first gateway is sent in one or more first gateways, it is determined that Communications status is normal between first gateway cluster and the second gateway cluster;First central node in predetermined period if it is determined that connect The continuous heartbeat detection for not receiving any one first gateway transmission in one or more first gateways repeatedly replies message, then really Communications status is to disconnect between fixed first gateway cluster and the second gateway cluster.
Any one possible implementation into the 6th kind of possible implementation of first aspect with reference to first aspect, In a seventh possible implementation of the first aspect, the first gateway cluster and the second gateway collection are determined in the first central node Communications status is method provided in an embodiment of the present invention further include: the first central node stops to one after disconnecting between group Or multiple first gateways send heartbeat detection message, and send second indication information to one or more first gateways, this second Indicate that information is used to indicate any one second gateway that one or more first gateways stop into the second gateway cluster and sends Heartbeat detection replies message, and the communication shape between the first gateway cluster and the second gateway cluster is had determined that due to the first central node State is to disconnect, but may have the second central node and determine leading between the first gateway cluster and the second gateway cluster Letter state is to disconnect, therefore, by sending second indication informations to one or more first gateways, in this way one or more the One gateway receives after the heartbeat detection message that the second gateway of at least one of second gateway cluster is sent, and this Or any one first gateway will not make a response this heartbeat detection message in multiple first gateways, therefore can make in this way It obtains the second central node and is repeatedly sending heartbeat detection message to the first gateway cluster, but it is anti-not receive the first gateway cluster After the heartbeat detection of feedback replies message, determine that the communications status between the first gateway cluster and the second gateway cluster is to disconnect, Therefore the first gateway cluster and the second gateway cluster can be made to reach communications status cognition to each other by the above method Unanimously.
Second aspect, the embodiment of the present invention provide a kind of gateway cluster, and the gateway cluster is as first in group system Gateway cluster, above-mentioned group system further include the second gateway cluster, wherein the first gateway cluster include the first central node and N number of first gateway, second gateway cluster include the second central node and M the second gateways;Wherein, in N number of first gateway The first gateway of one or more be used to at least one of the second gateway cluster the second gateway establish communication link;In first For heart node for obtaining state-detection message, which is used to indicate one or more first in the first gateway cluster The communications status of the communication link between the second gateway in the first gateway of each of gateway and the second gateway cluster;First Central node is used to determine the communications status between the first gateway cluster and the second gateway cluster according to the state-detection message.
In conjunction with second aspect, in the first possible implementation of the second aspect, which obtains shape State detection message specifically includes: first central node receives the first gateway of each of one or more first gateways and reports State-detection message.
In conjunction with the first possible implementation of second aspect, in second of possible implementation of second aspect In, when above-mentioned state detecting information shows at least one first gateway in one or more of gateways in the first gateway cluster The communications status of an at least communication link is normal between the second gateway in the second gateway cluster, then show this first Communications status between gateway cluster and the second gateway cluster is normal.
In conjunction with second aspect to second aspect second of possible implementation in any one possible implementation, In the third possible implementation of the second aspect, show one or more in the first gateway cluster when state detecting information All communication links disconnect between the second gateway of one or more of a first gateway and the second gateway cluster, then show Communications status is to disconnect between one gateway cluster and the second gateway cluster.
In conjunction with second aspect to second aspect the third possible implementation in any one possible implementation, In the fourth possible implementation of the second aspect, one or more first gateways of above-mentioned state-detection message report The heartbeat detection reply that the second gateway of at least one of one or more second gateways is sent in the second gateway cluster disappears Breath.
In conjunction with second aspect to second aspect the 4th kind of possible implementation in any one possible implementation, In a fifth possible implementation of the second aspect, the first central node is also used to send to one or more first gateways First instruction message, first instruction message are used to indicate one or more first gateways into one or more second gateways At least one second gateway sends heartbeat detection information.
In conjunction with second aspect to second aspect the 5th kind of possible implementation in any one possible implementation, In the sixth possible implementation of the second aspect, which is also used to: receiving one or more in determination After the heartbeat detection that any one first gateway reports in a first gateway replies message, determine the first gateway cluster with it is described Communications status between second gateway cluster is normal;First central node is also used to: continuous pre- in predetermined period determining If number does not receive the heartbeat detection that any one first gateway reports in one or more of first gateways and replies message, Then the first central node determines the communications status between the first gateway cluster and second gateway cluster to disconnect.
In conjunction with second aspect to second aspect the 6th kind of possible implementation in any one possible implementation, In the 7th kind of possible implementation of second aspect, the first gateway cluster and second net are determined in the first central node Closing the communications status between cluster is after disconnecting, and the first central node is also used to stop to send to one or more first gateways Heartbeat detection message, and second indication information is sent to one or more first gateways, which is used to indicate one A or multiple first gateways stop the transmission of any one second gateway into the second gateway cluster heartbeat detection and reply message.
The third aspect, the embodiment of the present invention provide a kind of method for detecting group system communications status, the group system packet Include the first gateway cluster and the second gateway cluster, wherein first gateway cluster includes the first central node and N number of first net It closes, which includes the second central node and M the second gateways, one or more of N number of first gateway the For the second gateway of at least one of one gateway and the second gateway cluster there are communication link, the embodiment of the present invention provides a kind of detection The method of group system communications status includes: that the first gateway of each of one or more first gateways is sent out to the first central node The state-detection message of first gateway is given, so that the first central node determines the first gateway cluster according to state-detection message With the communications status between the second gateway cluster, the state-detection message of first gateway is used to indicate first gateway and Communications status between the second gateway of at least one of two gateway clusters is normal or the state-detection of first gateway Message is used to indicate between the second gateway of at least one of first gateway and the second gateway cluster in existing communication link Communications status there are at least one communication link is normal.
In conjunction with the third aspect, in the first possible implementation of the third aspect, for the one the first gateways, first First gateway is any one first gateway in one or more first gateways;The state-detection message is one or more the The heart that the second gateway of at least one of one or more second gateways is sent in the second gateway cluster that one gateway reports Test returns message is jumped, before the first gateway sends state-detection message to the first central node, the embodiment of the present invention is provided A method of detection group system communications status further include: the one the first gateways receive the first central node is sent first and refer to Show message, carry heartbeat detection information in first instruction message, which is used to indicate the one the first nets It closes and heartbeat detection information is periodically sent in the second gateway cluster at least to there are communication links with the one the first gateways The second gateway;Heartbeat detection information is sent in the second gateway cluster that there are communication links with first gateway by the first gateway Second gateway, wherein the one the first gateways are any one first gateway in one or more first gateways.
In the first possible implementation in conjunction with the third aspect to the third aspect, second in the third aspect may Implementation in, for the two the first gateways, the two the first gateways be in one or more first gateways any one the One gateway;Heartbeat detection information is sent in the second gateway cluster to there are communication chains with first gateway in the one the first gateways After one second gateway on road, method provided in an embodiment of the present invention further include: the two the first gateways receive the second gateway collection The heartbeat detection sent with the two the first gateways there are second gateway of communication link in group replies message;The two the One gateway, which replies message heartbeat detection, is sent to the first central node.
In second of possible implementation in conjunction with the third aspect to the third aspect, the third in the third aspect may Implementation in, above-mentioned state-detection message includes the state that the first gateway of each of one or more first gateways reports Detect message;The first gateway of each of one or more first gateways to the first central node send state-detection message it Before, method provided in an embodiment of the present invention further include: the first gateway of each of one or more first gateways receives the first chain Existing communication chain between the second gateway of at least one of road management node first gateway reported and the second gateway cluster The communications status of every communication link in road;The communications status of one communication link is used to indicate belonging to the communication link The first gateway and second gateway cluster between communications status;Each first gateway is corresponding at least one logical according to its The communications status for believing every communication link in link, determines the communications status of first gateway, wherein the communication of the first gateway State refers to the communications status between first gateway and the second cluster.
In the third possible implementation in conjunction with the third aspect to the third aspect, in the 4th kind of possibility of the third aspect Implementation in, for the three the first gateways, the three the first gateways are any one in one or more first gateways First gateway;The three the first gateways according to the communications status of every communication link in its corresponding at least one communication link, Determine the communications status of the three the first gateways, comprising: when the three the first gateways that the first link management node reports are corresponding Communication link in there are the communications status of at least one communication link be it is normal, then the three the first gateways determine this three the One gateway communication state is normal;When every in the three the first corresponding communication links of gateway that the first link management node reports The communications status of communication link is to disconnect, then the three the first gateways determine the three the first gateway communication states to disconnect.
In the 4th kind of possible implementation in conjunction with the third aspect to the third aspect, in the 5th kind of possibility of the third aspect Implementation in, method provided in an embodiment of the present invention further include: each first gateway receives what the first central node was sent Second indication information, the second indication information be used to indicate the first gateway stop into the second gateway cluster any one second Gateway sends heartbeat detection and replies message.
Fourth aspect, the embodiment of the present invention also provide a kind of method for detecting group system communications status, the group system Including the first gateway cluster and the second gateway cluster, first gateway cluster include the first central node, N number of first gateway with And the first link management node, the second gateway cluster include the second central node, M the second gateways and the second link management section Point;It is deposited between one or more of N number of first gateway the second gateway of at least one of the first gateway and the second gateway cluster In communication link, this method comprises: in each first gateway of the first link management nodal test and the second gateway cluster at least There are the communications status of every communication link at least one communication link between the second gateway of each of one second gateway; The communications status is including disconnecting or normally;The communications status of every communication link is reported to the communication by the first link management node First gateway belonging to link, so that each first gateway is according to every in corresponding at least one communication link of first gateway The communications status of communication link determines the communications status of first gateway.
5th aspect, the embodiment of the present invention provide a kind of first gateway, the group system include the first gateway cluster and Second gateway cluster, first gateway cluster include the first central node, N number of first gateway and the first link management node, Second gateway cluster includes the second central node, M the second gateways and the second link management node;In N number of first gateway There are communication link, the gateway packets between the second gateway of one or more at least one of first gateways and the second gateway cluster It includes: the first transmission unit, for sending state-detection message to the first central node, so that the first central node is according to state Detection message determines the communications status between the first gateway cluster and the second gateway cluster.
In conjunction with the 5th aspect, in the first possible implementation of the 5th aspect, provided in an embodiment of the present invention the One gateway further include: the first receiving unit, for receiving the first instruction message of the first central node transmission, which disappears Heartbeat detection information is carried in breath, which is used to indicate the gateway and periodically sends heartbeat detection information To at least there are the second gateways of communication link with the gateway in the second gateway cluster;Second transmission unit, for examining heartbeat Measurement information is sent in the second gateway cluster that there are second gateways of communication link with the gateway.
In the first possible implementation in conjunction with the 5th aspect to the 5th aspect, second at the 5th aspect may Implementation in, the first gateway provided in an embodiment of the present invention further include: the second receiving unit, for receive the second gateway collection The heartbeat detection sent with the gateway there are second gateway of communication link in group replies message;Third transmission unit is used The first central node is sent in replying message heartbeat detection.
In second of possible implementation in conjunction with the 5th aspect to the 5th aspect, the third at the 5th aspect may Implementation in, above-mentioned state-detection message includes the state-detection message that gateway reports;Provided in an embodiment of the present invention One gateway further include: third receiving unit, for receiving gateway and the second gateway cluster that the first link management node reports At least one of between the second gateway in existing communication link every communication link communications status;One communication chain The communications status on road, the communications status being used to indicate between gateway belonging to the communication link and second gateway cluster;Really Order member, for the communications status according to every communication link in corresponding at least one communication link of the gateway, determining should The communications status of gateway, wherein the communications status of the gateway refers to the communications status between the gateway and the second cluster.
In the third possible implementation in conjunction with the 5th aspect to the 5th aspect, in the 4th kind of possibility of the 5th aspect Implementation in, determination unit is specifically used for: when the three the first gateways that the first link management node reports are corresponding logical In letter link there are the communications status of at least one communication link be it is normal, then the three the first gateways determine this three the first nets It is normal for closing communications status;When every logical in the three the first corresponding communication links of gateway that the first link management node reports The communications status of letter link is to disconnect, then the three the first gateways determine the three the first gateway communication states to disconnect.
In the 4th kind of possible implementation in conjunction with the 5th aspect to the 5th aspect, in the 5th kind of possibility of the 5th aspect Implementation in, the first gateway provided in an embodiment of the present invention further include: Unit the 4th, for receive the first central node hair The second indication information sent, the second indication information be used to indicate the gateway stop into the second gateway cluster any one Two gateways send heartbeat detection and reply message.
6th aspect, the embodiment of the present invention also provide a kind of link management node, which includes the first gateway collection Group and the second gateway cluster, the link management node is as the first link management node in the first gateway cluster, this first Gateway cluster includes the first central node, N number of first gateway and the first link management node, and the second gateway cluster includes second Central node, M the second gateways and the second link management node;The first gateway of one or more of N number of first gateway with There are communication link between the second gateway of at least one of second gateway cluster, which includes: detection Unit, for detecting each of second gateway of one or more at least one of first gateways and the second gateway cluster second There are the communications status of every communication link at least one communication link between gateway;The communications status is including disconnecting or just Often;Reporting unit, for the communications status of every communication link to be reported to the first gateway belonging to the communication link, so that Each first gateway is determined according to the communications status of every communication link in corresponding at least one communication link of first gateway The communications status of first gateway.
7th aspect, the embodiment of the present invention provide a kind of first central node, which is applied to cluster system In system, which includes the first gateway cluster and the second gateway cluster, wherein the first gateway cluster includes the first centromere Point and N number of first gateway, the second gateway cluster include the second central node and M the second gateways, in N number of first gateway There are communication link, first centromeres for one or more the second gateways of at least one of first gateway and the second gateway cluster Point includes: acquiring unit, and for obtaining state-detection message, which is used to indicate in the first gateway cluster one Or the communication link between the second gateway in multiple first gateways in each first gateway and second gateway cluster is logical Letter state;Determination unit, for determining the communication between the first gateway cluster and the second gateway cluster according to state-detection message State.
In conjunction with the 7th aspect, in a kind of possible implementation of the 7th aspect, above-mentioned acquiring unit is specifically used for: connecing Receive the state-detection message that each first gateway reports in one or more first gateways.
In conjunction with the first possible implementation of the 7th aspect or the 7th aspect, in two kinds of possible realities of the 7th aspect In existing mode, above-mentioned determination unit is specifically used for: when state detecting information shows one or more of first gateway cluster the In one gateway there are the communications status between the second gateway at least one first gateway and the second gateway cluster be it is normal, then Show that the communications status between the first gateway cluster and second gateway cluster is normal.
In conjunction with the 7th aspect to the 7th aspect second of possible implementation in any one possible implementation, In three kinds of possible implementations of the 7th aspect, above-mentioned determination unit also particularly useful for: when state detecting information shows the In the first gateway of one or more of N number of first gateway in one gateway cluster in each first gateway and the second gateway cluster The M the second gateways between communications status be to disconnect, then show the first gateway cluster and second gateway cluster Between communications status be disconnect.
In conjunction with the 7th aspect to the 7th aspect the third possible implementation in any one possible implementation, In four kinds of possible implementations of the 7th aspect, above-mentioned state-detection message is one or more of N number of first gateway What the second gateway of at least one of one or more second gateways in the second gateway cluster that the first gateway reports was sent Heartbeat detection replies message.
In conjunction with the 7th aspect to the 7th aspect the 4th kind of possible implementation in any one possible implementation, In five kinds of possible implementations of the 7th aspect, above-mentioned first central node further include: transmission unit, for N number of the The first gateway of one or more of one gateway sends the first instruction message, which is used to indicate one or more First gateway sends heartbeat detection information to the second gateway of at least one of M the second gateways.
In conjunction with the 7th aspect to the 7th aspect the 5th kind of possible implementation in any one possible implementation, In the 6th kind of possible implementation of the 7th aspect, above-mentioned determination unit is also used to: when determination receives one or more The heartbeat detection that any one first gateway reports in first gateway replies message, it is determined that first gateway cluster with it is described Communications status between second gateway cluster is normal;
When determining that continuous in predetermined period preset times do not receive at least one in the first gateways of one or more the The heartbeat detection that one gateway reports replies message, then the first central node determines between the first gateway cluster and the second gateway cluster Communications status be disconnect.
In conjunction with the 7th aspect to the 7th aspect the 6th kind of possible implementation in any one possible implementation, In the 7th kind of possible implementation of the 7th aspect, above-mentioned first central node further include: stop transmission unit, the stopping Transmission unit is specifically used for: stopping sending heartbeat detection message to one or more first gateways, and to one or more of First gateway send second indication information, the second indication information be used to indicate one or more of first gateways stop to Any one second gateway in second gateway cluster sends heartbeat detection and replies message.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technical description to be briefly described.
Fig. 1 is the application scenarios of group system in the prior art provided in an embodiment of the present invention;
Fig. 2 is the structure chart of group system in the prior art provided in an embodiment of the present invention;
Fig. 3 a is architecture diagram applied by a kind of method for detecting group system communications status provided in an embodiment of the present invention One;
Fig. 3 b is architecture diagram applied by a kind of method for detecting group system communications status provided in an embodiment of the present invention Two;
Fig. 4 is a kind of flow diagram one of method for detecting group system communications status provided in an embodiment of the present invention;
Fig. 5 is a kind of flow diagram two of method for detecting group system communications status provided in an embodiment of the present invention;
Fig. 6 is a kind of flow diagram two of method for detecting group system communications status provided in an embodiment of the present invention;
Fig. 7 is a kind of method for detecting group system communications status provided in an embodiment of the present invention in a detection moment Heartbeat path schematic diagram;
Fig. 8 is a kind of flow diagram three of method for detecting group system communications status provided in an embodiment of the present invention;
Fig. 9 is a kind of method for detecting group system communications status provided in an embodiment of the present invention in the second central node Heartbeat path schematic diagram when failure;
Figure 10 is a kind of structural schematic diagram of group system application provided in an embodiment of the present invention;
Figure 11 A is a kind of structural schematic diagram one of first central node provided in an embodiment of the present invention;
Figure 11 B is a kind of structural schematic diagram two of first central node provided in an embodiment of the present invention;
Figure 11 C is a kind of structural schematic diagram three of first central node provided in an embodiment of the present invention;
Figure 11 D is a kind of hardware structural diagram of first central node provided in an embodiment of the present invention;
Figure 12 A is a kind of structural schematic diagram one of first gateway provided in an embodiment of the present invention;
Figure 12 B is a kind of structural schematic diagram two of first gateway provided in an embodiment of the present invention;
Figure 12 C is a kind of hardware structural diagram of first gateway provided in an embodiment of the present invention;
Figure 13 A is a kind of structural schematic diagram one of first link management node provided in an embodiment of the present invention;
Figure 13 B is a kind of structural schematic diagram two of first link management node provided in an embodiment of the present invention;
Figure 13 C is a kind of hardware structural diagram of first link management node provided in an embodiment of the present invention;
Figure 14 is a kind of structural schematic diagram of gateway cluster provided in an embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention is clearly retouched It states.
For the ease of clearly describing the technical solution of the embodiment of the present invention, in embodiments of the present invention, use " first ", Printed words such as " second " distinguish function and the essentially identical identical entry of effect or similar item, and those skilled in the art can manage The printed words such as solution " first ", " second " are not defined quantity and execution order.
The group system and scene of description of the embodiment of the present invention are to more clearly illustrate the embodiment of the present invention Technical solution does not constitute the restriction to technical solution provided in an embodiment of the present invention, those of ordinary skill in the art it is found that with The differentiation of group system and the appearance of new group system, technical solution provided in an embodiment of the present invention asks similar technology Topic, it is equally applicable.
Technical solution provided in an embodiment of the present invention can be applied in distributed cluster system, the distributed cluster system It may include two or more gateway clusters, group system includes two nets to the scheme of the embodiment of the present invention in a distributed manner Cluster is closed, i.e., is illustrated by taking the first gateway cluster and the second gateway cluster as an example.
Multiple references in the embodiment of the present invention two or more.
Fig. 3 a is the schematic diagram of the distributed cluster system based on the first gateway cluster and the second gateway cluster.Such as Fig. 3 a institute Show, the distributed cluster system based on the first gateway cluster and the second gateway cluster is divided into three layers from longitudinal see: where the first net Closing cluster 30 includes the first central node layer 301, the first gateway layer 302 and the first link management node 303;Second gateway collection Group 40 includes the second central node layer 401, the second gateway layer 402 and the second link management node 403;Wherein, the first center Operation has the first central node in node layer 301;Operation has the second central node in second central node layer 401;
First gateway layer 302 includes: N number of first gateway, wherein N is more than or equal to 1, for example, the first gateway 3021, first Gateway 3022 and the first gateway 3033);
Second gateway layer 402 includes: M the second gateways, wherein M is more than or equal to 1, for example, the second gateway 4021, second Gateway 4022 and the second gateway 4023);
Wherein, at least one of first gateway of one or more of first gateway cluster 30 and the second gateway cluster 40 There are communication links for second gateway, and illustratively, there are 5 communication links between the first gateway 3021 and the second gateway 4021; There are 3 communication links between first gateway 3021 and the second gateway 4022, between the second gateway 3022 and the second gateway 4021 There are 5 communication links;There are 3 communication links between second gateway 3022 and the second gateway 4022;Second gateway 3022 with There are 4 communication links between second gateway 4023, there are 10 between the first gateway 3023 and the second gateway 4021 to communicate a chain Road, there are 7 communication links between the first gateway 3023 and the second gateway 4022, the first gateway 3023 and the second gateway 4023 it Between there are 6 communication links.It should be noted that can also include removing the first gateway 3021, first in the first gateway cluster 30 Remaining first gateway except gateway 3022 and the first gateway 3023, between remaining first gateway and the second gateway cluster Communication link is not present between any one second gateway.It simultaneously can also include removing the second gateway in the second gateway cluster 40 4021, remaining second gateway except the second gateway 4022 and the second gateway 4023, remaining second gateway and the first gateway Communication link is not present between any one first gateway in cluster.Also, it is understood that in the embodiment of the present invention The first gateway cluster provided can also be communicated at least one gateway cluster in addition to the second gateway cluster, the second net Closing cluster can also be communicated at least one gateway cluster in addition to the first gateway cluster.
First link management node 303 is each in first gateway of one or more of the first gateway cluster 30 for managing Every communication link in existing communication link between at least one second gateway in first gateway and the second gateway cluster 40, tool Body, the first link management node 303 is used to detect the communications status of every communication link, and leading to every communication link Believe state reporting to the first gateway belonging to the communication link.
Second link management node 403 is each in second gateway of one or more of the second gateway cluster 40 for managing Every communication link in existing communication link between at least one first gateway in second gateway and the first gateway cluster 30, is used It is reported to belonging to the communication link in the communications status for detecting every communication link, and by the communications status of every communication link The second gateway.
Illustratively, there are 6 between the first link management node 303 the first gateway 3023 of detection and the second gateway 4023 The communications status of every communication link in communication link, the communications status of every communication link in detecting 6 communication links Later, the communications status of every communication link is fed back into the first gateway 3023, due to the first gateway 3023 and the second gateway collection There are communication links between multiple second gateways in group 40, and therefore, the first link management node 303 needs to detect the first gateway 3023 and second all in gateway cluster 40 there are the communication links between the second gateway of communication link with the first gateway 3023 Communications status, and there are between the second gateway of communication link with the first gateway 3023 by all in the second gateway cluster 40 The communications status of communication link feeds back to the first gateway 3023, so that communication of first gateway 3023 according to every communication link State determines the communications status between the first gateway 3023 and the second gateway cluster 40.
Fig. 3 b is the schematic diagram of another distributed cluster system based on the first gateway cluster and the second gateway cluster, In, the difference of Fig. 3 b and Fig. 3 a is, the first gateway cluster can not include in the distributed cluster system shown in Fig. 3 b One link management node, the second gateway cluster can not include the second link management node, remaining, the first gateway layer 302, second The structure of gateway layer 402, the first central node layer and the second central node layer is identical and in Fig. 3 a.Meanwhile in Fig. 3 b One central node is by the first gateway of one or more of the first gateway cluster at least one of second gateway cluster the Two gateways send heartbeat detection message, and the second central node is by the second gateway of one or more of the second gateway cluster to the The second gateway of at least one of one gateway cluster sends heartbeat detection message, to determine the first gateway cluster and the second gateway collection Communications status between group.At the same time, the heartbeat that the first gateway cluster sends the second central node in the embodiment of the present invention Detection message makes that main body that heartbeat detection replies message is also and different in the prior art, and the second gateway cluster is to the first centromere It is also and different in the prior art that the heartbeat detection message that point is sent makes the main body that heartbeat detection replies message.In the prior art First central node of the first gateway cluster needs the heartbeat detection message sent to the second central node of the second gateway cluster It sends heartbeat detection to reply message, the second central node of the second gateway cluster needs the first centromere to the first gateway cluster The heartbeat detection message that point is sent sends heartbeat detection and replies message, and in framework provided in an embodiment of the present invention, it is only necessary to the Any one second gateway in two gateway clusters returns the heartbeat detection message back heartbeat detection that the first central node is sent Answer message, the heartbeat detection message back heart that any one first gateway in the first gateway cluster sends the second central node Test returns message is jumped, in this way can be when a central node break down, another central node still can be received The heartbeat detection sent to other side replies message, when can be avoided due to a central node failure, in this section of failure Since the communication link between the gateway in the gateway cluster is normal in time, but another gateway cluster is due to can not receive net The heartbeat detection that the central node of pass cluster sends over replies message, and the communications status being mistakenly considered between group system is to disconnect 's.
As shown in figure 4, the embodiment of the present invention provides a kind of method for detecting group system communications status, the group system packet Include the first gateway cluster and the second gateway cluster, wherein the first gateway cluster includes the first central node and N number of first net It closes, the second gateway cluster includes the second central node and M the second gateways, one or more of N number of first gateway first There are communication links for the second gateway of at least one of gateway and the second gateway cluster, this method comprises:
S101, one or more first gateways send state-detection message, the state-detection message to the first central node It is used to indicate each first gateway and the second gateway cluster in the first gateway of one or more described in first gateway cluster In the second gateway between communication link communications status;
S102, the first central node reception state detect message;
S103, the first central node determine first gateway cluster and the second gateway collection according to state-detection message Communications status between group.
The embodiment of the present invention provides a kind of method for detecting group system communications status, is obtained and is used by the first central node The second net in the first gateway cluster of instruction in one or more first gateways in each first gateway and the second gateway cluster The state-detection message of the communications status of communication link between pass, then the first central node is determined according to state-detection message Communications status between first gateway cluster and the second gateway cluster, so that, the first central node is only needed according to first The communications status of the communication link between the second gateway in gateway and the second gateway cluster, that is, can determine the first gateway cluster with Communications status between second gateway cluster.In compared with the prior art, the first central node need to obtain the first gateway cluster and The communications status of every communication link between second gateway cluster, and first is determined according to the communications status of every communication link Communications status between gateway cluster and the second gateway cluster, detection group system communications status provided in an embodiment of the present invention Method can reduce by the first central node between the first gateway cluster and the second gateway cluster there are when magnanimity communication link Burden.
It is provided in an embodiment of the present invention it is a kind of detect group system communications status method can by the first gateway cluster Lai It executes, it specifically can be as the first central node and one or more in the first gateway cluster as shown in Fig. 3 a or Fig. 3 b First gateway executes.
In order to make it easy to understand, below with the detection group system communication in another embodiment the present invention will be described in detail embodiment The method of state, referring to Fig. 5, the method for another detection group system communications status provided in an embodiment of the present invention, the detection The method of group system communications status is applied in distributed cluster system as shown in Figure 3a, comprising:
S501, the first link management node obtain in each of the first gateway cluster the first gateway and the second gateway cluster The communications status of every communication link at least one communication link existing at least one second gateway.
The embodiment of the present invention obtains each of the first gateway cluster the first gateway and second to the first link management node The communications status of every communication link at least one communication link existing for the second gateway of at least one in gateway cluster Mode specifically can be the first gateway cluster and the second gateway cluster each other periodically by the first gateway collection without limiting Every communication link sends heartbeat detection message between group and the second gateway cluster, and then the first link management node is according to from every The heartbeat detection that other side's feedback whether is received on communication link replies message communications status to confirm communication link, example Property, if the first central node sends heartbeat detection message, and the first link to the second gateway cluster by the first communication link Management node determination receives reply namely heartbeat of second gateway cluster to this heartbeat detection message on the first communication link Test returns message, then the first link management node determines that the communications status of first communication link is normal, otherwise, it determines should The communications status of first communication link is to disconnect.
The communications status of every communication link is reported to belonging to every communication link by S502, the first link management node First gateway.
On the one hand, the embodiment of the present invention can be stored with the mark of each first gateway in the first link management node, And the mark of the corresponding every communication link of each first gateway, the mark of every communication link are used to indicate the communication chain First gateway and the second gateway belonging to road;In this way, when each of first link management nodal test to the first gateway cluster The communication of every communication link in first gateway and the second gateway cluster in communication link existing at least one second gateway After state, the communications status of each communication link can be reported to corresponding first gateway.Illustratively, if the first link What management node determined the first link is identified as 01, and the mark 01 of first link indicates that first link belongs to the first net It closes, then the first link management node is after the communications status for detecting first link, by the communications status of first link It is reported to the first gateway.
On the other hand, the first link management node can also get the first gateway cluster and in the embodiment of the present invention Between two gateway clusters after the communications status of existing every communication link, the communications status of every communication link is reported Give each of one or more first gateways the first gateway, so that the first gateway of each of one or more first gateways According to the mark of every communication link and it is stored in the corresponding every communication link of first gateway in each first gateway It identifies, obtains first gateway in the communications status of every communication link between the first gateway cluster and the second gateway cluster The communications status of corresponding every communication link.Illustratively, there are three between the first gateway cluster and the second gateway cluster First gateway, there are 8 communication links between three first gateways and the second gateway cluster, then the first link management node is examined The communications status of 8 communication link is surveyed, and 8 communication links are reported to three the first gateways.Wherein, the first gateway cluster And second existing every communication link between gateway cluster refer to the first gateway of one or more of first gateway cluster and Every communication link in two gateway clusters in communication link existing at least one second gateway.
The third aspect of course for the processing load for reducing each first gateway, while reducing by the first link management node Burden, in the embodiment of the present invention the first link management node can also detect each first gateway it is corresponding at least one (at least one corresponding communication link of each first gateway refers in first gateway and the second gateway cluster at least communication link Existing communication link between one the second gateway) in the first communication link (the first communication link be the first link management node First communications status detected is normal communication in detecting corresponding at least one communication link of each first gateway Link) state be it is normal when, then by the communications status of first communication link be normal first link event be reported to this First gateway belonging to first communication link, and the first gateway is corresponding to remove first without reporting belonging to first communication link The communications status of remaining communication link except communication link;As long as namely the first link management nodal test is into the first gateway It is normal communication link there are a communications status, then can have to detect the corresponding every communication link of first gateway Communications status, and to the first gateway report the first link event (it is corresponding that first link event is used to indicate first gateway There are normal communication links at least one communication link), but if in corresponding at least one communication link of the first gateway The communications status of every communication link is to disconnect, then needs logical by every in corresponding at least one communication link of the first gateway The communications status of letter link is reported to the first gateway, and certain first link management node can report the second link to the first gateway (second link event is used to indicate in corresponding at least one communication link of first gateway is not present normal communication chain to event Road or second link event are used to indicate every communication link in corresponding at least one communication link of first gateway It is to disconnect).
S503, each first gateway are according to every communication link in corresponding at least one communication link of first gateway Communications status determines the communications status of each first gateway, wherein the communications status of each first gateway refer to first gateway with Communications status between second gateway cluster.
Illustratively, the communications status of the first gateway is normal, then shows in first gateway and the second gateway cluster It in existing communication link there are the communications status of at least one communication link is normal between at least one second gateway.
The communications status of first gateway is to disconnect, then shows at least one of first gateway and second gateway cluster the The communications status of all communication links is to disconnect in existing communication link between two gateways.
On the one hand, include when each first gateway receives the link state detection message that the first link management node reports When the communications status of corresponding at least one communication link of first gateway, then each first gateway is only needed according to respectively corresponding The communications status of at least one communication link determine itself communications status.
On the other hand, message package is detected when each first gateway receives the link state that the first link management node reports Include every in each first gateway and the second gateway cluster at least one communication link existing at least one second gateway The communications status of communication link, then each first gateway then needs the mark according to each communication link, from each first gateway With the communication of every communication link at least one communication link existing at least one second gateway in the second gateway cluster Corresponding at least one communication link of each first gateway is obtained in state, and according to corresponding at least one communication link Communications status determine the communications status of the first gateway.
The third aspect detects message package when each first gateway receives the link state that the first link management node reports Corresponding first link event of each first gateway or corresponding second link event of each first gateway are included, then receives First gateway of one link event determine the communications status of first gateway be it is normal, then receive the first of the second link event Gateway determines the communications status of first gateway to disconnect.
Due to for each first gateway, determining that the mode of state-detection message and principle are all the same, therefore, this Only illustrate by taking the three the first gateways as an example in inventive embodiments, the side for determining the communications status of each first gateway is discussed in detail Method, the three the first gateways are any one in the first gateway of at least one of the embodiment of the present invention, and are not had any Indicative meaning.
Specifically, step S503 can be accomplished by the following way:
S5031, exist at least when in the three the first corresponding communication links of gateway that the first link management node reports The communications status of one communication link be it is normal, then the three the first gateways determine that the three the first gateway communication states are normal.
Illustratively, if there are 3 articles between the three the first the second gateways of at least one of gateway and the second gateway cluster Communication link, for example, communication link 1, communication link 2 and communication link 3, if communication link 1, communication link 2 and communication It is/normal/when disconnecting that the communications status of link 3 is respectively as follows: disconnection, then the three the first gateways determine the three the first gateway communication shapes State is normal or the communications status of communication link 1, communication link 2 and communication link 3 is respectively as follows: normal/disconnection/disconnection When, then the three the first gateways determine that the three the first gateway communication states are normal.
S5032, when every communication in the three the first corresponding communication links of gateway that the first link management node reports The communications status of link is to disconnect, then the three the first gateways determine the three the first gateway communication states to disconnect.
Illustratively, if the communications status of communication link 1, communication link 2 and communication link 3 is respectively as follows: disconnection/disconnected When opening/disconnecting, then the three the first gateways determine the three the first gateway communication states to disconnect.
Each first gateway sends first gateway to the first central node and corresponds in S504, one or more first gateways State-detection message.
Illustratively, the first gateway 3021 is by the communications status of the second gateway of at least one of itself and the second gateway cluster The first central node is sent to for normal state-detection message;Second gateway 3022 by its in the second gateway cluster at least The communications status of one the second gateway is that the state-detection message disconnected is sent to the first central node;First gateway 3023 by its Communications status with the second gateway of at least one of the second gateway cluster is that normal state-detection message is sent in first Heart node.
S505, the first central node receive the state-detection that each first gateway reports in one or more first gateways and disappear Breath.
S506, the first central node according to state-detection message determine the first gateway cluster and second gateway cluster it Between communications status.
Wherein, step S506 can specifically be accomplished by the following way:
S5061, determine that state detecting information shows one or more of first gateway cluster when the first central node In one gateway there are the communications status between the second gateway at least one first gateway and the second gateway cluster be it is normal, then Show that the communications status between the first gateway cluster and second gateway cluster is normal.
Illustratively, if the first central node determines that the state-detection message that the first gateway 3021 reports indicates first net It closes the state-detection message that 3021 communications status is normal or the first gateway 3022 reports and indicates first gateway 3022 The state-detection message that communications status is normal or the first gateway 3023 reports indicates the communications status of first gateway 3023 To be normal, then the first central node determines that the communications status between the first gateway cluster and second gateway cluster is normal. The communications status of first gateway is normally to refer between the second gateway of at least one of first gateway and the second gateway cluster It there are the communications status of at least one communication link is normal in existing communication link.
S5062, determine that state detecting information shows in N number of first gateway in the first gateway cluster when the first central node The first gateway of one or more in communications status between M the second gateways in each first gateway and the second gateway cluster It is to disconnect, then shows the communications status between the first gateway cluster and the second gateway cluster to disconnect.
Illustratively, if the first central node determines that the state-detection message that the first gateway 3021 reports indicates first net The communications status for closing 3021 is to disconnect, and the state-detection message that the first gateway 3022 reports indicates the logical of first gateway 3022 Letter state is to disconnect and the state-detection message that reports of the first gateway 3023 indicates that the communications status of first gateway 3023 is It disconnects, then the first central node determines the communications status between the first gateway cluster and second gateway cluster to disconnect.The The communications status of one gateway is to disconnect referring to depositing between the second gateway of at least one of first gateway and the second gateway cluster Communication link in all communication links communications status be disconnect.
The embodiment of the present invention receives the state-detection message that each first gateway reports by the first central node, to determine Communications status between first gateway cluster and the second gateway cluster, such first central node only need to be concerned about each first net Close the communications status to the second gateway cluster.For example, there are 64 gateways in the first gateway cluster, have 256 on each gateway Item to the second gateway cluster communication link, then according to technical solution described in the prior, then the first central node It needs to detect the communications status of 64*256=16384 communication link, and is determined according to the communications status of 16384 communication links Communications status between first gateway cluster and the second gateway cluster, and when using technical solution as described in Figure 5, first Central node only needs to manage 64 gateways to the communications status of the second gateway cluster, therefore can greatly reduce center The pressure of node.
In order to make it easy to understand, below with the detection group system communication in another embodiment the present invention will be described in detail embodiment The method of state, referring to Fig. 6, the method for another detection group system communications status provided in an embodiment of the present invention, the detection The method of group system communications status is applied in distributed cluster system as shown in Figure 3b, the collection of the distribution shown in Fig. 3 b In group's system, the first gateway of at least one of first gateway cluster is used to send the second central node of the second gateway cluster Heartbeat detection message make a response, replied message with replying heartbeat detection, the second net of at least one of second gateway cluster It closes the heartbeat detection message sent for the first central node to the first gateway cluster to make a response, with to the first gateway cluster Reply heartbeat detection message, comprising:
S601, the first central node send the first instruction message to the first gateway of one or more of N number of first gateway, Heart beat status detection message is carried in first instruction message;First instruction message indicates that the first gateway examines heart beat status It surveys message and is sent in the second gateway cluster that there are at least one second gateways of communication link with first gateway.
S602, the one the first gateways receive first instruction message;And first instruction message is sent to the second gateway There are at least one second gateways of communication link with first gateway in cluster;Wherein, the one the first gateways are to receive the First gateway of the first instruction message that one central node is sent.
S603, one or more first gateways judge whether to receive one or more second gateways in the second gateway cluster At least one of the second gateway send heartbeat detection reply message, however, it is determined that receive in the second gateway cluster one or more The heartbeat detection that the second gateway of at least one of a second gateway is sent replies message, and thens follow the steps S604;Otherwise, it executes S605;
S604, it heartbeat detection is replied message is sent to the first central node.
S605, it continues to test and whether receives heartbeat detection and reply message.
S606, the first central node are after determining that the heartbeat detection for receiving the transmission of the first gateway replies message, then really Communications status between fixed first gateway cluster and second gateway cluster is normal.
S607, the first central node be not if it is determined that continuous several times receive the heartbeat of the first gateway transmission in predetermined period Test returns message, it is determined that the communications status between the first gateway cluster and second gateway cluster is to disconnect.
Fig. 7 show the heartbeat path of first gateway cluster of detection moment in predetermined period, specific as follows: the One central node first therefrom selects first gateway according to the communications status between the first gateway cluster and the second gateway cluster A2, the communications status between first gateway A 2 and the second gateway cluster be it is normal, the first central node is by heartbeat detection message It is sent to the first gateway A 2, the first gateway A 2 selects a communications status for normal communication link, heartbeat detection message is sent out Be sent to the second gateway cluster, it is assumed that in the second gateway cluster with the first gateway A 2 there are a communications status be normal communication chain Second gateway on road is the second gateway B2, at this point, heartbeat detection message will not be issued the second central node B by the second gateway B2, But the heartbeat detection message directly sent to first gateway A 2 makes reply, and sends heartbeat detection and reply message.Specifically , the second gateway B2 selects in one and the first cluster between at least one first gateway existing communication link by heartbeat detection The first gateway A 3 being sent in the second gateway cluster is replied message, the first gateway A 3 gives the first central node A, completes one Heartbeat loopback, at this point, the first central node A determines that the communications status between the first gateway cluster and the second gateway cluster is positive Often.
Since the first central node needs to know between each the first gateway cluster of detection moment and the second gateway cluster Communications status, therefore, the first central node of each detection moment in predetermined period can select first gateway to send the heart Detection message is jumped, (for example, a predetermined period includes three moment, the first moment, the second moment and third moment, one The first central node only can send heartbeat detection message by one central node of selection in a predetermined period, for example, only selecting the One gateway A 2 sends heartbeat detection message, also can choose one or more first gateways and sends heartbeat detection message, for example, the One moment sent heartbeat detection message by the first gateway A 1, and the second moment sent heartbeat detection message by the second gateway A 2, The third moment sends heartbeat detection message by third gateway A 3 or the first moment selected the first gateway A 2 to send heartbeat detection Message, the second moment select the first gateway A 3 to send heartbeat detection message, and the third moment selects the first gateway A 2 to send heartbeat inspection Survey message etc.).First replied message due to receiving the heartbeat detection that at least one second gateway is sent in the second gateway cluster Gateway is the selected communication of the second gateway according to the heartbeat detection message for receiving the transmission of the first gateway in the second gateway cluster What link determined, and there are at least one to communicate for the first gateway of at least one of each second gateway and first gateway cluster Link, therefore, receive the first gateway send heartbeat detection message the second gateway selection the first gateway may and Xiang Qifa The first gateway for sending heartbeat detection message is the same gateway, it is also possible to be with the first gateway for being sent to it heartbeat detection message Different gateways.
Since each moment of first central node in predetermined period can pass through one in the first gateway cluster Second gateway of one gateway into the second gateway cluster sends heartbeat detection message, at the same time, if communication link is just The heartbeat detection that Chang Zehui receives the second gateway feedback replies message, therefore, in the embodiment of the present invention, if the first central node Determine that preset times continuous in predetermined period do not receive the heartbeat detection that one or more first gateways are sent and reply message, Then determine that the communications status between the first gateway cluster and the second gateway cluster is to disconnect.
The embodiment of the present invention, without restriction, can according to need and be selected to above-mentioned predetermined period, the preset times Also it can according to need and be configured, for example, if not receiving the heartbeat detection that one or more first gateways are sent for continuous 5 times It replies message, it is determined that the communications status between the first gateway cluster and the second gateway cluster is to disconnect.
Since in actual use, group system as shown in Figure 2 may have following situations: due to link Event (including link state is normal or disconnects) is taken office when being reported to the first gateway cluster and the second gateway cluster reporting Anticipate a gateway cluster when there may be delays, such that being examined in the first gateway cluster of synchronization and the second gateway cluster The communications status between group system measured is inconsistent, for example, there are three links between gateway cluster A and gateway cluster B, Link event (including link state is normal or disconnects) is reported to central node A and central node B used time under normal circumstances For 1 chronomere, but it is also possible to be delayed.Link 2 and link 3 are already off before the moment 1, and link 2 and chain Link 2 and 3 link event of link are notified central node B, link 2 and link 3 to distinguish by corresponding second gateway in road 3 The link event of link 2 and link 3 is notified central node A by corresponding first gateway, and at the moment 1, link 1 is disconnected, and The link event of link 11 moment that has been delayed in gateway cluster A just reaches central node A, if link 3 connects again at the moment 2 On, the state of link 3 becomes normally, and the corresponding link event of link 3 reaches central node B at the moment 3, then, such as table 1 Shown: at the moment 1, the state of link 1 existing for the gateway cluster A and gateway cluster B that central node A is determined is normal, link 2 State be to disconnect, the state of link 3 is to disconnect, link 1 existing for the gateway cluster A and gateway cluster B that central node B is determined State be to disconnect, the state of link 2 is to disconnect, and the state of link 3 is to disconnect;At the moment 2, central node A determining link 1 State be to disconnect, the state of link 2 is to disconnect, the state of link 3 be it is normal, the state of central node B determining link 1 is It disconnects, the state of link 2 is to disconnect, and the state of link 3 is to disconnect;At the moment 3, the state for the link 1 that central node A is determined is Disconnect, the state of link 2 is to disconnect, the state of link 3 be it is normal, the state for the link 1 that central node B is determined is disconnection, chain The state on road 2 be disconnect, the state of link 3 be it is normal, therefore, think net in moment 1,3 central node A of moment 2 and moment It is normal for closing the state of cluster A;And for central node B, gateway cluster A is thought in 2 central node B of moment 1 and moment State between gateway cluster B is to disconnect, and just thinks that the state between gateway cluster A and gateway cluster B is extensive from disconnecting at the moment 3 It is multiple to arrive normally.
Communications status between 1 cluster of table
As it can be seen from table 1 the first central node A thinks that state is normal between gateway cluster always, and the second center Node B but thinks that the state between 2 gateway cluster of moment 1 and moment to disconnect, is restored normally, therefore, to be easy to cause at the moment 3 Central node A and central node B is inconsistent to the state cognition between gateway cluster A and gateway cluster B, therefore, in order to enable The communications status of first gateway cluster and the second gateway cluster within a specified time reaches unanimously, and the embodiment of the present invention is in centromere Point determines that the communications status between gateway cluster is that can also use testing process as shown in Figure 8 when disconnecting, the Fig. 8 and Fig. 6's Difference is, can also make the first gateway cluster and the second gateway by executing step S608 after executing the step S607 The state of cluster within a preset time reaches consistent:
S608, the communications status between the first gateway cluster and the second gateway cluster is determined in the first central node to disconnect When, the first central node stops sending heartbeat detection message to the first gateway of one or more of first gateway cluster, and to One or more first gateways send second indication information, which is used to indicate one or more first gateways and stops Only any one second gateway into the second gateway cluster sends heartbeat detection and replies message.
Illustratively, if the second central node B detects all second gateways to the first gateway by step shown in fig. 6 The communications status of cluster A all disconnects, then the second central node B determines that the communications status between group system is to disconnect, and pass through It executes the step S608 in Fig. 8 to stop sending heartbeat detection message to the first gateway cluster, while the first gateway will be used to indicate Communications status between cluster and the second gateway cluster is sent to the institute in the second gateway cluster B for the second indication information of disconnection There is the second gateway, second gateway B1, B2, B3, B4 stops replying the first gateway cluster A after receiving second indication information The heartbeat detection message sended over, therefore, the first central node A are detecting that continuous preset times do not receive specified number After heartbeat detection replies message, the first central node A determines that the communications status between group system to disconnect, therefore, is referring to The first central node A and the second central node B determines logical between the first gateway cluster and the second gateway cluster in fixing time Letter state is to disconnect.
Fig. 7 show the heartbeat path of first gateway cluster of detection moment in predetermined period, due to the first net Closing one or more first gateways in cluster is that heartbeat detection message is sent to second after receiving the first instruction message The second gateway of at least one of gateway cluster, and therefore second gateway, is such as schemed for making reply to heartbeat detection message Shown in 9, when the second central node in the second gateway cluster, which breaks down, to be switched over, the first central node A still can be with The heartbeat detection for receiving the second gateway cluster feedback replies message, and the first central node A thinks that the communication between gateway cluster is normal. As shown in Figure 10, in actual use, each gateway cluster corresponds at least one business cluster, for example, business cluster 10 Corresponding with the first gateway cluster, the second gateway cluster and business cluster 20 are corresponding, in the corresponding central node of the first gateway cluster And second the corresponding central node of gateway cluster determine the communication shape between the first gateway cluster and the second gateway cluster respectively After state, the central node of the first gateway cluster and the second gateway cluster is notified that each gateway node the first gateway collection in it Communications status between group and the second gateway cluster is normal, and then, business cluster 10 and business cluster 20 can pass through first Gateway node in gateway cluster and the second gateway cluster carries out business transmission.Therefore, at the second center of the second gateway cluster Before node B breaks down, the second central node B thinks that gateway cluster communication is normal, in failover this period, business cluster 10 and business cluster 20 using the first gateway cluster and the second gateway cluster before the second central node B breaks down determined by Communications status carries out business transmission, it is believed that communications status between gateway cluster or normal, it therefore, can be just between business cluster Often transmission data.
It should be noted that the second gateway B2 selection can be with there are the first gateway of communication link with the first gateway cluster It is the first gateway A 2, is also possible to the first gateway A 3, which the first gateway no matter is selected, first gateway and second selected Between gateway B2 there are at least one communications status be normal communication link.
It is above-mentioned that mainly scheme provided in an embodiment of the present invention is described from the angle of interaction between each network element.It can With understanding, each network element, such as the first central node, gateway, the first link management node etc. in order to realize the above functions, It comprises execute the corresponding hardware configuration of each function and/or software module.Those skilled in the art should be easy to realize It arrives, unit and algorithm steps described in conjunction with the examples disclosed in the embodiments of the present disclosure, the present invention can be with hardware or hard The combining form of part and computer software is realized.Some function is actually in a manner of hardware or computer software driving hardware It executes, specific application and design constraint depending on technical solution.Professional technician can specifically answer each For using different methods to achieve the described function, but such implementation should not be considered as beyond the scope of the present invention.
The embodiment of the present invention can be according to above method example to the first central node, gateway, the first link management node Deng the division of progress functional module, for example, each functional module of each function division can be corresponded to, it can also be by two or two Above function is integrated in a processing module.Above-mentioned integrated module both can take the form of hardware realization, can also be with It is realized in the form of software function module.It should be noted that be to the division of module in the embodiment of the present invention it is schematical, Only a kind of logical function partition, there may be another division manner in actual implementation.
In the case where each function division of use correspondence each functional module, Figure 11 A shows institute in above-described embodiment A kind of possible structural schematic diagram for the first central node being related to, first central node include: acquiring unit 1101 and Determination unit 1102.Acquiring unit 1101 is for supporting the first central node to execute the S505 in process S102, Fig. 5 in Fig. 4; Determination unit 1102 is for supporting the first central node to execute in process S506, Fig. 6 in process S103, Fig. 5 in Fig. 4 S606 and S607.Figure 11 B shows the alternatively possible structural representation of the first central node involved in above-described embodiment Figure, first central node further include: transmission unit 1103, for supporting the first central node to realize the process in Fig. 6 and Fig. 8 S601, certain first central node further includes stopping transmission unit, for supporting the first central node to realize the process in Fig. 8 S608.Wherein, all related contents for each step that above method embodiment is related to can quote corresponding function module Function description, details are not described herein.
Using integrated unit, Figure 11 C shows the first central node involved in above-described embodiment A kind of possible structural schematic diagram.First central node 1300 includes: processing module 1302 and communication module 1303.Handle mould Block 1302 is used to execute the S601, Fig. 8 in the process S505, Fig. 6 in the process S102, Fig. 5 in Fig. 4 by communication module 1303 In S601 and S608, processing module 1302 is for carrying out control management to the movement of the first central node, for example, processing module 1302 for supports the first central node execute the process S606 in process S506, Fig. 6 in process S103, Fig. 5 in Fig. 4 with S606 and S607 in S607, Fig. 8, and/or other processes for techniques described herein.Communication module 1303 is for branch Hold the communication of the first central node Yu other network entities, for example, with one or more shown in Fig. 4, Fig. 5, Fig. 6 or Fig. 8 Communication between one gateway.First central node can also include memory module 1301, for storing the journey of the first central node Sequence code and data.
Wherein, processing module 1302 can be processor or controller, such as can be central processing unit (Central Processing Unit, CPU), general processor, digital signal processor (Digital Signal Processor, DSP), Specific integrated circuit (Application-Specific Integrated Circuit, ASIC), field programmable gate array It is (Field Programmable Gate Array, FPGA) or other programmable logic device, transistor logic, hard Part component or any combination thereof.It may be implemented or execute to combine and various illustratively patrol described in the disclosure of invention Collect box, module and circuit.The processor is also possible to realize the combination of computing function, such as includes one or more micro- places Manage device combination, DSP and the combination of microprocessor etc..Communication module 1303 can be transceiver, transmission circuit or communication interface Deng.Memory module 1301 can be memory.
When processing module 1302 is processor, communication module 1303 is transceiver, when memory module 1301 is memory, this First central node involved in inventive embodiments can be the first central node shown in Figure 11 C.
Refering to fig. 1 shown in 1D, which includes: processor 1312, transceiver 1313, memory 1311 And bus 1314.Wherein, transceiver 1313, processor 1312 and memory 1311 are connected with each other by bus 1314;Always Line 1314 can be Peripheral Component Interconnect standard (Peripheral Component Interconnect, PCI) bus or extension Industrial standard architectures (Extended Industry Standard Architecture, EISA) bus etc..The bus can be with It is divided into address bus, data/address bus, control bus etc..Only to be indicated with a thick line in Figure 11 D, but not table convenient for indicating Show only a bus or a type of bus.
In the case where each function division of use correspondence each functional module, Figure 12 A shows institute in above-described embodiment A kind of possible structural schematic diagram for the first gateway being related to, first gateway include: the first transmission unit 1201, first hair Send unit 1201 for supporting the first gateway to execute the S505 in process S101, Fig. 5 in Fig. 4, process S504, Fig. 6 in Fig. 5 In process S604 and Fig. 8 in process S604;First gateway can also include the first receiving unit 1202, for receiving the One instruction message.First gateway can also include the second transmission unit 1203, for supporting the first gateway to execute the process in Fig. 6 Process S602 in S602 and Fig. 8, the first gateway can also include: the second receiving unit, for for receiving the second gateway The heartbeat detection sent with the gateway there are second gateway of communication link in cluster replies message, and the first gateway can be with It is used for including third transmission unit, third receiving unit is for receiving gateway and the second net that the first link management node reports Close the communications status of every communication link in existing communication link between the second gateway of at least one of cluster, determination unit For supporting the first gateway to execute step S503 as described in Figure 5.Wherein, each step that above method embodiment is related to All related contents can quote the function description of corresponding function module, and details are not described herein.
Using integrated unit, Figure 12 B shows one of the first gateway involved in above-described embodiment The possible structural schematic diagram of kind.First gateway 1400 includes: processing module 1402 and communication module 1403.Processing module 1402 is used In executing S602 and S604 in process S504, Fig. 6 in process S101, Fig. 5 in Fig. 4 by communication module 1403, in Fig. 8 S602 and S604, processing module 1402 is for carrying out control management to the movement of the first gateway, for example, processing module 1402 is used The process S603 in process S603, Fig. 8 in process S503, Fig. 6 in Fig. 5 is executed in the first gateway of support, and/or for this Other processes of technology described in text.Communication module 1403 is used to support the communication of the first gateway Yu other network entities, example As with the second gateway of one or more, the first link management node shown in Fig. 4, Fig. 5, Fig. 6 or Fig. 8 and the first centromere Communication between point.First gateway can also include memory module 1401, for storing the program code and data of the first gateway.
Wherein, processing module 1402 can be processor or controller, such as can be central processing unit (Central Processing Unit, CPU), general processor, digital signal processor (Digital Signal Processor, DSP), Specific integrated circuit (Application-Specific Integrated Circuit, ASIC), field programmable gate array It is (Field Programmable Gate Array, FPGA) or other programmable logic device, transistor logic, hard Part component or any combination thereof.It may be implemented or execute to combine and various illustratively patrol described in the disclosure of invention Collect box, module and circuit.The processor is also possible to realize the combination of computing function, such as includes one or more micro- places Manage device combination, DSP and the combination of microprocessor etc..Communication module 1403 can be transceiver, transmission circuit or communication interface Deng.Memory module 1401 can be memory.
When processing module 1402 is processor, communication module 1403 is transceiver, when memory module 1401 is memory, this First gateway involved in inventive embodiments can be the first gateway shown in Figure 12 C.
Refering to fig. 1 shown in 2C, first gateway 1410 include: processor 1412, transceiver 1413, memory 1411 and Bus 1414.Wherein, transceiver 1413, processor 1412 and memory 1411 are connected with each other by bus 1414;Bus 1414 can be Peripheral Component Interconnect standard (Peripheral Component Interconnect, PCI) bus or extension work Industry normal structure (Extended Industry Standard Architecture, EISA) bus etc..The bus can divide For address bus, data/address bus, control bus etc..Only to be indicated with a thick line in Figure 12 C convenient for indicating, it is not intended that Only a bus or a type of bus.
In the case where each function division of use correspondence each functional module, Figure 13 A shows institute in above-described embodiment A kind of possible structural schematic diagram for the first link management node being related to, which includes: detection unit 1501 and reporting unit 1502.Detection unit 1501 for supporting the first link management node to execute the process S501 in Fig. 5, Reporting unit 1502 is used to that the first link management node to be supported to execute such as the process S502 in Fig. 5.Wherein, above method embodiment All related contents for each step being related to can quote the function description of corresponding function module, and details are not described herein.
Using integrated unit, Figure 13 B shows the first link management involved in above-described embodiment A kind of possible structural schematic diagram of node.First link management node 1600 includes: processing module 1602 and communication module 1603.Processing module 1602 is used to execute the process S502 in Fig. 5 by communication module 1603, and processing module 1602 is used for the The movement of one link management node carries out control management, for example, processing module 1602 is for supporting the first link management node to hold Process S501 in row Fig. 5, and/or other processes for techniques described herein.Communication module 1603 is for supporting the The communication of one link management node and other network entities, such as between the first gateway of one or more shown in Fig. 5 Communication.First link management node can also include memory module 1601, for storing the program generation of the first link management node Code and data.
Wherein, processing module 1602 can be processor or controller, such as can be central processing unit (Central Processing Unit, CPU), general processor, digital signal processor (Digital Signal Processor, DSP), Specific integrated circuit (Application-Specific Integrated Circuit, ASIC), field programmable gate array It is (Field Programmable Gate Array, FPGA) or other programmable logic device, transistor logic, hard Part component or any combination thereof.It may be implemented or execute to combine and various illustratively patrol described in the disclosure of invention Collect box, module and circuit.The processor is also possible to realize the combination of computing function, such as includes one or more micro- places Manage device combination, DSP and the combination of microprocessor etc..Communication module 1603 can be transceiver, transmission circuit or communication interface Deng.Memory module 1601 can be memory.
When processing module 1602 is processor, communication module 1603 is transceiver, when memory module 1601 is memory, this First link management node involved in inventive embodiments can be the first central node shown in Figure 13 C.
Refering to fig. 1 shown in 3C, which includes: processor 1512, transceiver 1513, memory 1511 and bus 1514.Wherein, transceiver 1513, processor 1512 and memory 1511 are interconnected by 1514 phase of bus It connects;Bus 1514 can be Peripheral Component Interconnect standard (Peripheral Component Interconnect, PCI) bus Or expanding the industrial standard structure (Extended Industry Standard Architecture, EISA) bus etc..It is described total Line can be divided into address bus, data/address bus, control bus etc..Only to be indicated with a thick line in Figure 13 C convenient for indicating, but It is not offered as only a bus or a type of bus.
As shown in figure 14, the embodiment of the present invention provides a kind of gateway cluster, and the gateway cluster is as in group system 10 First gateway cluster 101, the group system 10 further include the second gateway cluster 102, wherein the first gateway cluster 101 includes the One central node 1011 and one or more first gateways 1012, second gateway cluster 102 include the second central node 1021 and one or more second gateway 1022;
Wherein, each first gateway 1012 at least one of the second gateway cluster 102 second gateway 1022 for building Vertical at least one communication link;
First central node 1011 is used to execute step step S101 and S102 as illustrated in fig. 4, is retouched in Fig. 5 Step S601, S606 in step S505, S506, Fig. 6 and step S601, S606, S607 in S607, Fig. 8 stated and S608.In, all related contents for each step that above method embodiment is related to can quote the function of corresponding function module It can describe, details are not described herein.
The step of method in conjunction with described in the disclosure of invention or algorithm can realize in a manner of hardware, can also It is realized in a manner of being to execute software instruction by processor.Software instruction can be made of corresponding software module, software mould Block can be stored on random access memory (Random Access Memory, RAM), flash memory, read-only memory (Read Only Memory, ROM), Erasable Programmable Read Only Memory EPROM (Erasable Programmable ROM, EPROM), electricity can Erasable programmable read-only memory (Electrically EPROM, EEPROM), register, hard disk, mobile hard disk, CD-ROM (CD-ROM) or in the storage medium of any other form well known in the art.A kind of illustrative storage medium is coupled to place Device is managed, to enable a processor to from the read information, and information can be written to the storage medium.Certainly, it stores Medium is also possible to the component part of processor.Pocessor and storage media can be located in ASIC.In addition, the ASIC can position In core network interface equipment.Certainly, pocessor and storage media, which can also be used as discrete assembly and be present in core network interface, sets In standby.
Those skilled in the art are it will be appreciated that in said one or multiple examples, function described in the invention It can be realized with hardware, software, firmware or their any combination.It when implemented in software, can be by these functions Storage in computer-readable medium or as on computer-readable medium one or more instructions or code transmitted. Computer-readable medium includes computer storage media and communication media, and wherein communication media includes convenient for from a place to another Any medium of one place transmission computer program.Storage medium can be general or specialized computer can access it is any Usable medium.
It is apparent to those skilled in the art that for convenience and simplicity of description, only with above-mentioned each function The division progress of module can according to need and for example, in practical application by above-mentioned function distribution by different function moulds Block is completed, i.e., the internal structure of device is divided into different functional modules, to complete all or part of function described above Energy.The specific work process of the system, apparatus, and unit of foregoing description, can be with reference to corresponding in preceding method embodiment Journey, details are not described herein.
In several embodiments provided herein, it should be understood that disclosed system, device and method can be with It realizes by another way.For example, the apparatus embodiments described above are merely exemplary, for example, the module or The division of unit, only a kind of logical function partition, there may be another division manner in actual implementation, such as multiple units Or component can be combined or can be integrated into another system, or some features can be ignored or not executed.Another point, institute Display or the mutual coupling, direct-coupling or communication connection discussed can be through some interfaces, device or unit Indirect coupling or communication connection.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme 's.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list Member can be realized in the form of software functional units.
If the integrated unit is realized in the form of SFU software functional unit and sells or use as independent product When, it can store in a computer readable storage medium.Based on this understanding, all or part of the technical solution It can be embodied in the form of software products, which is stored in a storage medium, including several fingers It enables and using so that a computer equipment (can be personal computer, server or the network equipment etc.) or processor execute All or part of the steps of the method according to each embodiment of the present invention.The storage medium is non-transitory (English: non- Transitory) medium, comprising: flash memory, mobile hard disk, read-only memory, random access memory, magnetic disk or light The various media that can store program code such as disk.
The above description is merely a specific embodiment, but scope of protection of the present invention is not limited thereto, any Those familiar with the art in the technical scope disclosed by the present invention, can easily think of the change or the replacement, and should all contain Lid is within protection scope of the present invention.Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (14)

1. a kind of method for detecting group system communications status, which is characterized in that the group system includes the first gateway cluster With the second gateway cluster, wherein first gateway cluster include the first central node and N number of first gateway, described second Gateway cluster includes the second central node and M the second gateways, the first gateway of one or more of described N number of first gateway There are communication links with the second gateway of at least one of second gateway cluster, which comprises
First central node obtains state-detection message, and the state-detection message is used to indicate first gateway cluster Described in it is logical between the second gateway in the first gateway of one or more in each first gateway and second gateway cluster Believe the communications status of link;
First central node determines first gateway cluster and the second gateway collection according to the state-detection message Communications status between group;
First central node obtains state-detection message and specifically includes: first central node receives one or more The state-detection message that each first gateway reports in a first gateway.
2. the method according to claim 1, wherein when the state detecting information shows the first gateway collection There are second at least one first gateway and second gateway cluster in one or more of first gateways in group Communications status between gateway be it is normal, then show the communication shape between first gateway cluster and second gateway cluster State is normal.
3. the method according to claim 1, wherein when the state detecting information shows the first gateway collection In the first gateway of one or more of N number of first gateway in group in each first gateway and second gateway cluster The M the second gateways between communications status be to disconnect, then show first gateway cluster and second gateway Communications status between cluster is to disconnect.
4. the method according to claim 1, wherein the state-detection message is in N number of first gateway The first gateway of one or more report in the second gateway of one or more described in second gateway cluster extremely The heartbeat detection that few second gateway is sent replies message.
5. according to the method described in claim 4, it is characterized in that, the method also includes:
First central node sends the first instruction message to the first gateway of one or more of N number of first gateway, First instruction message is used to indicate one or more of first gateways at least one of the M second gateway the Two gateways send heartbeat detection information.
6. method according to claim 4 or 5, which is characterized in that described in determining and receive when first central node The heartbeat detection that any one first gateway reports in one or more first gateways replies message, then first central node Determine that the communications status between first gateway cluster and second gateway cluster is normal;
When first central node determines that preset times continuous in predetermined period do not receive one or more of first The heartbeat detection that the first gateway of at least one in gateway reports replies message, then first central node determines first net Closing the communications status between cluster and second gateway cluster is to disconnect.
7. according to the method described in claim 6, it is characterized in that, determining the first gateway collection in first central node Group second gateway cluster between communications status be disconnect after, the method also includes:
First central node stops sending heartbeat detection message to one or more of first gateways, and to one Or multiple first gateways send second indication information, the second indication information is used to indicate one or more of first gateways Any one the second gateway transmission heartbeat detection stopped into second gateway cluster replies message.
8. a kind of gateway cluster, which is characterized in that the gateway cluster is as the first gateway cluster in group system, the collection Group's system further includes the second gateway cluster, wherein first gateway cluster includes the first central node and N number of first net It closes, second gateway cluster includes the second central node and M the second gateways;
Wherein, the first gateway of one or more of N number of first gateway at least one of is used for second gateway cluster Second gateway establishes communication link;
For first central node for obtaining state-detection message, the state-detection message is used to indicate first gateway The second gateway in the first gateway of each of the gateway of one or more first described in cluster and second gateway cluster Between communication link communications status;
First central node is used to determine first gateway cluster and second net according to the state-detection message Close the communications status between cluster;
First central node is specifically included for obtaining state-detection message: first central node receives one Or the state-detection message that the first gateway of each of multiple first gateways reports.
9. gateway cluster according to claim 8, which is characterized in that when the state detecting information shows first net Close the second gateway in one or more of gateways in cluster at least one first gateway and second gateway cluster Between an at least communication link communications status be it is normal, then show first gateway cluster and the second gateway collection Communications status between group is normal.
10. gateway cluster according to claim 8, which is characterized in that when the state detecting information shows described first One or more of second nets in one or more of first gateways and second gateway cluster in gateway cluster All communication links disconnect between pass, then show communications status between first gateway cluster and second gateway cluster To disconnect.
11. gateway cluster according to claim 8, which is characterized in that the state-detection message is one or more What a first gateway reported comes from least one of second gateway of one or more described in second gateway cluster second The heartbeat detection that gateway is sent replies message.
12. gateway cluster according to claim 11, which is characterized in that first central node is also used to described one A or multiple first gateways send the first instruction message, and first instruction message is used to indicate one or more of first nets It closes at least one of one or more of second gateways the second gateway and sends heartbeat detection information.
13. gateway cluster according to claim 11 or 12, which is characterized in that first central node is also used to: In After determining that receiving the heartbeat detection that any one first gateway reports in one or more of first gateways replies message, Determine that the communications status between first gateway cluster and second gateway cluster is normal;
First central node is also used to: determining that it is one or more that preset times continuous in predetermined period do not receive The heartbeat detection that any one first gateway reports in a first gateway replies message, then described in the first central node determination Communications status between first gateway cluster and second gateway cluster is to disconnect.
14. gateway cluster according to claim 12, which is characterized in that first central node is also used to stop to institute It states one or more first gateways and sends heartbeat detection message, and send the second instruction letter to one or more of first gateways Breath, the second indication information are used to indicate one or more of first gateways and stop appointing into second gateway cluster One the second gateway of meaning sends heartbeat detection and replies message.
CN201610865479.4A 2016-09-29 2016-09-29 A kind of method and gateway cluster detecting group system communications status Active CN106452952B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201610865479.4A CN106452952B (en) 2016-09-29 2016-09-29 A kind of method and gateway cluster detecting group system communications status
PCT/CN2017/081069 WO2018058941A1 (en) 2016-09-29 2017-04-19 Method for detecting communication status of cluster system, and gateway cluster

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610865479.4A CN106452952B (en) 2016-09-29 2016-09-29 A kind of method and gateway cluster detecting group system communications status

Publications (2)

Publication Number Publication Date
CN106452952A CN106452952A (en) 2017-02-22
CN106452952B true CN106452952B (en) 2019-11-22

Family

ID=58171151

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610865479.4A Active CN106452952B (en) 2016-09-29 2016-09-29 A kind of method and gateway cluster detecting group system communications status

Country Status (2)

Country Link
CN (1) CN106452952B (en)
WO (1) WO2018058941A1 (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106452952B (en) * 2016-09-29 2019-11-22 华为技术有限公司 A kind of method and gateway cluster detecting group system communications status
CN106656682B (en) * 2017-02-27 2019-10-25 网宿科技股份有限公司 Cluster heartbeat detecting method, system and device
CN106878109A (en) * 2017-03-13 2017-06-20 网宿科技股份有限公司 Server detection method and server system
CN107749820B (en) * 2017-09-14 2021-05-28 深圳市盛路物联通讯技术有限公司 Communication state detection method and system
CN112131195B (en) * 2020-08-18 2024-04-16 深圳市风云实业有限公司 Cluster type management method for aging test
CN114640556A (en) * 2022-03-02 2022-06-17 京东科技信息技术有限公司 Cross-cluster network communication system and method
CN114760317A (en) * 2022-03-18 2022-07-15 中国建设银行股份有限公司 Fault detection method of virtual gateway cluster and related equipment

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101631140A (en) * 2009-08-03 2010-01-20 中兴通讯股份有限公司 Cluster server of instant communication system and method of inter-clusters communication
CN101841541A (en) * 2010-04-30 2010-09-22 浪潮(北京)电子信息产业有限公司 Method and system for monitoring cluster based on multicast network
CN102325196A (en) * 2011-10-27 2012-01-18 上海文广互动电视有限公司 Distributed cluster storage system
CN102891896A (en) * 2012-10-18 2013-01-23 江苏物联网研究发展中心 Cloud computing infrastructure system for mass storage of Internet of things
CN103607297A (en) * 2013-11-07 2014-02-26 上海爱数软件有限公司 Fault processing method of computer cluster system
CN104811325A (en) * 2014-01-24 2015-07-29 华为技术有限公司 Cluster node controller monitoring method, related device and controller
CN105849702A (en) * 2013-12-25 2016-08-10 日本电气方案创新株式会社 Cluster system, server device, cluster system management method, and computer-readable recording medium
CN105897508A (en) * 2016-04-01 2016-08-24 锐捷网络股份有限公司 Method and core switch for service processing of distributed data center

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4420275B2 (en) * 2003-11-12 2010-02-24 株式会社日立製作所 Failover cluster system and program installation method using failover cluster system
US7496663B2 (en) * 2005-08-29 2009-02-24 International Business Machines Corporation System and method for detecting status changes in a network using virtual coordinate mapping
CN102271145A (en) * 2010-06-04 2011-12-07 国云科技股份有限公司 Virtual computer cluster and enforcement method thereof
CN103297396B (en) * 2012-02-28 2016-05-18 国际商业机器公司 The apparatus and method that in cluster system, managing failures shifts
CN106452952B (en) * 2016-09-29 2019-11-22 华为技术有限公司 A kind of method and gateway cluster detecting group system communications status

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101631140A (en) * 2009-08-03 2010-01-20 中兴通讯股份有限公司 Cluster server of instant communication system and method of inter-clusters communication
CN101841541A (en) * 2010-04-30 2010-09-22 浪潮(北京)电子信息产业有限公司 Method and system for monitoring cluster based on multicast network
CN102325196A (en) * 2011-10-27 2012-01-18 上海文广互动电视有限公司 Distributed cluster storage system
CN102891896A (en) * 2012-10-18 2013-01-23 江苏物联网研究发展中心 Cloud computing infrastructure system for mass storage of Internet of things
CN103607297A (en) * 2013-11-07 2014-02-26 上海爱数软件有限公司 Fault processing method of computer cluster system
CN105849702A (en) * 2013-12-25 2016-08-10 日本电气方案创新株式会社 Cluster system, server device, cluster system management method, and computer-readable recording medium
CN104811325A (en) * 2014-01-24 2015-07-29 华为技术有限公司 Cluster node controller monitoring method, related device and controller
CN105897508A (en) * 2016-04-01 2016-08-24 锐捷网络股份有限公司 Method and core switch for service processing of distributed data center

Also Published As

Publication number Publication date
WO2018058941A1 (en) 2018-04-05
CN106452952A (en) 2017-02-22

Similar Documents

Publication Publication Date Title
CN106452952B (en) A kind of method and gateway cluster detecting group system communications status
CN105991325B (en) Handle the method, apparatus and system of the failure at least one distributed type assemblies
CN106649632B (en) Method of data synchronization and system
CN103036787B (en) A kind of network routing convergence treating method and apparatus
JP2009017032A (en) Packet transfering device
CN106301952A (en) A kind of SDN datum plane link backup method and device
CN109167699A (en) The method and apparatus for handling the state of the node of block chain
CN109495383A (en) A kind of data processing method, device, communication system and the network equipment
CN105991315A (en) Link protection method applied to SDN (software defined network), switching device and network controller
CN108718258A (en) The quality determining method and equipment of link between a kind of plate
CN106293583B (en) Desktop window sharing method and system
CN106302066A (en) Without master-slave communication method and device
JP6190281B2 (en) Relay system and switch device
CN101364191A (en) Servings method for hardware of computer system and method and system for solving error under guide
CN105681215B (en) A kind of generation method and controller of forwarding-table item
CN105893321B (en) The fault-tolerant module of crossbar switch fine granularity and its method in network-on-chip based on Path diversity
CN107862426A (en) Condition detection method and equipment based on Internet of Things
CN103036737A (en) Self-testing method for on-chip multi-node system for large-scale micro-system chip
CN103414591A (en) Method and system for fast converging when port failure is recovered
CN107566219A (en) Method for diagnosing faults, node device and computer equipment applied to group system
CN113612636B (en) Software defined network topology discovery method and system
CN110535672A (en) A kind of network function dispositions method and network function dispose device
JP4287734B2 (en) Network equipment
CN101399673A (en) Micro TCA system, Micro TCA system management method
CN103457766B (en) The method and device of equipment is managed during a kind of stacking splitting

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant