Distributed Systems Slides-Lesson5
Distributed Systems Slides-Lesson5
Distributed Systems Slides-Lesson5
Lecture four
middle ware
Middle ware
Applications, services
Middleware
Operating system
Platform
4
Middle ware functions
• communication services
• Naming services
• Distributed transaction services
• Security services
communication services
13
Middle ware models
2.Distributed objects.
3.Distributed documents
14
1.Remote Procedure Calls (RPCs
• The idea behind RPC is to call code remotely as if
we were just calling a procedure
15
1.Remote Procedure Calls (RPCs
• From the client's point of view, calling a service on
the server should look just like calling a local
function, and the RPC framework is the responsible
for serializing parameters to the service, making sure
the correct service is run, and fetching the result
back to the client.
16
1.Remote Procedure Calls (RPCs)
17
1.Steps of a Remote Procedure Call (RPCs)
18
1.Steps of a Remote Procedure Call (RPCs)
19
1.Steps of a Remote Procedure Call (RPCs)
20
Remote procedure calls(RPC)
21
Remote procedure calls(RPC)
Rpc provides the following services
1. access transparency-a call to remote procedure may
be similar to a local procedure
23
Remote method invocation
24
Remote method invocation
25
Remote method invocation
• The objective of RMI is that each object implements
an interface that hides all the internal details of the
object from its users.
26
Remote method invocation
• Each object is located on a single machine and it’s
interface available on other machines.
27
A Remote Object
34
3. Distributed documents
• information is organized into documents, with
each document residing at a machine
transparently located somewhere in the world.
• Documents contain links that refer to other
documents.
• By following a link, the document to which that
link refers is fetched from its location and
displayed on the user’s screen.
• e.g world wide web
35
4. distributed file systems
• A distributed file system is a subsystem of
distributed system that performs file management
activities where multiple users share files and
storage resources that physically dispersed.
36
DFS components
39
Distributed file systems
40
Distributed file systems
41
Features of a good DFS
1.Flexible:
• It must be possible to add or replace file servers.
42
Features of a good DFS
5. High performance:
Time of accessing secondary devices and cpu
processing time should be minimal.
Time needed to satisfy clients requests in dfs should
be comparable to that of a centralized file system.
DFS services
Name service
- provides a mapping between text names for file
and references to files that is file Ids
1. Unstructured files
2. structured files.
3. mutable files
4. immutable files
1. Unstructured files
• In this model, the content of each file of the file
System appears to the file server as a uninterrupted
sequence of bytes
• Distributed objects
• CORBA
• Process Migration
• Kerberos