A Discrete-Event Network Simulator
Home
Tutorials ▼
English
Portuguese
Docs ▼
Wiki
Manual
Models
Develop ▼
API
Bugs
API
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
lte-mi-error-model.h
Go to the documentation of this file.
1
/* -*- Mode: C++; c-file-style: "gnu"; indent-tabs-mode:nil; -*- */
2
/*
3
* Copyright (c) 2011 SIGNET LAB. Department of Information Engineering (DEI), University of Padua
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
*
19
* Original Work Authors:
20
* Marco Mezzavilla <mezzavil@dei.unipd.it>
21
* Giovanni Tomasi <tomasigv@gmail.com>
22
* Original Work Acknowldegments:
23
* This work was supported by the MEDIEVAL (MultiMEDia transport
24
* for mobIlE Video AppLications) project, which is a
25
* medium-scale focused research project (STREP) of the 7th
26
* Framework Programme (FP7)
27
*
28
* Subsequent integration in LENA and extension done by:
29
* Marco Miozzo <marco.miozzo@cttc.es>
30
*/
31
32
#ifndef LTE_MI_ERROR_MODEL_H
33
#define LTE_MI_ERROR_MODEL_H
34
35
36
#include <list>
37
#include <vector>
38
#include <ns3/ptr.h>
39
#include <stdint.h>
40
#include <ns3/spectrum-value.h>
41
#include <ns3/lte-harq-phy.h>
42
43
44
45
46
namespace
ns3 {
47
48
const
uint16_t
PDCCH_PCFICH_CURVE_SIZE
= 46;
49
const
uint16_t
MI_MAP_QPSK_SIZE
= 797;
50
const
uint16_t
MI_MAP_16QAM_SIZE
= 994;
51
const
uint16_t
MI_MAP_64QAM_SIZE
= 752;
52
const
uint16_t
MI_QPSK_MAX_ID
= 9;
53
const
uint16_t
MI_16QAM_MAX_ID
= 16;
54
const
uint16_t
MI_64QAM_MAX_ID
= 28;
// 29,30 and 31 are reserved
55
const
uint16_t
MI_QPSK_BLER_MAX_ID
= 12;
// MI_QPSK_MAX_ID + 3 RETX
56
const
uint16_t
MI_16QAM_BLER_MAX_ID
= 22;
57
const
uint16_t
MI_64QAM_BLER_MAX_ID
= 37;
58
59
struct
TbStats_t
60
{
61
double
tbler
;
62
double
mi
;
63
};
64
65
66
70
class
LteMiErrorModel
71
{
72
73
public
:
74
82
static
double
Mib
(
const
SpectrumValue
& sinr,
const
std::vector<int>& map, uint8_t mcs);
90
static
double
MappingMiBler
(
double
mib, uint8_t ecrId, uint16_t cbSize);
91
101
static
TbStats_t
GetTbDecodificationStats
(
const
SpectrumValue
& sinr,
const
std::vector<int>& map, uint16_t size, uint8_t mcs,
HarqProcessInfoList_t
miHistory);
102
108
static
double
GetPcfichPdcchError
(
const
SpectrumValue
& sinr);
109
110
111
//private:
112
113
114
115
};
116
117
118
}
// namespace ns3
119
120
#endif
/* LTE_MI_ERROR_MODEL_H */
ns3::MI_64QAM_MAX_ID
const uint16_t MI_64QAM_MAX_ID
Definition:
lte-mi-error-model.h:54
ns3::LteMiErrorModel
This class provides the BLER estimation based on mutual information metrics.
Definition:
lte-mi-error-model.h:70
ns3::TbStats_t::tbler
double tbler
Definition:
lte-mi-error-model.h:61
ns3::TbStats_t
Definition:
lte-mi-error-model.h:59
ns3::MI_QPSK_MAX_ID
const uint16_t MI_QPSK_MAX_ID
Definition:
lte-mi-error-model.h:52
ns3::LteMiErrorModel::GetTbDecodificationStats
static TbStats_t GetTbDecodificationStats(const SpectrumValue &sinr, const std::vector< int > &map, uint16_t size, uint8_t mcs, HarqProcessInfoList_t miHistory)
run the error-model algorithm for the specified TB
Definition:
lte-mi-error-model.cc:545
ns3::MI_16QAM_MAX_ID
const uint16_t MI_16QAM_MAX_ID
Definition:
lte-mi-error-model.h:53
ns3::MI_MAP_16QAM_SIZE
const uint16_t MI_MAP_16QAM_SIZE
Definition:
lte-mi-error-model.h:50
ns3::PDCCH_PCFICH_CURVE_SIZE
const uint16_t PDCCH_PCFICH_CURVE_SIZE
Definition:
lte-mi-error-model.h:48
ns3::MI_MAP_QPSK_SIZE
const uint16_t MI_MAP_QPSK_SIZE
Definition:
lte-mi-error-model.h:49
ns3::TbStats_t::mi
double mi
Definition:
lte-mi-error-model.h:62
ns3::LteMiErrorModel::GetPcfichPdcchError
static double GetPcfichPdcchError(const SpectrumValue &sinr)
run the error-model algorithm for the specified PCFICH+PDCCH channels
Definition:
lte-mi-error-model.cc:456
ns3::MI_64QAM_BLER_MAX_ID
const uint16_t MI_64QAM_BLER_MAX_ID
Definition:
lte-mi-error-model.h:57
ns3::MI_MAP_64QAM_SIZE
const uint16_t MI_MAP_64QAM_SIZE
Definition:
lte-mi-error-model.h:51
ns3::LteMiErrorModel::Mib
static double Mib(const SpectrumValue &sinr, const std::vector< int > &map, uint8_t mcs)
find the mmib (mean mutual information per bit) for different modulations of the specified TB ...
Definition:
lte-mi-error-model.cc:325
ns3::MI_QPSK_BLER_MAX_ID
const uint16_t MI_QPSK_BLER_MAX_ID
Definition:
lte-mi-error-model.h:55
ns3::MI_16QAM_BLER_MAX_ID
const uint16_t MI_16QAM_BLER_MAX_ID
Definition:
lte-mi-error-model.h:56
ns3::SpectrumValue
Set of values corresponding to a given SpectrumModel.
Definition:
spectrum-value.h:57
ns3::LteMiErrorModel::MappingMiBler
static double MappingMiBler(double mib, uint8_t ecrId, uint16_t cbSize)
map the mmib (mean mutual information per bit) for different MCS
Definition:
lte-mi-error-model.cc:410
ns3::HarqProcessInfoList_t
std::vector< HarqProcessInfoElement_t > HarqProcessInfoList_t
Definition:
lte-harq-phy.h:47
src
lte
model
lte-mi-error-model.h
Generated on Sat Apr 19 2014 14:07:00 for ns-3 by
1.8.6