Next: , Previous: , Up: Client   [Contents][Index]


5.3.2 supp

The Supp process handle PUBLISHER queries about supports. A score is computed for each local support, based on its age (t). However if support wasn’t checked recently (checkTTL) its score is set to 0 as it is supposed to be corrupted or lost.

mediatex-figures/score1

t <= T: score = ({T-t \over T})^{-a} *(M-b))+b
t > T: score = ({1 + c*(t-T)}^{-1}) * b

where: (default values)

T = 10 years

is the support time to live (suppTTL)

t

is the current support age

a = 2

power that reduce score from age of supports (powSupp)

M = 10.00

the maximum score (maxScore)

b = 1.00

maximum score for outdated supports (badScore)

c = 2

factor that reduce score of out-dated supports (factSupp)

Notice: with the default values this gives:
t <= T: score = (\sqrt{T-t \over T} *(9))+1
t > T: score = {1 \over 1 + 2*(t-T)}

Notice:

Process conceptual model:

mediatex-figures/supp

Examples:

Code:

src/common/upgrade.c
src/client/supp.c

Next: , Previous: , Up: Client   [Contents][Index]