Failover Mechanisms for IoT Gateways

The failover mechanism for gateway clusters addresses security and cost issues by using inactive gateways to manage data and switch roles based on health status, minimizing data loss and duplication in field networks.

JP7569933B2Active Publication Date: 2024-10-18HITACHI VANTARA LLC
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
JP2023521667
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Filing Date
2020-10-30
Publication Date
2024-10-18
Estimated Expiration
2040-10-30

AI Technical Summary

Technical Problem

Existing failover mechanisms for gateways in field networks face issues such as security vulnerabilities, high network costs, and data loss due to infrequent health checks, which are not adequately addressed by existing network-focused or database-centric solutions.

Method used

A failover mechanism for gateway clusters where inactive gateways receive sensor data, with only the active gateway transmitting to the server, and switch roles based on health status without direct health check probes, using agent managers in the cloud to detect failures and manage data transmission.

Benefits of technology

Minimizes data loss and duplication while reducing network costs by efficiently switching active gateways without exposing security risks, ensuring seamless data transmission in field network environments.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007569933000001
    Figure 0007569933000001
  • Figure 0007569933000002
    Figure 0007569933000002
  • Figure 0007569933000003
    Figure 0007569933000003
Patent Text Reader

Abstract

Aspects of the present disclosure include systems and methods for providing a health status from each of a plurality of gateways, the plurality of gateways including an active gateway and one or more inactive gateways, the plurality of gateways receiving sensor data, the active gateway transmitting the received sensor data to a server; and detecting a failure of an active gateway based on the health status, the system including selecting an inactive gateway from the one or more inactive gateways to take over transmission of the active gateway, changing a state of the active gateway to inactive, identifying sensor data received from the active gateway before the failure, and controlling the selected inactive gateway to discard the identified sensor data and resume transmitting the sensor data to the server.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] This application relates generally to gateways, and more particularly to facilitating failover mechanisms for gateways. [Background technology]

[0002] There are several failover mechanisms for gateways, but most of them focus on the network. For example, there are related art implementations where the network connectivity from the master to the slave is addressed. Such implementations do not address data loss or duplication.

[0003] Another related technology implementation that addresses data loss or duplication is a database system in which database failover is achieved by sending health-check probes between clustered databases, for example a backup database sends a health-check probe directly to an active database, and if the probes fail a certain number of times the backup database is promoted to active, allowing the clustered entities to quickly fail over with a short downtime. Summary of the Invention [Means for solving the problem]

[0004] Unlike a database in a data center, a gateway is located in a field network without a firewall. When such a failover technique is applied to a gateway, some problems may occur.

[0005] One issue is security: Gateways should not expose Transmission Control Protocol / User Datagram Protocol (TCP / UDP) ports for health-check probes in the field network, or else the gateway faces the risk of security vulnerabilities. But if the gateway does not expose TCP / UDP ports for health-check probes, there needs to be a way for the backup (inactive) gateway to know that the active gateway has become unhealthy.

[0006] Another issue is the network cost: some gateways are connected to the appliance server through a cellular network, and inactive gateways can be notified of the health of active gateways, but frequent health check notifications incur higher network costs.

[0007] Another problem is data loss. If a gateway does not send health checks very frequently, it takes more time to detect a failure. The longer it takes to detect the status of an active gateway, the more data can be lost. It is desirable to minimize data loss and data duplication.

[0008] To address the above issues, the implementation described herein includes a failover mechanism for a gateway cluster. The gateway cluster includes an active gateway and an inactive gateway. Both gateways receive the same sensor data, and only the active gateway sends sensor data to the appliance server / cloud. Unlike the database switchover mechanism (which sends health check probes to each other), the failover is done via an agent manager in the appliance server / cloud without sending health check probes to each other.

[0009] Aspects of the disclosure can include a method of providing a health status from each of a plurality of gateways, the plurality of gateways including an active gateway and one or more inactive gateways, the plurality of gateways receiving sensor data, the active gateway transmitting the received sensor data to a server; detecting a failure of an active gateway based on the health status, the method can include selecting an inactive gateway from the one or more inactive gateways to take over transmission of the active gateway, changing a state of the active gateway to inactive, identifying sensor data received from the active gateway prior to the failure, and controlling the selected inactive gateway to discard the identified sensor data and resume transmitting the sensor data to the server.

