Method and device for controlling a mesh communication network for executing tasks relating to stateless functions

The proposed consensus model addresses the challenges of managing heterogeneous IoT nodes by dividing them into energy and calculation capacity layers and dynamically grouping them, optimizing task execution and resource management, thereby improving fault tolerance and reducing resource requirements.

WO2024194550A1PCT designated stage expired Publication Date: 2024-09-26STELLANTIS AUTO SAS +1
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
PCT/FR2024/050290
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-03-17
Filing Date
2024-03-08
Publication Date
2024-09-26

AI Technical Summary

Technical Problem

Current consensus models are inadequate for managing mesh communication networks with heterogeneous IoT nodes due to their high heterogeneity, limited resources, intermittent availability, and dynamic nature, which complicates fault tolerance, synchronization, and task coordination.

Method used

A novel consensus model that divides nodes into two layers based on energy and calculation capacity, dynamically groups IoT nodes into subnetworks, and elects resource managers and orchestrators to optimize task execution, reducing message exchange and energy consumption while ensuring fault tolerance and performance.

Benefits of technology

This approach enhances fault tolerance, synchronization, and task coordination in mesh communication networks, reducing the need for on-board resources and enabling resilient Vehicle-to-Anything applications.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure FR2024050290_26092024_PF_FP
    Figure FR2024050290_26092024_PF_FP
Patent Text Reader

Abstract

The present invention relates to a method and a device for controlling a mesh communication network for executing tasks relating to stateless functions, the mesh communication network comprising gateway nodes and loT nodes. The method groups (110) the loT nodes into computing units, and selects (120) a resource manager gateway which selects (130) one compute orchestrator node per computing unit. The method computes (170) a response to a request by a majority vote based on intermediate responses collected (160) by the loT nodes of a computing unit. The final response is then transmitted (180) by the compute orchestrator node to the resource manager gateway which transmits (190) the response to a user that sent the request.
Need to check novelty before this filing date? Find Prior Art

Description

DESCRIPTION Title: Method and device for controlling a mesh communication network for the execution of tasks relating to stateless functions Technical field

[0001] The present invention claims priority from French application 2302508 filed on 03 / 17 / 2023, the content of which (text, drawings and claims) is incorporated herein by reference. The present invention relates to the execution of tasks relating to stateless functions at the edge of a mesh communication network comprising loT nodes. In particular, the present invention relates to the control of such a mesh communication network. Technological background

[0002] With the advent of new forms of connected objects, smartphones and computers, the applications implemented on these connected objects have gradually increased their demand for connectivity and computing power. This increase in application resource requirements has been accompanied by a steady increase in the embedded features, power consumption, and price of devices.

[0003] In an effort to keep devices affordable for the public and to perform tasks related to, for example, stateless functions in a resource-optimized environment, cloud computing has expanded its services by adding nodes at the edge of mesh communication networks: These are commonly referred to as Fog or Edge.

[0004] In cloud computing, edge nodes support fewer computing resources than other nodes in the cloud. However, their lower latency and network load are sufficient to meet the demands of today's applications. Even if adding resources at the edge of cloud networks While mesh communication solves current resource demand issues, cloud computing still relies on computing resources that will need to evolve over time. The development of cloud computing is therefore economically and environmentally fragile because it could be heavily impacted by future semiconductor shortages and / or resource crises.

[0005] To improve the capabilities of the edge layer of the cloud without deploying massive amounts of additional computing resources, it is necessary to leverage the resources that are already deployed.

[0006] IoT (Internet of Things) devices are a major source of underutilized computing resources. Their number is growing exponentially, allowing them to keep up with the evolving needs of cloud computing. IoT nodes are generally characterized by their lack of onboard resources (compute, power, and storage), intermittent availability, and faults. These nodes typically experience network outages and unexpected crashes that leave them unreachable for extended periods. These IoT nodes may also experience Byzantine faults due to low-end features or malicious attacks.

[0007] To use IoT nodes for cloud computing, it is therefore necessary to implement a process for controlling the infrastructure of mesh communication networks to overcome the faults of IoT nodes and thus ensure the security and availability of task calculations at the edge of the cloud.

[0008] [Fig. 1] schematically illustrates a mesh communication network 1, according to a particular and non-limiting exemplary embodiment of the present invention.

[0009] The mesh communication network 1 advantageously corresponds to a cellular type network, for example a mobile telephone cellular network. Such a cellular network is composed of a set of cells, each cell corresponding to a geographical coverage area of ​​a communication antenna (also called a base station) allowing radio communications to be established between users (also called clients or users, each user being a carrier of a mobile communication device) and / or between the users and the mesh communication network 1. The size of a cell varies and is for example between 1 km and a few tens of kilometers (for example 20 or 30 km).

[0010] A user corresponds, for example, to a natural person carrying a mobile communication device such as a smartphone or a tablet. According to a variant, a user corresponds to a vehicle carrying a computer-type communication device, for example a telematics control unit, known as a TCU (Telematic Control Unit), or a mobile communication device such as a smartphone embedded in the vehicle and connected to the latter via a wired connection (for example, a USB connection (Universal Serial Bus)) or a wireless connection (for example, a Bluetooth® or Wifi® connection).

[0011] The mesh communication network 1 implements, for example, communications using LTE (Long-Term Evolution), LTE-Advanced (Long-Term Evolution - Advanced), C-V2X (Cellular - Vehicle to Everything), which is based on 4G and soon 5G, based on LTE.

[0012] Mesh communication network 1 is intended to execute tasks related to stateless functions. These tasks are ordered by user through requests issued via mesh communication network 1. The user then receives responses to his requests via mesh communication network 1.

[0013] The topology of the mesh communication network 1 includes nodes called gateway to indicate that these nodes correspond to gateways (servers) of the mesh communication network 1, and loT nodes to indicate that these nodes correspond to loT devices.

[0014] According to the example in Figure 1, the topology of mesh communication network 1 has a fully connected backbone between six gateways P1 to P6 and a set of star subnets in which each gateway P1 to P6 can reach a group of loT nodes (represented by unreferenced circles). The unreferenced circles in solid lines represent loT nodes that are either sleeping or awake. Light gray circles represent failed IoT nodes or gateways. Dotted circles represent faulty IoT nodes or gateways. Solid lines represent viable connection links, while dotted lines represent faulty connection links.

[0015] Gateways P1 to P6 manage a large set of IoT nodes. They are considerably fewer in number than IoT nodes but more resourceful and more available than IoT nodes. Their availability is almost complete. However, even though this may occur much less frequently than for IoT nodes, gateways can experience network outages, unexpected crashes, or malicious attacks. These attacks have a greater impact in the case of mesh communication network 1 because they then generally deny service to the gateway and IoT devices in its subnet.

[0016] Thus, it is imperative to provide a method for controlling the mesh communication network 1 which manages the faults of the loT nodes and gateways in order to ensure continuity of the execution of tasks relating to stateless functions in the "cloud".

[0017] Defining such a process involves defining a consensus model to control the mesh communication network 1 .

[0018] Such a consensus model must (i) guarantee system security under both Byzantine and non-Byzantine faults that include network partitioning, delays, node inability to reach, and packet loss, (ii) maintain service availability as soon as at least one gateway and three IoT nodes are available, (iii) be time-independent to synchronize topology and task execution and implement an asynchronous intermediate communication mechanism, and (iv) be completed as soon as a majority is reached and be able to compensate for the performance loss caused by slower nodes.

