SlideShare a Scribd company logo
1
DISTRIBUTED SYSTEMS
Introduction
2
Definition of a Distributed System (1)
• A distributed system is a collection of independent
computers that appear to the users of the system
as a single computer.
[Andrew Tanenbaum]
• A distributed system is several computers doing
something together. Thus, a distributed system
has three primary characteristics: multiple
computers, interconnections, and shared state.
[Michael Schroeder]
Distributed System Example – A Data
center
3
4
Definition of a Distributed System (2)
A distributed system organized as middleware. The middleware
layer extends over multiple machines, and offers each
application the same interface.
Why study distributed systems?
5
Easy to get things wrong !!
Why study distributed systems?
6
Easy to get things wrong !!
How can one be sure that the system does
what it is supposed to?
Under what conditions?
Why study distributed systems?
7
Examples:
-Scheduling a meeting over a lossy network
-Synchronizing clocks.
-Social networking.
The Internet – Quick Refresher
8
-Underlies many distributed systems.
-A vast interconnected collection of computer networks of
many types.
-Intranets – subnetworks operated by companies and
organizations.
-Intranets contain subnets and LANs.
-WAN – wide area networks, consists of LANs
-ISPs – companies that provide modem links and other types of
connections to users.
-Intranets (actually the ISPs’ core routers) are linked by
backbones – network links of large bandwidth, such as satellite
connections, fiber optic cables, and other high-bandwidth
circuits.
Distributed Systems are layered over
networks
Application
e-mail
remote terminal access
Web
file transfer
streaming multimedia
remote file server
Internet telephony
Application
layer protocol
smtp [RFC 821]
telnet [RFC 854]
http [RFC 2068]
ftp [RFC 959]
proprietary
(e.g. RealNetworks)
NFS
proprietary
(e.g., Skype)
Underlying
transport protocol
TCP
TCP
TCP
TCP
TCP or UDP
TCP or UDP
typically UDP
TCP=Transmission Control Protocol
UDP=User Datagram Protocol
Implemented via network
“sockets”. Basic primitive that
allows machines to send
messages to each other
Distributed System Protocols!
Networking Protocols
World Wide Web: the HTTP Standard
HTTP: hypertext transfer
protocol
• WWW’s application layer
protocol
• client/server model
– client: browser that requests,
receives, and “displays” WWW
objects
– server: WWW server, which is
storing the website, sends objects
in response to requests
• http1.0: RFC 1945
• http1.1: RFC 2068
– Leverages same connection to
download images, scripts, etc.
PC running
Explorer
Server
Running
Apache
Web
server
Mac running
Safari
http request
http request
http response
http response
The HTTP Protocol: More
http: TCP transport service:
• client initiates a TCP
connection (creates socket) to
server, port 80
• server accepts the TCP
connection from client
• http messages (application-
layer protocol messages)
exchanged between browser
(http client) and WWW server
(http server)
• TCP connection closed
http is “stateless”
• server maintains no
information about past
client requests
Protocols that maintain session
“state” are complex!
• past history (state) must be
maintained and updated.
• if server/client crashes, their
views of “state” may be
inconsistent, and hence must
be reconciled.
Why?
HTTP Example
Suppose user enters URL www.ce.ahu.edu.jo/
1a. http client initiates a TCP
connection to http server
(process) at www.ce.ahu.edu.jo.
Port 80 is default for http server.
2. http client sends a http request
message (containing URL) into
TCP connection socket
1b. http server at host
www.ce.ahu.edu.jo waiting for a
TCP connection at port 80.
“accepts” connection, notifying
client
3. http server receives request
messages, forms a response
message containing requested
object (index.html), sends
message into socket
time
(contains text,
references to 10
jpeg images)
HTTP Example
For fetching referenced objects, have 2 options:
• non-persistent connection: only one object fetched per TCP connection
– some browsers create multiple TCP connections simultaneously - one per object
• persistent connection: multiple objects transferred within one TCP
connection
5. http client receives a response
message containing html file,
displays html, finds 10
referenced jpeg objects
6. Steps 1-5 are then repeated for
each of 10 jpeg objects
4. http server closes the TCP
connection (if necessary).
time
A human as a browser (Client Side)
1. Telnet to your favorite WWW server:
Opens TCP connection to port 80
(default http server port) at www.google.com
Anything typed in sent
to port 80 at www.google.com
telnet www.google.com 80
2. Type in a GET http request:
GET /index.html
Or
GET /index.html HTTP/1.0
By typing this in (may need to hit
return twice), you send
this minimal (but complete)
GET request to http server
3. Look at response message sent by http server!
Distributed Systems Issues
15
Asynchrony versus synchrony
Failures
Heterogeneity
- Processing speed
- Communication link bandwidth
- Communication latency
Scale
Dynamic system
Topics in Distributed Systems
16
Distributed system examples :
Cloud Computing, Peer-to-peer systems, key-value
stores/SQL, …
Classical Problems:
Synchronization, Failure detection, Snapshots, Multicast,
Consensus, Mutual Exclusion, Election, …
Concurrency:
Concurrency Control, Replication Control, …
Security:
Faults, …
…
17
Transparency in a Distributed System
Different forms of transparency in a distributed
system (ISO, 1995).
18
Scalability Problems
Examples of scalability limitations.
19
Scalability Problems
Characteristics of decentralized algorithms:
• No machine has complete information about the
system state.
• Machines make decisions based only on local
information.
• Failure of one machine does not ruin the
algorithm.
• There is no implicit assumption that a global
clock exists.
20
Scaling Techniques (1)
The difference between letting (a) a server or (b) a
client check forms as they are being filled.
21
Scaling Techniques (2)
An example of dividing the DNS
name space into zones.
22
Pitfalls when Developing
Distributed Systems
False assumptions made by first time developer:
• The network is reliable.
• The network is secure.
• The network is homogeneous.
• The topology does not change.
• Latency is zero.
• Bandwidth is infinite.
• Transport cost is zero.
• There is one administrator.
23
Cluster Computing Systems
An example of a cluster computing system.
24
Grid Computing Systems
A layered architecture for grid computing systems.
25
Transaction Processing Systems (1)
Example primitives for transactions.
26
Transaction Processing Systems (2)
Characteristic properties of transactions:
Atomic: To the outside world, the transaction
happens indivisibly.
Consistent: The transaction does not violate
system invariants.
Isolated: Concurrent transactions do not interfere
with each other.
Durable: Once a transaction commits, the
changes are permanent.
27
Transaction Processing Systems (3)
28
Transaction Processing Systems (4)
Figure 1-10. The role of a TP monitor in distributed systems.
29
Enterprise Application Integration
Middleware as a communication facilitator in enterprise
application integration.
30
Distributed Pervasive Systems
Requirements for pervasive systems
Encourage ad hoc composition.
Recognize sharing as the default.
31
Electronic Health Care Systems (1)
Questions to be addressed for health care systems:
Where and how should monitored data be stored?
How can we prevent loss of crucial data?
What infrastructure is needed to generate and
propagate alerts?
How can physicians provide online feedback?
How can extreme robustness of the monitoring
system be realized?
What are the security issues and how can the
proper policies be enforced?
32
Electronic Health Care Systems (2)
Monitoring a person in a pervasive electronic health care system,
using (a) a local hub or
(b) a continuous wireless connection.
33
Sensor Networks (1)
Questions concerning sensor networks:
How do we (dynamically) set up an efficient tree in a sensor
network?
How does aggregation of results take place? Can it be
controlled?
What happens when network links fail?
34
Sensor Networks (2)
Organizing a sensor network database, while storing and
processing data (a) only at the operator’s site or …
35
Sensor Networks (3)
Organizing a sensor network database, while storing
and processing data … or (b) only at the sensors.

