44
Systems Architecture, Fourth Edition 1 Internet and Distributed Application Services Chapter 13

Systems Architecture, Fourth Edition1 Internet and Distributed Application Services Chapter 13

Embed Size (px)

Citation preview

Page 1: Systems Architecture, Fourth Edition1 Internet and Distributed Application Services Chapter 13

Systems Architecture, Fourth Edition 1

Internet and Distributed Application Services

Chapter 13

Page 2: Systems Architecture, Fourth Edition1 Internet and Distributed Application Services Chapter 13

Systems Architecture, Fourth Edition 2

Objectives

• Describe client-server and multi-tier application architecture and discuss their advantages compared to centralized applications

• Explain how operating systems and network protocol stacks cooperate so users and programs can access remote resources

• Describe low-level protocols for interprocess communication across networks, including sockets, named pipes, RPC, and DCE

• List and describe standard Internet protocols used to access distributed resources

• Discuss component-based application development and describe the protocols and standards that support component-based applications

• Explain the role and function of directory services and the LDAP standard

Page 3: Systems Architecture, Fourth Edition1 Internet and Distributed Application Services Chapter 13

Systems Architecture, Fourth Edition 3

Chapter Topics

Page 4: Systems Architecture, Fourth Edition1 Internet and Distributed Application Services Chapter 13

Systems Architecture, Fourth Edition 4

Distributed Computing

• Client-server architecture is the current dominate architecture for distributed computing.

Page 5: Systems Architecture, Fourth Edition1 Internet and Distributed Application Services Chapter 13

Systems Architecture, Fourth Edition 5

Distributed Computing

Client-server architecture is the current dominate architecture for distributed computing.

Page 6: Systems Architecture, Fourth Edition1 Internet and Distributed Application Services Chapter 13

Systems Architecture, Fourth Edition 6

Distributed Computing

Client-Server Architecture:

• A server manages one or more system resources and provides access to those resources through a well-defined communication interface.

• A client uses the communication interface to request resources from the server.

Page 7: Systems Architecture, Fourth Edition1 Internet and Distributed Application Services Chapter 13

Systems Architecture, Fourth Edition 7

Distributed Computing

3-Layer Client-Server Architecture:

• Data layer – manages stored data, usually in one or more databases

• Business logic layer – implements the rules and procedures of business processing

• View layer – accepts user input and formats and displays processing results

Page 8: Systems Architecture, Fourth Edition1 Internet and Distributed Application Services Chapter 13

Systems Architecture, Fourth Edition 8

Distributed Computing

Page 9: Systems Architecture, Fourth Edition1 Internet and Distributed Application Services Chapter 13

Systems Architecture, Fourth Edition 9

Network Resource Access

Protocol Stacks:

– Software that implements the lowest five levels of the OSI model.

Page 10: Systems Architecture, Fourth Edition1 Internet and Distributed Application Services Chapter 13

Systems Architecture, Fourth Edition 10

Network Resource Access

Advantages of Protocol Stacks:• divide the task of network interaction into several

well-defined pieces that can be separately implemented and installed

• provide the flexibility needed to keep up with rapid protocol standard evolution

• insulate application programs and many portions of the operating system from details of low-level network communication protocols.

Page 11: Systems Architecture, Fourth Edition1 Internet and Distributed Application Services Chapter 13

Systems Architecture, Fourth Edition 11

Network Resource Access

Page 12: Systems Architecture, Fourth Edition1 Internet and Distributed Application Services Chapter 13

Systems Architecture, Fourth Edition 12

Network Resource Access

Accessing Remote Resources:

• A static connection is initialized by the user or system administrator prior to accessing a remote resource.

• A dynamic connection is created by the interaction between a resource locator and a primary resource registration repository.

Page 13: Systems Architecture, Fourth Edition1 Internet and Distributed Application Services Chapter 13

Systems Architecture, Fourth Edition 13

Network Resource Access