[0019] Consensus models (consensus algorithms) arose from the need to provide non-trivial solutions to achieve agreement between multiple machines in the most efficient and reliable way possible and to strengthen the fault tolerance of systems. These algorithms, through the use of multiple processes and mechanisms, guarantee a single output value between a set of possible values ​​proposed by different machines (nodes) on a set of machines (“cluster” in English).

[0020] Paxos (A.Yousefpour. 2019. All one needs to know about fog computing and related edge computing paradigms: A complete survey. In J. of Syst. Architecture. Elsevier., D.Ongaro. 2014. In search of an understandable consensus algorithm. In 2014 USENIX Annual Technical Conference) is one such consensus model. Paxos works by allowing a group of nodes to reach agreement on a value, synchronizing these values, and making them learnable for all nodes in a node group. To achieve this, Paxos classifies nodes into three roles (proposer, acceptor, and learner); it is possible for a node to play more than one role at the same time.To simplify vote counting and avoid desynchronization between nodes when responding to different simultaneous requests, this model implements a two-phase process: (1) a promise phase and, once the majority of nodes have reached agreement on a value, (2) a validation phase, during which the proposer determines the final answer to a request and propagates the result to all nodes in the node group to ensure that the entire mesh communication network is synchronized.

[0021] Paxos has been widely criticized due to its complex applicability to real-world distributed systems due to system heterogeneity and cluster node constraints. Multiple proposals have attempted to improve this adaptability and reduce the complexity of Paxos. However, these proposals are still too complex for systems using IoT nodes.

[0022] With the goals of achieving high performance levels and facilitating the understanding and implementation of the consensus model, as well as adaptability to real distributed systems, Raft (L. Lamport. 2019. Time, docks, and the ordering of events in a distributed system. In Concurrency: the Works of Leslie Lamport) then emerged as an alternative to Paxos for managing logs replicated across all nodes in a node group. Even though Raft focuses on storing data replication rather than executing tasks, the way of reaching agreements on the synchronization and integrity of stored data is based on the same principles as Paxos.

[0023] To simplify the distribution of tasks (i.e., system coordination or maintenance of the mesh communication network topology), Raft proposes three exclusive and different roles of nodes: (a) "leader", the node is then responsible for coordinating all system management actions and requests and ensuring consistency and organization, (b) "follower", the node then passively listens and follows the leader's orders, and (c) "candidate", the node then intervenes during a leader election process. In addition to this centralization of power by the leader, and the means to resolve inconsistencies in the synchronization of log tables, Raft relies on Lamport logical clocks (L. Lamport. 2019. Time, docks, and the ordering of events in a distributed system. In Concurrency: the Works of Leslie Lamport.) by adding a counting number (called a "term" in Raft) that allows the detection of obsolete information and the restoration of the node log table. However, despite the simplifications and optimizations provided by Raft, the complexity and cost of the voting process on which this model is based makes its applicability difficult to mesh communication networks comprising IoT nodes that are highly mobile and faulty.

[0024] Pirogue (A. Munir et al. 2017. IFCIoT: Integrated Fog Cloud loT: A novel architectural paradigm for the future Internet of Things. In IEEE Consumer Electronics Magazine) is presented as a variant of Raft. Pirogue focuses on significantly reducing its energy footprint while maintaining similar performance to Raft. In Pirogue, the classic static voting process is replaced by a dynamic linear voting process (S. Jajodia et al. 1990. Dynamic voting algorithms for maintaining the consistency of a replicated database. In ACM Transactions on Database Systems.). This change replaces the classic static quorum majority with a dynamic quorum, requiring fewer nodes to obtain a majority in the event of a gateway (server) disconnection. Pirogue proposes a new role for nodes: witness, the node is then able to participate in the consensus quorum when needed. This role is implemented by low-power devices that do not have the capacity to store all of the system's data, which reduces the energy footprint of the node group.

[0025] These optimizations enable Pirogue to achieve performance, availability, and fault tolerance close to those of a five-node cluster modeled by Raft with low-power-footprint configurations such as four-node or three-node and one-witness clusters.

[0026] Current consensus models cannot operate on mesh communication network topologies 1 comprising heterogeneous loT nodes of the type described in relation to Figure 1 given the high heterogeneity, the limited resources of the loT nodes, the intermittent availability of the loT nodes, the high dynamics of the loT nodes and the lack of direct connection between the loT nodes within the mesh communication network 1 .

[0027] Indeed, loT nodes and gateways are very heterogeneous among themselves in terms of resources which depend not only on their hardware characteristics which can be either high-end or low-end, but also on the duty cycle and software of these nodes and gateways, since the aim is to use the reserve resources of the loT nodes and gateways without interrupting their original functions.

[0028] Furthermore, IoT nodes are highly resource-constrained. Even though gateways are much less resource-constrained, they still represent a small part of the total mesh communication network nodes 1 . On the other hand, IoT devices are characterized, for the most part, by their lack of hardware resources (computing and storage) and their battery constraints, since they are usually powered by batteries. Current consensus models are usually deployed on server nodes (gateways) capable of storing a full copy of the communication network nodes' logs, which is not the case for IoT nodes.

[0029] Additionally, IoT nodes have intermittent availability. Despite the high connectivity capabilities of gateways, IoT nodes often experience network outages and unexpected crashes. Their availability is therefore unreliable, unpredictable, and generally intermittent.

[0030] Additionally, consensus models rely on a large number of coordination and synchronization messages transmitted over a fully connected backbone, but given the size of mesh communication network topologies comprising IoT nodes, multiple backbones are present requiring messages to pass through several intermediate nodes before reaching their destination. Thus, reducing the number of messages is necessary to improve the performance of a consensus model.

[0031] Additionally, IoT nodes are highly mobile, both physically and network-wise. This makes it difficult to maintain complete synchronization of log tables as required by current consensus models.

[0032] It is therefore necessary to define a consensus model that can be deployed on a mesh communication network 1 comprising gateways and loT nodes that address the various limitations of current consensus models outlined above.

[0033] Summary of the present invention

[0034] An object of the present invention is to solve at least one of the problems of the technological background described above.

[0035] An object of the present invention is a collaborative computing service platform targeting the execution of stateless functions and using loT nodes having low to medium availability of an already deployed communication network infrastructure.

[0036] The present invention is based on an original consensus model that can be compared to the prior art consensus models such as Raft or Pirogue. But the consensus model of the present invention extends these classic consensus models by adding: (i) roles and classification of nodes: The consensus model divides nodes into two layers based on their energy and computing capabilities: a first layer, which contains few gateways likely to be resource managers of the mesh communication network, and a second layer, which contains many loT nodes. In addition, loT nodes are dynamically grouped into subnetworks, also called computing units (UC), depending on their degree of availability and their computing capacities, to optimize the execution of tasks relating to user requests. Thus, PCM operates on a heterogeneous set of layers. (ii) control of the mesh communication network at two levels: at the level of a gateway then resource manager which is dynamically elected and at the level of each subnet by electing a calculation orchestrator node OC for each subnet. (iii) dynamic subnetwork update capabilities and OC node election to respond to a highly dynamic mobile IoT environment that results in each of the subnetworks changing.

