T-110.455 Network Application Frameworks and XML Middleware and Mobile Middleware 2.3.2005 Sasu Tarkoma.

Slides:



Advertisements
Similar presentations
Introduction to Middleware I
Advertisements

The road to reliable, autonomous distributed systems
T Network Application Frameworks and XML Mobile Middleware Sasu Tarkoma.
Distributed components
Introduction to Java 2 Enterprise Edition About myself –Neutrinos, Cancer Research, IT Applications Today’s topic: J2EE –Context –Advantages –Components.
Middleware Fatemeh Hendijanifard 1 آزمايشگاه سيستم هاي هوشمند (
Distributed Systems Architectures
CORBA Case Study By Jeffrey Oliver March March 17, 2003CORBA Case Study by J. T. Oliver2 History The CORBA (Common Object Request Broker Architecture)
OCT 1 Master of Information System Management Organizational Communications and Distributed Object Technologies Review For Midterm.
1. Introducing Java Computing  What is Java Computing?  Why Java Computing?  Enterprise Java Computing  Java and Internet Web Server.
Software Engineering and Middleware: a Roadmap by Wolfgang Emmerich Ebru Dincel Sahitya Gupta.
OCT 1 Master of Information System Management Organizational Communications and Distributed Object Technologies Lecture 5: Distributed Objects.
Computer Science Lecture 2, page 1 CS677: Distributed OS Last Class: Introduction Distributed Systems – A collection of independent computers that appears.
Software Engineering and Middleware A Roadmap Author: Wolfgang Emmerich Presented by: Sam Malek.
Systems Architecture, Fourth Edition1 Internet and Distributed Application Services Chapter 13.
2 Systems Architecture, Fifth Edition Chapter Goals Describe client/server and multi-tier application architecture and discuss their advantages compared.
.NET Mobile Application Development Remote Procedure Call.
12-1 © Prentice Hall, 2004 Chapter 12: Design Elements Object-Oriented Systems Analysis and Design Joey F. George, Dinesh Batra, Joseph S. Valacich, Jeffrey.
.NET, and Service Gateways Group members: Andre Tran, Priyanka Gangishetty, Irena Mao, Wileen Chiu.
T Network Application Frameworks and XML Middleware Sasu Tarkoma.
Chapter 4: Core Web Technologies
Middleware-Based OS Distributed OS Networked OS 1MEIT Application Distributed Operating System Services Application Network OS.
Bayu Priyambadha, S.Kom. What is J2EE? * Open and standard based platform for developing, deploying and managing n-tier, Web-enabled, server-centric,
Introduction to distributed systems Dr. S. Indran 23 January 2004.
Wireless CORBA Richard Verhoeven. Content Quick Introduction to CORBA Wireless & Mobile Wireless CORBA Test Case Conclusions.
1 G52IWS: Distributed Computing Chris Greenhalgh.
Java-Based Middleware IT 490 Stan Senesy IT Program NJIT.
第十四章 J2EE 入门 Introduction What is J2EE ?
Enterprise Java v120131Intro to JavaEE1 Java EE 5 TM Introduction.
Enterprise Java Beans Java for the Enterprise Server-based platform for Enterprise Applications Designed for “medium-to-large scale business, enterprise-wide.
Wireless Access and Terminal Mobility in CORBA Dimple Kaul, Arundhati Kogekar, Stoyan Paunov.
Lecture 15 Introduction to Web Services Web Service Applications.
Information Management NTU Interprocess Communication and Middleware.
Web Services Kanda Runapongsa Dept. of Computer Engineering Khon Kaen University.
Source: Peter Eeles, Kelli Houston, and Wojtek Kozaczynsky, Building J2EE Applicationa with the Rational Unified Process, Addison Wesley, 2003 Prepared.
T Network Application Frameworks and XML Middleware Prof. Sasu Tarkoma.
OCT 1 Master of Information System Management Organizational Communications and Distributed Object Technologies Lecture 5: JMS.
Architecture of Message Oriented Middleware [1]
Advanced Computer Networks Topic 2: Characterization of Distributed Systems.
Databases JDBC (Java Database Connectivity) –Thin clients – servlet,JavaServer Pages (JSP) –Thick clients – RMI to remote databases –most recommended way.
CSC 480 Software Engineering Lecture 18 Nov 6, 2002.
Fault Tolerance in CORBA and Wireless CORBA Chen Xinyu 18/9/2002.
Hwajung Lee.  Interprocess Communication (IPC) is at the heart of distributed computing.  Processes and Threads  Process is the execution of a program.
Assignment of JAVA id : BSSE-F10-M-10-JAVA1 Overview of J2EE/Session 2/Slide 1 of 38.
1 G52IWS: Web Services Chris Greenhalgh. 2 Contents The World Wide Web Web Services example scenario Motivations Basic Operational Model Supporting standards.
© FPT SOFTWARE – TRAINING MATERIAL – Internal use 04e-BM/NS/HDCV/FSOFT v2/3 JSP Application Models.
AMQP, Message Broker Babu Ram Dawadi. overview Why MOM architecture? Messaging broker like RabbitMQ in brief RabbitMQ AMQP – What is it ?
T Network Application Frameworks and XML Mobile Middleware Sasu Tarkoma.
Java Programming: Advanced Topics 1 Enterprise JavaBeans Chapter 14.
Introduction to Distributed Systems and CORBA Slides for CSCI 3171 Lectures E. W. Grundke.
© Oxford University Press 2011 DISTRIBUTED COMPUTING Sunita Mahajan Sunita Mahajan, Principal, Institute of Computer Science, MET League of Colleges, Mumbai.
Object Interaction: RMI and RPC 1. Overview 2 Distributed applications programming - distributed objects model - RMI, invocation semantics - RPC Products.
1 Distributed Systems Architectures Distributed object architectures Reference: ©Ian Sommerville 2000 Software Engineering, 6th edition.
Internet and Distributed Application Services
Java Distributed Object System
Introduction to Middleware I
CORBA Alegria Baquero.
Database Architectures and the Web
#01 Client/Server Computing
The OMG Approach (continued)
Inventory of Distributed Computing Concepts and Web services
CORBA Alegria Baquero.
Distributed Systems Bina Ramamurthy 11/30/2018 B.Ramamurthy.
Harjutus 3: Aünkroonne hajussüsteemi päring
Inventory of Distributed Computing Concepts
Distributed Systems Bina Ramamurthy 12/2/2018 B.Ramamurthy.
Wireless CORBA Richard Verhoeven.
Message Queuing.
#01 Client/Server Computing
Presentation transcript:

T Network Application Frameworks and XML Middleware and Mobile Middleware Sasu Tarkoma

Contents n Middleware u Motivation u Examples n Mobile Middleware u Motivation u Examples n Summary

Middleware n Widely used and popular term n Fuzzy term n One definition u “A set of service elements above the operating system and the communications stack” n Second definition u “Software that provides a programming model above the basic building blocks of processes and message passing” (Colouris, Dollimore, Kindberg, 2001)

Why Middleware? n Application development is complex and time-consuming u Should every developer code their own protocols for directories, transactions,..? u How to cope with heterogeneous environments? F Networks, operating systems, hardware, programming languages n Middleware is needed u To cut down development time F Rapid application development u Simplify the development of applications u Support heterogeneous environments and mask differences in OS/languages/hardware

Middleware cont. n Middleware services include u directory, trading, brokering u remote invocation (RPC) facilities u transactions u persistent repositories u location and failure transparency u messaging u Security n Network stack (transport and below) is not part of middleware

Middleware Networking Layer (IP) Transport Layer (TCP/UDP) Underlying network (link layer, physical) Applications APIs for: RPC, messaging, transactions, session management, storage, directories, trading, etc. Middleware provides various transparencies (HW, OS, location, fault,..) for apps.

Examples n Remote Procedure Call (RPC) u call of a remote procedure as it were local u marshalling / unmarshalling n Remote Method Invocation (RMI) u call of a remote method as it were local u marshalling / unmarshalling n Event-based computing u entities receive asynchronous notifications u a notification causes a state change

Transparencies n Location transparency u RPC and RMI used without knowledge of the location of the invoked procedure / object n transport protocol transparency u RPC may be implemented using any transport protocol n transparency of OS and hardware u RPC/RMI uses external data representation u Presentation is important u XML is becoming increasingly important n transparency of programming languages u language independent definition of procedures: CORBA IDL

Network Application Framework n Network Application Framework is middleware n Contains services for distributed applications n Middleware as a term is fuzzier and larger n In this course, we focus on network application frameworks and XML u objects (discovery, representation) u directories (overlays,..) u network u security

Object Model n Components: object references, interfaces, actions (methods), exceptions, garbage collection n Distributed object model u client-server model u usually implemented using request-reply u marshalling, unmarshalling u Example: Java RMI u Invocation Semantics F Exactly-once cannot be guaranteed F Typical semantics: at-least-once, at-most-once F At-least-once is good for idempotent operations F CORBA and RMI use at-most-once

NAF XML Security Objects Middleware Assignment: Apache Axis Web Services SOAP with security J2EE CORBA Middleware is a fuzzy term. This is one way to look at things.. SIP Assignment: Schema

Examples n CORBA n Message-oriented Middleware n Event Systems & tuple spaces n Java Message Service n Java 2 Enterprise Edition (J2EE) n.NET

CORBA I n Common Object Request Broker Architecture (CORBA) u Standardized by Object Management Group (OMG) u OMG est. 1989, currently over 800 members n Distributed object-oriented middleware u Network abstraction of object location u Support for heterogeneous environments F hardware, networks, OS, languages F Interface Definition Language (IDL)

CORBA II n Object Request Broker (ORB) u Broker pattern, transparent object invocation F object location, activation, communication F CORBA works for both OO and non-OO languages n Interoperable Object Reference (IOR) u Shareable reference n Support for dynamic and static method invocation n Many commercial and non-commercial implementations

ClientObject Implementation IDL stubIDL Skeleton Object Request Broker (ORB) I. REQUEST II. Invocation returns

Implementation layer - Dynamic Invocation Interface - Alternative to static stub/skeleton calls - Generic runtime invocation, generic interface defined in IDL Interceptors useful for monitoring and security - generate and interpret object references - demultiplex requests - Handle method invocations via skeletons - activation policies, thread models - object life cycle - pre/post invocation capabilities

CORBA Services n Services specified by OMG to help using distributed objects n Naming Service n Event and Notification Service n Security Service u authentication, access control, non- repudiation n Persistent Object Service u persistent objects (activation / deactivation) n Trading Service u directory service, objects are identified by attributes n Transaction and Concurrency Control Service u database transactions

Message-oriented Middleware n Transfers messages between applications u Does not consider the content of messages n Asynchronous communication n Direct or queued u Queued (buffered) communication supports wireless clients n Examples u Sun Microsystems JMS u Microsoft: MSMQ u IBM: Websphere MQ

Event Systems I n Traditional MoM systems are message queue based (one-to-one) n Event systems and publish/subscribe are one-to-many u One object monitors another object u Reacts to changes in the object u Multiple objects can be notified about changes n Events address problems with synchronous operation and polling n In distributed environments a logically centralized services mediates events u anonymous communication u expressive semantics using filtering

Event Systems II n Push versus Pull n May be implemented using RPC, unicast, multicast, broadcast,.. n Three main patterns u Observer design pattern F Used in Java / Jini u Notifier architectural pattern F Used by many research systems u Event channel F Used in CORBA Event/Notification Service n Filtering improves scalability / accuracy u Research topic: content-based routing

Tuple Spaces n Tuple-based model of coordination n The shared tuple space is global and persistent n Communication is u decoupled in space and time u implicit and content-based n Examples: Linda, Lime

Java Message Service (JMS) n Asynchronous messaging support for Java n Point-to-point messaging u One-to-one n Topic-based publish/subscribe u SQL for filtering messages at the topic event queue u One-to-many n Message types: u Map, Object, Stream, Text, and Bytes n Durable subscribers u Event stored at server if not deliverable n Transactions with rollback

Source:

JMS messaging n JMS messaging proceeds in the following fashion: u Client obtains a Connection from a ConnectionFactory u Client uses the Connection to create a Session object u The Session is used to create MessageProducer and MessageConsumer objects, which are based on Destinations. u MessageProducers are used to produce messages that are delivered to destinations. u MessageConsumers are used to either poll or asynchronously consume (using MessageListeners) messages from producers.

Java 2 Platform Enterprise Edition (J2EE) n Specifications and practices for developing, deploying, and managing multi-tier server-centric applications u Builds on J2SE u Web Services support n Containers - separation of business logic from resource and lifecycle management u Enterprise JavaBeans (EJB) u Servlets n Java Message Service (JMS) u async. communication supports decoupling

Source:

J2EE Technologies Java API for XML-Based RPC (JAX-RPC) JavaServer Pages Java Servlets Enterprise JavaBeans components J2EE Connector Architecture J2EE Management Model J2EE Deployment API Java Management Extensions (JMX) J2EE Authorization Contract for Containers Java API for XML Registries (JAXR) Java Message Service (JMS) Java Naming and Directory Interface (JNDI) Java Transaction API (JTA) CORBA JDBC data access API.

.NET n The.NET Framework is Microsoft's the next generation application platform u applications, services, web services,.. u Protocol stack and computing model for TCP/IP based distributed computing n Based on the CLR (Common Language Runtime) u JIT compiles and executed NET code n Components u.NET architecture,.NET Integrated Programming, Common Language Runtime (CLR),.NET System Class Libraries, Data and XML, Web Services / ASP+

.NET Architecture Source: MSDN

Mobile Middleware I n Middleware is typically designed and implemented for fixed-network hosts u High bandwidth, low latency, reliable communication u Persistent storage and sufficient computing power u No mobility n Mobile environment requires new solutions u Existing middleware services do not scale u Previous lectures: mobility is challenging u Small devices / embedded systems pose totally different challenges

Mobile Middleware II n Goals for middleware: u fault-tolerance, adaptability, heterogeneity,scalability, resource sharing n Mobile middleware u dynamically changing context u decoupled F events, tuple spaces u Basic solution for wireless F Use a proxy

Reflection n In general, middleware provides transparency to the underlying conditions u Location transparency in RPC/RMI n In mobile environments this is not always desired u Sometimes we need to know about location changes, QoS changes, etc. n Requirement for reflective middleware u Should expose APIs for querying / changing important parameters u Under development

NAF XML Security Objects Middleware IPv6 mobility, HIP Mobility Wireless CORBA Secure mobile XML routing Plain IPv4 J2ME

Examples n WAE n J2ME n Wireless CORBA n FUEGO

WAE n Wireless Application Environment (WAE) u A suite of protocols and specifications for optimizing data transfer for wireless communication n WAP stack u Focus on binary transmission u Protocols F WSP (Wireless Session Protocol) F WTP (Wireless Transaction Protocol) F WTLS (Wireless Transport Layer Security) more efficient than TLS, but no end-to-ned security F WDP (Wireless Datagram Protocol)

Comparison TCP/IP UDP/IP TCP/IP UDP/IP TLS - SSL HTTP HTML/JS Transport Layer (WDP) Bearers: SMS,CDMA,.. Security Layer (WTSL) Transaction Layer (WTP) Session Layer (WSP) WAE Other

Java 2 Platform Micro Edition (J2ME) n Java for consumer electronics and embedded devices n A virtual machine and a set of APIs n Configurations and profiles u Configurations F two-low level APIs and optimized VMs CDC, CLDC u Profiles F API specification on top of a configuration for complete runtime F Specify both APIs and Configurations F Profiles defined using Java Community Process (JCP)

Source:

Wireless CORBA n CORBA does not support accessing mobile objects or wireless communication u Wireless CORBA specification n Three basic requirements u Invocations from mobile objects u Invocations to mobile objects u Wireless communication n Home bridge n Access bridges n Tunnelling over wireless n Handoff protocols

Mobile IP vs. WCORBA n MIP addresses host mobility, not object mobility n MIP does not specifically support wireless protocols n MIP hides all handoff events u location-aware services difficult to implement

Architecture Redirects requests for services on the terminal Keeps track of the current access bridge Other side end of the Access Bridge Encapsulate/decapsulates msgs Generates mobility events Encapsulates, forwards or ignores incoming GIOP messages Decapsulates and forwards messages from the GIOP tunnel Generates mobility events Lists available services Abstract transport-independent tunnel for GIOP messages Concrete tunnels for TCP/IP, UDP/IP and WAP WDP. Protocol requires reliable and ordered delivery

Handoffs n Network initiated handoff u started by an external application u optional to support make-before-break n Terminal initiated handoff u terminal discovered a new Access Bridge u make-before-break is required n Access recovery n The Home Location Agent is updated n Old Access Bridges are informed n Mobility events are generated in the visited domain and the terminal domain

Network Initiated Handoff

FUEGO CORE (HIIT) n Mobile and wireless environments have different requirements than desktop systems u User mobility, terminal mobility, connectivity, device characteristics, dynamic environments n Vision: A service application is distributed among various application servers, network elements and terminals n Three year Tekes project ( ) u Industrial partners: Nokia, TeliaSonera, Elisa, Ericsson, Movial u Open source software n Demonstration at WMCSA 2004

FUEGO Architecture n The FUEGO middleware service set for mobile computing u Data communication F Efficient wireless SOAP F Efficient content-based routing (asynchronous events) u Data synchronization F 3-way XML document merging F XML-aware distributed file system u Applications F Presence service, mobile ticker, image-album

End-to-end authentication of hosts Encryption of network traffic using IPsec Mobility and multihoming support Resilient sockets End-to-end authentication of hosts Encryption of network traffic using IPsec Mobility and multihoming support Resilient sockets Reliable messaging Multiplexing multiple connections on TCP Prioritization of connections Reliable messaging Multiplexing multiple connections on TCP Prioritization of connections Efficient sync/async messaging Efficient XML serialization Persistent connections across mobility Efficient sync/async messaging Efficient XML serialization Persistent connections across mobility Expressive async. communication Content-based routing using filters Event buffering / mobility support Support for context-aware operation Expressive async. communication Content-based routing using filters Event buffering / mobility support Support for context-aware operation Automatic reconciliation of XML documents Optimized storage of XML Ad-hoc file sharing Integrates with existing file systems (NFS) Automatic reconciliation of XML documents Optimized storage of XML Ad-hoc file sharing Integrates with existing file systems (NFS) Presence service based on events Control of presence attribute visibility Presence service based on events Control of presence attribute visibility

FUEGO DEMO

Summary n Middleware u for application development and deployment u for supporting heterogeneous environments u Main communication paradigms: RPC/RMI, asynchronous events (publish/subscribe) u J2EE, CORBA,.. n Mobile middleware u Desktop middleware not usable on small, mobile devices u Special solutions are needed u J2ME, Wireless CORBA,..