Chapter 7 Addressing Design Goals

Size: px
Start display at page:

Download "Chapter 7 Addressing Design Goals"

Transcription

1 Object-Oriented Software Engineering Using UML, Patterns, and Java Chapter 7 Addressing Design Goals Overview System Design I 0. Overview of System Design 1. Design Goals 2. Subsystem Decomposition 3. Refine the subsystem decomposition until all design goals are addressed. System Design II 3. Concurrency 4. Hardware/Software Mapping 5. Persistent Data Management 6. Global Resource Handling and Access Control 7. Software Control 8. Boundary Conditions Bernd Bruegge & Allen H. Dutoit Object-Oriented Software Engineering: Using UML, Patterns, and Java 2

2 Redundancy in the Space Shuttle computer system Unlike previous spacecraft, the space shuttle was designed to be autonomous. the multiple missions be longer and crews larger than on previous Apollo missions. the mission of this shuttle needs to tolerate before abort. many redundant features including a fault-tolerant computer system responsible for guidance, navigation, and altitude control 1) The Saturn rocket (for launching the Apollo spacecraft) used triple modular redundancy for guidance system - three components - the failure of a single component was detected when it produced a different output than the other two. for example, it would not have survived a massive failure, such as, the exposition on Apollo 13. Bernd Bruegge & Allen H. Dutoit Object-Oriented Software Engineering: Using UML, Patterns, and Java 3 The Skylab Space station took a different approach: - the computer systems are duplicated and located at different ends of the station. - when one computer failed, the other will be switched on take over. - whereas a slow switch-over for a space station, (i.e., the space station could loose some altitude before safety), it would not acceptable for the space shuttle, whose computer system was responsible for high-frequency tasks such as guidance during take-off and landing. Bernd Bruegge & Allen H. Dutoit Object-Oriented Software Engineering: Using UML, Patterns, and Java 4

3 The initial requirements By NASA, the Shuttle should be able to expensive two consecutive failures before the mission was aborted. - Five identical computers running the same software, if two individual computers failed, the last three would constitute a triple redundancy system for landing. if the third one failed, the last two would be enough to ensure a safe landing. Bernd Bruegge & Allen H. Dutoit Object-Oriented Software Engineering: Using UML, Patterns, and Java 5 ** Due to cost consideration, NASE later decided to lower its requirement to one failure before mission abort. - Five computers, But fifth computer for a back-up system. - While the quadruple redundancy against H/W failure, it does not increase reliability against software faults, as all four computers run the same software. However, the back-up system runs a simpler version of the software that is only able to guide the shuttle during take-off and landing. How architectural decisions were made during the design of a complex computer system. Driven by design goals and nonfunctional requirements. Bernd Bruegge & Allen H. Dutoit Object-Oriented Software Engineering: Using UML, Patterns, and Java 6

4 The activities of system design that address the design goals. Define design goals Define subsystems Implement subsystems Map subsystems to hardware/ software platform Manage persistent data Define access control policies Select a global control flow Describe boundary conditions Bernd Bruegge & Allen H. Dutoit Object-Oriented Software Engineering: Using UML, Patterns, and Java 7 UML Deployment Diagram Used to depict the relationship among run-time components and hardware nodes. Components are self-contained entities that provide services to other components or actors. Deployment Diagram focuses on the allocation of components to different hardware nodes and provides a high-level view of each component. Components includes information about interfaces they provide and the classes they contain. Bernd Bruegge & Allen H. Dutoit Object-Oriented Software Engineering: Using UML, Patterns, and Java 8

5 A UML deployment diagram representing the allocation of components to different nodes and the dependencies among components. mymac:mac :UnixHost :Safari dependency :WebServer Component apc:pc :UnixHost :IExplorer :Database Bernd Bruegge & Allen H. Dutoit Object-Oriented Software Engineering: Using UML, Patterns, and Java 9 Refined view of the WebServer component. WebServer HttpRequest File Classes URL DBQuery DBResult GET POST Interfaces Bernd Bruegge & Allen H. Dutoit Object-Oriented Software Engineering: Using UML, Patterns, and Java 10

6 7.4 System Design Activities: Addressing Design Goals These activities needed to ensure that subsystem decomposition addresses all the nonfunctional requirements and any constraints during implementation phase. [Section 6.4] for MyTrip -Already identify Design Goals - designed an initial subsystem decomposition. Refine The subsystem decomposition by 1) Mapping Subsystem to Processors and Components (7.4.1) 2) Identifying and Storing Persistent Data (7.4.2) 3) Providing Access Control (7.4.3) 4) Designing the Global Control Flow (7.4.4) 5) Reviewing the System Design Model (7.4.6) Bernd Bruegge & Allen H. Dutoit Object-Oriented Software Engineering: Using UML, Patterns, and Java 11 Analysis Model for the Mytrip route planning and execution RouteAssistant Location Crossing Trip Direction Segment PlanningService Destination Crossing: A Crossing is a geographical point where several Segments meet. Destination: A Destination represents a location where the driver wishes to go. Direction: Given a Crossing and an adjacent Segment, a Direction describes in natural language how to steer the car onto the given Segment. Location: A Location is the position of the car as known by the onboard GPS system the number of turns of the wheels. PlanningService: A PlanningService is a Web server that can supply a trip, linking a number of destinations in the form of a sequence of Crossings and Segments. RouteAssistant: A RouteAssistant givens Directions to the driver, given the current Location and upcoming Crossing. Segment: A Segment represents the road between two Crossings. Trip: A Trip is a sequence of Directions between two Destinations. Bernd Bruegge & Allen H. Dutoit Object-Oriented Software Engineering: Using UML, Patterns, and Java 12

7 Nonfunctional requirements for Myrip 1) MyTrip is in contact with the PlanningService via a wireless modem. Assume that the wireless modem functions properly at the initial destination. 2) Once the trip has been started. Mytrip should give a correct directions even if modem fails to maintain a connection with the PlanningService. 3) MyTrip should minimize connection time to reduce operation costs. 4) Replanning is possible only if the connection to the PlanningService is possible. 5) The PlanningService can support at least 50 different drivers and 1,000trips. Bernd Bruegge & Allen H. Dutoit Object-Oriented Software Engineering: Using UML, Patterns, and Java 13 Design goals for Myrip Reliability: MyTrip should be reliable [generalization of NFR 2] Fault Tolerance: Mytrip should give fault tolerant to loss of connectivity with routing service [rephrased NFR 2] Security: MyTrip should be se cure,i.e., not allow other drivers or nonauthorized uses to access a driver s trips [deduced from application domain] Modifiability: MyTrip should be modifiable to use different routing services [anticipation of change by developers] Bernd Bruegge & Allen H. Dutoit Object-Oriented Software Engineering: Using UML, Patterns, and Java 14

8 Mapping Subsystem to Hardware and Components Selecting a hardware configuration and a platform Allocation objects and subsystem to Hardware Nodes Bernd Bruegge & Allen H. Dutoit Object-Oriented Software Engineering: Using UML, Patterns, and Java 15 Allocation of MyTrip subsystems to hardware. The Web browsers, safari, and Internet explorers as a virtual machine a Unix system as a virtual machine :OnBoardComputer RoutingSubsystem :WebServer PlanningSubsystem (RouingSbusystem runs on the OnBoardComputer; PlanningSubsystem runs on a WebServer.) Bernd Bruegge & Allen H. Dutoit Object-Oriented Software Engineering: Using UML, Patterns, and Java 16

9 Revised design model for MyTrip. RoutingSubsystem PlanningSubsystem RouteAssistant PlanningService Location Trip Destination TripProxy SegmentProxy Add new classes CommunicationSubsystem Crossing Direction Segment Message Connection Add New subsystem for managing the communication between them Bernd Bruegge & Allen H. Dutoit Object-Oriented Software Engineering: Using UML, Patterns, and Java Hardware Software Mapping This activity addresses two questions: How shall we realize the subsystems: Hardware or Software? How is the object model mapped on the chosen hardware & software? Mapping Objects onto Reality: Processor, Memory, Input/Output Mapping Associations onto Reality: Connectivity Much of the difficulty of designing a system comes from meeting externally-imposed hardware and software constraints. Certain tasks have to be at specific locations Bernd Bruegge & Allen H. Dutoit Object-Oriented Software Engineering: Using UML, Patterns, and Java 18

10 Mapping the Objects Processor issues: Is the computation rate too demanding for a single processor? Can we get a speedup by distributing tasks across several processors? How many processors are required to maintain steady state load? Memory issues: Is there enough memory to buffer bursts of requests? I/O issues: Do you need an extra piece of hardware to handle the data generation rate? Does the response time exceed the available communication bandwidth between subsystems or a task and a piece of hardware? Bernd Bruegge & Allen H. Dutoit Object-Oriented Software Engineering: Using UML, Patterns, and Java 19 Mapping the Subsystems Associations: Connectivity Describe the physical connectivity of the hardware Often the physical layer in ISO s OSI Reference Model Which associations in the object model are mapped to physical connections? Which of the client-supplier relationships in the analysis/design model correspond to physical connections? Describe the logical connectivity (subsystem associations) Identify associations that do not directly map into physical connections: How should these associations be implemented? Bernd Bruegge & Allen H. Dutoit Object-Oriented Software Engineering: Using UML, Patterns, and Java 20

