The complexity of computer networks has been rising over the last decades. Increasing interconnectivity between multiple devices, growing complexity of performed tasks and a strong collaboration between nodes are drivers for this phenomenon. An example is represented by Internet-of-Things devices, whose relevance has been rising in recent years. The increasing number of devices requiring updates and supervision makes maintenance more difficult. Human interaction, in this case, is costly and requires a lot of time. To overcome this, self-adaptive software systems (SAS) can be used. SAS are a subset of autonomous systems which can monitor themselves and their environment to adapt to changes without human interaction. In the literature, different approaches for engineering SAS were proposed, including techniques for executing adaptations on multiple devices based on generated plans for reacting to changes. Among those solutions, also decentralised approaches can be found. To the best of our knowledge, no approach for engineering a SAS exists which tolerates errors during the execution of adaptation in a decentralised setting. While some approaches for role-based execution reset the application in case of a single failure during the adaptation process, others do not make assumptions about errors or do not consider an erroneous environment. In a real-world environment, errors will likely occur during run-time, and the adaptation process could be disturbed.
This work aims to perform adaptations in a decentralised way on role-based systems with a relaxed consistency constraint, i.e., errors during the adaptation phase are tolerated. This increases the availability of nodes since no rollbacks are required in case of a failure. Moreover, a subset of applications, such as drone swarms, would benefit from an approach with a relaxed consistency model since parts of the system that adapted successfully can already operate in an adapted configuration instead of waiting for other peers to apply the changes in a later iteration. Moreover, if we eliminate the need for an atomic adaptation execution, asynchronous execution of adaptation would be possible. In that case, we can supervise the adaptation process for a long time and ensure that every peer takes the planned actions as soon as the internal task execution allows it.
To allow for a relaxed consistent way of adaptation execution, we develop a decentralised adaptation execution protocol, which supports the notion of eventual consistency. As soon as devices reconnect after network congestion or restore their internal state after local failures, our protocol can coordinate the recovery process among multiple devices to attempt recovery of a globally consistent state after errors occur. By superseding the need for a central instance, every peer who received information about failing peers can start the recovery process. The developed approach can restore a consistent global configuration if almost all peers fail. Moreover, the approach supports asynchronous adaptations, i.e., the peers can execute planned adaptations as soon as they are ready, which increases overall availability in case of delayed adaptation of single nodes.
The developed protocol is evaluated with the help of a proof-of-concept implementation. The approach was run in five different experiments with thousands of iterations to show the applicability and reliability of this novel approach. The time for execution of the protocol and the number of exchanged messages has been measured to compare the protocol for different error cases and system sizes, as well as to show the scalability of the approach. The developed solution has been compared to a blocking approach to show the feasibility compared to an atomic approach. The applicability in a real-world scenario has been described in an empirical study using an example of a fire-extinguishing drone swarm. The results show that an optimistic approach to adaptation is suitable and specific scenarios can benefit from the improved availability since no rollbacks are required. Systems can continue their work regardless of the failures of participating nodes in large-scale systems.:Abstract VI
1. Introduction 1
1.1. Motivational Use-Case 2
1.2. Problem Definition 3
1.3. Objectives 4
1.4. Research Questions 5
1.5. Contributions 5
1.6. Outline 6
2. Foundation 7
2.1. Role Concept 7
2.2. Self-Adaptive Software Systems 13
2.3. Terminology for Role-Based Self-Adaptation 15
2.4. Consistency Preservation and Consistency Models 17
2.5. Summary 20
3. Related Work 21
3.1. Role-Based Approaches 22
3.2. Actor Model of Computation and Akka 23
3.3. Adaptation Execution in Self-Adaptive Software Systems 24
3.4. Change Consistency in Distributed Systems 33
3.5. Comparison of the Evaluated Approaches 40
4. The Decentralised Consistency Compensation Protocol 43
4.1. System and Error Model 43
4.2. Requirements to the Concept 44
4.3. The Usage of Roles in Adaptations 45
4.4. Protocol Overview 47
4.5. Protocol Description 51
4.6. Protocol Corner- and Error Cases 64
4.7. Summary 66
5. Prototypical Implementation 67
5.1. Technology Overview 67
5.2. Reused Artifacts 68
5.3. Implementation Details 70
5.4. Setup of the Prototypical Implementation 76
5.5. Summary 77
6. Evaluation 79
6.1. Evaluation Methodology 79
6.2. Evaluation Setup 80
6.3. Experiment Overview 81
6.4. Default Case: Successful Adaptation 84
6.5. Compensation on Disconnection of Peers 85
6.6. Recovery from Failed Adaptation 88
6.7. Impact of Early Activation of Adaptations 91
6.8. Comparison with a Blocking Approach 92
6.9. Empirical Study: Fire Extinguishing Drones 95
6.10. Summary 97
7. Conclusion and Future Work 99
7.1. Recap of the Research Questions 99
7.2. Discussion 101
7.3. Future Work 101
A. Protocol Buffer Definition 103
Acronyms 108
Bibliography 109
Identifer | oai:union.ndltd.org:DRESDEN/oai:qucosa:de:qucosa:85481 |
Date | 17 May 2023 |
Creators | Matusek, Daniel |
Contributors | Schill, Alexander, Steimann, Friedrich, Habich, Dirk, Technische Universität Dresden |
Source Sets | Hochschulschriftenserver (HSSS) der SLUB Dresden |
Language | English |
Detected Language | English |
Type | info:eu-repo/semantics/publishedVersion, doc-type:doctoralThesis, info:eu-repo/semantics/doctoralThesis, doc-type:Text |
Rights | info:eu-repo/semantics/openAccess |
Page generated in 0.0029 seconds