SlideShare a Scribd company logo
1 of 55
Distributed Systems and
Distributed Computing

Introduction.
Outline
โ€ข
โ€ข
โ€ข
โ€ข
โ€ข
โ€ข
โ€ข
โ€ข
โ€ข

Definition of Distributed Systems
Advantages and Disadvantages
Goals
Parallel Computing
Distributed Computing
Hardware Concepts
Software Concepts
Middle Ware Systems
Technologies under use

2
Outline
โ€ข
โ€ข
โ€ข
โ€ข
โ€ข
โ€ข
โ€ข
โ€ข
โ€ข
โ€ข

RPC (Remote Procedure Call)
ROI (Remote Object Invocation)
Network Programming
Implementation of RPC using C
Implementation of ROI using Java
Java RMI
XML
Implementation of RPC using XML
SOAP
A little bit about CORBA

3
Distributed Systems
โ€ข Definition:
โ€“ The Collection of individual computers that
appears to its users as a single coherent
system.

โ€ข Coherent System:
โ€“ The system in which all the individual systems
shares the central memory (RAM).
4
Examples
โ€ข
โ€ข
โ€ข
โ€ข
โ€ข

Internet
Aero plane Ticket Reservation System
ATMs
Mobile Cellular Phone Systems
Centralized Data Base System Working in
Banks
โ€ข LAN
โ€ข MAN
โ€ข WAN
7
DS: I know it when I see it
โ€ข
โ€ข
โ€ข
โ€ข
โ€ข

-Big: Enterprise level
โ€ข Examples of DS are all around us
-Small: Personal
-Innovative: Sensor Networks
-Common: Web service
Health Monitoring System
Biggest Challenges of DS
โ€ข
โ€ข
โ€ข
โ€ข

โ€ข Configuration: How to find each other,
get started, etc
โ€ข Consensus: How to agree on stuff
โ€ข Consistency: How to have the same
view
โ€ข in the face of changes
โ€ข โ€ข Fault Tolerance: How to survive in a
world
Characteristics of DS
โ€ข
โ€ข
โ€ข
โ€ข

Scalability
Support Heterogeneity
Continuous Availability
Users are unaware about the distribution
and heterogeneity of the system
โ€ข The components of a system are also
unaware of the heterogeneity
โ€ข Users and applications can interact with
the system uniformly
12
Goals of DS
โ€ข
โ€ข
โ€ข
โ€ข

Connecting Users and Resources
Transparency
Openness
Scalability

13
Connecting Users and
Resources
โ€ข The main goal is to make easy for users to
access remote resources and to share
them with other users in a controlled way
โ€“ Security
โ€ข From external users: (Authentication, Firewall)
โ€ข From internal users: (Policies, Log Files)

14
Transparency
โ€ข To hide the fact that its processes and
resources are physically distributed across
multiple computers.
OR
โ€ข A distributed system that is able to present
itself to users and applications as it were
only a single computer system is said to
be transparent.
15
Types of Transparency
โ€ข Access (Data representation: little endian / big endian )
โ€“ To hide the details of data representations, code
translation etc.

โ€ข Location (URL)
โ€“ To hide the actual location of the resource.

โ€ข Migration
โ€“ To hide the fact that the resource has migrated from
previous location.

โ€ข Relocation
โ€“ To hide the fact that resource has been reallocated due
16
to non availability from previous location.
Types of Transparency
โ€ข Replication
โ€“ To hide the fact that resource is copied at different
locations to make availability of the resource faster.

โ€ข Concurrency
โ€“ This is a type of transparency that is related to
concurrent access to same resource.

โ€ข Failure
โ€“ To hide any of the failure that occur in accessing the
resources.

17
Openness
โ€ข An open distributed system support
heterogeneity.
โ€ข An open distributed system offer services
according to standard rules (protocols).
โ€ข Interoperability
โ€“ It is an extent by which two implementations
of system or components from different
manufacturers can co exists.

โ€ข Portability
โ€“ An application developed on one system can
be executed without modification on another.

18
Scalability
โ€ข A distributed system should be expandable
โ€“ Scalable with respect to Size
โ€ข Increase in number of nodes.

โ€“ Scalable Geographically
โ€ข Increase in size with respect to geographical location.

โ€“ Scalable Administratively
โ€ข If we expand the system then administration should not
19
become difficult.
Scalability
โ€ข Problems to be taken care of in scalability:
โ€“ Centralized Services
โ€ข Services available at central machine i-e server.

โ€“ Centralized Data
โ€ข Data available at central machine i-e data base
server.

โ€“ Centralized Algorithms.
โ€ข The algorithms that are running on server machine

20
Parallel Processing or
Computing
โ€ข Parallel computing
โ€“ Using parallel computer to solve single
problems faster

โ€ข Parallel computer
โ€“ Multiple-processor system supporting parallel
programming

โ€ข Parallel programming
โ€“ Programming in a language that supports
concurrency explicitly

21
Evolution of Supercomputing
โ€ข Supercomputers โ€“ Most powerful computers that
can currently be built. Note: This definition is
time dependent.
โ€ข Uses during World War II
โ€“ Hand-computed artillery tables
โ€“ Need to speed computations
โ€“ Army funded ENIAC to speedup calculations

โ€ข Uses during the Cold War
โ€“ Nuclear weapon design
โ€“ Intelligence gathering
โ€“ Code-breaking

22
Supercomputer
โ€ข General-purpose computer
โ€ข Solves individual problems at high speeds,
compared with contemporary systems
โ€ข Typically costs $10 million or more
โ€ข Traditionally found in government labs

