Chapter 1 Slides - DS
Chapter 1 Slides - DS
•e.g., the Internet and the associated World Wide Web, web
search, online gaming, financial trading systems, email,
social networks, eCommerce, etc.
•The sharing of resources is a main motivation for
constructing D.S. Resources may be managed by servers &
accessed by clients or they may be encapsulated as objects
and accessed by other client objects.
Distributed Systems (Introduction)
(A)
Source: https://www.facebook.com/note.php?note_id=469716398919
(B)
What is the
communication medium
(links)?
Source: http://www.vlib.us/web/worldwideweb3d.html
Distributed System Example – A Datacenter
Distributed Systems - Challenges
Failure Handling: Computer systems sometimes fail. When faults occur
in hardware or software, programs may produce incorrect results or may
stop before they have completed the intended computation.
•Detecting failures: Some failures can be detected. For example, checksums can
be used to detect corrupted data in a message or a file
•Masking failures: i) Messages can be retransmitted when they fail to arrive, ii)
File data can be written to a pair of disks so that if one is corrupted, the other may
still be correct
•Recovery from failures: Recovery involves the design of software so that the state
of permanent data can be recovered or ‘rolled back’ after a server has crashed
•Redundancy: Services can be made to tolerate failures by the use of redundant
components; i) Two different routes between any two routers in the Internet; ii)
In the DNS, every name table is replicated in at least two different servers; iii) A
database may be replicated in several servers to ensure that the data remains
accessible after the failure of any single server
Distributed Systems - Challenges
Transparency:
•It means that any form of distributed system should hide its
distributed nature from its users, appearing and functioning as a
normal centralized system.
•Transparency is defined as the concealment (hiding) from the user
and the application programmer of the separation of components in
a distributed system, so that the system is perceived as a whole
rather than as a collection of independent components.
•The two most important transparencies are access and location
transparency; their presence or absence most strongly affects the
utilization of distributed resources.
Distributed Systems - Challenges
Access transparency: enables local & remote resources to be accessed using identical
operations (GUI with folders, which is same whether the files inside the folder are local or remote)
Location transparency: enables resources to be accessed without knowledge of their
physical or network location (for example, which building or IP address).
Concurrency transparency: enables several processes to operate concurrently using
shared resources without interference between them.
Replication transparency: enables multiple instances of resources to be used to increase
reliability and performance without knowledge of the replicas by users or application
programmers.
Failure transparency: enables the concealment of faults, allowing users and application
programs to complete their tasks despite the failure of hardware or software components.
Mobility transparency: allows the movement of resources and clients within a system
without affecting the operation of users or programs.
Performance transparency: allows the system to be reconfigured to improve
performance as loads vary.
Scaling transparency: allows the system and applications to expand in scale without
change to the system structure or the application algorithms.
Distributed Systems (Examples & Trends)
•Web Search
•Pervasive networking and the modern Internet
•Mobile and ubiquitous computing
•Massively multiplayer online games (MMOGs)
•Financial Trading
Distributed Systems (Examples)
intranet ☎
☎
☎ ISP
backbone
satellite link
desktop computer:
server:
network link:
An
AnIntranet
Intranetand
andaadistributed
distributedsystem
systemover
overitit
Lecture
Lecture1-32
1-32
The
The HTTP
HTTPProtocol:
Protocol: More
More
time
Lecture
Lecture1-34
1-34
HTTP
HTTPExample
Example (cont.)
(cont.)
4. http server closes the TCP
connection (if necessary).
5. http client receives a response
message containing html file,
displays html, Parses html
file, finds 10 referenced jpeg
objects
6. Steps 1-5 are then repeated for
each of 10 jpeg objects
time
Lecture
Lecture1-35
1-35
Distributed computing as a utility – Cloud Computing
http://www.google.comlsearch?q=obama
www.google.com
www.cdk5.net Internet
http://www.cdk5.net/
www.w3c.org
faq.html