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
epc-helper.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: Jaume Nin <jnin@cttc.es>
19
* Nicola Baldo <nbaldo@cttc.es>
20
*/
21
22
#ifndef EPC_HELPER_H
23
#define EPC_HELPER_H
24
25
#include <ns3/object.h>
26
#include <ns3/ipv4-address-helper.h>
27
#include <ns3/data-rate.h>
28
#include <ns3/epc-tft.h>
29
30
31
namespace
ns3 {
32
33
class
Node;
34
class
NetDevice;
35
class
VirtualNetDevice;
36
class
EpcSgwPgwApplication;
37
46
class
EpcHelper
:
public
Object
47
{
48
public
:
49
53
EpcHelper
();
54
58
virtual
~EpcHelper
();
59
60
// inherited from Object
61
static
TypeId
GetTypeId
(
void
);
62
virtual
void
DoDispose
();
63
64
72
void
AddEnb
(
Ptr<Node>
enbNode,
Ptr<NetDevice>
lteEnbNetDevice);
73
74
86
void
ActivateEpsBearer
(
Ptr<NetDevice>
ueLteDevice,
Ptr<NetDevice>
enbLteDevice,
Ptr<EpcTft>
tft, uint16_t rnti, uint8_t lcid);
87
88
97
Ptr<Node>
GetPgwNode
();
98
106
Ipv4InterfaceContainer
AssignUeIpv4Address
(
NetDeviceContainer
ueDevices);
107
108
113
Ipv4Address
GetUeDefaultGatewayAddress
();
114
115
116
117
private
:
118
123
Ipv4AddressHelper
m_s1uIpv4AddressHelper
;
124
128
Ipv4AddressHelper
m_ueAddressHelper
;
129
130
Ptr<Node>
m_sgwPgw
;
131
Ptr<EpcSgwPgwApplication>
m_sgwPgwApp
;
132
Ptr<VirtualNetDevice>
m_tunDevice
;
133
134
DataRate
m_s1uLinkDataRate
;
135
Time
m_s1uLinkDelay
;
136
uint16_t
m_s1uLinkMtu
;
137
138
142
uint16_t
m_gtpuUdpPort
;
143
144
};
145
146
147
148
149
}
// namespace ns3
150
151
#endif // EPC_HELPER_H
src
lte
helper
epc-helper.h
Generated on Tue Oct 9 2012 16:45:40 for ns-3 by
1.8.1.2