63
FP6−2004−Infrastructures−6- SSA-026634 CNGrid Middleware GOSv2 Yongjian Wang BUAA – Beijing, China Interoperability workshop of euchinagrid Beijing, 12-14 June 2006

FP6−2004−Infrastructures−6-SSA-026634 CNGrid Middleware GOSv2 Yongjian Wang BUAA – Beijing, China Interoperability workshop of euchinagrid Beijing, 12-14

Embed Size (px)

Citation preview

Page 1: FP6−2004−Infrastructures−6-SSA-026634 CNGrid Middleware GOSv2 Yongjian Wang BUAA – Beijing, China Interoperability workshop of euchinagrid Beijing, 12-14

FP6−2004−Infrastructures−6-SSA-026634

CNGrid Middleware GOSv2

Yongjian WangBUAA – Beijing, China

Interoperability workshop of euchinagridBeijing, 12-14 June 2006

Page 2: FP6−2004−Infrastructures−6-SSA-026634 CNGrid Middleware GOSv2 Yongjian Wang BUAA – Beijing, China Interoperability workshop of euchinagrid Beijing, 12-14

Yongjian Wang BUAA Bejiing, 12-16 June 2006

Outline

Brief introduction to GOSv2 Overall architecture of GOSv2 Core Level Services System/Application Level Services

Page 3: FP6−2004−Infrastructures−6-SSA-026634 CNGrid Middleware GOSv2 Yongjian Wang BUAA – Beijing, China Interoperability workshop of euchinagrid Beijing, 12-14

Yongjian Wang BUAA Bejiing, 12-16 June 2006

Brief introduction to GOSv2

Page 4: FP6−2004−Infrastructures−6-SSA-026634 CNGrid Middleware GOSv2 Yongjian Wang BUAA – Beijing, China Interoperability workshop of euchinagrid Beijing, 12-14

Yongjian Wang BUAA Bejiing, 12-16 June 2006

Outline

Brief introduction of GOSv2 Background Goals Research

Page 5: FP6−2004−Infrastructures−6-SSA-026634 CNGrid Middleware GOSv2 Yongjian Wang BUAA – Beijing, China Interoperability workshop of euchinagrid Beijing, 12-14

Yongjian Wang BUAA Bejiing, 12-16 June 2006

Backgrounds of GOSv2

Grid related research begins since 1999 in China Part of the Grid Software program supported by the

China Ministry of Science and Technology 863 program between 2002 and 2005

Page 6: FP6−2004−Infrastructures−6-SSA-026634 CNGrid Middleware GOSv2 Yongjian Wang BUAA – Beijing, China Interoperability workshop of euchinagrid Beijing, 12-14

Yongjian Wang BUAA Bejiing, 12-16 June 2006

Goals of GOSv2

Support multiple geographical distributed grid nodes such as super computing centers across China

Sharing mechanism and framework on computing, data, software and combined resources

Provide secured, uniformed and friendly interfaces accessing the scientific computing and information services

Page 7: FP6−2004−Infrastructures−6-SSA-026634 CNGrid Middleware GOSv2 Yongjian Wang BUAA – Beijing, China Interoperability workshop of euchinagrid Beijing, 12-14

Yongjian Wang BUAA Bejiing, 12-16 June 2006

Research

Focus on 4 key issues to satisfy common requirements: Naming mechanism Process or states maintain Virtual organization Programming model

Focus on implementing architecture, not protocols or services Use Computer System Approach, not middleware or

network Use Service Oriented Architecture concept

Page 8: FP6−2004−Infrastructures−6-SSA-026634 CNGrid Middleware GOSv2 Yongjian Wang BUAA – Beijing, China Interoperability workshop of euchinagrid Beijing, 12-14

Yongjian Wang BUAA Bejiing, 12-16 June 2006

Overall Architecture of GOSv2

Page 9: FP6−2004−Infrastructures−6-SSA-026634 CNGrid Middleware GOSv2 Yongjian Wang BUAA – Beijing, China Interoperability workshop of euchinagrid Beijing, 12-14

Yongjian Wang BUAA Bejiing, 12-16 June 2006

Outline

Overall architecture of GOSv2 GOSv2 architecture

GOSv2 architecture

EVP address spacesEffective address spacePhysical address spaceVirtual address space

Security mechanism

Page 10: FP6−2004−Infrastructures−6-SSA-026634 CNGrid Middleware GOSv2 Yongjian Wang BUAA – Beijing, China Interoperability workshop of euchinagrid Beijing, 12-14

Yongjian Wang BUAA Bejiing, 12-16 June 2006

GOSv2 Overall Architecture

Page 11: FP6−2004−Infrastructures−6-SSA-026634 CNGrid Middleware GOSv2 Yongjian Wang BUAA – Beijing, China Interoperability workshop of euchinagrid Beijing, 12-14

Yongjian Wang BUAA Bejiing, 12-16 June 2006

Agora Service

GOS Hosting

Env.

CoreLevel

Services

Authorization Engine

Grip Service

Servlet Based Scalable Grid Portal Engine

User CustomizedApplications

Grid Apps

