+ All Categories
Home > Technology > A UML Profile for Real-Time System Modelling with Rate Monotonic Analysis

A UML Profile for Real-Time System Modelling with Rate Monotonic Analysis

Date post: 05-Dec-2014
Category:
Upload: ian-oliver
View: 343 times
Download: 1 times
Share this document with a friend
Description:
A UML profile for mapping models of real-time systems into models suitable for schedulability analysis using Rate Monotonic Analysis using the RapidRMA tool.
26
1 © NOKIA 2002 Ian Oliver, Forum on Design Languages 2002, Marseille, France, 23 Sept 2002. Nokia Internal Use Only A UML Profile for Real-Time System Modelling with Rate Monotonic Analysis Dr. Ian Oliver Nokia Research Center, Finland FDL02, Marseille, France 25 September 2002
Transcript
Page 1: A UML Profile for Real-Time System Modelling with Rate Monotonic Analysis

1 © NOKIA 2002 Ian Oliver, Forum on Design Languages 2002, Marseille, France, 23 Sept 2002. Nokia Internal Use Only

A UML Profile for Real-Time System Modelling with Rate Monotonic

Analysis

Dr. Ian Oliver

Nokia Research Center, Finland

FDL02, Marseille, France

25 September 2002

Page 2: A UML Profile for Real-Time System Modelling with Rate Monotonic Analysis

2 © NOKIA 2002 Ian Oliver, Forum on Design Languages 2002, Marseille, France, 23 Sept 2002. Nokia Internal Use Only

Contents

• Very Brief History

• UML-RT

• Rate Monotonic Analysis

• Copenhagen Profile Overview

• Example

Page 3: A UML Profile for Real-Time System Modelling with Rate Monotonic Analysis

3 © NOKIA 2002 Ian Oliver, Forum on Design Languages 2002, Marseille, France, 23 Sept 2002. Nokia Internal Use Only

Very Brief History

Timing Analysis

Investigations UML-RT Idea!

UML-RT Proposal RMA Mappings

Convergence

UML-RT Profile

Copenhagen Profile

future development...

Page 4: A UML Profile for Real-Time System Modelling with Rate Monotonic Analysis

4 © NOKIA 2002 Ian Oliver, Forum on Design Languages 2002, Marseille, France, 23 Sept 2002. Nokia Internal Use Only

UML-RT

• A Profile based upon UML 1.3/UML 1.4

• Standard defintion of time

• Quality of Service

• Concurrency defintions

• Active/Passive classes

• Signals & Port

Page 5: A UML Profile for Real-Time System Modelling with Rate Monotonic Analysis

5 © NOKIA 2002 Ian Oliver, Forum on Design Languages 2002, Marseille, France, 23 Sept 2002. Nokia Internal Use Only

Rate Monotonic Analysis

• Formalism for estimating schedulability of a set of tasks with dependency graphs

• Worst Case Analysis

• Extended to take into consideration:

Different scheduling executives

Priorities

Priority Inversion

A

B

E

C F

D

