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
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
{
35
uint64_t
gbrDl
;
36
uint64_t
gbrUl
;
37
uint64_t
mbrDl
;
38
uint64_t
mbrUl
;
39
};
40
41
46
struct
AllocationRetentionPriority
47
{
48
uint8_t
priorityLevel
;
// /< 1-15; 1 = highest
49
bool
preemprionCapability
;
// /< true if bearer can preempt others
50
bool
preemprionVulnerability
;
// true if bearer can be preempted by others
51
};
52
62
struct
EpsBearer
63
{
64
68
enum
Qci
69
{
70
GBR_CONV_VOICE
= 1,
71
GBR_CONV_VIDEO
= 2,
72
GBR_GAMING
= 3,
73
GBR_NON_CONV_VIDEO
= 4,
74
NGBR_IMS
= 5,
75
NGBR_VIDEO_TCP_OPERATOR
= 6,
76
NGBR_VOICE_VIDEO_GAMING
= 7,
77
NGBR_VIDEO_TCP_PREMIUM
= 8,
78
NGBR_VIDEO_TCP_DEFAULT
= 9,
79
}
qci
;
80
81
GbrQosInformation
gbrQosInfo
;
82
AllocationRetentionPriority
arp
;
83
89
EpsBearer
(
Qci
x
);
90
91
EpsBearer
(
Qci
x
,
GbrQosInformation
y);
92
97
bool
IsGbr
()
const
;
98
103
uint8_t
GetPriority
()
const
;
104
111
uint16_t
GetPacketDelayBudgetMs
()
const
;
112
119
double
GetPacketErrorLossRate
()
const
;
120
121
private
:
122
EpsBearer
();
123
};
124
125
}
// namespace ns3
126
127
128
#endif // EPS_BEARER
src
lte
model
eps-bearer.h
Generated on Fri Dec 21 2012 19:00:39 for ns-3 by
1.8.1.2