Core APIs Core Libraries(Grip, Agora, Router, AC Handling, Core Exception Handling)

AgoraAA

Grip Container

Multi-GrainedResource AC Policy Mgmt.

User Mgmt. Engine

Acct.Authentication

Acct.Approve

Profile

Role Based Acct. Mgmt.

Resource Mgmt. Engine

Service Addr. and PortType

Mapping

ServiceInfo

Mgmt.

Service Invocation

Addr. Trans.

Grip Ctrl. Structure

User Interaction

Result Caching

Grip State Mgmt.

Service Locating(Global)Service Info. Mgmt. (Local)

Java J2SE, J2EE/Microsoft Windows

Tomcat(Apache)

WebSphere(IBM)

WebLogic(BEA)

.NET(Microsoft)

GT4(Globus)

Core Exceptions

System and Application Libraries(Core Based Functional APIs and Exception Handling)

ExtendedSystem

Services

Information(MetaX) Services

MetaDBService

MetaSysService

Naming

File AC Mgmt.

Replica Mgmt.

MetaFile ServiceMeta Info

Mgmt. Quota Mgmt.

etc.

Batch Service Workflow Service etc.

User APIs

SystemLevel

Services

App Level Services

Proxy Cert.

Build-in Utility Collection Extended UtilitiesGrid Portal

Application Logic by Web Pages

CA&Certificates

Mgmt. Service

Base Services

Dymaic Deploy Service

SystemMonitoring

Service

Logging& Auditing Service

File Service

Database Service

Messaging Service

GIS Service

Router Service

OMII

•G

OS

v2 Architecture

Page 12: FP6−2004−Infrastructures−6-SSA-026634 CNGrid Middleware GOSv2 Yongjian Wang BUAA – Beijing, China Interoperability workshop of euchinagrid Beijing, 12-14

Yongjian Wang BUAA Bejiing, 12-16 June 2006

EVP address space

Page 13: FP6−2004−Infrastructures−6-SSA-026634 CNGrid Middleware GOSv2 Yongjian Wang BUAA – Beijing, China Interoperability workshop of euchinagrid Beijing, 12-14

Yongjian Wang BUAA Bejiing, 12-16 June 2006

EVP address spaces EVP provides three separate naming spaces

effective address space Effective address space is used to logically categorized services Examples of effective address: eres://agora1:metaservice All addresses in this space with a prefix eres which is short for effective address

physical address space Physical address space used to actually identify physical services Format of physical address is normal URL just as follows:

http://159.226.49.53:8080/axis/services/MonitorService virtual address space

Virtual address space used to map effective address to physical address Virtual address used inside GOSv2 environment and starts with prefix vres://

Physical resource can enter or exit dynamically because effective and virtual address can hides the differences.

Page 14: FP6−2004−Infrastructures−6-SSA-026634 CNGrid Middleware GOSv2 Yongjian Wang BUAA – Beijing, China Interoperability workshop of euchinagrid Beijing, 12-14

Yongjian Wang BUAA Bejiing, 12-16 June 2006

EVP address spaces

Page 15: FP6−2004−Infrastructures−6-SSA-026634 CNGrid Middleware GOSv2 Yongjian Wang BUAA – Beijing, China Interoperability workshop of euchinagrid Beijing, 12-14

Yongjian Wang BUAA Bejiing, 12-16 June 2006

Security Mechanism in GOSv2

Page 16: FP6−2004−Infrastructures−6-SSA-026634 CNGrid Middleware GOSv2 Yongjian Wang BUAA – Beijing, China Interoperability workshop of euchinagrid Beijing, 12-14

Yongjian Wang BUAA Bejiing, 12-16 June 2006

Terms in use

User certificate X.509 certificate signed by CNGrid CA

User proxy certificate User proxy certificate is usually a session certificate with short

live time. X.509 proxy certificate signed by user, delegate all or part of its

owner’s authority Motivation of user proxy certificate is single login

SAML authorization token SAML Token contains attribute entries as description of

authorization GOSContext

Java Object contains user proxy certificate and assert token

Page 17: FP6−2004−Infrastructures−6-SSA-026634 CNGrid Middleware GOSv2 Yongjian Wang BUAA – Beijing, China Interoperability workshop of euchinagrid Beijing, 12-14

Yongjian Wang BUAA Bejiing, 12-16 June 2006

Features of security mechanism

Transport layer SSL/TLS specification

Message layer WS-Security specification

Page 18: FP6−2004−Infrastructures−6-SSA-026634 CNGrid Middleware GOSv2 Yongjian Wang BUAA – Beijing, China Interoperability workshop of euchinagrid Beijing, 12-14

Yongjian Wang BUAA Bejiing, 12-16 June 2006

Axis handler chains mechanism

Axis handler chains adopt the chains of responsibility design pattern. Divide whole function such as security into a chain of small

portions Every portion implements different sub-function Portions have no relationships among one another

Based on axis handler chains mechanism Add new function or remove old function are very easy Security mechanism doesn’t invade into concrete application Grip application can use or don’t use security mechanism just by

modifying the configuration file.

