A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
epc-helper.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2011-2013 Centre Tecnologic de Telecomunicacions de Catalunya (CTTC)
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 * Author: Jaume Nin <jnin@cttc.es>
18 * Nicola Baldo <nbaldo@cttc.es>
19 * Manuel Requena <manuel.requena@cttc.es>
20 */
21
22#ifndef EPC_HELPER_H
23#define EPC_HELPER_H
24
25#include <ns3/data-rate.h>
26#include <ns3/epc-tft.h>
27#include <ns3/eps-bearer.h>
28#include <ns3/ipv4-address-helper.h>
29#include <ns3/ipv6-address-helper.h>
30#include <ns3/object.h>
31
32namespace ns3
33{
34
35class Node;
36class NetDevice;
37class VirtualNetDevice;
38class EpcX2;
39
49class EpcHelper : public Object
50{
51 public:
55 EpcHelper();
56
60 ~EpcHelper() override;
61
62 // inherited from Object
67 static TypeId GetTypeId();
68 void DoDispose() override;
69
78 virtual void AddEnb(Ptr<Node> enbNode,
79 Ptr<NetDevice> lteEnbNetDevice,
80 std::vector<uint16_t> cellIds) = 0;
81
88 virtual void AddUe(Ptr<NetDevice> ueLteDevice, uint64_t imsi) = 0;
89
96 virtual void AddX2Interface(Ptr<Node> enbNode1, Ptr<Node> enbNode2) = 0;
97
106 virtual void AddS1Interface(Ptr<Node> enb,
107 Ipv4Address enbAddress,
108 Ipv4Address sgwAddress,
109 std::vector<uint16_t> cellIds) = 0;
110
123 virtual uint8_t ActivateEpsBearer(Ptr<NetDevice> ueLteDevice,
124 uint64_t imsi,
125 Ptr<EpcTft> tft,
126 EpsBearer bearer) = 0;
127
133 virtual Ptr<Node> GetSgwNode() const = 0;
134
142 virtual Ptr<Node> GetPgwNode() const = 0;
143
152
161
167
173
180 virtual int64_t AssignStreams(int64_t stream) = 0;
181};
182
183} // namespace ns3
184
185#endif // EPC_HELPER_H
Base helper class to handle the creation of the EPC entities.
Definition: epc-helper.h:50
virtual Ipv4InterfaceContainer AssignUeIpv4Address(NetDeviceContainer ueDevices)=0
Assign IPv4 addresses to UE devices.
static TypeId GetTypeId()
Register this type.
Definition: epc-helper.cc:47
virtual int64_t AssignStreams(int64_t stream)=0
Assign a fixed random variable stream number to the random variables used.
EpcHelper()
Constructor.
Definition: epc-helper.cc:36
virtual void AddX2Interface(Ptr< Node > enbNode1, Ptr< Node > enbNode2)=0
Add an X2 interface between two eNB.
void DoDispose() override
Destructor implementation.
Definition: epc-helper.cc:54
virtual void AddUe(Ptr< NetDevice > ueLteDevice, uint64_t imsi)=0
Notify the EPC of the existence of a new UE which might attach at a later time.
virtual Ptr< Node > GetSgwNode() const =0
Get the SGW node.
virtual void AddEnb(Ptr< Node > enbNode, Ptr< NetDevice > lteEnbNetDevice, std::vector< uint16_t > cellIds)=0
Add an eNB to the EPC.
virtual Ptr< Node > GetPgwNode() const =0
Get the PGW node.
virtual Ipv6InterfaceContainer AssignUeIpv6Address(NetDeviceContainer ueDevices)=0
Assign IPv6 addresses to UE devices.
~EpcHelper() override
Destructor.
Definition: epc-helper.cc:41
virtual Ipv4Address GetUeDefaultGatewayAddress()=0
virtual void AddS1Interface(Ptr< Node > enb, Ipv4Address enbAddress, Ipv4Address sgwAddress, std::vector< uint16_t > cellIds)=0
Add an S1 interface between an eNB and a SGW.
virtual Ipv6Address GetUeDefaultGatewayAddress6()=0
virtual uint8_t ActivateEpsBearer(Ptr< NetDevice > ueLteDevice, uint64_t imsi, Ptr< EpcTft > tft, EpsBearer bearer)=0
Activate an EPS bearer, setting up the corresponding S1-U tunnel.
This class contains the specification of EPS Bearers.
Definition: eps-bearer.h:91
Ipv4 addresses are stored in host order in this class.
Definition: ipv4-address.h:42
holds a vector of std::pair of Ptr<Ipv4> and interface index.
Describes an IPv6 address.
Definition: ipv6-address.h:49
Keep track of a set of IPv6 interfaces.
holds a vector of ns3::NetDevice pointers
A base class which provides memory management and object aggregation.
Definition: object.h:89
Smart pointer class similar to boost::intrusive_ptr.
Definition: ptr.h:78
a unique identifier for an interface.
Definition: type-id.h:59
Every class exported by the ns3 library is enclosed in the ns3 namespace.