A Discrete-Event Network Simulator
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
26namespace ns3 {
27
40{
41public:
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
76private:
79};
80
81} // namespace ns3
82
83#endif /* DELAY_JITTER_ESTIMATION_H */
Quick and dirty delay and jitter estimation, implementing the jitter algorithm originally from RFC 18...
void RecordRx(Ptr< const Packet > packet)
static void PrepareTx(Ptr< const Packet > packet)
uint64_t GetLastJitter(void) const
The jitter is calculated using the RFC 1889 (RTP) jitter definition.
Time m_transit
Relative transit time for the previous packet.
Time m_jitter
Jitter estimation.
Simulation virtual time values and global simulation resolution.
Definition: nstime.h:103
Every class exported by the ns3 library is enclosed in the ns3 namespace.