23
Commercial Supercomputing
โ€ข Started in capital-intensive industries
โ€“ Petroleum exploration
โ€“ Automobile manufacturing

โ€ข Other companies followed suit
โ€“ Pharmaceutical design
โ€“ Consumer products

24
50 Years of Speed Increases
Today
> 1 trillion flops

ENIAC
350 flops
25
CPUs 1 Million Times Faster
โ€ข Faster clock speeds
โ€ข Greater system concurrency
โ€“ Multiple functional units
โ€“ Concurrent instruction execution
โ€“ Speculative instruction execution

26
CHAPTER 2
HARDWARE CONCEPTS

27
Hardware Concepts
โ€ข All distributed systems consist of multiple
CPUs.
โ€ข we can organize hardwares in several
different ways in term of their connection
and communication
โ€ข Various classification schemes have been
proposed by the time but none of them
have been widely adopted
28
Classification in term of Hardware
โ€ข We can classify distributed systems
regarding hardware in two broad
categories.
โ€“ Multi Processor Systems.
โ€“ Multi Computer Systems.

29
Hardware Requirements
โ€ข We cant define complete hardware
requirements for a distributed system in
general but we will discuss the most basic
requirements here and these are.
โ€“ Processors.
โ€“ Memory (Specially RAM).
โ€“ Interconnecting Resources.

30
Multi Processor Systems
โ€ข Such systems consist of computer having
multiple processors and memory that are
connected through a high speed back
plane over the mother board.
OR
โ€ข A simple configuration is to have a high
speed mother board into which CPU and
memory cards can be inserted.
31
Multi Processor Systems
โ€ข There are two types of multiprocessor
system with respect to Memory.
โ€“ Multi Processor System with Shared Memory.
โ€“ Multi Processor System with Non Shared
Memory.

โ€ข There are two types of multiprocessor
system with respect to Inter connection of
Memory and Processors.
โ€“ Bus Based Systems.
โ€“ Switch Based Systems.
32
Multi Processor Systems With
Shared Memory
โ€ข In such system there are multiple
processors using memory that is shared
among the processors.
โ€ข Coherent System:
โ€“ In shared memory system since there is only
one memory if processor A writes some thing
at memory address 40, and after some time
processor B reads from memory address 40 it
will get the same data written by processor A.
Inter process communication is very easy. 33
Multi Processor Systems With
Shared Memory

P1

P2

M1

P3

M2

P4

M3

34
Multi Processor Systems With Non
Shared Memory
โ€ข In such system there are multiple processors
each having its on memory along with the main
memory.
โ€ข Such Systems are incoherent.
โ€ข Inter process communication is hard to
implement due to incoherence.
โ€ข Difficult to built such systems.
โ€ข Message Passing Technique is then used to
enable inter process communication.
โ€ข Generally slow as compare to shared memory
systems.
โ€ข Advantage is we can connect more Processors.
35
Multi Processor Systems With Non
Shared Memory

P1

P2

P3

P4

M1

M2

M3

M3

Main
Memory

36
Types of Multi Processor Systems
With Respect to Interconnection
โ€ข There are two types.
โ€“ Bus Based System.
โ€“ Switch Based System.

37
Bus Based Multi Processor
Systems With Shared Memory

P1

P2

M1

P3

M2

P4

M3

38
Switch Based Multi Processor
Systems With Shared Memory

โ€ข There are two types.
โ€“ Cross Bar Switch Based.
โ€“ Omega Switch Based.

39
Cross Bar Switch Based Multi
Processor Systems With Shared
Memory
P1

P2

P3

P4

M1

M2

M3

Cross Point
Switch

40
Omega Switch Based Multi
Processor Systems With Shared
Memory
M1

P1

M2

P2

M3

P3

M4

P4
2 x 2 Cross
Point Switch

41
Multi Computer Systems
โ€ข The system consists of multiple computers
connected by interconnecting resources.
โ€ข For Example:
โ€“ We have ten computers in the lab, we have
ten processors with memories available for
process an application.
โ€“ Why not we use them as a single system to
process an application.
โ€“ Internet.

42
Multi Computer Systems
โ€ข Such system will be incoherent in nature as it
will have ten processors, all of which have its
own memory.
โ€ข In other words No Shared memory.
โ€ข Inter Process communication will then achieved
through message passing techniques.
โ€ข This technique is little bit hard to implement but
not as much costly as to buy minicomputer or
any other high rank systems.
โ€ข And then make program using parallel
programming.
43
Types Of Multi Computer Systems

โ€ข There are two types based on types of
computers we wanted to use in our
system
โ€“ Homogeneous Multi Computer systems.
โ€“ Heterogeneous Multi Computer Systems.
44
Types Of Multi Computer Systems
โ€ข There are two types further based on
Interconnection resources.
โ€“ Homogeneous Multi Computer Systems
โ€ข Bus Based Systems.
โ€ข Switch Based systems.

โ€“ Heterogeneous Multi Computer Systems
โ€ข Bus Based Systems.
โ€ข Switch Based systems.
45
Homogeneous Multi Computer
Systems
โ€ข The system consist of same type of
computers.
โ€ข Each Computer has its own memory.
โ€ข Computer will communicate each other
through a high speed interconnection
network.
โ€ข This high speed interconnection network
can be a bus based or switch based.
46
System Area Network
โ€ข SAN are homogeneous multi computer
systems based on fast bus based
interconnecting network.
โ€ข Normally these computers are connected
through a shared multi access network
(Fast Ethernet).
โ€ข They have limited scalability.