Page 19: FP6−2004−Infrastructures−6-SSA-026634 CNGrid Middleware GOSv2 Yongjian Wang BUAA – Beijing, China Interoperability workshop of euchinagrid Beijing, 12-14

Yongjian Wang BUAA Bejiing, 12-16 June 2006

Security handlers in GOSv2 SignHandler

Sign body of soap message and add ws-security soap header AddHandler

Add GOSContext Object as soap attachment WSSecurityHandler

Verify ws-security soap header GetAttachmentsHandler

Get GOSContext Object from attachment of soap message VerifyCertsHandler

Verify user certificate contained in GOSContext VerifyTokenHandler

Verify token contained in GOSContext ACHandler

Access control operation based on different policies

Page 20: FP6−2004−Infrastructures−6-SSA-026634 CNGrid Middleware GOSv2 Yongjian Wang BUAA – Beijing, China Interoperability workshop of euchinagrid Beijing, 12-14

Yongjian Wang BUAA Bejiing, 12-16 June 2006

WebService

WSClient

· SignHandler(with proxy or user cert)

· AddHandler

· WSSecurityHandler· GetAttachmentsHandler· VerifyCertsHandler· VerifyTokenHandler

· WSSecurityHandler· GetAttachmentsHandler· VerifyCertsHandler· VerifyTokenHandler· ACHandler

· SignHandler (with service cert)

· AddHandler

SOAP MSG overSSL/TSL(HTTPS)

Client Side Server Siderequest flow

response flow

Security Handler Chain

Page 21: FP6−2004−Infrastructures−6-SSA-026634 CNGrid Middleware GOSv2 Yongjian Wang BUAA – Beijing, China Interoperability workshop of euchinagrid Beijing, 12-14

Yongjian Wang BUAA Bejiing, 12-16 June 2006

Authentication & Authorization

Authentication Agora service

– Provide resource management, user management and so on– Convert username and password to corresponding proxy and

token Authorization

SAML Authorization Token– Subject

Requester Agora Information Requester Role Information on Agora Server DN of requester

– Action Operations of Requested Service

Page 22: FP6−2004−Infrastructures−6-SSA-026634 CNGrid Middleware GOSv2 Yongjian Wang BUAA – Beijing, China Interoperability workshop of euchinagrid Beijing, 12-14

Yongjian Wang BUAA Bejiing, 12-16 June 2006

Security mechanism

Page 23: FP6−2004−Infrastructures−6-SSA-026634 CNGrid Middleware GOSv2 Yongjian Wang BUAA – Beijing, China Interoperability workshop of euchinagrid Beijing, 12-14

Yongjian Wang BUAA Bejiing, 12-16 June 2006

Core Level Services of GOSv2

Page 24: FP6−2004−Infrastructures−6-SSA-026634 CNGrid Middleware GOSv2 Yongjian Wang BUAA – Beijing, China Interoperability workshop of euchinagrid Beijing, 12-14

Yongjian Wang BUAA Bejiing, 12-16 June 2006

Outline

Core Level Services Agora Service

User Management Service Resource Management Service Security authentication and authorization

Grip Service Grip Container Grip Struct

Router Service Overlay network approach for resource management and

locating Resource discovery in GOSv2

Page 25: FP6−2004−Infrastructures−6-SSA-026634 CNGrid Middleware GOSv2 Yongjian Wang BUAA – Beijing, China Interoperability workshop of euchinagrid Beijing, 12-14

Yongjian Wang BUAA Bejiing, 12-16 June 2006

Agora Service

Page 26: FP6−2004−Infrastructures−6-SSA-026634 CNGrid Middleware GOSv2 Yongjian Wang BUAA – Beijing, China Interoperability workshop of euchinagrid Beijing, 12-14

Yongjian Wang BUAA Bejiing, 12-16 June 2006

Agora Service

GOS Hosting

Env.

CoreLevel

Services

Authorization Engine

Grip Service

Servlet Based Scalable Grid Portal Engine

User CustomizedApplications

Grid Apps

Core APIs Core Libraries(Grip, Agora, Router, AC Handling, Core Exception Handling)

AgoraAA

Grip Container

Multi-GrainedResource AC Policy Mgmt.

User Mgmt. Engine

Acct.Authentication

Acct.Approve

Profile

Role Based Acct. Mgmt.

Resource Mgmt. Engine

Service Addr. and PortType

Mapping

ServiceInfo

Mgmt.

Service Invocation

Addr. Trans.

Grip Ctrl. Structure

User Interaction

Result Caching

Grip State Mgmt.

Service Locating(Global)Service Info. Mgmt. (Local)

Java J2SE, J2EE/Microsoft Windows

Tomcat(Apache)

WebSphere(IBM)

WebLogic(BEA)

.NET(Microsoft)

GT4(Globus)

Core Exceptions

System and Application Libraries(Core Based Functional APIs and Exception Handling)

ExtendedSystem

Services

Information(MetaX) Services

MetaDBService

MetaSysService

Naming

File AC Mgmt.

Replica Mgmt.

MetaFile ServiceMeta Info

Mgmt. Quota Mgmt.

etc.