[0037] This consensus model aims to compensate for the limitations of IoT nodes (i.e., high heterogeneity, limited resources, intermittent availability, high dynamics, and lack of direct connection between nodes within the platform) to ensure fault tolerance, information synchronization in the mesh communication network, and coordination of task execution.

[0038] The present invention enables the execution of tasks by a loosely connected mesh communication network infrastructure by optimizing the election of a resource management gateway that reduces the total number of messages exchanged.

[0039] Two-level control and clustering of nodes for their availability and computing capacity allows to compensate for their errors and improve the overall performance of task execution by the mesh communication network.

[0040] The present invention limits the energy consumption for executing tasks at the edge of the cloud because it uses the resources of IoT devices instead of traditional nodes at the edge of the cloud.

[0041] The present invention centralizes the management of resources of a large number of loT nodes without significantly increasing the messages exchanged or slowing down the performance of the mesh communication network.

[0042] Since the present invention improves fault tolerance and task coordination, it helps reduce the on-board resources required by vehicles, thereby reducing the price of the on-board architectures of these vehicles.

[0043] The present invention offers many possibilities for the development of future resilient Vehicle-to-Anything (V2X) applications that could be commercialized.

[0044] According to a first aspect, the present invention relates to a method for controlling a mesh communication network for the execution of tasks relating to stateless functions, said mesh communication network comprising nodes called gateway to indicate that these nodes correspond to gateways of the mesh communication network and nodes called loT nodes to indicate that these nodes correspond to devices connected to the internet, said method comprising the following steps: - obtaining computing units from loT nodes, each computing unit comprises loT nodes and is attached to a gateway to form a subnetwork of the mesh communication network; - election of a resource manager gateway from among the gateways of the mesh communication network, said resource manager gateway minimizing a number of messages exchanged in the mesh communication network for the execution of tasks; - election, by the resource management gateway, of a computing orchestrator node for each computing unit, a computing orchestrator node of a computing unit being elected from among the nodes of said computing unit based on the performance and availability of the nodes of said computing unit; - acceptance, by the resource management gateway, of a task execution request issued by a user; - assignment, by the resource management gateway, of said request to loT nodes of a computing unit for the execution of tasks of said request by the loT nodes of said computing unit; - collection, by a computation orchestrator node of said computation unit, of at least one intermediate response to said request, each intermediate response being either obtained by the computation orchestrator node or emitted by an loT node of the computation unit to the computation orchestrator node following the execution of the task by said loT node of the computation unit; - obtaining, by the calculation orchestrator node, a final response from a majority vote based on the intermediate responses collected; - transmission of the final response by the computing orchestrator node to the resource management gateway; and - transmission of the final response by the resource management gateway to the user.

[0045] According to a particular and non-limiting exemplary embodiment, if the resource management gateway does not receive a final response relating to said request before a time limit has elapsed, said request is assigned to another computing unit.

[0046] According to a particular and non-limiting exemplary embodiment, the method further comprises a step of verifying the presence of said request in a cache memory of the resource management gateway, and a step of sending a final response stored in the cache memory in relation to said request if said request is stored in said cache memory.

[0047] According to a particular and non-limiting exemplary embodiment, the contents of the cache memory of the resource management gateway are synchronized with the contents of the cache memories of the other gateways of the mesh communication network.

[0048] According to a particular and non-limiting exemplary embodiment, the resource management gateway periodically broadcasts to the gateways of the mesh communication network a message comprising a first table formed from a union of several second tables, each second table representing an availability and characteristics of the loT nodes of a subnetwork of the mesh communication network, if a gateway does not receive any message during an election expiration period, said gateway triggers a new election of a resource manager gateway.

[0049] According to a particular and non-limiting exemplary embodiment, a new election of a resource management gateway is triggered to verify whether a current resource management gateway minimizes the number of messages exchanged in the mesh communication network for the execution of tasks.

[0050] According to a particular and non-limiting exemplary embodiment, a new election of a resource management gateway is triggered as soon as a gateway of the mesh communication network is disconnected.

[0051] According to a particular and non-limiting exemplary embodiment, the method further comprises a step of updating a topology of the mesh communication network and broadcasting an updated topology to all the gateways of the mesh communication network.

[0052] According to a second aspect, the present invention relates to a device for controlling a mesh communication network for the execution of tasks relating to stateless functions, the device comprising a memory associated with a processor configured for the implementation of the steps of the method according to the first aspect of the present invention.

[0053] According to a third aspect, the present invention relates to a vehicle comprising a device according to the third aspect.

[0054] According to a fourth aspect, the present invention relates to a computer program which comprises instructions adapted for executing the steps of the method according to the first aspect of the present invention, in particular when the computer program is executed by at least one processor.

[0055] Such a computer program may use any programming language, and may be in the form of source code, object code, or intermediate code between source code and object code, such as in a partially compiled form, or in any other desirable form.

[0056] According to a fifth aspect, the present invention relates to a computer-readable recording medium on which is recorded a computer program comprising instructions for carrying out the steps of the method according to the first aspect of the present invention.

[0057] On the one hand, the recording medium can be any entity or device capable of storing the program. For example, the medium may include a storage medium, such as a ROM memory, a CD-ROM or a microelectronic circuit type ROM memory, or a magnetic recording medium or a hard disk.

[0058] Furthermore, this recording medium may also be a transmissible medium such as an electrical or optical signal, such a signal being able to be conveyed via an electrical or optical cable, by conventional or hertzian radio or by self-directed laser beam or by other means. The computer program according to the present invention may in particular be downloaded from a network such as the Internet.

[0059] Alternatively, the recording medium may be an integrated circuit in which the computer program is incorporated, the integrated circuit being adapted to perform or to be used in performing the method in question. Brief description of the figures

[0060] Other characteristics and advantages of the present invention will emerge from the description of the particular and non-limiting exemplary embodiments of the present invention below, with reference to the appended figures 1 to 8, in which:

[0061] [Fig. 1] schematically illustrates, according to a particular and non-limiting exemplary embodiment of the present invention;

[0062] [Fig. 2] illustrates a flowchart of the different steps of the method 10 for electing a resource management gateway according to a particular and non-limiting exemplary embodiment of the present invention;

[0063] [Fig. 3] illustrates an exemplary embodiment of the method 10 of Figure 1;

[0064] [Fig. 4] illustrates a flowchart of the different steps of the method 40 for controlling the mesh communication network 1 for the execution of tasks relating to stateless functions, according to a particular and non-limiting exemplary embodiment of the present invention;

[0065] [Fig. 5] illustrates a flowchart of the different steps of the method 20 for updating the topology of the mesh communication network 1 for the execution of tasks relating to stateless functions, according to a particular and non-limiting exemplary embodiment of the present invention;

[0066] [Fig. 6] illustrates an example of broadcasting an SFTT table in the mesh communication network 1 according to a particular and non-limiting example of the present invention;

[0067] [Fig. 7] illustrates a flowchart of the different steps of the method 30 for forming the calculation units, according to a particular and non-limiting exemplary embodiment of the present invention;

[0068] [Fig. 8] schematically illustrates a device for controlling the mesh communication network 1 for the execution of tasks relating to stateless functions, according to a particular and non-limiting exemplary embodiment of the present invention.

