Docsity

Distributed Object-Based Systems - Class Notes | ECE 151, Study notes of Electrical and Electronics Engineering

Partial preview of the text

Download Distributed Object-Based Systems - Class Notes | ECE 151 and more Study notes Electrical and Electronics Engineering in PDF only on Docsity!

ECE151 – Lecture 16

Chapter 9

Distributed Object-Based Systems

DCOM

Distributed COM

DCOM: Distributed Component Object Model

Microsoft’s solution to establishing inter-process

communication, possibly across machine

boundaries.

Supports a primitive notion of distributed objects

Evolved from early Windows versions to current

NT-based systems (including Windows 2000)

Comparable to CORBA’s object request broker

Object Model

The difference between language-defined and binary

interfaces.

DCOM Registry and Proxy

SCM: Service Control Manager, responsible for activating

objects (cf., to CORBA’s implementation repository).

Proxy marshaler: handles the way that object references are

passed between different machines

ECE151 – Lecture 16

DCOM Services

Overview of DCOM services in comparison to CORBA services.

Time None None Security Authorization SSL, Kerberos Relationship None Database access Persistence Structured storage Database access Trading None Active Directory Property None Active Directory Naming Monikers Active Directory Licensing Special class factories - Life cycle Class factories, JIT activation - Externalization Marshaling utilities - Notification COM+ Events - Event COM+ Events - Transaction COM+ Automatic Transactions Distributed Transaction Coordinator Concurrency Thread concurrency - Query None - Collection ActiveX Data Objects - CORBA Service DCOM/COM+ Service Windows 2000 Service

Events

Event processing in DCOM.

Object invocations: Synchronous remote-method calls with at

most-once semantics. Asynchronous invocations are supported

through a polling model, as in CORBA.

Event communication: Similar to CORBA’s push-style model:

Messaging: Completely analogous to CORBA messaging.

Naming: Monikers

Observation: DCOM can handle only objects as

temporary instances of a class. To accommodate

objects that can outlive their client, something else is

needed.

Moniker: A hack to support real objects

A moniker associates data (e.g., a file), with an

application or program

Monikers can be stored

A moniker can contain a binding protocol ,

specifying how the associated program should be

“launched” with respect to the data.

Monikers

7 Moniker Returns interface pointer of object to client

6 Object Loads its state from file

5 Moniker Instructs object to load previously stored state

Creates object and returns interface pointer to

moniker

4 Class object

3 SCM Loads class object

Looks up associated CLSID and instructs SCM

to create object

2 Moniker

1 Client Calls BindMoniker at moniker

Step Performer Description

Active Directory

Essence: a worldwide distributed directory service, but one that does not

provide location transparency.

Basics: Associate a directory service (called domain controller ) with

each domain; look up the controller using a normal DNS query:

Controller is implemented as an LDAP server

Fault Tolerance

DISABLED Never join a transaction, even if told to do so

NOT_SUPPORTED Never join a transaction

SUPPORTED Join a transaction only if caller is already part of one

REQUIRED A new transaction is started if not already done so

REQUIRES_NEW A new transaction is always started at each invocation

Attribute value Description

Automatic transactions: Each class object

(from which objects are created), has a

transaction attribute that determines how

its objects behave as part of a transaction:

Transactions are essentially executed at the level of a

method invocation.

Declarative Security

DELEGATE The server can invoke remote objects on behalf of the client

IMPERSONATE The server can invoke local objects on behalf of the client

The server knows the client and can do access control

checks

IDENTIFY

ANONYMOUS The client is completely anonymous to the server

Impersonation level Description

Delegation: A server can impersonate a client

depending on a level:

There is also support for programmatic security

by which security levels can be set by an application,

as well as the required security services (see book).

Programmatic Security

a) Default authentication services supported in DCOM.

b) Default authorization services supported in DCOM.

(b) DCE Authorization using DEC Privilege Attribute Certificates (PACs) NAME Authorization based on the client's identity NONE No authorization Service Description (a) GSS_KERBEROS Kerberos authentication WINNT Windows NT security DCE_PUBLIC DCE authentication based on public keys DCE_PRIVATE DCE authentication based on shared keys NONE No authentication Service Description

Summary

Comparison of CORBA and DCOM.

Issue CORBA DCOM Security Various mechanisms Various mechanisms Recovery support Yes By transactions Fault tolerance By replication By transactions Transactions Yes Yes Replication support Separate server None Synchronization Transactions Transactions Object reference Object's location Interface pointer Location service No No Naming service Yes Yes