Batch Service Workflow Service etc.

User APIs

SystemLevel

Services

App Level Services

Proxy Cert.

Build-in Utility Collection Extended UtilitiesGrid Portal

Application Logic by Web Pages

CA&Certificates

Mgmt. Service

Base Services

Dymaic Deploy Service

SystemMonitoring

Service

Logging& Auditing Service

File Service

Database Service

Messaging Service

GIS Service

Router Service

OMII

•G

OS

v2 Architecture

Page 27: FP6−2004−Infrastructures−6-SSA-026634 CNGrid Middleware GOSv2 Yongjian Wang BUAA – Beijing, China Interoperability workshop of euchinagrid Beijing, 12-14

Yongjian Wang BUAA Bejiing, 12-16 June 2006

Functions of Agora Service

Role based grid user management Both external and internal user name Proxy certificates management

Service oriented resource management Mapping effective resource to virtual resource Currently using random resource selection algorithm

Token based authorization and access control management Multi-granularity SAML based and decoupled

Page 28: FP6−2004−Infrastructures−6-SSA-026634 CNGrid Middleware GOSv2 Yongjian Wang BUAA – Beijing, China Interoperability workshop of euchinagrid Beijing, 12-14

Yongjian Wang BUAA Bejiing, 12-16 June 2006

Architecture of Agora Service

Page 29: FP6−2004−Infrastructures−6-SSA-026634 CNGrid Middleware GOSv2 Yongjian Wang BUAA – Beijing, China Interoperability workshop of euchinagrid Beijing, 12-14

Yongjian Wang BUAA Bejiing, 12-16 June 2006

Grip Service

Page 30: FP6−2004−Infrastructures−6-SSA-026634 CNGrid Middleware GOSv2 Yongjian Wang BUAA – Beijing, China Interoperability workshop of euchinagrid Beijing, 12-14

Yongjian Wang BUAA Bejiing, 12-16 June 2006

Agora Service

GOS Hosting

Env.

CoreLevel

Services

Authorization Engine

Grip Service

Servlet Based Scalable Grid Portal Engine

User CustomizedApplications

Grid Apps

Core APIs Core Libraries(Grip, Agora, Router, AC Handling, Core Exception Handling)

AgoraAA

Grip Container

Multi-GrainedResource AC Policy Mgmt.

User Mgmt. Engine

Acct.Authentication

Acct.Approve

Profile

Role Based Acct. Mgmt.

Resource Mgmt. Engine

Service Addr. and PortType

Mapping

ServiceInfo

Mgmt.

Service Invocation

Addr. Trans.

Grip Ctrl. Structure

User Interaction

Result Caching

Grip State Mgmt.

Service Locating(Global)Service Info. Mgmt. (Local)

Java J2SE, J2EE/Microsoft Windows

Tomcat(Apache)

WebSphere(IBM)

WebLogic(BEA)

.NET(Microsoft)

GT4(Globus)

Core Exceptions

System and Application Libraries(Core Based Functional APIs and Exception Handling)

ExtendedSystem

Services

Information(MetaX) Services

MetaDBService

MetaSysService

Naming

File AC Mgmt.

Replica Mgmt.

MetaFile ServiceMeta Info

Mgmt. Quota Mgmt.

etc.

Batch Service Workflow Service etc.

User APIs

SystemLevel

Services

App Level Services

Proxy Cert.

Build-in Utility Collection Extended UtilitiesGrid Portal

Application Logic by Web Pages

CA&Certificates

Mgmt. Service

Base Services

Dymaic Deploy Service

SystemMonitoring

Service

Logging& Auditing Service

File Service

Database Service

Messaging Service

GIS Service

Router Service

OMII

•G

OS

v2 Architecture

Page 31: FP6−2004−Infrastructures−6-SSA-026634 CNGrid Middleware GOSv2 Yongjian Wang BUAA – Beijing, China Interoperability workshop of euchinagrid Beijing, 12-14

Yongjian Wang BUAA Bejiing, 12-16 June 2006

Grip Service

Grip Service maintains state information for end user. Grip Container

Exposed as Web Service

Grip Struct is used to invoke different physical services on behalf of end user

Used to access underlying physical service

Page 32: FP6−2004−Infrastructures−6-SSA-026634 CNGrid Middleware GOSv2 Yongjian Wang BUAA – Beijing, China Interoperability workshop of euchinagrid Beijing, 12-14

Yongjian Wang BUAA Bejiing, 12-16 June 2006

Grip Service

Page 33: FP6−2004−Infrastructures−6-SSA-026634 CNGrid Middleware GOSv2 Yongjian Wang BUAA – Beijing, China Interoperability workshop of euchinagrid Beijing, 12-14

Yongjian Wang BUAA Bejiing, 12-16 June 2006

Router Service

Page 34: FP6−2004−Infrastructures−6-SSA-026634 CNGrid Middleware GOSv2 Yongjian Wang BUAA – Beijing, China Interoperability workshop of euchinagrid Beijing, 12-14

Yongjian Wang BUAA Bejiing, 12-16 June 2006

Agora Service

GOS Hosting

Env.

