A Discrete-Event Network Simulator
Home
Tutorials ▼
English
Documentation ▼
Manual
Models
Contributing
Wiki
Development ▼
API Docs
Issue Tracker
Merge Requests
API
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
39
class
DelayJitterEstimation
40
{
41
public
:
42
DelayJitterEstimation
();
43
54
static
void
PrepareTx
(
Ptr<const Packet>
packet);
62
void
RecordRx
(
Ptr<const Packet>
packet);
63
67
Time
GetLastDelay
(
void
)
const
;
74
uint64_t
GetLastJitter
(
void
)
const
;
75
76
private
:
77
Time
m_jitter
;
78
Time
m_transit
;
79
};
80
81
}
// namespace ns3
82
83
#endif
/* DELAY_JITTER_ESTIMATION_H */
ns3::DelayJitterEstimation
Quick and dirty delay and jitter estimation, implementing the jitter algorithm originally from RFC 18...
Definition:
delay-jitter-estimation.h:40
ns3::DelayJitterEstimation::RecordRx
void RecordRx(Ptr< const Packet > packet)
Definition:
delay-jitter-estimation.cc:123
ns3::DelayJitterEstimation::DelayJitterEstimation
DelayJitterEstimation()
Definition:
delay-jitter-estimation.cc:111
ns3::DelayJitterEstimation::GetLastDelay
Time GetLastDelay(void) const
Definition:
delay-jitter-estimation.cc:151
ns3::DelayJitterEstimation::PrepareTx
static void PrepareTx(Ptr< const Packet > packet)
Definition:
delay-jitter-estimation.cc:117
ns3::DelayJitterEstimation::GetLastJitter
uint64_t GetLastJitter(void) const
The jitter is calculated using the RFC 1889 (RTP) jitter definition.
Definition:
delay-jitter-estimation.cc:156
ns3::DelayJitterEstimation::m_transit
Time m_transit
Relative transit time for the previous packet.
Definition:
delay-jitter-estimation.h:78
ns3::DelayJitterEstimation::m_jitter
Time m_jitter
Jitter estimation.
Definition:
delay-jitter-estimation.h:77
ns3::Ptr< const Packet >
ns3::Time
Simulation virtual time values and global simulation resolution.
Definition:
nstime.h:103
ns3
Every class exported by the ns3 library is enclosed in the ns3 namespace.
src
network
helper
delay-jitter-estimation.h
Generated on Tue Feb 6 2024 19:21:25 for ns-3 by
1.9.1