Unit-1 - Introduction To Distributed Computing System
Unit-1 - Introduction To Distributed Computing System
Introduction to Distributed
Computing System
Reference books:
1. Sunita Mahajan, Seema Shah – “Distributed Computing”- Oxford University
Press.
2. M. L. Liu - “Distributed Computing: Principles and Applications”- Pearson
Education.
3. George Coulouris, Jean Dollimore, Tim Kindberg –“Distributed Systems:
Concepts and Design”, Fourth Edition, Pearson Education.
P P P P
Shared Memory
Unit 1: Introduction to Distributed Computing System 7 CGPIT, UTU
Tightly-Coupled (Shared Memory)
Shared Memory Machine: The n processors shares physical
address space. Communication can be done through shared
memory.
A=10+10
A=A+10
A=20 Read
A=20A
P P P P
A=10
A=20
10
Unit 1: Introduction to Distributed Computing System 8 CGPIT, UTU
Loosely coupled system
Loosely coupled systems (Distributed Computing System): In these
systems, the processors do not share memory, and each processor
has its own local memory.
M M M M
P P P P
M M M M
A=10A
Read P P P P A=20A
Read
Read
A=20A
Basic Processors have shared memory Each processor has its own
modules. memory module.
Efficient Efficient for high-speed or real- Efficient when tasks running on
time processing. different processors, has minimal
interaction.
For a particular processor, its own resources are local, whereas the
other processors and their resources are remote. Together, a
processor and its resources are usually referred to as a node or site
or machine of the distributed computing system.
Minicomputer Model
Workstation Model
Hybrid Model
Unit 1: Introduction to Distributed Computing System 15 CGPIT, UTU
1. Minicomputer Model
Extension of Time sharing system
• User must log on his/her home minicomputer.
• Thereafter, he/she can log on a remote machine by telnet.
Resource sharing
• Database T
Mini-
• High-performance devices Computer
T
Example:
• ARPAnet
T T
Mini- Communication Mini-
Computer Network Computer
T T
Workstation Workstation
Unit 1: Introduction to Distributed Computing System 17 CGPIT, UTU
Distributed Computing System Definition
Ways to handle the first two issues are described in later chapter.
Three commonly used approaches for handling the third issue are
as follows:
1. The first approach is to allow the remote process share the resources of
the workstation
2. The second approach is to kill the remote process.
3. The third approach is to migrate the remote process back to its home
workstation, so that its execution can be continued there.
Workstation Workstation
Communication
Workstation Workstation
Network
Mini Mini
Computer Mini Computer
Used as a Computer Used as a
File Server Used as a Print Server
database
Server
Unit 1: Introduction to Distributed Computing System 19 CGPIT, UTU
3. Workstation-Server Model
Client workstations
• Diskless
• Graphic/interactive applications processed in local.
• All file, Print, http and even cycle computation requests are sent to servers.
Server minicomputers
• Each minicomputer is dedicated to one or more different types of services.
Client-Server model of communication
• RPC (Remote Procedure Call)
• RMI (Remote Method Invocation)
• A Client process calls a server process function.
• No process migration invoked
Terminals Terminals
Communication
Terminals Terminals
Network
Run File
Server ---------- Server
Pool of processors
Unit 1: Introduction to Distributed Computing System 22 CGPIT, UTU
4. Processor-Pool Model
Clients:
• They log in one of terminals (diskless workstations)
• All services are dispatched to servers.
Servers:
• Necessary number of processors are allocated to each user
from the pool.
Better utilization of resources.
Example:
• Web Search Engines
Resource Sharing:
• Printer, Hard-disk etc.
Higher reliability:
• Reliability refers to the degree of tolerance against errors and component failure in a system.
• CPU Fail, Disk Fail
• Availability
Unit 1: Introduction to Distributed Computing System 26 CGPIT, UTU
1.4 Distributed Computing System Gaining Popularity (Advantages)
1. To present users with a virtual machine that is easier to program than the
underlying hardware.
2. To manage the various resources of the system.
1. System image
2. Autonomy
3. Fault tolerance capability
1. System image
2. Autonomy
3. Fault tolerance capability
Communication
Network
Web Server
Mechanical Computer
Department Department
Vertical Scaling
Add more
Processors/Systems
DOS
Horizontal Scaling
Unit 1: Introduction to Distributed Computing System 39 CGPIT, UTU
Examples of Distributed Systems
From the definition, Distributed Systems also looks the same as
single system.
Let us say about Google Web Server, from users perspective while
they submit the searched query, they assume google web server
as a single system.
Just visit google.com, then search.
However, under the hood Google builds a lot of servers even
distributes in different geographical area to give you a search
result within few seconds.
So the Distributed Systems does not make any sense for normal
users.
Security
• Each user has the feeling that he or she is the sole user
of the system and other user do not exists in the
Concurrency system.
Transparency • Hide the possibility that the resource may be shared
concurrently.
• Example: Automatic teller machine network, DBMS
For this, OSF issued a request for technology (RFT), asking for tools and services
needed to build a coherent distributed computin environment.
OSF to produce a single integrated package that was made available to the
world as DCE. Version 1.0 of DCE was released by OSF in January 1992.
Unit 1: Introduction to Distributed Computing System 63 CGPIT, UTU
1.7 Distributed Computing Environment (DCE)
DCE Components :
1. Threads package
2. Remote Procedure Call (RPC)facility
3. Distributed Time Service (DTS)
4. Name services
5. Security Service
6. Distributed File Service (DFS)