[0010] Aspects of the disclosure may include a computer program that may include instructions for providing a health status from each of a plurality of gateways, the plurality of gateways including an active gateway and one or more inactive gateways, the plurality of gateways receiving sensor data, the active gateway transmitting the received sensor data to a server, and for detecting a failure of an active gateway based on the health status, selecting an inactive gateway from the one or more inactive gateways to take over transmission of the active gateway, changing a state of the active gateway to inactive, identifying sensor data received from the active gateway prior to the failure, and controlling the selected inactive gateway to discard the identified sensor data and resume transmitting the sensor data to the server. The computer program may be stored on an on-transit computer-readable medium and executed by one or more processors.

[0011] Aspects of the disclosure may include a system that may include means for providing a health status from each of a plurality of gateways, the plurality of gateways including an active gateway and one or more inactive gateways, the plurality of gateways receiving sensor data, the active gateway transmitting the received sensor data to a server; upon detecting a failure of the active gateway based on the health status, means for selecting an inactive gateway from the one or more inactive gateways to take over transmission of the active gateway; means for changing a state of the active gateway to inactive; identifying sensor data received from the active gateway prior to the failure; and means for controlling the selected inactive gateway to discard the identified sensor data and resume transmitting the sensor data to the server.

[0012] Aspects of the disclosure may include an apparatus, such as a gateway, that may include a memory configured to store the received sensor data; and a processor configured to provide a health status to a server over a network, transmit the stored received sensor data to the server for devices having a state of active, manage the received sensor data in the memory for devices having a state of inactive, change the state of the device to active upon receiving a state change to change the state to active, discard from the memory the received sensor data already transmitted to the server, and transmit the stored received sensor data to the server.

[0013] Aspects of the disclosure may include a system having a plurality of gateways each capable of providing a health status to a server, the plurality of gateways including an active gateway and one or more inactive gateways, the plurality of gateways receiving sensor data over a network from one or more sensors, the active gateway transmitting the received sensor data to a server, and detecting by the server a failure of an active gateway based on the health status, the server being configured to select an inactive gateway from the one or more inactive gateways to take over transmission of the active gateway, change a state of the active gateway to inactive, identify sensor data received from the active gateway prior to the failure, control the selected inactive gateway to discard the identified sensor data, and resume transmitting the sensor data to the server.

[0014] Aspects of the disclosure may include a computer program storing instructions for execution by a gateway, the instructions including storing in memory the received sensor data, providing a health status to a server over a network, transmitting the stored received sensor data to a server for gateways having a state of ACTIVE, managing in memory the received sensor data for gateways having a state of INACTIVE, changing the state of the gateway to ACTIVE upon receiving a state change to change the state to ACTIVE, discarding from memory the received sensor data already sent to the server, and sending the stored received sensor data to the server. The computer program may be stored on a non-transitory computer readable medium and may be executed by one or more processors of the gateway.

[0015] Aspects of the disclosure may include a method for a gateway, the method including storing received sensor data in a memory, providing a health status to a server over a network, transmitting the stored received sensor data to a server for a gateway having a state of ACTIVE, managing the received sensor data in a memory for a gateway having a state of INACTIVE, changing the state of the gateway to ACTIVE upon receiving a state change to change the state to ACTIVE, discarding from the memory the received sensor data already sent to the server, and transmitting the stored received sensor data to the server.

[0016] Aspects of the disclosure may include a gateway including means for storing received sensor data in memory, means for providing a health status over a network to a server, means for transmitting the stored received sensor data to a server for a gateway having a state of ACTIVE, means for managing the received sensor data in memory for a gateway having a state of INACTIVE, means for changing the state of the gateway to ACTIVE upon receiving a state change to change the state to ACTIVE, means for discarding from the memory the received sensor data already transmitted to the server, and means for transmitting the stored received sensor data to the server. [Brief description of the drawings]

[0017] [Figure 1] FIG. 1 illustrates an example of a system scenario before a failure occurs according to one implementation example.

[0018] [Diagram 2] FIG. 2 illustrates an example scenario of a system undergoing a silent failure according to one implementation.

[0019] [Diagram 3] FIG. 3 illustrates an example of handling packet disruption in a system during a failure according to an example implementation.

[0020] [Figure 4] FIG. 4 illustrates a scenario involving recovery of an active gateway according to one implementation.

[0021] [Figure 5(a)] FIG. 5(a) shows an example of the flow for a system before a failure according to one implementation.

[0022] [Figure 5(b)] FIG. 5(b) shows an example of the flow for a system after a failure according to one implementation.

[0023] [Figure 5(c)] FIG. 5(c) shows an example of a flow for recovering from an abnormal gateway according to one implementation example.

[0024] [Figure 6] FIG. 6 illustrates a system including multiple systems with connected sensors and management devices according to one implementation.