CoreLevel

Services

Authorization Engine

Grip Service

Servlet Based Scalable Grid Portal Engine

User CustomizedApplications

Grid Apps

Core APIs Core Libraries(Grip, Agora, Router, AC Handling, Core Exception Handling)

AgoraAA

Grip Container

Multi-GrainedResource AC Policy Mgmt.

User Mgmt. Engine

Acct.Authentication

Acct.Approve

Profile

Role Based Acct. Mgmt.

Resource Mgmt. Engine

Service Addr. and PortType

Mapping

ServiceInfo

Mgmt.

Service Invocation

Addr. Trans.

Grip Ctrl. Structure

User Interaction

Result Caching

Grip State Mgmt.

Service Locating(Global)Service Info. Mgmt. (Local)

Java J2SE, J2EE/Microsoft Windows

Tomcat(Apache)

WebSphere(IBM)

WebLogic(BEA)

.NET(Microsoft)

GT4(Globus)

Core Exceptions

System and Application Libraries(Core Based Functional APIs and Exception Handling)

ExtendedSystem

Services

Information(MetaX) Services

MetaDBService

MetaSysService

Naming

File AC Mgmt.

Replica Mgmt.

MetaFile ServiceMeta Info

Mgmt. Quota Mgmt.

etc.

Batch Service Workflow Service etc.

User APIs

SystemLevel

Services

App Level Services

Proxy Cert.

Build-in Utility Collection Extended UtilitiesGrid Portal

Application Logic by Web Pages

CA&Certificates

Mgmt. Service

Base Services

Dymaic Deploy Service

SystemMonitoring

Service

Logging& Auditing Service

File Service

Database Service

Messaging Service

GIS Service

Router Service

OMII

•G

OS

v2 Architecture

Page 35: FP6−2004−Infrastructures−6-SSA-026634 CNGrid Middleware GOSv2 Yongjian Wang BUAA – Beijing, China Interoperability workshop of euchinagrid Beijing, 12-14

Yongjian Wang BUAA Bejiing, 12-16 June 2006

Router Service

Router Service is used to convert virtual address to physical address. Maintain local virtual resource to physical resource

mapping relationships Communicate with neighbor router to form global view of

all the deployed router services and service locating can achieved in this way.

Page 36: FP6−2004−Infrastructures−6-SSA-026634 CNGrid Middleware GOSv2 Yongjian Wang BUAA – Beijing, China Interoperability workshop of euchinagrid Beijing, 12-14

Yongjian Wang BUAA Bejiing, 12-16 June 2006

Router Service

Different routers form an application-level virtual network to exchange V-P mapping information

Page 37: FP6−2004−Infrastructures−6-SSA-026634 CNGrid Middleware GOSv2 Yongjian Wang BUAA – Beijing, China Interoperability workshop of euchinagrid Beijing, 12-14

Yongjian Wang BUAA Bejiing, 12-16 June 2006

Router Scenario- LinkGOS APIS(Client Side) source router neighbor router

link

link

ping

link response

link

result

link response link source

link neighbor

Page 38: FP6−2004−Infrastructures−6-SSA-026634 CNGrid Middleware GOSv2 Yongjian Wang BUAA – Beijing, China Interoperability workshop of euchinagrid Beijing, 12-14

Yongjian Wang BUAA Bejiing, 12-16 June 2006

Router Scenario- Neighbor Update

NbUpdater Thread(rtA) RouterUpdator Thread(rtA)neighbor router B local router A

ping

sleep nbinterval

sleep interval

ping response

ping

ping response

ping

ping response

getalivenb

alive nb

refreshrouter

updated global router info

sleep intervalgetalivenb

alive nb

refreshrouter

updated global router info

update router table

update router table

Page 39: FP6−2004−Infrastructures−6-SSA-026634 CNGrid Middleware GOSv2 Yongjian Wang BUAA – Beijing, China Interoperability workshop of euchinagrid Beijing, 12-14

Yongjian Wang BUAA Bejiing, 12-16 June 2006

Router Scenario- search

GOS APIS(Client Side)

search

default router remote router

responseresponse

link router

search

response

searchsearch

Page 40: FP6−2004−Infrastructures−6-SSA-026634 CNGrid Middleware GOSv2 Yongjian Wang BUAA – Beijing, China Interoperability workshop of euchinagrid Beijing, 12-14

Yongjian Wang BUAA Bejiing, 12-16 June 2006

How to discovery resource in GOSv2

Resource discovery in GOSv2 consist of the following steps: Find effective address of resource Convert effective address into virtual address Convert virtual address into physical address

Page 41: FP6−2004−Infrastructures−6-SSA-026634 CNGrid Middleware GOSv2 Yongjian Wang BUAA – Beijing, China Interoperability workshop of euchinagrid Beijing, 12-14

Yongjian Wang BUAA Bejiing, 12-16 June 2006

System/Application Level Services

Page 42: FP6−2004−Infrastructures−6-SSA-026634 CNGrid Middleware GOSv2 Yongjian Wang BUAA – Beijing, China Interoperability workshop of euchinagrid Beijing, 12-14