More Related Content

What's hot

Introduction to Distributed System
Introduction to Distributed SystemIntroduction to Distributed System
Introduction to Distributed System
RKGhosh3
 
Distributed System
Distributed SystemDistributed System
Distributed System
Iqra khalil
 
Distributed systems1
Distributed systems1Distributed systems1
Distributed systems1
Sumita Das
 
Intro (Distributed computing)
Intro (Distributed computing)Intro (Distributed computing)
Intro (Distributed computing)Sri Prasanna
 
Lecture 1 (distributed systems)
Lecture 1 (distributed systems)Lecture 1 (distributed systems)
Lecture 1 (distributed systems)
Fazli Amin
 
Distributed Systems
Distributed SystemsDistributed Systems
Distributed Systems
cfenoy
 
Distributed computing
Distributed computingDistributed computing
Distributed computingKeshab Nath
 
Chapter 1 -_characterization_of_distributed_systems
Chapter 1 -_characterization_of_distributed_systemsChapter 1 -_characterization_of_distributed_systems
Chapter 1 -_characterization_of_distributed_systemsFrancelyno Murela
 
Back-End application for Distributed systems
Back-End application for Distributed systemsBack-End application for Distributed systems
Back-End application for Distributed systems
Atif Imam
 
Distributed information system
Distributed information systemDistributed information system
Distributed information system
District Administration
 
Distributed & parallel system
Distributed & parallel systemDistributed & parallel system
Distributed & parallel systemManish Singh
 
distributed Computing system model
distributed Computing system modeldistributed Computing system model
distributed Computing system model
Harshad Umredkar
 
Unit 1
Unit 1Unit 1
Unit 1
Baskarkncet
 
Distributed system notes unit I
Distributed system notes unit IDistributed system notes unit I
Distributed system notes unit I
NANDINI SHARMA
 
Introduction to Distributed System
Introduction to Distributed SystemIntroduction to Distributed System
Introduction to Distributed System
Sunita Sahu
 
Distributed operating system
Distributed operating systemDistributed operating system
Distributed operating system
udaya khanal
 