Page 14: Systems Architecture, Fourth Edition1 Internet and Distributed Application Services Chapter 13

Systems Architecture, Fourth Edition 14

Network Resource Access

Page 15: Systems Architecture, Fourth Edition1 Internet and Distributed Application Services Chapter 13

Systems Architecture, Fourth Edition 15

Interprocess Communication

Page 16: Systems Architecture, Fourth Edition1 Internet and Distributed Application Services Chapter 13

Systems Architecture, Fourth Edition 16

Interprocess Communication

Peer-to-peer protocol:

• Socket

• Named Pipe

• Remote Procedure Call

Page 17: Systems Architecture, Fourth Edition1 Internet and Distributed Application Services Chapter 13

Systems Architecture, Fourth Edition 17

Interprocess Communication

Socket:

• A socket is a unique combination of an IP number and a port number.

• A port number is an unsigned 16-bit integer. (65,536 possible port numbers)

Page 18: Systems Architecture, Fourth Edition1 Internet and Distributed Application Services Chapter 13

Systems Architecture, Fourth Edition 18

Interprocess Communication

Page 19: Systems Architecture, Fourth Edition1 Internet and Distributed Application Services Chapter 13

Systems Architecture, Fourth Edition 19

Interprocess Communication

Named Pipe:

A named pipe has a name that is permanently placed within a file system directory and the ability to communicate among processes on different computers.

Page 20: Systems Architecture, Fourth Edition1 Internet and Distributed Application Services Chapter 13

Systems Architecture, Fourth Edition 20

Interprocess Communication

Page 21: Systems Architecture, Fourth Edition1 Internet and Distributed Application Services Chapter 13

Systems Architecture, Fourth Edition 21

Interprocess Communication

Remote Procedure Call:

With a remote procedure call protocol, a process on one machine can call a process on another machine.

Page 22: Systems Architecture, Fourth Edition1 Internet and Distributed Application Services Chapter 13

Systems Architecture, Fourth Edition 22

Interprocess Communication

Remote Procedure Call:The calling process:

• Passes parameters to the called process.• Waits for the called process to complete its

task.• Accepts parameters back from the called

process.• Resumes execution with the instruction

following the call.

Page 23: Systems Architecture, Fourth Edition1 Internet and Distributed Application Services Chapter 13

Systems Architecture, Fourth Edition 23

Technology Focus

Page 24: Systems Architecture, Fourth Edition1 Internet and Distributed Application Services Chapter 13

Systems Architecture, Fourth Edition 24

The Internet

Internet – a global collection of networks that are interconnected using TCP/IP.

World Wide Web – a collection of resources that can be accessed over the Internet.

Intranet – a private network that uses Internet protocols but is accessible only by a limited set of internal users.

Page 25: Systems Architecture, Fourth Edition1 Internet and Distributed Application Services Chapter 13

Systems Architecture, Fourth Edition 25

The Internet

Standard Web Protocols and Services:

• All resources are identifies by a unique Uniform Resource Locator (URL).

• The URL has four parts: protocol, host, port and resource.

Page 26: Systems Architecture, Fourth Edition1 Internet and Distributed Application Services Chapter 13

Systems Architecture, Fourth Edition 26

The Internet

Uniform Resource Locator:• Protocol – an optional header specifying the

resource access protocol.• Host – the IP number or registered name of an

Internet host computer or device.• Port – an optional port number that specifies the

socket.• Resource – the complete path name of a

resource on the host.

Page 27: Systems Architecture, Fourth Edition1 Internet and Distributed Application Services Chapter 13

Systems Architecture, Fourth Edition 27

The Internet

Page 28: Systems Architecture, Fourth Edition1 Internet and Distributed Application Services Chapter 13

Systems Architecture, Fourth Edition 28

Interprocess Communication

Page 29: Systems Architecture, Fourth Edition1 Internet and Distributed Application Services Chapter 13

Systems Architecture, Fourth Edition 29

Interprocess Communication