[0025] [Figure 7] FIG. 7 illustrates an example computing environment with an example computing device suitable for use with some implementations. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0026] The following detailed description provides details of the drawings and implementation examples of the present application. Redundant element reference numbers and descriptions between the drawings are omitted for clarity. Terms used throughout the description are provided by way of example and are not intended to be limiting. For example, the use of the term "automatic" may include fully automatic implementations or semi-automatic implementations that include user or administrator control over certain aspects of the implementation, depending on the desired implementation of the person skilled in the art practicing the implementation of the present application. Selections may be made by a user through a user interface or other input means, or may be implemented by a desired algorithm. The implementations described herein may be utilized alone or in combination, and the functionality of the implementations may be implemented by any means depending on the desired implementation.

[0027] In one implementation, there are multiple gateways connected to external sensors (Modbus, motion sensors, etc.), and only one of the gateways is active and passes data to the appliance. This avoids data duplication and overloading connections to the cloud, but still gives the gateways a failover hot replacement mode. All gateways receive data, but only the active gateway forwards it. Inactive gateways store data for a period of time and then discard old data. Such an implementation allows keeping a small buffer of the latest data to avoid data loss. The gateways are clustered, so they all receive the same configuration and containers. The only difference between the gateway configurations is that the agent manager determines one gateway is active, where it maintains synchronization with the active state to send data.

[0028] If the active gateway becomes unhealthy, the appliance "wakes up" another gateway by sending a command to one of the other gateways to become active and handle sending data. The inactive gateway detects what data was not sent by the previously active gateway and sends only the data that was not sent by the active gateway.

[0029] In terms of system architecture, the system includes an application system on a cloud / appliance server, a gateway in a field network, and an external sensor. The gateway is connected to the application system on the cloud via cellular, Wi-Fi, etc. Examples of sensors are Modbus, motion sensors, etc.

[0030] The gateway may include a data receiver to receive data from external sensors, a data storage to temporarily store sensor data, a data transmitter to send data to a cloud / appliance server, an agent to monitor the state of the gateway and update the active / inactive mode of the gateway, and a data duplication detector (which may be included in the data transmitter) to detect data already sent to the cloud by other gateways. The mode of the gateway may be set to active gateway and inactive gateway. Furthermore, all services in both gateways are running.

[0031] The cloud / appliance server may include a data receiver service that receives sensor data sent from the gateway, a data storage (e.g., database, NoSQL, blob store) that stores the received data, and an agent manager that manages the agents.

[0032] A gateway failure may be classified as a silent or non-silent failure. In one example of a silent failure, the agent in the gateway does not send an abnormal probe to the agent manager in the cloud. Examples of silent failures may include the gateway shutting down while not connected to the cloud, the gateway's power being unplugged, the network going out, etc. A non-silent failure includes the agent in the gateway sending failure information to the manager in the cloud. Examples of non-silent failures may include the gateway gracefully shutting down the management plane (agents and agent manager) showing a healthy state when connected to the cloud, along with a data plane having problems, a data sender in the gateway having problems, and a data receiver in the cloud / appliance having problems.

[0033] Figure 1 illustrates an example scenario of a system before a failure occurs according to one implementation. In particular, Figure 1 illustrates a system before a silent failure occurs. In this scenario, assume that gateway 110 is active and fails, and gateway 111 is inactive and changes to active.

[0034] Before the silent failure occurs, on the management plane, all of the gateways periodically send health check probes to the Agent Manager. Furthermore, all of the gateways check their active-inactive state, which is managed by the Agent Manager.

[0035] On the data plane, both the active gateway 110 and the inactive gateway 111 receive data from the sensor 100. The active gateway 110 sends the sensor data to the appliance server / cloud 129. The inactive gateway 111 stores the sensor data locally until it receives notification from the cloud / appliance server 120 that the data has been received from the gateway 111 or until the gateway's disk space falls below a predefined threshold (this is done to keep the gateway 111 healthy). Further details regarding the flow of Figure 1 are shown in Figure 5(a).

[0036] 2 illustrates an example scenario of a system experiencing a silent failure according to one implementation. Upon failure, cloud / appliance server 120 does not receive sensor data on the data plane. On the management plane, agent manager does not receive health check probes from agents. Agent manager changes the state of gateway 110 to unhealthy and sets its mode to inactive. Agent manager promotes gateway 111 to active. Agent manager identifies the last received sensor data and notifies inactive agents of the data.

[0037] Note that time series sensor data is not always unique (e.g., the same data may be received) since some sensor data may not include a corresponding universally unique identifier (UUID) or timestamp to identify the last received sensor data. Although the gateway may timestamp the sensor data before sending it to cloud / appliance server 120, the timestamp added by gateway 110 will not be synchronized with gateway 111 to within milliseconds due to network delays, even if both gateways are synchronized with a Network Time Protocol (NTP) server. Therefore, the data must be processed to determine what the previously sent data is.

