Top Banner
A Klaim specification of the Handover protocol: logic-based and type- based analysis Michele Loreti and Daniele Gorla Dipartimento di Sistemi e Informatica University of Firenze http://music.dsi.unifi.it/
30

A Klaim specification of the Handover protocol: logic-based and type-based analysis Michele Loreti and Daniele Gorla Dipartimento di Sistemi e Informatica.

Dec 21, 2015

Download

Documents

Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: A Klaim specification of the Handover protocol: logic-based and type-based analysis Michele Loreti and Daniele Gorla Dipartimento di Sistemi e Informatica.

A Klaim specification of the Handover protocol: logic-based and type-based analysis

Michele Loreti and Daniele GorlaDipartimento di Sistemi e Informatica

University of Firenze

http://music.dsi.unifi.it/

Page 2: A Klaim specification of the Handover protocol: logic-based and type-based analysis Michele Loreti and Daniele Gorla Dipartimento di Sistemi e Informatica.

KlaimKlaim: KKernel LLanguage for AAgent IInteraction and MMobility

Linda based communication model: Asynchronous communication; Via tuple space.

Explicit use of localities: Multiple distributed tuple spaces.

Possibility of code mobility.

Page 3: A Klaim specification of the Handover protocol: logic-based and type-based analysis Michele Loreti and Daniele Gorla Dipartimento di Sistemi e Informatica.

Linda Communication Model Tuples (“foo”, 10+5, !x)

Formal Fields Actual Fields

Pattern Matching: Formal fields match any field of the same

type Actual fields match if identical(“foo”, 10+5, true) matches (!s, 15, !b)

Page 4: A Klaim specification of the Handover protocol: logic-based and type-based analysis Michele Loreti and Daniele Gorla Dipartimento di Sistemi e Informatica.

Klaim Nodes Name (Locality) Tuple Space Processes

s1

PTS

Page 5: A Klaim specification of the Handover protocol: logic-based and type-based analysis Michele Loreti and Daniele Gorla Dipartimento di Sistemi e Informatica.

Handover ProtocolMSC

BS1

rc

rc

rc

BS2

rc

rcrc

MS

Page 6: A Klaim specification of the Handover protocol: logic-based and type-based analysis Michele Loreti and Daniele Gorla Dipartimento di Sistemi e Informatica.

The Klaim Implementation

Page 7: A Klaim specification of the Handover protocol: logic-based and type-based analysis Michele Loreti and Daniele Gorla Dipartimento di Sistemi e Informatica.

Processes...

Page 8: A Klaim specification of the Handover protocol: logic-based and type-based analysis Michele Loreti and Daniele Gorla Dipartimento di Sistemi e Informatica.

Interesting Properties Every sent message is delivered; No message is delivered when an

Handover is occurring; Messages are sent throw the

correct Base Station.

Page 9: A Klaim specification of the Handover protocol: logic-based and type-based analysis Michele Loreti and Daniele Gorla Dipartimento di Sistemi e Informatica.

Features of the Klaim Logic Is a variant of HML (with recursion) Modal operators and [ ] are

indexed with predicates that: Describe the actual use of resources; Express spatial properties;

State formulae for describing resources distribution

Page 10: A Klaim specification of the Handover protocol: logic-based and type-based analysis Michele Loreti and Daniele Gorla Dipartimento di Sistemi e Informatica.

Formulae: Every sent message is

delivered:

No message is delivered when an Handover is occurring:

Page 11: A Klaim specification of the Handover protocol: logic-based and type-based analysis Michele Loreti and Daniele Gorla Dipartimento di Sistemi e Informatica.

Context specification Core part of the system is specified

in Klaim;

Context is specified with an ad-hoc formalism: n[N]

Page 12: A Klaim specification of the Handover protocol: logic-based and type-based analysis Michele Loreti and Daniele Gorla Dipartimento di Sistemi e Informatica.

Nets and Contexts A net N approximates a context n, w.r.t

N1, if N does not perform more accesses to N1 than n.

A net N agrees a context n w.r.t. N1, if N behaves like n w.r.t. N1.

approximation and agreement are formally defined in term of a behavioural equivalence (a preorder) between Klaim net.

Page 13: A Klaim specification of the Handover protocol: logic-based and type-based analysis Michele Loreti and Daniele Gorla Dipartimento di Sistemi e Informatica.

Contexts and Properties (informal)

If specify properties about nodes that belong to N1, then: If N approximates n w.r.t. N1, and (n)

[N1] satisfies then N1||N satisfies

(where is positive) If N agrees n w.r.t. N1, then n [N1]

satisfies iff N1||N satisfies

Page 14: A Klaim specification of the Handover protocol: logic-based and type-based analysis Michele Loreti and Daniele Gorla Dipartimento di Sistemi e Informatica.

Type system for Klaim