11 Typical Informal Example of a Connectivity Drawing Application Client Application Client Application Client Physical Connectivity Logical Connectivity Communication Agent for Application Clients TCP/IP Communication Agent for Application Clients Backbone Network LAN Communication Agent for Data Server Ethernet LAN Global Data Server OODBMS Communication Agent for Data Server Global Data Server LAN RDBMS Local Data Server Global Data Server Bernd Bruegge & Allen H. Dutoit Object-Oriented Software Engineering: Using UML, Patterns, and Java 21 Logical vs Physical Connectivity and the relationship to Subsystem Layering Application Layer Application Layer Presentation Layer Session Layer Transport Layer Bidirectional associations for each layer Presentation Layer Session Layer Transport Layer Logical Connectivity Layers Network Layer Network Layer Data Link Layer Physical Layer Data Link Layer Physical Layer Physical Connectivity Processor 1 Processor 2 Bernd Bruegge & Allen H. Dutoit Object-Oriented Software Engineering: Using UML, Patterns, and Java 22

12 Layer 1 Subsystem 1 Subsystem 2 Layer 2 Layer 3 Layer 4 Layer 1 Layer 2 Layer 3 Application Layer Application Layer Presentation Layer Presentation Layer Session Layer Transport Layer Network Layer Bidirectional associations for each layer Session Layer Transport Layer Network Layer Data Link Layer Data Link Layer Hardware Hardware Processor 1 Processor 2 Bernd Bruegge & Allen H. Dutoit Object-Oriented Software Engineering: Using UML, Patterns, and Java 23 Hardware/Software Mapping Questions What is the connectivity among physical units? Tree, star, matrix, ring What is the appropriate communication protocol between the subsystems? Function of required bandwidth, latency and desired reliability, desired quality of service (QOS) Is certain functionality already available in hardware? Do certain tasks require specific locations to control the hardware or to permit concurrent operation? Often true for embedded systems General system performance question: What is the desired response time? Bernd Bruegge & Allen H. Dutoit Object-Oriented Software Engineering: Using UML, Patterns, and Java 24

13 Connectivity in Distributed Systems If the architecture is distributed, we need to describe the network architecture (communication subsystem) as well. Questions to ask What are the transmission media? (Ethernet, Wireless) What is the Quality of Service (QOS)? What kind of communication protocols can be used? Should the interaction asynchronous, synchronous or blocking? What are the available bandwidth requirements between the subsystems? Stock Price Change -> Broker Icy Road Detector -> ABS System Bernd Bruegge & Allen H. Dutoit Object-Oriented Software Engineering: Using UML, Patterns, and Java 25 Drawing Hardware/Software Mappings in UML System design must model static and dynamic structures: Component Diagrams for static structures show the structure at design time or compilation time Deployment Diagram for dynamic structures show the structure of the run-time system Note the lifetime of components Some exist only at design time Others exist only until compile time Some exist at link or runtime Bernd Bruegge & Allen H. Dutoit Object-Oriented Software Engineering: Using UML, Patterns, and Java 26

14 Identifying and Storing Persistent Objects Identifying persistent objects Selecting a Storage a management strategy Bernd Bruegge & Allen H. Dutoit Object-Oriented Software Engineering: Using UML, Patterns, and Java 27 Subsystem decomposition of MyTrip after deciding on the issue of data stores. RoutingSubsystem PlanningSubsystem CommunicationSubsystem TripFileStoreSubsystem MapDBStoreSubsystem TripFileStoreSubsystem: responsible for storing trips in files on the onboard computer. because this functionality is only used for storing trips when the car shuts down, this subsystem only supports the fast storage and loading of the whole trips. MapDBStoreSubsystem: responsible for storing maps and trips in database for the PlanningSubsystem. This subsystem supports multiple concurrent Drivers and Planning agents Bernd Bruegge & Allen H. Dutoit Object-Oriented Software Engineering: Using UML, Patterns, and Java 28

15 5. Data Management Some objects in the models need to be persistent Provide clean separation points between subsystems with welldefined interfaces. A persistent object can be realized with one of the following Data structure Files Database If the data can be volatile Cheap, simple, permanent storage Low level (Read, Write) Applications must add code to provide suitable level of abstraction Powerful, easy to port Supports multiple writers and readers Bernd Bruegge & Allen H. Dutoit Object-Oriented Software Engineering: Using UML, Patterns, and Java 29 File or Database? When should you choose a file? Are the data voluminous (bit maps)? Do you have lots of raw data (core dump, event trace)? Do you need to keep the data only for a short time? Is the information density low (archival files,history logs)? When should you choose a database? Do the data require access at fine levels of details by multiple users? Must the data be ported across multiple platforms (heterogeneous systems)? Do multiple application programs access the data? Does the data management require a lot of infrastructure? Bernd Bruegge & Allen H. Dutoit Object-Oriented Software Engineering: Using UML, Patterns, and Java 30

16 Database Management System Contains mechanisms for describing data, managing persistent storage and for providing a backup mechanism Provides concurrent access to the stored data Contains information about the data ( meta-data ), also called data schema. Bernd Bruegge & Allen H. Dutoit Object-Oriented Software Engineering: Using UML, Patterns, and Java 31 Issues To Consider When Selecting a Database Storage space Database require about triple the storage space of actual data Response time Mode databases are I/O or communication bound (distributed databases). Response time is also affected by CPU time, locking contention and delays from frequent screen displays Locking modes Pessimistic locking: Lock before accessing object and release when object access is complete Optimistic locking: Reads and writes may freely occur (high concurrency!) When activity has been completed, database checks if contention has occurred. If yes, all work has been lost. Administration Large databases require specially trained support staff to set up security policies, manage the disk space, prepare backups, monitor performance, adjust tuning. Bernd Bruegge & Allen H. Dutoit Object-Oriented Software Engineering: Using UML, Patterns, and Java 32

17 Object-Oriented Databases Support all fundamental object modeling concepts Classes, Attributes, Methods, Associations, Inheritance Mapping an object model to an OO-database Determine which objects are persistent. Perform normal requirement analysis and object design Create single attribute indices to reduce performance bottlenecks Do the mapping (specific to commercially available product). Example: In ObjectStore, implement classes and associations by preparing C++ declarations for each class and each association in the object model Bernd Bruegge & Allen H. Dutoit Object-Oriented Software Engineering: Using UML, Patterns, and Java 33 Relational Databases Based on relational algebra Data is presented as 2-dimensional tables. Tables have a specific number of columns and and arbitrary numbers of rows Primary key: Combination of attributes that uniquely identify a row in a table. Each table should have only one primary key Foreign key: Reference to a primary key in another table SQL is the standard language defining and manipulating tables. Leading commercial databases support constraints. Referential integrity, for example, means that references to entries in other tables actually exist. Bernd Bruegge & Allen H. Dutoit Object-Oriented Software Engineering: Using UML, Patterns, and Java 34

18 Data Management Questions Should the data be distributed? Should the database be extensible? How often is the database accessed? What is the expected request (query) rate? In the worst case? What is the size of typical and worst case requests? Do the data need to be archived? Does the system design try to hide the location of the databases (location transparency)? Is there a need for a single interface to access the data? What is the query format? Should the database be relational or object-oriented? Bernd Bruegge & Allen H. Dutoit Object-Oriented Software Engineering: Using UML, Patterns, and Java Concurrency Identify concurrent threads and address concurrency issues. Design goal: response time, performance. Threads A thread of control is a path through a set of state diagrams on which a single object is active at a time. A thread remains within a state diagram until an object sends an event to another object and waits for another event Thread splitting: Object does a nonblocking send of an event. Bernd Bruegge & Allen H. Dutoit Object-Oriented Software Engineering: Using UML, Patterns, and Java 36

19 Providing Access Control Bernd Bruegge & Allen H. Dutoit Object-Oriented Software Engineering: Using UML, Patterns, and Java 37 Defining Access Control In multi-user systems different actors have access to different functionality and data. During analysis we model these different accesses by associating different use cases with different actors. During system design we model these different accesses by examing the object model by determining which objects are shared among actors. Depending on the security requirements of the system, we also define how actors are authenticated to the system and how selected data in the system should be encrypted. Bernd Bruegge & Allen H. Dutoit Object-Oriented Software Engineering: Using UML, Patterns, and Java 38

20 Access Matrix We model access on classes with an access matrix. The rows of the matrix represents the actors of the system The column represent classes whose access we want to control. Access Right: An entry in the access matrix. It lists the operations that can be executed on instances of the class by the actor. Bernd Bruegge & Allen H. Dutoit Object-Oriented Software Engineering: Using UML, Patterns, and Java 39 Access Matrix Implementations Global access table: Represents explicitly every cell in the matrix as a (actor,class, operation) tuple. Determining if an actor has access to a specific object requires looking up the corresponding tuple. If no such tuple is found, access is denied. Access control list associates a list of (actor,operation) pairs with each class to be accessed. Every time an object is accessed, its access list is checked for the corresponding actor and operation. Example: guest list for a party. A capability associates a (class,operation) pair with an actor. A capability provides an actor to gain control access to an object of the class described in the capability. Example: An invitation card for a party. Which is the right implementation? Bernd Bruegge & Allen H. Dutoit Object-Oriented Software Engineering: Using UML, Patterns, and Java 40

