Professional Documents
Culture Documents
unit-1
unit-1
1
Background
• The pace at which computer systems change was, is, and continues to
be overwhelming.
• 1945→ when the modern computer era began.
• 1945-1985→computers were large and expensive.
• Moreover, for lack of a way to connect them, these computers
operated independently from one another.
• mid-1980s → Development of powerful microprocessors
→ invention of high-speed computer networks
2
Development of powerful microprocessors
• Initially, these were 8-bit machines, but soon 16-, 32-, and 64-bit
CPUs became common.
• Now a days, GPU and TPU are in use for powerful processing.
3
Invention of high-speed computer networks
4
Smartphone as the most impressive outcome
5
plug computers and nano computers
• These small computers, often the size of a power adapter, can often
be plugged directly into an outlet and offer near-desktop
performance.
6
Distributed System
7
What is a distributed system?
• A distributed system is a collection of
autonomous computing elements that appears
to its users as a single coherent system.
• A Distributed system is collection of
independent computers which are connected
through network.”
• a collection of computing elements(Node: H/w
device or S/w Process) each being able to behave
independently of each other.
I have my own
Memory, Processor LAN
and other Hardware
MAN
WAN
Physically
separate Independent
Networked Communicating
10
Distributed Operating System
Definition by Coulouris, Dollimore, Kindberg and Blair
“A distributed system is defined as one in which components at
networked computers communicate and coordinate their actions only by
passing messages.”
“A Distributed system is collection of independent computers which are
connected through network.”
11
Distributed Operating System
A great example of distributed system is the web page of University.
University website
User Internet
Web Server
School of
Engineering
12
Distributed Operating System
13
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.
14
Examples of Distributed Systems
15
Examples of Distributed Systems
18
Network OS vs Distributed OS
19
Network OS vs Distributed OS
Performance is badly affected if certain part of It is more reliable or fault tolerant i.e.
the hardware starts malfunctioning. distributed operating system performs even if
certain part of the hardware starts
malfunctioning.
Remote resources are accessed by either Users access remote resources in the same
logging into the desired remote machine or manner as they access local resources.
transferring data from the remote machine to
user's own machines.
Easy to Implement Difficult to Implement.
Low Transparency High Transparency
20
1.1. Characteristic 1: collection of
autonomous computing elements
• In a DS there are multiple components that may be decomposed
further.
• These components are autonomous, i.e. they possess full control over
their parts at all times.
21
1.1 Characteristic 2: single coherent system
22
Middleware and distributed systems
• To assist the development of distributed applications, distributed
systems are often organized to have a separate layer of software that
is logically placed on top of the respective operating systems of the
computers that are part of the system.
• This organization is shown
in Fig. 1, leading to what is known as middleware.
23
1.2 Design Goals
24
1.2.1 Making Resources Accessible
25
Why Resources Sharing ?
• Economic →
It is cheaper to let a printer be shared by several users in a small office
than having to buy and maintain a separate printer for each user.
Likewise, it makes economic sense to share costly resources such as
supercomputers, high-performance storage systems, imagesetters, and
other expensive peripherals.
26
Security Concern
27
1.2.2 Distribution Transparency
• Goal → to hide the fact that its processes and resources are physically
distributed across multiple computers.
• In other words, it tries to make the distribution of processes and
resources transparent, that is, invisible, to end users and applications.
28
Types of Transparency
29
Access Transparency
30
Location Transparency
31
Relocation Transparency
• For example, the entire site may have been moved from one (part of
a) data center to another to make more efficient use of disk space,
yet users should not notice.
32
Migration Transparency
33
Replication transparency
34
concurrency transparency
• For example, two independent users may each have stored their files
on the same file server or may be accessing the same tables in a
shared database. In such cases, it is important that each user does
not notice that the other is making use of the same resource.
35
Failure Transparency
36
1.2.3 Openness
37
1.2.4 Scalability
38
1.3 Types of Distributed Systems
1 Distributed Computing Systems : Focus on computation
--Cluster Computing Systems
--Grid Computing Systems
2 Distributed Information Systems: Focus on interoperability
--Transaction Processing Systems
--Enterprise Application Integration
(Exchange info via RPC or RMI)
3Distributed Pervasive Systems (usually small, battery-powered systems, Mobile &
wireless): Focus on mobile, embedded, communicating
--Home Systems (e.g. Smart phones, PDAs)
--Electronic Health care systems (Heart monitors, BAN: Body Area Networks)
--Sensor Networks (distributed Databases connected wirelessly)
39
Cluster Computing Systems
A collection of similar workstations or PCs connected by a high‐ speed local‐area
network (LAN)
It is homogenous given that each node runs the same OS.
The ever increasing price / performance ration of computers makes it cheaper to
build a supercomputer by putting together many simple computers, rather than
buying a high-performance one.
Also, robustness is higher, maintenance and incremental addition of computing
power is easier
Usage
Parallel programming
Typically, a single computationally-intensive program is run in parallel on multiple
machines
40
Cluster Computing Systems
42
Grid Computing
Systems
44
Transaction Processing Systems
BEGIN_TRANSACTION
salary1 = doctor1.getSalary()
doctor1.setSalary(salary1 + bonus)
salary2 = doctor2.getSalary()
doctor2.setSalary(salary2 - bonus)
END_TRANSACTION
45
Transaction Processing Systems
Characteristic:
• Atomic: The transaction happens indivisibly.
46
Transaction Processing Systems
47
Transaction Processing Systems
48
Enterprise Application Integration
51
Electronic Health Care Systems
• What are the security issues and how can the proper
policies be enforced?
52
Electronic Health Care Systems (2)
54
Sensor Networks (2)
57
Distributed Operating System Architecture
58
CASE STUDY: The World Wide Web
59
CASE STUDY: The World Wide Web
The World Wide Web [www.w3.org I, Berners-Lee 1991] is an evolving system for publishing
and accessing resources and services across the Internet. Through commonly available web
browsers, users retrieve and view documents of many types, listen to audio streams and
view video streams, and interact with an unlimited set of services.
The Web began life at the European center for nuclear research (CERN), Switzerland, in
1989 as a vehicle for exchanging documents between a community of physicists connected
by the Internet [Berners-Lee 1999]. A key feature of the Web is that it provides a hypertext
structure among the documents that it stores, reflecting the users’ requirement to organize
their knowledge. This means that documents contain links (or hyperlinks) – references to
other documents and resources that are also stored in the Web.
The Web is an open system: it can be extended and implemented in new ways without
disturbing its existing functionality.
First, its operation is based on communication standards and document or content
standards that are freely published and widely implemented.
Second, the Web is open with respect to the types of resource that can be published
and shared on it.
60
WWW Operation
61
WWW Operation
62
WWW Operation
63
Components of WWW
1.Client/Browser
2.Server
3. URL
4. HTML
5. XML
64
1.Client/Browser
The Client/Web browser is basically a program that is used to communicate with the
webserver on the Internet.
Each browser mainly comprises of three components and these are:
▪ Controller
▪ Interpreter
▪ Client Protocols
The Controller mainly receives the input from the input device, after that it uses the
client programs in order to access the documents.
After accessing the document, the controller makes use of an interpreter in order to
display the document on the screen.
An interpreter can be Java, HTML, javascript mainly depending upon the type of the
document.
The Client protocol can be FTP, HTTP, TELNET.
65
2.Server
The Computer that is mainly available for the network resources and in order to
provide services to the other computer upon request is generally known as the server.
The Web pages are mainly stored on the server.
Whenever the request of the client arrives then the corresponding document is sent to
the client.
The connection between the client and the server is TCP.
It can become more efficient through multithreading or multiprocessing. Because in
this case, the server can answer more than one request at a time.
66
3.URL
URL is an abbreviation of the Uniform resource locator.
It is basically a standard used for specifying any kind of information on the Internet.
In order to access any page the client generally needs an address.
To facilitate the access of the documents throughout the world HTTP generally makes use of
Locators.
URL mainly defines the four things:
Protocol It is a client/server program that is mainly used to retrieve the document. A
commonly used protocol is HTTP.
Host Computer It is the computer on which the information is located. It is not
mandatory because it is the name given to any computer that hosts the web page.
Port The URL can optionally contain the port number of the server. If the port number
is included then it is generally inserted in between the host and path and is generally
separated from the host by the colon.
Path It indicates the pathname of the file where the information is located.
67
4.HTML
HTML is an abbreviation of Hypertext Markup Language.
It is generally used for creating web pages.
It is mainly used to define the contents, structure, and organization of the
web page.
68
5.XML
XML is an abbreviation of Extensible Markup Language. It mainly helps in order to define
the common syntax in the semantic web.
69
Features of WWW
Given below are some of the features provided by the World Wide
Web:
70
Advantages of WWW
Given below are the benefits offered by WWW:
71
Disadvantages of WWW
There are some drawbacks of the WWW and these are as follows;
72
CASE STUDY: The World Wide Web
WWW is the huge collection of pages of information linked to each other around one globe.
Web page is the collection of text, images, video, audio, animation and hyperlink.
73
CASE STUDY: The World Wide Web
Publishing a resource:
While the Web has a clearly defined model for accessing a resource from
its URL, the exact methods for publishing resources on the Web are
dependent upon the web server implementation.
In terms of low-level mechanisms, the simplest method of publishing a
resource on the Web is to place the corresponding file in a directory that
the web server can access.
74
CASE STUDY: The World Wide Web
75
CASE STUDY: The World Wide Web
76