1 / 22

Kernel-Middleware Interaction to Support Adaptation in Pervasive Computing Environments

Kernel-Middleware Interaction to Support Adaptation in Pervasive Computing Environments. F. Samimi, P. McKinley, S. Sadjadi, P. Ge Software Engineering and Networking Systems Laboratory Department of Computer Science and Engineering Michigan State University (http://www.cse.msu.edu/sens).

mary
Download Presentation

Kernel-Middleware Interaction to Support Adaptation in Pervasive Computing Environments

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Kernel-Middleware Interaction to Support Adaptation in Pervasive Computing Environments F. Samimi, P. McKinley, S. Sadjadi, P. Ge Software Engineering and Networking Systems Laboratory Department of Computer Science and Engineering Michigan State University (http://www.cse.msu.edu/sens)

  2. Agenda • Motivations • RAPIDware and transparent shaping • Kernel-Middleware eXchange (KMX) • Wireless video streaming case study • Conclusions and Future Work

  3. Military Applications Sensor Networks Pervasive Computing • Driving Factors • Convergence of advanced electronic technologies (wireless, handheld, sensors, etc) and the Internet. • Promises anywhere, anytime access to data and computing. • Need for Dynamic Adaptation • Heterogeneity of hardware, network, software. • Dynamics of the environmental conditions, especially at the wireless edge of the Internet • Limited resources (such as battery lifetime). Handheld/Wearable Computing

  4. RAPIDware Project • Funded by U.S Office of Naval Research • Adaptable Software / Critical Infrastructure Protection Program • Outgrowth of Presidential Decision Directive 63 (May ’98) • Software adaptation technologies for: • Detecting and responding to environmental changes • Strengthening self-auditing capabilities of “always-on” systems • Focus: High-assurance adaptive middleware • Rigorous software engineering, code generation, etc • military command and control • crisis management systems • management of military/industrial installations • Enable systems to operate through failures and attacks

  5. Transparent Shaping • Automatically transform existing non-adaptive programs into adaptable programs Dynamic Adaptation Transparent Shaping Adapt-Ready Adaptable Adaptive Logic Adapted Business Logic Corrective Logic Hooks Development Time Compile Time Start/Load Time Run Time Adaptation Assurance Tools and Techniques

  6. MetaSockets • Provide low-level, adaptable communication • Example of host-infrastructure middleware

  7. Class Name List Application Source Sender.java java.net. MulticastSocket Java Compiler (javac) TRAP/J Aspect Generator Reflective Class Generator Absorbing_ MulticastSocket .aj WrapperLevel_ MulticastSocket .java MetaLevel_ MulticastSocket .java AspectJ Compiler (ajc) Adapt-Ready App. Sender.class Data Flow TRAP (Transparent Reflective Aspect Programming) • Generator that enables adaptive behavior to be woven into existing programs • Java and C++ versions available • Example: Existing Java applications can be “upgraded” to use MetaSockets

  8. Adaptive CORBA Template (ACT) • Enables run-time improvements to CORBA applications in response to unanticipated changes in either their functional requirements or their execution environments. • Transparently weaves adaptive code into CORBA object request brokers (ORBs) at run time using a generic CORBA request interceptor. • The woven code intercepts and adapts the requests, replies, and exceptions that pass through the ORBs

  9. Need for More than Middleware… • RAPIDware focuses on adaptive middleware technologies • Combines computational reflection, aspect-oriented programming, component-based design • Transparent shaping: automatically generating adaptable programs from non-adaptive existing programs • Automated checking for consistency and safe adaptation • Dynamic configuration of software sensors and actuators • However, many adaptations require cooperation of middleware and the operating system, especially in pervasive computing contexts • Security (packet interception, usage monitoring) • Quality of service (faster response in OS) • Energy management (global tradeoffs among applications)

  10. Kernel-Middleware eXchange (KMX) • KMX investigates interaction between adaptive middleware and commodity operating systems • Goal: general model of MW/OS interaction • Enable sensors and actuators to “reach” from middleware into the OS kernel (as an optimization!) • Combine vertical (cross-layer) and horizontal (cross-platform) adaptation

  11. Horizontal Cooperation Transient Proxy Vertical Cooperation Application Middleware OS Hardware Communication Infrastructure Normal Data Flow Intercepted Data Flow Example: “Universal” Adaptation • Adaptive middleware mechanisms can be used to reconfigure transient proxies • KMX can be used to support vertical cooperation • Uses: Overlay networks, MANETs, wireless edge, …

  12. Application Middleware Cross-Layer Coordination Operating System Hardware KMX Architecture Incoming/Outgoing Flow Sensor Legend Control Line Actuator Coordination and Decision Making Kernel-Middleware Communication Transient Proxy Networking Subsystem Kernel- and hardware-level status information Resources Network CPU Memory Energy Interception Incoming Control/Data Outgoing Control/Data

  13. Case Study • Use KMX to improve wireless video streaming • Linux implementation • In-kernel packet manipulation: interception of packet streams using iptables • Transient proxies created at wireless edge • Dynamically configured using TRAP and MetaSockets • Intercept packet streams and add forward error correction

  14. SENS Mobile Computing Testbed • Multiple-cell WLAN • Various Wireless LANs • WLAN analyzers • Mobile computers • Dell laptops (Windows, Linux) • iPAQ handhelds(Familiar Linux, Blackdown Java) • Xybernaut MA-V wearables (Windows) • Multimeter for measuring energy consumption

  15. Test configuration and parameters 100Mbps LAN Video Stream Path 802.11b AP Router • Video Specifications Sender Multicast Receivers 802.11b ad hoc network

  16. Block Erasure Code Operation • Wireless networks produce dynamic and location dependent packet loss because of signal strength, interference, antenna alignment. • 802.11b MAC layer does not provide link-level acknowledgement for multicast frames. • FEC can be used to improving reliability by introducing redundancy into the data channel.

  17. Results Packet Loss Video Quality Measurement Overall Packet Loss and Video Quality

  18. Related Work • Cross-layer adaptation • Odyssey (CMU): application-aware adaptation • GRACE (UIUC): global adaptation in mobile multimedia applications • DEOS (GATECH): user/kernel communication and end-to-end adaptation • Milly Watt (Duke): energy efficiency • Coordination among layers on a single platform and exchange of events between end nodes • Peer-to-Peer systems • Overlay networking • Conductor (UCLA): distributed adaptation of data streams • Ad hoc networks • Roofnet (MIT): routing in multi-hop wireless ad hoc networks  System-level (or application-layer) oriented

  19. Conclusions • KMX • Addresses cross-layer adaptation with respect to coordinated adaptation across multiple platforms (horizontal cooperation) • Adaptive middleware as the key enabling technology, extended into operating system • Universal adaptation needed to support distributed applications • Cooperation among: • Adaptive middleware • Extensible operating system • Adaptable overlay networks • Case study reveals potential benefits of this cooperation for wireless video streaming

  20. Related Recent Activities • MetaSockets (ISWC’02, FTDCS’03) • Transparent weaving weaving of adaptive behavior into CORBA applications [ICDCS’04, ICAC’04] • TRAP for Java programs [DOA’04] • Efficient overlay networks [ICNP’03,ICDCS’04] • Decision-making software [ICDL’04] • Hierarchical discriminant regression (HDR) • Enable systems to “learn” how to adapt effectively • Safe adaptation [WADS’04] • Adaptive energy management [IWQoS’04]

  21. Acknowledgements • This work was supported in part by • U.S. Navy, Office of Naval Research • Grant No. N00014-01-1-0744 • National Science Foundation grants • CCR-9912407 • EIA-0000433 • EIA-0130724 • ITR-0313142 

  22. Further Information • Related papers of the Software Engineering and Network Systems (SENS) Laboratory are available at: http://www.cse.msu.edu/sens • RAPIDware project: www.cse.msu.edu/rapidware • Includes source code downloads • Email contact: mckinley@cse.msu.edu

More Related