47
Cluster of Workstation
โ€ข COWs are homogeneous multi computer
systems based on switches.
โ€ข Topologies used are
โ€“ Meshes.
โ€“ Hypercubes.

48
Meshes

Note: Circles represent switches and squares
represent processors in all these slides.

49
Hypercube

50
Heterogeneous Multi Computer
Systems
โ€ข The system consist of computers of
different types.
โ€ข Each Computer has its own memory.
โ€ข Computer will communicate each other
through a high speed interconnection
network.
โ€ข This high speed interconnection network
can be a bus based or switch based.
51
Bus based Heterogeneous Multi
Computer Systems
โ€ข These are heterogeneous multi computer
systems based on fast bus based
interconnecting network.
โ€ข Normally these computers are connected
through a shared multi access network
(Fast Ethernet).
โ€ข They have limited scalability.
52
Switch Based Heterogeneous Multi
Computer Systems
โ€ข These are heterogeneous multi computer
systems based on switches.
โ€ข Topologies used are
โ€“ Meshes.
โ€“ Hypercubes.

53
Meshes

Note: Circles represent switches and squares
represent processors in all these slides.

54
Hypercube

55

More Related Content

What's hot

Distributed Systems
Distributed SystemsDistributed Systems
Distributed Systems
Rupsee
ย 

What's hot (20)

Message passing in Distributed Computing Systems
Message passing in Distributed Computing SystemsMessage passing in Distributed Computing Systems
Message passing in Distributed Computing Systems
ย 
Distributed Computing
Distributed ComputingDistributed Computing
Distributed Computing
ย 
Distributed concurrency control
Distributed concurrency controlDistributed concurrency control
Distributed concurrency control
ย 
2. Distributed Systems Hardware & Software concepts
2. Distributed Systems Hardware & Software concepts2. Distributed Systems Hardware & Software concepts
2. Distributed Systems Hardware & Software concepts
ย 
Unit 1
Unit 1Unit 1
Unit 1
ย 
Dichotomy of parallel computing platforms
Dichotomy of parallel computing platformsDichotomy of parallel computing platforms
Dichotomy of parallel computing platforms
ย 
Replication in Distributed Systems
Replication in Distributed SystemsReplication in Distributed Systems
Replication in Distributed Systems
ย 
Introduction to Distributed System
Introduction to Distributed SystemIntroduction to Distributed System
Introduction to Distributed System
ย 
Levels of Virtualization.docx
Levels of Virtualization.docxLevels of Virtualization.docx
Levels of Virtualization.docx
ย 
distributed Computing system model
distributed Computing system modeldistributed Computing system model
distributed Computing system model
ย 
File models and file accessing models
File models and file accessing modelsFile models and file accessing models
File models and file accessing models
ย 
Lecture 2 more about parallel computing
Lecture 2   more about parallel computingLecture 2   more about parallel computing
Lecture 2 more about parallel computing
ย 
Distributed system architecture
Distributed system architectureDistributed system architecture
Distributed system architecture
ย 
Parallel processing
Parallel processingParallel processing
Parallel processing
ย 
Parallel computing and its applications
Parallel computing and its applicationsParallel computing and its applications
Parallel computing and its applications
ย 
Distributed Systems
Distributed SystemsDistributed Systems
Distributed Systems
ย 
Inter-Process Communication in distributed systems
Inter-Process Communication in distributed systemsInter-Process Communication in distributed systems
Inter-Process Communication in distributed systems
ย 
cloud computing:Types of virtualization
cloud computing:Types of virtualizationcloud computing:Types of virtualization
cloud computing:Types of virtualization
ย 
chapter 2 architecture
chapter 2 architecturechapter 2 architecture
chapter 2 architecture
ย 
Introduction to Parallel Computing
Introduction to Parallel ComputingIntroduction to Parallel Computing
Introduction to Parallel Computing
ย 

Viewers also liked

Distributed computing
Distributed computingDistributed computing
Distributed computing
Keshab Nath
ย 
Dce rpc
Dce rpcDce rpc
Dce rpc
pratosh123
ย 
Google: Cluster computing and MapReduce: Introduction to Distributed System D...
Google: Cluster computing and MapReduce: Introduction to Distributed System D...Google: Cluster computing and MapReduce: Introduction to Distributed System D...
Google: Cluster computing and MapReduce: Introduction to Distributed System D...
tugrulh
ย 
message passing
 message passing message passing
message passing
Ashish Kumar
ย 
models of distributed computing
models of distributed computingmodels of distributed computing
models of distributed computing
Paulo Gandra de Sousa
ย 

Viewers also liked (20)