Page 30: Systems Architecture, Fourth Edition1 Internet and Distributed Application Services Chapter 13

Systems Architecture, Fourth Edition 30

Interprocess Communication

In later versions of HTML, program code or scripts can be embedded within HTML documents.

Page 31: Systems Architecture, Fourth Edition1 Internet and Distributed Application Services Chapter 13

Systems Architecture, Fourth Edition 31

Interprocess Communication

Page 32: Systems Architecture, Fourth Edition1 Internet and Distributed Application Services Chapter 13

Systems Architecture, Fourth Edition 32

Interprocess Communication

Page 33: Systems Architecture, Fourth Edition1 Internet and Distributed Application Services Chapter 13

Systems Architecture, Fourth Edition 33

Components and Distributed Objects

Component-Based Software:

A component is a standardized and interchangeable software module that:– Is executable– Has a unique identifier– Has a well-known interface– Similar to objects within an OO program

Page 34: Systems Architecture, Fourth Edition1 Internet and Distributed Application Services Chapter 13

Systems Architecture, Fourth Edition 34

Components and Distributed Objects

CORBA - Industry-wide component specifies the middleware used by objects to interact across the network.Two components:– Object Request Broker (ORB)– Internet Inter-ORB Protocol (IIOP)

COM+ - a Microsoft specification for component interoperability.

Page 35: Systems Architecture, Fourth Edition1 Internet and Distributed Application Services Chapter 13

Systems Architecture, Fourth Edition 35

Components and Distributed Objects

Differences between CORBA and COM+:

• Components are not assigned a permanent identifier.

• Components are registered in the Windows Registry of the client machine.

Page 36: Systems Architecture, Fourth Edition1 Internet and Distributed Application Services Chapter 13

Systems Architecture, Fourth Edition 36

Components and Distributed Objects

Page 37: Systems Architecture, Fourth Edition1 Internet and Distributed Application Services Chapter 13

Systems Architecture, Fourth Edition 37

Components and Distributed Objects

Simple Object Access Protocol (SOAP):

SOAP is a standard for distributed object interaction that attempts the shortcomings of both CORBA and COM+.

Page 38: Systems Architecture, Fourth Edition1 Internet and Distributed Application Services Chapter 13

Systems Architecture, Fourth Edition 38

Components and Distributed Objects

Page 39: Systems Architecture, Fourth Edition1 Internet and Distributed Application Services Chapter 13

Systems Architecture, Fourth Edition 39

Directory Services

Lightweight Directory Access Protocol (LDAP):• An LDAP directory stores information about

LDAP objects. • Each object is an instance of an objectclass.• An objectclass defines the attributes common to

all member objects.• LDAP objects are organized in a hierarchy.

Page 40: Systems Architecture, Fourth Edition1 Internet and Distributed Application Services Chapter 13

Systems Architecture, Fourth Edition 40

Directory Services

Page 41: Systems Architecture, Fourth Edition1 Internet and Distributed Application Services Chapter 13

Systems Architecture, Fourth Edition 41

Technology Focus

Page 42: Systems Architecture, Fourth Edition1 Internet and Distributed Application Services Chapter 13

Systems Architecture, Fourth Edition 42

Technology Focus

Page 43: Systems Architecture, Fourth Edition1 Internet and Distributed Application Services Chapter 13

Systems Architecture, Fourth Edition 43

Summary

• Modern information systems typically are distributed across many computer systems and geographic locations.

• A network protocol enables user and applications to interact with resources and applications on remote computer systems.

• Distributed processes must communicate with one another to exchange data and synchronize their activities.

Page 44: Systems Architecture, Fourth Edition1 Internet and Distributed Application Services Chapter 13

Systems Architecture, Fourth Edition 44

Summary

• The Internet is a global network based on TCP/IP and many other protocols.

• Component-based applications divide an application into many different cooperating processes or distributed objects.

• With directory services, users, resources, and components can find one another on the Internet.