• No results found

Presentation

N/A
N/A
Protected

Academic year: 2020

Share "Presentation"

Copied!
30
0
0

Loading.... (view fulltext now)

Full text

(1)

Peer to Peer Networks and Web

Services for a Community Grid

PTLIU Laboratory for Community Grids

Geoffrey Fox, Marlon Pierce, Shrideep Pallickara, Choonhan Youn Computer Science, Informatics, Physics

Indiana University Bloomington IN 47404

(2)

P2P Grid Architecture I

n

“Everything electronic” is a

resource

Computers

Programs

Data (from sensors to this presentation to email to databases)

People

n

Resources

are labeled by XML

URI from URL (location) to URN (property tag)

Metadata

Software InterfacesPersonal Information

n

XML Interfaces may be “

virtual

Define in XML but “compile” to optimized form for

performance functionality accessibility trade-offs

(3)

P2P Grid Architecture II

n

Nearly all resources have a

web interface

Including people and software componentsAll resources have natural GUI from browser

n

Everything is an Object

(as opposed to or in addition to

being a table or an array)

n

Objects have well defined interfaces which can and

should be

standardized

n

Essentially all resources connect with

messages

which

must also have a possibly virtual XML specification

This includes resources (such as functions) running in same

memory space

As well as the more obvious coarser grain web applications

(4)

Reso urce

Data base

Reso urce Sof

ware Sof ware

XM Skin

Peer to Peer Community Grid

XM Skin

Message Or Event Based Inte

Connection XML Defined Resource

connected by XML defined message Implementation of resource and connection may or may not be XML

(5)

Some Research Issues for P2P Grid

n What happens to programming languages when data structures

are defined in XML

n How do we manage a sea of virtual XML?

Register, find and link objects

This is “distributed operating system of the world” ?

n What happens to databases when everything is an Object defined

in XML and transformed by Java?

n How and when do we compile virtual XML

Convert slow XML message to super fast method call on stack

n How do we implement services such as Security and collaboration

over a range of grain sizes

n Supporting all “grain sizes” we get some sort of dynamic fractal

world which looks like XML objects exchanging XML messages at all scales

Not well supported by centralized services (P2P problem)

n Semantic Grid: as metadata increases, objects link together

forming digital brilliance – a phase transition in information space

(6)

Compiling for WSDL

Single Address space

Method1 Method2

stack

We Serve

r We Application

1

We Serve

r We Application

2

WSDL Messages

Shared Memory Distributed System

(7)

.opennet

Architecture

Databas

e

(Virtual) XML

Layer

Enterprise

Javabeans

Jav

a

Servlet

JSP

Persistent Managed Store

Object

layer

Virtual Machine

Control

Render fo Input fro

(8)

Role of Web Services

n Define interfaces of web applications so that computer-computer

interactions are enabled

Defines virtual XML for all system and application services

n WSDL is XML versions of Class and Method definitions n SOAP is XML version of message

n UDDI or WSIL catalogs WSDL based services enabling precise

linkage of them

n WSFL and WSCL are candidate linkage languages

Securit

y Catalog

Paymen Credit

Card

Warehous e

shipping

WSDL interfaces

WSDL interfaces

(9)

Backen Resources Middle Tier Clien t Jav C++ . Prox y HP Engin e MPI .. SOAP IIO RMI ….. XML base Interface WSDL Data base Jav C++ . Prox y Persisten Storage Paralle I/O … Simulatio

Component ComponentDat

MPP

HPCC an

WSDL

(10)

Converting a Portal to WSDL