Distributed Systems
Distributed SystemsDistributed Systems
Distributed Systems
ย 
Aos distibutted system
Aos distibutted systemAos distibutted system
Aos distibutted system
ย 
Distributed computing environment
Distributed computing environmentDistributed computing environment
Distributed computing environment
ย 
Distributed computing
Distributed computingDistributed computing
Distributed computing
ย 
Distributed operating system(os)
Distributed operating system(os)Distributed operating system(os)
Distributed operating system(os)
ย 
Distributed computing ).ppt him
Distributed computing ).ppt himDistributed computing ).ppt him
Distributed computing ).ppt him
ย 
Chap 01 lecture 1distributed computer lecture
Chap 01 lecture 1distributed computer lectureChap 01 lecture 1distributed computer lecture
Chap 01 lecture 1distributed computer lecture
ย 
Distributive operating system
Distributive operating systemDistributive operating system
Distributive operating system
ย 
Dce rpc
Dce rpcDce rpc
Dce rpc
ย 
Message passing
Message passingMessage passing
Message passing
ย 
Slide05 Message Passing Architecture
Slide05 Message Passing ArchitectureSlide05 Message Passing Architecture
Slide05 Message Passing Architecture
ย 
Client Server Model and Distributed Computing
Client Server Model and Distributed ComputingClient Server Model and Distributed Computing
Client Server Model and Distributed Computing
ย 
Chapter 1
Chapter 1Chapter 1
Chapter 1
ย 
Google: Cluster computing and MapReduce: Introduction to Distributed System D...
Google: Cluster computing and MapReduce: Introduction to Distributed System D...Google: Cluster computing and MapReduce: Introduction to Distributed System D...
Google: Cluster computing and MapReduce: Introduction to Distributed System D...
ย 
message passing
 message passing message passing
message passing
ย 
Clock Synchronization in Distributed Systems
Clock Synchronization in Distributed SystemsClock Synchronization in Distributed Systems
Clock Synchronization in Distributed Systems
ย 
Transaction processing system
Transaction processing systemTransaction processing system
Transaction processing system
ย 
models of distributed computing
models of distributed computingmodels of distributed computing
models of distributed computing
ย 
What Makes Great Infographics
What Makes Great InfographicsWhat Makes Great Infographics
What Makes Great Infographics
ย 
Masters of SlideShare
Masters of SlideShareMasters of SlideShare
Masters of SlideShare
ย 

Similar to Lecture 1 (distributed systems)

Introduction & Background(Operating Systems).pptx
Introduction & Background(Operating Systems).pptxIntroduction & Background(Operating Systems).pptx
Introduction & Background(Operating Systems).pptx
ssuserf7df42
ย 
39245175 intro-es-ii
39245175 intro-es-ii39245175 intro-es-ii
39245175 intro-es-ii
Embeddedbvp
ย 
Computing notes
Computing notesComputing notes
Computing notes
thenraju24
ย 
CCUnit1.pdf
CCUnit1.pdfCCUnit1.pdf
CCUnit1.pdf
AnayGupta26
ย 

Similar to Lecture 1 (distributed systems) (20)

Multiprocessor.pptx
 Multiprocessor.pptx Multiprocessor.pptx
Multiprocessor.pptx
ย 
Operating System Overview.pdf
Operating System Overview.pdfOperating System Overview.pdf
Operating System Overview.pdf
ย 
OS_MD_1.pdf
OS_MD_1.pdfOS_MD_1.pdf
OS_MD_1.pdf
ย 
Parallel & Distributed processing
Parallel & Distributed processingParallel & Distributed processing
Parallel & Distributed processing
ย 
Operating System
Operating SystemOperating System
Operating System
ย 
OS_MD_4.pdf
OS_MD_4.pdfOS_MD_4.pdf
OS_MD_4.pdf
ย 
Introduction to Operating Systems - Mary Margarat
Introduction to Operating Systems - Mary MargaratIntroduction to Operating Systems - Mary Margarat
Introduction to Operating Systems - Mary Margarat
ย 
CA UNIT IV.pptx
CA UNIT IV.pptxCA UNIT IV.pptx
CA UNIT IV.pptx
ย 
Introduction & Background(Operating Systems).pptx
Introduction & Background(Operating Systems).pptxIntroduction & Background(Operating Systems).pptx
Introduction & Background(Operating Systems).pptx
ย 
Aca module 1
Aca module 1Aca module 1
Aca module 1
ย 
39245175 intro-es-ii
39245175 intro-es-ii39245175 intro-es-ii
39245175 intro-es-ii
ย 
Computing notes
Computing notesComputing notes
Computing notes
ย 
intro, definitions, basic laws+.pptx
intro, definitions, basic laws+.pptxintro, definitions, basic laws+.pptx
intro, definitions, basic laws+.pptx
ย 
Intro_ppt.pptx
Intro_ppt.pptxIntro_ppt.pptx
Intro_ppt.pptx
ย 
Array Processors & Architectural Classification Schemes_Computer Architecture...
Array Processors & Architectural Classification Schemes_Computer Architecture...Array Processors & Architectural Classification Schemes_Computer Architecture...
Array Processors & Architectural Classification Schemes_Computer Architecture...
ย 
Os concepts
Os conceptsOs concepts
Os concepts
ย 
CCUnit1.pdf
CCUnit1.pdfCCUnit1.pdf
CCUnit1.pdf
ย 
OPERATING SYSTEM
OPERATING SYSTEMOPERATING SYSTEM
OPERATING SYSTEM
ย 
Classification of Parallel Computers.pptx
Classification of Parallel Computers.pptxClassification of Parallel Computers.pptx
Classification of Parallel Computers.pptx
ย 
distributed system original.pdf
distributed system original.pdfdistributed system original.pdf
distributed system original.pdf
ย 

Recently uploaded

