CN106452952A - Method for detecting communication state of cluster system and gateway cluster - Google Patents

Method for detecting communication state of cluster system and gateway cluster Download PDF

Info

Publication number
CN106452952A
CN106452952A CN201610865479.4A CN201610865479A CN106452952A CN 106452952 A CN106452952 A CN 106452952A CN 201610865479 A CN201610865479 A CN 201610865479A CN 106452952 A CN106452952 A CN 106452952A
Authority
CN
China
Prior art keywords
gateway
cluster
gateways
centroid
communications status
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.)
Granted
Application number
CN201610865479.4A
Other languages
Chinese (zh)
Other versions
CN106452952B (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)
  • Health & Medical Sciences (AREA)
  • Cardiology (AREA)
  • General Health & Medical Sciences (AREA)
  • Environmental & Geological Engineering (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The embodiment of the invention provides a method for detecting a communication state of a cluster system and a gateway cluster, relates to the field of computers, and aims to reduce pressure of a central node when massive communication links exist in the cluster system. The gateway cluster comprises a first gateway cluster and a second gateway cluster, wherein the first gateway cluster comprises a first central node and N first gateways; the second gateway cluster comprises a second central node and M second gateways; a communication link exists between one or more of the N first gateways and at least one second gateway in the second gateway cluster; the first central node acquires a state detection message which is used for indicating the communication state of the communication link between each first gateways of the one or more first gateways and the second gateway in the second gateway cluster; and the first central node determines the communication state between the first gateway cluster and the second gateway cluster according to the state detection message. The method and the gateway cluster which are provided by the embodiment of the invention are applied to a distributed cluster system scene.

Description

A kind of method of detection group system communications status and gateway cluster
Technical field
The present embodiments relate to computer realm, more particularly to a kind of method of detection group system communications status and net Close cluster.
Background technology
Distributed cluster system is typically deployed under the business cluster that two or more need communication, as Fig. 1 institute Show, wherein, gateway cluster corresponds at least one business cluster, the corresponding gateway cluster of business cluster, for being this Business cluster provides data transmission capabilities, there is at least one communication chain between each two gateway cluster in multiple gateway clusters Road, for supporting the data transfer between business cluster.Accordingly, it would be desirable to understand the communications status between gateway cluster at any time, divide at present The communications status of cloth group system are mainly by detecting the communication link heart beating of communication link determining.
As shown in Fig. 2 the distributed cluster system shown in Fig. 2 includes gateway cluster 10 and gateway cluster 20, wherein, gateway There is at least one communication link between cluster 10 and gateway cluster 20, gateway cluster 10 includes Centroid 101 and at least One the first gateway, gateway cluster 20 includes Centroid 201 and at least one second gateways, Centroid 101 and center Node 201 is carried out per communication link to existing between gateway cluster 10 and gateway cluster 20 at least one communication link respectively 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, so when the communication link between gateway cluster 10 and gateway cluster 20 is non- When often many, and when there is communication link between remaining gateway cluster of gateway cluster 10 also and outside gateway cluster 20, by obtaining The communications status of every communication link are taken, and the communication shape between gateway cluster is determined according to the communications status of every communication link State, will certainly increase the burden of Centroid.
Content of the invention
Embodiments of the invention provide a kind of method of detection group system communications status and gateway cluster, in reducing The burden of heart node.
For reaching above-mentioned purpose, embodiments of the invention are adopted the following technical scheme that:
In a first aspect, the embodiment of the present invention provides a kind of method of detection group system communications status, the group system bag The first gateway cluster and the second gateway cluster is included, wherein, the first gateway cluster includes the first Centroid and one or more First gateway, second gateway cluster includes the second Centroid and one or more second gateways, each first gateway with There is at least one communication link, method bag provided in an embodiment of the present invention in the second gateway of at least one of second gateway cluster Include:First Centroid obtains state-detection message, and the state-detection message is used for indicating one or many in the first gateway cluster The communications status of the communication link between the second gateway in each first gateway and the second gateway cluster in individual first gateway; First Centroid 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 of detection group system communications status, is obtained by the first Centroid and uses The second net in each first gateway and the second gateway cluster in one or more first gateways in the first gateway cluster of instruction The state-detection message of the communications status of the communication link between pass, then the first Centroid is according to the determination of state-detection message Communications status between first gateway cluster and the second gateway cluster, so that, the first Centroid is only needed to according to first The communications status of the communication link between the second gateway in gateway and the second gateway cluster, you can determine the first gateway cluster with Communications status between second gateway cluster, in prior art, the first Centroid needs to obtain the first gateway cluster and Communications status between two gateway clusters per communication link, and the first net is determined according to the communications status of every communication link Close compared with communications status of the cluster between the second gateway cluster, detection group system communications status provided in an embodiment of the present invention Method when can there is magnanimity communication link between the first gateway cluster and the second gateway cluster, reduce by the first Centroid Burden.
In conjunction with a first aspect, in the first possible implementation of first aspect, the first Centroid obtains state Detection message is specifically included:First Centroid receives what each first gateway in one or more first gateways was reported State-detection message, the state-detection message that first gateway is reported is for indicating first gateway and the second gateway cluster Communications status are for disconnecting or normally, so obtaining each first gateway in one or more first gateways by the first Centroid Communications status, to determine the communications status between the first gateway cluster and the second gateway cluster, due to each the 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 many, therefore, obtains between the first gateway cluster and the second gateway cluster per bar communication chain with the first Centroid The communications status on road are compared, and by obtaining the state-detection message that each first gateway is reported, can reduce the first Centroid Burden.
In conjunction with the first possible implementation first aspect or first aspect, second in first aspect may Implementation in, when above-mentioned state detecting information show to exist in one or more first gateways in the first gateway cluster to The communications status between the second gateway in few first gateway and the second gateway cluster are normal, then show the first gateway collection Communications status between group and the second gateway cluster are normal, due to the state between any one the first gateway and second gateway For normal when, you can with reflect the communications status that there is a communication link between the first gateway and second gateway be normal, Therefore, when the communications status between any one the first gateway and second gateway are normal, that is, show first gateway cluster And second the communications status that there is a communication link between gateway cluster be normal, therefore, the first Centroid can basis There are the communications status of at least one first gateways and the second gateway in first gateway cluster and the second gateway cluster for normal is Can determine that between the first gateway cluster and the second gateway cluster, communications status are normal, so with leading to according to every communication link Letter state determines that the communications status between the first gateway cluster and the second gateway cluster are compared, and can reduce the first Centroid Burden.
In conjunction with any one possible implementation in second possible implementation of first aspect to first aspect, In the third possible implementation of first aspect, when above-mentioned state detecting information show N number of in the first gateway cluster Between M the second gateway in one or more first gateways in first gateway in each first gateway and the second gateway cluster Communications status be disconnection, then show communications status between the first gateway cluster and the second gateway cluster for disconnecting, due to State between any one the first gateway and second gateway shows the institute between the first gateway and second gateway for disconnecting Have communication link to be disconnection, therefore, the first Centroid can according to each first gateway at least one first gateways with Communications status in second gateway cluster between the second gateway are determined between the first gateway cluster and the second gateway cluster for disconnecting All of communication link so determines the first gateway cluster and the second net with according to the communications status per communication link for disconnecting The communications status for closing between cluster are compared, and can reduce the burden of the first Centroid.
In conjunction with any one possible implementation in the third possible implementation of first aspect to first aspect, In the 4th kind of possible implementation of first aspect, the state-detection message 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 individual first gateway is reported sends Heartbeat detection reply message, the first Centroid is replied message i.e. and can be realized to the first gateway collection by obtaining heartbeat detection The determination of communications status between group and the second gateway cluster, so the communications status without the need for detection per communication link, can drop The processing load of low Centroid.
In conjunction with any one possible implementation in the 4th kind of possible implementation of first aspect to first aspect, In the 5th kind of possible implementation of first aspect, before the first Centroid obtains state-detection message, the present invention The method that embodiment is provided also includes:First Centroid sends first to one or more first gateways and indicates message, should First instruction message is used for indicating one or more first gateways at least one of one or more of second gateways the Two gateways send heartbeat detection information, by sending for sending at least one second gateways to one or more first gateways First instruction message of heartbeat detection information, as the heartbeat detection message in the embodiment of the present invention is destined to the second gateway collection The second gateway in group, what heartbeat detection message was responded is also the second gateway, and therefore the first Centroid is in second Still the heartbeat detection that the transmission of the second gateway cluster can be received during heart node failure is replied message, it is to avoid in the first gateway collection Communications status between group and the second gateway for normal when, due to the second Centroid fault, and cause because not receiving the The heartbeat detection communications status that reply message and judge by accident between the first gateway cluster and the second gateway of two Centroids feedback are Disconnect.
In conjunction with any one possible implementation in the 5th kind of possible implementation of first aspect to first aspect, In the 6th kind of possible implementation of first aspect, method provided in an embodiment of the present invention also includes:First Centroid If it is determined that receive the heartbeat detection that in one or more first gateways, any one first gateway sends replying message, it is determined that Between first gateway cluster and the second gateway cluster, communications status are normal;First Centroid is if it is determined that connect in predetermined period The continuous heartbeat detection for repeatedly not receiving any one first gateway transmission in one or more first gateways is replied message, then really It is disconnection to determine communications status between the first gateway cluster and the second gateway cluster.
In conjunction with any one possible implementation in the 6th kind of possible implementation of first aspect to first aspect, In the 7th kind of possible implementation of first aspect, the first gateway cluster and the second gateway collection is determined in the first Centroid After between group, communications status are for disconnecting, method provided in an embodiment of the present invention also includes:First Centroid stops to one Or multiple first gateways send heartbeat detection message, and the second configured information is sent to one or more first gateways, this second Configured information is used for indicating that one or more first gateways stop sending to any one second gateway in the second gateway cluster Heartbeat detection is replied message, the communication shape being had determined that due to the first Centroid between the first gateway cluster and the second gateway cluster State is for disconnecting, but may there is the second Centroid and not determine leading between the first gateway cluster and the second gateway cluster Letter state for disconnecting, therefore, by sending the second configured information to one or more first gateways, so one or more the After one gateway receives the heartbeat detection message for sending from the second gateway of at least one of second gateway cluster, this Or in multiple first gateways, any one first gateway all will not be responded to this heartbeat detection message, therefore can so be made The second Centroid 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 is replied message, the communications status between the first gateway cluster and the second gateway cluster are determined for disconnecting, Therefore the first gateway cluster and the second gateway cluster can be caused to reach communications status cognition to each other by said method Unanimously.
Second aspect, the embodiment of the present invention provides a kind of gateway cluster, and the gateway cluster is used as first in group system Gateway cluster, above-mentioned group system also includes the second gateway cluster, wherein, the first gateway cluster include the first Centroid and N number of first gateway, second gateway cluster includes the second Centroid and M the second gateway;Wherein, in N number of first gateway One or more first gateways be used for set up communication link with least one of the second gateway cluster the second gateway;In first Heart node is used for obtaining state-detection message, and the state-detection message is used for indicating 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 in gateway and the second gateway cluster;First Centroid is used for determining 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 second aspect, first Centroid obtains shape State detection message is specifically included:Each first gateway that first Centroid is received in one or more first gateways is reported State-detection message.
In conjunction with the first possible implementation of second aspect, in second possible implementation of second aspect In, when above-mentioned state detecting information shows at least one first gateways in the one or more of gateways in the first gateway cluster The communications status of an at least communication link are normal between the second gateway in the second gateway cluster, then show this first Communications status between gateway cluster and the second gateway cluster are normal.
In conjunction with any one possible implementation in second possible implementation of second aspect to second aspect, In the third possible implementation of second aspect, when state detecting information shows in the first gateway cluster or many Between one or more second gateways in individual first gateway and the second gateway cluster, all communication links all disconnect, then show Between one gateway cluster and the second gateway cluster, communications status are for disconnecting.
In conjunction with any one possible implementation in the third possible implementation of second aspect to second aspect, In the 4th kind of possible implementation of second aspect, one or more first gateways of above-mentioned state-detection message are reported The heartbeat detection that the second gateway of at least one of one or more second gateways sends in the second gateway cluster is replied and is disappeared Breath.
In conjunction with any one possible implementation in the 4th kind of possible implementation of second aspect to second aspect, In the 5th kind of possible implementation of second aspect, the first Centroid is additionally operable to send to one or more first gateways First indicates message, and the first instruction message is used for indicating one or more first gateways in one or more second gateways At least one second gateways send heartbeat detection information.
In conjunction with any one possible implementation in the 5th kind of possible implementation of second aspect to second aspect, In the 6th kind of possible implementation of second aspect, first Centroid is additionally operable to:One or many is received in determination After the heartbeat detection that in individual first gateway, any one first gateway is reported is replied message, determine the first gateway cluster with described Communications status between second gateway cluster are normal;First Centroid is additionally operable to:Continuous pre- in predetermined period determining If number of times does not receive the heartbeat detection that in one or more of first gateways, any one first gateway is reported and replies message, Then the first Centroid determines that the communications status between the first gateway cluster and second gateway cluster are disconnection.
In conjunction with any one possible implementation in the 6th kind of possible implementation of second aspect to second aspect, In the 7th kind of possible implementation of second aspect, determine the first gateway cluster with second net in the first Centroid After the communications status between cluster being closed for disconnecting, the first Centroid is additionally operable to stop sending to one or more first gateways Heartbeat detection message, and the second configured information is sent to one or more first gateways, second configured information is used for indicating one Individual or multiple first gateways stop replying message to any one the second gateway transmission heartbeat detection in the second gateway cluster.
The third aspect, the embodiment of the present invention provides a kind of method of detection group system communications status, the group system bag The first gateway cluster and the second gateway cluster is included, wherein, first gateway cluster includes the first Centroid and N number of first net Close, second gateway cluster includes the second Centroid and M the second gateway, one or more the in N number of first gateway There is communication link in the second gateway of at least one of one gateway and the second gateway cluster, the embodiment of the present invention provides a kind of detection The method of group system communications status includes:Each first gateway in one or more first gateways is sent out to the first Centroid The state-detection message of first gateway is given, so that the first Centroid 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 for indicating first gateway and the Communications status between the second gateway of at least one of two gateway clusters are normal, or the state-detection of first gateway Message is used for indicating between at least one of first gateway and the second gateway cluster the second gateway in the communication link of presence The communications status that there is at least one communication link are 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 in the second gateway cluster that one gateway is reported sends Test returns message is jumped, before the first gateway sends state-detection message to the first Centroid, the embodiment of the present invention is provided A kind of method of detection group system communications status also includes:The one the first gateways receive the first finger of the first Centroid transmission Show message, in the first instruction message, heartbeat detection information is carried, the first instruction message is used for indicating the one the first nets Close periodically heartbeat detection information to be sent in the second gateway cluster and at least there is communication link with the one the first gateways The second gateway;First gateway is sent to heartbeat detection information in the second gateway cluster has communication link with first gateway Second gateway, wherein, the one the first gateways are any one first gateway in one or more first gateways.
In conjunction with the first possible implementation of the third aspect to the third aspect, second in the third aspect is possible Implementation in, for the two the first gateways, the two the first gateways be in one or more first gateways any one One gateway;In the one the first gateways, heartbeat detection information is sent in the second gateway cluster and there is communication chain with first gateway After one second gateway on road, method provided in an embodiment of the present invention also includes:The two the first gateways receive the second gateway collection There is the heartbeat detection that second gateway of communication link sends in group to reply message with the two the first gateways;The two the Heartbeat detection is replied message and is sent to the first Centroid by one gateway.
In conjunction with second possible implementation of 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 each first gateway in one or more first gateways is reported Detection message;Each first gateway in one or more first gateways to the first Centroid send state-detection message it Before, method provided in an embodiment of the present invention also includes:Each first gateway in one or more first gateways receives the first chain The communication chain for existing between the second gateway of at least one of first gateway that road management node is reported and the second gateway cluster Communications status in road per communication link;The communications status of one communication link, for indicating belonging to the communication link The first gateway and second gateway cluster between communications status;Each first gateway according to its corresponding at least one lead to The communications status of the every communication link in letter link, determine the communications status of first gateway, wherein, the communication of the first gateway State refers to the communications status between the first gateway and second cluster.
In conjunction with the third possible implementation of 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 the every communication link in its corresponding at least one communication link, Determine the communications status of the three the first gateways, including:When the three the first gateways that the first link management node is reported are corresponded to Communication link in there are the communications status of at least one communication link be normal, then the three the first gateways determine this three the One gateway communication state is normal;When in the three the first corresponding communication links of gateway that the first link management node is reported per The communications status of communication link are disconnection, then the three the first gateways determine the three the first gateway communication states for disconnecting.
In conjunction with the 4th kind of possible implementation of 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 also includes:Each first gateway receives the transmission of the first Centroid Second configured information, second configured information be used for indicate the first gateway stop in the second gateway cluster any one second Gateway sends heartbeat detection and replies message.
Fourth aspect, the embodiment of the present invention also provides a kind of method of detection group system communications status, the group system Including the first gateway cluster and the second gateway cluster, first gateway cluster include the first Centroid, N number of first gateway with And the first link management node, the second gateway cluster includes the second Centroid, M the second gateway and the second link management section Point;Deposit between one or more first gateways in N number of first gateway and at least one of the second gateway cluster the second gateway In communication link, the method includes:In each first gateway of first link management nodal test and the second gateway cluster at least There are the communications status per communication link at least one communication link between each second gateway in one the second gateway; The communications status include to disconnect or normal;The communications status of every communication link are reported the communication by the first link management node The 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 determine the communications status of first gateway.
5th aspect, the embodiment of the present invention provides a kind of first gateway, the group system include the first gateway cluster and Second gateway cluster, first gateway cluster includes the first Centroid, N number of first gateway and the first link management node, Second gateway cluster includes the second Centroid, M the second gateway and the second link management node;In N number of first gateway There is communication link between the second gateway of at least one of one or more first gateways and the second gateway cluster, the gateway bag Include:First transmitting element, for sending state-detection message to the first Centroid, so that the first Centroid 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 also includes:First receiving unit, for receiving the first instruction message of the first Centroid transmission, first instruction disappears Heartbeat detection information is carried in breath, and the first instruction message is used for indicating that heartbeat detection information is periodically sent by the gateway To the second gateway that at least there is communication link in the second gateway cluster with the gateway;Second transmitting element, for examining heart beating Measurement information is sent in the second gateway cluster second gateway that there is 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 also includes:Second receiving unit, for receiving the second gateway collection The heartbeat detection that there is the second gateway transmission of communication link in group with the gateway is replied message;3rd transmitting element, uses The first Centroid is sent in heartbeat detection is replied message.
In second 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 package purse rope closes the state-detection message for reporting;Provided in an embodiment of the present invention One gateway also includes:3rd receiving unit, for receiving the gateway and the second gateway cluster that the first link management node is reported At least one of communications status in the communication link that exists between the second gateway per communication link;One communication chain The communications status on road, for indicating the communications status between the gateway belonging to the communication link and second gateway cluster;Really Order unit, for the communications status according to the 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 refer 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, determining unit specifically for:When the three the first gateways that the first link management node is reported are corresponding logical The communications status that there is at least one communication link in letter link are normal, then the three the first gateways determine this three the first nets It is normal to close communications status;When per article logical in the three the first corresponding communication links of gateway that the first link management node is reported The communications status of letter link are disconnections, then the three the first gateways determine that the three the first gateway communication states are disconnection.
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 also includes:Unit the 4th, sends out for receiving the first Centroid The second configured information that send, second configured information is used for indicating that the gateway stops to any one in the second gateway cluster the Two gateways send heartbeat detection and reply message.
6th aspect, the embodiment of the present invention also provides a kind of link management node, and the group system includes the first gateway collection Group and the second gateway cluster, the link management node is used as the first link management node in the first gateway cluster, and this first Gateway cluster includes the first Centroid, N number of first gateway and the first link management node, and the second gateway cluster includes second Centroid, M the second gateway and the second link management node;One or more first gateways in N number of first gateway with There is communication link between the second gateway of at least one of second gateway cluster, the first link management node includes:Detection Unit, for detect at least one of one or more first gateways and the second gateway cluster the second gateway each second There are the communications status per communication link at least one communication link between gateway;The communications status include disconnect or just Often;Reporting unit, for the communications status of every communication link to be reported the first gateway belonging to the communication link, so that Each first gateway is determined according to the communications status in corresponding at least one communication link of first gateway per communication link The communications status of first gateway.
7th aspect, the embodiment of the present invention provides a kind of first Centroid, and first Centroid is applied to cluster system In system, the group system includes the first gateway cluster and the second gateway cluster, and wherein, the first gateway cluster includes the first centromere Point and N number of first gateway, the second gateway cluster includes the second Centroid and M the second gateway, in N number of first gateway There is communication link in the second gateway of at least one of one or more first gateways and the second gateway cluster, first centromere Point includes:Acquiring unit, for obtaining state-detection message, the state-detection message is used for indicating one in the first gateway cluster Or the communication link between the second gateway in multiple first gateways in each first gateway and second gateway cluster is logical Letter state;Determining 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, the 7th aspect a kind of possible implementation in, above-mentioned acquiring unit specifically for:Connect Receive the state-detection message that in one or more first gateways, each first gateway is reported.
In conjunction with the 7th aspect or the first possible implementation of the 7th aspect, in two kinds of possible realities of the 7th aspect In existing mode, above-mentioned determining unit specifically for:When state detecting information shows in the first gateway cluster one or more Exist in one gateway the communications status between the second gateway at least one first gateways and the second gateway cluster be normal, then Show that the communications status between the first gateway cluster and second gateway cluster are normal.
In conjunction with any one possible implementation in second possible implementation of the 7th aspect to the 7th aspect, The 7th aspect three kinds of possible implementations in, above-mentioned determining unit also particularly useful for:When state detecting information shows In one or more first gateways in N number of first gateway in one gateway cluster in each first gateway and the second gateway cluster The M the second gateway between communications status be disconnection, then show the first gateway cluster with second gateway cluster Between communications status for disconnect.
In conjunction with any one possible implementation in the third possible implementation of the 7th aspect to the 7th aspect, In four kinds of possible implementations of the 7th aspect, above-mentioned state-detection message is one or more in N number of first gateway The second gateway of at least one of one or more second gateways in the second gateway cluster that first gateway is reported sends Heartbeat detection is replied message.
In conjunction with any one possible implementation in the 4th kind of possible implementation of the 7th aspect to the 7th aspect, In five kinds of possible implementations of the 7th aspect, above-mentioned first Centroid also includes:Transmitting element, for N number of One or more first gateways in one gateway send first and indicate message, and the first instruction message is one or more for indicating First gateway sends heartbeat detection information at least one of M the second gateway the second gateway.
In conjunction with any one possible implementation in the 5th kind of possible implementation of the 7th aspect to the 7th aspect, In the 6th kind of possible implementation of the 7th aspect, above-mentioned determining unit is additionally operable to:When determination receive one or more The heartbeat detection that in first gateway, any one first gateway is reported is replied message, it is determined that first gateway cluster with described Communications status between second gateway cluster are normal;
When determining that in predetermined period continuous preset times do not receive in one or more first gateways at least one the The heartbeat detection that one gateway is reported is replied message, then the first Centroid is determined between the first gateway cluster and the second gateway cluster Communications status for disconnect.
In conjunction with any one possible implementation in the 6th kind of possible implementation of the 7th aspect to the 7th aspect, In the 7th kind of possible implementation of the 7th aspect, above-mentioned first Centroid also includes:Stop transmitting element, the stopping Transmitting element specifically for:Stop sending heartbeat detection message to one or more first gateways, and to one or more of First gateway send the second configured information, second configured information be used for indicate one or more of first gateways stop to Any one second gateway in second gateway cluster sends heartbeat detection and replies message.
Description of the drawings
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing Accompanying drawing to be used needed for technology description is had to be briefly described.
Fig. 1 is the application scenarios of group system of the prior art provided in an embodiment of the present invention;
Fig. 2 is the structure chart of group system of the prior art provided in an embodiment of the present invention;
The Organization Chart that Fig. 3 a is applied by a kind of method of detection group system communications status provided in an embodiment of the present invention One;
The Organization Chart that Fig. 3 b is applied by a kind of method of detection group system communications status provided in an embodiment of the present invention Two;
Fig. 4 is a kind of schematic flow sheet one of the method for detection group system communications status provided in an embodiment of the present invention;
Fig. 5 is a kind of schematic flow sheet two of the method for detection group system communications status provided in an embodiment of the present invention;
Fig. 6 is a kind of schematic flow sheet two of the method for detection group system communications status provided in an embodiment of the present invention;
Fig. 7 is a kind of method of detection 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 schematic flow sheet three of the method for detection group system communications status provided in an embodiment of the present invention;
Fig. 9 is a kind of method of detection group system communications status provided in an embodiment of the present invention in the second Centroid Heartbeat path schematic diagram during fault;
Figure 10 is a kind of structural representation of group system application provided in an embodiment of the present invention;
Figure 11 A is a kind of structural representation one of first Centroid provided in an embodiment of the present invention;
Figure 11 B is a kind of structural representation two of first Centroid provided in an embodiment of the present invention;
Figure 11 C is a kind of structural representation three of first Centroid provided in an embodiment of the present invention;
Figure 11 D is a kind of hardware architecture diagram of first Centroid provided in an embodiment of the present invention;
Figure 12 A is a kind of structural representation one of first gateway provided in an embodiment of the present invention;
Figure 12 B is a kind of structural representation two of first gateway provided in an embodiment of the present invention;
Figure 12 C is a kind of hardware architecture diagram of first gateway provided in an embodiment of the present invention;
Figure 13 A is a kind of structural representation one of first link management node provided in an embodiment of the present invention;
Figure 13 B is a kind of structural representation two of first link management node provided in an embodiment of the present invention;
Figure 13 C is a kind of hardware architecture diagram of first link management node provided in an embodiment of the present invention;
Figure 14 is a kind of structural representation of gateway cluster provided in an embodiment of the present invention.
Specific embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is clearly retouched State.
For the ease of clearly describing the technical scheme of the embodiment of the present invention, in embodiments of the present invention, employ " first ", The identical entry essentially identical to function and effect such as " second " printed words or similar item make a distinction, and those skilled in the art can manage The printed words such as solution " first ", " second " are not defined to quantity and execution order.
The embodiment of the present invention description group system and scene be in order to more clearly illustrate the embodiment of the present invention Technical scheme, does not constitute the restriction to technical scheme provided in an embodiment of the present invention, and those of ordinary skill in the art understand, with The differentiation of group system and the appearance of new group system, technical scheme provided in an embodiment of the present invention is asked for similar technology Topic, equally applicable.
Technical scheme provided in an embodiment of the present invention is can apply in distributed cluster system, the distributed cluster system Two or more gateway clusters can be included, 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 in the embodiment of the present invention refer to 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.As Fig. 3 a institute Show, the distributed cluster system based on the first gateway cluster and the second gateway cluster is seen from longitudinal direction and is divided into three layers:Wherein, the first net Closing cluster 30 includes the first Centroid layer 301, the first gateway layer 302 and the first link management node 303;Second gateway collection Group 40 includes the second Centroid layer 401, the second gateway layer 402 and the second link management node 403;Wherein, the first center In node layer 301, operation has the first Centroid;In second Centroid layer 401, operation has the second Centroid;
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 gateway, wherein, M is more than or equal to 1, for example, the second gateway 4021, second Gateway 4022 and the second gateway 4023);
Wherein, in the first gateway cluster 30 at least one of one or more first gateways and the second gateway cluster 40 There is communication link in the second gateway, exemplary, 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, have 10 between the first gateway 3023 and the second gateway 4021 and communicate bar chain , between the first gateway 3023 and the second gateway 4022, there are 7 communication links in road, the first gateway 3023 and the second gateway 4023 it Between there are 6 communication links.It should be noted that can also include in the first gateway cluster 30 except the first gateway 3021, first Remaining first gateway outside gateway 3022 and the first gateway 3023, between remaining the first gateway and second gateway cluster All there is no communication link between any one second gateway.While can also include except the second gateway in the second gateway cluster 40 4021st, remaining second gateway outside the second gateway 4022 and the second gateway 4023, remaining second gateway and the first gateway All there is no communication link between the first gateway of any one in cluster.Also, it is understood that, in the embodiment of the present invention The first gateway cluster for providing can also be communicated with least one gateway cluster in addition to the second gateway cluster, the second net Close cluster to be communicated with least one gateway cluster in addition to the first gateway cluster.
First link management node 303 is used for managing each in one or more first gateways in the first gateway cluster 30 Per communication link in the communication link for existing between at least one second gateways in first gateway and the second gateway cluster 40, tool Body, the first link management node 303 is used for detecting the communications status of every communication link, and leading to every communication link Letter state reporting is to the first gateway belonging to the communication link.
Second link management node 403 is used for managing each in one or more second gateways in the second gateway cluster 40 Per communication link in the communication link for existing between at least one first gateways in second gateway and the first gateway cluster 30, use In communications status of the detection per communication link, and the communications status of every communication link are reported belonging to the communication link The second gateway.
Exemplary, the first link management node 303 detects between the first gateway 3023 and the second gateway 4023 there is 6 Communications status in communication link per communication link, the communications status in 6 communication links are detected per communication link Afterwards, the communications status of every communication link are fed back to the first gateway 3023, due to the first gateway 3023 and the second gateway collection There is communication link between multiple second gateways in group 40, therefore, the first link management node 303 needs to detect the first gateway 3023 and second all and the first gateway 3023 in gateway cluster 40 there is the communication link between the second gateway of communication link Communications status, and all in the second gateway cluster 40 and the first gateway 3023 is present between the second gateway of communication link The communications status of communication link feed 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 kind of distributed cluster system based on the first gateway cluster and the second gateway cluster, its In, the difference of Fig. 3 b and Fig. 3 a is, in the distributed cluster system shown in Fig. 3 b, the first gateway cluster can not include 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 Centroid layer and the second Centroid layer is all identical with Fig. 3 a.Meanwhile, in Fig. 3 b One Centroid is by one or more first gateways in the first gateway cluster at least one of the second gateway cluster the Two gateways send heartbeat detection message, and the second Centroid is by one or more second gateways in 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 heart beating that in the embodiment of the present invention, the first gateway cluster is sent to the second Centroid Detection message makes that the main body that heartbeat detection replies message is also different with prior art, and the second gateway cluster is to the first centromere It is also different with prior art that the heartbeat detection message that point sends makes the main body that heartbeat detection replies message.In the prior art First Centroid of the first gateway cluster needs the heartbeat detection message that the second Centroid to the second gateway cluster sends Send heartbeat detection to reply message, the second Centroid of the second gateway cluster needs the first centromere to the first gateway cluster The heartbeat detection message that point sends sends heartbeat detection and replies message, and in framework provided in an embodiment of the present invention, it is only necessary to the The heartbeat detection message back heartbeat detection that any one second gateway in two gateway clusters is sent to the first Centroid is returned Multiple message, the heartbeat detection message back heart that any one first gateway in the first gateway cluster is sent to the second Centroid Test returns message is jumped, so can be when a Centroid break down, another Centroid still can be received To other side send heartbeat detection reply message, can avoid due to a Centroid break down when, in this section of fault As 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 Centroid of pass cluster is sended over is replied message, and the communications status being mistakenly considered between group system are to disconnect 's.
As shown in figure 4, the embodiment of the present invention provides a kind of method of detection group system communications status, the group system bag The first gateway cluster and the second gateway cluster is included, wherein, the first gateway cluster includes the first Centroid and N number of first net Close, the second gateway cluster includes the second Centroid and M the second gateway, one or more first in N number of first gateway There is communication link in the second gateway of at least one of gateway and the second gateway cluster, the method includes:
S101, one or more first gateways send state-detection message, the state-detection message to the first Centroid For indicating described in first gateway cluster each first gateway and the second gateway cluster in one or more first gateways In the second gateway between communication link communications status;
S102, the first Centroid reception state detection message;
S103, the first Centroid determine first gateway cluster with the second gateway collection according to state-detection message Communications status between group.
The embodiment of the present invention provides a kind of method of detection group system communications status, is obtained by the first Centroid and uses The second net in each first gateway and the second gateway cluster in one or more first gateways in the first gateway cluster of instruction The state-detection message of the communications status of the communication link between pass, then the first Centroid is according to the determination of state-detection message Communications status between first gateway cluster and the second gateway cluster, so that, the first Centroid is only needed to according to first The communications status of the communication link between the second gateway in gateway and the second gateway cluster, you can determine the first gateway cluster with Communications status between second gateway cluster.In hinge structure, the first Centroid need to obtain the first gateway cluster and Communications status between second gateway cluster per communication link, 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 When method can have magnanimity communication link between the first gateway cluster and the second gateway cluster, reduce by the first Centroid Burden.
A kind of method of detection group system communications status provided in an embodiment of the present invention can be come by the first gateway cluster Execute, specifically can be by the first Centroid in the first gateway cluster as shown in Fig. 3 a or Fig. 3 b and one or more First gateway is executing.
In order to make it easy to understand, describe the detection group system communication in the embodiment of the present invention below in detail with another 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 3 a, including:
S501, the first link management node are obtained in each first gateway and the second gateway cluster in the first gateway cluster The communications status of the every communication link at least one communication link that at least one second gateways are present.
The embodiment of the present invention obtains each first gateway and second in the first gateway cluster to the first link management node The communications status of the every communication link at least one communication link that in gateway cluster, at least one second gateways are present Mode is not defined, and can be specifically that the first gateway cluster and the second gateway cluster periodically pass through the first gateway collection each other Between group and the second gateway cluster, often communication link sends heartbeat detection message, and then the first link management node is according to from often The heartbeat detection for whether receiving other side's feedback on communication link is replied message to confirm the communications status of communication link, example Property, if the first Centroid sends heartbeat detection message, and the first link by the first communication link to the second gateway cluster Management node determination receives reply of second gateway cluster to this heartbeat detection message, namely heart beating on the first communication link Test returns message, then the first link management node determine the communications status of first communication link be normal, otherwise, it determines should The communications status of the first communication link are for disconnecting.
S502, the first link management node report the communications status of every communication link belonging to every communication link First gateway.
On the one hand, the embodiment of the present invention can be stored with the mark of each the first gateway in the first link management node, And the corresponding mark per communication link of each first gateway, the mark per communication link is for indicating the communication chain The first gateway and the second gateway belonging to road;So, when each in the first gateway cluster of the first link management nodal test The communication of the every communication link in the communication link that in the first gateway and the second gateway cluster, at least one second gateways are present After state, the communications status of each communication link can be reported corresponding first gateway.Exemplary, if the first link What management node determined the first link is designated 01, and the mark 01 of first link indicates that first link belongs to the first net Close, then the first link management node after the communications status for detecting first link, by the communications status of first link Report the first gateway.
On the other hand, in the embodiment of the present invention, the first link management node can also get the first gateway cluster and After the communications status of the every communication link for existing between two gateway clusters, the communications status of every communication link are all reported To each first gateway in one or more first gateways, so that each first gateway in one or more first gateways According to the mark of every communication link and to be stored in first gateway in each first gateway corresponding per communication link Mark, obtains first gateway the communications status of the every communication link between the first gateway cluster and the second gateway cluster The corresponding communications status per communication link.Exemplary, there are three between the first gateway cluster and the second gateway cluster , there are 8 communication links between three the first gateways and second gateway cluster in the first gateway, then the inspection of the first link management node The communications status of 8 communication link are surveyed, and 8 communication links are reported three the first gateways.Wherein, the first gateway cluster And second the every communication link for existing between gateway cluster refer to one or more first gateways in the first gateway cluster and the Every communication link in the communication link that in two gateway clusters, at least one second gateways are present.
The third aspect, of course for the processing load for reducing each the first gateway, while reduce 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 corresponding at least one (corresponding at least one communication link of each first gateway refers in first gateway and the second gateway cluster at least communication link Between one the second gateway exist communication link) in the first communication link (the first communication link be the first link management node In corresponding at least one communication link of each first gateway is detected, first communications status for detecting is communicated for normal Link) state for normal when, then the communications status of first communication link are reported this for normal first link event The first gateway belonging to first communication link, and need not report this first gateway belonging to the first communication link is corresponding and remove first The communications status of remaining communication link outside communication link;As long as namely the first link management nodal test is in the first gateway There are communications status is normal communication link, then can be without the corresponding every communication link of detection first gateway Communications status, and (first link event is used for indicating that first gateway is corresponding to report the first link event to the first gateway There is normal communication link at least one communication link), but if in corresponding at least one communication link of the first gateway Communications status per communication link are disconnection, then need to lead to per bar in corresponding for the first gateway at least one communication link The communications status of letter link report the first gateway, and certain first link management node can report the second link to the first gateway (second link event is used for indicating there is no proper communication chain in corresponding at least one communication link of first gateway event Road, or second link event is for indicating the every communication link in corresponding at least one communication link of first gateway It is disconnection).
S503, each first gateway are according to every communication link in corresponding at least one communication link of first gateway Communications status, determine the communications status of each the first gateway, wherein, the communications status of each the first gateway refer to first gateway with Communications status between second gateway cluster.
Exemplary, the communications status of the first gateway are normal, then show in first gateway and the second gateway cluster The communications status that there is at least one communication link in the communication link for existing between at least one second gateways are normal.
The communications status of the first gateway then show at least one of first gateway and second gateway cluster for disconnecting In the communication link for existing between two gateways, the communications status of all communication links are for disconnecting.
On the one hand, include when each first gateway receives the Link State detection message that the first link management node reports During the communications status of corresponding at least one communication link of first gateway, then each first gateway is only needed to according to each corresponding The communications status of at least one communication link determine the communications status of itself.
On the other hand, when each first gateway receives the Link State detection message package that the first link management node is reported Include at least one communication link that at least one second gateways in each first gateway and the second gateway cluster are present per bar The communications status of communication link, then each first gateway then need the mark according to each communication link, from each the first gateway The communication of the every communication link at least one communication link for existing with least one second gateways in the second gateway cluster Corresponding at least one communication link of each first gateway is obtained in state, and according to each self-corresponding at least one communication link Communications status determine the communications status of the first gateway.
The third aspect, when each first gateway receives the Link State detection message package that the first link management node is reported Corresponding first link event of each first gateway or corresponding second link event of each the first gateway is included, then receives First gateway of one link event determines that the communications status of first gateway are normal, then receive the first of the second link event Gateway determines the communications status of first gateway for disconnecting.
As, for each first gateway, which determines the mode of state-detection message and principle all same, therefore, originally Only illustrate by taking the three the first gateways as an example in inventive embodiments, the side of the communications status for determining each the first gateway is discussed in detail Method, the three the first gateways are any one at least one of the embodiment of the present invention the first gateway, have any Indicative implication.
Specifically, step S503 can be accomplished by:
S5031, when existing at least in the three the first corresponding communication links of gateway that the first link management node is reported The communications status of one communication link are normal, then the three the first gateways determine that the three the first gateway communication states are normal.
Exemplary, if having 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 The communications status of link 3 are respectively:Disconnect/normal/when disconnecting, 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 are respectively:Normally/disconnect/disconnect When, then the three the first gateways determine that the three the first gateway communication states are normal.
S5032, when per an article communication in the three the first corresponding communication links of gateway that the first link management node is reported The communications status of link are disconnection, then the three the first gateways determine the three the first gateway communication states for disconnecting.
Exemplary, if the communications status of communication link 1, communication link 2 and communication link 3 are respectively:Disconnect/disconnected When opening/disconnecting, then the three the first gateways determine the three the first gateway communication states for disconnecting.
In S504, one or more first gateways, each first gateway sends first gateway to the first Centroid and corresponds to State-detection message.
Exemplary, the first gateway 3021 is by its communications status with least one of the second gateway cluster the second gateway The first Centroid is sent to for normal state-detection message;Second gateway 3022 by its with the second gateway cluster at least The communications status of one the second gateway are that the state-detection message for disconnecting is sent to the first Centroid;First gateway 3023 by its It is sent in first for normal state-detection message with the communications status of at least one of the second gateway cluster the second gateway Heart node.
S505, the first Centroid receive the state-detection that in one or more first gateways, each first gateway is reported and disappear Breath.
S506, the first Centroid 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:
S5061, determine that state detecting information shows in the first gateway cluster one or more when the first Centroid Exist in one gateway the communications status between the second gateway at least one first gateways and the second gateway cluster be normal, then Show that the communications status between the first gateway cluster and second gateway cluster are normal.
Exemplary, if the first Centroid determines that the state-detection message that the first gateway 3021 is reported indicates first net The communications status for closing 3021 are normal, or the state-detection message that the first gateway 3022 is reported indicates first gateway 3022 Communications status are normal, or the state-detection message that reports of the first gateway 3023 indicates the communications status of first gateway 3023 For normal, then the first Centroid determines that the communications status between the first gateway cluster and second gateway cluster are normal. The communications status of the first gateway are for normally referring between at least one of first gateway and the second gateway cluster the second gateway The communications status that there is at least one communication link in the communication link of presence are normal.
S5062, determine that state detecting information shows in N number of first gateway in the first gateway cluster when the first Centroid One or more first gateways in communications status between M the second gateway in each first gateway and the second gateway cluster Disconnection is, then shows the communications status between the first gateway cluster and the second gateway cluster for disconnecting.
Exemplary, if the first Centroid determines that the state-detection message that the first gateway 3021 is reported indicates first net The communications status for closing 3021 are disconnection, and the state-detection message that the first gateway 3022 is reported indicates the logical of first gateway 3022 Letter state is disconnection, and the state-detection message that the first gateway 3023 is reported indicates that the communications status of first gateway 3023 are Disconnect, then the first Centroid determines that the communications status between the first gateway cluster and second gateway cluster are disconnection.The The communications status of one gateway are deposited between first gateway and at least one of the second gateway cluster the second gateway for disconnecting referring to Communication link in the communications status of all communication links be disconnection.
The embodiment of the present invention receives the state-detection message that each first gateway is reported by the first Centroid, determines Communications status between first gateway cluster and the second gateway cluster, such first Centroid only needs to be concerned about each first net Close the communications status of the second gateway cluster.For example, there are 64 gateways in the first gateway cluster, on each gateway, have 256 Bar is to the communication link of the second gateway cluster, then according to technical scheme described in the prior, then the first Centroid Need the communications status of 64*256=16384 communication link are detected, and 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 scheme as described in Figure 5, first Centroid 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, describe the detection group system communication in the embodiment of the present invention below in detail with another 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 3 b, in the distributed collection shown in Fig. 3 b In group's system, the first gateway of at least one of first gateway cluster is used for the second Centroid to the second gateway cluster and sends Heartbeat detection message respond, replied message with replying heartbeat detection, the second net of at least one of second gateway cluster Close and respond for the heartbeat detection message sent by the first Centroid of the first gateway cluster, with to the first gateway cluster Heartbeat detection message is replied, including:
S601, the first Centroid send first to one or more first gateways in N number of first gateway and indicate message, Heart beat status detection message is carried in the first instruction message;The first instruction message indicates that heart beat status are examined by the first gateway Survey message and be sent in the second gateway cluster at least one second gateways that there is communication link with first gateway.
S602, the one the first gateways receive this and first indicate message;And the first instruction message is sent to the second gateway There are at least one second gateways of communication link in cluster with first gateway;Wherein, the one the first gateways are for receiving the First gateway of the first instruction message that one Centroid sends.
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 one or many in the second gateway cluster The heartbeat detection that at least one of individual second gateway the second gateway sends is replied message, then execution step S604;Otherwise, execute S605;
S604, heartbeat detection is replied message it is sent to the first Centroid.
S605, continue to detect whether that receiving heartbeat detection replies message.
S606, the first Centroid determine receive the first gateway transmission heartbeat detection reply message after, then really Fixed communications status between first gateway cluster and second gateway cluster are normal.
S607, the first Centroid if it is determined that in the predetermined period continuous several times do not receive the heart beating of the first gateway transmission Test returns message, it is determined that the communications status between the first gateway cluster and second gateway cluster are for disconnecting.
Fig. 7 show the heartbeat path of first gateway cluster of detection moment in predetermined period, specific as follows:The One Centroid 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 the first gateway A 2 and second gateway cluster are normal, and the first Centroid is by heartbeat detection message The first gateway A 2 is sent to, it is normal communication link that the first gateway A 2 selects communications status, and heartbeat detection message is sent out It is sent to the second gateway cluster, it is assumed that there are communications status in the second gateway cluster with the first gateway A 2 be normal communication chain Second gateway on road is the second gateway B2, and now, heartbeat detection message will not be issued the second Centroid B by the second gateway B2, But the heartbeat detection message for directly first gateway A 2 being sent makes reply, and send heartbeat detection and reply message.Specifically , the second gateway B2 select one with the first cluster between at least one first gateways presence 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 is given the first Centroid A, completes one Heart beating loopback, now, the first Centroid A determines communications status between the first gateway cluster and the second gateway cluster for just Often.
As the first Centroid needs to know between each the first gateway cluster of detection moment and second gateway cluster Communications status, therefore, each first Centroid of 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 the 3rd moment, one In individual predetermined period, the first Centroid can only select a Centroid to send heartbeat detection message, for example, only select the One gateway A 2 sends heartbeat detection message, it is also possible to select one or more first gateways to send 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, 3rd moment sent heartbeat detection message by the 3rd gateway A 3, or the first moment selected the first gateway A 2 to send heartbeat detection Message, the second moment selected the first gateway A 3 to send heartbeat detection message, and the 3rd moment selected the first gateway A 2 to send heart beating inspection Survey message etc.).Due to receive the second gateway cluster at least one second gateways send heartbeat detection reply message first 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 Link determines, and each second gateway has at least one with least one of the first gateway cluster the first gateway and communicates Link, therefore, receive the first gateway transmission heartbeat detection message the second gateway select the first gateway may with to which The first gateway for sending heartbeat detection message is same gateway, it is also possible to the first gateway for being sent to heartbeat detection message be Different gateways.
As each moment of the first Centroid in predetermined period can all pass through one in the first gateway cluster the One gateway sends heartbeat detection message to second gateway in the second gateway cluster, at the same time, if communication link is just Chang Zehui receives the heartbeat detection of the second gateway feedback and replies message, therefore, in the embodiment of the present invention, if the first Centroid Determination continuous preset times in predetermined period do not receive the heartbeat detection of one or more first gateways transmission and reply message, Then determine the communications status between the first gateway cluster and the second gateway cluster for disconnecting.
The embodiment of the present invention is not defined to above-mentioned predetermined period, can be selected as needed, the preset times Can also be configured as needed, for example, if not receiving the heartbeat detection of one or more first gateways transmission for continuous 5 times Reply message, it is determined that the communications status between the first gateway cluster and the second gateway cluster are for disconnecting.
Due in actual use, group system as shown in Figure 2, may there is situations below:Due to link Event (being normal or disconnection including Link State), when the first gateway cluster and the second gateway cluster is reported to, is taken office reporting Delay be there may be during one gateway cluster of meaning, such that examining in the first gateway cluster of synchronization and the second gateway cluster Communications status between the group system for measuring are inconsistent, for example, there are three links between gateway cluster A and gateway cluster B, Link event (being normal or disconnect including Link State) is reported to Centroid A and Centroid B used time under normal circumstances For 1 unit of time, but it is also possible to time delay.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 Centroid B, link 2 and link 3 respectively by the difference of road 3 corresponding second gateway The link event of link 2 and link 3 is notified Centroid A by corresponding first gateway, and in the moment 1, link 1 disconnects, and The link event of link 11 moment of time delay in gateway cluster A just reaches Centroid A, if link 3 connected again in the moment 2 On, the state of link 3 is changed into normal, and the corresponding link event of link 3 reaches Centroid B in the moment 3, then, such as table 1 Shown:The state of the link 1 that the gateway cluster A for determining in moment 1, Centroid A and gateway cluster B is present is normal, link 2 State for disconnecting, the state of link 3 for disconnecting, the gateway cluster A that Centroid B determines and the link 1 that gateway cluster B is present State for disconnecting, the state of link 2 is for disconnecting, and the state of link 3 is for disconnecting;In the link 1 that moment 2, Centroid A determine State for disconnecting, the state of link 2 is for disconnecting, and the state of link 3 be normal, and the state of the link 1 of Centroid B determination is Disconnect, the state of link 2 is for disconnecting, and the state of link 3 is for disconnecting;In the moment 3, the state of the link 1 of Centroid A determination is Disconnect, the state of link 2 is for disconnecting, and the state of link 3 is normal, and the state of the link 1 that Centroid B determines is to disconnect, chain The state on road 2 is for disconnecting, and the state of link 3 is normal, therefore, thinks net in moment 1,3 Centroid A of moment 2 and moment The state for closing cluster A is normal;And for Centroid B, gateway cluster A is thought in 2 Centroid B of moment 1 and moment And the state between gateway cluster B is for disconnecting, just think that the state between gateway cluster A and gateway cluster B is extensive from disconnecting in the moment 3 Again to normally.
Communications status between 1 cluster of table
As it can be seen from table 1 the first Centroid A thinks between gateway cluster that state is normal, and the second center all the time Node B but thinks that the state between moment 1 and 2 gateway cluster of moment is disconnection, recovers normal in the moment 3, therefore, easily causes Centroid A and Centroid B is inconsistent to the state cognition between gateway cluster A and gateway cluster B, therefore, in order that The communications status of the first gateway cluster and the second gateway cluster within a specified time reach unanimously, and the embodiment of the present invention is in centromere When communications status between point determination gateway cluster are for disconnecting, testing process as shown in Figure 8 can also be adopted, the Fig. 8 is with Fig. 6's Difference is, can also cause the first gateway cluster and the second gateway by execution step S608 after execution of step S607 State of the cluster in Preset Time reaches unanimously:
S608, determine communications status between the first gateway cluster and the second gateway cluster for disconnecting in the first Centroid When, the first Centroid stops to the one or more first gateways transmission heartbeat detection message in the first gateway cluster, and to One or more first gateways send the second configured information, and second configured information is used for indicating that one or more first gateways stop Only send heartbeat detection to any one second gateway in the second gateway cluster to reply message.
Exemplary, if the second Centroid B detects all second gateways to the first gateway by the step shown in Fig. 6 The communications status of cluster A all disconnect, then the second Centroid B determines that the communications status between group system are disconnection, and passes through Execute step S608 in Fig. 8 to stop sending heartbeat detection message to the first gateway cluster, while will be used for indicating the first gateway Communications status between cluster and the second gateway cluster are the institute that the second configured information of disconnection is sent in the second gateway cluster B There is the second gateway, second gateway B1, B2, B3, B4 stops replying the first gateway cluster A after the second configured information is received The heartbeat detection message for sending over, therefore, the first Centroid A does not receive specified number detecting continuous preset times After heartbeat detection is replied message, the first Centroid A determines that the communications status between group system are disconnection, therefore, is referring to The interior first Centroid A and the second Centroid B that fixes time all determines logical between the first gateway cluster and the second gateway cluster Letter state is for disconnecting.
Fig. 7 show the heartbeat path of first gateway cluster of detection moment in predetermined period, due to the first net It is that heartbeat detection message is sent to second after the first instruction message is received to close one or more first gateways in cluster The second gateway of at least one of gateway cluster, and second gateway is for making reply to heartbeat detection message, therefore, such as schemes Shown in 9, when the second Centroid in the second gateway cluster breaks down and switches over, the first Centroid A is still permissible The heartbeat detection for receiving the second gateway cluster feedback is replied message, and the first Centroid 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 corresponded to, in the corresponding Centroid of the first gateway cluster And second the corresponding Centroid of gateway cluster determine the communication shape between the first gateway cluster and the second gateway cluster respectively After state, the Centroid of the first gateway cluster and the second gateway cluster is notified that each gateway node the first gateway collection in which Communications status between group and the second gateway cluster are normal, and then, business cluster 10 and business cluster 20 can just 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 Centroid 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 Centroid B breaks down determined by Communications status carry out business transmission, it is believed that the communications status between gateway cluster are still normal, therefore, can be just between business cluster Normal transmission data.
It should be noted that the second gateway B2 select with the first gateway cluster exist communication link the first gateway permissible It is the first gateway A 2, or the first gateway A 3, which the first gateway no matter is selected, selected first gateway and second There are at least one communications status between gateway B2 for normal communication link.
The above-mentioned main angle from interaction between each network element is described to scheme provided in an embodiment of the present invention.Can To be understood by, each network element, such as the first Centroid, gateway, the first link management node etc. in order to realize above-mentioned functions, It comprises the corresponding hardware configuration of each function of execution and/or software module.Those skilled in the art should be easy to consciousness Arrive, the unit of each example in conjunction with the embodiments described herein description and algorithm steps, the present invention can be with hardware or hard The combining form of part and computer software is realizing.Certain function is actually in the way of hardware or computer software drive hardware To execute, the application-specific depending on technical scheme and design constraint.Professional and technical personnel can specifically should to each It is used for using different methods to described function is realized, but this realization is it is not considered that beyond the scope of this invention.
The embodiment of the present invention can be according to said method example to the first Centroid, gateway, the first link management node Etc. the division for carrying out functional module, for example, it is possible to each function corresponding divides each functional module, it is also possible to by two or two Above function is integrated in a processing module.Above-mentioned integrated module both can be realized in the form of hardware, it is also possible to Realized in the form of software function module.It should be noted that in the embodiment of the present invention to the division of module be schematic, A kind of division of logic function is only, when actually realizing, can have other dividing mode.
In the case of each functional module is divided using each function corresponding, Figure 11 A shows institute in above-described embodiment A kind of possible structural representation of the first Centroid being related to, first Centroid includes:Acquiring unit 1101 and Determining unit 1102.Acquiring unit 1101 is used for supporting that the first Centroid executes process S102 in Fig. 4, the S505 in Fig. 5; Determining unit 1102 is used for supporting that the first Centroid executes process S103 in Fig. 4, process S506 in Fig. 5, in Fig. 6 S606 and S607.Figure 11 B shows the alternatively possible structural representation of involved the first Centroid in above-described embodiment Figure, first Centroid also includes:Transmitting element 1103, for supporting the first Centroid to realize the process in Fig. 6 and Fig. 8 S601, certainly first Centroid also include stop transmitting element, for support the first Centroid realize the process in Fig. 8 S608.Wherein, all related contents of each step that said method embodiment is related to can all quote corresponding function module Function is described, and be will not be described here.
In the case of using integrated unit, Figure 11 C shows involved the first Centroid in above-described embodiment A kind of possible structural representation.First Centroid 1300 includes:Processing module 1302 and communication module 1303.Process mould Block 1302 is used for executing process S102 in Fig. 4, process S505 in Fig. 5, S601, the Fig. 8 in Fig. 6 by communication module 1303 In S601 and S608, processing module 1302 is used for being controlled the action of the first Centroid management, for example, processing module 1302 are used for supporting that the first Centroid to execute process S103 in Fig. 4, process S506 in Fig. 5, process S606 in Fig. 6 and S606 and S607 in S607, Fig. 8, and/or other processes for techniques described herein.Communication module 1303 is used for propping up Hold the communication of the first Centroid and other network entities, for example with Fig. 4, Fig. 5, Fig. 6 or Fig. 8 in illustrate one or more Communication between one gateway.First Centroid can also include memory module 1301, for storing the journey of the first Centroid Sequence code data.
Wherein, processing module 1302 can be processor or controller, for example, can be central processing unit (Central Processing Unit, CPU), general processor, digital signal processor (Digital Signal Processor, DSP), Special IC (Application-Specific Integrated Circuit, ASIC), field programmable gate array (Field Programmable Gate Array, FPGA) or other PLDs, transistor logic, hard Part part or its combination in any.Which can realize or execute patrolling with reference to various exemplary described by the disclosure of invention Collect square frame, module and circuit.The processor can also be the combination for realizing computing function, for example, include one or more micro- places Reason device combination, combination of DSP and microprocessor etc..Communication module 1303 can be transceiver, transmission circuit or communication interface Deng.Memory module 1301 can be memorizer.
When processing module 1302 is processor, communication module 1303 is transceiver, when memory module 1301 is memorizer, this The first Centroid involved by inventive embodiments can be the first Centroid shown in Figure 11 C.
Refering to shown in Figure 11 D, first Centroid 1310 includes:Processor 1312, transceiver 1313, memorizer 1311 And bus 1314.Wherein, transceiver 1313, processor 1312 and memorizer 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 is permissible It is divided into address bus, data/address bus, controlling bus etc..For ease of representing, only represented with a thick line in Figure 11 D, but not table Show only one bus or a type of bus.
In the case of each functional module is divided using each function corresponding, Figure 12 A shows institute in above-described embodiment A kind of possible structural representation of the first gateway being related to, first gateway includes:First transmitting element 1201, this first Unit 1201 is sent for supporting the first gateway to execute process S101 in Fig. 4, process S504 in S505, Fig. 5 in Fig. 5, Fig. 6 In process S604 and process S604 in Fig. 8;First gateway can also include the first receiving unit 1202, for receiving the One indicates message.First gateway can also include the second transmitting element 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:Second receiving unit, for for receiving the second gateway The heartbeat detection that there is the second gateway transmission of communication link in cluster with the gateway is replied message, and the first gateway is acceptable It is used for including the 3rd transmitting element, the 3rd receiving unit is used for receiving the gateway and the second net that the first link management node is reported Close the communications status per communication link, determining unit in the communication link for existing between at least one of cluster the second gateway For supporting the first gateway to execute step S503 as described in Figure 5.Wherein, each step that said method embodiment is related to All related contents can all quote the function description of corresponding function module, will not be described here.
In the case of using integrated unit, Figure 12 B shows of involved the first gateway in above-described embodiment Plant possible structural representation.First gateway 1400 includes:Processing module 1402 and communication module 1403.Processing module 1402 is used In process S101 in Fig. 4 is executed by communication module 1403, process S504 in Fig. 5, in the S602 and S604, Fig. 8 in Fig. 6 S602 and S604, processing module 1402 is used for being controlled management to the action of the first gateway, and for example, processing module 1402 is used Process S503 in Fig. 5, process S603 in Fig. 6, process S603 in Fig. 8 is executed in the first gateway of support, and/or is used for this Other processes of technology described by text.Communication module 1403 is used for supporting the communication of the first gateway and other network entities, example As with Fig. 4, Fig. 5, Fig. 6 or Fig. 8 in shown in one or more second gateways, the first link management node and the first centromere Communication between point.First gateway can also include memory module 1401, for storing the program code data of the first gateway.
Wherein, processing module 1402 can be processor or controller, for example, can be central processing unit (Central Processing Unit, CPU), general processor, digital signal processor (Digital Signal Processor, DSP), Special IC (Application-Specific Integrated Circuit, ASIC), field programmable gate array (Field Programmable Gate Array, FPGA) or other PLDs, transistor logic, hard Part part or its combination in any.Which can realize or execute patrolling with reference to various exemplary described by the disclosure of invention Collect square frame, module and circuit.The processor can also be the combination for realizing computing function, for example, include one or more micro- places Reason device combination, combination of DSP and microprocessor etc..Communication module 1403 can be transceiver, transmission circuit or communication interface Deng.Memory module 1401 can be memorizer.
When processing module 1402 is processor, communication module 1403 is transceiver, when memory module 1401 is memorizer, this The first gateway involved by inventive embodiments can be the first gateway shown in Figure 12 C.
Refering to shown in Figure 12 C, first gateway 1410 includes:Processor 1412, transceiver 1413, memorizer 1411 and Bus 1414.Wherein, transceiver 1413, processor 1412 and memorizer 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 be divided For address bus, data/address bus, controlling bus etc..For ease of representing, only represented with a thick line in Figure 12 C, it is not intended that Only one bus or a type of bus.
In the case of each functional module is divided using each function corresponding, Figure 13 A shows institute in above-described embodiment A kind of possible structural representation of the first link management node being related to, the first link management node includes:Detector unit 1501 and reporting unit 1502.Detector unit 1501 is used for supporting that the first link management node executes process S501 in Fig. 5, Reporting unit 1502 is used for supporting that the first link management node is executed as process S502 in Fig. 5.Wherein, said method embodiment All related contents of each step being related to can all quote the function description of corresponding function module, will not be described here.
In the case of using integrated unit, Figure 13 B shows involved the first link management in above-described embodiment A kind of possible structural representation of node.First link management node 1600 includes:Processing module 1602 and communication module 1603.Processing module 1602 is used for executing process S502 in Fig. 5 by communication module 1603, and processing module 1602 is used for the The action of one link management node is controlled management, and for example, processing module 1602 is used for supporting that the first link management node is held Process S501 in row Fig. 5, and/or other processes for techniques described herein.Communication module 1603 is used for supporting the The communication of one link management node and other network entities, such as between one or more first gateways for illustrating 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 data.
Wherein, processing module 1602 can be processor or controller, for example, can be central processing unit (Central Processing Unit, CPU), general processor, digital signal processor (Digital Signal Processor, DSP), Special IC (Application-Specific Integrated Circuit, ASIC), field programmable gate array (Field Programmable Gate Array, FPGA) or other PLDs, transistor logic, hard Part part or its combination in any.Which can realize or execute patrolling with reference to various exemplary described by the disclosure of invention Collect square frame, module and circuit.The processor can also be the combination for realizing computing function, for example, include one or more micro- places Reason device combination, combination of DSP and microprocessor etc..Communication module 1603 can be transceiver, transmission circuit or communication interface Deng.Memory module 1601 can be memorizer.
When processing module 1602 is processor, communication module 1603 is transceiver, when memory module 1601 is memorizer, this The first link management node involved by inventive embodiments can be the first Centroid shown in Figure 13 C.
Refering to shown in Figure 13 C, the first link management node 1510 includes:Processor 1512, transceiver 1513, memorizer 1511 and bus 1514.Wherein, transceiver 1513, processor 1512 and memorizer 1511 are mutually interconnected by bus 1514 Connect;Bus 1514 can be Peripheral Component Interconnect standard (Peripheral Component Interconnect, PCI) bus Or EISA (Extended Industry Standard Architecture, EISA) bus etc..Described total Line can be divided into address bus, data/address bus, controlling bus etc..For ease of representing, only represented with a thick line in Figure 13 C, but It is not offered as only one 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 used as in group system 10 First gateway cluster 101, the group system 10 also includes the second gateway cluster 102, and wherein, the first gateway cluster 101 includes One Centroid 1011 and one or more first gateways 1012, second gateway cluster 102 includes the second Centroid 1021 and one or more second gateways 1022;
Wherein, each first gateway 1012 is used for building with least one of the second gateway cluster 102 second gateway 1022 Found at least one communication link;
First Centroid 1011 is used for being retouched in the step of executing as illustrated in fig. 4 step S101 and S102, Fig. 5 Step S601, S606 in step S601, S606 and S607, Fig. 8, S607 in the step of stating S505, S506, Fig. 6 and S608.In, all related contents of each step that said method embodiment is related to can all quote the work(of corresponding function module Can describe, will not be described here.
Can be realized in the way of hardware in conjunction with the step of the method described by the disclosure of invention or algorithm, also may be used By be by computing device software instruction in the way of realizing.Software instruction can be made up 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 EPROM (Electrically EPROM, EEPROM), depositor, hard disk, portable hard drive, read-only optical disc (CD-ROM) or in the storage medium of any other form well known in the art.A kind of exemplary storage medium is coupled to place Reason device, so as to enable a processor to from the read information, and can write information to the storage medium.Certainly, store Medium can also be the ingredient of processor.Processor and storage medium are may be located in ASIC.In addition, the ASIC can position In core network interface equipment.Certainly, processor and storage medium can also be present in core network interface as discrete assembly and set In standby.
Those skilled in the art it will be appreciated that in said one or multiple examples, work(described in the invention Be able to can be realized with hardware, software, firmware or their combination in any.When implemented in software, can be by these functions It is stored in computer-readable medium or is transmitted as the one or more instructions on computer-readable medium or code. Computer-readable medium includes computer-readable storage medium and communication media, and wherein communication media includes to be easy to from a place to another Any medium of one place transmission computer program.Storage medium can be universal or special computer can access any Usable medium.
Those skilled in the art can be understood that, for convenience and simplicity of description, only with above-mentioned each function The division of module is illustrated, and in practical application, can distribute above-mentioned functions by different function moulds as desired Block is completed, will the internal structure of device be divided into different functional modules, to complete all or part of work(described above Energy.The specific work process of the system, apparatus, and unit of foregoing description, may be referred to corresponding in preceding method embodiment Journey, will not be described here.
In several embodiments provided herein, it should be understood that disclosed system, apparatus and method are permissible Realize by another way.For example, device embodiment described above be only schematically, for example, the module or The division of unit, only a kind of division of logic function, can have other dividing mode, such as multiple units when actually realizing Or component can in conjunction with or be desirably integrated into another system, or some features can be ignored, or not execute.Another, institute The coupling each other for showing or discussing or direct-coupling or communication connection can be by some interfaces, device or unit INDIRECT COUPLING or communication connection.
The unit that illustrates as separating component can be or may not be physically separate, aobvious as unit The part for showing can be or may not be physical location, you can be located at a place, or can also be distributed to multiple On NE.Some or all of unit therein can be selected according to the actual needs to realize the mesh of this embodiment scheme 's.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, it is also possible to It is that unit is individually physically present, it is also possible to which two or more units are integrated in a unit.Above-mentioned integrated list Unit can be realized in the form of SFU software functional unit.
If the integrated unit is realized and as independent production marketing or use using in the form of SFU software functional unit When, can be stored in a computer read/write memory medium.Based on such understanding, all or part of the technical scheme Can be embodied in the form of software product, the computer software product is stored in a storage medium, including some fingers Order is used so that a computer equipment (can be personal computer, server, or network equipment etc.) or computing device The all or part of step of each embodiment methods described of the present invention.The storage medium is non-transitory (English:non- Transitory) medium, including:Flash memory, portable hard drive, read only memory, random access memory, magnetic disc or light Disk etc. is various can be with the medium of store program codes.
The above, the only specific embodiment of the present invention, but protection scope of the present invention is not limited thereto, and any Those familiar with the art the invention discloses technical scope in, change or replacement can be readily occurred in, should all be contained Cover within protection scope of the present invention.Therefore, protection scope of the present invention described should be defined by scope of the claims.

Claims (16)

1. a kind of detection group system communications status method, it is characterised in that the group system includes the first gateway cluster With the second gateway cluster, wherein, first gateway cluster includes the first Centroid and N number of first gateway, described second Gateway cluster includes the second Centroid and M the second gateway, one or more first gateways in N number of first gateway There is communication link with least one of second gateway cluster the second gateway, methods described includes:
First Centroid obtains state-detection message, and the state-detection message is used for indicating first gateway cluster Described in logical between the second gateway in one or more first gateways in each first gateway and second gateway cluster The communications status of letter link;
First Centroid determines first gateway cluster with the second gateway collection according to the state-detection message Communications status between group.
2. method according to claim 1, it is characterised in that it is concrete that first Centroid obtains state-detection message Including:
First Centroid receives the state-detection that in one or more of first gateways, each first gateway is reported and disappears Breath.
3. method according to claim 2, it is characterised in that when the state detecting information shows the first gateway collection There is second at least one first gateways and second gateway cluster in one or more of first gateways in group Communications status between gateway are normal, then show the communication shape between first gateway cluster and second gateway cluster State is normal.
4. method according to claim 2, it is characterised in that when the state detecting information shows the first gateway collection In one or more first gateways in described N number of first gateway in group in each first gateway and second gateway cluster The M the second gateway between communications status be disconnection, then show first gateway cluster with second gateway Communications status between cluster are for disconnecting.
5. method according to claim 1, it is characterised in that the state-detection message is in N number of first gateway One or more first gateways report in one or more second gateways described in second gateway cluster extremely The heartbeat detection that few second gateway sends is replied message.
6. method according to claim 5, it is characterised in that methods described also includes:
First Centroid sends first to one or more first gateways in N number of first gateway and indicates message, The first instruction message is used for indicating one or more of first gateways at least one of the M the second gateway the Two gateways send heartbeat detection information.
7. the method according to claim 5 or 6, it is characterised in that when first Centroid determine receive described The heartbeat detection that in one or more first gateways, any one first gateway is reported is replied message, then first Centroid Determine that the communications status between first gateway cluster and second gateway cluster are normal;
When first Centroid determines that continuous preset times do not receive one or more of first in predetermined period The heartbeat detection that in gateway, at least one first gateways are reported is replied message, then first Centroid determines first net The communications status between cluster and second gateway cluster are closed for disconnecting.
8. method according to claim 7, it is characterised in that determine the first gateway collection in first Centroid After communications status between group and second gateway cluster are for disconnecting, methods described also includes:
First Centroid stops sending heartbeat detection message to one or more of first gateways, and to one Or multiple first gateways send the second configured information, second configured information is used for indicating one or more of first gateways Stop replying message to any one the second gateway transmission heartbeat detection in second gateway cluster.
9. a kind of gateway cluster, it is characterised in that the gateway cluster is used as the first gateway cluster in group system, the collection Group's system also includes the second gateway cluster, and wherein, first gateway cluster includes the first Centroid and N number of first net Close, second gateway cluster includes the second Centroid and M the second gateway;
Wherein, one or more first gateways in N number of first gateway at least one of are used for second gateway cluster Second gateway sets up communication link;
First Centroid is used for obtaining state-detection message, and the state-detection message is used for indicating first gateway The second gateway in each first gateway described in cluster in one or more first gateways and second gateway cluster Between communication link communications status;
First Centroid is used for determining first gateway cluster with second net according to the state-detection message Close the communications status between cluster.
10. gateway cluster according to claim 9, it is characterised in that first Centroid is used for obtaining state inspection Survey message to specifically include:First Centroid is received on each first gateway in one or more of first gateways The state-detection message of report.
11. gateway clusters according to claim 10, it is characterised in that when the state detecting information shows described first The second net in one or more of gateways in gateway cluster at least one first gateways and second gateway cluster Between pass, the communications status of an at least communication link are normal, then show first gateway cluster with second gateway Communications status between cluster are normal.
12. gateway clusters according to claim 10, it is characterised in that when the state detecting information shows described first One or more of second nets in one or more of first gateways in gateway cluster and second gateway cluster Between pass, all communication links all disconnect, then show communications status between first gateway cluster and second gateway cluster For disconnecting.
13. gateway clusters according to claim 9, it is characterised in that the state-detection message is one or many Individual first gateway report from least one of one or more second gateways described in second gateway cluster second The heartbeat detection that gateway sends is replied message.
14. gateway clusters according to claim 13, it is characterised in that first Centroid is additionally operable to described one Individual or multiple first gateways send first and indicate message, and the first instruction message is used for indicating one or more of first nets Close at least one of one or more of second gateways the second gateway and send heartbeat detection information.
15. gateway clusters according to claim 13 or 14, it is characterised in that first Centroid is additionally operable to:? After determining that receiving the heartbeat detection that in one or more of first gateways, any one first gateway is reported replies message, Determine that the communications status between first gateway cluster and second gateway cluster are normal;
First Centroid is additionally operable to:Determine in predetermined period continuous preset times do not receive one or many The heartbeat detection that in individual first gateway, any one first gateway is reported is replied message, then first Centroid determines described Communications status between first gateway cluster and second gateway cluster are for disconnecting.
16. gateway clusters according to claim 14, it is characterised in that first Centroid is additionally operable to stop to institute Stating one or more first gateways and heartbeat detection message is sent, and the second instruction letter is sent to one or more of first gateways Breath, second configured information is used for indicating that one or more of first gateways stopped to appointing in 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 true CN106452952A (en) 2017-02-22
CN106452952B 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)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106656682A (en) * 2017-02-27 2017-05-10 网宿科技股份有限公司 Method, system and device for detecting cluster heartbeat
CN106878109A (en) * 2017-03-13 2017-06-20 网宿科技股份有限公司 Server detection method and server system
CN107749820A (en) * 2017-09-14 2018-03-02 深圳市盛路物联通讯技术有限公司 The detection method and system of a kind of communications status
WO2018058941A1 (en) * 2016-09-29 2018-04-05 华为技术有限公司 Method for detecting communication status of cluster system, and gateway cluster
CN114760317A (en) * 2022-03-18 2022-07-15 中国建设银行股份有限公司 Fault detection method of virtual gateway cluster and related equipment
WO2023165137A1 (en) * 2022-03-02 2023-09-07 京东科技信息技术有限公司 Cross-cluster network communication system and method

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112131195B (en) * 2020-08-18 2024-04-16 深圳市风云实业有限公司 Cluster type management method for aging test

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050102562A1 (en) * 2003-11-12 2005-05-12 Hitachi, Ltd. Method and system for installing program in multiple system
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 (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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 (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050102562A1 (en) * 2003-11-12 2005-05-12 Hitachi, Ltd. Method and system for installing program in multiple system
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

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018058941A1 (en) * 2016-09-29 2018-04-05 华为技术有限公司 Method for detecting communication status of cluster system, and gateway cluster
CN106656682A (en) * 2017-02-27 2017-05-10 网宿科技股份有限公司 Method, system and device for detecting cluster heartbeat
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
CN107749820A (en) * 2017-09-14 2018-03-02 深圳市盛路物联通讯技术有限公司 The detection method and system of a kind of communications status
WO2023165137A1 (en) * 2022-03-02 2023-09-07 京东科技信息技术有限公司 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

Also Published As

Publication number Publication date
WO2018058941A1 (en) 2018-04-05
CN106452952B (en) 2019-11-22

Similar Documents

Publication Publication Date Title
CN106452952A (en) Method for detecting communication state of cluster system and gateway cluster
CN104378232B (en) Fissure discovery, restoration methods and device under active and standby cluster networking pattern
CN105991325B (en) Handle the method, apparatus and system of the failure at least one distributed type assemblies
CN103036787B (en) A kind of network routing convergence treating method and apparatus
CN104811325B (en) A kind of clustered node controller monitoring method, relevant apparatus and controller
CN105049348B (en) Relay system and exchange apparatus
CN106301952A (en) A kind of SDN datum plane link backup method and device
CN110068766A (en) Integrated circuit and battery management system including it
CN106572047A (en) Physical network safety device and control method thereof
CN109167699A (en) The method and apparatus for handling the state of the node of block chain
CN107707392A (en) Passage restorative procedure and device, terminal
CN105915426A (en) Failure recovery method and device of ring network
CN104317803A (en) Data access structure and method of database cluster
CN107395379A (en) A kind of cluster cruising inspection system and method
CN105807722A (en) Numerical control system including internal register self-reset function with serial communication signal monitoring
CN105704187B (en) A kind of processing method and processing device of cluster fissure
CN103246585A (en) Storage controller fault detecting method
CN104468224A (en) Double-filtration fault warning method for data center monitoring system
CN105991315A (en) Link protection method applied to SDN (software defined network), switching device and network controller
US7246160B2 (en) Computer monitoring system, computer monitoring method and computer monitoring program
CN103067184A (en) Exception handling method of offline charging and system
CN109062184A (en) Two-shipper emergency and rescue equipment, failure switching method and rescue system
CN108171265A (en) A kind of label preparation method, device and electronic equipment
CN101399673B (en) Micro TCA system, Micro TCA system management method
CN103414591A (en) Method and system for fast converging when port failure is recovered

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