[0069] Description of examples of implementation

[0070] Methods and devices will now be described in the following with reference to Figures 1 to 8. The same elements are identified with the same reference signs throughout the description which follows.

[0071] The present invention relates to a method 10 for controlling a mesh communication network 1 for the execution of tasks relating to stateless functions.

[0072] The present invention also relates to a method 20 for updating the topology of the mesh communication network 1 to orchestrate the fault-tolerant execution of tasks on often faulty or unavailable loT nodes of this mesh communication network 1.

[0073] The present invention also relates to a method 30 of forming computing units by grouping loT nodes.

[0074] According to the present invention, each gateway of the mesh communication network 1 stores three up-to-date tables: a global topology table (GTT), a topology table of the nodes of the sub-network attached to the gateway (SFTT) and a task tracking table (TTT).

[0075] The SFTT table represents the availability and characteristics of the loT nodes in a subnet of the mesh communication network 1 comprising several loT nodes. This subnet is attached to a gateway. The SFTT table is stored by each gateway.

[0076] The GTT table of a gateway is formed by the union of SFTT tables of other gateways that are known to the said gateway. A gtt table index ndex is associated with each GTT table. This table index is used for synchronization of GTT tables as will be seen later.

[0077] The TTT table contains the tasks to be executed and their execution status. A ttt table index is associated with each TTT table. This table index is used for synchronizing the TTT tables, as will be seen later.

[0078] An IoT node is either in a “follower” state or in a Calculus Orchestrator (OC) state.

[0079] A follower node is a passive IoT node, meaning it does not issue any requests of its own. A follower node executes task execution requests assigned to it and sends an intermediate response to an OC node of the computing unit to which this follower node belongs.

[0080] A compute orchestrator node, called an OC node, is an loT node that is elected for each CPU. An OC node of a CPU executes task execution requests assigned to it and obtains an intermediate response following the execution of a task. An OC node also collects intermediate responses produced by follower nodes of this CPU following the execution of this task by the other follower nodes of the CPU. The OC node produces a final response from a voting process based on the intermediate responses it has obtained as will be seen later.

[0081] A gateway can be in either a Resource Manager (RM) state, a Dispatcher state, or a Candidate state.

[0082] An RM gateway is suitable for implementing the method 20 for controlling a mesh communication network for the execution of tasks relating to stateless functions. In particular, an RM gateway is suitable for managing all user requests (if a user issues a request to another gateway of the mesh communication network 1, this request is redirected to the RM gateway). It is also suitable for assigning a task to be executed to follower nodes of a computing unit UC, for dynamically selecting the OC nodes and for retransmitting a final response to a user issuing a task execution request.

[0083] An RM gateway is also adapted to implement the method 20 for updating the topology of the mesh communication network 1. In particular, an RM gateway is adapted to manage the dynamics of the loT nodes and to broadcast a state of a topology of the mesh communication network 1, as known to the RM gateway, to the other gateways of the mesh communication network 1. An RM gateway also synchronizes with each other the GTT and TTT tables stored by the gateways of the mesh communication network 1.

[0084] The RM gateway is also suitable for implementing a method 30 of forming the UC computing units by grouping the loT nodes.

[0085] For example, the RM gateway can determine a group of loT nodes and add new loT nodes to this group without consulting other gateways, only having to propagate information about this addition once the decision is made. In particular, an RM gateway is suitable for optimally choosing an OC node for each UC computing unit.

[0086] Using a central RM gateway simplifies the management of the highly dynamic GTT, SFTT, and TTT tables that are used for task execution.

[0087] Although gateway failures are considerably less frequent than those of IoT nodes, an RM gateway may fail or disconnect from the mesh communication network 1 , in which case a new RM gateway is elected.

[0088] A dispatcher responds to requests from an RM gateway.

[0089] According to the present invention, time is divided into periods of variable length called eras. Eras are numbered with a consecutive integer.

[0090] Different dispatchers may observe transitions between eras at different times, and they may not always be aware that one or more elections occurred while they were off-grid. Thus, eras act as logical clocks, allowing gateways to identify the most recent information.

[0091] Table indexes and eras (gtt ndex and ttt ndex) are used for synchronizing GTT and TTT tables as will be seen in detail later.

[0092] A gateway in the candidate state, in short candidate gateway, is used to elect a new RM gateway. When converting a gateway to a candidate gateway, the gateway increments its era by one, initializes its indexes in the GTT and TTT tables to 0, triggers the election process for an RM gateway, and resets an election timer (election delay).

[0093] Given the intermittent availability and dynamics of IoT nodes, the nodes in Mesh 1 communicate using asynchronous remote procedure calls (RPCs) via asynchronous message devices deployed on gateways. An asynchronous message device deployed on a gateway allows a message to be transmitted from the gateway to the IoT nodes in the subnetwork attached to that gateway. Messages are then delivered at most once to the recipients to improve performance. However, a message to an IoT node is retransmitted by a gateway in the event that an error occurs during the connection of the IoT node with the gateway. Messages are retained until they are consumed or deleted.Gateways can clean up the message stacks of IoT nodes to clear old, unconsumed messages that arrived at the gateway while those recipient IoT nodes were unavailable.

[0094] Different messages are defined. Each message includes a type, identifiers of a sending and receiving node, an era of information carried by this message, a table index and a payload.

[0095] According to a particular and non-limiting example of embodiment, a message can be of one of the following four types 1, 2, 3 or 4:

[0096] configuration of a follower loT node intended to be known by a dispatcher;

[0097] GTT table intended to be known to a recipient;

[0098] SFTT table intended to be known to a recipient; and

[0099] TTT table intended to be known to a recipient.

[0100] The table index of a message can be equal to gtt ndex for messages of type 1 to 3 and tttjindex for type 4 messages.

[0101] The useful part of the message depends on the message type. If type 1 then the part includes a follower duty cycle. The follower duty cycle is defined in milliseconds by three values<Actif, Occupé, Endormi> with the addition of these three values ​​less than 120s). If type 2 then the useful part includes a GTT table. If type 3 then the useful part includes the SFTT table. If type 4 then the useful part includes the TTT table.

[0102] When a receiver receives a new message of type 1, 2, 3 or 4, if the information in the received message is relevant, i.e. if the era of this message is greater than the current era of the receiver, the receiver updates its era and updates its local information. The information in the received message can also be relevant if the era of this message is equal to the current era of the receiver and if the index of this message is greater than a table index of the receiver (gttjndex or ttt ndex). In this case, the receiver updates its local information, i.e. it updates the relevant table index which then becomes equal to the index carried by the received message and updates the corresponding table according to the useful part of this received message.If the information in the received message is relevant, an update history log is updated by adding an entry for any new information in the message that is not already present in the log and by deleting entries from the log that do not match the information carried by the received message. An update history log is updated by adding an entry for any new information. information from the message that is not already present in the log and by deleting log entries that do not correspond to the information carried by the received message.

[0103] If an existing log entry conflicts with a new entry, the existing entry and everything after it are deleted.

[0104] If the information of the received message is obsolete, that is to say if the era of this message is less than the current era of the receiver or if the era of this message is equal to the current era of the receiver and if the index of this message is less than a table index of the receiver then the message is ignored and the receiver sends its GTT table (message type 2) and its TTT table (message type 4) to the sender of the received message.