Distributed Computing Report
Distributed Computing ReportDistributed Computing Report
Distributed Computing ReportIIT Kharagpur
 
Design issues of dos
Design issues of dosDesign issues of dos
Design issues of dos
vanamali_vanu
 
Distributed system architecture
Distributed system architectureDistributed system architecture
Distributed system architecture
Yisal Khan
 
Aos distibutted system
Aos distibutted systemAos distibutted system
Aos distibutted system
Vijay Kumar Verma
 

What's hot (20)

Introduction to Distributed System
Introduction to Distributed SystemIntroduction to Distributed System
Introduction to Distributed System
 
Distributed System
Distributed SystemDistributed System
Distributed System
 
Distributed systems1
Distributed systems1Distributed systems1
Distributed systems1
 
Intro (Distributed computing)
Intro (Distributed computing)Intro (Distributed computing)
Intro (Distributed computing)
 
Lecture 1 (distributed systems)
Lecture 1 (distributed systems)Lecture 1 (distributed systems)
Lecture 1 (distributed systems)
 
Distributed Systems
Distributed SystemsDistributed Systems
Distributed Systems
 
Distributed computing
Distributed computingDistributed computing
Distributed computing
 
Chapter 1 -_characterization_of_distributed_systems
Chapter 1 -_characterization_of_distributed_systemsChapter 1 -_characterization_of_distributed_systems
Chapter 1 -_characterization_of_distributed_systems
 
Back-End application for Distributed systems
Back-End application for Distributed systemsBack-End application for Distributed systems
Back-End application for Distributed systems
 
Distributed information system
Distributed information systemDistributed information system
Distributed information system
 
Distributed & parallel system
Distributed & parallel systemDistributed & parallel system
Distributed & parallel system
 
distributed Computing system model
distributed Computing system modeldistributed Computing system model
distributed Computing system model
 
Unit 1
Unit 1Unit 1
Unit 1
 
Distributed system notes unit I
Distributed system notes unit IDistributed system notes unit I
Distributed system notes unit I
 
Introduction to Distributed System
Introduction to Distributed SystemIntroduction to Distributed System
Introduction to Distributed System
 
Distributed operating system
Distributed operating systemDistributed operating system
Distributed operating system
 
Distributed Computing Report
Distributed Computing ReportDistributed Computing Report
Distributed Computing Report
 
Design issues of dos
Design issues of dosDesign issues of dos
Design issues of dos
 
Distributed system architecture
Distributed system architectureDistributed system architecture
Distributed system architecture
 
Aos distibutted system
Aos distibutted systemAos distibutted system
Aos distibutted system
 

Viewers also liked

Distributed system
Distributed systemDistributed system
Dependency Parsing Algorithms Analysis - Major Project
Dependency Parsing Algorithms Analysis - Major Project Dependency Parsing Algorithms Analysis - Major Project
Dependency Parsing Algorithms Analysis - Major Project
Bhuvnesh Pratap
 
Distributed Systems
Distributed SystemsDistributed Systems
Distributed Systems
naveedchak
 
artificial intelligence
artificial intelligenceartificial intelligence
artificial intelligence
R A Akerkar
 
The Semantic Web #8 - Ontology
The Semantic Web #8 - OntologyThe Semantic Web #8 - Ontology
The Semantic Web #8 - Ontology
Myungjin Lee
 
Adhoc frames conceptual graphs
Adhoc frames conceptual graphsAdhoc frames conceptual graphs
Adhoc frames conceptual graphsAyaz Shariff
 
CS9222 ADVANCED OPERATING SYSTEMS
CS9222 ADVANCED OPERATING SYSTEMSCS9222 ADVANCED OPERATING SYSTEMS
CS9222 ADVANCED OPERATING SYSTEMS
Kathirvel Ayyaswamy
 
CS6601 DISTRIBUTED SYSTEMS
CS6601 DISTRIBUTED SYSTEMSCS6601 DISTRIBUTED SYSTEMS
CS6601 DISTRIBUTED SYSTEMS
Kathirvel Ayyaswamy
 
CS6601 DISTRIBUTED SYSTEMS
CS6601 DISTRIBUTED SYSTEMSCS6601 DISTRIBUTED SYSTEMS
CS6601 DISTRIBUTED SYSTEMS
Kathirvel Ayyaswamy
 
CS6601 DISTRIBUTED SYSTEMS
CS6601 DISTRIBUTED SYSTEMSCS6601 DISTRIBUTED SYSTEMS
CS6601 DISTRIBUTED SYSTEMS
Kathirvel Ayyaswamy
 
Building Distributed Systems from Scratch - Part 1
Building Distributed Systems from Scratch - Part 1Building Distributed Systems from Scratch - Part 1
Building Distributed Systems from Scratch - Part 1
datamantra
 
Mobile Radio Propagations
Mobile Radio PropagationsMobile Radio Propagations
Mobile Radio Propagations
METHODIST COLLEGE OF ENGG & TECH
 
