A Discrete-Event Network Simulator
Home
Tutorials ▼
English
Documentation ▼
Installation
Manual
Models
Contributing
Wiki
Development ▼
API Docs
Issue Tracker
Merge Requests
API
lte-mi-error-model.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2011 SIGNET LAB. Department of Information Engineering (DEI), University of Padua
3
*
4
* This program is free software; you can redistribute it and/or modify
5
* it under the terms of the GNU General Public License version 2 as
6
* published by the Free Software Foundation;
7
*
8
* This program is distributed in the hope that it will be useful,
9
* but WITHOUT ANY WARRANTY; without even the implied warranty of
10
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
* GNU General Public License for more details.
12
*
13
* You should have received a copy of the GNU General Public License
14
* along with this program; if not, write to the Free Software
15
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
16
*
17
*
18
* Original Work Authors:
19
* Marco Mezzavilla <mezzavil@dei.unipd.it>
20
* Giovanni Tomasi <tomasigv@gmail.com>
21
* Original Work Acknowldegments:
22
* This work was supported by the MEDIEVAL (MultiMEDia transport
23
* for mobIlE Video AppLications) project, which is a
24
* medium-scale focused research project (STREP) of the 7th
25
* Framework Programme (FP7)
26
*
27
* Subsequent integration in LENA and extension done by:
28
* Marco Miozzo <marco.miozzo@cttc.es>
29
*/
30
31
#ifndef LTE_MI_ERROR_MODEL_H
32
#define LTE_MI_ERROR_MODEL_H
33
34
#include "
lte-harq-phy.h
"
35
36
#include <ns3/ptr.h>
37
#include <ns3/spectrum-value.h>
38
39
#include <list>
40
#include <stdint.h>
41
#include <vector>
42
43
namespace
ns3
44
{
45
47
const
uint16_t
PDCCH_PCFICH_CURVE_SIZE
= 46;
49
const
uint16_t
MI_MAP_QPSK_SIZE
= 797;
51
const
uint16_t
MI_MAP_16QAM_SIZE
= 994;
53
const
uint16_t
MI_MAP_64QAM_SIZE
= 752;
55
const
uint16_t
MI_QPSK_MAX_ID
= 9;
57
const
uint16_t
MI_16QAM_MAX_ID
= 16;
59
const
uint16_t
MI_64QAM_MAX_ID
= 28;
// 29,30 and 31 are reserved
61
const
uint16_t
MI_QPSK_BLER_MAX_ID
= 12;
// MI_QPSK_MAX_ID + 3 RETX
63
const
uint16_t
MI_16QAM_BLER_MAX_ID
= 22;
65
const
uint16_t
MI_64QAM_BLER_MAX_ID
= 37;
66
68
struct
TbStats_t
69
{
70
double
tbler
;
71
double
mi
;
72
};
73
77
class
LteMiErrorModel
78
{
79
public
:
88
static
double
Mib
(
const
SpectrumValue
& sinr,
const
std::vector<int>& map, uint8_t mcs);
96
static
double
MappingMiBler
(
double
mib, uint8_t ecrId, uint16_t cbSize);
97
107
static
TbStats_t
GetTbDecodificationStats
(
const
SpectrumValue
& sinr,
108
const
std::vector<int>& map,
109
uint16_t size,
110
uint8_t mcs,
111
HarqProcessInfoList_t
miHistory);
112
118
static
double
GetPcfichPdcchError
(
const
SpectrumValue
& sinr);
119
120
// private:
121
};
122
123
}
// namespace ns3
124
125
#endif
/* LTE_MI_ERROR_MODEL_H */
ns3::LteMiErrorModel
This class provides the BLER estimation based on mutual information metrics.
Definition:
lte-mi-error-model.h:78
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:995
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:1129
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:1040
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:907
ns3::SpectrumValue
Set of values corresponding to a given SpectrumModel.
Definition:
spectrum-value.h:61
lte-harq-phy.h
ns3
Every class exported by the ns3 library is enclosed in the ns3 namespace.
ns3::MI_QPSK_MAX_ID
const uint16_t MI_QPSK_MAX_ID
MI QPSK maximum ID.
Definition:
lte-mi-error-model.h:55
ns3::PDCCH_PCFICH_CURVE_SIZE
const uint16_t PDCCH_PCFICH_CURVE_SIZE
PDCCH PCFICH curve size.
Definition:
lte-mi-error-model.h:47
ns3::MI_MAP_64QAM_SIZE
const uint16_t MI_MAP_64QAM_SIZE
MI map 64QAM size.
Definition:
lte-mi-error-model.h:53
ns3::MI_64QAM_BLER_MAX_ID
const uint16_t MI_64QAM_BLER_MAX_ID
MI 64QAM BLER maximum ID.
Definition:
lte-mi-error-model.h:65
ns3::MI_QPSK_BLER_MAX_ID
const uint16_t MI_QPSK_BLER_MAX_ID
MI QPSK BLER maximum ID.
Definition:
lte-mi-error-model.h:61
ns3::HarqProcessInfoList_t
std::vector< HarqProcessInfoElement_t > HarqProcessInfoList_t
HarqProcessInfoList_t typedef.
Definition:
lte-harq-phy.h:44
ns3::MI_MAP_16QAM_SIZE
const uint16_t MI_MAP_16QAM_SIZE
MI map 16QAM size.
Definition:
lte-mi-error-model.h:51
ns3::MI_MAP_QPSK_SIZE
const uint16_t MI_MAP_QPSK_SIZE
MI map QPSK size.
Definition:
lte-mi-error-model.h:49
ns3::MI_16QAM_BLER_MAX_ID
const uint16_t MI_16QAM_BLER_MAX_ID
MI 16QAM BLER maximum ID.
Definition:
lte-mi-error-model.h:63
ns3::MI_64QAM_MAX_ID
const uint16_t MI_64QAM_MAX_ID
MI 64QAM maximum ID.
Definition:
lte-mi-error-model.h:59
ns3::MI_16QAM_MAX_ID
const uint16_t MI_16QAM_MAX_ID
MI 16QAM maximum ID.
Definition:
lte-mi-error-model.h:57
ns3::TbStats_t
TbStats_t structure.
Definition:
lte-mi-error-model.h:69
ns3::TbStats_t::mi
double mi
Mutual information.
Definition:
lte-mi-error-model.h:71
ns3::TbStats_t::tbler
double tbler
Transport block BLER.
Definition:
lte-mi-error-model.h:70
src
lte
model
lte-mi-error-model.h
Generated on Sun Mar 3 2024 17:11:02 for ns-3 by
1.9.1