Theoretical Aspect
Development of a flexible causal relation for distributed systems
unlike the one proposed by Lamport (1978)
For applications where certain degradation of the system is allowed
is not necessary to assure a strict causal delivery, for example,
multimedia, scheduling, cooperative work and planning
INAOE 3
Outline
1. Introduction
2. Related work
3. Problem description
4. Research proposal
5. Results
6. Conclusions
4
Introduction
Distributed systems
Concurrency
Fail tolerance
Multimedia synchronization
Common reference
Physical clock
Disadvantages
Bottlenecks
Not scalable
Logical dependencies
Disadvantages
Discard of messages
Video on demand
Asynchronous sources
Heterogeneous data
Results
Fuzzy causal relation (FCR)
The fuzzy union operator chosen for intra and inter domains
is the max operator
15
Results (Cont.)
Fuzzy causal relation (FCR)
Distance relation
The DR grows monotonically and it is directly proportional to the
spatial, temporal and/or logical distances between a pair of
events
DR(a,b) with a value tending to zero indicates that the events a
and b are closer
The DR cannot determine precedence dependencies among
events, it only indicates certain distance among them
16
Results (Cont.)
Fuzzy causal relation (FCR)
17
Results (Cont.)
Fuzzy causal relation (FCR)
FCR(a,e)
a
b
c
d
e
f
1
2
Example of fuzzy precedence among causal messages FCR(a,e)
19
Results(Cont.)
Fuzzy Causal Consistency
) (
) (
) (
) , ( ) (
) (
a H b
a H b
p
p
b GP
a b FCR b GP
a FCC
Calculation of the Fuzzy causal consistency
a
b
c
d Average
Weight
FCR
p
( b,d)
FCR
p
( c,d)
FCCp(a)
Example of calculation of the FCC
GP(b) is a weighting degree used to determine priorities or weight
for every fuzzy causal relation when it is needed
Results (Cont.)
Fuzzy causal delivery order
22
Results
Causal order vs fuzzy causal order
a
+
d
-
Strict order delivery -causal order delivery
Fuzzy causal order
delivery
a
+
d
-
y
d
<
max
a
+
d
-
( a
+
, d
-
)
Infinite halt
( a
+
, d
-
)
Deliver d and discard a
Deliver: (a
+
, d
-
) or
(d
-
, a
+
)
Synchronization Period
k =Part(Z)
Example of a fuzzy causal delivery
a-
a
+
a
+
d
-
c
-
a
+
a
-
=
x
1
d
-
=
y
1
D
c
+
=
x
n
b
+
=y
p
A
C
B
Causal delivery
order of events
i
=Part(X)
d
-
Fuzzy causal delivery
a
+
j =Part(Y)
23
Temporal
Distance
R
N
Causal
Distance
R
D
FCC
p
(a)
System
Component
of input
variables
Current State
of
the System
Adjustment
and
Selective
Discard
Weighting
Degree
GP
Fuzzy Causal
Relations
Fuzzy
Causal
Consistenc
y
Fuzzy Causal Component
Fuzzy Control
System
Performanc
e of
the System
Scheme of the Distributed Multimedia Mechanism
FCR
p
(m) m H(a)
Fuzzy Control
Synchronizati
on
Model
Network
Conditions
NC
24
Synchronization model
i j
i =Part(X)
j =Part(Y)
Synchronization periods
F
A
B F
E
E C
D
Fuzzy causal delivery
Formally a period is defined as: (e, f) (E x F), e f e f
B F E D C E F A
I I I I
' ' ) | | | (
EF
25
Synchronization model
26
Results (Cont.)
The FCR applied to the intermedia synchronization
Results (Cont.)
The FCR applied to the intermedia synchronization
We simulated three
scenarios:
Soft, Medium and Hard
100,000 simulations
,
_
+ +
BChannel
PP jitter RTT
GP
i i i
i
C
i =Part(A) audio
k =Part(C) audio
A
B
(m
k-2
)
Global Time 95
0
190 250
m
i
H(m
i
)={m
j
, m
k
}
l
m
1
m
k-2
m
k-1
m
k
m
j-1
m
j
(m
j-1
)
j =Part(B) video
INAOE 45
Tabla 2. Maximum error tolerable for multimedia synchronization
Media Mode, application Maximum Error
synchronization
(QoS, d
max
)
Video Animation Correlated t 120ms
Audio Lip synchronization t 80ms
Image Overlay t 240ms
No-overlay t 500ms
Text Overlay t 240ms
No-overlay t 500ms
Audio Animation Event correlation (e.g. dancing) t 80ms
Audio Tightly coupled(stereo) t 11ms
Loosely coupled (dialogue mode with
various participants)
t 120ms
Loosely coupled (e.g. background music) t 500ms
Image Tightly coupled (e.g. music with notes) t 5ms
Loosely coupled (e.g. slide show) t 500ms
Text Notes of text t 240ms
Pointer Audio related to the item t 700ms
INAOE 46
Algorithm
Historia Causal H(m) de a:
{d,f,z}
Part(w),
Part(x)
Part(y)
a
a
C
A
B
E
3.- Calculo de la Distancia Temporal: t(a)-
t(a)
4.- Calculo de la Distancia Causal (a):
{d,f,z}
F H
G
D
Part(y) orden de entrega causal:
Part(z)
f
z
d
g
2.- Obtencin de los parmetros RTT, Bw, jitter p/c evento de H(m)
1.- Calculo de los Periodos de cada elemento contenido
en H(m)
5.- Calculo de RCD(a) y CCD a partir de
H(a)={d,f,z}
6.- Calculo del estado actual
7.- Calculo de CR
8.- Paso de parmetros
al control difuso (CR y CCD)
9.-Salida del control difuso
Retrasar
Entregar
Descarte Selectivo
C
i =Part(A) audio
k =Part(C) audio
A
B
(m
k-2
)
Global Time 95
0
190 250
m
i
H(m
i
)={m
j
, m
k
}
l
m
1
m
k-2
m
k-1
m
k
m
j-1
m
j
(m
j-1
)
j =Part(B) video
Example of a synchronization
multimedia scenario
C
i =Part(A) audio
k =Part(C) animated
images
A
B
(m
k-2
)
Global Time 95
0
165 253
m
i
H(m
i
)={m
j
, m
k
}
l
m
1
m
k-2
m
k-1
m
k
m
j-1
m
j
(m
j-1
)
j =Part(B) video
INAOE 49
Results(Cont.)
Fuzzy causal relation
Temporal cause-effect
degree
Cause-effect
Logical cause-effect degree
Cause-effect
1
1
INAOE 50
Related work
Characteristics Coelho et. al Proposal
Predefined synchronization points Yes No
Decisions Centralized Distributed
Real time No Yes
Communications Producer-
Consumer
Group
Time Constraints No Yes
Quality of services No Yes
Clocks to order the events Physic Logic
Comparison of characteristics between the work done by
Coelho et al. in [3] and our proposed research
INAOE 51
Results(Cont.)
The FCR applied to the intermedia synchronization
The membership functions, R
N
and R
D
can be calculated by a triangular function
defined as:
0 If x < f
If f x < h
1 If x h
f h
f x
A(x)
f h
1
O
INAOE 52
Results(Cont.)
The FCR applied to the intermedia synchronization
Temporal cause-effect degree
Cause-effect
d
max
Logical cause-effect degree
Cause-effect
1
1
Causal distance
d
max
is assigned according to the maximum error allowed
Causal distance is established to four events
INAOE 53
Results (Cont.)
Input value for the fuzzy causal relation
Temporal distance
(m)= time_arrival(m) time_arrival(m) p H(m) m = last_message
p
Part(X)
Part(Y)
m m
Local physical clock of Part(Y)
(m)
INAOE 54
Results(Cont.)
FCC applied to the intermedia synchronization
RTT is the Round trip time of a
message
Jitter is the fluctuation of end to
end of a message with the next
message inside the same stream
PP is the number of lost
messages in a synchronization
period
n is the number of channels
(participants) which are causally
related to the event a
( ) [ ]
i i i
n
i
PP jitter RTT BChannel + +
1
min
( )
,
_
+ +
BChannel
PP jitter RTT
GP
i i i
i
1
]
1
,
_
1
*
1
) (
INAOE 56
Results (Cont.)
Fuzzy control system
Where:
NC(a), FCC
p
(a) and are the enter parameters of the fuzzy
control system
A
i
= {good, regular, bad} are the linguistic labels for NC(a)
B
i
= {good, regular, bad} are the linguistic labels for the FCC
p
(a)
C
i
= {big, medium, short} are the linguistic labels for the output
INAOE 57
Results (Cont.)
Fuzzy control system
The set of rules that the fuzzy control system considers is the
following
1. If NC(a)= bad and FCC
p
(a)= good, then = medium (delivery without discard)
2. If NC(a)= bad and FCC
p
(a) = regular, then = short (delivery with discard)
3. If NC(a)= bad and FCC
p
(a) = bad, then = short (delivery with discard)
4. If NC(a)= regular and FCC
p
(a) = good, then = medium (delivery without discard)
5. If NC(a)= regular and FCC
p
(a) = regular, then = medium (delivery without discard)
6. If NC(a)= regular and FCC
p
(a) = bad, then = short (delivery with discard)
7. If NC(a)= good and FCC
p
(a) = good, then = big (delivery without discard)
8. If NC(a)= good and FCC
p
(a) = regular, then = big (delivery without discard)
9. If NC(a)= good and FCC
p
(a) = bad, then = medium (delivery without discard)
The Mamdani model has been selected as the inference
mechanism