Artificial Intelligence
Artificial IntelligenceArtificial Intelligence
Artificial Intelligence
sanjay_asati
 
Artificial Intelligence for Automated Decision Support Project
Artificial Intelligence for Automated Decision Support ProjectArtificial Intelligence for Automated Decision Support Project
Artificial Intelligence for Automated Decision Support Project
Valerii Klymchuk
 
Knowledge-based Systems
Knowledge-based SystemsKnowledge-based Systems
Knowledge-based Systems
saimohang
 
Artificial Intelligence: Knowledge Acquisition
Artificial Intelligence: Knowledge AcquisitionArtificial Intelligence: Knowledge Acquisition
Artificial Intelligence: Knowledge Acquisition
The Integral Worm
 
Distributed System
Distributed System Distributed System
Distributed System
Nitesh Saitwal
 
Knowledge based systems
Knowledge based systemsKnowledge based systems
Knowledge based systems
Yowan Rdotexe
 
Knowledge Based Systems -Artificial Intelligence by Priti Srinivas Sajja S P...
Knowledge Based Systems -Artificial Intelligence  by Priti Srinivas Sajja S P...Knowledge Based Systems -Artificial Intelligence  by Priti Srinivas Sajja S P...
Knowledge Based Systems -Artificial Intelligence by Priti Srinivas Sajja S P...
Priti Srinivas Sajja
 
Knowledge representation and Predicate logic
Knowledge representation and Predicate logicKnowledge representation and Predicate logic
Knowledge representation and Predicate logic
Amey Kerkar
 

Viewers also liked (20)

Distributed system
Distributed systemDistributed system
Distributed system
 
Dependency Parsing Algorithms Analysis - Major Project
Dependency Parsing Algorithms Analysis - Major Project Dependency Parsing Algorithms Analysis - Major Project
Dependency Parsing Algorithms Analysis - Major Project
 
Distributed Systems
Distributed SystemsDistributed Systems
Distributed Systems
 
artificial intelligence
artificial intelligenceartificial intelligence
artificial intelligence
 
The Semantic Web #8 - Ontology
The Semantic Web #8 - OntologyThe Semantic Web #8 - Ontology
The Semantic Web #8 - Ontology
 
Adhoc frames conceptual graphs
Adhoc frames conceptual graphsAdhoc frames conceptual graphs
Adhoc frames conceptual graphs
 
CS9222 ADVANCED OPERATING SYSTEMS
CS9222 ADVANCED OPERATING SYSTEMSCS9222 ADVANCED OPERATING SYSTEMS
CS9222 ADVANCED OPERATING SYSTEMS
 
CS6601 DISTRIBUTED SYSTEMS
CS6601 DISTRIBUTED SYSTEMSCS6601 DISTRIBUTED SYSTEMS
CS6601 DISTRIBUTED SYSTEMS
 
CS6601 DISTRIBUTED SYSTEMS
CS6601 DISTRIBUTED SYSTEMSCS6601 DISTRIBUTED SYSTEMS
CS6601 DISTRIBUTED SYSTEMS
 
CS6601 DISTRIBUTED SYSTEMS
CS6601 DISTRIBUTED SYSTEMSCS6601 DISTRIBUTED SYSTEMS
CS6601 DISTRIBUTED SYSTEMS
 
Building Distributed Systems from Scratch - Part 1
Building Distributed Systems from Scratch - Part 1Building Distributed Systems from Scratch - Part 1
Building Distributed Systems from Scratch - Part 1
 
Mobile Radio Propagations
Mobile Radio PropagationsMobile Radio Propagations
Mobile Radio Propagations
 
Artificial Intelligence
Artificial IntelligenceArtificial Intelligence
Artificial Intelligence
 
Artificial Intelligence for Automated Decision Support Project
Artificial Intelligence for Automated Decision Support ProjectArtificial Intelligence for Automated Decision Support Project
Artificial Intelligence for Automated Decision Support Project
 
Knowledge-based Systems
Knowledge-based SystemsKnowledge-based Systems
Knowledge-based Systems
 
Artificial Intelligence: Knowledge Acquisition
Artificial Intelligence: Knowledge AcquisitionArtificial Intelligence: Knowledge Acquisition
Artificial Intelligence: Knowledge Acquisition
 
Distributed System
Distributed System Distributed System
Distributed System
 
Knowledge based systems
Knowledge based systemsKnowledge based systems
Knowledge based systems
 
Knowledge Based Systems -Artificial Intelligence by Priti Srinivas Sajja S P...
Knowledge Based Systems -Artificial Intelligence  by Priti Srinivas Sajja S P...Knowledge Based Systems -Artificial Intelligence  by Priti Srinivas Sajja S P...
Knowledge Based Systems -Artificial Intelligence by Priti Srinivas Sajja S P...
 
Knowledge representation and Predicate logic
Knowledge representation and Predicate logicKnowledge representation and Predicate logic
Knowledge representation and Predicate logic
 

Similar to Distributed Systems

Network protocols
Network protocolsNetwork protocols
Network protocols
Abiud Orina
 