Page 15: A Klaim specification of the Handover protocol: logic-based and type-based analysis Michele Loreti and Daniele Gorla Dipartimento di Sistemi e Informatica.

Types for Resource Access Control We control via types the possible operation, i.e.

i,r,o,e,n (capabilities) is formed by the non--empty subsets of capabilities

A node is s :: P, where is the security policy of the node (i.e. what P can perform once executed in s)

Formally, For example :

Well--typedness ) no illegal operations at run-time.

Page 16: A Klaim specification of the Handover protocol: logic-based and type-based analysis Michele Loreti and Daniele Gorla Dipartimento di Sistemi e Informatica.

We want the possibility of a dynamic reconfiguration of policies

But capabilities cannot be forged, i.e. processes/nodes cannot autonomously create rights not owned

Solution: access rights can be passed through the net

via communication We require that who passes the capability must own it (statically or dynamically)

Dynamic Acquisition of Rights

Page 17: A Klaim specification of the Handover protocol: logic-based and type-based analysis Michele Loreti and Daniele Gorla Dipartimento di Sistemi e Informatica.

Example of Dynamic Acquisition

Page 18: A Klaim specification of the Handover protocol: logic-based and type-based analysis Michele Loreti and Daniele Gorla Dipartimento di Sistemi e Informatica.

If rights are wastable resources, once a capability has been used/passed its owner looses it

Dynamic Consumption of Rights

Page 19: A Klaim specification of the Handover protocol: logic-based and type-based analysis Michele Loreti and Daniele Gorla Dipartimento di Sistemi e Informatica.

If rights are wastable resources, once a capability has been used/passed its owner looses it

Dynamic Consumption of Rights

Page 20: A Klaim specification of the Handover protocol: logic-based and type-based analysis Michele Loreti and Daniele Gorla Dipartimento di Sistemi e Informatica.

Dynamic Consumption of Rights

In a dynamic setting, the use of capability sets in types is not appropriate (we have to count). Hence we use multisets

Formally:

Page 21: A Klaim specification of the Handover protocol: logic-based and type-based analysis Michele Loreti and Daniele Gorla Dipartimento di Sistemi e Informatica.

Process Rights Up to now, nodes acquire/loose rights We allow single processes to

acquire/loose rights we tag processes with the rights owned if a process acquires rights, the tag is

increased if a process uses rights, the tag is

decreased

Page 22: A Klaim specification of the Handover protocol: logic-based and type-based analysis Michele Loreti and Daniele Gorla Dipartimento di Sistemi e Informatica.

Example of Process Rights

Page 23: A Klaim specification of the Handover protocol: logic-based and type-based analysis Michele Loreti and Daniele Gorla Dipartimento di Sistemi e Informatica.

Variations on Dynamic Reconfiguration

We can choose various models for acquisition/consumption: Nodes have dynamic policies, while process

have no rights Processes have dynamic policies, while nodes

just static ones Both nodes and processes have dynamic

policies The second solution is a good compromise

between efficiency and flexibility.

Page 24: A Klaim specification of the Handover protocol: logic-based and type-based analysis Michele Loreti and Daniele Gorla Dipartimento di Sistemi e Informatica.

The Handover Revisited During an handover the user should not

stop its activity (i.e. the handover must be transparent for a user)

In particular, the credit of an user must be mantained and the information on it must be properly passed during the handover

This scenario is well realized via our type theory

Page 25: A Klaim specification of the Handover protocol: logic-based and type-based analysis Michele Loreti and Daniele Gorla Dipartimento di Sistemi e Informatica.

The Handover Revisited (2)

Assumptions: the information on the credit of a

user is held by the Base Station associate to that user

it is slotted in credit units and is represented by the messages the BS can take from the MS and pass to the MSC

Page 26: A Klaim specification of the Handover protocol: logic-based and type-based analysis Michele Loreti and Daniele Gorla Dipartimento di Sistemi e Informatica.

Revised code...

Page 27: A Klaim specification of the Handover protocol: logic-based and type-based analysis Michele Loreti and Daniele Gorla Dipartimento di Sistemi e Informatica.

The system...

Page 28: A Klaim specification of the Handover protocol: logic-based and type-based analysis Michele Loreti and Daniele Gorla Dipartimento di Sistemi e Informatica.

Policies...

Page 29: A Klaim specification of the Handover protocol: logic-based and type-based analysis Michele Loreti and Daniele Gorla Dipartimento di Sistemi e Informatica.

Case Study: The Active Base Station

Page 30: A Klaim specification of the Handover protocol: logic-based and type-based analysis Michele Loreti and Daniele Gorla Dipartimento di Sistemi e Informatica.

Final remarks...

Two different approaches to mobile and distributed languages;

Presented example can be extended to be a real application;

Detailed papers are available at:http://music.dsi.unifi.it