ns3::DelayJitterEstimation Class Reference

quick and dirty delay and jitter estimation More...

#include <delay-jitter-estimation.h>

Collaboration diagram for ns3::DelayJitterEstimation:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 DelayJitterEstimation ()
void RecordRx (Ptr< const Packet > packet)
Time GetLastDelay (void) const
Time GetLastJitter (void) const

Static Public Member Functions

static void PrepareTx (Ptr< const Packet > packet)

Private Attributes

Time m_previousRx
Time m_previousRxTx
Time m_jitter
Time m_delay

Detailed Description

quick and dirty delay and jitter estimation

Definition at line 13 of file delay-jitter-estimation.h.


Constructor & Destructor Documentation

ns3::DelayJitterEstimation::DelayJitterEstimation (  ) 

Member Function Documentation

Time ns3::DelayJitterEstimation::GetLastDelay ( void   )  const
Returns:
the updated delay.

Definition at line 104 of file delay-jitter-estimation.cc.

Time ns3::DelayJitterEstimation::GetLastJitter ( void   )  const

The jitter is calculated using the RFC 1889 (RTP) jitter definition.

Returns:
the updated jitter.

Definition at line 109 of file delay-jitter-estimation.cc.

References m_delay.

void ns3::DelayJitterEstimation::PrepareTx ( Ptr< const Packet packet  )  [static]
Parameters:
packet the packet to send over a wire

This method should be invoked once on each packet to record within the packet the tx time which is used upon packet reception to calculate the delay and jitter. The tx time is stored in the packet as an ns3::Tag which means that it does not use any network ressources and is not taken into account in transmission delay calculations.

Definition at line 79 of file delay-jitter-estimation.cc.

void ns3::DelayJitterEstimation::RecordRx ( Ptr< const Packet packet  ) 
Parameters:
packet the packet received

Invoke this method to update the delay and jitter calculations After a call to this method, GetLastDelay and GetLastJitter will return an updated delay and jitter.

Definition at line 85 of file delay-jitter-estimation.cc.


Member Data Documentation

Definition at line 54 of file delay-jitter-estimation.h.

Referenced by GetLastJitter().

Definition at line 53 of file delay-jitter-estimation.h.

Definition at line 51 of file delay-jitter-estimation.h.

Definition at line 52 of file delay-jitter-estimation.h.


The documentation for this class was generated from the following files:
Generated on Thu Dec 3 14:10:02 2009 for NS-3 by  doxygen 1.6.3