Factors-on-Authenticity-and-Validity-of-Evidences-and-Information.pptx
Factors-on-Authenticity-and-Validity-of-Evidences-and-Information.pptxFactors-on-Authenticity-and-Validity-of-Evidences-and-Information.pptx
Factors-on-Authenticity-and-Validity-of-Evidences-and-Information.pptx
vemusae
ย 
9953056974 Young Call Girls In Kirti Nagar Indian Quality Escort service
9953056974 Young Call Girls In  Kirti Nagar Indian Quality Escort service9953056974 Young Call Girls In  Kirti Nagar Indian Quality Escort service
9953056974 Young Call Girls In Kirti Nagar Indian Quality Escort service
9953056974 Low Rate Call Girls In Saket, Delhi NCR
ย 
CALL ON โžฅ8923113531 ๐Ÿ”Call Girls Takrohi Lucknow best Female service ๐Ÿ‘–
CALL ON โžฅ8923113531 ๐Ÿ”Call Girls Takrohi Lucknow best Female service  ๐Ÿ‘–CALL ON โžฅ8923113531 ๐Ÿ”Call Girls Takrohi Lucknow best Female service  ๐Ÿ‘–
CALL ON โžฅ8923113531 ๐Ÿ”Call Girls Takrohi Lucknow best Female service ๐Ÿ‘–
anilsa9823
ย 
9990611130 Find & Book Russian Call Girls In Crossings Republik
9990611130 Find & Book Russian Call Girls In Crossings Republik9990611130 Find & Book Russian Call Girls In Crossings Republik
9990611130 Find & Book Russian Call Girls In Crossings Republik
GenuineGirls
ย 
๐Ÿ”9953056974 ๐Ÿ”Call Girls In Mehrauli Escort Service Delhi NCR
๐Ÿ”9953056974 ๐Ÿ”Call Girls In Mehrauli  Escort Service Delhi NCR๐Ÿ”9953056974 ๐Ÿ”Call Girls In Mehrauli  Escort Service Delhi NCR
๐Ÿ”9953056974 ๐Ÿ”Call Girls In Mehrauli Escort Service Delhi NCR
9953056974 Low Rate Call Girls In Saket, Delhi NCR
ย 
Russian Call Girls Rohini Sector 37 ๐Ÿ’“ Delhi 9999965857 @Sabina Modi VVIP MODE...
Russian Call Girls Rohini Sector 37 ๐Ÿ’“ Delhi 9999965857 @Sabina Modi VVIP MODE...Russian Call Girls Rohini Sector 37 ๐Ÿ’“ Delhi 9999965857 @Sabina Modi VVIP MODE...
Russian Call Girls Rohini Sector 37 ๐Ÿ’“ Delhi 9999965857 @Sabina Modi VVIP MODE...
Call Girls In Delhi Whatsup 9873940964 Enjoy Unlimited Pleasure
ย 
Top Call Girls In Charbagh ( Lucknow ) ๐Ÿ” 8923113531 ๐Ÿ” Cash Payment
Top Call Girls In Charbagh ( Lucknow  ) ๐Ÿ” 8923113531 ๐Ÿ”  Cash PaymentTop Call Girls In Charbagh ( Lucknow  ) ๐Ÿ” 8923113531 ๐Ÿ”  Cash Payment
Top Call Girls In Charbagh ( Lucknow ) ๐Ÿ” 8923113531 ๐Ÿ” Cash Payment
anilsa9823
ย 

Recently uploaded (20)

