Docsity

Distributed Software Architectures-Introduction to Software Engineering-Lecture 08 Slides-Computer Science, Slides of Introduction to Software Engineering

Partial preview of the text

Download Distributed Software Architectures-Introduction to Software Engineering-Lecture 08 Slides-Computer Science and more Slides Introduction to Software Engineering in PDF only on Docsity!

©Ian Sommerville 2000

Software Engineering, 6th edition. Chapter 11

ECE 452- Introduction to Software

Engineering

Lecture 8: Distributed Software

Architectures (I. Sommerville)

Manish Parashar

[email protected]

Department of Electrical & Computer

Engineering

Rutgers University

©Ian Sommerville 2000

Software Engineering, 6th edition. Chapter 11

Software architecture

●

The design process for identifying the sub-systems making up a system and the frameworkfor sub-system control and communication is architectural design

●

The output of this design process is a descriptionof the

software architecture

©Ian Sommerville 2000

Software Engineering, 6th edition. Chapter 11

Architectural design process

●

System structuring

The system is decomposed into several principal sub-systemsand communications between these sub-systems are identified

●

Control modelling

A model of the control relationships between the different partsof the system is established

●

Modular decomposition

The identified sub-systems are decomposed into modules

©Ian Sommerville 2000

Software Engineering, 6th edition. Chapter 11

Architecture attributes

●

Performance

Localise operations to minimise sub-system communication

●

Security

Use a layered architecture with critical assets in inner layers

●

Safety

Isolate safety-critical components

●

Availability

Include redundant components in the architecture

●

Maintainability

Use fine-grain, self-contained components

©Ian Sommerville 2000

Software Engineering, 6th edition. Chapter 11

The repository model

●

Sub-systems must exchange data. This may bedone in two ways:

Shared data is held in a central database or repository and maybe accessed by all sub-systems

Each sub-system maintains its own database and passes dataexplicitly to other sub-systems

●

When large amounts of data are to be shared, therepository model of sharing is most commonlyused

©Ian Sommerville 2000

Software Engineering, 6th edition. Chapter 11

CASE toolset architecture

Project

repository

Design

translator

Program

editor

Design

editor

Code

generator

Design

analyser

Report

generator

©Ian Sommerville 2000

Software Engineering, 6th edition. Chapter 11

Client-server architecture

●

Distributed system model which shows how dataand processing is distributed across a range ofcomponents

●

Set of stand-alone servers which provide specificservices such as printing, data management, etc.

●

Set of clients which call on these services

●

Network which allows clients to access servers

©Ian Sommerville 2000

Software Engineering, 6th edition. Chapter 11

Film and picture library

Catalogue

server

Catalogue

Videoserver

Film clip

files

Picture

server

Digitized

photographs

Hypertext

server

Hypertext

web

Client 1

Client 2

Client 3

Client 4

Wide-bandwidth network

©Ian Sommerville 2000

Software Engineering, 6th edition. Chapter 11

Abstract machine model

●

Used to model the interfacing of sub-systems

●

Organises the system into a set of layers (orabstract machines) each of which provide a set ofservices

●

Supports the incremental development of sub-systems in different layers. When a layer interfacechanges, only the adjacent layer is affected

●

However, often difficult to structure systems inthis way

©Ian Sommerville 2000

Software Engineering, 6th edition. Chapter 11

Version management system

Operating

system

Database system

Object management

Version management

©Ian Sommerville 2000

Software Engineering, 6th edition. Chapter 11

Centralised control

●

A control sub-system takes responsibility formanaging the execution of other sub-systems

●

Call-return model

Top-down subroutine model where control starts at the top of asubroutine hierarchy and moves downwards. Applicable tosequential systems

●

Manager model

Applicable to concurrent systems. One system componentcontrols the stopping, starting and coordination of other systemprocesses. Can be implemented in sequential systems as a casestatement

©Ian Sommerville 2000

Software Engineering, 6th edition. Chapter 11

Call-return model

Routine 1.

Routine 1.

Routine 3.

Routine 3.

Routine 2

Routine 3

Routine 1

Main

program

©Ian Sommerville 2000

Software Engineering, 6th edition. Chapter 11

Event-driven systems

●

Driven by externally generated events where thetiming of the event is outside the control of thesub-systems which process the event

●

Two principal event-driven models

Broadcast models. An event is broadcast to all sub-systems. Anysub-system which can handle the event may do so

Interrupt-driven models. Used in real-time systems whereinterrupts are detected by an interrupt handler and passed tosome other component for processing

●

Other event driven models include spreadsheetsand production systems

©Ian Sommerville 2000

Software Engineering, 6th edition. Chapter 11

Broadcast model

●

Effective in integrating sub-systems on differentcomputers in a network

●

Sub-systems register an interest in specific events.When these occur, control is transferred to thesub-system which can handle the event

●

Control policy is not embedded in the event andmessage handler. Sub-systems decide on eventsof interest to them

●

However, sub-systems don’t know if or when anevent will be handled