[0105] [Fig. 2] illustrates a flowchart of the different steps of the method for controlling the mesh communication network 1 for the execution of tasks relating to stateless functions, according to a particular and non-limiting exemplary embodiment of the present invention.

[0106] In a step 110, computing units UC are obtained, each computing unit UC comprising loT nodes of the mesh communication network 1. Each computing unit UC is attached to a gateway of the mesh communication network 1 and forms a subnetwork of the mesh communication network.

[0107] In a step 120, a gateway is elected as an RM gateway from among the gateways of the mesh communication network 1, said RM gateway minimizing a number of messages exchanged in the mesh communication network for the execution of tasks.

[0108] In a step 130, an OC node is elected by the RM gateway for each computing unit UC, an OC node of a computing unit being elected from among the nodes of said computing unit based on the performance and availability of the nodes of said computing unit.

[0109] In a step 140, the RM gateway accepts a task execution request issued by a user.

[0110] Each request (called a Function Execution Request (FER) in English) contains a stateless function to be executed by the loT nodes of a CPU computing unit. A FER request is composed of function scripts to be executed and libraries required to execute these scripts.

[0111] In a step 150, the RM gateway assigns the request to nodes of a computing unit UC for the execution of the tasks of this request by the nodes of this computing unit UC.

[0112] In a step 160, the OC node of said computing unit UC collects at least one intermediate response, each intermediate response being either obtained by the OC node or sent by a follower node of the computing unit to the OC node following the execution of the task by said follower node of the computing unit UC.

[0113] In a step 170, the OC node determines a final response from a majority vote based on collected intermediate responses.

[0114] In a step 180, the OC node transmits the final response to the RM gateway.

[0115] In a step 190, the RM gateway transmits the final response to the user.

[0116] According to a variant of the method, in a step 135, the topology of the mesh communications network 1 is updated and broadcast to all the gateways of the mesh communications network 1.

[0117] Alternatively, if the RM gateway does not receive a final response to a request before a timeout period has elapsed, the task is assigned to another CPU.

[0118] According to a variant, in a step 145, the RM gateway checks the presence of each request received by the RM gateway in its local cache memory.

[0119] If the query has already been requested and matches one of the queries stored in a cache, in a step 146, the RM gateway sends the final stored response to the user and refreshes the cache.

[0120] If no cache entry matches the query, the RM Gateway adds the query to its Gateway TTT table as a new entry, increments the TTT table index, and issues an asynchronous message carrying the query to the nodes of a compute unit assigned to execute the query.

[0121] This variant prioritizes computing units formed from the least faulty nodes at a given time.

[0122] When the OC node of the selected UC computing unit responds the final response related to a query, the RM gateway stores the final response in its local TTT table entry related to the query, sends the final response to the user and synchronizes its TTT table with that of the dispatchers of the mesh communication network 1.

[0123] [Fig. 3] illustrates an example of performing the tasks according to a particular and non-limiting example of the present invention.

[0124] According to the example in Figure 3, a user CI1 issues a request referenced f11 to an RM gateway. The RM gateway checks whether f11 matches an entry in one of its caches.

[0125] Suppose that f11 corresponds to a referenced request f2 stored in the FIFO referenced cache of the RM gateway. The RM gateway then sends to user Cl 1 the final response Rf2 stored in the FIFO cache in relation to f2. The era and the TTT table index of the RM gateway remain unchanged. In Figure 3, the era is equal to 1 (e=1 ) and the TTT table index is equal to 1 (ttt_index=1 ).

[0126] Now suppose that f11 does not match a FIFO cache entry. The RM gateway then stores the new request f11 in the cache and increments the TTT ttt ndex table index by one, which increases to 2.

[0127] The RM gateway also selects a computing unit UC formed, according to the example in Figure 3, of an OC node and two follower nodes F1 and F2 and emits f11 to the OC node and to the nodes F1 and F2.

[0128] The OC node executes the request f11 and obtains an intermediate response referenced a.

[0129] Node F1 executes query f11 and provides an intermediate response c to node OC.

[0130] Node F2 executes query f11 and provides an intermediate response a to node OC.

[0131] The OC node therefore obtains a majority of votes and considers the intermediate response a as being the final response (step 170). The OC node then sends the final response a to the RM gateway (step 180) which stores it in the FIFO memory in relation to the new entry corresponding to the request f11. The RM gateway then sends the final response a to the user CL1 (step 190).

[0132] It can be noted that the cache memory can follow the principle of a FIFO (First In First Out) stack. In this case, when the maximum number of cache entries is reached, any new entry implies the deletion of an entry stored in the cache memory. This is what is illustrated in Figure 3: Saving f11 implies the deletion of an entry corresponding to a query f1 .

[0133] According to a particular and non-limiting exemplary embodiment, the content of the cache memory of the RM gateway is synchronized with the contents of the cache memories of the other gateways in the same way as the GTT tables, that is to say that each time a new entry is added or deleted to the cache memory of an RM gateway, the index of the cache memory is incremented by one unit and asynchronous messages are broadcast to synchronize the cache memories of the other distributors of the mesh communication network 1 with the cache memory of the RM gateway.

[0134] According to a particular and non-limiting exemplary embodiment, the triggering of an election of an RM gateway (step 120) is based on a heartbeat mechanism defined as follows.

[0135] When a gateway starts, it positions itself in the dispatcher state and broadcasts a type 2 message informing the other gateways in the mesh communication network 1 of the contents of its GTT table (the SFTT tables it knows). The gateway remains in this dispatcher state until it receives a message indicating that an RM gateway is valid or a message indicating that it must switch to a candidate state.

[0136] According to a particular and non-limiting exemplary embodiment, an RM gateway periodically broadcasts a type 2 message comprising its GTT table to the gateways of the mesh communication network 1 in order to maintain its authority and keep the tables of all the gateways synchronized. However, if a dispatcher does not receive any message during a so-called election expiration period, this dispatcher assumes that no RM gateway nor election process is in progress and triggers a new election to choose a new RM gateway (step 120).

[0137] According to a particular and non-limiting embodiment, a new election is triggered as soon as a gateway is disconnected from the mesh communication network 1.

[0138] According to a particular and non-limiting exemplary embodiment, a new election is triggered to verify whether a current RM gateway minimizes the number of messages exchanged in the mesh communication network for the execution of tasks. In this case, the RM gateway triggers a new election of an RM gateway (step 120) by considering itself as a dispatcher. If the RM gateway is no longer the candidate gateway resulting from an election, the RM gateway increases the era and determines its successor, propagating its choice both to the new candidate gateway and to the rest of the dispatchers of the mesh communication network 1. This succession mechanism makes it possible to accelerate the election of a new RM gateway (step 120) and to ensure over time the optimality of a current RM gateway.

[0139] It may also occur that a dispatcher receives a message from another gateway, RM or dispatcher at any time with an era or table index higher than its era (or with the same era or table index from a different RM gateway) while having already considered an active RM gateway. This case may likely be due to malicious behavior or segmentation of the mesh communication network 1 .

[0140] In this case, according to a particular and non-limiting embodiment, the dispatcher alerts the active RM gateway, which merges its GTT table with the GTT table of the other RM gateway, triggers the election process again to lead to an election of a single RM gateway.