Factors-on-Authenticity-and-Validity-of-Evidences-and-Information.pptx
Factors-on-Authenticity-and-Validity-of-Evidences-and-Information.pptxFactors-on-Authenticity-and-Validity-of-Evidences-and-Information.pptx
Factors-on-Authenticity-and-Validity-of-Evidences-and-Information.pptx
ย 
Night 7k Call Girls Atta Market Escorts Call Me: 8448380779
Night 7k Call Girls Atta Market Escorts Call Me: 8448380779Night 7k Call Girls Atta Market Escorts Call Me: 8448380779
Night 7k Call Girls Atta Market Escorts Call Me: 8448380779
ย 
This is a Powerpoint about research into the codes and conventions of a film ...
This is a Powerpoint about research into the codes and conventions of a film ...This is a Powerpoint about research into the codes and conventions of a film ...
This is a Powerpoint about research into the codes and conventions of a film ...
ย 
9953056974 Young Call Girls In Kirti Nagar Indian Quality Escort service
9953056974 Young Call Girls In  Kirti Nagar Indian Quality Escort service9953056974 Young Call Girls In  Kirti Nagar Indian Quality Escort service
9953056974 Young Call Girls In Kirti Nagar Indian Quality Escort service
ย 
Night 7k Call Girls Noida Sector 120 Call Me: 8448380779
Night 7k Call Girls Noida Sector 120 Call Me: 8448380779Night 7k Call Girls Noida Sector 120 Call Me: 8448380779
Night 7k Call Girls Noida Sector 120 Call Me: 8448380779
ย 
CALL ON โžฅ8923113531 ๐Ÿ”Call Girls Takrohi Lucknow best Female service ๐Ÿ‘–
CALL ON โžฅ8923113531 ๐Ÿ”Call Girls Takrohi Lucknow best Female service  ๐Ÿ‘–CALL ON โžฅ8923113531 ๐Ÿ”Call Girls Takrohi Lucknow best Female service  ๐Ÿ‘–
CALL ON โžฅ8923113531 ๐Ÿ”Call Girls Takrohi Lucknow best Female service ๐Ÿ‘–
ย 
Night 7k Call Girls Pari Chowk Escorts Call Me: 8448380779
Night 7k Call Girls Pari Chowk Escorts Call Me: 8448380779Night 7k Call Girls Pari Chowk Escorts Call Me: 8448380779
Night 7k Call Girls Pari Chowk Escorts Call Me: 8448380779
ย 
9990611130 Find & Book Russian Call Girls In Crossings Republik
9990611130 Find & Book Russian Call Girls In Crossings Republik9990611130 Find & Book Russian Call Girls In Crossings Republik
9990611130 Find & Book Russian Call Girls In Crossings Republik
ย 
Unlock the power of Instagram with SocioCosmos. Start your journey towards so...
Unlock the power of Instagram with SocioCosmos. Start your journey towards so...Unlock the power of Instagram with SocioCosmos. Start your journey towards so...
Unlock the power of Instagram with SocioCosmos. Start your journey towards so...
ย 
Elite Class โžฅ8448380779โ–ป Call Girls In Nizammuddin Delhi NCR
Elite Class โžฅ8448380779โ–ป Call Girls In Nizammuddin Delhi NCRElite Class โžฅ8448380779โ–ป Call Girls In Nizammuddin Delhi NCR
Elite Class โžฅ8448380779โ–ป Call Girls In Nizammuddin Delhi NCR
ย 
Call Girls In South Ex. Delhi O9654467111 Women Seeking Men
Call Girls In South Ex. Delhi O9654467111 Women Seeking MenCall Girls In South Ex. Delhi O9654467111 Women Seeking Men
Call Girls In South Ex. Delhi O9654467111 Women Seeking Men
ย 
Night 7k Call Girls Noida Sector 121 Call Me: 8448380779
Night 7k Call Girls Noida Sector 121 Call Me: 8448380779Night 7k Call Girls Noida Sector 121 Call Me: 8448380779
Night 7k Call Girls Noida Sector 121 Call Me: 8448380779
ย 
Improve Your Brand in Waco with a Professional Social Media Marketing Company
Improve Your Brand in Waco with a Professional Social Media Marketing CompanyImprove Your Brand in Waco with a Professional Social Media Marketing Company
Improve Your Brand in Waco with a Professional Social Media Marketing Company
ย 
Interpreting the brief for the media IDY
Interpreting the brief for the media IDYInterpreting the brief for the media IDY
Interpreting the brief for the media IDY
ย 
๐Ÿ”9953056974 ๐Ÿ”Call Girls In Mehrauli Escort Service Delhi NCR
๐Ÿ”9953056974 ๐Ÿ”Call Girls In Mehrauli  Escort Service Delhi NCR๐Ÿ”9953056974 ๐Ÿ”Call Girls In Mehrauli  Escort Service Delhi NCR
๐Ÿ”9953056974 ๐Ÿ”Call Girls In Mehrauli Escort Service Delhi NCR
ย 
Your LinkedIn Makeover: Sociocosmos Presence Package
Your LinkedIn Makeover: Sociocosmos Presence PackageYour LinkedIn Makeover: Sociocosmos Presence Package
Your LinkedIn Makeover: Sociocosmos Presence Package
ย 
Russian Call Girls Rohini Sector 37 ๐Ÿ’“ Delhi 9999965857 @Sabina Modi VVIP MODE...
Russian Call Girls Rohini Sector 37 ๐Ÿ’“ Delhi 9999965857 @Sabina Modi VVIP MODE...Russian Call Girls Rohini Sector 37 ๐Ÿ’“ Delhi 9999965857 @Sabina Modi VVIP MODE...
Russian Call Girls Rohini Sector 37 ๐Ÿ’“ Delhi 9999965857 @Sabina Modi VVIP MODE...
ย 
Craft Your Legacy: Invest in YouTube Presence from Sociocosmos"
Craft Your Legacy: Invest in YouTube Presence from Sociocosmos"Craft Your Legacy: Invest in YouTube Presence from Sociocosmos"
Craft Your Legacy: Invest in YouTube Presence from Sociocosmos"
ย 
Top Call Girls In Charbagh ( Lucknow ) ๐Ÿ” 8923113531 ๐Ÿ” Cash Payment
Top Call Girls In Charbagh ( Lucknow  ) ๐Ÿ” 8923113531 ๐Ÿ”  Cash PaymentTop Call Girls In Charbagh ( Lucknow  ) ๐Ÿ” 8923113531 ๐Ÿ”  Cash Payment
Top Call Girls In Charbagh ( Lucknow ) ๐Ÿ” 8923113531 ๐Ÿ” Cash Payment
ย 
BDSMโšกCall Girls in Sector 76 Noida Escorts >เผ’8448380779 Escort Service
BDSMโšกCall Girls in Sector 76 Noida Escorts >เผ’8448380779 Escort ServiceBDSMโšกCall Girls in Sector 76 Noida Escorts >เผ’8448380779 Escort Service
BDSMโšกCall Girls in Sector 76 Noida Escorts >เผ’8448380779 Escort Service
ย 