21 Global Resource Questions Does the system need authentication? If yes, what is the authentication scheme? User name and password? Access control list Tickets? Capability-based What is the user interface for authentication? Does the system need a network-wide name server? How is a service known to the rest of the system? At runtime? At compile time? By port? By name? Bernd Bruegge & Allen H. Dutoit Object-Oriented Software Engineering: Using UML, Patterns, and Java Decide on Software Control Choose implicit control (non-procedural, declarative languages) Rule-based systems Logic programming Choose explicit control (procedural languages): Centralized or decentralized Centralized control: Procedure-driven or event-driven Procedure-driven control Control resides within program code. Example: Main program calling procedures of subsystems. Simple, easy to build, hard to maintain (high recompilation costs) Event-driven control Control resides within a dispatcher calling functions via callbacks. Very flexible, good for the design of graphical user interfaces, easy to extend Bernd Bruegge & Allen H. Dutoit Object-Oriented Software Engineering: Using UML, Patterns, and Java 42

22 Concurrency (continued) Two objects are inherently concurrent if they can receive events at the same time without interacting Inherently concurrent objects should be assigned to different threads of control Objects with mutual exclusive activity should be folded into a single thread of control (Why?) Bernd Bruegge & Allen H. Dutoit Object-Oriented Software Engineering: Using UML, Patterns, and Java 43 Concurrency Questions Which objects of the object model are independent? What kinds of threads of control are identifiable? Does the system provide access to multiple users? Can a single request to the system be decomposed into multiple requests? Can these requests be handled in parallel? Bernd Bruegge & Allen H. Dutoit Object-Oriented Software Engineering: Using UML, Patterns, and Java 44

23 Implementing Concurrency Concurrent systems can be implemented on any system that provides physical concurrency (hardware) or logical concurrency (software): Scheduling problem (Operating systems) Bernd Bruegge & Allen H. Dutoit Object-Oriented Software Engineering: Using UML, Patterns, and Java 45 Designing Global Control Flow Bernd Bruegge & Allen H. Dutoit Object-Oriented Software Engineering: Using UML, Patterns, and Java 46

24 Global Resource Questions Does the system need authentication? If yes, what is the authentication scheme? User name and password? Access control list Tickets? Capability-based What is the user interface for authentication? Does the system need a network-wide name server? How is a service known to the rest of the system? At runtime? At compile time? By port? By name? Bernd Bruegge & Allen H. Dutoit Object-Oriented Software Engineering: Using UML, Patterns, and Java Decide on Software Control Choose implicit control (non-procedural, declarative languages) Rule-based systems Logic programming Choose explicit control (procedural languages): Centralized or decentralized Centralized control: Procedure-driven or event-driven Procedure-driven control Control resides within program code. Example: Main program calling procedures of subsystems. Simple, easy to build, hard to maintain (high recompilation costs) Event-driven control Control resides within a dispatcher calling functions via callbacks. Very flexible, good for the design of graphical user interfaces, easy to extend Bernd Bruegge & Allen H. Dutoit Object-Oriented Software Engineering: Using UML, Patterns, and Java 48

25 Event-Driven Control Example: MVC Model-View-Controller Paradigm (Adele Goldberg, Smalltalk 80) :Control Model has changed Update Update Update :View :Model :View :View Bernd Bruegge & Allen H. Dutoit Object-Oriented Software Engineering: Using UML, Patterns, and Java 49 Software Control (continued) Decentralized control Control resides in several independent objects. Possible speedup by mapping the objects on different processors, increased communication overhead. Example: Message based system. Bernd Bruegge & Allen H. Dutoit Object-Oriented Software Engineering: Using UML, Patterns, and Java 50

26 Centralized vs. Decentralized Designs Should you use a centralized or decentralized design? Take the sequence diagrams and control objects from the analysis model Check the participation of the control objects in the sequence diagrams If sequence diagram looks more like a fork: Centralized design The sequence diagram looks more like a stair: Decentralized design Centralized Design One control object or subsystem ("spider") controls everything Pro: Change in the control structure is very easy Con: The single conctrol ojbect is a possible performance bottleneck Decentralized Design Not a single object is in control, control is distributed, That means, there is more than one control object Con: The responsibility is spread out Pro: Fits nicely into object-oriented development Bernd Bruegge & Allen H. Dutoit Object-Oriented Software Engineering: Using UML, Patterns, and Java 51 Identifying Boundary Conditions Bernd Bruegge & Allen H. Dutoit Object-Oriented Software Engineering: Using UML, Patterns, and Java 52

