A Discrete-Event Network Simulator
Home
Tutorials ▼
English
Portuguese
Docs ▼
Wiki
Manual
Models
Develop ▼
API
Bugs
API
src
network
helper
delay-jitter-estimation.h
Go to the documentation of this file.
1
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
2
/*
3
* Copyright (c) 2007 INRIA
4
*
5
* This program is free software; you can redistribute it and/or modify
6
* it under the terms of the GNU General Public License version 2 as
7
* published by the Free Software Foundation;
8
*
9
* This program is distributed in the hope that it will be useful,
10
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
* GNU General Public License for more details.
13
*
14
* You should have received a copy of the GNU General Public License
15
* along with this program; if not, write to the Free Software
16
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17
*
18
* Authors: Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
19
*/
20
#ifndef DELAY_JITTER_ESTIMATION_H
21
#define DELAY_JITTER_ESTIMATION_H
22
23
#include "ns3/nstime.h"
24
#include "ns3/packet.h"
25
26
namespace
ns3
{
27
34
class
DelayJitterEstimation
35
{
36
public
:
37
DelayJitterEstimation
();
38
49
static
void
PrepareTx
(
Ptr<const Packet>
packet);
57
void
RecordRx
(
Ptr<const Packet>
packet);
58
62
Time
GetLastDelay
(
void
)
const
;
69
uint64_t
GetLastJitter
(
void
)
const
;
70
71
private
:
72
Time
m_previousRx
;
73
Time
m_previousRxTx
;
74
int64x64_t
m_jitter
;
75
Time
m_delay
;
76
};
77
78
}
// namespace ns3
79
80
#endif
/* DELAY_JITTER_ESTIMATION_H */
ns3::Time
Simulation virtual time values and global simulation resolution.
Definition:
nstime.h:102
ns3::Ptr< const Packet >
ns3::int64x64_t
High precision numerical type, implementing Q64.64 fixed precision.
Definition:
int64x64-128.h:45
ns3::DelayJitterEstimation::RecordRx
void RecordRx(Ptr< const Packet > packet)
Definition:
delay-jitter-estimation.cc:125
ns3::DelayJitterEstimation::DelayJitterEstimation
DelayJitterEstimation()
Definition:
delay-jitter-estimation.cc:111
ns3::DelayJitterEstimation::PrepareTx
static void PrepareTx(Ptr< const Packet > packet)
Definition:
delay-jitter-estimation.cc:119
ns3
Every class exported by the ns3 library is enclosed in the ns3 namespace.
ns3::DelayJitterEstimation::GetLastDelay
Time GetLastDelay(void) const
Definition:
delay-jitter-estimation.cc:144
ns3::DelayJitterEstimation::m_previousRxTx
Time m_previousRxTx
Previous Rx or Tx time.
Definition:
delay-jitter-estimation.h:73
ns3::DelayJitterEstimation::m_delay
Time m_delay
Delay estimation.
Definition:
delay-jitter-estimation.h:75
ns3::DelayJitterEstimation::m_previousRx
Time m_previousRx
Previous Rx time.
Definition:
delay-jitter-estimation.h:72
ns3::DelayJitterEstimation
quick and dirty delay and jitter estimation
Definition:
delay-jitter-estimation.h:34
ns3::DelayJitterEstimation::GetLastJitter
uint64_t GetLastJitter(void) const
The jitter is calculated using the RFC 1889 (RTP) jitter definition.
Definition:
delay-jitter-estimation.cc:149
ns3::DelayJitterEstimation::m_jitter
int64x64_t m_jitter
Jitter estimation.
Definition:
delay-jitter-estimation.h:74
Generated on Wed Nov 7 2018 10:02:06 for ns-3 by
1.8.14