[0038] The agent of the gateway 111 is notified that its mode is active and receives the last sensor data cloud / appliance received by the cloud / appliance server 120. In response, the agent of the gateway 111 changes its state to active. In this case, the agent manager cannot notify the gateway 110 that it has been changed to inactive and that it has been changed to active. Therefore, the gateway 110 has no way of knowing from which data it started sending. On the data plane, the data transmitter service of the gateway 111 discards old data and sends all data received from the sensors.

[0039] The data receiver in the cloud / appliance server 120 calculates the hash value using a default value (called window size) of continuous time series data. The window size must be long enough to make the hash unique. The appropriate window size depends on the sensor data. If the sensor data rarely has the same value (e.g., picture images), the window size may be set to 1. The window size may be set by the user or calculated by the data receiver. For example, the window size may be calculated by "{number of hash collisions for the past 10,000 hash values ​​calculated by window size X}<=1".

[0040] The data sender calculates the hash using the same window size by sliding the window. The data sender searches for a window whose hash is the same as the hash sent by cloud / appliance server 120. Any data older than the matched window (including data within the window) has already been sent by gateway 110. Further details of this flow are shown with respect to FIG. 5(b).

[0041] FIG. 3 shows an example of how to handle packet disruption in a system under failure according to an implementation example. The logic to detect the last received sensor data relies on the sensor providing sequential sensor data. The cloud / appliance server 120 and the gateways 110, 111 are connected by a wide area network (WAN) or cellular network, and in some configurations of those networks there is no guarantee that the sensor data arrives in first-in-first-out (FIFO) order (i.e., the sensor data may be sent A->B->C but received B->A->C). To avoid the disruption problem, the gateways 110, 111 append sequential numbers to the sensor data messages when they are sent so that a hash value can be calculated to sort the messages according to a window. Further details of this flow are shown with respect to FIG. 5(b).

[0042] 4 shows a scenario involving recovery of an active gateway according to one implementation example. If the gateway 110 does not recover and needs to be replaced, the sequence ends here. All of the data in the gateway 110 has already been sent by the gateway 111, so the data in the gateway 110 is discarded. However, if the gateway 110 recovers and becomes healthy again, on the management plane, the agent in the gateway 110 is notified that its mode is inactive. The now inactive gateway 110 stores the sensor data locally for a period of time and discards the old data. On the data plane, the data receiver service in the cloud / appliance 120 and discards the data from the gateway 110.

[0043] In one example scenario involving a non-silent failure, when a failure occurs, on the data plane, the cloud / appliance server 120 stops receiving sensor data. On the management plane, the agent of the gateway 110 sends an anomaly probe to the agent manager. The agent manager changes the state of the gateway 110 to abnormal and its mode to inactive. The agent manager promotes the gateway 111 to active. The agent of the gateway 110 is notified that its mode is inactive and is functioning in an inactive mode (i.e., the transmitter service stops sending data and starts storing data and discarding old data). The agent manager identifies the last sensor data received and notifies the inactive agent of that data. The agent of the gateway 111 is notified that its mode is active and of the last sensor data received by the cloud / appliance. The agent of the gateway 111 changes its state to active.

[0044] On the data plane, a data transmitter service in the gateway 111 sends all local data to the cloud / appliance server 120. The data transmitter service in the gateway 111 sends all data received from the sensors.

[0045] In this example, if gateway 110 does not recover and needs to be replaced, the sequence ends here: all data in gateway 110 has already been sent by gateway 111, so the data in gateway 110 is discarded. However, if gateway 110 recovers and is working again, on the data plane, the data transmitter service in gateway 110 will not send any data because gateway 110 is in inactive mode.

[0046] This gateway failover mechanism can be applied to computing systems in various Internet of Things (IoT) industries. Example industries are mobility (e.g., rail, airplane, ship, and connected car), smart factory, building management (e.g., elevators and escalators), power plants, oil and gas, water management, mining, space stations, and any other machine or device that generates data. The gateways can be hardware devices, such as IoT gateways and smartphones, or virtual devices, such as virtual machines and containers. Further details of this flow are shown with respect to FIG. 5(c).