chap-0 .ppt
chap-0 .pptchap-0 .ppt
chap-0 .ppt
Lookly Sam
 
Distributed system
Distributed systemDistributed system
Distributed system
chirag patil
 
characteristicsofdistributedsystem-121004123308-phpapp02.ppt
characteristicsofdistributedsystem-121004123308-phpapp02.pptcharacteristicsofdistributedsystem-121004123308-phpapp02.ppt
characteristicsofdistributedsystem-121004123308-phpapp02.ppt
RamkumardevendiranDe
 
Client Server Model and Distributed Computing
Client Server Model and Distributed ComputingClient Server Model and Distributed Computing
Client Server Model and Distributed Computing
Abhishek Jaisingh
 
Linux Inter Process Communication
Linux Inter Process CommunicationLinux Inter Process Communication
Linux Inter Process Communication
Abhishek Sagar
 
distributed-systemsfghjjjijoijioj-chap3.pptx
distributed-systemsfghjjjijoijioj-chap3.pptxdistributed-systemsfghjjjijoijioj-chap3.pptx
distributed-systemsfghjjjijoijioj-chap3.pptx
lencho3d
 
Distributed Systems in Data Engineering
Distributed Systems in Data EngineeringDistributed Systems in Data Engineering
Distributed Systems in Data Engineering
Adetimehin Oluwasegun Matthew
 
iot.pptx related to technology which exist
iot.pptx related to technology which existiot.pptx related to technology which exist
iot.pptx related to technology which exist
VINODN33
 
Chapter - 1 Introduction to networking (3).ppt
Chapter - 1 Introduction to networking (3).pptChapter - 1 Introduction to networking (3).ppt
Chapter - 1 Introduction to networking (3).ppt
Ethiopia Satlliet television
 
introduction to cloud computing for college.pdf
introduction to cloud computing for college.pdfintroduction to cloud computing for college.pdf
introduction to cloud computing for college.pdf
snehan789
 
Distributed Systems.pptx
Distributed Systems.pptxDistributed Systems.pptx
Distributed Systems.pptx
salutiontechnology
 
02 Models of Distribution Systems.pdf
02 Models of Distribution Systems.pdf02 Models of Distribution Systems.pdf
02 Models of Distribution Systems.pdf
RobeliaJoyVillaruz
 
Chapter 3-Processes.ppt
Chapter 3-Processes.pptChapter 3-Processes.ppt
Chapter 3-Processes.ppt
sirajmohammed35
 
Inter-Process Communication in distributed systems
Inter-Process Communication in distributed systemsInter-Process Communication in distributed systems
Inter-Process Communication in distributed systems
Aya Mahmoud
 
Computing notes
Computing notesComputing notes
Computing notesthenraju24
 

Similar to Distributed Systems (20)

Ds ppt imp.
Ds ppt imp.Ds ppt imp.
Ds ppt imp.
 
Network protocols
Network protocolsNetwork protocols
Network protocols
 
chap-0 .ppt
chap-0 .pptchap-0 .ppt
chap-0 .ppt
 
Distributed system
Distributed systemDistributed system
Distributed system
 
characteristicsofdistributedsystem-121004123308-phpapp02.ppt
characteristicsofdistributedsystem-121004123308-phpapp02.pptcharacteristicsofdistributedsystem-121004123308-phpapp02.ppt
characteristicsofdistributedsystem-121004123308-phpapp02.ppt
 
Client Server Model and Distributed Computing
Client Server Model and Distributed ComputingClient Server Model and Distributed Computing
Client Server Model and Distributed Computing
 
Introduction
IntroductionIntroduction
Introduction
 
Linux Inter Process Communication
Linux Inter Process CommunicationLinux Inter Process Communication
Linux Inter Process Communication
 
distributed-systemsfghjjjijoijioj-chap3.pptx
distributed-systemsfghjjjijoijioj-chap3.pptxdistributed-systemsfghjjjijoijioj-chap3.pptx
distributed-systemsfghjjjijoijioj-chap3.pptx
 
Distributed Systems in Data Engineering
Distributed Systems in Data EngineeringDistributed Systems in Data Engineering
Distributed Systems in Data Engineering
 
iot.pptx related to technology which exist
iot.pptx related to technology which existiot.pptx related to technology which exist
iot.pptx related to technology which exist
 
Database System Architectures
Database System ArchitecturesDatabase System Architectures
Database System Architectures
 
Chapter - 1 Introduction to networking (3).ppt
Chapter - 1 Introduction to networking (3).pptChapter - 1 Introduction to networking (3).ppt
Chapter - 1 Introduction to networking (3).ppt
 
introduction to cloud computing for college.pdf
introduction to cloud computing for college.pdfintroduction to cloud computing for college.pdf
introduction to cloud computing for college.pdf
 
Distributed Systems.pptx
Distributed Systems.pptxDistributed Systems.pptx
Distributed Systems.pptx
 