[0141] According to a particular and non-limiting exemplary embodiment, if an RM or candidate gateway is "obsolete", this gateway is assumed to have temporarily lost network connection. This gateway synchronizes with the era and table indexes of the RM gateway and triggers a new RM gateway election (step 120), returning to the dispatcher state. This same mechanism operates in the opposite direction when receiving an old era number from another dispatcher.

[0142] According to a particular and non-limiting example embodiment, if an election expiration time of the RM gateway elapses without receiving any request sent by the RM gateway, a dispatcher increments its era by one unit and launches a new election of a new RM gateway.

[0143] If a candidate gateway receives a message from a node claiming to be an RM gateway for the same or higher era, the candidate gateway switches to dispatcher state.

[0144] According to a particular and non-limiting exemplary embodiment, if the election period elapses without a majority of dispatchers, the candidate gateways merge their GTT tables, increase the era and trigger a new RM gateway election (step 120).

[0145] According to a particular and non-limiting exemplary embodiment, the election of an RM gateway is implemented by a method 40 of deterministic election of an RM gateway based on a list of all the distributors of the mesh communication network 1 (figure 4)

[0146] In a step 410, a dispatcher increments its era by one unit.

[0147] In a step 420, a candidate gateway is determined from among the dispatchers in the dispatcher list.

[0148] For this, for example, a most recent GTT table in mesh communication network 1 is considered. This GTT table contains a list of dispatchers, each with a list of connected nodes and their computing capabilities. This list excludes the RM gateway.

[0149] Initially, two variables optimalDispatcher and optimalNumberOfMsgs are initialized to NULL.

[0150] For each dispatcher dispLeadTmp in the dispatcher list, steps 430, 440, and 450 are performed.

[0151] In step 430, a message count totalMessages is initialized to 0.

[0152] In step 440, for each dispatcher disp in the dispatcher list, a number expectMsgs of messages that are expected to be exchanged between the dispatcher DispLeadTmp and the dispatcher disp is determined by considering that the dispatcher DispLeadTmp is elected RM gateway. The total number of messages totalMsgs is then updated by: totalMsgs + expectMsgs *distance(dispLeadTmp, disp) in which distance(DispLeadTmp, disp) specifies a distance between the DispLeadTmp and disp dispatchers.

[0153] In step 450, if the total number of messages totalMsgs is less than an optimal number of messages optimalNumberOfMsgs then the dispatcher DispLeadTmp is considered as an RM gateway and a variable optimalDispatcher is updated with the identifier of the dispatcher DispLeadTmp. The optimal number of messages optimalNumberOfMsgs is also equal to the total number of messages totalMsgs.

[0154] When each DispLeadTmp dispatcher in the GTT list has been considered, the optimalDispatcher variable indicates which dispatcher was elected as the candidate gateway and the optimalNumberOfMsgs variable indicates the total number of messages relating to this dispatcher.

[0155] When performing this election process 40, some dispatchers may not respond within a time limit less than an election timeout. Each of these dispatchers that has exceeded this election timeout in turn performs the election process 40 and informs the candidate gateway resulting from the first election that, to the best of its knowledge, this candidate gateway is the most optimal RM gateway for this new era. If a dispatcher in the mesh communication network 1 receives one of these messages, it attempts to reach this candidate gateway. If it succeeds, then this gateway is considered to have voted for this candidate gateway to be the new RM gateway. If the dispatcher is unable to wait for this candidate gateway, it will trigger an election in the remaining dispatchers that have not already voted for this candidate gateway.Then, this dispatcher transitions to the candidate gateway state until one of three events occurs: (a) it wins the election, (b) another dispatcher wins the election or is already the RM gateway, or (c) an election period elapses without a winner.

[0156] In event a) occurs, a candidate gateway wins an election only if the majority of available dispatchers in mesh communication network 1 vote that it is the most optimal RM gateway. Each dispatcher votes for exactly one candidate gateway in each election, which, given the deterministic behavior of the election process, must always be the same if these The dispatchers are synchronized across the entire mesh communication network 1; this never leads to a split vote. However, to ensure the accuracy of the process, majority rule ensures that only one candidate gateway can win the election for a particular era.

[0157] In event b), while waiting for votes, a candidate gateway may receive a message from another candidate gateway claiming to be the RM gateway. If the era of this RM gateway is at least as large as the current era of the candidate gateway, the candidate gateway recognizes it as a legitimate RM gateway and returns to the dispatcher state. However, if the era of this RM gateway is smaller than the current era, the message is rejected and the candidate gateway remains in the candidate state.

[0158] In event c), at the end of an election period, none of the candidate gateways has enough votes to win or lose the election. This can happen if there are multiple fractures in the mesh 1 communication network that prevent the dispatchers from having an up-to-date GTT table. When this happens, each candidate gateway sends its GTT table to the rest of the candidate gateways. This merges the GTT tables and the election process is re-executed, thus increasing the era. This time, it is confirmed that all participating dispatchers share the same GTT table, and therefore the same candidate gateway. Once a candidate gateway wins the election, this gateway propagates the decision to the rest of the dispatchers.

[0159] In a particular and non-limiting example embodiment, since the election of an RM gateway is calculated according to a deterministic method, split votes are unusual. However, if this occurs, the split nodes merge their GTT tables and restart a new election of an RM gateway.

[0160] [Fig. 5] illustrates a flowchart of the different steps of the method 20 for updating the topology of the mesh communication network 1 for the execution of tasks relating to stateless functions, according to a particular and non-limiting exemplary embodiment of the present invention.

[0161] In a step 210, the gateway to which a subnetwork is attached determines the availability of each node of this subnetwork and updates its SFTT table to indicate the availability and characteristics of each available node of the subnetwork. Tl

[0162] It is advantageous to delegate the maintenance of the availability of the nodes of a subnet to the gateway to which this subnet is attached because the congestion of the mesh communication network 1 and the overall number of messages exchanged on this network are reduced.

[0163] Each gateway then tracks IoT node faults flexibly since each IoT node has different availability and periodicity.

[0164] According to a particular and non-limiting embodiment, each loT node of each subnetwork periodically emits a message to indicate that it is available. If a gateway attached to a subnetwork does not receive said message or a message relating to an execution of a task from an loT node of said subnetwork during a given period, said gateway assumes that the loT node has disconnected and purges it from its SFTT table. Similarly, if a gateway attached to a subnetwork receives a message for the first time relating to an execution of a task from an loT node of said subnetwork, said gateway assumes that the loT node is connected and adds it to its SFTT table.

[0165] In a step 220, the SFTT tables of the gateways are broadcast to the gateways of the mesh communication network 1 so that the new topology of a subnetwork is known to all the gateways of the mesh communication network 1.

[0166] [Fig. 6] illustrates an example of broadcasting an SFTT table in the mesh communication network 1 according to a particular and non-limiting example of the present invention.

[0167] Let's assume in this example that mesh communication network 1 includes an RM gateway and four D2 to D5 splitters.

[0168] Let us also assume that the RM gateway includes a local GTT table formed from the union of its local SFTT table referenced SFTT1 and the SFTT tables of each of the distributors D2 to D5 referenced respectively SFTT2, SFTT3, SFTT4 and SFTT5. The current era of the RM gateway is equal to 1 (e=1) and the GTT table index is equal to 1 (i=1).

