CII3D4 SisTerPar 02 Model Sistem Terdistribusi

Download as pptx, pdf, or txt
Download as pptx, pdf, or txt
You are on page 1of 32

CII3D4

SISTEM PARALEL DAN TERDISTRIBUSI

Materi 2:
Model Sistem Terdistribusi
Outline Today
• System Model
• Physical Model
• Architectural Model
• Fundamental Model

2 CII3D4 – Sistem Paralel dan Terdistribusi


Difficulties on Distributed System (DS)
a) Widely varying modes of use
 have special requirements
b) Wide range of system environments
 accommodate heterogeneous hardware
c) Internal problems
 Non-synchronized clocks

3 CII3D4 – Sistem Paralel dan Terdistribusi


System Models in DS
• Should be designed to function correctly in the widest
possible range of circumstances and in the face of many
possible difficulties and threats.
• How the properties and design issues of distributed systems
can be captured and discussed through the use of descriptive
models ?
• Each type of model is intended to provide an abstract,
simplified but consistent description of a relevant aspect of
distributed system design.

4 CII3D4 – Sistem Paralel dan Terdistribusi


System Models
By a model we mean a representation of a group of
objects or ideas in some form other than that of the
entity itself.
By a system we mean a group or collection of
interrelated elements that cooperate to accomplish
some stated objective.

5 CII3D4 – Sistem Paralel dan Terdistribusi


DS Models
1) Physical Models
 types of computers and devices that constitute a system
and their interconnectivity, without details of specific
technologies
2) Architectural Models
 the computational and communication tasks performed by
its computational elements
3) Fundamental Models
 describe solutions to individual issues faced by most
distributed systems
6 CII3D4 – Sistem Paralel dan Terdistribusi
1. Physical Models
 A physical model is a representation of the underlying
hardware elements of a distributed system that abstracts away
from specific details of the computer and networking
technologies employed
 Baseline physical model: from definition - set of computer
nodes interconnected by a computer network for the required
passing of messages
 Generation:
 Early DS : ‘70s-’80s  LAN
 Internet-scale DS : ’90  Internet
 Contemporary DS : Now  Mobile Computing

7 CII3D4 – Sistem Paralel dan Terdistribusi


Generation of DS

8 CII3D4 – Sistem Paralel dan Terdistribusi


2. Architectural Models
 Its structure in terms of separately specified components and their
interrelationships
 The overall goal is to ensure that the structure will meet present and
likely future demands on it.
 Major concerns are to make the system reliable, manageable, adaptable
and cost-effective
 The section adopts a three-stage approach:
a) Architectural elements : looking at the core
b) Architectural patterns : examining composite architectural
c) considering middleware platforms

9 CII3D4 – Sistem Paralel dan Terdistribusi


a. Architectural Elements
 Communicating entities : Objects, Components, and Web
services.
 Communication paradigms : interprocess communication,
remote invocation, and indirect communication.
 Roles and responsibilities : Client-server, Peer-to-peer
 Placement : mapping of services to multiple servers, caching
(Cache server), mobile code (stockbroker), and mobile agents
(accessing individual database).

10 CII3D4 – Sistem Paralel dan Terdistribusi


Communicating Entities

What is communicating? Processes
– Nodes
– Threads

11 CII3D4 – Sistem Paralel dan Terdistribusi


Programming Perspective

Object: a computation consists of a number of
interacting objects representing natural units of
decomposition for the given problem domain

Component: specify not only their interfaces but also the
assumptions they make in terms of other
components/interfaces that must be present for a
component to fulfill its function

Web service: web services are intrinsically integrated
into the World Wide Web, using web standards to
represent and discover services

12 CII3D4 – Sistem Paralel dan Terdistribusi


Communication Paradigms

Interprocess Communication: relatively low-level
support for communication between processes in
distributed systems

Remote Invocation: techniques based on a two-
way exchange between communicating entities in
a distributed system and resulting in the calling of
a remote operation, procedure or method

Indirect Communication

13 CII3D4 – Sistem Paralel dan Terdistribusi


Interprocess Communication

Socket: Combination of IP and Port

Multicast: send to group

Message Passing

14 CII3D4 – Sistem Paralel dan Terdistribusi


Remote Invocation

Request-reply: pairwise exchange of messages from
client to server and then from server back to client, with the first
message containing
an encoding of the operation to be executed at the server and also
an array of bytes
holding associated arguments and the second message
containing any results of the
operation, again encoded as an array of bytes

RPC: procedures in processes on remote computers can be called
as if they are procedures in the local address space