Yongjian Wang BUAA Bejiing, 12-16 June 2006

Outline

GFI (Grid File Infrastructure) Meta service

Provide logically global user file space

Data Service Distributed file storage

File transferred using soap message

Grid Batch System Using Grip and GFI to support global file stagein/out

Using simple batch driver to connect to local batch systems, such as

OpenPBS, LSF etc.

Grid Batch Accounting System

Page 43: FP6−2004−Infrastructures−6-SSA-026634 CNGrid Middleware GOSv2 Yongjian Wang BUAA – Beijing, China Interoperability workshop of euchinagrid Beijing, 12-14

Yongjian Wang BUAA Bejiing, 12-16 June 2006

Meta Service

Page 44: FP6−2004−Infrastructures−6-SSA-026634 CNGrid Middleware GOSv2 Yongjian Wang BUAA – Beijing, China Interoperability workshop of euchinagrid Beijing, 12-14

Yongjian Wang BUAA Bejiing, 12-16 June 2006

Agora Service

GOS Hosting

Env.

CoreLevel

Services

Authorization Engine

Grip Service

Servlet Based Scalable Grid Portal Engine

User CustomizedApplications

Grid Apps

Core APIs Core Libraries(Grip, Agora, Router, AC Handling, Core Exception Handling)

AgoraAA

Grip Container

Multi-GrainedResource AC Policy Mgmt.

User Mgmt. Engine

Acct.Authentication

Acct.Approve

Profile

Role Based Acct. Mgmt.

Resource Mgmt. Engine

Service Addr. and PortType

Mapping

ServiceInfo

Mgmt.

Service Invocation

Addr. Trans.

Grip Ctrl. Structure

User Interaction

Result Caching

Grip State Mgmt.

Service Locating(Global)Service Info. Mgmt. (Local)

Java J2SE, J2EE/Microsoft Windows

Tomcat(Apache)

WebSphere(IBM)

WebLogic(BEA)

.NET(Microsoft)

GT4(Globus)

Core Exceptions

System and Application Libraries(Core Based Functional APIs and Exception Handling)

ExtendedSystem

Services

Information(MetaX) Services

MetaDBService

MetaSysService

Naming

File AC Mgmt.

Replica Mgmt.

MetaFile ServiceMeta Info

Mgmt. Quota Mgmt.

etc.

Batch Service Workflow Service etc.

User APIs

SystemLevel

Services

App Level Services

Proxy Cert.

Build-in Utility Collection Extended UtilitiesGrid Portal

Application Logic by Web Pages

CA&Certificates

Mgmt. Service

Base Services

Dymaic Deploy Service

SystemMonitoring

Service

Logging& Auditing Service

File Service

Database Service

Messaging Service

GIS Service

Router Service

OMII

•G

OS

v2 Architecture

Page 45: FP6−2004−Infrastructures−6-SSA-026634 CNGrid Middleware GOSv2 Yongjian Wang BUAA – Beijing, China Interoperability workshop of euchinagrid Beijing, 12-14

Yongjian Wang BUAA Bejiing, 12-16 June 2006

Functions of meta service

Name mapping on grid file• effective name virtual name physical name

Page 46: FP6−2004−Infrastructures−6-SSA-026634 CNGrid Middleware GOSv2 Yongjian Wang BUAA – Beijing, China Interoperability workshop of euchinagrid Beijing, 12-14

Yongjian Wang BUAA Bejiing, 12-16 June 2006

Functions of Meta Service (cont.)

Maintain global file information Maintain file access permissions information Cooperate with Authorization Authority in agora

service for file access authorization User quota management

Page 47: FP6−2004−Infrastructures−6-SSA-026634 CNGrid Middleware GOSv2 Yongjian Wang BUAA – Beijing, China Interoperability workshop of euchinagrid Beijing, 12-14

Yongjian Wang BUAA Bejiing, 12-16 June 2006

Meta Service - Operations

Category Service Operations

meta data query related

isFile 、 isDir 、 exist 、 info 、 getVirtualName 、 List 、 Search

file directory related createNewFile 、 delete 、 mkdir 、 rmdir 、 move 、 rename 、 upload

file access permissions related

getACLInfo 、 Auth 、 Revoke

Page 48: FP6−2004−Infrastructures−6-SSA-026634 CNGrid Middleware GOSv2 Yongjian Wang BUAA – Beijing, China Interoperability workshop of euchinagrid Beijing, 12-14

Yongjian Wang BUAA Bejiing, 12-16 June 2006

Data Service

Page 49: FP6−2004−Infrastructures−6-SSA-026634 CNGrid Middleware GOSv2 Yongjian Wang BUAA – Beijing, China Interoperability workshop of euchinagrid Beijing, 12-14

Yongjian Wang BUAA Bejiing, 12-16 June 2006

Agora Service

GOS Hosting

Env.

CoreLevel

Services

Authorization Engine

Grip Service

Servlet Based Scalable Grid Portal Engine

User CustomizedApplications

Grid Apps

Core APIs Core Libraries(Grip, Agora, Router, AC Handling, Core Exception Handling)

AgoraAA