02 Models of Distribution Systems.pdf
02 Models of Distribution Systems.pdf02 Models of Distribution Systems.pdf
02 Models of Distribution Systems.pdf
 
Chapter 3-Processes.ppt
Chapter 3-Processes.pptChapter 3-Processes.ppt
Chapter 3-Processes.ppt
 
Unit 2(oss) (1)
Unit 2(oss) (1)Unit 2(oss) (1)
Unit 2(oss) (1)
 
Inter-Process Communication in distributed systems
Inter-Process Communication in distributed systemsInter-Process Communication in distributed systems
Inter-Process Communication in distributed systems
 
Computing notes
Computing notesComputing notes
Computing notes
 

Recently uploaded

DfMAy 2024 - key insights and contributions
DfMAy 2024 - key insights and contributionsDfMAy 2024 - key insights and contributions
DfMAy 2024 - key insights and contributions
gestioneergodomus
 
weather web application report.pdf
weather web application report.pdfweather web application report.pdf
weather web application report.pdf
Pratik Pawar
 
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdfAKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
SamSarthak3
 
Building Electrical System Design & Installation
Building Electrical System Design & InstallationBuilding Electrical System Design & Installation
Building Electrical System Design & Installation
symbo111
 
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理
zwunae
 
Steel & Timber Design according to British Standard
Steel & Timber Design according to British StandardSteel & Timber Design according to British Standard
Steel & Timber Design according to British Standard
AkolbilaEmmanuel1
 
Tutorial for 16S rRNA Gene Analysis with QIIME2.pdf
Tutorial for 16S rRNA Gene Analysis with QIIME2.pdfTutorial for 16S rRNA Gene Analysis with QIIME2.pdf
Tutorial for 16S rRNA Gene Analysis with QIIME2.pdf
aqil azizi
 
Forklift Classes Overview by Intella Parts
Forklift Classes Overview by Intella PartsForklift Classes Overview by Intella Parts
Forklift Classes Overview by Intella Parts
Intella Parts
 
Gen AI Study Jams _ For the GDSC Leads in India.pdf
Gen AI Study Jams _ For the GDSC Leads in India.pdfGen AI Study Jams _ For the GDSC Leads in India.pdf
Gen AI Study Jams _ For the GDSC Leads in India.pdf
gdsczhcet
 
Basic Industrial Engineering terms for apparel
Basic Industrial Engineering terms for apparelBasic Industrial Engineering terms for apparel
Basic Industrial Engineering terms for apparel
top1002
 
Water billing management system project report.pdf
Water billing management system project report.pdfWater billing management system project report.pdf
Water billing management system project report.pdf
Kamal Acharya
 
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
thanhdowork
 
DESIGN AND ANALYSIS OF A CAR SHOWROOM USING E TABS
DESIGN AND ANALYSIS OF A CAR SHOWROOM USING E TABSDESIGN AND ANALYSIS OF A CAR SHOWROOM USING E TABS
DESIGN AND ANALYSIS OF A CAR SHOWROOM USING E TABS
itech2017
 
MCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdfMCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdf
Osamah Alsalih
 
Understanding Inductive Bias in Machine Learning
Understanding Inductive Bias in Machine LearningUnderstanding Inductive Bias in Machine Learning
Understanding Inductive Bias in Machine Learning
SUTEJAS
 
Fundamentals of Induction Motor Drives.pptx
Fundamentals of Induction Motor Drives.pptxFundamentals of Induction Motor Drives.pptx
Fundamentals of Induction Motor Drives.pptx
manasideore6
 
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
obonagu
 
The Role of Electrical and Electronics Engineers in IOT Technology.pdf
The Role of Electrical and Electronics Engineers in IOT Technology.pdfThe Role of Electrical and Electronics Engineers in IOT Technology.pdf
The Role of Electrical and Electronics Engineers in IOT Technology.pdf
Nettur Technical Training Foundation
 
6th International Conference on Machine Learning & Applications (CMLA 2024)
6th International Conference on Machine Learning & Applications (CMLA 2024)6th International Conference on Machine Learning & Applications (CMLA 2024)
6th International Conference on Machine Learning & Applications (CMLA 2024)
ClaraZara1
 
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Dr.Costas Sachpazis
 

Recently uploaded (20)

DfMAy 2024 - key insights and contributions
DfMAy 2024 - key insights and contributionsDfMAy 2024 - key insights and contributions
DfMAy 2024 - key insights and contributions
 
weather web application report.pdf
weather web application report.pdfweather web application report.pdf
weather web application report.pdf
 
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdfAKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
 
Building Electrical System Design & Installation
Building Electrical System Design & InstallationBuilding Electrical System Design & Installation
Building Electrical System Design & Installation
 
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理
 
Steel & Timber Design according to British Standard
Steel & Timber Design according to British StandardSteel & Timber Design according to British Standard
Steel & Timber Design according to British Standard
 
