Only the flows' MDI information is sent. The code that sends the updates is in the function
update_stats_for_flow(), which is called from the function
process_packet(). Both functions are in the file
As mentioned in Monitoring and Mirroring Data, the MDI delay factor and media loss rate components are updated continually, but measured with time factors of 1 and 10 seconds respectively. Because the end of the time frame is not discovered until it has passed, the MDI value for the time frame where the flow's previous packet was seen is sent when the first packet arrives in the current (new) time frame. With streaming IPTV traffic, you can expect to see packets in every time frame; however, the MDI calculation can account for time frames in which no packets were seen.
The update messages are funneled into a common queue, so that only one connection to the management component is needed for the updates. The data threads enqueue updates, while the main thread dequeues them and sends them to the management component.
showcommand (see Command User Interface). The management component does not request status updates from the data component; it accepts updates as the data component chooses to send them. Therefore, the management component must cache a status, and in doing so it could deviate slightly from the true status in the data component.
The code that receives status updates is in the function
set_flow_stat() in the file
monitube-mgmt_config.c. The function is caled from the function
receive_message(), in the file
The status updates come in two forms. When any status update is received, the management component logs a message using the tracing facility.
The MDI of a flow is reported whenever there is traffic observed in the last second. By default, the management component does not know about any flows, but as it learns about them it keeps the result for a maximum of 5 minutes. If results are received for a flow that it already knows about, the result replaces the previously stored result (and the 5 minute timer is reset). For more information on when these updates are sent see Monitoring and Mirroring Data.
clear command is issued from the CLI and received, the management component deletes all stored results.
Return to The IPTV Monitor Application