[0047] FIG. 5(a) illustrates an example of a flow for a system before a failure according to an example implementation as shown in FIG. 1. At 500, the active gateway 110 and the inactive gateway 111 provide their health status to the cloud / application server 120. Since this situation is before the failure occurs, the active gateway 110 and the inactive gateway 111 send a normal health status to the cloud / application server 120. At 501, the cloud / application server 120 provides an inactive / active status to the active gateway 110 and the inactive gateway 111. In this scenario, the active gateway 110 is indicated that its status is active and the inactive gateway 111 is indicated that its status is inactive. At 502, the active gateway 110 transmits the sensor data received from the sensor that was buffered in memory. At 503, the inactive gateway 111 discards the data in memory according to a policy in the inactive gateway 111. Such policies may include discarding data after a certain predefined period of time set depending on the desired implementation, after the sensor data in memory reaches a certain threshold depending on the desired implementation, or any other desired implementation, as dictated by the active gateway 110 or cloud / application server 120.

[0048] FIG. 5(b) illustrates an example of a flow for a system after a failure according to an example implementation as shown in FIG. 2 and FIG. 3. At 510, the cloud / application server 120 fails to receive data and / or health status from the active gateway 110. At 511, the cloud / application server 120 changes the active / inactive status of the active gateway 110 to inactive and records the active gateway 110 as abnormal. At 512, the cloud / application server 120 changes the status of the normal selected inactive gateway 111 to active. The cloud / application server 120 can select the normal inactive gateway 111 by any desired implementation such as, but not limited to, best latency, best bandwidth, or depending on the desired implementation. At 513, the cloud / application server 120 creates a hash using the most recently received data to provide an identifier for the received data. At 514, the cloud / application server 120 instructs the normal selected inactive gateway 111 to change to active and provides the hash data of the last received data. At 515, the selected gateway 111 calculates a hash of the buffered data for each sliding window in its memory and compares the hash to the received hash to identify the last transmitted data. At 516, the selected gateway 111 changes its state from inactive to active. At 517, the selected gateway 111 discards the data identified from the calculated hash. Then, at 518, the selected gateway 111 takes over the role of the active gateway and transmits the data after discarding the identified data.

[0049] Figure 5(c) illustrates an example flow for recovery of an abnormal gateway according to an example implementation as shown in Figure 4. In the example of Figure 4, assume that the previously active abnormal gateway 110 recovers and is able to reconnect to the cloud / application server 120. At 520, the cloud / application server 120 instructs the previously active gateway 110 to change its state to inactive. At 521, the previously active gateway 110 changes its state to inactive. At 522, the previously active gateway assumes the function of the inactive gateway and discards data according to the inactive gateway policy.

[0050] 6 illustrates a system including multiple systems with connected sensors and a management device according to one implementation. One or more gateways 601-1, 601-2, 601-3, and 601-4 are communicatively connected to a network 600 that is connected to a management device 602 that receives sensor data from one or more sensors and facilitates functions for a cloud / application server. The management device 602 manages a database 603 that includes historical data collected from the sensors of the systems 601-1, 601-2, 601-3, and 601-4. In an alternative implementation, data from the sensors of the systems 601-1, 601-2, 601-3, and 601-4 may be stored in a central repository or database, such as a proprietary database that populates the data of an enterprise resource planning system, etc., and the management device 602 may access or retrieve such data from the central repository or database. Such systems may include a robotic arm with sensors, a turbine with sensors, a lathe with sensors, etc., depending on the desired implementation. In one implementation involving mobile platforms such as elevators, rail cars, etc., that may have difficulty maintaining an established network connection, the gateways 601-1, 601-2, 601-3, and 601-4 may take the form of cellular devices where the network 600 is in the form of a cellular network. In the system of FIG. 6, one of the gateways 601-1, 601-2, 601-3, and 601-4 is an active gateway that transmits sensor data, while the other gateways are inactive gateways that buffer the sensor data and discard the data according to an inactive gateway policy. Each of the gateways 601-1, 601-2, 601-3, and 601-4 may provide a health status to the management device 602.

[0051] FIG. 7 illustrates an example computing environment having an example computing device suitable for use in some implementations, such as the management apparatus 602 or gateways 601-1, 601-2, 601-3, 601-4 shown in FIG.

[0052] A computing device 705 in the computing environment 700 may include one or more processing units, cores, or processors 710, memory 715 (e.g., RAM, ROM, etc.), internal storage 720 (e.g., magnetic, optical, solid state storage, and / or organic), and / or I / O interface 725, any of which may be connected to a communication mechanism or bus 730 for communicating information or may be embedded in the computing device 705. The I / O interface 725 may also be configured to receive images from a camera or provide images to a projector or display, depending on the desired implementation.