27 8. Boundary Conditions Most of the system design effort is concerned with steady-state behavior. However, the system design phase must also address the initiation and finalization of the system. This is addressed by a set of new uses cases called administration use cases Initialization Describes how the system is brought from an non initialized state to steady-state ("startup use cases ). Termination Describes what resources are cleaned up and which systems are notified upon termination ("termination use cases"). Failure Many possible causes: Bugs, errors, external problems (power supply). Good system design foresees fatal failures ( failure use cases ). Bernd Bruegge & Allen H. Dutoit Object-Oriented Software Engineering: Using UML, Patterns, and Java 53 Example: Administrative Use cases for MyTrip Administration use cases for MyTrip (UML use case diagram). An additional subsystems that was found during system design is the server. For this new subsystem we need to define use cases. ManageServer includes all the functions necessary to start up and shutdown the server. Bernd Bruegge & Allen H. Dutoit Object-Oriented Software Engineering: Using UML, Patterns, and Java 54

28 ManageServer Use Case <<include>> PlanningService Administrator <<include>> StartServer ManageServer ShutdownServer <<include>> ConfigureServer Bernd Bruegge & Allen H. Dutoit Object-Oriented Software Engineering: Using UML, Patterns, and Java 55 Boundary Condition Questions 8.1 Initialization How does the system start up? What data need to be accessed at startup time? What services have to registered? What does the user interface do at start up time? 8.2 Termination How does it present itself to the user? Are single subsystems allowed to terminate? Are other subsystems notified if a single subsystem terminates? How are local updates communicated to the database? 8.3 Failure How does the system behave when a node or communication link fails? Are there backup communication links? How does the system recover from failure? Is this different from initialization? Bernd Bruegge & Allen H. Dutoit Object-Oriented Software Engineering: Using UML, Patterns, and Java 56

29 Modeling Boundary Conditions Boundary conditions are best modeled as use cases with actors and objects. Actor: often the system administrator Interesting use cases: Start up of a subsystem Start up of the full system Termination of a subsystem Error in a subystem or component, failure of a subsystem or component Task: Model the startup of the ARENA system as a set of use cases. Bernd Bruegge & Allen H. Dutoit Object-Oriented Software Engineering: Using UML, Patterns, and Java Hardware Software Mapping This activity addresses two questions: How shall we realize the subsystems: Hardware or Software? How is the object model mapped on the chosen hardware & software? Mapping Objects onto Reality: Processor, Memory, Input/Output Mapping Associations onto Reality: Connectivity Much of the difficulty of designing a system comes from meeting externally-imposed hardware and software constraints. Certain tasks have to be at specific locations Bernd Bruegge & Allen H. Dutoit Object-Oriented Software Engineering: Using UML, Patterns, and Java 58

30 Mapping the Objects Processor issues: Is the computation rate too demanding for a single processor? Can we get a speedup by distributing tasks across several processors? How many processors are required to maintain steady state load? Memory issues: Is there enough memory to buffer bursts of requests? I/O issues: Do you need an extra piece of hardware to handle the data generation rate? Does the response time exceed the available communication bandwidth between subsystems or a task and a piece of hardware? Bernd Bruegge & Allen H. Dutoit Object-Oriented Software Engineering: Using UML, Patterns, and Java 59 Mapping the Subsystems Associations: Connectivity Describe the physical connectivity of the hardware Often the physical layer in ISO s OSI Reference Model Which associations in the object model are mapped to physical connections? Which of the client-supplier relationships in the analysis/design model correspond to physical connections? Describe the logical connectivity (subsystem associations) Identify associations that do not directly map into physical connections: How should these associations be implemented? Bernd Bruegge & Allen H. Dutoit Object-Oriented Software Engineering: Using UML, Patterns, and Java 60

31 Typical Informal Example of a Connectivity Drawing Application Client Application Client Application Client Physical Connectivity Logical Connectivity Communication Agent for Application Clients TCP/IP Communication Agent for Application Clients Backbone Network LAN Communication Agent for Data Server Ethernet LAN Global Data Server OODBMS Communication Agent for Data Server Global Data Server LAN RDBMS Local Data Server Global Data Server Bernd Bruegge & Allen H. Dutoit Object-Oriented Software Engineering: Using UML, Patterns, and Java 61 Logical vs Physical Connectivity and the relationship to Subsystem Layering Application Layer Application Layer Presentation Layer Session Layer Transport Layer Bidirectional associations for each layer Presentation Layer Session Layer Transport Layer Logical Connectivity Layers Network Layer Network Layer Data Link Layer Physical Layer Data Link Layer Physical Layer Physical Connectivity Processor 1 Processor 2 Bernd Bruegge & Allen H. Dutoit Object-Oriented Software Engineering: Using UML, Patterns, and Java 62

32 Layer 1 Subsystem 1 Subsystem 2 Layer 2 Layer 3 Layer 4 Layer 1 Layer 2 Layer 3 Application Layer Application Layer Presentation Layer Presentation Layer Session Layer Transport Layer Network Layer Bidirectional associations for each layer Session Layer Transport Layer Network Layer Data Link Layer Data Link Layer Hardware Hardware Processor 1 Processor 2 Bernd Bruegge & Allen H. Dutoit Object-Oriented Software Engineering: Using UML, Patterns, and Java 63 Hardware/Software Mapping Questions What is the connectivity among physical units? Tree, star, matrix, ring What is the appropriate communication protocol between the subsystems? Function of required bandwidth, latency and desired reliability, desired quality of service (QOS) Is certain functionality already available in hardware? Do certain tasks require specific locations to control the hardware or to permit concurrent operation? Often true for embedded systems General system performance question: What is the desired response time? Bernd Bruegge & Allen H. Dutoit Object-Oriented Software Engineering: Using UML, Patterns, and Java 64

33 Connectivity in Distributed Systems If the architecture is distributed, we need to describe the network architecture (communication subsystem) as well. Questions to ask What are the transmission media? (Ethernet, Wireless) What is the Quality of Service (QOS)? What kind of communication protocols can be used? Should the interaction asynchronous, synchronous or blocking? What are the available bandwidth requirements between the subsystems? Stock Price Change -> Broker Icy Road Detector -> ABS System Bernd Bruegge & Allen H. Dutoit Object-Oriented Software Engineering: Using UML, Patterns, and Java 65 Drawing Hardware/Software Mappings in UML System design must model static and dynamic structures: Component Diagrams for static structures show the structure at design time or compilation time Deployment Diagram for dynamic structures show the structure of the run-time system Note the lifetime of components Some exist only at design time Others exist only until compile time Some exist at link or runtime Bernd Bruegge & Allen H. Dutoit Object-Oriented Software Engineering: Using UML, Patterns, and Java 66

34 Component Diagram Component Diagram A graph of components connected by dependency relationships. Shows the dependencies among software components source code, linkable libraries, executables Dependencies are shown as dashed arrows from the client component to the supplier component. The kinds of dependencies are implementation language specific. A component diagram may also be used to show dependencies on a façade: Use dashed arrow the corresponding UML interface. Bernd Bruegge & Allen H. Dutoit Object-Oriented Software Engineering: Using UML, Patterns, and Java 67 Component Diagram Example Scheduler reservations UML Component UML Interface Planner update GUI Bernd Bruegge & Allen H. Dutoit Object-Oriented Software Engineering: Using UML, Patterns, and Java 68

35 Deployment Diagram Deployment diagrams are useful for showing a system design after the following decisions are made Subsystem decomposition Concurrency Hardware/Software Mapping A deployment diagram is a graph of nodes connected by communication associations. Nodes are shown as 3-D boxes. Nodes may contain component instances. Components may contain objects (indicating that the object is part of the component) Bernd Bruegge & Allen H. Dutoit Object-Oriented Software Engineering: Using UML, Patterns, and Java 69 Deployment Diagram Example Compile Time Dependency :HostMachine <<database>> meetingsdb :Scheduler Runtime Dependency :PC :Planner Bernd Bruegge & Allen H. Dutoit Object-Oriented Software Engineering: Using UML, Patterns, and Java 70

36 5. Data Management Some objects in the models need to be persistent Provide clean separation points between subsystems with welldefined interfaces. A persistent object can be realized with one of the following Data structure Files Database If the data can be volatile Cheap, simple, permanent storage Low level (Read, Write) Applications must add code to provide suitable level of abstraction Powerful, easy to port Supports multiple writers and readers Bernd Bruegge & Allen H. Dutoit Object-Oriented Software Engineering: Using UML, Patterns, and Java 71 File or Database? When should you choose a file? Are the data voluminous (bit maps)? Do you have lots of raw data (core dump, event trace)? Do you need to keep the data only for a short time? Is the information density low (archival files,history logs)? When should you choose a database? Do the data require access at fine levels of details by multiple users? Must the data be ported across multiple platforms (heterogeneous systems)? Do multiple application programs access the data? Does the data management require a lot of infrastructure? Bernd Bruegge & Allen H. Dutoit Object-Oriented Software Engineering: Using UML, Patterns, and Java 72

37 Database Management System Contains mechanisms for describing data, managing persistent storage and for providing a backup mechanism Provides concurrent access to the stored data Contains information about the data ( meta-data ), also called data schema. Bernd Bruegge & Allen H. Dutoit Object-Oriented Software Engineering: Using UML, Patterns, and Java 73 Issues To Consider When Selecting a Database Storage space Database require about triple the storage space of actual data Response time Mode databases are I/O or communication bound (distributed databases). Response time is also affected by CPU time, locking contention and delays from frequent screen displays Locking modes Pessimistic locking: Lock before accessing object and release when object access is complete Optimistic locking: Reads and writes may freely occur (high concurrency!) When activity has been completed, database checks if contention has occurred. If yes, all work has been lost. Administration Large databases require specially trained support staff to set up security policies, manage the disk space, prepare backups, monitor performance, adjust tuning. Bernd Bruegge & Allen H. Dutoit Object-Oriented Software Engineering: Using UML, Patterns, and Java 74

38 Object-Oriented Databases Support all fundamental object modeling concepts Classes, Attributes, Methods, Associations, Inheritance Mapping an object model to an OO-database Determine which objects are persistent. Perform normal requirement analysis and object design Create single attribute indices to reduce performance bottlenecks Do the mapping (specific to commercially available product). Example: In ObjectStore, implement classes and associations by preparing C++ declarations for each class and each association in the object model Bernd Bruegge & Allen H. Dutoit Object-Oriented Software Engineering: Using UML, Patterns, and Java 75 Relational Databases Based on relational algebra Data is presented as 2-dimensional tables. Tables have a specific number of columns and and arbitrary numbers of rows Primary key: Combination of attributes that uniquely identify a row in a table. Each table should have only one primary key Foreign key: Reference to a primary key in another table SQL is the standard language defining and manipulating tables. Leading commercial databases support constraints. Referential integrity, for example, means that references to entries in other tables actually exist. Bernd Bruegge & Allen H. Dutoit Object-Oriented Software Engineering: Using UML, Patterns, and Java 76

39 Data Management Questions Should the data be distributed? Should the database be extensible? How often is the database accessed? What is the expected request (query) rate? In the worst case? What is the size of typical and worst case requests? Do the data need to be archived? Does the system design try to hide the location of the databases (location transparency)? Is there a need for a single interface to access the data? What is the query format? Should the database be relational or object-oriented? Bernd Bruegge & Allen H. Dutoit Object-Oriented Software Engineering: Using UML, Patterns, and Java Global Resource Handling Discusses access control Describes access rights for different classes of actors Describes how object guard against unauthorized access Bernd Bruegge & Allen H. Dutoit Object-Oriented Software Engineering: Using UML, Patterns, and Java 78

40 Defining Access Control In multi-user systems different actors have access to different functionality and data. During analysis we model these different accesses by associating different use cases with different actors. During system design we model these different accesses by examing the object model by determining which objects are shared among actors. Depending on the security requirements of the system, we also define how actors are authenticated to the system and how selected data in the system should be encrypted. Bernd Bruegge & Allen H. Dutoit Object-Oriented Software Engineering: Using UML, Patterns, and Java 79 Access Matrix We model access on classes with an access matrix. The rows of the matrix represents the actors of the system The column represent classes whose access we want to control. Access Right: An entry in the access matrix. It lists the operations that can be executed on instances of the class by the actor. Bernd Bruegge & Allen H. Dutoit Object-Oriented Software Engineering: Using UML, Patterns, and Java 80

41 Access Matrix Implementations Global access table: Represents explicitly every cell in the matrix as a (actor,class, operation) tuple. Determining if an actor has access to a specific object requires looking up the corresponding tuple. If no such tuple is found, access is denied. Access control list associates a list of (actor,operation) pairs with each class to be accessed. Every time an object is accessed, its access list is checked for the corresponding actor and operation. Example: guest list for a party. A capability associates a (class,operation) pair with an actor. A capability provides an actor to gain control access to an object of the class described in the capability. Example: An invitation card for a party. Which is the right implementation? Bernd Bruegge & Allen H. Dutoit Object-Oriented Software Engineering: Using UML, Patterns, and Java 81 Global Resource Questions Does the system need authentication? If yes, what is the authentication scheme? User name and password? Access control list Tickets? Capability-based What is the user interface for authentication? Does the system need a network-wide name server? How is a service known to the rest of the system? At runtime? At compile time? By port? By name? Bernd Bruegge & Allen H. Dutoit Object-Oriented Software Engineering: Using UML, Patterns, and Java 82

42 7. Decide on Software Control Choose implicit control (non-procedural, declarative languages) Rule-based systems Logic programming Choose explicit control (procedural languages): Centralized or decentralized Centralized control: Procedure-driven or event-driven Procedure-driven control Control resides within program code. Example: Main program calling procedures of subsystems. Simple, easy to build, hard to maintain (high recompilation costs) Event-driven control Control resides within a dispatcher calling functions via callbacks. Very flexible, good for the design of graphical user interfaces, easy to extend Bernd Bruegge & Allen H. Dutoit Object-Oriented Software Engineering: Using UML, Patterns, and Java 83 Event-Driven Control Example: MVC Model-View-Controller Paradigm (Adele Goldberg, Smalltalk 80) :Control Model has changed Update Update Update :View :Model :View :View Bernd Bruegge & Allen H. Dutoit Object-Oriented Software Engineering: Using UML, Patterns, and Java 84

43 Software Control (continued) Decentralized control Control resides in several independent objects. Possible speedup by mapping the objects on different processors, increased communication overhead. Example: Message based system. Bernd Bruegge & Allen H. Dutoit Object-Oriented Software Engineering: Using UML, Patterns, and Java 85 Centralized vs. Decentralized Designs Should you use a centralized or decentralized design? Take the sequence diagrams and control objects from the analysis model Check the participation of the control objects in the sequence diagrams If sequence diagram looks more like a fork: Centralized design The sequence diagram looks more like a stair: Decentralized design Centralized Design One control object or subsystem ("spider") controls everything Pro: Change in the control structure is very easy Con: The single conctrol ojbect is a possible performance bottleneck Decentralized Design Not a single object is in control, control is distributed, That means, there is more than one control object Con: The responsibility is spread out Pro: Fits nicely into object-oriented development Bernd Bruegge & Allen H. Dutoit Object-Oriented Software Engineering: Using UML, Patterns, and Java 86

44 8. Boundary Conditions Most of the system design effort is concerned with steady-state behavior. However, the system design phase must also address the initiation and finalization of the system. This is addressed by a set of new uses cases called administration use cases Initialization Describes how the system is brought from an non initialized state to steady-state ("startup use cases ). Termination Describes what resources are cleaned up and which systems are notified upon termination ("termination use cases"). Failure Many possible causes: Bugs, errors, external problems (power supply). Good system design foresees fatal failures ( failure use cases ). Bernd Bruegge & Allen H. Dutoit Object-Oriented Software Engineering: Using UML, Patterns, and Java 87 Example: Administrative Use cases for MyTrip Administration use cases for MyTrip (UML use case diagram). An additional subsystems that was found during system design is the server. For this new subsystem we need to define use cases. ManageServer includes all the functions necessary to start up and shutdown the server. Bernd Bruegge & Allen H. Dutoit Object-Oriented Software Engineering: Using UML, Patterns, and Java 88

45 ManageServer Use Case <<include>> PlanningService Administrator <<include>> StartServer ManageServer ShutdownServer <<include>> ConfigureServer Bernd Bruegge & Allen H. Dutoit Object-Oriented Software Engineering: Using UML, Patterns, and Java 89 Boundary Condition Questions 8.1 Initialization How does the system start up? What data need to be accessed at startup time? What services have to registered? What does the user interface do at start up time? 8.2 Termination How does it present itself to the user? Are single subsystems allowed to terminate? Are other subsystems notified if a single subsystem terminates? How are local updates communicated to the database? 8.3 Failure How does the system behave when a node or communication link fails? Are there backup communication links? How does the system recover from failure? Is this different from initialization? Bernd Bruegge & Allen H. Dutoit Object-Oriented Software Engineering: Using UML, Patterns, and Java 90

46 Modeling Boundary Conditions Boundary conditions are best modeled as use cases with actors and objects. Actor: often the system administrator Interesting use cases: Start up of a subsystem Start up of the full system Termination of a subsystem Error in a subystem or component, failure of a subsystem or component Task: Model the startup of the ARENA system as a set of use cases. Bernd Bruegge & Allen H. Dutoit Object-Oriented Software Engineering: Using UML, Patterns, and Java 91 Summary In this lecture, we reviewed the activities of system design : Concurrency identification Hardware/Software mapping Persistent data management Global resource handling Software control selection Boundary conditions Each of these activities revises the subsystem decomposition to address a specific issue. Once these activities are completed, the interface of the subsystems can be defined. Bernd Bruegge & Allen H. Dutoit Object-Oriented Software Engineering: Using UML, Patterns, and Java 92

7. System Design: Addressing Design Goals

7. System Design: Addressing Design Goals 7. System Design: Addressing Design Goals Outline! Overview! UML Component Diagram and Deployment Diagram! Hardware Software Mapping! Data Management! Global Resource Handling and Access Control! Software

More information

Chapter 6, System Design Lecture 2

Chapter 6, System Design Lecture 2 Object-Oriented Software Engineering Conquering Complex and Changing Systems Chapter 6, System Design Lecture 2 Preliminaries Guest lectures December 15: Andersen Consulting December 22: Viant January

More information

Chapter 7, System Design: Addressing Design Goals

Chapter 7, System Design: Addressing Design Goals Object-Oriented Software Engineering Using UML, Patterns, and Java Chapter 7, System Design: Addressing Design Goals Overview System Design I ü 0. Overview of System Design ü 1. Design Goals ü 2. Subsystem

More information

Chapter 7, System Design: Addressing Design Goals

Chapter 7, System Design: Addressing Design Goals Object-Oriented Software Engineering Using UML, Patterns, and Java Chapter 7, System Design: Addressing Design Goals Overview System Design I ü 0. Overview of System Design ü 1. Design Goals ü 2. Subsystem

More information

Chapter 7, System Design: Addressing Design Goals

Chapter 7, System Design: Addressing Design Goals Object-Oriented Software Engineering Using UML, Patterns, and Java Chapter 7, System Design: Addressing Design Goals Overview System Design I ü 0. Overview of System Design ü 1. Design Goals ü 2. Subsystem

More information

Chapter 7, System Design: II Addressing Design Goals

Chapter 7, System Design: II Addressing Design Goals Chapter 7, System Design: II Addressing Design Goals Overview System Design I 0. Overview of System Design 1. Design Goals 2. Subsystem Decomposition Architectural Styles System Design II 3. Concurrency

More information

Software Engineering (CSC 4350/6350) Rao Casturi

Software Engineering (CSC 4350/6350) Rao Casturi Software Engineering (CSC 4350/6350) Rao Casturi Recap 1 to 5 Chapters 1. UML Notation 1. Use Case 2. Class Diagrams 3. Interaction or Sequence Diagrams 4. Machine or State Diagrams 5. Activity Diagrams

More information

Sub Phase: High-Level Design. From Requirements Analysis to User Manual. System Design

Sub Phase: High-Level Design. From Requirements Analysis to User Manual. System Design Sub Phase: High-Level Design 1 From Requirements Analysis to User Manual System Design 2 1 Map of design phase HIGH LEVEL DESIGN Module Interfaces Modularization architecture DESIGN Data Persistance Subsystem

More information

Object-Oriented Software Engineering Conquering Complex and Changing Systems. Chapter 6, System Design Lecture 1

Object-Oriented Software Engineering Conquering Complex and Changing Systems. Chapter 6, System Design Lecture 1 Object-Oriented Software Engineering Conquering Complex and Changing Systems Chapter 6, System Design Lecture 1 Design There are two ways of constructing a software design: One way is to make it so simple

More information

Chapter 6 System Design: Decomposing the System

Chapter 6 System Design: Decomposing the System Using UML, Patterns, and Java Object-Oriented Software Engineering Chapter 6 System Design: Decomposing the System Requirements Elicitation & Analysis results in; Non-functional requirements and constraints

More information

02 - Distributed Systems

02 - Distributed Systems 02 - Distributed Systems Definition Coulouris 1 (Dis)advantages Coulouris 2 Challenges Saltzer_84.pdf Models Physical Architectural Fundamental 2/58 Definition Distributed Systems Distributed System is

More information

02 - Distributed Systems

02 - Distributed Systems 02 - Distributed Systems Definition Coulouris 1 (Dis)advantages Coulouris 2 Challenges Saltzer_84.pdf Models Physical Architectural Fundamental 2/60 Definition Distributed Systems Distributed System is

More information

Chapter 5, Analysis: Dynamic Modeling

Chapter 5, Analysis: Dynamic Modeling Using UML, Patterns, and Java Object-Oriented Software Engineering Chapter 5, Analysis: Dynamic Modeling An overview of OOSE development activities and their products Problem Statement Requirements Elicitation

More information

ASSIGNMENT- I Topic: Functional Modeling, System Design, Object Design. Submitted by, Roll Numbers:-49-70

ASSIGNMENT- I Topic: Functional Modeling, System Design, Object Design. Submitted by, Roll Numbers:-49-70 ASSIGNMENT- I Topic: Functional Modeling, System Design, Object Design Submitted by, Roll Numbers:-49-70 Functional Models The functional model specifies the results of a computation without specifying

More information

Creating and Analyzing Software Architecture

Creating and Analyzing Software Architecture Creating and Analyzing Software Architecture Dr. Igor Ivkovic iivkovic@uwaterloo.ca [with material from Software Architecture: Foundations, Theory, and Practice, by Taylor, Medvidovic, and Dashofy, published

More information

Database Architectures

Database Architectures Database Architectures CPS352: Database Systems Simon Miner Gordon College Last Revised: 4/15/15 Agenda Check-in Parallelism and Distributed Databases Technology Research Project Introduction to NoSQL

More information

5/9/2014. Recall the design process. Lecture 1. Establishing the overall structureof a software system. Topics covered

5/9/2014. Recall the design process. Lecture 1. Establishing the overall structureof a software system. Topics covered Topics covered Chapter 6 Architectural Design Architectural design decisions Architectural views Architectural patterns Application architectures Lecture 1 1 2 Software architecture The design process

More information

Chapter 1: Distributed Systems: What is a distributed system? Fall 2013

Chapter 1: Distributed Systems: What is a distributed system? Fall 2013 Chapter 1: Distributed Systems: What is a distributed system? Fall 2013 Course Goals and Content n Distributed systems and their: n Basic concepts n Main issues, problems, and solutions n Structured and

More information

System Design I: System Decomposition

System Design I: System Decomposition Object-Oriented Software Engineering Using UML, Patterns, and Java System Design I: System Decomposition Why is Design so Difficult? Analysis: Focuses on the application domain Design: Focuses on the solution

More information

Software Engineering (CSC 4350/6350) Rao Casturi

Software Engineering (CSC 4350/6350) Rao Casturi Software Engineering (CSC 4350/6350) Rao Casturi Testing Software Engineering -CSC4350/6350 - Rao Casturi 2 Testing What is testing? Process of finding the divergence between the expected behavior of the

More information

6. System Design: Decomposing the System

6. System Design: Decomposing the System 6. System Design: Decomposing the System Outline! Design! System Design Activities! Determine Design Goals! System Design Concepts! Software Architecture Pattern 1. Design Software Engineering 1.1 Design

More information

Software Engineering Fall 2015 (CSC 4350/6350) TR. 5:30 pm 7:15 pm. Rao Casturi 11/10/2015

Software Engineering Fall 2015 (CSC 4350/6350) TR. 5:30 pm 7:15 pm. Rao Casturi 11/10/2015 Software Engineering Fall 2015 (CSC 4350/6350) TR. 5:30 pm 7:15 pm Rao Casturi 11/10/2015 http://cs.gsu.edu/~ncasturi1 Class announcements Final Exam date - Dec 1 st. Final Presentations Dec 3 rd. And

More information

Assignment 5. Georgia Koloniari

Assignment 5. Georgia Koloniari Assignment 5 Georgia Koloniari 2. "Peer-to-Peer Computing" 1. What is the definition of a p2p system given by the authors in sec 1? Compare it with at least one of the definitions surveyed in the last

More information

Silberschatz and Galvin Chapter 15

Silberschatz and Galvin Chapter 15 Silberschatz and Galvin Chapter 15 Network Structures CPSC 410--Richard Furuta 3/30/99 1 Chapter Topics Background and motivation Network topologies Network types Communication issues Network design strategies

More information

Software Engineering Fall 2014

Software Engineering Fall 2014 Software Engineering Fall 2014 (CSC 4350/6350) Mon.- Wed. 5:30 pm 7:15 pm ALC : 107 Rao Casturi 11/10/2014 Final Exam date - Dec 10 th? Class announcements Final Presentations Dec 3 rd. And Dec 8 th. Ability

More information

Datacenter replication solution with quasardb

Datacenter replication solution with quasardb Datacenter replication solution with quasardb Technical positioning paper April 2017 Release v1.3 www.quasardb.net Contact: sales@quasardb.net Quasardb A datacenter survival guide quasardb INTRODUCTION

More information

MSc programme (induction week) Department of Informatics INTRODUCTION TO UML

MSc programme (induction week) Department of Informatics INTRODUCTION TO UML MSc programme (induction week) Department of Informatics INTRODUCTION TO UML Some of this material is based on Bernd Bruegge and Allen H. Dutoit (2009) Object-Oriented Software Engineering: Using UML,

More information

Products of Requirements elicitation and analysis. Chapter 6: System design: decomposing the system

Products of Requirements elicitation and analysis. Chapter 6: System design: decomposing the system Products of Requirements elicitation and analysis Chapter 6: System design: decomposing the system Requirements! elicitation! Requirements! Specification! nonfunctional! requirements! functional! model!

More information

Software Engineering Fall 2015 (CSC 4350/6350) TR. 5:30 pm 7:15 pm. Rao Casturi 09/29/2015

Software Engineering Fall 2015 (CSC 4350/6350) TR. 5:30 pm 7:15 pm. Rao Casturi 09/29/2015 Software Engineering Fall 2015 (CSC 4350/6350) TR. 5:30 pm 7:15 pm Rao Casturi 09/29/2015 http://cs.gsu.edu/~ncasturi1 Class Announcements Grading is done for the Deliverable #2 (Requirement Elicitation)

More information

An Introduction to Software Architecture

An Introduction to Software Architecture An Introduction to Software Architecture Software Requirements and Design CITS 4401 Lecture 11 Motivation for studying SW architecture As the size of SW systems increase, the algorithms and data structures

More information

Module 15: Network Structures

Module 15: Network Structures Module 15: Network Structures Background Topology Network Types Communication Communication Protocol Robustness Design Strategies 15.1 A Distributed System 15.2 Motivation Resource sharing sharing and

More information

Chapter 5, Analysis: Dynamic Modeling

Chapter 5, Analysis: Dynamic Modeling Object-Oriented Software Engineering Using UML, Patterns, and Java Chapter 5, Analysis: Dynamic Modeling ü Requirements Elicitation (Ch.4) ü Introduction (Ch 1-3) OOSE- Galaxy ü Nonfunctional Requirements

More information

Chapter 2, lecture 2 Modeling with UML

Chapter 2, lecture 2 Modeling with UML Object-Oriented Software Engineering Using UML, Patterns, and Java Chapter 2, lecture 2 Modeling with UML Overview: More detail on modeling with UML Use case diagrams Class diagrams Sequence diagrams Activity

More information

CAS 703 Software Design

CAS 703 Software Design Dr. Ridha Khedri Department of Computing and Software, McMaster University Canada L8S 4L7, Hamilton, Ontario Acknowledgments: Material based on Software by Tao et al. (Chapters 9 and 10) (SOA) 1 Interaction

More information

E-Commerce. Infrastructure I: Computer Networks

E-Commerce. Infrastructure I: Computer Networks E-Commerce Infrastructure I: Computer Networks Almost all computers today are networked or part of a distributed system. I will provide an overview of networking and a basic description of network technology.

More information

Architectural Design. Topics covered. Architectural Design. Software architecture. Recall the design process

Architectural Design. Topics covered. Architectural Design. Software architecture. Recall the design process Architectural Design Objectives To introduce architectural design and to discuss its importance To explain the architectural design decisions that have to be made To introduce three complementary architectural

More information

Topic : Object Oriented Design Principles

Topic : Object Oriented Design Principles Topic : Object Oriented Design Principles Software Engineering Faculty of Computing Universiti Teknologi Malaysia Objectives Describe the differences between requirements activities and design activities

More information

CLIENT SERVER ARCHITECTURE:

CLIENT SERVER ARCHITECTURE: CLIENT SERVER ARCHITECTURE: Client-Server architecture is an architectural deployment style that describe the separation of functionality into layers with each segment being a tier that can be located

More information

Chapter 5, Analysis: Dynamic Modeling

Chapter 5, Analysis: Dynamic Modeling Object-Oriented Software Engineering Using UML, Patterns, and Java Chapter 5, Analysis: Dynamic Modeling ü Requirements Elicitation (Ch.4) ü Introduction (Ch 1-3) OOSE- Galaxy ü Nonfunctional Requirements

More information

Distributed System Chapter 16 Issues in ch 17, ch 18

Distributed System Chapter 16 Issues in ch 17, ch 18 Distributed System Chapter 16 Issues in ch 17, ch 18 1 Chapter 16: Distributed System Structures! Motivation! Types of Network-Based Operating Systems! Network Structure! Network Topology! Communication

More information

Module 1 - Distributed System Architectures & Models

Module 1 - Distributed System Architectures & Models Module 1 - Distributed System Architectures & Models System Architecture Defines the structure of the system components identified functions of each component defined interrelationships and interactions

More information

Software Engineering Fall 2015 (CSC 4350/6350) TR. 5:30 pm 7:15 pm. Rao Casturi 09/17/2015

Software Engineering Fall 2015 (CSC 4350/6350) TR. 5:30 pm 7:15 pm. Rao Casturi 09/17/2015 Software Engineering Fall 2015 (CSC 4350/6350) TR. 5:30 pm 7:15 pm Rao Casturi 09/17/2015 http://cs.gsu.edu/~ncasturi1 Requirement Elicitation 2 Requirement Engineering First step for understanding the

More information

SENIOR DESIGN PROJECT. Project name: Sharewood. High-Level Design Report. Project Group Member Names: Merve Sezer. Evrim Şay.

SENIOR DESIGN PROJECT. Project name: Sharewood. High-Level Design Report. Project Group Member Names: Merve Sezer. Evrim Şay. SENIOR DESIGN PROJECT Project name: Sharewood High-Level Design Report Project Group Member Names: Merve Sezer Evrim Şay Doğancan Yarka Oğulcan Söyler N. Doğukan Erkınay Supervisor: H. Altay Güvenir Jury

More information

Architectural Design

Architectural Design Architectural Design Topics i. Architectural design decisions ii. Architectural views iii. Architectural patterns iv. Application architectures Chapter 6 Architectural design 2 PART 1 ARCHITECTURAL DESIGN

More information

Chapter 17: Distributed Systems (DS)

Chapter 17: Distributed Systems (DS) Chapter 17: Distributed Systems (DS) Silberschatz, Galvin and Gagne 2013 Chapter 17: Distributed Systems Advantages of Distributed Systems Types of Network-Based Operating Systems Network Structure Communication

More information

Enterprise Integration Patterns: Designing, Building, and Deploying Messaging Solutions

Enterprise Integration Patterns: Designing, Building, and Deploying Messaging Solutions Enterprise Integration Patterns: Designing, Building, and Deploying Messaging Solutions Chapter 1: Solving Integration Problems Using Patterns 2 Introduction The Need for Integration Integration Challenges

More information

B.H.GARDI COLLEGE OF MASTER OF COMPUTER APPLICATION. Ch. 1 :- Introduction Database Management System - 1

B.H.GARDI COLLEGE OF MASTER OF COMPUTER APPLICATION. Ch. 1 :- Introduction Database Management System - 1 Basic Concepts :- 1. What is Data? Data is a collection of facts from which conclusion may be drawn. In computer science, data is anything in a form suitable for use with a computer. Data is often distinguished

More information

Configuring the Oracle Network Environment. Copyright 2009, Oracle. All rights reserved.

Configuring the Oracle Network Environment. Copyright 2009, Oracle. All rights reserved. Configuring the Oracle Network Environment Objectives After completing this lesson, you should be able to: Use Enterprise Manager to: Create additional listeners Create Oracle Net Service aliases Configure

More information

Page 1. Dynamic Modeling. How do you find classes? Dynamic Modeling with UML. UML Interaction Diagrams. UML State Chart Diagram.

Page 1. Dynamic Modeling. How do you find classes? Dynamic Modeling with UML. UML Interaction Diagrams. UML State Chart Diagram. Dynamic Modeling How do you find classes? We have already established several sources for class identification: Application domain analysis: We find classes by talking to the client and identify abstractions

More information

Distributed KIDS Labs 1

Distributed KIDS Labs 1 Distributed Databases @ KIDS Labs 1 Distributed Database System A distributed database system consists of loosely coupled sites that share no physical component Appears to user as a single system Database

More information

Client Server & Distributed System. A Basic Introduction

Client Server & Distributed System. A Basic Introduction Client Server & Distributed System A Basic Introduction 1 Client Server Architecture A network architecture in which each computer or process on the network is either a client or a server. Source: http://webopedia.lycos.com

More information

Lecture 23 Database System Architectures

Lecture 23 Database System Architectures CMSC 461, Database Management Systems Spring 2018 Lecture 23 Database System Architectures These slides are based on Database System Concepts 6 th edition book (whereas some quotes and figures are used

More information

Software Architecture Patterns

Software Architecture Patterns Software Architecture Patterns *based on a tutorial of Michael Stal Harald Gall University of Zurich http://seal.ifi.uzh.ch/ase www.infosys.tuwien.ac.at Overview Goal Basic architectural understanding

More information

White Paper. Major Performance Tuning Considerations for Weblogic Server

White Paper. Major Performance Tuning Considerations for Weblogic Server White Paper Major Performance Tuning Considerations for Weblogic Server Table of Contents Introduction and Background Information... 2 Understanding the Performance Objectives... 3 Measuring your Performance

More information

Final Exam. Final Exam Review. Ch 1: Introduction: Object-oriented analysis, design, implementation. Exam Format

Final Exam. Final Exam Review. Ch 1: Introduction: Object-oriented analysis, design, implementation. Exam Format Final Exam Final Exam Review CS 4354 Fall 2012 Jill Seaman Friday, December 14, 11AM Closed book, closed notes, clean desk Content: Textbook: Chapters 1, 2, 4-10 Java Lectures, GRASP + JUnit 35% of your

More information

Execution Architecture

Execution Architecture Execution Architecture Software Architecture VO (706.706) Roman Kern Institute for Interactive Systems and Data Science, TU Graz 2018-11-07 Roman Kern (ISDS, TU Graz) Execution Architecture 2018-11-07

More information

Building blocks: Connectors: View concern stakeholder (1..*):

Building blocks: Connectors: View concern stakeholder (1..*): 1 Building blocks: Connectors: View concern stakeholder (1..*): Extra-functional requirements (Y + motivation) /N : Security: Availability & reliability: Maintainability: Performance and scalability: Distribution

More information

Software Engineering Fall 2015 (CSC 4350/6350) TR. 5:30 pm 7:15 pm. Rao Casturi 11/03/2015

Software Engineering Fall 2015 (CSC 4350/6350) TR. 5:30 pm 7:15 pm. Rao Casturi 11/03/2015 Software Engineering Fall 2015 (CSC 4350/6350) TR. 5:30 pm 7:15 pm Rao Casturi 11/03/2015 http://cs.gsu.edu/~ncasturi1 Object Design Software Engineering -CSC4350/6350 - Rao Casturi 2 Object Design Close

More information

CHAPTER 3 - PROCESS CONCEPT

CHAPTER 3 - PROCESS CONCEPT CHAPTER 3 - PROCESS CONCEPT 1 OBJECTIVES Introduce a process a program in execution basis of all computation Describe features of processes: scheduling, creation, termination, communication Explore interprocess

More information

Network Connectivity and Mobility

Network Connectivity and Mobility Network Connectivity and Mobility BSAD 141 Dave Novak Topics Covered Lecture is structured based on the five elements of creating a connected world from the text book (with additional content) 1. Network

More information

Module 16: Distributed System Structures. Operating System Concepts 8 th Edition,

Module 16: Distributed System Structures. Operating System Concepts 8 th Edition, Module 16: Distributed System Structures, Silberschatz, Galvin and Gagne 2009 Chapter 16: Distributed System Structures Motivation Types of Network-Based Operating Systems Network Structure Network Topology

More information

Concurrent & Distributed Systems Supervision Exercises

Concurrent & Distributed Systems Supervision Exercises Concurrent & Distributed Systems Supervision Exercises Stephen Kell Stephen.Kell@cl.cam.ac.uk November 9, 2009 These exercises are intended to cover all the main points of understanding in the lecture

More information

Boundary control : Access Controls: An access control mechanism processes users request for resources in three steps: Identification:

Boundary control : Access Controls: An access control mechanism processes users request for resources in three steps: Identification: Application control : Boundary control : Access Controls: These controls restrict use of computer system resources to authorized users, limit the actions authorized users can taker with these resources,

More information

Chapter 13: I/O Systems

Chapter 13: I/O Systems Chapter 13: I/O Systems DM510-14 Chapter 13: I/O Systems I/O Hardware Application I/O Interface Kernel I/O Subsystem Transforming I/O Requests to Hardware Operations STREAMS Performance 13.2 Objectives

More information

Chapter 18: Parallel Databases

Chapter 18: Parallel Databases Chapter 18: Parallel Databases Introduction Parallel machines are becoming quite common and affordable Prices of microprocessors, memory and disks have dropped sharply Recent desktop computers feature

More information

Chapter 2 System Models

Chapter 2 System Models CSF661 Distributed Systems 分散式系統 Chapter 2 System Models 吳俊興國立高雄大學資訊工程學系 Chapter 2 System Models 2.1 Introduction 2.2 Physical models 2.3 Architectural models 2.4 Fundamental models 2.5 Summary 2 A physical

More information

Lecture 9: MIMD Architectures

Lecture 9: MIMD Architectures Lecture 9: MIMD Architectures Introduction and classification Symmetric multiprocessors NUMA architecture Clusters Zebo Peng, IDA, LiTH 1 Introduction A set of general purpose processors is connected together.

More information

Database Server. 2. Allow client request to the database server (using SQL requests) over the network.

Database Server. 2. Allow client request to the database server (using SQL requests) over the network. Database Server Introduction: Client/Server Systems is networked computing model Processes distributed between clients and servers. Client Workstation (usually a PC) that requests and uses a service Server

More information

Introduction to Operating Systems and Practicum in Operating Systems. COS 414/415 Spring 2002 Prof. Emin Gün Sirer

Introduction to Operating Systems and Practicum in Operating Systems. COS 414/415 Spring 2002 Prof. Emin Gün Sirer Introduction to Operating Systems and Practicum in Operating Systems COS 414/415 Spring 2002 Prof. Emin Gün Sirer Administrative Instructors: Prof. Emin Gün Sirer, egs@cs, 4119A Upson, MF 1:25-2:15 Communication

More information

Huge market -- essentially all high performance databases work this way

Huge market -- essentially all high performance databases work this way 11/5/2017 Lecture 16 -- Parallel & Distributed Databases Parallel/distributed databases: goal provide exactly the same API (SQL) and abstractions (relational tables), but partition data across a bunch

More information

Chapter 18: Database System Architectures.! Centralized Systems! Client--Server Systems! Parallel Systems! Distributed Systems!

Chapter 18: Database System Architectures.! Centralized Systems! Client--Server Systems! Parallel Systems! Distributed Systems! Chapter 18: Database System Architectures! Centralized Systems! Client--Server Systems! Parallel Systems! Distributed Systems! Network Types 18.1 Centralized Systems! Run on a single computer system and

More information

Chapter 20: Database System Architectures

Chapter 20: Database System Architectures Chapter 20: Database System Architectures Chapter 20: Database System Architectures Centralized and Client-Server Systems Server System Architectures Parallel Systems Distributed Systems Network Types

More information

CS 575: Software Design

CS 575: Software Design CS 575: Software Design Introduction 1 Software Design A software design is a precise description of a system, using a variety of different perspectives Structural Behavioral Packaging Requirements, Test/Validation

More information

Chapter 4 Requirements Elicitation

Chapter 4 Requirements Elicitation Object-Oriented Software Engineering Using UML, Patterns, and Java Chapter 4 Requirements Elicitation Outline Today: Motivation: Software Lifecycle Requirements elicitation challenges Problem statement

More information

Database Architectures

Database Architectures Database Architectures CPS352: Database Systems Simon Miner Gordon College Last Revised: 11/15/12 Agenda Check-in Centralized and Client-Server Models Parallelism Distributed Databases Homework 6 Check-in

More information

The Concurrency Viewpoint

The Concurrency Viewpoint The Concurrency Viewpoint View Relationships The Concurrency Viewpoint 2 The Concurrency Viewpoint Definition: The Concurrency Viewpoint: describes the concurrency structure of the system and maps functional

More information

Architectural Design. CSCE Lecture 12-09/27/2016

Architectural Design. CSCE Lecture 12-09/27/2016 Architectural Design CSCE 740 - Lecture 12-09/27/2016 Architectural Styles 2 Today s Goals Define what architecture means when discussing software development. Discuss methods of documenting and planning

More information

Requirements Elicitation

Requirements Elicitation Requirements Elicitation Introduction into Software Engineering Lecture 4 25. April 2007 Bernd Bruegge Applied Software Engineering Technische Universitaet Muenchen 1 Outline Motivation: Software Lifecycle

More information

The Actor Role Coordinator Implementation Developer s Manual

The Actor Role Coordinator Implementation Developer s Manual The Actor Role Coordinator Implementation Developer s Manual Nianen Chen, Li Wang Computer Science Department Illinois Institute of Technology, Chicago, IL 60616, USA {nchen3, li}@iit.edu 1. Introduction

More information

Links Reading: Chapter 2. Goals of Todayʼs Lecture. Message, Segment, Packet, and Frame

Links Reading: Chapter 2. Goals of Todayʼs Lecture. Message, Segment, Packet, and Frame Links Reading: Chapter 2 CS 375: Computer Networks Thomas Bressoud 1 Goals of Todayʼs Lecture Link-layer services Encoding, framing, and error detection Error correction and flow control Sharing a shared

More information

Everything You Need to Know About MySQL Group Replication

Everything You Need to Know About MySQL Group Replication Everything You Need to Know About MySQL Group Replication Luís Soares (luis.soares@oracle.com) Principal Software Engineer, MySQL Replication Lead Copyright 2017, Oracle and/or its affiliates. All rights

More information

Distributed Systems Principles and Paradigms

Distributed Systems Principles and Paradigms Distributed Systems Principles and Paradigms Chapter 01 (version September 5, 2007) Maarten van Steen Vrije Universiteit Amsterdam, Faculty of Science Dept. Mathematics and Computer Science Room R4.20.

More information

Chapter 12: I/O Systems

Chapter 12: I/O Systems Chapter 12: I/O Systems Chapter 12: I/O Systems I/O Hardware! Application I/O Interface! Kernel I/O Subsystem! Transforming I/O Requests to Hardware Operations! STREAMS! Performance! Silberschatz, Galvin

More information

Chapter 13: I/O Systems

Chapter 13: I/O Systems Chapter 13: I/O Systems Chapter 13: I/O Systems I/O Hardware Application I/O Interface Kernel I/O Subsystem Transforming I/O Requests to Hardware Operations STREAMS Performance Silberschatz, Galvin and

More information

Chapter 12: I/O Systems. Operating System Concepts Essentials 8 th Edition

Chapter 12: I/O Systems. Operating System Concepts Essentials 8 th Edition Chapter 12: I/O Systems Silberschatz, Galvin and Gagne 2011 Chapter 12: I/O Systems I/O Hardware Application I/O Interface Kernel I/O Subsystem Transforming I/O Requests to Hardware Operations STREAMS

More information

UNIT 5 - UML STATE DIAGRAMS AND MODELING

UNIT 5 - UML STATE DIAGRAMS AND MODELING UNIT 5 - UML STATE DIAGRAMS AND MODELING UML state diagrams and modeling - Operation contracts- Mapping design to code UML deployment and component diagrams UML state diagrams: State diagrams are used

More information

DISTRIBUTED COMPUTER SYSTEMS ARCHITECTURES

DISTRIBUTED COMPUTER SYSTEMS ARCHITECTURES DISTRIBUTED COMPUTER SYSTEMS ARCHITECTURES Dr. Jack Lange Computer Science Department University of Pittsburgh Fall 2015 Outline System Architectural Design Issues Centralized Architectures Application

More information

Database Management Systems

Database Management Systems Database Management Systems Distributed Databases Doug Shook What does it mean to be distributed? Multiple nodes connected by a network Data on the nodes is logically related The nodes do not need to be

More information

A Plexos International Network Operating Technology May 2006

A Plexos International Network Operating Technology May 2006 A Plexos International Network Operating Technology May 2006 BY 4664 Jamestown Ave, Suite 325 Baton Rouge, LA 70808 225.218.8002 1.0 Introduction. is a software environment comprised of proven technologies

More information

5. Distributed Transactions. Distributed Systems Prof. Dr. Alexander Schill

5. Distributed Transactions. Distributed Systems Prof. Dr. Alexander Schill 5. Distributed Transactions Distributed Systems http://www.rn.inf.tu-dresden.de Outline Transactions Fundamental Concepts Remote Database Access Distributed Transactions Transaction Monitor Folie 2 Transactions:

More information

CA464 Distributed Programming

CA464 Distributed Programming 1 / 25 CA464 Distributed Programming Lecturer: Martin Crane Office: L2.51 Phone: 8974 Email: martin.crane@computing.dcu.ie WWW: http://www.computing.dcu.ie/ mcrane Course Page: "/CA464NewUpdate Textbook

More information

Managing Oracle Real Application Clusters. An Oracle White Paper January 2002

Managing Oracle Real Application Clusters. An Oracle White Paper January 2002 Managing Oracle Real Application Clusters An Oracle White Paper January 2002 Managing Oracle Real Application Clusters Overview...3 Installation and Configuration...3 Oracle Software Installation on a

More information

Communication. Distributed Systems Santa Clara University 2016

Communication. Distributed Systems Santa Clara University 2016 Communication Distributed Systems Santa Clara University 2016 Protocol Stack Each layer has its own protocol Can make changes at one layer without changing layers above or below Use well defined interfaces

More information

Module 16: Distributed System Structures

Module 16: Distributed System Structures Chapter 16: Distributed System Structures Module 16: Distributed System Structures Motivation Types of Network-Based Operating Systems Network Structure Network Topology Communication Structure Communication

More information

Course "Softwaretechnik" Book Chapter 2 Modeling with UML

Course Softwaretechnik Book Chapter 2 Modeling with UML Course "Softwaretechnik" Book Chapter 2 Modeling with UML Lutz Prechelt, Bernd Bruegge, Allen H. Dutoit Freie Universität Berlin, Institut für Informatik http://www.inf.fu-berlin.de/inst/ag-se/ Modeling,

More information

ECE519 Advanced Operating Systems

ECE519 Advanced Operating Systems IT 540 Operating Systems ECE519 Advanced Operating Systems Prof. Dr. Hasan Hüseyin BALIK (10 th Week) (Advanced) Operating Systems 10. Multiprocessor, Multicore and Real-Time Scheduling 10. Outline Multiprocessor

More information

Chapter 6 Architectural Design. Lecture 1. Chapter 6 Architectural design

Chapter 6 Architectural Design. Lecture 1. Chapter 6 Architectural design Chapter 6 Architectural Design Lecture 1 1 Topics covered ² Architectural design decisions ² Architectural views ² Architectural patterns ² Application architectures 2 Software architecture ² The design

More information

Ebook : Overview of application development. All code from the application series books listed at:

Ebook : Overview of application development. All code from the application series books listed at: Ebook : Overview of application development. All code from the application series books listed at: http://www.vkinfotek.com with permission. Publishers: VK Publishers Established: 2001 Type of books: Develop

More information

ICS 52: Introduction to Software Engineering

ICS 52: Introduction to Software Engineering ICS 52: Introduction to Software Engineering Fall Quarter 2004 Professor Richard N. Taylor Lecture Notes Week 3: Architectures http://www.ics.uci.edu/~taylor/ics_52_fq04/syllabus.html Copyright 2004, Richard

More information

Distributed Systems Principles and Paradigms. Chapter 01: Introduction. Contents. Distributed System: Definition.

Distributed Systems Principles and Paradigms. Chapter 01: Introduction. Contents. Distributed System: Definition. Distributed Systems Principles and Paradigms Maarten van Steen VU Amsterdam, Dept. Computer Science Room R4.20, steen@cs.vu.nl Chapter 01: Version: February 21, 2011 1 / 26 Contents Chapter 01: 02: Architectures

More information