5G-MAG / rt-5gms-media-session-handler

5G Media Streaming - Media Session Handler
https://www.5g-mag.com/streaming
Other
4 stars 4 forks source link

QoE Metrics Reporting - Reporting Sample Percentage #26

Closed dsilhavy closed 5 months ago

dsilhavy commented 1 year ago

Feature description

TS 26.512 specifies a samplePercentage that is part of the M1 MetricsReportingConfiguration resource and defines the proportion of media streaming sessions for which metrics shall be reported, expressed as a floating point value between 0.0 and 100.0.

If not specified, reports shall be sent for all sessions.

The concrete behavior can be derived from clause 4.8.2 which defines a similar behavior for consumption reporting:

The Media Session Handler shall first determine whether consumption reporting is active for the session. The determination shall be based on the samplePercentage attribute specified in the consumption reporting configuration. When the samplePercentage is not present or its value is 100, consumption reporting is active for the session. If the samplePercentage is less than 100, the Media Session Handler generates a random number which is uniformly distributed in the range 0 to100; consumption reporting is active for the session when the generated random number is of a lower value than the samplePercentage value.

Suggested solution

Only start the interval timer that requests the desired metrics periodically if the above condition is true.

rjb1000 commented 1 year ago

Sounds good, @dsilhavy.

My interpretation is that the condition has to be computed anew at the start of each media streaming session.

dsilhavy commented 1 year ago

Implemented according to the description in #56. The condition is re-evaluated for each streaming session