[0169] In step 221, the RM gateway periodically broadcasts a type 2 message to broadcast its GTT table to all the other distributors of the mesh communication network 1.

[0170] Once this message is received by a dispatcher, in step 222, if the information in the received message is relevant, this dispatcher updates its GTT table and the information it stores based on the relevant information carried by this received message.

[0171] For example, this dispatcher updates the era (e=1 ) and the GTT table index (i=1 ) as well as its GTT table according to the GTT table carried by the type 2 message.

[0172] According to the example in Figure 6, the distributor D2 stores its local SFTT table referenced SFTT2, the GTT table referenced GTT1 carried by the received message. Each other distributor D3 to D5 does the same.

[0173] In a step 223, each distributor sends a type 3 message carrying its SFTT table to the RM gateway.

[0174] In a step 224, the RM gateway compares the SFTT table of each message received with information that it knows from the subnetwork corresponding to this SFTT table (local SFTT tables forming the local GTT table).

[0175] If the RM gateway finds no changes (case 1 in Figure 6), the RM gateway ignores the content of the received messages.

[0176] If the RM Gateway finds a change, in step 225, the RM Gateway merges the changes into its local GTT table and increases the GTT table index. The index only increases by one each period, regardless of the number of changes detected.

[0177] According to the example in Figure 6, distributors D3 and D4 each have an SFTT table modified by the appearance or disappearance of at least one loT node in their subnetwork. These modified SFTT tables are referenced SFTT3' and SFTT4'. Distributors D3 and D4 then each send a type 3 message to the RM gateway which detects a change in the SFTT tables of distributors D3 and D4. The RM gateway then merges the changes into its local GTT table (now referenced GTT2) and increases the GTT table index (i=2) (case 2 in Figure 6). The era of the RM gateway remains equal to 1 (e=1). The GTT table index only increases by one unit each period, regardless of the number of changes detected.

[0178] In a step 226, the RM gateway broadcasts the new GTT table to all the distributors of the mesh communication network 1.

[0179] According to the example in Figure 6, the distributors D2 to D5 are then informed of the new GTT table (GTT2) of the RM gateway during a next broadcast of the type 2 message (step 221).

[0180] Since this process relies on comparing SFTT tables, it is beneficial to keep the comparison as lightweight as possible. However, the sizes of these tables are different. The SFTT table has a list of a dozen nodes, and the GTT table has a list of dozens of SFTT tables, for example.

[0181] According to a variant of the process for updating the topology of the mesh communication network 1 , the RM gateway compares the pair <era, table index > of the received message with that stored locally, which makes it possible to identify which is the most recent table among SFTT tables and the local GTT table. The process then continues by comparing the SFTT tables with each other once the SFTT tables contained in the received message are more recent than the local GTT table (has a higher era or the same era but a higher table index than that of the SFTT table of the GTT table).

[0182] [Fig. 7] illustrates a flowchart of the different steps of the method 30 for forming the computing units by grouping loT nodes, according to a particular and non-limiting exemplary embodiment of the present invention;

[0183] The performance of each UC compute unit is highly dependent on receiving at least half of the votes from the UC compute unit's nodes quickly so that the OC node can determine a final answer to a query.

[0184] Accordingly, the computational unit formation method (step 110) attempts to minimize the gap between the availability periods of the nodes.

[0185] In a step 310, the RM gateway classifies the loT nodes according to their degree of availability and their computing capacities: an loT node is said to be efficient when its degree of availability and its computing capacities are high and said to be non-efficient otherwise.

[0186] Additionally, considering the limited capabilities of IoT devices, and in order to waste as few computational periods as possible, the computational unit formation method also examines the current computational unit distribution to assign nodes to a computational unit in a way that minimizes changes in this distribution.

[0187] In a step 320, a number of calculation units N is calculated based on a number of nodes M per calculation unit.

[0188] According to a particular and non-limiting embodiment, N is equal to 5.

[0189] This embodiment is advantageous because it allows optimal computing performance to be obtained according to tests carried out by the inventor.

[0190] In a step 330, each computing unit UC is formed by grouping N loT nodes of the mesh communication network 1, at least one of said nodes being efficient and at least one of said nodes being non-efficient.

[0191] According to a particular and non-limiting embodiment, the N fastest nodes are for example distributed among the UC computing units.

[0192] According to a particular and non-limiting embodiment, each computing unit comprises an OC node.

[0193] According to a particular and non-limiting embodiment, when a computing unit comprises 5 nodes, one of the nodes of a computing unit is considered to be a computing orchestrator node, two other nodes are high-performance nodes and two other nodes are non-performance nodes.

[0194] In a step 340, each computing unit UC forms a subnetwork of the mesh communication network 1 which is attached to a gateway of the mesh communication network 1. The gateway stores an SFTT table representing the availability and the characteristics of the loT nodes of the subnetwork. The loT nodes of this computing unit UC are informed of their attachment to this computing unit UC.

[0195] This method of forming computing units makes it possible to increase the number of computing periods and to homogenize the capacities of the infrastructure of the mesh communication network 1 while seeking to maintain a previous distribution of nodes.

[0196] This computational unit formation process can consume significant resources and add overhead to the mesh communication network control process 1 . Thus, if the loT nodes have high intermittency in their availability, this computational unit formation process cannot be executed every time an loT node disconnection occurs without heavily penalizing the performance of the mesh communication network control process 1 .

[0197] According to a particular and non-limiting exemplary embodiment, the method of forming a calculation unit only occurs if one of the following conditions is verified: (a) a compute unit does not contain an OC node or a high-performance loT node; (b) the number of loT nodes in mesh communication network 1 is less than 3. N (c) (c) when a predetermined period has elapsed to reoptimize the distribution of loT nodes.

[0198] The RM gateway monitors the loT nodes to ensure that these rules are respected.

[0199] Alternatively, to keep the infrastructure as efficient as possible by offsetting node losses, the RM gateway prioritizes task execution to UC compute units with their entire quorum of active, high-performing nodes.

[0200] Alternatively, the RM gateway informs the OC node of a computing unit UC whenever a change occurs in that computing unit UC regarding the number of nodes of that computing unit.

[0201] This variant optimizes the performance of the mesh communication network control process 1.

[0202] Alternatively, when a disconnection of an OC node from a CPU occurs, the RM gateway must choose another OC node for that CPU from among the nodes of that CPU to keep that CPU operational until the CPU formation process is performed again.

[0203] This way, each compute unit can tolerate one node disconnection outside the quorum of performing nodes and up to three disconnections if two of them are non-performing nodes.

[0204] Once an loT node of a CPU receives a message carrying a request to execute tasks, this loT node executes these tasks and returns its result to the OC node of this CPU. The OC node, which knows the state of the CPU, then checks whether it is able to obtain a majority vote.

[0205] According to a particular and non-limiting exemplary embodiment, the voting method used by the OC node is a variant of the voting process known as DLV [S. Jajodia et al. 1990. Dynamic voting algorithms for maintaining the consistency of a replicated database. In ACM Transactions on Database Systems]. DLV dynamically sets a vote majority threshold based on the number of connected nodes, which improves the flexibility and performance of the voting process. In case of a tie, the OC node prioritizes its intermediate response over a FER or, if its intermediate response is not among the tied intermediate responses, the first intermediate response that reaches the tied quantity is retained as the final response. Using the DLV-based voting process requires at least n + 2 servers per CPU to be able to tolerate n failures instead of the 2n + 1 required by Raft. This property allows CPUs to operate with fewer members with an acceptable level of fault tolerance, which is critical in a faulty and highly dynamic environment.