RMI: strongly resembles remote procedure calls but in a world of
distributed objects

15 CII3D4 – Sistem Paralel dan Terdistribusi


Indirect Communication

Group communication

Publish-subscribe

Message queue

Tuple space

DSM

16 CII3D4 – Sistem Paralel dan Terdistribusi


Roles

Client-server

Peer-to-peer

17 CII3D4 – Sistem Paralel dan Terdistribusi


Entities and Paradigms Summary

18 CII3D4 – Sistem Paralel dan Terdistribusi


b. Architectural Patterns
• Layering : a complex system is partitioned into a number of
layers, with a
given layer making use of the services offered by the layer
below.
• Tiered architecture : a technique to organize functionality
of a given layer and place this functionality into
appropriate servers and, as a secondary consideration, on
to physical nodes.
• Other commonly occurring patterns : proxy, brokerage,
reflection
19 CII3D4 – Sistem Paralel dan Terdistribusi
SW and HW Service Layers

20 CII3D4 – Sistem Paralel dan Terdistribusi


Tier

21 CII3D4 – Sistem Paralel dan Terdistribusi


Other
• Proxy: to support location transparency in remote procedure calls or
remote method invocation. With this approach, a proxy is created in
the local address space to represent the remote object. This proxy
offers exactly the same interface as the remote object, and the
programmer makes calls on this proxy object and hence does not need
to be aware of the distributed nature of the interaction
• Brokerage: supporting interoperability in potentially complex
distributed infrastructures
• Reflection: supporting both introspection (the dynamic discovery of
properties of the system) and intercession (the ability to dynamically
modify structure or behavior)

22 CII3D4 – Sistem Paralel dan Terdistribusi


c. Associated Middleware
The task of middleware :
 to provide a higher-level programming abstraction for the
development of distributed systems and,
 through layering, to abstract over heterogeneity in the
underlying infrastructure to promote interoperability and
portability.

• Categories of middleware (SunRPC)


• Limitations of middleware (a database of names and
addresses)

23 CII3D4 – Sistem Paralel dan Terdistribusi


3. Fundamental Models
The purpose of such a model is:
• To make explicit all the relevant assumptions about the
systems we are modelling.
• To make generalizations concerning what is possible or
impossible, given those assumptions.

Model:
• Interaction: Computation occurs within processes;
• Failure: a fault occurs in any of the computers;
• Security: to attack by both external and internal agents.

24 CII3D4 – Sistem Paralel dan Terdistribusi


a. Interaction model
Two significant factors affecting interacting processes in a DS:
 Communication performance is often a limiting characteristic.
 It is impossible to maintain a single global notion of time.

• Performance of communication channels : Delay, bandwidth, and


jitter.
• Computer clocks and timing events : NTP with GPS
• Two variants of the interaction model : Synchronous DS and
Asynchronous DS.
• Event ordering : sending or receiving a message

25 CII3D4 – Sistem Paralel dan Terdistribusi


Interaction

Synchronous
– Bounded time to execute
– Bounded delay
– Bounded clock drift

Asynchronous
– Undetermined time to execute
– Undetermined delay
– Undetermined clock drift
26 CII3D4 – Sistem Paralel dan Terdistribusi
b. Failure model
The ways in which failure may occur in order to provide an
understanding of the effects of failures.

• Omission failures : Process omission failures and


Communication omission failures
• Arbitrary failures : takes unintended processing steps
• Timing failures : process execution time
• Masking failures : hiding it altogether
• Reliability of one-to-one communication : validity and
integrity

27 CII3D4 – Sistem Paralel dan Terdistribusi


Communication Model

28 CII3D4 – Sistem Paralel dan Terdistribusi


Summary of Failure Model

29 CII3D4 – Sistem Paralel dan Terdistribusi


Reliable Channel

Validity: Any message in the outgoing
message buffer is eventually delivered to
the incoming message buffer.

Integrity: The message received is
identical to one sent, and no messages
are delivered twice

30 CII3D4 – Sistem Paralel dan Terdistribusi


c. Security model
Securing the processes and the channels used for their
interactions and by protecting the objects that they encapsulate
against unauthorized access.

• Protecting objects : manages a collection of objects.


• Securing processes and their interactions : handle financial
transactions, confidential or classified information.
• The enemy : capable of sending, reading, and copying.
• Defeating security threats : Cryptography and Authentication.
• Other possible threats from an enemy : DoS

31 CII3D4 – Sistem Paralel dan Terdistribusi


THANK YOU

You might also like