Grip Container

Multi-GrainedResource AC Policy Mgmt.

User Mgmt. Engine

Acct.Authentication

Acct.Approve

Profile

Role Based Acct. Mgmt.

Resource Mgmt. Engine

Service Addr. and PortType

Mapping

ServiceInfo

Mgmt.

Service Invocation

Addr. Trans.

Grip Ctrl. Structure

User Interaction

Result Caching

Grip State Mgmt.

Service Locating(Global)Service Info. Mgmt. (Local)

Java J2SE, J2EE/Microsoft Windows

Tomcat(Apache)

WebSphere(IBM)

WebLogic(BEA)

.NET(Microsoft)

GT4(Globus)

Core Exceptions

System and Application Libraries(Core Based Functional APIs and Exception Handling)

ExtendedSystem

Services

Information(MetaX) Services

MetaDBService

MetaSysService

Naming

File AC Mgmt.

Replica Mgmt.

MetaFile ServiceMeta Info

Mgmt. Quota Mgmt.

etc.

Batch Service Workflow Service etc.

User APIs

SystemLevel

Services

App Level Services

Proxy Cert.

Build-in Utility Collection Extended UtilitiesGrid Portal

Application Logic by Web Pages

CA&Certificates

Mgmt. Service

Base Services

Dymaic Deploy Service

SystemMonitoring

Service

Logging& Auditing Service

File Service

Database Service

Messaging Service

GIS Service

Router Service

OMII

•G

OS

v2 Architecture

Page 50: FP6−2004−Infrastructures−6-SSA-026634 CNGrid Middleware GOSv2 Yongjian Wang BUAA – Beijing, China Interoperability workshop of euchinagrid Beijing, 12-14

Yongjian Wang BUAA Bejiing, 12-16 June 2006

Functions of Data Service

Map user identification to local file directory Different user correspond to different local file directory

Store user file in local file system Transfer file (download/upload) by servlet Form distributed, uniformed user file storage space

Page 51: FP6−2004−Infrastructures−6-SSA-026634 CNGrid Middleware GOSv2 Yongjian Wang BUAA – Beijing, China Interoperability workshop of euchinagrid Beijing, 12-14

Yongjian Wang BUAA Bejiing, 12-16 June 2006

Data Service - Operations

Category Service Operations

file or directory operation related

mkdir 、 rmdir 、 creatNewFile 、 delete

file transfer related setUploadFileName 、 setDownloadFileName

Page 52: FP6−2004−Infrastructures−6-SSA-026634 CNGrid Middleware GOSv2 Yongjian Wang BUAA – Beijing, China Interoperability workshop of euchinagrid Beijing, 12-14

Yongjian Wang BUAA Bejiing, 12-16 June 2006

Upload File Scenario

Page 53: FP6−2004−Infrastructures−6-SSA-026634 CNGrid Middleware GOSv2 Yongjian Wang BUAA – Beijing, China Interoperability workshop of euchinagrid Beijing, 12-14

Yongjian Wang BUAA Bejiing, 12-16 June 2006

Grid Batch System

Page 54: FP6−2004−Infrastructures−6-SSA-026634 CNGrid Middleware GOSv2 Yongjian Wang BUAA – Beijing, China Interoperability workshop of euchinagrid Beijing, 12-14

Yongjian Wang BUAA Bejiing, 12-16 June 2006

Agora Service

GOS Hosting

Env.

CoreLevel

Services

Authorization Engine

Grip Service

Servlet Based Scalable Grid Portal Engine

User CustomizedApplications

Grid Apps

Core APIs Core Libraries(Grip, Agora, Router, AC Handling, Core Exception Handling)

AgoraAA

Grip Container

Multi-GrainedResource AC Policy Mgmt.

User Mgmt. Engine

Acct.Authentication

Acct.Approve

Profile

Role Based Acct. Mgmt.

Resource Mgmt. Engine

Service Addr. and PortType

Mapping

ServiceInfo

Mgmt.

Service Invocation

Addr. Trans.

Grip Ctrl. Structure

User Interaction

Result Caching

Grip State Mgmt.

Service Locating(Global)Service Info. Mgmt. (Local)

Java J2SE, J2EE/Microsoft Windows

Tomcat(Apache)

WebSphere(IBM)

WebLogic(BEA)

.NET(Microsoft)

GT4(Globus)

Core Exceptions

System and Application Libraries(Core Based Functional APIs and Exception Handling)

ExtendedSystem

Services

Information(MetaX) Services

MetaDBService

MetaSysService

Naming

File AC Mgmt.

Replica Mgmt.

MetaFile ServiceMeta Info

Mgmt. Quota Mgmt.

etc.

Batch Service Workflow Service etc.

User APIs

SystemLevel

Services

App Level Services

Proxy Cert.

Build-in Utility Collection Extended UtilitiesGrid Portal

Application Logic by Web Pages

CA&Certificates

Mgmt. Service

Base Services

Dymaic Deploy Service

SystemMonitoring

Service

Logging& Auditing Service

File Service

Database Service

Messaging Service

GIS Service

Router Service

OMII

•G

OS