[0053] The computing device 705 may be communicatively connected to an input / user interface 735 and an output device / interface 740. Either or both of the input / user interface 735 and the output device / interface 740 may be wired or wireless interfaces and may be removable. The input / user interface 735 may include any physical or virtual device, component, sensor, or interface that can be used to provide input (e.g., buttons, touch screen interface, keyboard, pointing / cursor control, microphone, camera, Braille, motion sensor, optical reader, etc.). The output device / interface 740 may include a display, television, monitor, printer, speaker, Braille, etc. In some implementations, the input / user interface 735 and the output device / interface 740 may be embedded in the computing device 705 or may be physically connected to the computing device 705. In other implementations, other computing devices may function as or provide the functionality of the input / user interface 735 and the output device / interface 740 for the computing device 705.

[0054] Examples of computing devices 705 may include, but are not limited to, highly mobile devices (e.g., smart phones, devices in vehicles and other machines, devices carried by humans and animals, etc.), mobile devices (e.g., tablets, notebooks, laptops, personal computers, portable televisions, radios, etc.), and devices not designed for mobility (e.g., desktop computers, other computers, information kiosks, televisions, radios with one or more embedded and / or connected processors, etc.).

[0055] Computing device 705 may be communicatively connected (e.g., via I / O interface 725) to external storage 745 and a network 750 for communicating with any number of networked components, devices, and systems, including one or more computing devices of the same or different configurations. Computing device 705, or any connected computing device, may function as, provide services to, or be referred to as, a server, a client, a thin server, a general purpose machine, a special purpose machine, or another label.

[0056] I / O interface 725 may include, but is not limited to, wired and / or wireless interfaces using any communication or I / O protocol or standard (e.g., Ethernet, 802.11x, Universal System Bus, WiMax, modem, cellular network protocols, etc.) to exchange information with at least all connected components, devices, and networks in computing environment 700. Network 750 may be any network or combination of networks (e.g., the Internet, a local area network, a wide area network, a telephone network, a cellular network, a satellite network, etc.).

[0057] The computing device 705 may use and / or communicate using computer usable or computer readable media, including transitory and non-transitory media. Transitory media include transmission media (e.g., metallic cables, optical fibers), signals, carrier waves, etc. Non-transitory media include magnetic media (e.g., disks and tapes), optical media (e.g., CD ROM, digital video disks, Blu-ray disks), solid-state media (e.g., RAM, ROM, flash memory, solid-state storage), and other non-volatile storage or memory.

