ccrtp-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Ccrtp-devel] Help with Jitter, Delay and packet loss calculations from


From: Nishma Shah
Subject: [Ccrtp-devel] Help with Jitter, Delay and packet loss calculations from received RTCP packets
Date: Thu, 21 Jun 2007 15:34:03 -0700

Hi,
I am trying to retrieve jitter, delay and packet loss values from the received RTCP packets by redefining the onGotSR and onGotRR as below.
But the values I am receiving seen incorrect (they are very large). Is there a bug in the library for what I am trying to do?
Is there a patch out there? Is there a mistake in my program?

Program -
// redefined from QueueRTCPManager
    void
    onGotSR(SyncSource& source, SendReport& SR, uint8 blocks)
    {
        RTPSession::onGotSR(source,SR,blocks);
        RTCPReceiverInfo RecInf(&(SR.blocks[0].rinfo));
        cout << dec
             << "Source IP:Port: " << source.getNetworkAddress() << ":"
             << source.getControlTransportPort() << endl
             << "Packet type: Sender Report" << endl
             << "Delay: " << dec << SR.blocks[0].rinfo.dlsr << " : "
             << dec << RecInf.getDelayLastSR() << endl
              << "Jitter: " << dec << SR.blocks[0].rinfo.jitter << " : "
             << dec << RecInf.getJitter() << endl
             << "Fraction Lost: " << dec << SR.blocks[0].rinfo.fractionLost << " : "
             << dec << RecInf.getFractionLost () << endl
             << "Cumulative Packet Lost: " << dec << RecInf.getCumulativePacketLost()
             << endl << endl;
    }

    // redefined from QueueRTCPManager
    void
    onGotRR(SyncSource& source, RecvReport& RR, uint8 blocks)
    {
        RTPSession::onGotRR(source,RR,blocks);
        RTCPReceiverInfo RecInf(&(RR.blocks[0].rinfo));
        cout << dec
             << "Source IP:Port: " << source.getNetworkAddress() << ":"
             << source.getControlTransportPort() << endl
             << "Packet type: Receiver Report" << endl
             << "Delay: " << dec << RR.blocks[0].rinfo.dlsr << " : "
             << dec << RecInf.getDelayLastSR() << endl
              << "Jitter: " << dec << RR.blocks[0].rinfo.jitter << " : "
             << dec << RecInf.getJitter() << endl
             << "Fraction Lost: " << dec << RR.blocks[0].rinfo.fractionLost << " : "
             << dec << RecInf.getFractionLost() << endl
             << "Cumulative Packet Lost: " << dec << RecInf.getCumulativePacketLost()
             << endl << endl;
    }

Output -
Listening on unicast address 172.27.210.34:5005
Press Ctrl-C to finish.
My SSRC identifier is: 92a9264d

Source IP:Port: 172.24.20.76:5685
Packet type: Sender Report
Delay: 185401344 : 410253303
Jitter: 16777216 : 2960000264
Fraction Lost:  :
Cumulative Packet Lost: 6751496

Source IP:Port: 172.24.20.76:3789
Packet type: Sender Report
Delay: 2592342016 : 410253303
Jitter: 0 : 1886389512
Fraction Lost:  :
Cumulative Packet Lost: 6751496

Source IP:Port: 172.24.20.76:5125
Packet type: Sender Report
Delay: 216137728 : 410253303
Jitter: 0 : 1886455048
Fraction Lost:  :
Cumulative Packet Lost: 6751496

Source IP:Port: 172.24.20.76:5789
Packet type: Sender Report
Delay: 3245671680 : 410253303
Jitter: 0 : 1349649672
Fraction Lost:  :
Cumulative Packet Lost: 6751496

Source IP:Port: 172.24.20.76:5421
Packet type: Sender Report
Delay: 774910510 : 410253303
Jitter: 925974640 : 812844296
 : ction Lost:
Cumulative Packet Lost: 6751496

Source IP:Port: 172.24.20.76:9629
Packet type: Receiver Report
Delay: 774910510 : 410253303
Jitter: 925974640 : 276038920
Fraction Lost:  : l
Cumulative Packet Lost: 6751496

Anyone has any ideas?
Thank you in advance.






reply via email to

[Prev in Thread] Current Thread [Next in Thread]