v2 Architecture

Page 55: FP6−2004−Infrastructures−6-SSA-026634 CNGrid Middleware GOSv2 Yongjian Wang BUAA – Beijing, China Interoperability workshop of euchinagrid Beijing, 12-14

Yongjian Wang BUAA Bejiing, 12-16 June 2006

Batch System in GOSv2

Local batch system driver Hiding different local batch systems such as

OpenPBS 、 LSF and so on

Grid batch service Local batch system service wrapper

Grid batch system client side APIs Interact with batch service by grip Hiding details such as service invocation, file stagein /

stageout

Page 56: FP6−2004−Infrastructures−6-SSA-026634 CNGrid Middleware GOSv2 Yongjian Wang BUAA – Beijing, China Interoperability workshop of euchinagrid Beijing, 12-14

Yongjian Wang BUAA Bejiing, 12-16 June 2006

Architecture of Batch Service

Page 57: FP6−2004−Infrastructures−6-SSA-026634 CNGrid Middleware GOSv2 Yongjian Wang BUAA – Beijing, China Interoperability workshop of euchinagrid Beijing, 12-14

Yongjian Wang BUAA Bejiing, 12-16 June 2006

Batch Job Descriptor

Page 58: FP6−2004−Infrastructures−6-SSA-026634 CNGrid Middleware GOSv2 Yongjian Wang BUAA – Beijing, China Interoperability workshop of euchinagrid Beijing, 12-14

Yongjian Wang BUAA Bejiing, 12-16 June 2006

Batch Service Scenario

Page 59: FP6−2004−Infrastructures−6-SSA-026634 CNGrid Middleware GOSv2 Yongjian Wang BUAA – Beijing, China Interoperability workshop of euchinagrid Beijing, 12-14

Yongjian Wang BUAA Bejiing, 12-16 June 2006

Batch service in the future

GridSAM will act as batch service for different grid node Support JSDL specification Support plain ftp and GridFTP based stagein/stageout Maintain job states Extend GridSAM to support OpenPBS and LSF batch

system Replace GridSAM security mechanism with CNGrid

security mechanism

Page 60: FP6−2004−Infrastructures−6-SSA-026634 CNGrid Middleware GOSv2 Yongjian Wang BUAA – Beijing, China Interoperability workshop of euchinagrid Beijing, 12-14

Yongjian Wang BUAA Bejiing, 12-16 June 2006

Grid Batch Accounting System

Page 61: FP6−2004−Infrastructures−6-SSA-026634 CNGrid Middleware GOSv2 Yongjian Wang BUAA – Beijing, China Interoperability workshop of euchinagrid Beijing, 12-14

Yongjian Wang BUAA Bejiing, 12-16 June 2006

Agora Service

GOS Hosting

Env.

CoreLevel

Services

Authorization Engine

Grip Service

Servlet Based Scalable Grid Portal Engine

User CustomizedApplications

Grid Apps

Core APIs Core Libraries(Grip, Agora, Router, AC Handling, Core Exception Handling)

AgoraAA

Grip Container

Multi-GrainedResource AC Policy Mgmt.

User Mgmt. Engine

Acct.Authentication

Acct.Approve

Profile

Role Based Acct. Mgmt.

Resource Mgmt. Engine

Service Addr. and PortType

Mapping

ServiceInfo

Mgmt.

Service Invocation

Addr. Trans.

Grip Ctrl. Structure

User Interaction

Result Caching

Grip State Mgmt.

Service Locating(Global)Service Info. Mgmt. (Local)

Java J2SE, J2EE/Microsoft Windows

Tomcat(Apache)

WebSphere(IBM)

WebLogic(BEA)

.NET(Microsoft)

GT4(Globus)

Core Exceptions

System and Application Libraries(Core Based Functional APIs and Exception Handling)

ExtendedSystem

Services

Information(MetaX) Services

MetaDBService

MetaSysService

Naming

File AC Mgmt.

Replica Mgmt.

MetaFile ServiceMeta Info

Mgmt. Quota Mgmt.

etc.

Batch Service Workflow Service etc.

User APIs

SystemLevel

Services

App Level Services

Proxy Cert.

Build-in Utility Collection Extended UtilitiesGrid Portal

Application Logic by Web Pages

CA&Certificates

Mgmt. Service

Base Services

Dymaic Deploy Service

SystemMonitoring

Service

Logging& Auditing Service

File Service

Database Service

Messaging Service

GIS Service

Router Service

OMII

•G

OS

v2 Architecture

Page 62: FP6−2004−Infrastructures−6-SSA-026634 CNGrid Middleware GOSv2 Yongjian Wang BUAA – Beijing, China Interoperability workshop of euchinagrid Beijing, 12-14

Yongjian Wang BUAA Bejiing, 12-16 June 2006

Grid Batch Accounting System

Page 63: FP6−2004−Infrastructures−6-SSA-026634 CNGrid Middleware GOSv2 Yongjian Wang BUAA – Beijing, China Interoperability workshop of euchinagrid Beijing, 12-14

Yongjian Wang BUAA Bejiing, 12-16 June 2006

Q&A