n Gateway (http://www.gatewayportal.org) is a relatively mature portal

supporting Job submission, management and some visualization for codes like ANSYS – developed for DoD HPC centers

n Already used XML to define interfaces

backen d

Globu rcp/rsh

Corba middle tie SECIOP wit Java modules JSP SSL backen d SOA wrapper CORBA WSDL Will replac historical CORBA By EJB Available

For GCE testbe January 2002

Add Casto Java to XML

Pre WSDL Post WSDL

(11)

WSDL Job Submittal service I

n More details at http://www.gatewayportal.org/ and

http://aspen.ucs.indiana.edu/ptliu/gatewaywsdl

Arguments and return (as messages)

Of two RPC methods in Gateway

– should standardize

……….

(abstract) portType without binding to Transport or Address

operation ≈ method

Define RPC like

methods with in and out parameters

(12)

WSDL Job Submittal service II

Binding asserts operations implemented with SOAP over HTTP protocol

Two (sample methods

input and output

defined by

portTypes

(13)

WSDL Job Submittal service III

n Define WebFlowSubmitjobService with a single port

implementing previous binding at a particular port

n Uses WSDL import syntax to reference previous specifications

Address

Use operation from this binding Service

(14)

SOAP and Gateway Portal I

n

Having specified service in WSDL, the

run-time is implemented in SOAP

n

Here is SOAP over HTTP message from client

n

This is

execLocalCommand

to run one

particular command (

ls

) on current WebFlow

directory

Specify ls asFirst argument

HTTP Header

SOA

Envelope With body

(15)

n

And this is the result

of

ls

sent back to client

in

SOAP

over

HTTP

SOAP and Gateway

Portal II

HTTP Header

SOA

Envelop and body

(16)

Next Steps in WSDL Portals

n

Agree on

WSDL

Interfaces for important job

submittal and management functions

Are computers also defined in WSDL – believe so

n

Set up

UDDI

servers to catalog amnd retrieve WSDL

services

How is this consistent with current Grid Information

Services?

n

Set up interoperability

test bed

n

Build

“HPCC compiled”

web services

n

Look at other computational science applications

Databases

NASA/EU SLE (Space Link extension) standard for ground

stations for sensors

(17)

SOAP

Binding to

SMTP

n You can use this

to queue up your job requests by email on your airtrip and send when you land

n Value of

separation of function and protocol

Mai

Header

SOA

Envelope Is mail body

(18)

Threaded Discussion/Reporting as a Web Service

n Support email or form based reporting/discussion

Design an Application Specific Schem

Can of course process email as Web service

Testing for

Student reports And Web site updates

with report Web Servic built aroun “publish

subscribe” We Servic

(19)

Science as a Web Service

n

Build a network of linked

web-based applications

to

support science

Simulation, visualization, data-input, data analysis,

publication are web services made up themselves of

smaller web services (like

ls

in Gateway!)

n

Enable “plug and play” of modules so supporting

Science for the Americas

Modules can vary from high end research to K-12

instruction

Enable a distributed less monolithic approach to

research

People in network as research colleagues or mentors

n

Requires

collaborative web services

(20)

Some Science Web Services

n

These build on general (community) web services

(21)

Some General Grid Web Services

(22)

Education as a Web Service

n Can link to Science as a Web Service and substitute educational

modules

n “Learning Object” XML standards already exist from IMS/ADL

http://www.adlnet.org – need to update architecture

n Web Services for virtual university include: n Registration

n Performance (grading) n Authoring of Curriculum

n Online laboratories for real and virtual instruments n Homework submission

n Quizzes of various types (multiple choice, random parameters) n Assessment data access and analysis

n Synchronous Delivery of Curricula

n Scheduling of courses and mentoring sessions

n Asynchronous access, data-mining and knowledge discovery

(23)

Audio Video Conferencing as a Web

Service

n

This could be similar to vrvs.org with different ports

corresponding to different protocols

n

Use “universal messaging subsystem” to transmit A/V

streams between sources and sinks

SIP o H323 Web service

Access Grid

PictureTel POTS

VOIP

User Control Programmati Control

(24)

Semantic Grid & Digital Brilliance

n Peer to Peer networks teach us that we can build “small worlds”

where distance between nodes is logarithmic in number of nodes

n Consider a Grid of WSDL services linked (through UDDI)

together

This is spirit of Semantic web – metadata enables meaningful

linkage

n We do not need to link everybody but only to establish “small

world” routes

n Physics analogies suggest that phase transitions will occur when

“enough” nodes are linked – one will get nodes to align in the direction of new knowledge

n This suggests ways of quantifying value of metadata induced

linkages and areas where one “should” add more WSDL specifications

(25)

Publish/Subscribe as a Web Service

n We can implement messaging subsystem (between WSDL

resources) with either direct messages or by a queued system where you publish messages to queues and subscribe as receiver to particular queues

Natural asynchronous collaboration model which is in fact fast enough

for synchronous collaboration

n There are many different publish/subscribe models

JMS is a cluster of central servers

JXTA is a very dynamic Peer to Peer model where pipes are queues and

topics (metadata) are service advertisements

n Implement JMS API with JXTA protocol – different WSDL

bindings here have different fault tolerance/reliability semantics

Could use JMS as long distance “carrier” between JXTA peers

JXTA provides higher performance than JMS for nearby recipients

n Pallickara built an intermediate dynamic GXOS message

broker subsystem

(26)

Single Server P2P Illusion

JM Broke

r Data

base

(27)

Broker Network

Data base

Reso urce

Broker

Broker Broker Broker

Broker

Broker

Software multicast

P2P: Brokers are clients

(28)

Community P2P Grid

JMS Serve

r Data

base

JXT Rendezvou

s

GXO S Serve

r Generate“Automatically”

GXO S Serve

r

(29)

Collaborative Web Resources

n Collaboration is “just” sharing objects

n What about Collaborative Web Services ?

You can in some cases do this automatically just by multicasting messages

from service to clients

This is achieved by service publishing messages and clients subscribing

n Many applications do not expose all state changes

E.g. when I edit PowerPoint slide, PowerPoint does not tell the world by

sending an (XML) message

n Solved by shared event collaboration model and requires one to

view user interface as a “port” in WSDL sense and treat “event handlers” (mouseover, click etc.) as messages in WSDL

n Groove Networks does use XML front end to COM interfaces

More elegantly can use W3C DOM for (the few) documents (SVG is one)

and “universal event handlers”

n Interesting research area

(30)

Reso urce

Data base

Reso urce Sof

ware Sof ware

XM

Skin XM

Skin

Message Or Event Based Inte

Connection

f

References

Related documents

Bluefin tuna: Japanese longliners catch a large amount of these tunas in the Atlantic and Mediterranean, reaching 70% of the catches with this fishing gear (Fonteneau,

ferric reducing antioxidant power (FRAP), DPPH free radical scavenging activity and ABTS radical cation decolourisation, together with the determination of total

Following this, in the second part of the paper, I analyze the way in which Gracyk's thoughts on the aesthetic evaluation of popular music, expressed in his understanding of

This report is based on research conducted in Nairobi, Kenya’s capital, between January 28, 2013 and February 8, 2013, including five days in the suburb of Eastleigh during which two

Street connectivity was identified as having a significant association within the cross-sectional model (Table 7), and the longitudinal model confirms that walking levels..

Template-based prediction of carbohydrate-binding proteins, binding residues and complex structures by structural alignment and binding

辐射能力强,并且制造成本低而得到各国光伏界的重视,是最有发展前途的新一代太阳能电池之 一 [2,3] 。其中,吸收层 CIS 和

This is really a legal question, but the key seems to be that the first sentence of Clause 67.1 says that it continues after termination. A few additional comments may be helpful.