You are here: Configuration File > Server-Side Rate Control Configuration > Rate Control Logs > TFRC Debugging Logs

TFRC Debugging Logs

If the TCP-Friendly Rate Control (TFRC) method of congestion control is used, Helix Mobile Server writes a diagnostic log for each stream in each TFRC session. For log files to be generated, the following must occur:

Debugging is enabled for the profile withDebugOutput set to 1.

TFRC is chosen as the congestion control mechanism by setting the profile's UDPCongestionControlType variable to TFRC.

UDP is used as the transport.

Helix Mobile Server writes the TFRC log to its main installation directory, using a file-naming convention that is similar to the rate manager log convention:

tfrc_SessionID-CSeq_StreamID.txt

For more information: For information about TFRC configuration, refer to "TFRC Configuration".

Note: The debugging logs include a general congestion control log that uses the prefix CC_. The data in this log is redundant with information contained in the other logging files.

TFRC Header Information

Each diagnostic log file contains a header that indicates the current TFRC configuration parameters, as shown in the following example:

RTT IIR Filter: Not Used
Rate Increase Limit Scalar: 1.2500

TFRC Log Entries

Following the header, the report records a new entry each time a receiver report arrives:

timestampvalue  media_rate 
timestampvalue tfrc_rate
timestampvalue actual_rate
timestampvalue recvd_rate
timestampvalue state
timestampvalue num_lost
timestampvalue num_recv
timestampvalue loss
timestampvalue rtt
timestampvalue raw
timestampvalue sq_mean
timestampvalue loss_type

Each line in a block of statistics begins with the same timestamp, which indicates the number of milliseconds after the session started that the report was generated. Each line within a statistics block records a different value:

media_rate

Stream's encoded rate in bits per second. Media rate values within a report will differ if streaming upshifting or downshifting occurred.

tfrc_rate

Recommended rate based on the TFRC algorithm, in bits per second.

actual_rate

Average streaming rate for the last second, in bits per second.

recvd_rate

Rate at which the client received data according to server modeling.

state

Congestion control state: 0 is slow start, 1 is steady state.

num_lost

Number of packets lost in the last reporting interval.

num_recv

Number of packets received in the last reporting interval.

loss

TFRC loss event ratio.

rtt

Statistically smoothed RTT.

raw

RTT-derived sample from the current RTCP receiver report.

sq_mean

Square root of the smoothed RTT.

loss_type

Type of loss detected (not currently implemented).

TFRC Log Entry Example

The following is an example of a TFRC log entry:

3017 12000 media_rate
3017 70000 tfrc_rate
3017 56000.000 actual_rate
3017 73769.231 recvd_rate
3017 0 state
3017 0 num_lost
3017 2 num_recv
3017 0.00071 loss
3017 504.85354 rtt
3017 307.724 raw
3017 22.371 sq_mean
3017 1 loss_type

 


Helix Universal Mobile Server Version 14.2 Online Help
Revision Date: Tuesday, March 15, 2011
©2011 RealNetworks, Inc., http://www.realnetworks.com