Tutorial for 16S rRNA Gene Analysis with QIIME2.pdf
Tutorial for 16S rRNA Gene Analysis with QIIME2.pdfTutorial for 16S rRNA Gene Analysis with QIIME2.pdf
Tutorial for 16S rRNA Gene Analysis with QIIME2.pdf
 
Forklift Classes Overview by Intella Parts
Forklift Classes Overview by Intella PartsForklift Classes Overview by Intella Parts
Forklift Classes Overview by Intella Parts
 
Gen AI Study Jams _ For the GDSC Leads in India.pdf
Gen AI Study Jams _ For the GDSC Leads in India.pdfGen AI Study Jams _ For the GDSC Leads in India.pdf
Gen AI Study Jams _ For the GDSC Leads in India.pdf
 
Basic Industrial Engineering terms for apparel
Basic Industrial Engineering terms for apparelBasic Industrial Engineering terms for apparel
Basic Industrial Engineering terms for apparel
 
Water billing management system project report.pdf
Water billing management system project report.pdfWater billing management system project report.pdf
Water billing management system project report.pdf
 
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
 
DESIGN AND ANALYSIS OF A CAR SHOWROOM USING E TABS
DESIGN AND ANALYSIS OF A CAR SHOWROOM USING E TABSDESIGN AND ANALYSIS OF A CAR SHOWROOM USING E TABS
DESIGN AND ANALYSIS OF A CAR SHOWROOM USING E TABS
 
MCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdfMCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdf
 
Understanding Inductive Bias in Machine Learning
Understanding Inductive Bias in Machine LearningUnderstanding Inductive Bias in Machine Learning
Understanding Inductive Bias in Machine Learning
 
Fundamentals of Induction Motor Drives.pptx
Fundamentals of Induction Motor Drives.pptxFundamentals of Induction Motor Drives.pptx
Fundamentals of Induction Motor Drives.pptx
 
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
 
The Role of Electrical and Electronics Engineers in IOT Technology.pdf
The Role of Electrical and Electronics Engineers in IOT Technology.pdfThe Role of Electrical and Electronics Engineers in IOT Technology.pdf
The Role of Electrical and Electronics Engineers in IOT Technology.pdf
 
6th International Conference on Machine Learning & Applications (CMLA 2024)
6th International Conference on Machine Learning & Applications (CMLA 2024)6th International Conference on Machine Learning & Applications (CMLA 2024)
6th International Conference on Machine Learning & Applications (CMLA 2024)
 
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
 

