[go: up one dir, main page]

WO2012024882A1 - Method and system for backuping wireless sensor network gateways - Google Patents

Method and system for backuping wireless sensor network gateways Download PDF

Info

Publication number
WO2012024882A1
WO2012024882A1 PCT/CN2010/080403 CN2010080403W WO2012024882A1 WO 2012024882 A1 WO2012024882 A1 WO 2012024882A1 CN 2010080403 W CN2010080403 W CN 2010080403W WO 2012024882 A1 WO2012024882 A1 WO 2012024882A1
Authority
WO
WIPO (PCT)
Prior art keywords
wsn
wsn gateway
gateway
backup
primary
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Ceased
Application number
PCT/CN2010/080403
Other languages
French (fr)
Chinese (zh)
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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Publication of WO2012024882A1 publication Critical patent/WO2012024882A1/en
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/66Arrangements for connecting between networks having differing types of switching systems, e.g. gateways

Definitions

  • the present invention relates to a WSN gateway backup technology in a Wireless Sensor Network (WSN), and more particularly to a backup method and system for a wireless sensor network gateway.
  • WSN Wireless Sensor Network
  • WSN is a new information acquisition and processing technology.
  • WSN and telecom network combination such as second generation (2G, 2nd Generation) mobile communication, third generation (3G, 3rd Generation) mobile communication, xDSL (x Digital Subscriber Line), FTTx (Fiber To The x, x is home , building, node, premises), wireless access, satellite/microwave, etc.
  • 2G, 2nd Generation second generation
  • 3G, 3rd Generation third generation
  • xDSL x Digital Subscriber Line
  • FTTx Fiber To The x, x is home , building, node, premises
  • wireless access satellite/microwave, etc.
  • the WSN node performs centralized management to solve the problem that the WSN nodes currently dispersed everywhere are difficult to manage.
  • the combination of a wireless sensor network and a telecommunications network is generally a wireless sensor network connected to a telecommunications network platform through a WSN gateway.
  • the telecommunication network platform includes functional entities such as a management platform and a service platform.
  • the management platform is responsible for implementing the device management function;
  • the business platform is responsible for integrating the services provided by each service provider and providing it to the end users, and managing the use of the business by the user, and is responsible for completing the entire business process.
  • the WSN gateway mainly performs functions such as wireless sensor network configuration and networking, protocol conversion, address mapping, and data forwarding.
  • the WSN node is connected to the telecommunication network platform through the WSN gateway device.
  • WSN node device The sensor node of the wireless sensor network is connected to the WSN gateway by one or more hops.
  • the terminal device is responsible for collecting and uploading data, as well as receiving and executing commands.
  • the number of devices that make up a WSN is as few as a few hundreds, and devices can be networked in a star, tree, or mesh (MESH) mode, some of which have strong networking and data forwarding capabilities. .
  • the WSN node is located at the very end of the extended network.
  • a WSN network often has multiple WSN gateways.
  • the information in the WSN gateway can be saved in the management platform.
  • the WSN gateway fails and the new device is replaced, the information in the management platform can be conveniently imported into the new WSN gateway device.
  • the burden on the management platform must be increased.
  • the main purpose of the present invention is to provide a backup method and system for a wireless sensor network gateway, which implements backup of the WSN gateway by setting a backup WSN gateway, thereby ensuring the robustness of the connection between the communication network and the WSN.
  • a method for backing up a wireless sensor network gateway the WSN is connected to the communication network through the WSN gateway; and the backup WSN gateway is set for the WSN gateway; the method further includes:
  • setting the backup WSN gateway for the WSN gateway is specifically: setting a primary WSN gateway and a secondary WSN gateway, the primary WSN gateway storing at least configuration information from the WSN gateway, and information and WSN of the WSN node managed by the WSN gateway Configuration parameter
  • the currently working WSN gateway is monitored. When the working WSN gateway fails, the backup WSN gateway of the failed WSN gateway takes over the fault.
  • the WSN gateway is specifically:
  • the primary WSN gateway periodically monitors the status of the slave WSN gateway, or periodically reports the status information from the WSN gateway to the primary WSN gateway;
  • the primary WSN gateway determines that the working slave WSN gateway status is abnormal, the primary WSN gateway takes over the abnormal slave WSN gateway operation.
  • setting the backup WSN gateway for the WSN gateway is specifically: setting the primary WSN gateway and the secondary WSN gateway; in the secondary WSN gateway, setting each WSN gateway and the other at least one WSN gateway to each other as a backup WSN gateway;
  • a backup policy comparison table is set in the primary WSN gateway, and the backup policy comparison table includes at least an identifier from the WSN gateway, information of the WSN node managed by the slave WSN gateway, WSN configuration parameters, and a backup as the slave WSN gateway. The identity of the WSN gateway;
  • the currently working WSN gateway is monitored. When the working WSN gateway fails, the backup WSN gateway of the failed WSN gateway takes over the fault.
  • the WSN gateway is specifically:
  • the primary WSN gateway periodically monitors the status of the working slave WSN gateway, or periodically reports its own status information from the working WSN gateway to the primary WSN gateway; when the primary WSN gateway determines that the working slave WSN gateway status is abnormal, the notification is An abnormal backup WSN gateway backed up from the WSN gateway takes over the work of the abnormal WSN gateway.
  • setting a backup WSN gateway for the WSN gateway is specifically: setting, in the WSN gateway, each WSN gateway and another at least one WSN gateway as a backup WSN gateway; wherein a backup policy comparison table is set in the communication network,
  • the backup policy comparison table includes at least The identifier of the WSN gateway, the information of the WSN node managed by the WSN gateway, the WSN configuration parameter, and the correspondence between the backup WSN gateways;
  • the currently working WSN gateway is monitored. When the working WSN gateway fails, the backup WSN gateway of the failed WSN gateway takes over the fault.
  • the WSN gateway is specifically:
  • the communication network periodically monitors the status of the currently working WSN gateway, or periodically reports the status information to the communication network by the working WSN gateway; when the communication network determines that the working WSN gateway status is abnormal, the notification is abnormal.
  • the backup WSN gateway backed up by the WSN gateway takes over the work of the abnormal WSN gateway.
  • the method further includes:
  • the primary WSN gateway or the communication network notifies the WSN node managed by the abnormal WSN gateway to report data and receive an instruction through the backup WSN gateway;
  • the backup WSN gateway notifies the WSN node managed by the abnormal WSN gateway to report data and receive an instruction through the backup WSN gateway.
  • the method further includes:
  • the status information of the " ⁇ " on the WSN gateway is abnormal or the WSN gateway does not have the status information in the predetermined time interval to determine the WSN gateway failure.
  • the method further includes:
  • the primary WSN gateway updates the backup policy comparison table, and notifies the new WSN gateway to which the WSN node belongs;
  • the primary WSN gateway updates the backup policy comparison table and notifies the new WSN gateway.
  • the method further includes:
  • the communication network updates the backup policy comparison table, and notifies the new WSN gateway to which the WSN node belongs;
  • the communication network updates the backup policy comparison table and notifies the new WSN gateway to join.
  • the communication network is a telecommunication network platform, specifically a telecommunication network management platform or a service platform.
  • the primary WSN gateway communicates with the slave WSN gateway through a sensing network or through a communication network.
  • a backup system of a wireless sensor network gateway is applied to a network in which a WSN is connected to a communication network through a WSN gateway, and the system includes a setting unit, a monitoring unit, a determining unit, and a relay unit;
  • a setting unit configured to set a backup WSN gateway for the WSN gateway
  • a monitoring unit configured to monitor a currently working WSN gateway
  • a determining unit configured to determine whether the working WSN gateway is faulty, triggering a relay unit when the fault occurs; and a relay unit for replacing the faulty WSN gateway with the backup WSN gateway of the faulty WSN gateway.
  • the setting unit further sets a primary WSN gateway and a secondary WSN gateway in the WSN gateway, where the primary WSN gateway stores at least configuration information from the WSN gateway, and information and WSN configuration of the WSN node managed by the WSN gateway.
  • the primary WSN gateway stores at least configuration information from the WSN gateway, and information and WSN configuration of the WSN node managed by the WSN gateway.
  • the monitoring unit is disposed in the primary WSN gateway, and periodically monitors the status of the slave WSN gateway, or obtains self-status information periodically reported by the slave WSN gateway;
  • the relay unit When the determining unit determines that the working slave WSN gateway is abnormal, the relay unit is triggered to work by the master WSN gateway to replace the abnormal slave WSN gateway.
  • the setting unit further sets a primary WSN gateway and a secondary WSN gateway in the WSN gateway; and, in the secondary WSN gateway, sets each WSN gateway and another at least one WSN gateway as a backup WSN gateway; a backup policy comparison table is set in the primary WSN gateway, where the backup policy comparison table includes at least an identifier from the WSN gateway, Information from the WSN node managed by the WSN gateway, WSN configuration parameters, and the identity of the backup WSN gateway as the secondary WSN gateway;
  • the monitoring unit is disposed in the primary WSN gateway, and further periodically monitors the status of the working slave WSN gateway, or obtains self-status information periodically reported by the working slave WSN gateway; the determining unit further determines the working slave WSN gateway.
  • the successor unit is triggered to take over the work of the abnormal WSN gateway for the abnormal backup WSN gateway backed up from the WSN gateway.
  • the setting unit is further configured to: in the communication network, set each WSN gateway and another at least one WSN gateway as a backup WSN gateway; wherein the communication network is provided with a backup policy comparison table, the backup The policy comparison table includes at least the identifier of the WSN gateway, the information of the WSN node managed by the WSN gateway, the WSN configuration parameter, and the correspondence between the backup WSN gateways;
  • the monitoring unit is disposed in the communication network, and further periodically monitors the status of the currently working WSN gateway, or obtains self-status information periodically reported by the working WSN gateway; and the determining unit further determines that the working WSN gateway status is abnormal, triggering
  • the replacement unit replaces the operation of the abnormal WSN gateway with a backup WSN gateway that is an abnormal WSN gateway backup.
  • the system further comprises:
  • the notification unit is disposed in the primary WSN gateway or the communication network, or is disposed in the backup WSN gateway, and is configured to notify the WSN node managed by the abnormal WSN gateway to report data and receive an instruction through the backup WSN gateway. .
  • the status information of the determining unit on the WSN gateway is abnormal or the WSN gateway does not upload status information within a predetermined time interval to determine that the WSN gateway is faulty.
  • the WSN gateway by setting up a backup WSN gateway for the WSN gateway, the connection robustness between the WSN and the communication network is ensured, that is, even if the WSN gateway fails, the WSN gateway can ensure that each WSN node in the WSN reports data and receives an instruction. .
  • the main WSN gateway is used to implement management between the backup WSN gateways.
  • the WSN gateways can be managed by the service platform or the management platform of the communication network, so that when the current WSN gateway fails, Back up the WSN gateway to take over.
  • the invention ensures the normal and reliable operation of the combined network of the WSN and the communication network.
  • FIG. 1 is a schematic diagram of a network structure in which a telecommunication network and a WSN are combined;
  • FIG. 2 is a flow chart of a backup method of a WSN gateway according to the present invention.
  • FIG. 3 is another flow chart of a backup method of a WSN gateway according to the present invention.
  • FIG. 4 is a schematic structural diagram of a backup system of a wireless sensor network gateway according to the present invention. detailed description
  • the basic idea of the present invention is: By setting up a backup WSN gateway for the WSN gateway, to ensure the robustness of the connection between the WSN and the communication network, that is, even if the WSN gateway fails, the WSN gateway can ensure that each WSN node in the WSN reports data. And receive instructions.
  • the management of the backup WSN gateways is implemented by setting the main WSN gateway.
  • the WSN network can be mutually backed up through the service platform or the management platform of the communication network.
  • FIG. 1 is a schematic diagram of a network structure in which a telecommunication network and a WSN are combined.
  • the telecommunication network includes a management platform and a service platform, and management The platform stores information about the correspondence between the WSN and its location.
  • the wireless sensor network management platform can determine whether the wireless sensor network managed by the wireless sensor network management platform exists in the location. And can identify the wireless sensor network at that location.
  • the above location information may also be other identification information of the wireless sensor network, such as a name and the like.
  • the WSN gateway is responsible for connecting the wireless sensor network and the telecommunication network, mainly performing protocol conversion, address resolution and mapping, and data forwarding functions.
  • the WSN gateway can also integrate security and billing functions.
  • the functions that the WSN gateway can support include: Support for data collaboration and aggregation within the sensor network; Support for one or more of 2G mobile communication, 3G mobile communication, xDSL, FTTx, broadband wireless access, satellite/microwave, etc. , the aggregated data is transmitted to the communication peer; the service platform and the remote management server support the WSN gateway device authentication and user authentication; support the service platform and the remote management server to the WSN gateway parameters and software configuration; support user authentication and service security , equipment management security mechanism.
  • the service platform is a functional entity that operates and manages the services combined with the wireless sensor network in the telecommunication network. It is responsible for integrating the services provided by each service provider and providing them to the end users, and managing the use of the services by the users.
  • the service platform cooperates with other functional entities in the telecommunication network to complete the entire service process according to the needs of different services, such as AAA, Authentication Authorization and Accounting.
  • the business platform may also be connected to a remote server through which network managers can update the business directly.
  • the WSN node is a variety of sensors for performing sensing measurement, such as a temperature sensor, a humidity sensor, etc., which are distributed at various detection positions.
  • the combined network of the communication network and the WSN is connected between the communication network and the WSN through the WSN gateway, and the WSN gateway implements protocol conversion between the communication network and the WSN, thereby implementing communication between the communication network and the WSN. .
  • a communication network generally refers to a telecommunications network.
  • the telecommunication network platform sets a WSN gateway as the primary WSN gateway, and the other is the secondary WSN gateway.
  • the primary WSN gateway sets the backup WSN gateway for each backup from the WSN gateway.
  • the backup WSN gateway backed up for it will take over the original slave WSN gateway.
  • the primary WSN gateway fails, the primary WSN gateway is replaced, and the primary WSN gateway information saved by the management platform 4 bar is imported to the new primary WSN gateway device.
  • the primary WSN gateway and the secondary WSN gateway may not be set, but each WSN gateway is of the same level, and the work of each WSN gateway is coordinated by the telecommunication network platform.
  • the specific way to set up the backup WSN gateway for each WSN gateway includes: (1) being backed up by the master WSN gateway for all slave WSN gateways, or (2) setting the WSN gateway by the master WSN gateway. Back up each other.
  • the telecommunications network platform sets a policy for mutual backup between the WSN gateways.
  • the primary WSN gateway When the primary WSN gateway backs up all the slave WSN gateways, at least the configuration information of each slave WSN gateway and the information of the WSN nodes it manages and the WSN configuration parameters are stored in the master WSN gateway.
  • the primary WSN gateway periodically monitors the status of the slave WSN gateway or periodically reports its status to the primary WSN gateway from the WSN gateway.
  • the master WSN gateway When the status of a slave WSN gateway is abnormal, the master WSN gateway will take over the abnormal slave WSN gateway and notify the WSN node managed by the WSN gateway to report data and receive commands through the master WSN gateway.
  • the primary WSN gateway When the primary WSN gateway sets the backup between the WSN gateways, the primary WSN gateway establishes a backup policy comparison table according to the backup policy.
  • the comparison table includes at least the WSN gateway identifier, the information of the WSN node shared by the WSN gateway, and the WSN configuration parameter. And the identity of the alternate WSN gateway that is backed up for the WSN gateway.
  • the WSN node information stored by it and all the information of the WSN gateway for which it needs to be backed up are saved from the WSN gateway.
  • the main WSN gateway is regularly supervised Measure the status from the WSN gateway, or periodically from the WSN gateway to the main WSN gateway.
  • the master WSN gateway When a slave WSN gateway status is abnormal, the master WSN gateway will notify the standby WSN gateway backed up from the WSN gateway to take over the work of the abnormal slave WSN gateway, and notify the WSN node managed by the WSN gateway to pass the WSN gateway backed up for it. Report data and receive instructions.
  • the telecommunication network platform sets a strategy for mutual backup between the WSN gateways.
  • the telecommunication network platform establishes a backup policy comparison table according to the backup policy.
  • the comparison table includes at least the WSN gateway identifier, the information of the WSN node shared by the WSN gateway, the WSN configuration parameter, and the identifier of the standby WSN gateway that is backed up by the WSN gateway.
  • the telecommunications network platform periodically monitors the status of each WSN gateway, or each WSN gateway periodically reports its status to the telecommunications network platform.
  • the telecommunication network platform When the status of a WSN gateway is abnormal, the telecommunication network platform notifies the backup WSN gateway that is backed up by the WSN gateway to take over the work of the abnormal WSN gateway, and notifies the WSN node managed by the WSN gateway to report data and receive the WSN gateway for its backup. instruction.
  • the primary WSN gateway periodically monitors the status of the slave WSN gateway, or periodically reports its status from the WSN gateway to the primary WSN gateway, when an abnormality is displayed from the WSN gateway status or the primary WSN gateway does not receive the WSN gateway within a predetermined time interval. Feedback, it is considered that an exception may occur from the WSN gateway.
  • the telecommunication network platform periodically monitors the status of the WSN gateway, or the WSN gateway periodically reports its status to the telecommunication network platform.
  • the WSN gateway status is abnormal or the telecommunication network platform does not receive a WSN within a predetermined time interval. The feedback from the gateway suggests that a WSN gateway may be abnormal.
  • the master/slave WSN gateway When the master/slave WSN gateway is set, when a new WSN node joins the network, the master WSN gateway will update the lookup table and notify the changed WSN gateway and WSN node.
  • the telecommunication network management platform sets the new WSN gateway as the slave WSN gateway, and the main WSN gateway will update the original lookup table and notify the changed WSN gateway and the WSN node.
  • a new WSN gateway joins the WSN, it can be The newly added WSN gateway sets the WSN gateways that are mutually backed up, and implements the corresponding backup configuration in the mutually backed up WSN gateways.
  • the backup policy comparison table is updated on the telecommunication network management platform or the main WSN gateway, and the newly added The correspondence between the WSN gateway and its backup gateway is added to the update backup policy comparison table. And monitoring the newly added WSN gateway.
  • the processing manner is similar to the initial configuration of the WSN gateway.
  • the WSN node managed by the abnormal WSN gateway may be notified by the foregoing main WSN gateway or the communication network to report data and receive an instruction through the backup WSN gateway;
  • the WSN gateway directly notified by the backup WSN gateway to the abnormal WSN gateway reports the data and receives the command through the backup WSN gateway.
  • the backup WSN gateway takes over the currently abnormal WSN gateway it sends a notification message to all WSN nodes that are currently connected to the WSN, to notify the WSN node to report data through itself.
  • the communication between the primary WSN gateway and the secondary WSN gateway can be through a sensing network or through a telecommunications network.
  • the required configuration information can be imported from the primary WSN gateway or the WSN gateway it backed up to the new slave WSN gateway device.
  • the telecommunication network platform When the master/slave WSN gateway is not set, when a new WSN node or a new WSN gateway is added to the network, the telecommunication network platform will update the lookup table and notify the changed WSN gateway and WSN node.
  • the required configuration information can be imported from the telecommunication network platform or the WSN gateway it backed up to the new WSN gateway device.
  • the telecommunication network platform may be a management platform that implements device management functions, or a service platform that is responsible for managing the entire business process.
  • the technical solution is implemented by setting a primary WSN gateway and a secondary WSN gateway in the WSN gateway, where the primary WSN gateway acts as a backup gateway for the entire secondary WSN gateway.
  • the main WSN gateway stores configuration information of all the slave WSN gateways and information of each WSN node managed by the WSN gateway.
  • 2 is a flowchart of a method for backing up a WSN gateway according to the present invention.
  • the backup method of the WSN gateway of the present invention is specifically implemented by the following steps: Step 201:
  • the primary WSN gateway saves the configuration of each slave WSN gateway. Information and information about WSN nodes it manages and WSN configuration parameters;
  • Step 202 Monitor a status of the slave WSN gateway.
  • This step may be that the primary WSN gateway periodically monitors the status of the slave WSN gateway, or it may be periodically forwarded from the WSN gateway to the primary WSN gateway.
  • Step 203 Is there an abnormal gateway from the WSN? If not, step 202 is performed to monitor the status of the slave WSN gateway. If there is an abnormal WSN gateway, step 204 is performed; Step 204, the primary WSN gateway takes over the operation of the abnormal WSN gateway, and notifies the WSN node managed by the WSN gateway to report data and receive the command through the primary WSN gateway.
  • the master WSN gateway When the primary WSN gateway sets the backup between the WSN gateways, the master WSN gateway establishes a comparison table, where the comparison table includes at least the WSN gateway identifier, the information of the WSN node shared by the WSN gateway, the WSN configuration parameter, and the WSN gateway. The ID of the backed up WSN gateway.
  • the WSN node is saved from the WSN gateway and all the information of the WSN gateway it needs to back up (including the WSN gateway information and the information of the WSN nodes it manages, WSN configuration parameters, etc.).
  • the primary WSN gateway periodically monitors the status of the slave WSN gateway, or periodically reports its status from the WSN gateway to the primary WSN gateway.
  • the master WSN gateway When the status of a slave WSN gateway is abnormal, the master WSN gateway notifies the WSN gateway that is backed up from the WSN gateway to take over the work of the abnormal slave WSN gateway, and notifies the WSN node managed by the WSN gateway to report the WSN gateway that is backed up by it. Data and receive instructions.
  • FIG. 3 is another flowchart of a method for backing up a WSN gateway according to the present invention. As shown in FIG. 3, the backup method of the WSN gateway of the present invention is specifically implemented by the following steps:
  • Step 301 Establish a backup policy comparison table in the primary WSN gateway.
  • the backup policy comparison table includes at least a WSN gateway identifier, information of the WSN node shared by the WSN gateway, WSN configuration parameters, and an identifier of the WSN gateway backed up by the WSN gateway.
  • Step 302 Save all information about the WSN node that it manages and the WSN gateway that it needs to back up from the WSN gateway (including the WSN gateway information and the information of the WSN node it manages, WSN configuration parameters, etc.).
  • Step 303 Monitor a status of the slave WSN gateway.
  • This step may be that the primary WSN gateway periodically monitors the status of the slave WSN gateway, or it may be periodically forwarded from the WSN gateway to the primary WSN gateway.
  • Step 304 Is there an abnormality from the WSN gateway? If not, return to step 303 to periodically monitor the status of the slave WSN gateway. If there is an abnormal WSN gateway, step 305 is performed; Step 305, the WSN gateway backed up from the WSN gateway is notified to take over the abnormal operation of the slave WSN gateway, and the WSN node managed by the WSN gateway is notified to report data and receive through the backup WSN gateway. instruction.
  • the primary WSN gateway periodically monitors the status of the slave WSN gateway, or periodically reports its status from the WSN gateway to the primary WSN gateway, when an abnormality is displayed from the WSN gateway status or the primary WSN gateway does not receive the WSN from the WSN within a predetermined time interval. Feedback from the gateway determines that an exception may have occurred from the WSN gateway.
  • the primary WSN gateway and the secondary WSN gateway may not be set, but each WSN gateway is of the same level, and the telecommunications network platform sets a policy for mutual backup between the WSN gateways.
  • the telecommunication network platform establishes a backup policy comparison table according to the backup policy.
  • the comparison table includes at least the WSN gateway identifier, the information of the WSN node shared by the WSN gateway, the WSN configuration parameter, and the identifier of the standby WSN gateway that is backed up by the WSN gateway.
  • the telecommunications network platform periodically monitors the status of each WSN gateway, or each WSN gateway periodically reports its status to the telecommunications network platform. When the status of a WSN gateway is abnormal, the telecommunication network platform notifies the standby WSN gateway backed up by the WSN gateway to take over the work of the abnormal WSN gateway, and notifies the WSN node managed by the WSN gateway to pass the data on the WSN gateway backed up for it. And receive instructions.
  • the functions implemented by the above-mentioned main WSN gateway can also be implemented by the telecommunication network platform.
  • the telecommunication network platform periodically monitors the status of the WSN gateway, or the WSN gateway periodically reports its status to the telecommunication network platform.
  • the WSN gateway status is abnormal or the telecommunication network platform does not receive a WSN gateway within a predetermined time interval. Feedback, it is considered that a WSN gateway may be abnormal.
  • FIG. 4 is a schematic structural diagram of a backup system of a wireless sensor network gateway according to the present invention.
  • the wireless sensor network gateway of the present invention is The backup system includes a setting unit 40, a monitoring unit 41, a determining unit 42 and a relay unit 43;
  • the setting unit 40 is configured to set a backup WSN gateway for the WSN gateway
  • the monitoring unit 41 is configured to monitor the currently working WSN gateway
  • the determining unit 42 is configured to determine whether the working WSN gateway is faulty, and trigger the replacing unit 43 when the fault occurs;
  • the successor unit 43 is configured to replace the faulty WSN gateway with a backup WSN gateway of the faulty WSN gateway.
  • the setting unit 40 further includes a primary WSN gateway and a secondary WSN gateway in the WSN gateway, where the primary WSN gateway stores at least configuration information from the WSN gateway, and information of the WSN node managed by the WSN gateway and WSN configuration parameters;
  • the monitoring unit 41 is disposed in the primary WSN gateway, and periodically monitors the status of the slave WSN gateway, or obtains self-status information periodically reported by the slave WSN gateway;
  • the determining unit 42 determines that the working slave WSN gateway is abnormal
  • the above-mentioned determining unit 43 is triggered to operate the slave WSN gateway with the master WSN gateway taking over the abnormality.
  • the setting unit 40 further sets a primary WSN gateway and a secondary WSN gateway in the WSN gateway; and, in the secondary WSN gateway, sets each WSN gateway and another at least one WSN gateway as a backup WSN gateway; wherein A backup policy comparison table is set in the main WSN gateway, and the backup policy comparison table includes at least an identifier from the WSN gateway, information of the WSN node managed by the slave WSN gateway, WSN configuration parameters, and a backup WSN gateway as the slave WSN gateway. Identification
  • the foregoing monitoring unit 41 is disposed in the primary WSN gateway, and further periodically monitors the status of the working slave WSN gateway, or obtains self-status information periodically reported by the working slave WSN gateway; the determining unit 42 further determines the working slave WSN gateway.
  • the above-mentioned successor unit 43 is triggered to take over the abnormal operation of the slave WSN gateway from the backup WSN gateway backed up by the WSN gateway.
  • the setting unit 40 further includes, in the WSN gateway, setting a backup WSN gateway between each WSN gateway and another at least one WSN gateway; wherein a backup policy comparison table is set in the communication network, and the backup policy comparison table is At least the identifier of the WSN gateway, the information of the WSN node managed by the WSN gateway, the WSN configuration parameter, and the correspondence between the backup WSN gateways;
  • the monitoring unit 41 is disposed in the communication network, and further periodically monitors the status of the currently working WSN gateway, or obtains the status information periodically reported by the working WSN gateway;
  • the determining unit 42 further determines that the working WSN gateway status is abnormal, the above-mentioned successor unit 43 is triggered to take over the operation of the abnormal WSN gateway for the abnormal WSN gateway backup.
  • the backup system of the wireless sensor network gateway of the present invention further includes: a notification unit (not shown) disposed on the primary WSN gateway or the communication network, based on the backup system of the wireless sensor network gateway shown in FIG. Or, in the backup WSN gateway, the WSN node managed by the WSN gateway for notifying the abnormality reports data and receives an instruction through the backup WSN gateway.
  • the determining unit 42 determines that the WSN gateway is faulty because the status information of the " ⁇ " is abnormal on the WSN gateway or the WSN gateway does not have the status information within the predetermined time interval.
  • the backup system of the wireless sensor network gateway of the present invention is designed to implement the foregoing backup method of the wireless sensor network gateway of the present invention.
  • the implementation functions of the foregoing processing units and sub-processing units can be referred to the foregoing method. Understand the relevant description.
  • the functions of each of the processing units and the sub-processing units described above may be implemented by a corresponding integrated circuit or by a corresponding computer program on a processor having a program execution function.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Telephonic Communication Services (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

A method for backuping Wireless Sensor Network (WSN) gateways is provided in the present invention. A WSN connects with a communication network through the WSN gateways; backup WSN gateways are set for the WSN gateways. The method includes: supervising the currently working WSN gateways; when the working WSN gateways are faulty, making the backup WSN gateways of the faulty WSN gateways replace the faulty WSN gateways. A system for backuping the WSN gateways is also provided in the present invention. The system is applied to the network in which the WSN connects with the communication network through the WSN gateways, and includes: a setting unit used to set the backup WSN gateways for the WSN gateways, a supervision unit used to supervise the currently working WSN gateways, a determination unit used to determine whether the working WSN gateways are faulty, and trigger a replacement unit when the working WSN gateways are faulty, and the replacement unit used to make the backup WSN gateways of the faulty WSN gateways replace the faulty WSN gateways. The present invention guarantees the normal and reliable operation of the combination network which consists of the WSN and the communication network.

Description

无线传感器网络网关的备份方法及系统 技术领域  Wireless sensor network gateway backup method and system

本发明涉及无线传感器网络 ( WSN, Wireless Sensor Network ) 中的 WSN网关备份技术,尤其涉及一种无线传感器网络网关的备份方法及系统。 背景技术  The present invention relates to a WSN gateway backup technology in a Wireless Sensor Network (WSN), and more particularly to a backup method and system for a wireless sensor network gateway. Background technique

WSN作为计算、 通信和传感器三项技术相结合的产物, 是一种全新的 信息获取和处理技术。 WSN和电信网结合,如与第二代( 2G, 2nd Generation ) 移动通信、第三代( 3G, 3rd Generation )移动通信、 xDSL( x Digital Subscriber Line )、 FTTx ( Fiber To The x, x 为 home、 building、 node、 premises )、 覔 带无线接入、卫星 /微波等结合, 可以使无线传感网络作为现有网络的延伸, 从而扩展通信网络的能力, 使通信对象从人扩展到物理世界, 具有良好的 发展前景。 WSN与现有的电信网络结合后, 可以使 WSN感知的数据有效 地传递到数据中心, 通过对数据的整理和分析, 可以极大程度的改变人类 获取自然世界的数据的方式, 同时也能够对 WSN节点进行集中的管理, 解 决目前分散在各处的 WSN节点难以管理的问题。无线传感网络和电信网的 结合, 一般是无线传感网络通过 WSN网关连接至电信网平台。  As a combination of computing, communication and sensor technologies, WSN is a new information acquisition and processing technology. WSN and telecom network combination, such as second generation (2G, 2nd Generation) mobile communication, third generation (3G, 3rd Generation) mobile communication, xDSL (x Digital Subscriber Line), FTTx (Fiber To The x, x is home , building, node, premises), wireless access, satellite/microwave, etc., can make the wireless sensor network as an extension of the existing network, thereby expanding the ability of the communication network to extend the communication object from person to physical world. Has a good development prospects. When WSN is combined with the existing telecommunication network, the WSN-aware data can be effectively transmitted to the data center. By sorting and analyzing the data, the way in which humans can obtain the data of the natural world can be greatly changed. The WSN node performs centralized management to solve the problem that the WSN nodes currently dispersed everywhere are difficult to manage. The combination of a wireless sensor network and a telecommunications network is generally a wireless sensor network connected to a telecommunications network platform through a WSN gateway.

电信网平台包括管理平台和业务平台等功能实体。 管理平台负责实施 设备管理功能; 业务平台负责整合各个服务提供商提供的业务, 并将其提 供给终端用户, 同时对用户使用业务的情况进行管理, 负责完成整个业务 流程。  The telecommunication network platform includes functional entities such as a management platform and a service platform. The management platform is responsible for implementing the device management function; the business platform is responsible for integrating the services provided by each service provider and providing it to the end users, and managing the use of the business by the user, and is responsible for completing the entire business process.

WSN网关作为连接无线传感器网络与电信网的设备, 主要完成无线传 感器网络配置与组网、 协议转换、 地址映射和数据转发等功能。  As a device connecting the wireless sensor network and the telecommunication network, the WSN gateway mainly performs functions such as wireless sensor network configuration and networking, protocol conversion, address mapping, and data forwarding.

WSN节点通过 WSN网关设备连接至电信网平台。 WSN节点设备为构 成无线传感器网络的传感器节点, 通过一跳或多跳与 WSN网关连接。 终端 设备负责釆集并上传数据, 以及接收并执行命令。 组成 WSN的设备少则几 个多则几百个,设备间可根据需要以星形、树形或网状(MESH )方式组网, 其中某些设备或具有较强的组网和数据转发能力。 WSN节点位于延伸网的 最末端。 The WSN node is connected to the telecommunication network platform through the WSN gateway device. WSN node device The sensor node of the wireless sensor network is connected to the WSN gateway by one or more hops. The terminal device is responsible for collecting and uploading data, as well as receiving and executing commands. The number of devices that make up a WSN is as few as a few hundreds, and devices can be networked in a star, tree, or mesh (MESH) mode, some of which have strong networking and data forwarding capabilities. . The WSN node is located at the very end of the extended network.

由于 WSN节点往往数量众多, 一个 WSN网络中往往具有多个 WSN 网关, 为了保证数据传输的可靠性和结合网络的正常运行, 需要能对 WSN 网关进行备份或者需要这些 WSN 网关具有相互备份的功能。 在现有技术 中, WSN网关中的信息可以保存在管理平台中, 当 WSN网关出现故障, 进行更换新设备时,可以方便地把管理平台中的信息导入到新的 WSN网关 设备中。 不过, 在多 WSN网关的情况下, 如果多个 WSN网关的信息全都 保存在管理平台中, 必定增加管理平台的负担。 同时, 当某一 WSN网关出 现故障时, 为了不中止系统的运行, 希望可以暂时不更换 WSN网关, 而由 其他 WSN网关暂时接替故障 WSN网关进行工作, 这样可以保证系统的正 常运行, 增强可靠性。  Due to the large number of WSN nodes, a WSN network often has multiple WSN gateways. In order to ensure the reliability of data transmission and the normal operation of the network, it is necessary to backup the WSN gateways or to have the functions of mutual backup of these WSN gateways. In the prior art, the information in the WSN gateway can be saved in the management platform. When the WSN gateway fails and the new device is replaced, the information in the management platform can be conveniently imported into the new WSN gateway device. However, in the case of multiple WSN gateways, if the information of multiple WSN gateways is all stored in the management platform, the burden on the management platform must be increased. At the same time, when a WSN gateway fails, in order not to stop the operation of the system, it is hoped that the WSN gateway will not be replaced temporarily, and other WSN gateways temporarily take over the faulty WSN gateway to work, thus ensuring normal operation of the system and enhancing reliability. .

但由于 WSN与电信网的结合技术尚处于研究阶段, 目前还没有涉及到 WSN网关之间动态备份的技术出现。 发明内容  However, because the combination technology of WSN and telecommunication network is still in the research stage, there is no technology related to dynamic backup between WSN gateways. Summary of the invention

有鉴于此, 本发明的主要目的在于提供一种无线传感器网络网关的备 份方法及系统, 通过设置备份 WSN网关实现对 WSN网关进行备份, 保证 了通信网络与 WSN之间的连接强健性。  In view of this, the main purpose of the present invention is to provide a backup method and system for a wireless sensor network gateway, which implements backup of the WSN gateway by setting a backup WSN gateway, thereby ensuring the robustness of the connection between the communication network and the WSN.

为达到上述目的, 本发明的技术方案是这样实现的:  In order to achieve the above object, the technical solution of the present invention is achieved as follows:

一种无线传感器网络网关的备份方法, WSN通过 WSN网关与通信网 络连接; 为 WSN网关设置备份 WSN网关; 所述方法还包括:  A method for backing up a wireless sensor network gateway, the WSN is connected to the communication network through the WSN gateway; and the backup WSN gateway is set for the WSN gateway; the method further includes:

对当前工作的 WSN网关进行监测, 在工作的 WSN网关故障时, 以故 障 WSN网关的备份 WSN网关接替所述故障 WSN网关。 Monitor the currently working WSN gateway, when the working WSN gateway fails, The backup WSN gateway of the barrier WSN gateway takes over the failed WSN gateway.

优选地, 为 WSN网关设置备份 WSN网关具体为: 设置主 WSN网关 和从 WSN网关, 所述主 WSN网关至少存储有从 WSN网关的配置信息, 以及从 WSN网关所管理的 WSN节点的信息及 WSN配置参数;  Preferably, setting the backup WSN gateway for the WSN gateway is specifically: setting a primary WSN gateway and a secondary WSN gateway, the primary WSN gateway storing at least configuration information from the WSN gateway, and information and WSN of the WSN node managed by the WSN gateway Configuration parameter

对当前工作的 WSN网关进行监测, 在工作的 WSN网关故障时, 以故 障 WSN网关的备份 WSN网关接替所述故障 WSN网关具体为:  The currently working WSN gateway is monitored. When the working WSN gateway fails, the backup WSN gateway of the failed WSN gateway takes over the fault. The WSN gateway is specifically:

所述主 WSN网关定期监测从 WSN网关的状态, 或者由从 WSN网关 定期向所述主 WSN网关上 "^自身状态信息;  The primary WSN gateway periodically monitors the status of the slave WSN gateway, or periodically reports the status information from the WSN gateway to the primary WSN gateway;

所述主 WSN网关确定工作的从 WSN网关状态异常时, 所述主 WSN 网关接替异常的从 WSN网关工作。  When the primary WSN gateway determines that the working slave WSN gateway status is abnormal, the primary WSN gateway takes over the abnormal slave WSN gateway operation.

优选地, 为 WSN网关设置备份 WSN网关具体为: 设置主 WSN网关 和从 WSN网关; 在从 WSN网关中, 设置每一 WSN网关与另外的至少一 个 WSN网关之间互为备份 WSN网关; 其中, 所述主 WSN网关中设置有 备份策略对照表, 所述备份策略对照表至少包含从 WSN网关的标识、 该从 WSN网关所管理的 WSN节点的信息、 WSN配置参数以及作为该从 WSN 网关的备份 WSN网关的标识;  Preferably, setting the backup WSN gateway for the WSN gateway is specifically: setting the primary WSN gateway and the secondary WSN gateway; in the secondary WSN gateway, setting each WSN gateway and the other at least one WSN gateway to each other as a backup WSN gateway; A backup policy comparison table is set in the primary WSN gateway, and the backup policy comparison table includes at least an identifier from the WSN gateway, information of the WSN node managed by the slave WSN gateway, WSN configuration parameters, and a backup as the slave WSN gateway. The identity of the WSN gateway;

对当前工作的 WSN网关进行监测, 在工作的 WSN网关故障时, 以故 障 WSN网关的备份 WSN网关接替所述故障 WSN网关具体为:  The currently working WSN gateway is monitored. When the working WSN gateway fails, the backup WSN gateway of the failed WSN gateway takes over the fault. The WSN gateway is specifically:

所述主 WSN网关定期监测工作的从 WSN网关的状态, 或者由工作的 从 WSN网关定期向主 WSN网关上报自身的状态信息; 所述主 WSN网关 确定工作的从 WSN网关状态异常时, 通知为异常的从 WSN网关备份的备 份 WSN网关接替异常的从 WSN网关的工作。  The primary WSN gateway periodically monitors the status of the working slave WSN gateway, or periodically reports its own status information from the working WSN gateway to the primary WSN gateway; when the primary WSN gateway determines that the working slave WSN gateway status is abnormal, the notification is An abnormal backup WSN gateway backed up from the WSN gateway takes over the work of the abnormal WSN gateway.

优选地, 为 WSN网关设置备份 WSN网关具体为: 在 WSN网关中, 设置每一 WSN网关与另外的至少一个 WSN网关之间互为备份 WSN网关; 其中, 通信网络中设置有备份策略对照表, 所述备份策略对照表至少包含 WSN网关的标识、 WSN网关所管理的 WSN节点的信息、 WSN配置参数 以及互为备份 WSN网关之间的对应关系; Preferably, setting a backup WSN gateway for the WSN gateway is specifically: setting, in the WSN gateway, each WSN gateway and another at least one WSN gateway as a backup WSN gateway; wherein a backup policy comparison table is set in the communication network, The backup policy comparison table includes at least The identifier of the WSN gateway, the information of the WSN node managed by the WSN gateway, the WSN configuration parameter, and the correspondence between the backup WSN gateways;

对当前工作的 WSN网关进行监测, 在工作的 WSN网关故障时, 以故 障 WSN网关的备份 WSN网关接替所述故障 WSN网关具体为:  The currently working WSN gateway is monitored. When the working WSN gateway fails, the backup WSN gateway of the failed WSN gateway takes over the fault. The WSN gateway is specifically:

所述通信网络定期监测当前工作的 WSN 网关的状态, 或者由工作的 WSN网关定期向所述通信网络上 自身的状态信息; 所述通信网络确定工 作的 WSN网关状态异常时, 通知为异常的从 WSN网关备份的备份 WSN 网关接替异常的从 WSN网关的工作。  The communication network periodically monitors the status of the currently working WSN gateway, or periodically reports the status information to the communication network by the working WSN gateway; when the communication network determines that the working WSN gateway status is abnormal, the notification is abnormal. The backup WSN gateway backed up by the WSN gateway takes over the work of the abnormal WSN gateway.

优选地, 所述备份 WSN网关接替异常的 WSN网关之后, 所述方法还 包括:  Preferably, after the backup WSN gateway takes over the abnormal WSN gateway, the method further includes:

所述主 WSN网关或所述通信网络通知异常的 WSN网关所管理的 WSN 节点通过所述备份 WSN网关上报数据及接收指令;  The primary WSN gateway or the communication network notifies the WSN node managed by the abnormal WSN gateway to report data and receive an instruction through the backup WSN gateway;

或者, 由所述备份 WSN网关通知异常的 WSN网关所管理的 WSN节 点通过所述备份 WSN网关上报数据及接收指令。  Alternatively, the backup WSN gateway notifies the WSN node managed by the abnormal WSN gateway to report data and receive an instruction through the backup WSN gateway.

优选地, 所述方法还包括:  Preferably, the method further includes:

WSN网关上 "^的状态信息显示异常或 WSN网关在预定的时间间隔内 未上 ^艮状态信息, 确定 WSN网关故障。  The status information of the "^" on the WSN gateway is abnormal or the WSN gateway does not have the status information in the predetermined time interval to determine the WSN gateway failure.

优选地, 所述方法还包括:  Preferably, the method further includes:

在有新 WSN节点加入 WSN时, 所述主 WSN网关更新备份策略对照 表, 并通知新加入 WSN节点所属的 WSN网关;  When a new WSN node joins the WSN, the primary WSN gateway updates the backup policy comparison table, and notifies the new WSN gateway to which the WSN node belongs;

在有新 WSN网关加入 WSN时, 所述主 WSN网关更新备份策略对照 表, 并通知新加入 WSN网关。  When a new WSN gateway joins the WSN, the primary WSN gateway updates the backup policy comparison table and notifies the new WSN gateway.

优选地, 所述方法还包括:  Preferably, the method further includes:

在有新 WSN节点加入 WSN时, 所述通信网络更新备份策略对照表, 并通知新加入 WSN节点所属的 WSN网关; 在有新 WSN网关加入 WSN时 , 所述通信网络更新备份策略对照表, 并通知新加入 WSN网关。 When a new WSN node joins the WSN, the communication network updates the backup policy comparison table, and notifies the new WSN gateway to which the WSN node belongs; When a new WSN gateway joins the WSN, the communication network updates the backup policy comparison table and notifies the new WSN gateway to join.

优选地, 所述通信网络为电信网平台, 具体为电信网管理平台或业务 平台。  Preferably, the communication network is a telecommunication network platform, specifically a telecommunication network management platform or a service platform.

优选地, 所述主 WSN网关和从 WSN网关之间的通过传感网络通信, 或通过通信网络通信。  Preferably, the primary WSN gateway communicates with the slave WSN gateway through a sensing network or through a communication network.

一种无线传感器网络网关的备份系统, 应用于 WSN通过 WSN网关与 通信网络连接的网络中, 所述系统包括设置单元、 监测单元、 确定单元和 接替单元; 其中,  A backup system of a wireless sensor network gateway is applied to a network in which a WSN is connected to a communication network through a WSN gateway, and the system includes a setting unit, a monitoring unit, a determining unit, and a relay unit;

设置单元, 用于为 WSN网关设置备份 WSN网关;  a setting unit, configured to set a backup WSN gateway for the WSN gateway;

监测单元, 用于对当前工作的 WSN网关进行监测;  a monitoring unit, configured to monitor a currently working WSN gateway;

确定单元,用于确定工作的 WSN网关是否故障,故障时触发接替单元; 接替单元,用于以故障 WSN网关的备份 WSN网关接替所述故障 WSN 网关。  a determining unit, configured to determine whether the working WSN gateway is faulty, triggering a relay unit when the fault occurs; and a relay unit for replacing the faulty WSN gateway with the backup WSN gateway of the faulty WSN gateway.

优选地, 所述设置单元进一步在 WSN 网关中设置主 WSN 网关和从 WSN网关, 所述主 WSN网关至少存储有从 WSN网关的配置信息, 以及 从 WSN网关所管理的 WSN节点的信息及 WSN配置参数;  Preferably, the setting unit further sets a primary WSN gateway and a secondary WSN gateway in the WSN gateway, where the primary WSN gateway stores at least configuration information from the WSN gateway, and information and WSN configuration of the WSN node managed by the WSN gateway. Parameter

所述监测单元设置于所述主 WSN网关中, 定期监测从 WSN网关的状 态, 或者, 获取由从 WSN网关定期上报的自身状态信息;  The monitoring unit is disposed in the primary WSN gateway, and periodically monitors the status of the slave WSN gateway, or obtains self-status information periodically reported by the slave WSN gateway;

所述确定单元确定工作的从 WSN网关状态异常时,触发所述接替单元 以所述主 WSN网关接替异常的从 WSN网关工作。  When the determining unit determines that the working slave WSN gateway is abnormal, the relay unit is triggered to work by the master WSN gateway to replace the abnormal slave WSN gateway.

优选地, 所述设置单元进一步在 WSN 网关中设置主 WSN 网关和从 WSN网关; 以及, 在从 WSN网关中, 设置每一 WSN网关与另外的至少 一个 WSN网关之间互为备份 WSN网关; 其中, 所述主 WSN网关中设置 有备份策略对照表, 所述备份策略对照表至少包含从 WSN网关的标识、 该 从 WSN网关所管理的 WSN节点的信息、 WSN配置参数以及作为该从 WSN 网关的备份 WSN网关的标识; Preferably, the setting unit further sets a primary WSN gateway and a secondary WSN gateway in the WSN gateway; and, in the secondary WSN gateway, sets each WSN gateway and another at least one WSN gateway as a backup WSN gateway; a backup policy comparison table is set in the primary WSN gateway, where the backup policy comparison table includes at least an identifier from the WSN gateway, Information from the WSN node managed by the WSN gateway, WSN configuration parameters, and the identity of the backup WSN gateway as the secondary WSN gateway;

所述监测单元设置于所述主 WSN 网关中, 进一步定期监测工作的从 WSN网关的状态, 或者获取由工作的从 WSN网关定期上报的自身状态信 息; 所述确定单元进一步确定工作的从 WSN网关状态异常时, 触发所述接 替单元以为异常的从 WSN网关备份的备份 WSN网关接替异常的从 WSN 网关的工作。  The monitoring unit is disposed in the primary WSN gateway, and further periodically monitors the status of the working slave WSN gateway, or obtains self-status information periodically reported by the working slave WSN gateway; the determining unit further determines the working slave WSN gateway. When the status is abnormal, the successor unit is triggered to take over the work of the abnormal WSN gateway for the abnormal backup WSN gateway backed up from the WSN gateway.

优选地, 所述设置单元进一步地, 在通信网络中, 设置每一 WSN网关 与另外的至少一个 WSN网关之间互为备份 WSN网关; 其中, 通信网络中 设置有备份策略对照表, 所述备份策略对照表至少包含 WSN网关的标识、 WSN网关所管理的 WSN节点的信息、 WSN配置参数以及互为备份 WSN 网关之间的对应关系;  Preferably, the setting unit is further configured to: in the communication network, set each WSN gateway and another at least one WSN gateway as a backup WSN gateway; wherein the communication network is provided with a backup policy comparison table, the backup The policy comparison table includes at least the identifier of the WSN gateway, the information of the WSN node managed by the WSN gateway, the WSN configuration parameter, and the correspondence between the backup WSN gateways;

所述监测单元设置于通信网络中,进一步定期监测当前工作的 WSN网 关的状态, 或者获取由工作的 WSN网关定期上报的自身状态信息; 所述确 定单元进一步确定工作的 WSN网关状态异常时,触发所述接替单元以为异 常的 WSN网关备份的备份 WSN网关接替异常的 WSN网关的工作。  The monitoring unit is disposed in the communication network, and further periodically monitors the status of the currently working WSN gateway, or obtains self-status information periodically reported by the working WSN gateway; and the determining unit further determines that the working WSN gateway status is abnormal, triggering The replacement unit replaces the operation of the abnormal WSN gateway with a backup WSN gateway that is an abnormal WSN gateway backup.

优选地, 所述系统还包括:  Preferably, the system further comprises:

通知单元,设置于所述主 WSN网关或所述通信网络中, 或设置于所述 备份 WSN网关中, 用于通知异常的 WSN网关所管理的 WSN节点通过所 述备份 WSN网关上报数据及接收指令。  The notification unit is disposed in the primary WSN gateway or the communication network, or is disposed in the backup WSN gateway, and is configured to notify the WSN node managed by the abnormal WSN gateway to report data and receive an instruction through the backup WSN gateway. .

优选地, 所述确定单元在 WSN网关上 ^的状态信息显示异常或 WSN 网关在预定的时间间隔内未上 4艮状态信息, 确定 WSN网关故障。  Preferably, the status information of the determining unit on the WSN gateway is abnormal or the WSN gateway does not upload status information within a predetermined time interval to determine that the WSN gateway is faulty.

本发明中, 通过为 WSN网关设置备份 WSN网关, 以保证 WSN与通 信网络之间的连接强健性, 即, 即使 WSN网关故障, 也能通过备份 WSN 网关保证 WSN中各 WSN节点上报数据及接收指令。 本发明中, 通过设置 主 WSN网关来实现对互为备份 WSN网关之间的管理, 当然, 也可以通过 通信网络的业务平台或管理平台实现对互为备份 WSN网关进行管理,实现 在当前工作的 WSN网关故障时, 以备份 WSN网关进行接替。 本发明保证 了 WSN与通信网络的结合网络的正常、 可靠的运行。 附图说明 In the present invention, by setting up a backup WSN gateway for the WSN gateway, the connection robustness between the WSN and the communication network is ensured, that is, even if the WSN gateway fails, the WSN gateway can ensure that each WSN node in the WSN reports data and receives an instruction. . In the present invention, by setting The main WSN gateway is used to implement management between the backup WSN gateways. Of course, the WSN gateways can be managed by the service platform or the management platform of the communication network, so that when the current WSN gateway fails, Back up the WSN gateway to take over. The invention ensures the normal and reliable operation of the combined network of the WSN and the communication network. DRAWINGS

图 1为电信网络与 WSN结合的网络结构示意图;  1 is a schematic diagram of a network structure in which a telecommunication network and a WSN are combined;

图 2为本发明 WSN网关的备份方法的一种流程图;  2 is a flow chart of a backup method of a WSN gateway according to the present invention;

图 3为本发明 WSN网关的备份方法的另一种流程图;  3 is another flow chart of a backup method of a WSN gateway according to the present invention;

图 4为本发明无线传感器网络网关的备份系统的组成结构示意图。 具体实施方式  FIG. 4 is a schematic structural diagram of a backup system of a wireless sensor network gateway according to the present invention. detailed description

本发明的基本思想为: 通过为 WSN网关设置备份 WSN网关, 以保证 WSN与通信网络之间的连接强健性, 即, 即使 WSN网关故障, 也能通过 备份 WSN网关保证 WSN中各 WSN节点上报数据及接收指令。本发明中, 通过设置主 WSN网关来实现对互为备份 WSN网关之间的管理, 当然, 也 可以通过通信网络的业务平台或管理平台实现对互为备份 WSN网。  The basic idea of the present invention is: By setting up a backup WSN gateway for the WSN gateway, to ensure the robustness of the connection between the WSN and the communication network, that is, even if the WSN gateway fails, the WSN gateway can ensure that each WSN node in the WSN reports data. And receive instructions. In the present invention, the management of the backup WSN gateways is implemented by setting the main WSN gateway. Of course, the WSN network can be mutually backed up through the service platform or the management platform of the communication network.

为使本发明的目的、 技术方案和优点更加清楚明白, 以下举实施例并 参照附图, 对本发明进一步详细说明。  The present invention will be further described in detail below with reference to the accompanying drawings.

本发明的应用场景为图 1所示的通信网络与 WSN结合的网络中, 图 1 为电信网络与 WSN结合的网络结构示意图, 如图 1所示, 电信网络中包括 管理平台及业务平台,管理平台中保存 WSN及其所在的位置的对应关系的 信息, 在给定一个无线传感器网络的位置信息时, 无线传感器网络管理平 台可以确定该位置是否存在该无线传感器网络管理平台所管理的无线传感 器网络, 并且能识别出该位置处的无线传感器网络。 上述的位置信息也可 以是无线传感器网络的其他标识信息, 如名称等信息。 WSN网关负责连接无线传感器网络和电信网络, 主要完成协议转换、 地址解析及映射, 以及数据转发等功能, WSN网关也可以集成安全和计费 等功能。 WSN网关可以支持的功能可以包括: 支持传感器网络内部数据协 同和汇聚; 支持以 2G移动通信、 3G移动通信、 xDSL、 FTTx、 宽带无线加 入、 卫星 /微波等远距离通信加入方式的一种或多种, 将汇聚的数据传输到 通信对端;支持业务平台和远程管理服务器对 WSN网关设备认证和用户认 证; 支持业务平台和远程管理服务器对 WSN网关的参数和软件配置; 支持 用户认证和业务安全、 设备管理安全机制。 The application scenario of the present invention is a network in which the communication network shown in FIG. 1 is combined with a WSN. FIG. 1 is a schematic diagram of a network structure in which a telecommunication network and a WSN are combined. As shown in FIG. 1, the telecommunication network includes a management platform and a service platform, and management The platform stores information about the correspondence between the WSN and its location. When given the location information of the wireless sensor network, the wireless sensor network management platform can determine whether the wireless sensor network managed by the wireless sensor network management platform exists in the location. And can identify the wireless sensor network at that location. The above location information may also be other identification information of the wireless sensor network, such as a name and the like. The WSN gateway is responsible for connecting the wireless sensor network and the telecommunication network, mainly performing protocol conversion, address resolution and mapping, and data forwarding functions. The WSN gateway can also integrate security and billing functions. The functions that the WSN gateway can support include: Support for data collaboration and aggregation within the sensor network; Support for one or more of 2G mobile communication, 3G mobile communication, xDSL, FTTx, broadband wireless access, satellite/microwave, etc. , the aggregated data is transmitted to the communication peer; the service platform and the remote management server support the WSN gateway device authentication and user authentication; support the service platform and the remote management server to the WSN gateway parameters and software configuration; support user authentication and service security , equipment management security mechanism.

业务平台是电信网络中运行和管理与无线传感器网络相结合的业务的 功能实体, 负责整合各个服务提供商提供的业务, 并将其提供给终端用户, 同时对用户使用业务的情况进行管理。 业务平台会根据不同业务的需要, 协同电信网络中其他功能实体完成整个业务流程, 例如认证授权计费 ( AAA, Authentication Authorization and Accounting )月良务器。 业务平台还 可能与远程服务器连接, 网络管理人员通过该远程服务器, 能直接对业务 进行更新。  The service platform is a functional entity that operates and manages the services combined with the wireless sensor network in the telecommunication network. It is responsible for integrating the services provided by each service provider and providing them to the end users, and managing the use of the services by the users. The service platform cooperates with other functional entities in the telecommunication network to complete the entire service process according to the needs of different services, such as AAA, Authentication Authorization and Accounting. The business platform may also be connected to a remote server through which network managers can update the business directly.

本发明中, WSN节点即为用于实现传感测量的各种传感器, 如温度传 感器、 湿度传感器等, 其分布于各种带检测的位置。  In the present invention, the WSN node is a variety of sensors for performing sensing measurement, such as a temperature sensor, a humidity sensor, etc., which are distributed at various detection positions.

需要说明的是,通信网络与 WSN结合的结合网络,在通信网络与 WSN 之间通过 WSN网关连接, WSN网关实现通信网络与 WSN之间的协议转 换等, 从而实现通信网络与 WSN之间的通信。  It should be noted that the combined network of the communication network and the WSN is connected between the communication network and the WSN through the WSN gateway, and the WSN gateway implements protocol conversion between the communication network and the WSN, thereby implementing communication between the communication network and the WSN. .

由于 WSN网关是实现 WSN与通信网络连接的唯一节点, 因此, 为当 前工作的 WSN网关设置备份 WSN网关是十分必要的, 以便在 WSN网关 故障时,能利用备份 WSN网关及时接替当前工作的 WSN网关,保证 WSN 中各 WSN节点依然能向通信网络上报数据,以及接收通信网络下发的各种 指令等。 本发明中, 通信网络一般指的是电信网。 电信网平台在配置 WSN网关 时, 设定某 WSN网关为主 WSN网关, 其他的为从 WSN网关, 主 WSN 网关为每个从 WSN网关设定为它备份的备用 WSN网关。 当某个从 WSN 网关不能正常工作时, 为它备份的备用 WSN网关将接替原从 WSN网关进 行工作。 当主 WSN网关出现故障时, 进行主 WSN网关的更换, 管理平台 4巴保存的主 WSN网关信息导入到新的主 WSN网关设备。 当然,在多 WSN 网关的情况下, 可以不设定主 WSN网关和从 WSN网关, 而是, 各 WSN 网关同等级, 由电信网平台协调各 WSN网关的工作。 Since the WSN gateway is the only node that implements the connection between the WSN and the communication network, it is necessary to set up a backup WSN gateway for the currently working WSN gateway, so that when the WSN gateway fails, the backup WSN gateway can be used to take over the currently working WSN gateway. To ensure that each WSN node in the WSN can still report data to the communication network, and receive various commands sent by the communication network. In the present invention, a communication network generally refers to a telecommunications network. When configuring the WSN gateway, the telecommunication network platform sets a WSN gateway as the primary WSN gateway, and the other is the secondary WSN gateway. The primary WSN gateway sets the backup WSN gateway for each backup from the WSN gateway. When a slave WSN gateway is not working properly, the backup WSN gateway backed up for it will take over the original slave WSN gateway. When the primary WSN gateway fails, the primary WSN gateway is replaced, and the primary WSN gateway information saved by the management platform 4 bar is imported to the new primary WSN gateway device. Of course, in the case of multiple WSN gateways, the primary WSN gateway and the secondary WSN gateway may not be set, but each WSN gateway is of the same level, and the work of each WSN gateway is coordinated by the telecommunication network platform.

当设定主 /从 WSN网关时, 为每个 WSN网关设定备份 WSN网关的具 体方式包括, (1 ) 由主 WSN网关为所有从 WSN网关备份, 或者(2 )主 WSN网关设定 WSN网关之间相互备份。  When setting the master/slave WSN gateway, the specific way to set up the backup WSN gateway for each WSN gateway includes: (1) being backed up by the master WSN gateway for all slave WSN gateways, or (2) setting the WSN gateway by the master WSN gateway. Back up each other.

当不设定主 /从 WSN网关时,由电信网平台设定 WSN网关之间相互备 份的策略。  When the master/slave WSN gateway is not set, the telecommunications network platform sets a policy for mutual backup between the WSN gateways.

当由主 WSN网关为所有从 WSN网关备份时, 主 WSN网关中至少保 存每个从 WSN网关的配置信息以及它所管理的 WSN节点的信息及 WSN 配置参数。 主 WSN网关定期监测从 WSN网关的状态, 或者由从 WSN网 关定期向主 WSN 网关上报它的状态。 当某从 WSN 网关状态异常时, 主 WSN网关将接替异常的从 WSN网关工作, 并通知该从 WSN网关管理的 WSN节点通过主 WSN网关上报数据及接收指令。  When the primary WSN gateway backs up all the slave WSN gateways, at least the configuration information of each slave WSN gateway and the information of the WSN nodes it manages and the WSN configuration parameters are stored in the master WSN gateway. The primary WSN gateway periodically monitors the status of the slave WSN gateway or periodically reports its status to the primary WSN gateway from the WSN gateway. When the status of a slave WSN gateway is abnormal, the master WSN gateway will take over the abnormal slave WSN gateway and notify the WSN node managed by the WSN gateway to report data and receive commands through the master WSN gateway.

当主 WSN网关设定 WSN网关之间相互备份时, 主 WSN网关中根据 备份策略建立一个备份策略对照表, 该对照表至少包含 WSN网关标识、 该 WSN网关分担管理的 WSN节点的信息、 WSN配置参数以及为该 WSN网 关备份的备用 WSN网关的标识。 从 WSN网关中保存它所管理的 WSN节 点信息以及它需要为之备份的 WSN网关的所有信息(包括 WSN网关信息 及其所管理的 WSN节点的信息、 WSN配置参数等)。 主 WSN网关定期监 测从 WSN网关的状态, 或者由从 WSN网关定期向主 WSN网关上 4艮它的 状态。 当某从 WSN网关状态异常时, 主 WSN网关将通知为该从 WSN网 关备份的备用 WSN网关接替异常的从 WSN网关的工作,并通知该从 WSN 网关管理的 WSN节点通过为它备份的 WSN网关上报数据及接收指令。 When the primary WSN gateway sets the backup between the WSN gateways, the primary WSN gateway establishes a backup policy comparison table according to the backup policy. The comparison table includes at least the WSN gateway identifier, the information of the WSN node shared by the WSN gateway, and the WSN configuration parameter. And the identity of the alternate WSN gateway that is backed up for the WSN gateway. The WSN node information stored by it and all the information of the WSN gateway for which it needs to be backed up (including WSN gateway information and information of WSN nodes managed by it, WSN configuration parameters, etc.) are saved from the WSN gateway. The main WSN gateway is regularly supervised Measure the status from the WSN gateway, or periodically from the WSN gateway to the main WSN gateway. When a slave WSN gateway status is abnormal, the master WSN gateway will notify the standby WSN gateway backed up from the WSN gateway to take over the work of the abnormal slave WSN gateway, and notify the WSN node managed by the WSN gateway to pass the WSN gateway backed up for it. Report data and receive instructions.

当不设定主 /从 WSN网关时,电信网平台设定 WSN网关之间相互备份 的策略。 电信网平台根据备份策略建立一个备份策略对照表, 该对照表至 少包含 WSN网关标识、 该 WSN网关分担管理的 WSN节点的信息、 WSN 配置参数以及为该 WSN网关备份的备用 WSN网关的标识。 电信网平台定 期监测每个 WSN网关的状态, 或者由每个 WSN网关定期向电信网平台上 它的状态。 当某 WSN网关状态异常时, 电信网平台将通知为该 WSN网 关备份的备用 WSN网关接替异常的 WSN网关的工作, 并通知该 WSN网 关管理的 WSN节点通过为它备份的 WSN网关上报数据及接收指令。  When the master/slave WSN gateway is not set, the telecommunication network platform sets a strategy for mutual backup between the WSN gateways. The telecommunication network platform establishes a backup policy comparison table according to the backup policy. The comparison table includes at least the WSN gateway identifier, the information of the WSN node shared by the WSN gateway, the WSN configuration parameter, and the identifier of the standby WSN gateway that is backed up by the WSN gateway. The telecommunications network platform periodically monitors the status of each WSN gateway, or each WSN gateway periodically reports its status to the telecommunications network platform. When the status of a WSN gateway is abnormal, the telecommunication network platform notifies the backup WSN gateway that is backed up by the WSN gateway to take over the work of the abnormal WSN gateway, and notifies the WSN node managed by the WSN gateway to report data and receive the WSN gateway for its backup. instruction.

主 WSN网关定期监测从 WSN网关的状态, 或者由从 WSN网关定期 向主 WSN网关上报它的状态, 当从 WSN网关状态显示异常或者主 WSN 网关在预定的时间间隔内未收到从 WSN网关的反馈, 则认为从 WSN网关 可能出现异常。  The primary WSN gateway periodically monitors the status of the slave WSN gateway, or periodically reports its status from the WSN gateway to the primary WSN gateway, when an abnormality is displayed from the WSN gateway status or the primary WSN gateway does not receive the WSN gateway within a predetermined time interval. Feedback, it is considered that an exception may occur from the WSN gateway.

或者, 由所述电信网平台定期监测 WSN网关的状态, 或者由 WSN网 关定期向电信网平台上报它的状态,当 WSN网关状态显示异常或者电信网 平台在预定的时间间隔内未收到某 WSN网关的反馈, 则认为某 WSN网关 可能出现异常。  Or, the telecommunication network platform periodically monitors the status of the WSN gateway, or the WSN gateway periodically reports its status to the telecommunication network platform. When the WSN gateway status is abnormal or the telecommunication network platform does not receive a WSN within a predetermined time interval. The feedback from the gateway suggests that a WSN gateway may be abnormal.

当设定主 /从 WSN网关时, 有新的 WSN节点加入网络时, 主 WSN网 关将更新对照表, 并通知有所变化的 WSN网关和 WSN节点。  When the master/slave WSN gateway is set, when a new WSN node joins the network, the master WSN gateway will update the lookup table and notify the changed WSN gateway and WSN node.

或者, 当有新的 WSN网关加入网络时, 电信网管理平台设置新 WSN 网关为从 WSN网关, 主 WSN网关将更新原有对照表, 并通知有所变化的 WSN网关和 WSN节点。 这里, 当有新的 WSN网关加入 WSN时, 可为该 新加入的 WSN网关设置互为备份的 WSN网关, 并在该互为备份的 WSN 网关中实现相应的备份配置, 同时, 在电信网管理平台或主 WSN网关更新 备份策略对照表,将新加入的 WSN网关及其备份网关之间的对应关系添加 到更新备份策略对照表中。 并对该新加入的 WSN网关进行监测。 具体的, 对于新加入的 WSN网关, 处理方式与对 WSN网关的初始配置的处理方式 类似。 Alternatively, when a new WSN gateway joins the network, the telecommunication network management platform sets the new WSN gateway as the slave WSN gateway, and the main WSN gateway will update the original lookup table and notify the changed WSN gateway and the WSN node. Here, when a new WSN gateway joins the WSN, it can be The newly added WSN gateway sets the WSN gateways that are mutually backed up, and implements the corresponding backup configuration in the mutually backed up WSN gateways. At the same time, the backup policy comparison table is updated on the telecommunication network management platform or the main WSN gateway, and the newly added The correspondence between the WSN gateway and its backup gateway is added to the update backup policy comparison table. And monitoring the newly added WSN gateway. Specifically, for the newly added WSN gateway, the processing manner is similar to the initial configuration of the WSN gateway.

本发明中, 在利用备份 WSN网关接替当前异常的工作 WSN网关时, 可以由前述主 WSN网关或通信网络通知异常的 WSN网关所管理的 WSN 节点通过所述备份 WSN网关上报数据及接收指令;  In the present invention, when the backup WSN gateway is used to replace the currently abnormal working WSN gateway, the WSN node managed by the abnormal WSN gateway may be notified by the foregoing main WSN gateway or the communication network to report data and receive an instruction through the backup WSN gateway;

或者,由上述备份 WSN网关直接通知异常的 WSN网关所管理的 WSN 节点通过所述备份 WSN 网关上报数据及接收指令。 具体的, 当上述备份 WSN 网关接替当前异常的 WSN 网关后, 主动向当前与自身连接的所有 WSN节点发送通知消息, 以通知 WSN节点通过自身进行数据上报。  Alternatively, the WSN gateway directly notified by the backup WSN gateway to the abnormal WSN gateway reports the data and receives the command through the backup WSN gateway. Specifically, after the backup WSN gateway takes over the currently abnormal WSN gateway, it sends a notification message to all WSN nodes that are currently connected to the WSN, to notify the WSN node to report data through itself.

所述主 WSN网关和从 WSN网关之间的通信可以通过传感网络, 也可 以通过电信网络。  The communication between the primary WSN gateway and the secondary WSN gateway can be through a sensing network or through a telecommunications network.

当需要更换故障的从 WSN网关时, 可以从主 WSN网关或者为它备份 的 WSN网关中导入所需配置信息到新的从 WSN网关设备。  When the failed slave WSN gateway needs to be replaced, the required configuration information can be imported from the primary WSN gateway or the WSN gateway it backed up to the new slave WSN gateway device.

当不设定主 /从 WSN网关时, 当有新的 WSN节点或新的 WSN网关加 入网络时,电信网平台将更新对照表,并通知有所变化的 WSN网关和 WSN 节点。  When the master/slave WSN gateway is not set, when a new WSN node or a new WSN gateway is added to the network, the telecommunication network platform will update the lookup table and notify the changed WSN gateway and WSN node.

当需要更换故障的 WSN 网关时, 可以从电信网平台或者为它备份的 WSN网关中导入所需配置信息到新的 WSN网关设备。  When the failed WSN gateway needs to be replaced, the required configuration information can be imported from the telecommunication network platform or the WSN gateway it backed up to the new WSN gateway device.

所述电信网平台可以是实施设备管理功能的管理平台, 也可以是负责 管理整个业务流程的业务平台。  The telecommunication network platform may be a management platform that implements device management functions, or a service platform that is responsible for managing the entire business process.

以下通过具体示例进一步阐明本发明技术方案的实质。 本示例中 , 通过在 WSN网关中设置主 WSN网关及从 WSN网关来实 现技术方案, 其中, 主 WSN 网关作为整个从 WSN 网关的备份网关。 主 WSN网关中存储有所有从 WSN网关的配置信息以及每个从 WSN网关所 管理的 WSN节点的信息。 图 2为本发明 WSN网关的备份方法的一种流程 图, 如图 2所示, 本发明 WSN网关的备份方法具体通过下述步骤实现: 步骤 201 , 主 WSN网关保存每个从 WSN网关的配置信息以及它所管 理的 WSN节点的信息及 WSN配置参数; The essence of the technical solution of the present invention will be further clarified by specific examples below. In this example, the technical solution is implemented by setting a primary WSN gateway and a secondary WSN gateway in the WSN gateway, where the primary WSN gateway acts as a backup gateway for the entire secondary WSN gateway. The main WSN gateway stores configuration information of all the slave WSN gateways and information of each WSN node managed by the WSN gateway. 2 is a flowchart of a method for backing up a WSN gateway according to the present invention. As shown in FIG. 2, the backup method of the WSN gateway of the present invention is specifically implemented by the following steps: Step 201: The primary WSN gateway saves the configuration of each slave WSN gateway. Information and information about WSN nodes it manages and WSN configuration parameters;

步骤 202, 监测从 WSN网关的状态;  Step 202: Monitor a status of the slave WSN gateway.

此步骤可以是主 WSN网关定期监测从 WSN网关的状态, 也可以由从 WSN网关定期向主 WSN网关上 4艮它的状态。  This step may be that the primary WSN gateway periodically monitors the status of the slave WSN gateway, or it may be periodically forwarded from the WSN gateway to the primary WSN gateway.

步骤 203 , 有异常的从 WSN网关吗? 如果没有, 则执行步骤 202, 循 环监测从 WSN网关的状态。 如果有异常 WSN网关, 则执行步骤 204; 步骤 204, 主 WSN网关接替出现异常的从 WSN网关的工作, 并通知 该从 WSN网关管理的 WSN节点通过主 WSN网关上报数据及接收指令。  Step 203, Is there an abnormal gateway from the WSN? If not, step 202 is performed to monitor the status of the slave WSN gateway. If there is an abnormal WSN gateway, step 204 is performed; Step 204, the primary WSN gateway takes over the operation of the abnormal WSN gateway, and notifies the WSN node managed by the WSN gateway to report data and receive the command through the primary WSN gateway.

当主 WSN网关设定 WSN网关之间相互备份时, 主 WSN网关中建立 一个对照表, 该对照表至少包含 WSN网关标识、 该 WSN网关分担管理的 WSN节点的信息、 WSN配置参数以及为该 WSN网关备份的 WSN网关的 标识。 从 WSN网关中保存它所管理的 WSN节点信息以及它需要为之备份 的 WSN网关的所有信息 (包括 WSN网关信息及其所管理的 WSN节点的 信息、 WSN配置参数等)。 主 WSN网关定期监测从 WSN网关的状态, 或 者由从 WSN网关定期向主 WSN网关上报它的状态。 当某从 WSN网关状 态异常时, 主 WSN网关将通知为该从 WSN网关备份的 WSN网关接替异 常的从 WSN网关的工作, 并通知该从 WSN网关管理的 WSN节点通过为 它备份的 WSN网关上报数据及接收指令。  When the primary WSN gateway sets the backup between the WSN gateways, the master WSN gateway establishes a comparison table, where the comparison table includes at least the WSN gateway identifier, the information of the WSN node shared by the WSN gateway, the WSN configuration parameter, and the WSN gateway. The ID of the backed up WSN gateway. The WSN node is saved from the WSN gateway and all the information of the WSN gateway it needs to back up (including the WSN gateway information and the information of the WSN nodes it manages, WSN configuration parameters, etc.). The primary WSN gateway periodically monitors the status of the slave WSN gateway, or periodically reports its status from the WSN gateway to the primary WSN gateway. When the status of a slave WSN gateway is abnormal, the master WSN gateway notifies the WSN gateway that is backed up from the WSN gateway to take over the work of the abnormal slave WSN gateway, and notifies the WSN node managed by the WSN gateway to report the WSN gateway that is backed up by it. Data and receive instructions.

本示例中, 通过在 WSN网关中设置主 WSN网关及从 WSN网关来实 现技术方案, 其中, 主 WSN网关对所有从 WSN网关进行管理, 从 WSN 网关之间, 每个 WSN网关至少有一个其他从 WSN网关作为其自身的备份 网关, 即从 WSN网关之间互为备份网关。 从 WSN网关中存储其自身所备 份 WSN网关的配置信息以及该 WSN网关所管理的 WSN节点的信息。 图 3为本发明 WSN 网关的备份方法的另一种流程图, 如图 3 所示, 本发明 WSN网关的备份方法具体通过下述步骤实现: In this example, by setting the primary WSN gateway in the WSN gateway and from the WSN gateway In the current technical solution, the master WSN gateway manages all the slave WSN gateways, and between the WSN gateways, each WSN gateway has at least one other slave WSN gateway as its own backup gateway, that is, backups from the WSN gateways. Gateway. The configuration information of the WSN gateway that is backed up by itself and the information of the WSN node managed by the WSN gateway are stored from the WSN gateway. FIG. 3 is another flowchart of a method for backing up a WSN gateway according to the present invention. As shown in FIG. 3, the backup method of the WSN gateway of the present invention is specifically implemented by the following steps:

步骤 301 , 主 WSN网关中建立一个备份策略对照表。  Step 301: Establish a backup policy comparison table in the primary WSN gateway.

该备份策略对照表至少包含 WSN网关标识、 该 WSN网关分担管理的 WSN节点的信息、 WSN配置参数以及为该 WSN网关备份的 WSN网关的 标识。  The backup policy comparison table includes at least a WSN gateway identifier, information of the WSN node shared by the WSN gateway, WSN configuration parameters, and an identifier of the WSN gateway backed up by the WSN gateway.

步骤 302, 从 WSN网关中保存它所管理的 WSN节点信息以及它需要 为之备份的 WSN网关的所有信息(包括 WSN网关信息及其所管理的 WSN 节点的信息、 WSN配置参数等)。  Step 302: Save all information about the WSN node that it manages and the WSN gateway that it needs to back up from the WSN gateway (including the WSN gateway information and the information of the WSN node it manages, WSN configuration parameters, etc.).

步骤 303, 监测从 WSN网关的状态;  Step 303: Monitor a status of the slave WSN gateway.

此步骤可以是主 WSN网关定期监测从 WSN网关的状态, 也可以由从 WSN网关定期向主 WSN网关上 4艮它的状态。  This step may be that the primary WSN gateway periodically monitors the status of the slave WSN gateway, or it may be periodically forwarded from the WSN gateway to the primary WSN gateway.

步骤 304, 有异常的从 WSN网关吗? 如果没有, 则返回步骤 303, 循 环监测从 WSN网关的状态。 如果有异常 WSN网关, 则执行步骤 305; 步骤 305,通知为该从 WSN网关备份的 WSN网关接替异常的从 WSN 网关的工作, 通知该从 WSN网关管理的 WSN节点通过备份 WSN网关上 报数据及接收指令。  Step 304, Is there an abnormality from the WSN gateway? If not, return to step 303 to periodically monitor the status of the slave WSN gateway. If there is an abnormal WSN gateway, step 305 is performed; Step 305, the WSN gateway backed up from the WSN gateway is notified to take over the abnormal operation of the slave WSN gateway, and the WSN node managed by the WSN gateway is notified to report data and receive through the backup WSN gateway. instruction.

所述主 WSN网关定期监测从 WSN网关的状态, 或者由从 WSN网关 定期向主 WSN 网关上报它的状态, 当从 WSN 网关状态显示异常或者主 WSN网关在预定的时间间隔内未收到从 WSN网关的反馈,则判定从 WSN 网关可能出现异常。 本发明中, 在多 WSN网关的情况下, 也可以不设定主 WSN网关和从 WSN网关, 而是, 各 WSN网关同等级, 由电信网平台设定 WSN网关之 间相互备份的策略。 电信网平台根据备份策略建立一个备份策略对照表, 该对照表至少包含 WSN网关标识、 该 WSN网关分担管理的 WSN节点的 信息、 WSN配置参数以及为该 WSN网关备份的备用 WSN网关的标识。 电信网平台定期监测每个 WSN网关的状态, 或者由每个 WSN网关定期向 电信网平台上报它的状态。 当某 WSN网关状态异常时, 电信网平台将通知 为该 WSN网关备份的备用 WSN网关接替异常的 WSN网关的工作, 并通 知该 WSN网关管理的 WSN节点通过为它备份的 WSN网关上 4艮数据及接 收指令。 The primary WSN gateway periodically monitors the status of the slave WSN gateway, or periodically reports its status from the WSN gateway to the primary WSN gateway, when an abnormality is displayed from the WSN gateway status or the primary WSN gateway does not receive the WSN from the WSN within a predetermined time interval. Feedback from the gateway determines that an exception may have occurred from the WSN gateway. In the present invention, in the case of multiple WSN gateways, the primary WSN gateway and the secondary WSN gateway may not be set, but each WSN gateway is of the same level, and the telecommunications network platform sets a policy for mutual backup between the WSN gateways. The telecommunication network platform establishes a backup policy comparison table according to the backup policy. The comparison table includes at least the WSN gateway identifier, the information of the WSN node shared by the WSN gateway, the WSN configuration parameter, and the identifier of the standby WSN gateway that is backed up by the WSN gateway. The telecommunications network platform periodically monitors the status of each WSN gateway, or each WSN gateway periodically reports its status to the telecommunications network platform. When the status of a WSN gateway is abnormal, the telecommunication network platform notifies the standby WSN gateway backed up by the WSN gateway to take over the work of the abnormal WSN gateway, and notifies the WSN node managed by the WSN gateway to pass the data on the WSN gateway backed up for it. And receive instructions.

即图 3中,上述的主 WSN网关实现的功能也可由电信网络平台而实现。 具体的, 电信网平台定期监测 WSN网关的状态, 或者由 WSN网关定期向 电信网平台上报它的状态,当 WSN网关状态显示异常或者电信网平台在预 定的时间间隔内未收到某 WSN网关的反馈, 则认为某 WSN网关可能出现 异常。  That is, in Figure 3, the functions implemented by the above-mentioned main WSN gateway can also be implemented by the telecommunication network platform. Specifically, the telecommunication network platform periodically monitors the status of the WSN gateway, or the WSN gateway periodically reports its status to the telecommunication network platform. When the WSN gateway status is abnormal or the telecommunication network platform does not receive a WSN gateway within a predetermined time interval. Feedback, it is considered that a WSN gateway may be abnormal.

本发明无线传感器网络网关的备份系统应用于 WSN 与通信网络结合 的网络中, 图 4为本发明无线传感器网络网关的备份系统的组成结构示意 图, 如图 4所示, 本发明无线传感器网络网关的备份系统包括设置单元 40、 监测单元 41、 确定单元 42和接替单元 43; 其中,  The backup system of the wireless sensor network gateway of the present invention is applied to a network in which a WSN and a communication network are combined. FIG. 4 is a schematic structural diagram of a backup system of a wireless sensor network gateway according to the present invention. As shown in FIG. 4, the wireless sensor network gateway of the present invention is The backup system includes a setting unit 40, a monitoring unit 41, a determining unit 42 and a relay unit 43;

设置单元 40, 用于为 WSN网关设置备份 WSN网关;  The setting unit 40 is configured to set a backup WSN gateway for the WSN gateway;

监测单元 41 , 用于对当前工作的 WSN网关进行监测;  The monitoring unit 41 is configured to monitor the currently working WSN gateway;

确定单元 42, 用于确定工作的 WSN 网关是否故障, 故障时触发接替 单元 43;  The determining unit 42 is configured to determine whether the working WSN gateway is faulty, and trigger the replacing unit 43 when the fault occurs;

接替单元 43 , 用于以故障 WSN网关的备份 WSN网关接替所述故障 WSN网关。 上述设置单元 40进一步在 WSN网关中设置主 WSN网关和从 WSN网 关, 所述主 WSN网关至少存储有从 WSN网关的配置信息, 以及从 WSN 网关所管理的 WSN节点的信息及 WSN配置参数; The successor unit 43 is configured to replace the faulty WSN gateway with a backup WSN gateway of the faulty WSN gateway. The setting unit 40 further includes a primary WSN gateway and a secondary WSN gateway in the WSN gateway, where the primary WSN gateway stores at least configuration information from the WSN gateway, and information of the WSN node managed by the WSN gateway and WSN configuration parameters;

上述监测单元 41设置于所述主 WSN网关中, 定期监测从 WSN网关 的状态, 或者, 获取由从 WSN网关定期上报的自身状态信息;  The monitoring unit 41 is disposed in the primary WSN gateway, and periodically monitors the status of the slave WSN gateway, or obtains self-status information periodically reported by the slave WSN gateway;

上述确定单元 42确定工作的从 WSN网关状态异常时, 触发上述接替 单元 43以所述主 WSN网关接替异常的从 WSN网关工作。  When the determining unit 42 determines that the working slave WSN gateway is abnormal, the above-mentioned determining unit 43 is triggered to operate the slave WSN gateway with the master WSN gateway taking over the abnormality.

上述设置单元 40进一步在 WSN网关中设置主 WSN网关和从 WSN网 关; 以及, 在从 WSN网关中,设置每一 WSN网关与另外的至少一个 WSN 网关之间互为备份 WSN网关; 其中, 所述主 WSN网关中设置有备份策略 对照表, 所述备份策略对照表至少包含从 WSN网关的标识、 该从 WSN网 关所管理的 WSN节点的信息、 WSN配置参数以及作为该从 WSN网关的 备份 WSN网关的标识;  The setting unit 40 further sets a primary WSN gateway and a secondary WSN gateway in the WSN gateway; and, in the secondary WSN gateway, sets each WSN gateway and another at least one WSN gateway as a backup WSN gateway; wherein A backup policy comparison table is set in the main WSN gateway, and the backup policy comparison table includes at least an identifier from the WSN gateway, information of the WSN node managed by the slave WSN gateway, WSN configuration parameters, and a backup WSN gateway as the slave WSN gateway. Identification

上述监测单元 41设置于所述主 WSN网关中, 进一步定期监测工作的 从 WSN网关的状态, 或者获取由工作的从 WSN网关定期上报的自身状态 信息; 上述确定单元 42进一步确定工作的从 WSN网关状态异常时, 触发 上述接替单元 43以为异常的从 WSN网关备份的备份 WSN网关接替异常 的从 WSN网关的工作。  The foregoing monitoring unit 41 is disposed in the primary WSN gateway, and further periodically monitors the status of the working slave WSN gateway, or obtains self-status information periodically reported by the working slave WSN gateway; the determining unit 42 further determines the working slave WSN gateway. When the status is abnormal, the above-mentioned successor unit 43 is triggered to take over the abnormal operation of the slave WSN gateway from the backup WSN gateway backed up by the WSN gateway.

上述设置单元 40进一步地, 在 WSN网关中, 设置每一 WSN网关与 另外的至少一个 WSN网关之间互为备份 WSN网关; 其中, 通信网络中设 置有备份策略对照表, 所述备份策略对照表至少包含 WSN 网关的标识、 WSN网关所管理的 WSN节点的信息、 WSN配置参数以及互为备份 WSN 网关之间的对应关系;  The setting unit 40 further includes, in the WSN gateway, setting a backup WSN gateway between each WSN gateway and another at least one WSN gateway; wherein a backup policy comparison table is set in the communication network, and the backup policy comparison table is At least the identifier of the WSN gateway, the information of the WSN node managed by the WSN gateway, the WSN configuration parameter, and the correspondence between the backup WSN gateways;

上述监测单元 41设置于通信网络中,进一步定期监测当前工作的 WSN 网关的状态, 或者获取由工作的 WSN网关定期上报的自身状态信息; 上述 确定单元 42进一步确定工作的 WSN网关状态异常时, 触发上述接替单元 43以为异常的 WSN网关备份的备份 WSN网关接替异常的 WSN网关的工 作。 The monitoring unit 41 is disposed in the communication network, and further periodically monitors the status of the currently working WSN gateway, or obtains the status information periodically reported by the working WSN gateway; When the determining unit 42 further determines that the working WSN gateway status is abnormal, the above-mentioned successor unit 43 is triggered to take over the operation of the abnormal WSN gateway for the abnormal WSN gateway backup.

在图 4所示的无线传感器网络网关的备份系统的基础上, 本发明的无 线传感器网络网关的备份系统还包括: 通知单元(未图示), 设置于所述主 WSN网关或所述通信网络中, 或设置于所述备份 WSN网关中, 用于通知 异常的 WSN网关所管理的 WSN节点通过所述备份 WSN网关上报数据及 接收指令。  The backup system of the wireless sensor network gateway of the present invention further includes: a notification unit (not shown) disposed on the primary WSN gateway or the communication network, based on the backup system of the wireless sensor network gateway shown in FIG. Or, in the backup WSN gateway, the WSN node managed by the WSN gateway for notifying the abnormality reports data and receives an instruction through the backup WSN gateway.

上述确定单元 42在 WSN网关上 "^的状态信息显示异常或 WSN网关 在预定的时间间隔内未上 4艮状态信息, 确定 WSN网关故障。  The determining unit 42 determines that the WSN gateway is faulty because the status information of the "^" is abnormal on the WSN gateway or the WSN gateway does not have the status information within the predetermined time interval.

本领域技术人员应当理解, 本发明无线传感器网络网关的备份系统是 为实现前述的本发明无线传感器网络网关的备份方法而设计的, 上述各处 理单元以及子处理单元的实现功能可参照前述方法的相关描述而理解。 上 述各处理单元以及子处理单元的功能, 可通过相应的集成电路来实现, 也 可通过相应的计算机程序在具有程序执行功能的处理器上而实现。  It should be understood by those skilled in the art that the backup system of the wireless sensor network gateway of the present invention is designed to implement the foregoing backup method of the wireless sensor network gateway of the present invention. The implementation functions of the foregoing processing units and sub-processing units can be referred to the foregoing method. Understand the relevant description. The functions of each of the processing units and the sub-processing units described above may be implemented by a corresponding integrated circuit or by a corresponding computer program on a processor having a program execution function.

以上所述, 仅为本发明的较佳实施例而已, 并非用于限定本发明的保 护范围。  The above is only the preferred embodiment of the present invention and is not intended to limit the scope of the present invention.

Claims

权利要求书 Claim 1、 一种无线传感器网络网关的备份方法, 无线传感器网络(WSN )通 过 WSN网关与通信网络连接; 其特征在于, 为 WSN网关设置备份 WSN 网关; 所述方法还包括:  A method for backing up a wireless sensor network gateway, the wireless sensor network (WSN) is connected to the communication network through the WSN gateway; and the method is: setting a backup WSN gateway for the WSN gateway; the method further includes: 对当前工作的 WSN网关进行监测, 在工作的 WSN网关故障时, 以故 障 WSN网关的备份 WSN网关接替所述故障 WSN网关。  The currently working WSN gateway is monitored. When the working WSN gateway fails, the backup WSN gateway of the failed WSN gateway takes over the failed WSN gateway. 2、 根据权利要求 1所述的方法, 其特征在于, 为 WSN网关设置备份 WSN网关具体为: 设置主 WSN网关和从 WSN网关, 所述主 WSN网关至 少存储有从 WSN网关的配置信息, 以及从 WSN网关所管理的 WSN节点 的信息及 WSN配置参数;  2. The method according to claim 1, wherein the setting the backup WSN gateway for the WSN gateway is specifically: setting a primary WSN gateway and a secondary WSN gateway, wherein the primary WSN gateway stores at least configuration information of the secondary WSN gateway, and Information of the WSN node managed by the WSN gateway and WSN configuration parameters; 对当前工作的 WSN网关进行监测, 在工作的 WSN网关故障时, 以故 障 WSN网关的备份 WSN网关接替所述故障 WSN网关具体为:  The currently working WSN gateway is monitored. When the working WSN gateway fails, the backup WSN gateway of the failed WSN gateway takes over the fault. The WSN gateway is specifically: 所述主 WSN网关定期监测从 WSN网关的状态, 或者由从 WSN网关 定期向所述主 WSN网关上 "^自身状态信息;  The primary WSN gateway periodically monitors the status of the slave WSN gateway, or periodically reports the status information from the WSN gateway to the primary WSN gateway; 所述主 WSN网关确定工作的从 WSN网关状态异常时, 所述主 WSN 网关接替异常的从 WSN网关工作。  When the primary WSN gateway determines that the working slave WSN gateway status is abnormal, the primary WSN gateway takes over the abnormal slave WSN gateway operation. 3、 根据权利要求 1所述的方法, 其特征在于, 为 WSN网关设置备份 WSN网关具体为: 设置主 WSN网关和从 WSN网关; 在从 WSN网关中, 设置每一 WSN网关与另外的至少一个 WSN网关之间互为备份 WSN网关; 其中, 所述主 WSN网关中设置有备份策略对照表, 所述备份策略对照表至 少包含从 WSN网关的标识、 该从 WSN网关所管理的 WSN节点的信息、 WSN配置参数以及作为该从 WSN网关的备份 WSN网关的标识;  3. The method according to claim 1, wherein the setting of the backup WSN gateway for the WSN gateway is specifically: setting a primary WSN gateway and a secondary WSN gateway; and setting, from the WSN gateway, each WSN gateway and another at least one The WSN gateways are mutually backup WSN gateways; wherein the primary WSN gateway is provided with a backup policy comparison table, and the backup policy comparison table includes at least the identifier of the WSN gateway and the information of the WSN node managed by the slave WSN gateway. , WSN configuration parameters and an identifier of the backup WSN gateway as the slave WSN gateway; 对当前工作的 WSN网关进行监测, 在工作的 WSN网关故障时, 以故 障 WSN网关的备份 WSN网关接替所述故障 WSN网关具体为:  The currently working WSN gateway is monitored. When the working WSN gateway fails, the backup WSN gateway of the failed WSN gateway takes over the fault. The WSN gateway is specifically: 所述主 WSN网关定期监测工作的从 WSN网关的状态, 或者由工作的 从 WSN网关定期向主 WSN网关上报自身的状态信息; 所述主 WSN网关 确定工作的从 WSN网关状态异常时, 通知为异常的从 WSN网关备份的备 份 WSN网关接替异常的从 WSN网关的工作。 The primary WSN gateway periodically monitors the status of the working slave WSN gateway, or is operated by The WSN gateway periodically reports its own status information to the primary WSN gateway. When the primary WSN gateway determines that the working WSN gateway status is abnormal, it notifies the backup WSN gateway that is abnormally backed up from the WSN gateway to take over the abnormal WSN gateway operation. 4、 根据权利要求 1所述的方法, 其特征在于, 为 WSN网关设置备份 WSN网关具体为: 在 WSN网关中, 设置每一 WSN网关与另外的至少一 个 WSN网关之间互为备份 WSN网关; 其中, 通信网络中设置有备份策略 对照表, 所述备份策略对照表至少包含 WSN网关的标识、 WSN网关所管 理的 WSN节点的信息、 WSN配置参数以及互为备份 WSN网关之间的对 应关系;  The method according to claim 1, wherein the setting of the backup WSN gateway for the WSN gateway is specifically: setting, in the WSN gateway, each WSN gateway and another at least one WSN gateway as a backup WSN gateway; A backup policy comparison table is configured in the communication network, where the backup policy comparison table includes at least the identifier of the WSN gateway, the information of the WSN node managed by the WSN gateway, the WSN configuration parameter, and the correspondence between the backup WSN gateways; 对当前工作的 WSN网关进行监测, 在工作的 WSN网关故障时, 以故 障 WSN网关的备份 WSN网关接替所述故障 WSN网关具体为:  The currently working WSN gateway is monitored. When the working WSN gateway fails, the backup WSN gateway of the failed WSN gateway takes over the fault. The WSN gateway is specifically: 所述通信网络定期监测当前工作的 WSN 网关的状态, 或者由工作的 WSN网关定期向所述通信网络上 自身的状态信息; 所述通信网络确定工 作的 WSN网关状态异常时, 通知为异常的从 WSN网关备份的备份 WSN 网关接替异常的从 WSN网关的工作。  The communication network periodically monitors the status of the currently working WSN gateway, or periodically reports the status information to the communication network by the working WSN gateway; when the communication network determines that the working WSN gateway status is abnormal, the notification is abnormal. The backup WSN gateway backed up by the WSN gateway takes over the work of the abnormal WSN gateway. 5、 根据权利要求 2 至 4任一项所述的方法, 其特征在于, 所述备份 WSN网关接替异常的 WSN网关之后, 所述方法还包括:  The method according to any one of claims 2 to 4, wherein, after the backup WSN gateway takes over the abnormal WSN gateway, the method further includes: 所述主 WSN网关或所述通信网络通知异常的 WSN网关所管理的 WSN 节点通过所述备份 WSN网关上报数据及接收指令;  The primary WSN gateway or the communication network notifies the WSN node managed by the abnormal WSN gateway to report data and receive an instruction through the backup WSN gateway; 或者, 由所述备份 WSN网关通知异常的 WSN网关所管理的 WSN节 点通过所述备份 WSN网关上报数据及接收指令。  Alternatively, the backup WSN gateway notifies the WSN node managed by the abnormal WSN gateway to report data and receive an instruction through the backup WSN gateway. 6、 根据权利要求 5所述的方法, 其特征在于, 所述方法还包括: WSN网关上 "^的状态信息显示异常或 WSN网关在预定的时间间隔内 未上 ^艮状态信息, 确定 WSN网关故障。  The method according to claim 5, wherein the method further comprises: the status information of the "^" on the WSN gateway is abnormal, or the WSN gateway does not upload the status information within a predetermined time interval, and determines the WSN gateway. malfunction. 7、 根据权利要求 2或 3所述的方法, 其特征在于, 所述方法还包括: 在有新 WSN节点加入 WSN时, 所述主 WSN网关更新备份策略对照 表, 并通知新加入 WSN节点所属的 WSN网关; The method according to claim 2 or 3, wherein the method further comprises: When a new WSN node joins the WSN, the primary WSN gateway updates the backup policy comparison table, and notifies the new WSN gateway to which the WSN node belongs; 在有新 WSN网关加入 WSN时, 所述主 WSN网关更新备份策略对照 表, 并通知新加入 WSN网关。  When a new WSN gateway joins the WSN, the primary WSN gateway updates the backup policy comparison table and notifies the new WSN gateway. 8、 根据权利要求 5所述的方法, 其特征在于, 所述方法还包括: 在有新 WSN节点加入 WSN时, 所述通信网络更新备份策略对照表, 并通知新加入 WSN节点所属的 WSN网关;  The method according to claim 5, wherein the method further comprises: when a new WSN node joins the WSN, the communication network updates the backup policy comparison table, and notifies the newly added WSN gateway to which the WSN node belongs. ; 在有新 WSN网关加入 WSN时, 所述通信网络更新备份策略对照表, 并通知新加入 WSN网关。  When a new WSN gateway joins the WSN, the communication network updates the backup policy comparison table and notifies the new WSN gateway. 9、 根据权利要求 5或 8所述的方法, 其特征在于, 所述通信网络为电 信网平台, 具体为电信网管理平台或业务平台。  The method according to claim 5 or 8, wherein the communication network is a telecommunication network platform, specifically a telecommunication network management platform or a service platform. 10、 根据权利要求 7所述的方法, 其特征在于, 所述主 WSN网关和从 WSN网关之间的通过传感网络通信, 或通过通信网络通信。  10. The method according to claim 7, wherein the primary WSN gateway communicates with the slave WSN gateway through a sensing network or through a communication network. 11、 一种无线传感器网络网关的备份系统, 应用于 WSN通过 WSN网 关与通信网络连接的网络中, 其特征在于, 所述系统包括设置单元、 监测 单元、 确定单元和接替单元; 其中,  A backup system for a wireless sensor network gateway, which is applied to a network in which a WSN is connected to a communication network through a WSN gateway, wherein the system includes a setting unit, a monitoring unit, a determining unit, and a relay unit; 设置单元, 用于为 WSN网关设置备份 WSN网关;  a setting unit, configured to set a backup WSN gateway for the WSN gateway; 监测单元, 用于对当前工作的 WSN网关进行监测;  a monitoring unit, configured to monitor a currently working WSN gateway; 确定单元,用于确定工作的 WSN网关是否故障,故障时触发接替单元; 接替单元,用于以故障 WSN网关的备份 WSN网关接替所述故障 WSN 网关。  a determining unit, configured to determine whether the working WSN gateway is faulty, triggering a relay unit when the fault occurs; and a relay unit for replacing the faulty WSN gateway with the backup WSN gateway of the faulty WSN gateway. 12、 根据权利要求 11所述的系统, 其特征在于, 所述设置单元进一步 在 WSN网关中设置主 WSN网关和从 WSN网关,所述主 WSN网关至少存 储有从 WSN网关的配置信息, 以及从 WSN网关所管理的 WSN节点的信 息及 WSN配置参数; 所述监测单元设置于所述主 WSN网关中, 定期监测从 WSN网关的状 态, 或者, 获取由从 WSN网关定期上报的自身状态信息; The system according to claim 11, wherein the setting unit further sets a primary WSN gateway and a secondary WSN gateway in the WSN gateway, where the primary WSN gateway stores at least configuration information from the WSN gateway, and Information of the WSN node managed by the WSN gateway and WSN configuration parameters; The monitoring unit is disposed in the primary WSN gateway, and periodically monitors the status of the slave WSN gateway, or obtains self-status information periodically reported by the WSN gateway; 所述确定单元确定工作的从 WSN网关状态异常时,触发所述接替单元 以所述主 WSN网关接替异常的从 WSN网关工作。  When the determining unit determines that the working slave WSN gateway is abnormal, the relay unit is triggered to work by the master WSN gateway to replace the abnormal slave WSN gateway. 13、 根据权利要求 11所述的系统, 其特征在于, 所述设置单元进一步 在 WSN网关中设置主 WSN网关和从 WSN网关;以及,在从 WSN网关中, 设置每一 WSN网关与另外的至少一个 WSN网关之间互为备份 WSN网关; 其中, 所述主 WSN网关中设置有备份策略对照表, 所述备份策略对照表至 少包含从 WSN网关的标识、 该从 WSN网关所管理的 WSN节点的信息、 WSN配置参数以及作为该从 WSN网关的备份 WSN网关的标识;  13. The system according to claim 11, wherein the setting unit further sets a primary WSN gateway and a secondary WSN gateway in the WSN gateway; and, in the secondary WSN gateway, sets each WSN gateway with at least another A WSN gateway is a backup WSN gateway; wherein the primary WSN gateway is provided with a backup policy comparison table, and the backup policy comparison table includes at least the identifier of the WSN gateway and the WSN node managed by the slave WSN gateway. Information, WSN configuration parameters, and the identity of the backup WSN gateway as the slave WSN gateway; 所述监测单元设置于所述主 WSN 网关中, 进一步定期监测工作的从 WSN网关的状态, 或者获取由工作的从 WSN网关定期上报的自身状态信 息; 所述确定单元进一步确定工作的从 WSN网关状态异常时, 触发所述接 替单元以为异常的从 WSN网关备份的备份 WSN网关接替异常的从 WSN 网关的工作。  The monitoring unit is disposed in the primary WSN gateway, and further periodically monitors the status of the working slave WSN gateway, or obtains self-status information periodically reported by the working slave WSN gateway; the determining unit further determines the working slave WSN gateway. When the status is abnormal, the successor unit is triggered to take over the work of the abnormal WSN gateway for the abnormal backup WSN gateway backed up from the WSN gateway. 14、 根据权利要求 11所述的系统, 其特征在于, 所述设置单元进一步 地, 在 WSN网关中, 设置每一 WSN网关与另外的至少一个 WSN网关之 间互为备份 WSN网关; 其中, 通信网络中设置有备份策略对照表, 所述备 份策略对照表至少包含 WSN网关的标识、 WSN网关所管理的 WSN节点 的信息、 WSN配置参数以及互为备份 WSN网关之间的对应关系;  The system according to claim 11, wherein the setting unit further sets, in the WSN gateway, a backup WSN gateway between each WSN gateway and another at least one WSN gateway; wherein, the communication A backup policy comparison table is set in the network, where the backup policy comparison table includes at least the identifier of the WSN gateway, the information of the WSN node managed by the WSN gateway, the WSN configuration parameter, and the correspondence between the backup WSN gateways; 所述监测单元设置于通信网络中,进一步定期监测当前工作的 WSN网 关的状态, 或者获取由工作的 WSN网关定期上报的自身状态信息; 所述确 定单元进一步确定工作的 WSN网关状态异常时,触发所述接替单元以为异 常的 WSN网关备份的备份 WSN网关接替异常的 WSN网关的工作。  The monitoring unit is disposed in the communication network, and further periodically monitors the status of the currently working WSN gateway, or obtains self-status information periodically reported by the working WSN gateway; and the determining unit further determines that the working WSN gateway status is abnormal, triggering The replacement unit replaces the operation of the abnormal WSN gateway with a backup WSN gateway that is an abnormal WSN gateway backup. 15、 根据权利要求 12至 14任一项所述的系统, 其特征在于, 所述系 统还包括: The system according to any one of claims 12 to 14, wherein the system The system also includes: 通知单元,设置于所述主 WSN网关或所述通信网络中, 或设置于所述 备份 WSN网关中, 用于通知异常的 WSN网关所管理的 WSN节点通过所 述备份 WSN网关上报数据及接收指令。  The notification unit is disposed in the primary WSN gateway or the communication network, or is disposed in the backup WSN gateway, and is configured to notify the WSN node managed by the abnormal WSN gateway to report data and receive an instruction through the backup WSN gateway. . 16、根据权利要求 15所述的系统, 其特征在于, 所述确定单元在 WSN 网关上报的状态信息显示异常或 WSN 网关在预定的时间间隔内未上报状 态信息, 确定 WSN网关故障。  The system according to claim 15, wherein the status information reported by the determining unit on the WSN gateway is abnormal or the WSN gateway does not report status information within a predetermined time interval to determine that the WSN gateway is faulty.
PCT/CN2010/080403 2010-08-27 2010-12-28 Method and system for backuping wireless sensor network gateways Ceased WO2012024882A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201010267373.7A CN102387514B (en) 2010-08-27 2010-08-27 The backup method of wireless sensor network gateway and system
CN201010267373.7 2010-08-27

Publications (1)

Publication Number Publication Date
WO2012024882A1 true WO2012024882A1 (en) 2012-03-01

Family

ID=45722835

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2010/080403 Ceased WO2012024882A1 (en) 2010-08-27 2010-12-28 Method and system for backuping wireless sensor network gateways

Country Status (2)

Country Link
CN (1) CN102387514B (en)
WO (1) WO2012024882A1 (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2013155657A1 (en) * 2012-04-16 2013-10-24 Renesas Mobile Corporation Routing arrangement in a wireless sensor network
CN102624929B (en) * 2012-04-20 2015-04-08 武汉邮电科学研究院 Wireless sensor network gateway redundancy method based on virtual gateway
CN104579798A (en) * 2015-01-29 2015-04-29 国家电网公司 WSN (wireless sensor network) gateway fault tolerance model for matched power transmission monitoring and working mechanism thereof
CN106972958A (en) * 2017-03-13 2017-07-21 海信集团有限公司 Gateway device collocation method, apparatus and system
CN107466079B (en) * 2017-08-17 2020-11-13 深圳市盛路物联通讯技术有限公司 Automatic relay switching method and device
CN111343700A (en) * 2018-12-19 2020-06-26 南宁富桂精密工业有限公司 Wireless sensor network communication method
CN109617736A (en) * 2018-12-26 2019-04-12 杭州和利时自动化有限公司 A kind of data transmission method and relevant apparatus
CN110267290A (en) * 2019-07-29 2019-09-20 苏州泰铭玥智能科技有限公司 The data processing method and device of intelligence control system
CN112702192B (en) * 2020-12-11 2023-09-29 阳光电源股份有限公司 Troubleshooting methods, devices, systems and storage media for communication equipment

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060126501A1 (en) * 2004-12-09 2006-06-15 Honeywell International Inc. Fault tolerance in a wireless network
CN101048985A (en) * 2004-10-25 2007-10-03 国际商业机器公司 Method, system and program product for deploying and allocating an autonomic sensor network
CN101217490A (en) * 2008-01-09 2008-07-09 西南科技大学 A Bluetooth wireless sensor network networking and routing method
CN101286829A (en) * 2008-03-05 2008-10-15 中科院嘉兴中心微系统所分中心 Implementing method of cross-layer design constructing and reconstructing in clustered topology of random distributed wireless sensor network
US7636038B1 (en) * 2003-02-25 2009-12-22 Purdue Research Foundation Fault-tolerant timeout communication protocol with sensor integration
CN101887266A (en) * 2010-07-09 2010-11-17 北京北方烽火科技有限公司 Safety monitoring system for vehicles

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100407671C (en) * 2003-03-11 2008-07-30 华为技术有限公司 Network communication method for realizing network load sharing function
JP2006310928A (en) * 2005-04-26 2006-11-09 Yokogawa Electric Corp Gateway system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7636038B1 (en) * 2003-02-25 2009-12-22 Purdue Research Foundation Fault-tolerant timeout communication protocol with sensor integration
CN101048985A (en) * 2004-10-25 2007-10-03 国际商业机器公司 Method, system and program product for deploying and allocating an autonomic sensor network
US20060126501A1 (en) * 2004-12-09 2006-06-15 Honeywell International Inc. Fault tolerance in a wireless network
CN101217490A (en) * 2008-01-09 2008-07-09 西南科技大学 A Bluetooth wireless sensor network networking and routing method
CN101286829A (en) * 2008-03-05 2008-10-15 中科院嘉兴中心微系统所分中心 Implementing method of cross-layer design constructing and reconstructing in clustered topology of random distributed wireless sensor network
CN101887266A (en) * 2010-07-09 2010-11-17 北京北方烽火科技有限公司 Safety monitoring system for vehicles

Also Published As

Publication number Publication date
CN102387514A (en) 2012-03-21
CN102387514B (en) 2016-06-29

Similar Documents

Publication Publication Date Title
WO2012024882A1 (en) Method and system for backuping wireless sensor network gateways
CN101282237B (en) A Comprehensive Network Management System Based on SNMP Protocol
EP2961101B1 (en) Method, system and optical network terminal for ethernet performance detection
CN101159647B (en) System and method of implementing gateway local parameter fast recovery
CN103997368B (en) EPON chain circuit detecting method and device
US20140372805A1 (en) Self-healing managed customer premises equipment
US20140122140A1 (en) Advanced managed service customer edge router
CN108933692B (en) Data transmission method of Internet of things gateway, first gateway and dual-computer hot standby system
WO2012024883A1 (en) Method and system for monitoring state of wireless sensor network nodes
US8611231B2 (en) Connectivity fault management for ethernet tree (E-Tree) type services
CN101159608A (en) A network management system and its normal communication method
CN103944814A (en) Data exchange method and system and gateway server
CN107070753A (en) A kind of data monitoring method of distributed cluster system, apparatus and system
CN112671549B (en) A data processing method, device and system
US7719956B2 (en) Trunk network system for multipoint-to-multipoint relay
KR101453334B1 (en) Network information processing system, network information processing apparatus, and information processing method
KR100908131B1 (en) Fault detection device and method using log filtering and fault detection system using the device
CN101938369A (en) Integrated network management access management system, management method and applied network management system
CN101304367B (en) Method, system and apparatus for monitoring survive of subscriber conversation
JP2006340154A (en) Meter reporting system and program
WO2012155648A1 (en) Northbound notification management interface apparatus and management method thereof
JP2004134878A (en) Communication system, main device function backup method, maintenance management center, and user system
JP3914072B2 (en) Network failure monitoring method, communication system, and line switching apparatus
US20200296607A1 (en) Channel establishment method and base station
CN114221882A (en) Method, device, equipment and storage medium for detecting fault link

Legal Events

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

Ref document number: 10856334

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 10856334

Country of ref document: EP

Kind code of ref document: A1