Context As a Resource: a Service-Oriented Approach for Context-Awareness Daniel Romero
Total Page:16
File Type:pdf, Size:1020Kb
Context as a Resource: A Service-Oriented Approach for Context-Awareness Daniel Romero To cite this version: Daniel Romero. Context as a Resource: A Service-Oriented Approach for Context-Awareness. Soft- ware Engineering [cs.SE]. Université des Sciences et Technologie de Lille - Lille I, 2011. English. tel-00608838 HAL Id: tel-00608838 https://tel.archives-ouvertes.fr/tel-00608838 Submitted on 15 Jul 2011 HAL is a multi-disciplinary open access L’archive ouverte pluridisciplinaire HAL, est archive for the deposit and dissemination of sci- destinée au dépôt et à la diffusion de documents entific research documents, whether they are pub- scientifiques de niveau recherche, publiés ou non, lished or not. The documents may come from émanant des établissements d’enseignement et de teaching and research institutions in France or recherche français ou étrangers, des laboratoires abroad, or from public or private research centers. publics ou privés. D´epartement de formation doctorale en informatique Ecole´ doctorale SPI Lille UFR IEEA Context as a Resource: A Service-Oriented Approach for Context-Awareness THESE` pr´esent´eeet soutenue publiquement le 4 Juillet 2011 pour l'obtention du Doctorat de l'universit´edes Sciences et Technologies de Lille (sp´ecialit´einformatique) par Daniel Francisco Romero Acero Composition du jury Rapporteurs : Yolande Berbers, Katholieke Universiteit Leuven, Belgium No¨elde Palma, Universit´ede Grenoble, France Examinateurs : Fran¸coiseAndr´e, Universit´ede Rennes I, France Hausi A. M¨uller, University of Victoria, Canada Ernesto Exposito, Institut National des Sciences Appliqu´ees(INSA), France Directrice : Laurence Duchien, Universit´eLille I, France Co-directeur : Lionel Seinturier, Universit´eLille I, France Co-encadrant : Romain Rouvoy, Universit´eLille I, France Laboratoire d'Informatique Fondamentale de Lille { UMR USTL/CNRS 8022 { INRIA Lille Nord Europe Mis en page avec la classe thloria. Contents List of Tables vii Chapter 1 Introduction3 1.1 Understanding the Problem.............................5 1.2 Goals of this dissertation...............................7 1.3 Contribution......................................7 1.4 Dissertation Roadmap.................................9 1.5 Publications...................................... 10 Part I State of the Art 13 Chapter 2 Concepts and Background 15 2.1 Approaches for the Integration of Information................... 16 2.1.1 SOAP...................................... 16 2.1.2 REpresentational State Transfer (REST)................... 18 2.1.3 Integration via SOAP Framework vs. Integration via the REST Archi- tectural Style.................................. 19 2.2 Component Models for SOA Applications..................... 20 2.2.1 OSGi Framework Specification....................... 20 2.2.2 Service Component Architecture (SCA) Model.............. 20 2.2.3 Choosing the Component Model...................... 21 2.3 SCA Platforms..................................... 22 2.3.1 The Fabric3 Platform............................. 22 2.3.2 The Tuscany Platform............................. 22 2.3.3 The FraSCAti platform............................ 23 2.3.4 Selecting an SCA Platform.......................... 27 2.4 Service Discovery Protocols............................. 29 2.4.1 Universal Plug and Play (UPnP)....................... 30 2.4.2 Service Location Protocol (SLP)....................... 30 i Contents 2.5 Summary........................................ 31 Chapter 3 Ubiquitous Approaches 33 3.1 Definitions and Concepts............................... 34 3.2 Middleware Solutions for Context-Awareness................... 35 3.2.1 Gaia....................................... 36 3.2.2 Gaia Microserver............................... 36 3.2.3 Aura...................................... 37 3.2.4 CORTEX.................................... 37 3.2.5 CARISMA................................... 37 3.2.6 MobiPADS................................... 38 3.2.7 MiddleWhere................................. 38 3.2.8 SOCAM..................................... 39 3.2.9 CAPNET.................................... 39 3.2.10 Reconfigurable Context-Sensitive Middleware (RCSM).......... 40 3.2.11 CARMEN ..................................... 40 3.2.12 Cooltown ................................... 40 3.2.13 A Large Scale Peer-to-Peer Context Dissemination Middleware.... 41 3.2.14 A Peer-to-Peer based infrastructure for Context Distribution in Mobile and Ubiquitous Environments (MUSIC Peer-to-Peer).......... 41 3.2.15 Summary of Middleware Solutions..................... 42 3.3 Service Discovery Solutions for Ubiquitous Environments............ 42 3.3.1 INDISS: Interoperable Discovery System for Networked Services... 42 3.3.2 ReMMoC: A Reflective Framework for Discovery and Interaction in Heterogeneous Mobile Environments................... 43 3.3.3 A Multi-protocol Framework for Ad-hoc Service Discovery....... 43 3.3.4 Service Discovery Solution Summary.................... 44 3.4 Data-Oriented Architectures in Context-Mediation................ 44 3.5 Limitations of the existing approaches....................... 45 3.6 Summary........................................ 46 Chapter 4 Autonomic Computing Approaches 49 4.1 Feedback Control Loops (FCLs)........................... 50 4.2 Relation Between the Autonomic Computing and the Context-Aware Com- puting.......................................... 51 4.3 Autonomic Solutions................................. 52 4.3.1 JADE: A Middleware for Self-Management of Distributed Software En- vironments................................... 52 4.3.2 Agent-based Middleware for Context-Aware Services.......... 53 4.3.3 Framework for Autonomic Context-Aware Service Composition.... 53 4.3.4 Adaptation Platform for Autonomic Context-Aware Services...... 54 4.3.5 The ANS (Autonomic Network Services) Framework.......... 54 ii 4.3.6 MIddleware DemonstrAtor Server (MIDAS) Framework........ 55 4.3.7 AutoHome: an Autonomic Management Framework for Pervasive Home Applications.............................. 55 4.3.8 MUSIC: Middleware Support for Self-Adaptation in Ubiquitous and Service-Oriented Environments....................... 56 4.3.9 Rainbow.................................... 56 4.3.10 Distributed Autonomous Component-Based ARchitectures (DACAR) Solution..................................... 57 4.4 Limitation of the Existing Approaches....................... 58 4.5 State-of-the-Art Synthesis............................... 58 4.6 Dissertation Challenges................................ 60 4.7 Summary........................................ 60 Part II Contribution 63 Chapter 5 Enabling Context Mediation In Ubiquitous Environments 65 5.1 Properties for Context Mediation.......................... 67 5.2 SPACES Overview................................... 70 5.3 Modeling Context as Resources: The SPACES Metamodel............ 71 5.4 SPACES Fundamentals................................ 72 5.5 Supporting Spontaneous Communications in SPACES.............. 76 5.6 SPACES Connectors Detailled Architecture.................... 77 5.7 Integrating SPACES Connectors into SCA..................... 79 5.7.1 Information Exchange between SCA Services: The case of the Resource-Oriented Bindings......................... 80 5.7.2 Bringing Service Discovery in SCA: The case of Ubiquitous Bindings. 81 5.8 Summary........................................ 86 Chapter 6 Building Ubiquitous Feedback Control Loops 87 6.1 Properties for Context-Based Adaptation...................... 88 6.2 Context-based Adaptation as a Process....................... 89 6.3 Building Ubiquitous Feedback Control Loops................... 92 6.4 Determining the Required Reconfiguration for the Applications........ 95 6.4.1 Example: The MOBIHOME Application.................. 95 6.4.2 Modeling the Selection Problem....................... 96 6.4.3 Optimizing The Resource Consumption.................. 98 6.4.4 Optimizing The Provided QoS........................ 99 6.4.5 Optimizing The Reconfiguration Cost................... 99 6.4.6 Decision Maker Architecture......................... 99 6.5 Planning the Required Actions for Reaching the New Configuration..... 100 iii Contents 6.6 Instrumentation of the Adaptation in the FraSCAti Platform with the person- alized SCA Bindings.................................. 101 6.7 Local Feedback Control Loops............................ 103 6.8 Summary........................................ 106 Part III Validation 109 Chapter 7 CASE STUDIES 111 7.1 A Caching Off-Loading Situation.......................... 112 7.1.1 Description................................... 112 7.1.2 COSMOS: COntext entitieS coMpositiOn and Sharing.......... 112 7.1.3 Distribution of the Context Policy...................... 114 7.1.4 Quantitative Evaluation: Measuring the Performance of the Approach 115 7.1.5 Results Discussion.............................. 116 7.1.6 Qualitative Evaluation............................ 117 7.2 The TRACK.ME Platform............................... 118 7.2.1 Platform Description............................. 118 7.2.2 Quantitative Evaluation........................... 120 7.2.3 Results Discussion.............................. 121 7.2.4 Qualitative Evaluation............................ 122 7.3 The DIGIHOME Service-Oriented Platform..................... 122 7.3.1 Smart Home Scenario Description..................... 122 7.3.2 Platform Description............................. 124 7.3.3 Quantitative Evaluation........................... 125 7.3.4 Results Discussion.............................. 127 7.3.5