[0058] In some examples of computing environments, a computing device 705 may be used to implement techniques, methods, applications, processes, or computer-executable instructions. The computer-executable instructions may be retrieved from a transitory medium and stored on and retrieved from a non-transitory medium. The executable instructions may be from one or more of any programming language, scripting language, and machine language (e.g., C, C++, C#, Java, Visual Basic, Python, Perl, JavaScript, etc.).

[0059] The processor 710 can execute under any operating system (OS) (not shown) in a native or virtual environment. One or more applications can be deployed, including a logic unit 760, an application programming interface (API) unit 765, an input unit 770, an output unit 775, and an inter-unit communication mechanism 795 for the various units to communicate with each other, with the OS, and with other applications (not shown). The described units and elements can be modified in design, function, configuration, or implementation and are not limited to the provided description.

[0060] In some implementations, when information or instructions to execute are received by API unit 765, they may be communicated to one or more other units (e.g., logic unit 760, input unit 770, output unit 775). In some implementations described above, logic unit 760 may be configured to control information flow between units and direct services provided by API unit 765, input unit 770, output unit 775. For example, the flow of one or more processes or implementations may be controlled by logic unit 760 alone or in combination with API unit 765. Input unit 770 may be configured to obtain inputs for calculations described in the implementations, and output unit 775 may be configured to provide outputs based on the calculations described in the implementations.

[0061] In the example of gateways 601-1, 601-2, 601-3, and 601-4, memory 715 is configured to store sensor data received from one or more sensors along with the active / inactive status and health status of the gateway. As shown in Figs. 1-5(c), processor 710 may be configured to provide the health status to a server over the network. When the status is set to active, processor 710 may be configured to send the stored received sensor data to a cloud / application server as shown in Fig. 1, and when the status is set to inactive, processor 710 may be configured to manage the received sensor data in memory until the data needs to be discarded according to the inactive gateway policy as shown in Figs. 1 and 5(a). When processor 710 receives a state change from the cloud / application server to change the status to active, processor 710 changes the status to active, discards from memory the received sensor data already sent to the server, and transmits the stored received sensor data to the server as shown in Fig. 5(b).

[0062] In the example of gateways 601-1, 601-2, 601-3, and 601-4, the processor 710 may be configured to change the health status to abnormal upon the occurrence of a failure and transmit the health status to the server. A failure may be determined according to any policy, such as, but not limited to, failure to receive sensor data at a specified time, failure to maintain required latency / bandwidth for transmission, etc., depending on the desired implementation.

[0063] In the example of gateways 601-1, 601-2, 601-3, and 601-4, as shown in Figures 3, 4, and 5(b), the processor 710 may be configured to receive a hash value from the server indicative of identified sensor data that has already been transmitted to the server, search for the received sensor data in memory corresponding to the received hash value using a window, and discard from memory 715 the received sensor data that has already been transmitted to the server by discarding the window of received sensor data that corresponds to the hash value.

[0064] In an example of the management device 602, such as the cloud / application server 120, as shown in FIGS. 2-3 and 5(b), the processor 710 may be configured to, for detecting a failure of an active gateway based on a health status, select an inactive gateway from one or more inactive gateways to take over the transmission of the active gateway, change the state of the active gateway to inactive, identify sensor data received from the active gateway before the failure, discard the identified sensor data, and control the selected inactive gateway to resume transmission of the sensor data. As shown in FIG. 2, detecting a failure of an active gateway based on a health status may be determined from not receiving a health status from the active gateway. In another implementation example, detecting a failure of an active gateway based on a health status may be determined from a health status from the active gateway indicating a failure (e.g., transmitting an abnormal status).

[0065] In an example of a management device 602, such as a cloud / application server 120, as shown in Figures 2-3 and 5(b), the processor 710 may be configured to identify sensor data received from an active gateway before the failure by calculating a hash value from a window of contiguous time series data in the received sensor data, and discarding the sensor data that identified the selected inactive gateway and controlling resuming transmission of the sensor data to the server includes sending the hash value to the selected inactive gateway, where the selected inactive gateway discards the received sensor data that matches the window and the hash value.

[0066] Some portions of the detailed description have been presented in terms of algorithms and symbolic representations of operations within a computer. These algorithmic descriptions and symbolic representations are the means used by those skilled in the data processing arts to convey the substance of their innovations to others skilled in the art. An algorithm is a sequence of defined steps leading to a desired end state or result. In one implementation, the steps performed require physical manipulations of tangible quantities to achieve a tangible result.

[0067] Unless otherwise specified, as will be apparent from the description, the description utilizing terms such as "processing," "computing," "operation," "determining," "displaying," and the like throughout the description will be understood to include the actions and processes of a computer system or other information processing device that manipulates and converts data represented as physical (electronic) quantities in the registers and memory of the computer system into other data similarly represented as physical quantities in the memory or registers of the computer system, or other information storage, transmission, or display device.

[0068] The implementations may also relate to an apparatus for performing the operations of the present specification. The apparatus may be specially constructed for the required purposes, or may include one or more general-purpose computers selectively activated or reconfigured by one or more computer programs. Such computer programs may be stored in a computer-readable medium, such as a computer-readable storage medium or a computer-readable signal medium. The computer-readable storage medium may include tangible media, such as, but not limited to, optical disks, magnetic disks, read-only memories, random access memories, solid-state devices and drives, or any other type of tangible or non-transitory medium suitable for storing electronic information. The computer-readable signal medium may include media such as carrier waves. The algorithms and displays presented herein are not inherently related to any particular computer or other apparatus. The computer programs may include pure software implementations that include instructions to perform the operations of the desired implementation.

[0069] Various general-purpose systems may be used with the programs and modules according to the examples herein, or it may prove convenient to construct more specialized apparatus to perform the desired method steps. Additionally, the implementations are not described with reference to a particular programming language. It will be appreciated that a variety of programming languages ​​can be used to implement the teachings of the implementations described herein. Instructions in the programming language may be executed by one or more processing devices, such as a central processing unit (CPU), processor, or controller.

[0070] As known in the art, the operations described above may be performed by hardware, software, or some combination of software and hardware. Various aspects of the implementations may be implemented using circuits and logic (hardware), while other aspects may be implemented using instructions stored on a machine-readable medium (software), which, when executed by a processor, cause the processor to perform a method for performing the implementation of the present application. Furthermore, some implementations of the present application may be performed exclusively in hardware, while other implementations may be performed exclusively in software. Furthermore, the various functions described may be performed in a single unit, or may be spread across several components in any number of ways. When performed by software, the method may be executed by a processor, such as a general purpose computer, based on instructions stored on a computer-readable medium. If necessary, the instructions may be stored on the medium in compressed and / or encrypted format.

[0071] Moreover, other implementations of the present application will be apparent to those skilled in the art from a consideration of the specification and practice of the teachings herein. Various aspects and / or components of the described implementations may be used alone or in any combination. It is intended that the specification and implementations be considered as examples only, with a true scope and spirit of the present application being indicated by the following claims.

Claims

1. transmitting a health status from each of the plurality of gateways to a server; the plurality of gateways includes an active gateway and one or more inactive gateways, the plurality of gateways receiving sensor data, and the active gateway transmitting the received sensor data to the server; the server detecting a failure of the active gateway based on the health status, the server selecting an inactive gateway from the one or more inactive gateways to take over transmission of the sensor data by the active gateway; the server changing the state of the active gateway to inactive; the server identifying the sensor data received from the active gateway prior to the failure; the server controlling the selected inactive gateway to discard the identified sensor data and resume transmitting the sensor data to the server; A method comprising:

2. The method of claim 1 , wherein the detection of the failure of the active gateway based on the health status is determined from not receiving the health status from the active gateway.

3. The method of claim 1 , wherein the detection of the failure of the active gateway based on the health status is determined from the health status from the active gateway indicating a failure.

4. 2. The method of claim 1 , wherein identifying the sensor data received from the active gateway prior to the failure includes calculating a hash value from a window of contiguous time series data within the received sensor data, and wherein controlling the selected inactive gateway to discard the identified sensor data and resume transmitting the sensor data to the server includes transmitting the hash value to the selected inactive gateway, wherein the selected inactive gateway discards and transmits the received sensor data that matches the window and the hash value.

5. The method of claim 1 , wherein the plurality of gateways are cellular devices, and the active gateway transmits the received sensor data to the server over a cellular network.

6. A non-transitory computer readable medium storing instructions for carrying out a process, the instructions comprising: transmitting a health status from each of the plurality of gateways to a server; the plurality of gateways including an active gateway and one or more inactive gateways, the plurality of gateways receiving sensor data, and the active gateway transmitting the received sensor data to the server; the server detecting a failure of the active gateway based on the health status, the server selecting an inactive gateway from the one or more inactive gateways to take over transmission of the sensor data by the active gateway; the server changing the state of the active gateway to inactive; the server identifying the sensor data received from the active gateway prior to the failure; the server controlling the selected inactive gateway to discard the identified sensor data and resume transmitting the sensor data to the server; A non-transitory computer readable medium comprising:

7. 7. The non-transitory computer-readable medium of claim 6, wherein the detection of the failure of the active gateway based on the health status is determined from not receiving the health status from the active gateway.

8. 7. The non-transitory computer-readable medium of claim 6, wherein the detection of the failure of the active gateway based on the health status is determined from the health status from the active gateway indicating a failure.

9. 7. The non-transitory computer-readable medium of claim 6, wherein identifying the sensor data received from the active gateway prior to the failure includes calculating a hash value from a window of contiguous time series data in the received sensor data, and controlling the selected inactive gateway to discard the identified sensor data and resume transmitting the sensor data to the server includes transmitting the hash value to the selected inactive gateway, wherein the selected inactive gateway discards the received sensor data that matches the window and the hash value.

10. 7. The non-transitory computer-readable medium of claim 6, wherein the plurality of gateways are cellular devices, and the active gateway transmits the received sensor data to the server over a cellular network.

11. a memory configured to store the received sensor data; Providing the health status to a server over the network; For devices with an active status Transmitting the stored received sensor data to the server; For the device having the state of inactivity Manage the received sensor data in a memory; receiving a state change to change said state to active changing the state of the device to active; discarding from the memory the received sensor data that has already been transmitted to the server; Transmitting the stored received sensor data to the server. A processor configured to 13. An apparatus comprising:

12. The processor, Regarding faults occurring within the device: changing the normality status to abnormal; Sending the health status to the server The apparatus of claim 11 configured to:

13. The processor, receiving a hash value from the server indicative of identified sensor data already transmitted to the server; using a window to search the received sensor data in the memory corresponding to the received hash value; 12. The apparatus of claim 11, configured to discard the window of the received sensor data that corresponds to the hash value; and to discard from the memory the received sensor data that has already been transmitted to the server by:

14. The apparatus of claim 11 , wherein the apparatus is a cellular device and the network is a cellular network.

Citation Information

Patent Citations

  • Data collection system, data collection method, neighbor information management server, gateway device, sensor node, monitoring server, and program

    JP2014064121A

  • Gateway device and sensor network system

    JP2017117098A

  • Redundant communication system and redundant communication system recovery method

    JP2017147680A

  • Server device, monitoring system, data processing method, and data processing program

    JP2018206320A