G

)1(21

..1

n

nin

Ti

Ci

Page 6: A UML Profile for Real-Time System Modelling with Rate Monotonic Analysis

6 © NOKIA 2002 Ian Oliver, Forum on Design Languages 2002, Marseille, France, 23 Sept 2002. Nokia Internal Use Only

Copenhagen

• Adds to the following

Class diagrams

Sequence

State

Deployment

• Includes

Threads

Modes

• Tool Support

Collaboration Diagrams

UML 1.3/1.4

UML-RT

Copenhagen

Page 7: A UML Profile for Real-Time System Modelling with Rate Monotonic Analysis

7 © NOKIA 2002 Ian Oliver, Forum on Design Languages 2002, Marseille, France, 23 Sept 2002. Nokia Internal Use Only

Why do timing analysis?

• Mobile phone

DSP-MCU interaction and mutual interference

Power consumption-processing power tradeoff

Processing time-quality tradeoff

Optimisation/Overload Discovery

• Software Process

Part of requirements

Constraints on model

Page 8: A UML Profile for Real-Time System Modelling with Rate Monotonic Analysis

8 © NOKIA 2002 Ian Oliver, Forum on Design Languages 2002, Marseille, France, 23 Sept 2002. Nokia Internal Use Only

Class Diagram

Page 9: A UML Profile for Real-Time System Modelling with Rate Monotonic Analysis

9 © NOKIA 2002 Ian Oliver, Forum on Design Languages 2002, Marseille, France, 23 Sept 2002. Nokia Internal Use Only

Some Notes...

• Timing Values...from where?

Experiences & Hunches

Previous software

Executable code profiling

Counting assembly language instructions

Does not need to be 100% accurate

Page 10: A UML Profile for Real-Time System Modelling with Rate Monotonic Analysis

10 © NOKIA 2002 Ian Oliver, Forum on Design Languages 2002, Marseille, France, 23 Sept 2002. Nokia Internal Use Only

Collaboration Diagram (Modes)

Active Objects

Passive Objects

Page 11: A UML Profile for Real-Time System Modelling with Rate Monotonic Analysis

11 © NOKIA 2002 Ian Oliver, Forum on Design Languages 2002, Marseille, France, 23 Sept 2002. Nokia Internal Use Only

Sequence Diagram (display speed)

Page 12: A UML Profile for Real-Time System Modelling with Rate Monotonic Analysis

12 © NOKIA 2002 Ian Oliver, Forum on Design Languages 2002, Marseille, France, 23 Sept 2002. Nokia Internal Use Only

Sequence Diagram (measure speed)

Page 13: A UML Profile for Real-Time System Modelling with Rate Monotonic Analysis

13 © NOKIA 2002 Ian Oliver, Forum on Design Languages 2002, Marseille, France, 23 Sept 2002. Nokia Internal Use Only

Sequence Diagram (regulate speed)

Page 14: A UML Profile for Real-Time System Modelling with Rate Monotonic Analysis

14 © NOKIA 2002 Ian Oliver, Forum on Design Languages 2002, Marseille, France, 23 Sept 2002. Nokia Internal Use Only

Deployment Diagram

Page 15: A UML Profile for Real-Time System Modelling with Rate Monotonic Analysis

15 © NOKIA 2002 Ian Oliver, Forum on Design Languages 2002, Marseille, France, 23 Sept 2002. Nokia Internal Use Only

Timing Hierarchy

Active Classes / Capsules

Class - best guess value

Sequence diagrams - task timing

State diagram - transition timing

Class methods - actual code

Passive Data Classes

Class - best guess value

Sequence diagrams - operation timing

Class methods - actual code

Increasing level of refinement

Page 16: A UML Profile for Real-Time System Modelling with Rate Monotonic Analysis

16 © NOKIA 2002 Ian Oliver, Forum on Design Languages 2002, Marseille, France, 23 Sept 2002. Nokia Internal Use Only

UML & RMA

UML World

RMA World

mapping from UML to RMA

Page 17: A UML Profile for Real-Time System Modelling with Rate Monotonic Analysis

17 © NOKIA 2002 Ian Oliver, Forum on Design Languages 2002, Marseille, France, 23 Sept 2002. Nokia Internal Use Only

RMA Task Model

Page 18: A UML Profile for Real-Time System Modelling with Rate Monotonic Analysis

18 © NOKIA 2002 Ian Oliver, Forum on Design Languages 2002, Marseille, France, 23 Sept 2002. Nokia Internal Use Only

"c1.1:C"

UML Task-RMA Mapping 1

• Complex case: Task dependencies

:C c1:C

deadline=d

period=p

exectime=e3

period=p

deadline=p

amountOfWork=e1 mapsTo

:C c2:C

relexectime=e1,e2

"c2:C"

"c1.2:C"

period=p

deadline=p

amountOfWork=e2

period=p

deadline=p

amountOfWork=e3

Page 19: A UML Profile for Real-Time System Modelling with Rate Monotonic Analysis

19 © NOKIA 2002 Ian Oliver, Forum on Design Languages 2002, Marseille, France, 23 Sept 2002. Nokia Internal Use Only

"c1.1:C"

UML Task-RMA Mapping 2

• Thread mapping

:C c1:C

:C c2:C

"c2:C"

"c1.2:C"

"c1.1-c1.2:C" "c2:C"

mapsTo

Page 20: A UML Profile for Real-Time System Modelling with Rate Monotonic Analysis

20 © NOKIA 2002 Ian Oliver, Forum on Design Languages 2002, Marseille, France, 23 Sept 2002. Nokia Internal Use Only

Analysis 1

Cruise Control CPU Analysis

Page 21: A UML Profile for Real-Time System Modelling with Rate Monotonic Analysis

21 © NOKIA 2002 Ian Oliver, Forum on Design Languages 2002, Marseille, France, 23 Sept 2002. Nokia Internal Use Only

Analysis 2

Engine Control CPU Analysis

Page 22: A UML Profile for Real-Time System Modelling with Rate Monotonic Analysis

22 © NOKIA 2002 Ian Oliver, Forum on Design Languages 2002, Marseille, France, 23 Sept 2002. Nokia Internal Use Only

Back in the UML World...

Page 23: A UML Profile for Real-Time System Modelling with Rate Monotonic Analysis

23 © NOKIA 2002 Ian Oliver, Forum on Design Languages 2002, Marseille, France, 23 Sept 2002. Nokia Internal Use Only

Time Demand Analysis

Page 24: A UML Profile for Real-Time System Modelling with Rate Monotonic Analysis

24 © NOKIA 2002 Ian Oliver, Forum on Design Languages 2002, Marseille, France, 23 Sept 2002. Nokia Internal Use Only

Schedule Analysis

Page 25: A UML Profile for Real-Time System Modelling with Rate Monotonic Analysis

25 © NOKIA 2002 Ian Oliver, Forum on Design Languages 2002, Marseille, France, 23 Sept 2002. Nokia Internal Use Only

Tool Support

Page 26: A UML Profile for Real-Time System Modelling with Rate Monotonic Analysis

26 © NOKIA 2002 Ian Oliver, Forum on Design Languages 2002, Marseille, France, 23 Sept 2002. Nokia Internal Use Only

...and now...

• Experience with timing analysis

Two major systems with timing information

• Better tool support

Any XMI supporting tools

Profile (stereotype/tagged value) support in tools

• Scalability Issues

RMA algorithms are naturally parallel => Linux cluster

• UML 2.0 ...


Recommended