[0206] [Fig. 8] schematically illustrates a device for controlling the mesh communication network 1 for the execution of tasks relating to stateless functions, according to a particular and non-limiting exemplary embodiment of the present invention.

[0207] The device 23 is for example configured for the implementation of at least one of the steps of at least one method 10, 20, 30 or 40. The elements of the device 23, individually or in combination, can be integrated into a single integrated circuit, into several integrated circuits, and / or into discrete components. The device 23 can be produced in the form of electronic circuits or software (or computer) modules or even a combination of electronic circuits and software modules.

[0208] According to various particular embodiments, the device 23 is coupled in communication with other similar devices or systems, for example the computers 20, 21 and / or 22 and / or with communication devices, for example a TCU (from the English “Telematic Control Unit” or in French “Telematic Control Unit”), for example via a communication bus or through dedicated input / output ports.

[0209] The device 23 comprises one (or more) processor(s) 230 configured to execute instructions for carrying out at least part of the steps of at least one method 10, 20, 30 or 40 and / or for executing the instructions of the software(s). embedded in the device 23. The processor 230 may include integrated memory, an input / output interface, and various circuits known to those skilled in the art. The device 23 further comprises or is in association with at least one memory 231 corresponding for example to a volatile and / or non-volatile memory and / or comprises a memory storage device which may comprise volatile and / or non-volatile memory, such as EEPROM, ROM, PROM, RAM, DRAM, SRAM, flash, magnetic or optical disk.

[0210] The computer code of the embedded software(s) comprising the instructions to be loaded and executed by the processor is for example stored in the memory 231.

[0211] According to a particular and non-limiting embodiment, the device 23 comprises a block 232 of interface elements for communicating with external devices, for example a remote computing device. The interface elements of the block 232 comprise one or more of the following interfaces: (i) RF radio frequency interface, for example Bluetooth® or Wi-Fi® type, LTE (Long-Term Evolution), LTE-Advanced; (ii) USB interface (from the English “Universal Serial Bus” or “Universal Serial Bus” in French); (iii) HDMI interface (from the English “High Definition Multimedia Interface” or “High Definition Multimedia Interface” in French); (iv) LIN interface (from the English “Local Interconnect Network”).

[0212] According to another particular embodiment, the device 23 comprises a communication interface 233 which makes it possible to establish communication with other devices, such as the on-board computers 20, 21 and / or 22 of the vehicle via a communication channel 234. The communication interface 233 corresponds for example to a transmitter configured to transmit and receive information and / or data via the communication channel 234. The communication interface 233 corresponds for example to a wired network of the CAN type (from the English “Controller Area Network” or in French "Controller Area Network"), CAN FD (from the English "Controller Area Network Flexible Data-Rate" or in French "Flexible Data Rate Controller Network"), FlexRay (standardized by ISO 17458) or Ethernet (standardized by ISO / IEC 802-3).

[0213] Of course, the present invention is not limited to the exemplary embodiments described above but extends to a method of controlling a mesh communication network for the execution of tasks relating to stateless functions which would include secondary steps without thereby departing from the scope of the present invention. The same would apply to a device configured for the implementation of such a method.

[0214] The present invention also relates to a vehicle, for example an automobile or more generally an autonomous land-based motor vehicle, comprising the device of Figure 8.

Claims

CLAIMS 1. Method for controlling a mesh communication network for the execution of tasks relating to stateless functions, said mesh communication network comprising nodes called gateways to indicate that these nodes correspond to gateways of the mesh communication network and nodes called loT nodes to indicate that these nodes correspond to devices connected to the internet, each gateway of the mesh communication network stores up to date three tables, a global topology table, GTT, a topology table of the nodes of the subnetwork attached to the gateway, SFTT, and a task tracking table, TTT, said method comprising the following steps: - obtaining (110) computing units from the loT nodes, each computing unit comprises loT nodes and is attached to a gateway to form a subnetwork of the mesh communication network; - election (120) of a resource manager gateway (RM) among the gateways of the mesh communication network, said resource manager gateway (RM) minimizing a number of messages exchanged in the mesh communication network for the execution of tasks; - election (130), by the resource manager gateway (RM), of a calculation orchestrator node for each calculation unit, a calculation orchestrator node of a calculation unit being elected from among the nodes of said calculation unit according to the performance and availability of the nodes of said calculation unit; - acceptance (140), by the resource manager gateway (RM), of a task execution request issued by a user; - assignment (150), by the resource manager gateway (RM), of said request to loT nodes of a computing unit for the execution of tasks of said request by the loT nodes of said computing unit; - collection (160), by a calculation orchestrator node (OC) of said calculation unit, of at least one intermediate response to said request, each intermediate response being either obtained by the calculation orchestrator node or emitted by an loT node of the calculation unit to the calculation orchestrator node (OC) following the execution of the task by said loT node of the computing unit; - obtaining (170), by the calculation orchestrator node, a final response from a majority vote based on the collected intermediate responses; - transmission (180) of the final response by the calculation orchestrator node (OC) to the resource manager gateway (RM); and - transmission (190) of the final response by the resource manager (RM) gateway to the user.

2. Method according to claim 1, wherein if the resource management gateway (RM) does not receive a final response relating to said request before a time limit has elapsed, said request is assigned to another computing unit.

3. Method according to one of the preceding claims, which further comprises a step (145) of verifying the presence of said request in a cache memory of the resource management gateway, and a step (146) of sending a final response stored in the cache memory in relation to said request if said request is stored in said cache memory.

4. Method according to claim 3, in which the contents of the cache memory of the resource management gateway are synchronized with the contents of the cache memories of the other gateways of the mesh communication network.

5. Method according to one of the preceding claims, in which the resource management gateway periodically broadcasts to the gateways of the mesh communication network a message comprising a first table (GTT) formed from a union of several second tables (SFTT), each second table representing an availability and characteristics of the loT nodes of a subnetwork of the mesh communication network, if a gateway does not receive any message during an election expiration period, said gateway triggers a new election (120) of a resource management gateway (RM).

6. Method according to one of the preceding claims, in which a new election (120) of a resource management gateway (RM) is triggered to check whether a current resource management gateway minimizes the number of messages exchanged in the mesh communication network for the execution of tasks.

7. Method according to one of the preceding claims, in which a new election (120) of a resource manager gateway (RM) is triggered as soon as a gateway of the mesh communication network is disconnected.

8. The method of claim 1, which further comprises a step (135) of updating a topology of the mesh communication network and broadcasting an updated topology to all gateways of the mesh communication network.

9. Device for controlling a mesh communication network for the execution of tasks relating to stateless functions comprising said mesh communication network comprising said gateways and said loT nodes, said computing units, a resource manager gateway (RM), a computing orchestrator node for each computing unit, a memory associated with at least one processor configured for the implementation of the steps of the method according to one of claims 1 to 8.

10. Vehicle comprising a device of claim 9.

Citation Information

Patent Citations

  • POWDER MATERIAL DOSING device

    FR2302508A1

  • Data synchronization in edge computing networks

    US20220358118A1