Distributed Systems

  • 2. 2 Definition of a Distributed System (1) • A distributed system is a collection of independent computers that appear to the users of the system as a single computer. [Andrew Tanenbaum] • A distributed system is several computers doing something together. Thus, a distributed system has three primary characteristics: multiple computers, interconnections, and shared state. [Michael Schroeder]
  • 3. Distributed System Example – A Data center 3
  • 4. 4 Definition of a Distributed System (2) A distributed system organized as middleware. The middleware layer extends over multiple machines, and offers each application the same interface.
  • 5. Why study distributed systems? 5 Easy to get things wrong !!
  • 6. Why study distributed systems? 6 Easy to get things wrong !! How can one be sure that the system does what it is supposed to? Under what conditions?
  • 7. Why study distributed systems? 7 Examples: -Scheduling a meeting over a lossy network -Synchronizing clocks. -Social networking.
  • 8. The Internet – Quick Refresher 8 -Underlies many distributed systems. -A vast interconnected collection of computer networks of many types. -Intranets – subnetworks operated by companies and organizations. -Intranets contain subnets and LANs. -WAN – wide area networks, consists of LANs -ISPs – companies that provide modem links and other types of connections to users. -Intranets (actually the ISPs’ core routers) are linked by backbones – network links of large bandwidth, such as satellite connections, fiber optic cables, and other high-bandwidth circuits.
  • 9. Distributed Systems are layered over networks Application e-mail remote terminal access Web file transfer streaming multimedia remote file server Internet telephony Application layer protocol smtp [RFC 821] telnet [RFC 854] http [RFC 2068] ftp [RFC 959] proprietary (e.g. RealNetworks) NFS proprietary (e.g., Skype) Underlying transport protocol TCP TCP TCP TCP TCP or UDP TCP or UDP typically UDP TCP=Transmission Control Protocol UDP=User Datagram Protocol Implemented via network “sockets”. Basic primitive that allows machines to send messages to each other Distributed System Protocols! Networking Protocols
  • 10. World Wide Web: the HTTP Standard HTTP: hypertext transfer protocol • WWW’s application layer protocol • client/server model – client: browser that requests, receives, and “displays” WWW objects – server: WWW server, which is storing the website, sends objects in response to requests • http1.0: RFC 1945 • http1.1: RFC 2068 – Leverages same connection to download images, scripts, etc. PC running Explorer Server Running Apache Web server Mac running Safari http request http request http response http response
  • 11. The HTTP Protocol: More http: TCP transport service: • client initiates a TCP connection (creates socket) to server, port 80 • server accepts the TCP connection from client • http messages (application- layer protocol messages) exchanged between browser (http client) and WWW server (http server) • TCP connection closed http is “stateless” • server maintains no information about past client requests Protocols that maintain session “state” are complex! • past history (state) must be maintained and updated. • if server/client crashes, their views of “state” may be inconsistent, and hence must be reconciled. Why?
  • 12. HTTP Example Suppose user enters URL www.ce.ahu.edu.jo/ 1a. http client initiates a TCP connection to http server (process) at www.ce.ahu.edu.jo. Port 80 is default for http server. 2. http client sends a http request message (containing URL) into TCP connection socket 1b. http server at host www.ce.ahu.edu.jo waiting for a TCP connection at port 80. “accepts” connection, notifying client 3. http server receives request messages, forms a response message containing requested object (index.html), sends message into socket time (contains text, references to 10 jpeg images)
  • 13. HTTP Example For fetching referenced objects, have 2 options: • non-persistent connection: only one object fetched per TCP connection – some browsers create multiple TCP connections simultaneously - one per object • persistent connection: multiple objects transferred within one TCP connection 5. http client receives a response message containing html file, displays html, finds 10 referenced jpeg objects 6. Steps 1-5 are then repeated for each of 10 jpeg objects 4. http server closes the TCP connection (if necessary). time
  • 14. A human as a browser (Client Side) 1. Telnet to your favorite WWW server: Opens TCP connection to port 80 (default http server port) at www.google.com Anything typed in sent to port 80 at www.google.com telnet www.google.com 80 2. Type in a GET http request: GET /index.html Or GET /index.html HTTP/1.0 By typing this in (may need to hit return twice), you send this minimal (but complete) GET request to http server 3. Look at response message sent by http server!
  • 15. Distributed Systems Issues 15 Asynchrony versus synchrony Failures Heterogeneity - Processing speed - Communication link bandwidth - Communication latency Scale Dynamic system
  • 16. Topics in Distributed Systems 16 Distributed system examples : Cloud Computing, Peer-to-peer systems, key-value stores/SQL, … Classical Problems: Synchronization, Failure detection, Snapshots, Multicast, Consensus, Mutual Exclusion, Election, … Concurrency: Concurrency Control, Replication Control, … Security: Faults, … …
  • 17. 17 Transparency in a Distributed System Different forms of transparency in a distributed system (ISO, 1995).
  • 18. 18 Scalability Problems Examples of scalability limitations.
  • 19. 19 Scalability Problems Characteristics of decentralized algorithms: • No machine has complete information about the system state. • Machines make decisions based only on local information. • Failure of one machine does not ruin the algorithm. • There is no implicit assumption that a global clock exists.
  • 20. 20 Scaling Techniques (1) The difference between letting (a) a server or (b) a client check forms as they are being filled.
  • 21. 21 Scaling Techniques (2) An example of dividing the DNS name space into zones.
  • 22. 22 Pitfalls when Developing Distributed Systems False assumptions made by first time developer: • The network is reliable. • The network is secure. • The network is homogeneous. • The topology does not change. • Latency is zero. • Bandwidth is infinite. • Transport cost is zero. • There is one administrator.
  • 23. 23 Cluster Computing Systems An example of a cluster computing system.
  • 24. 24 Grid Computing Systems A layered architecture for grid computing systems.
  • 25. 25 Transaction Processing Systems (1) Example primitives for transactions.
  • 26. 26 Transaction Processing Systems (2) Characteristic properties of transactions: Atomic: To the outside world, the transaction happens indivisibly. Consistent: The transaction does not violate system invariants. Isolated: Concurrent transactions do not interfere with each other. Durable: Once a transaction commits, the changes are permanent.
  • 28. 28 Transaction Processing Systems (4) Figure 1-10. The role of a TP monitor in distributed systems.
  • 29. 29 Enterprise Application Integration Middleware as a communication facilitator in enterprise application integration.
  • 30. 30 Distributed Pervasive Systems Requirements for pervasive systems Encourage ad hoc composition. Recognize sharing as the default.
  • 31. 31 Electronic Health Care Systems (1) Questions to be addressed for health care systems: Where and how should monitored data be stored? How can we prevent loss of crucial data? What infrastructure is needed to generate and propagate alerts? How can physicians provide online feedback? How can extreme robustness of the monitoring system be realized? What are the security issues and how can the proper policies be enforced?
  • 32. 32 Electronic Health Care Systems (2) Monitoring a person in a pervasive electronic health care system, using (a) a local hub or (b) a continuous wireless connection.
  • 33. 33 Sensor Networks (1) Questions concerning sensor networks: How do we (dynamically) set up an efficient tree in a sensor network? How does aggregation of results take place? Can it be controlled? What happens when network links fail?
  • 34. 34 Sensor Networks (2) Organizing a sensor network database, while storing and processing data (a) only at the operator’s site or …
  • 35. 35 Sensor Networks (3) Organizing a sensor network database, while storing and processing data … or (b) only at the sensors.