A Discrete-Event Network Simulator
Home
Tutorials ▼
English
Portuguese
Docs ▼
Wiki
Manual
Models
Develop ▼
API
Bugs
API
src
lte
model
eps-bearer.h
Go to the documentation of this file.
1
/* -*- Mode: C++; c-file-style: "gnu"; indent-tabs-mode:nil; -*- */
2
/*
3
* Copyright (c) 2011 Centre Tecnologic de Telecomunicacions de Catalunya (CTTC)
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
* Author: Nicola Baldo <nbaldo@cttc.es>
19
*/
20
21
22
#ifndef EPS_BEARER
23
#define EPS_BEARER
24
25
#include <ns3/uinteger.h>
26
27
namespace
ns3
{
28
33
struct
GbrQosInformation
34
{
38
GbrQosInformation
();
39
40
uint64_t
gbrDl
;
41
uint64_t
gbrUl
;
42
uint64_t
mbrDl
;
43
uint64_t
mbrUl
;
44
};
45
46
51
struct
AllocationRetentionPriority
52
{
56
AllocationRetentionPriority
();
57
uint8_t
priorityLevel
;
58
bool
preemptionCapability
;
59
bool
preemptionVulnerability
;
60
};
61
71
struct
EpsBearer
72
{
73
77
enum
Qci
78
{
79
GBR_CONV_VOICE
= 1,
80
GBR_CONV_VIDEO
= 2,
81
GBR_GAMING
= 3,
82
GBR_NON_CONV_VIDEO
= 4,
83
NGBR_IMS
= 5,
84
NGBR_VIDEO_TCP_OPERATOR
= 6,
85
NGBR_VOICE_VIDEO_GAMING
= 7,
86
NGBR_VIDEO_TCP_PREMIUM
= 8,
87
NGBR_VIDEO_TCP_DEFAULT
= 9,
88
}
qci
;
89
90
GbrQosInformation
gbrQosInfo
;
91
AllocationRetentionPriority
arp
;
92
97
EpsBearer
();
98
104
EpsBearer
(
Qci
x
);
105
112
EpsBearer
(
Qci
x
,
GbrQosInformation
y);
113
118
bool
IsGbr
()
const
;
119
124
uint8_t
GetPriority
()
const
;
125
132
uint16_t
GetPacketDelayBudgetMs
()
const
;
133
140
double
GetPacketErrorLossRate
()
const
;
141
142
};
143
144
}
// namespace ns3
145
146
147
#endif // EPS_BEARER
ns3::EpsBearer::GetPacketDelayBudgetMs
uint16_t GetPacketDelayBudgetMs() const
Definition:
eps-bearer.cc:114
ns3::EpsBearer::GBR_CONV_VIDEO
Definition:
eps-bearer.h:80
ns3::EpsBearer::NGBR_VIDEO_TCP_DEFAULT
Definition:
eps-bearer.h:87
ns3::EpsBearer::NGBR_VOICE_VIDEO_GAMING
Definition:
eps-bearer.h:85
ns3::EpsBearer::IsGbr
bool IsGbr() const
Definition:
eps-bearer.cc:61
ns3::EpsBearer::NGBR_IMS
Definition:
eps-bearer.h:83
ns3::GbrQosInformation::gbrUl
uint64_t gbrUl
Guaranteed Bit Rate (bit/s) in uplink.
Definition:
eps-bearer.h:41
ns3::EpsBearer::GetPriority
uint8_t GetPriority() const
Definition:
eps-bearer.cc:84
ns3::EpsBearer
This class contains the specification of EPS Bearers.
Definition:
eps-bearer.h:71
ns3::EpsBearer::NGBR_VIDEO_TCP_PREMIUM
Definition:
eps-bearer.h:86
ns3::EpsBearer::gbrQosInfo
GbrQosInformation gbrQosInfo
GBR QOS information.
Definition:
eps-bearer.h:90
ns3::GbrQosInformation::gbrDl
uint64_t gbrDl
Guaranteed Bit Rate (bit/s) in downlink.
Definition:
eps-bearer.h:40
ns3::EpsBearer::GetPacketErrorLossRate
double GetPacketErrorLossRate() const
Definition:
eps-bearer.cc:144
ns3::AllocationRetentionPriority::preemptionVulnerability
bool preemptionVulnerability
true if bearer can be preempted by others
Definition:
eps-bearer.h:59
ns3::AllocationRetentionPriority::AllocationRetentionPriority
AllocationRetentionPriority()
Default constructor, initializes member variables to zero or equivalent.
Definition:
eps-bearer.cc:38
ns3::EpsBearer::GBR_GAMING
Definition:
eps-bearer.h:81
ns3
Every class exported by the ns3 library is enclosed in the ns3 namespace.
ns3::EpsBearer::qci
enum ns3::EpsBearer::Qci qci
Qos class indicator.
ns3::GbrQosInformation::mbrUl
uint64_t mbrUl
Maximum Bit Rate (bit/s) in uplink.
Definition:
eps-bearer.h:43
ns3::AllocationRetentionPriority
3GPP 23.203 Section 6.1.7.3 Allocation and Retention Priority characteristics
Definition:
eps-bearer.h:51
ns3::AllocationRetentionPriority::preemptionCapability
bool preemptionCapability
true if bearer can preempt others
Definition:
eps-bearer.h:58
ns3::GbrQosInformation::GbrQosInformation
GbrQosInformation()
Default constructor, initializes member variables to zero or equivalent.
Definition:
eps-bearer.cc:30
ns3::EpsBearer::EpsBearer
EpsBearer()
Default constructor.
Definition:
eps-bearer.cc:45
ns3::EpsBearer::NGBR_VIDEO_TCP_OPERATOR
Definition:
eps-bearer.h:84
ns3::GbrQosInformation::mbrDl
uint64_t mbrDl
Maximum Bit Rate (bit/s) in downlink.
Definition:
eps-bearer.h:42
ns3::GbrQosInformation
3GPP TS 36.413 9.2.1.18 GBR QoS Information
Definition:
eps-bearer.h:33
ns3::EpsBearer::GBR_NON_CONV_VIDEO
Definition:
eps-bearer.h:82
ns3::EpsBearer::GBR_CONV_VOICE
Definition:
eps-bearer.h:79
ns3::AllocationRetentionPriority::priorityLevel
uint8_t priorityLevel
1-15; 1 = highest
Definition:
eps-bearer.h:57
ns3::EpsBearer::Qci
Qci
QoS Class Indicator.
Definition:
eps-bearer.h:77
ns3::EpsBearer::arp
AllocationRetentionPriority arp
allocation retention priority
Definition:
eps-bearer.h:91
sample-rng-plot.x
list x
Definition:
sample-rng-plot.py:34
Generated on Wed Nov 7 2018 10:01:59 for ns-3 by
1.8.14