Lecture 1 (distributed systems)

  • 1. Distributed Systems and Distributed Computing Introduction.
  • 2. Outline โ€ข โ€ข โ€ข โ€ข โ€ข โ€ข โ€ข โ€ข โ€ข Definition of Distributed Systems Advantages and Disadvantages Goals Parallel Computing Distributed Computing Hardware Concepts Software Concepts Middle Ware Systems Technologies under use 2
  • 3. Outline โ€ข โ€ข โ€ข โ€ข โ€ข โ€ข โ€ข โ€ข โ€ข โ€ข RPC (Remote Procedure Call) ROI (Remote Object Invocation) Network Programming Implementation of RPC using C Implementation of ROI using Java Java RMI XML Implementation of RPC using XML SOAP A little bit about CORBA 3
  • 4. Distributed Systems โ€ข Definition: โ€“ The Collection of individual computers that appears to its users as a single coherent system. โ€ข Coherent System: โ€“ The system in which all the individual systems shares the central memory (RAM). 4
  • 5.
  • 6.
  • 7. Examples โ€ข โ€ข โ€ข โ€ข โ€ข Internet Aero plane Ticket Reservation System ATMs Mobile Cellular Phone Systems Centralized Data Base System Working in Banks โ€ข LAN โ€ข MAN โ€ข WAN 7
  • 8. DS: I know it when I see it โ€ข โ€ข โ€ข โ€ข โ€ข -Big: Enterprise level โ€ข Examples of DS are all around us -Small: Personal -Innovative: Sensor Networks -Common: Web service
  • 10.
  • 11. Biggest Challenges of DS โ€ข โ€ข โ€ข โ€ข โ€ข Configuration: How to find each other, get started, etc โ€ข Consensus: How to agree on stuff โ€ข Consistency: How to have the same view โ€ข in the face of changes โ€ข โ€ข Fault Tolerance: How to survive in a world
  • 12. Characteristics of DS โ€ข โ€ข โ€ข โ€ข Scalability Support Heterogeneity Continuous Availability Users are unaware about the distribution and heterogeneity of the system โ€ข The components of a system are also unaware of the heterogeneity โ€ข Users and applications can interact with the system uniformly 12
  • 13. Goals of DS โ€ข โ€ข โ€ข โ€ข Connecting Users and Resources Transparency Openness Scalability 13
  • 14. Connecting Users and Resources โ€ข The main goal is to make easy for users to access remote resources and to share them with other users in a controlled way โ€“ Security โ€ข From external users: (Authentication, Firewall) โ€ข From internal users: (Policies, Log Files) 14
  • 15. Transparency โ€ข To hide the fact that its processes and resources are physically distributed across multiple computers. OR โ€ข A distributed system that is able to present itself to users and applications as it were only a single computer system is said to be transparent. 15
  • 16. Types of Transparency โ€ข Access (Data representation: little endian / big endian ) โ€“ To hide the details of data representations, code translation etc. โ€ข Location (URL) โ€“ To hide the actual location of the resource. โ€ข Migration โ€“ To hide the fact that the resource has migrated from previous location. โ€ข Relocation โ€“ To hide the fact that resource has been reallocated due 16 to non availability from previous location.
  • 17. Types of Transparency โ€ข Replication โ€“ To hide the fact that resource is copied at different locations to make availability of the resource faster. โ€ข Concurrency โ€“ This is a type of transparency that is related to concurrent access to same resource. โ€ข Failure โ€“ To hide any of the failure that occur in accessing the resources. 17
  • 18. Openness โ€ข An open distributed system support heterogeneity. โ€ข An open distributed system offer services according to standard rules (protocols). โ€ข Interoperability โ€“ It is an extent by which two implementations of system or components from different manufacturers can co exists. โ€ข Portability โ€“ An application developed on one system can be executed without modification on another. 18
  • 19. Scalability โ€ข A distributed system should be expandable โ€“ Scalable with respect to Size โ€ข Increase in number of nodes. โ€“ Scalable Geographically โ€ข Increase in size with respect to geographical location. โ€“ Scalable Administratively โ€ข If we expand the system then administration should not 19 become difficult.
  • 20. Scalability โ€ข Problems to be taken care of in scalability: โ€“ Centralized Services โ€ข Services available at central machine i-e server. โ€“ Centralized Data โ€ข Data available at central machine i-e data base server. โ€“ Centralized Algorithms. โ€ข The algorithms that are running on server machine 20
  • 21. Parallel Processing or Computing โ€ข Parallel computing โ€“ Using parallel computer to solve single problems faster โ€ข Parallel computer โ€“ Multiple-processor system supporting parallel programming โ€ข Parallel programming โ€“ Programming in a language that supports concurrency explicitly 21
  • 22. Evolution of Supercomputing โ€ข Supercomputers โ€“ Most powerful computers that can currently be built. Note: This definition is time dependent. โ€ข Uses during World War II โ€“ Hand-computed artillery tables โ€“ Need to speed computations โ€“ Army funded ENIAC to speedup calculations โ€ข Uses during the Cold War โ€“ Nuclear weapon design โ€“ Intelligence gathering โ€“ Code-breaking 22
  • 23. Supercomputer โ€ข General-purpose computer โ€ข Solves individual problems at high speeds, compared with contemporary systems โ€ข Typically costs $10 million or more โ€ข Traditionally found in government labs 23
  • 24. Commercial Supercomputing โ€ข Started in capital-intensive industries โ€“ Petroleum exploration โ€“ Automobile manufacturing โ€ข Other companies followed suit โ€“ Pharmaceutical design โ€“ Consumer products 24
  • 25. 50 Years of Speed Increases Today > 1 trillion flops ENIAC 350 flops 25
  • 26. CPUs 1 Million Times Faster โ€ข Faster clock speeds โ€ข Greater system concurrency โ€“ Multiple functional units โ€“ Concurrent instruction execution โ€“ Speculative instruction execution 26
  • 28. Hardware Concepts โ€ข All distributed systems consist of multiple CPUs. โ€ข we can organize hardwares in several different ways in term of their connection and communication โ€ข Various classification schemes have been proposed by the time but none of them have been widely adopted 28
  • 29. Classification in term of Hardware โ€ข We can classify distributed systems regarding hardware in two broad categories. โ€“ Multi Processor Systems. โ€“ Multi Computer Systems. 29
  • 30. Hardware Requirements โ€ข We cant define complete hardware requirements for a distributed system in general but we will discuss the most basic requirements here and these are. โ€“ Processors. โ€“ Memory (Specially RAM). โ€“ Interconnecting Resources. 30
  • 31. Multi Processor Systems โ€ข Such systems consist of computer having multiple processors and memory that are connected through a high speed back plane over the mother board. OR โ€ข A simple configuration is to have a high speed mother board into which CPU and memory cards can be inserted. 31
  • 32. Multi Processor Systems โ€ข There are two types of multiprocessor system with respect to Memory. โ€“ Multi Processor System with Shared Memory. โ€“ Multi Processor System with Non Shared Memory. โ€ข There are two types of multiprocessor system with respect to Inter connection of Memory and Processors. โ€“ Bus Based Systems. โ€“ Switch Based Systems. 32
  • 33. Multi Processor Systems With Shared Memory โ€ข In such system there are multiple processors using memory that is shared among the processors. โ€ข Coherent System: โ€“ In shared memory system since there is only one memory if processor A writes some thing at memory address 40, and after some time processor B reads from memory address 40 it will get the same data written by processor A. Inter process communication is very easy. 33
  • 34. Multi Processor Systems With Shared Memory P1 P2 M1 P3 M2 P4 M3 34
  • 35. Multi Processor Systems With Non Shared Memory โ€ข In such system there are multiple processors each having its on memory along with the main memory. โ€ข Such Systems are incoherent. โ€ข Inter process communication is hard to implement due to incoherence. โ€ข Difficult to built such systems. โ€ข Message Passing Technique is then used to enable inter process communication. โ€ข Generally slow as compare to shared memory systems. โ€ข Advantage is we can connect more Processors. 35
  • 36. Multi Processor Systems With Non Shared Memory P1 P2 P3 P4 M1 M2 M3 M3 Main Memory 36
  • 37. Types of Multi Processor Systems With Respect to Interconnection โ€ข There are two types. โ€“ Bus Based System. โ€“ Switch Based System. 37
  • 38. Bus Based Multi Processor Systems With Shared Memory P1 P2 M1 P3 M2 P4 M3 38
  • 39. Switch Based Multi Processor Systems With Shared Memory โ€ข There are two types. โ€“ Cross Bar Switch Based. โ€“ Omega Switch Based. 39
  • 40. Cross Bar Switch Based Multi Processor Systems With Shared Memory P1 P2 P3 P4 M1 M2 M3 Cross Point Switch 40
  • 41. Omega Switch Based Multi Processor Systems With Shared Memory M1 P1 M2 P2 M3 P3 M4 P4 2 x 2 Cross Point Switch 41
  • 42. Multi Computer Systems โ€ข The system consists of multiple computers connected by interconnecting resources. โ€ข For Example: โ€“ We have ten computers in the lab, we have ten processors with memories available for process an application. โ€“ Why not we use them as a single system to process an application. โ€“ Internet. 42
  • 43. Multi Computer Systems โ€ข Such system will be incoherent in nature as it will have ten processors, all of which have its own memory. โ€ข In other words No Shared memory. โ€ข Inter Process communication will then achieved through message passing techniques. โ€ข This technique is little bit hard to implement but not as much costly as to buy minicomputer or any other high rank systems. โ€ข And then make program using parallel programming. 43
  • 44. Types Of Multi Computer Systems โ€ข There are two types based on types of computers we wanted to use in our system โ€“ Homogeneous Multi Computer systems. โ€“ Heterogeneous Multi Computer Systems. 44
  • 45. Types Of Multi Computer Systems โ€ข There are two types further based on Interconnection resources. โ€“ Homogeneous Multi Computer Systems โ€ข Bus Based Systems. โ€ข Switch Based systems. โ€“ Heterogeneous Multi Computer Systems โ€ข Bus Based Systems. โ€ข Switch Based systems. 45
  • 46. Homogeneous Multi Computer Systems โ€ข The system consist of same type of computers. โ€ข Each Computer has its own memory. โ€ข Computer will communicate each other through a high speed interconnection network. โ€ข This high speed interconnection network can be a bus based or switch based. 46
  • 47. System Area Network โ€ข SAN are homogeneous multi computer systems based on fast bus based interconnecting network. โ€ข Normally these computers are connected through a shared multi access network (Fast Ethernet). โ€ข They have limited scalability. 47
  • 48. Cluster of Workstation โ€ข COWs are homogeneous multi computer systems based on switches. โ€ข Topologies used are โ€“ Meshes. โ€“ Hypercubes. 48
  • 49. Meshes Note: Circles represent switches and squares represent processors in all these slides. 49
  • 51. Heterogeneous Multi Computer Systems โ€ข The system consist of computers of different types. โ€ข Each Computer has its own memory. โ€ข Computer will communicate each other through a high speed interconnection network. โ€ข This high speed interconnection network can be a bus based or switch based. 51
  • 52. Bus based Heterogeneous Multi Computer Systems โ€ข These are heterogeneous multi computer systems based on fast bus based interconnecting network. โ€ข Normally these computers are connected through a shared multi access network (Fast Ethernet). โ€ข They have limited scalability. 52
  • 53. Switch Based Heterogeneous Multi Computer Systems โ€ข These are heterogeneous multi computer systems based on switches. โ€ข Topologies used are โ€“ Meshes. โ€“ Hypercubes. 53
  • 54. Meshes Note: Circles represent switches and squares represent processors in all these slides. 54