A Discrete-Event Network Simulator
API
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  * Authors:
18  * Jaume Nin <jnin@cttc.es>
19  * Nicola Baldo <nbaldo@cttc.es>
20  * Manuel Requena <manuel.requena@cttc.es>
21  */
22 
23 #ifndef EPC_HELPER_H
24 #define EPC_HELPER_H
25 
26 #include <ns3/data-rate.h>
27 #include <ns3/epc-tft.h>
28 #include <ns3/eps-bearer.h>
29 #include <ns3/ipv4-address-helper.h>
30 #include <ns3/ipv6-address-helper.h>
31 #include <ns3/object.h>
32 
33 namespace ns3
34 {
35 
36 class Node;
37 class NetDevice;
38 class VirtualNetDevice;
39 class EpcX2;
40 
50 class EpcHelper : public Object
51 {
52  public:
56  EpcHelper();
57 
61  ~EpcHelper() override;
62 
63  // inherited from Object
68  static TypeId GetTypeId();
69  void DoDispose() override;
70 
79  virtual void AddEnb(Ptr<Node> enbNode,
80  Ptr<NetDevice> lteEnbNetDevice,
81  std::vector<uint16_t> cellIds) = 0;
82 
89  virtual void AddUe(Ptr<NetDevice> ueLteDevice, uint64_t imsi) = 0;
90 
97  virtual void AddX2Interface(Ptr<Node> enbNode1, Ptr<Node> enbNode2) = 0;
98 
107  virtual void AddS1Interface(Ptr<Node> enb,
108  Ipv4Address enbAddress,
109  Ipv4Address sgwAddress,
110  std::vector<uint16_t> cellIds) = 0;
111 
124  virtual uint8_t ActivateEpsBearer(Ptr<NetDevice> ueLteDevice,
125  uint64_t imsi,
126  Ptr<EpcTft> tft,
127  EpsBearer bearer) = 0;
128 
134  virtual Ptr<Node> GetSgwNode() const = 0;
135 
143  virtual Ptr<Node> GetPgwNode() const = 0;
144 
153 
162 
168 
174 
181  virtual int64_t AssignStreams(int64_t stream) = 0;
182 };
183 
184 } // namespace ns3
185 
186 #endif // EPC_HELPER_H
Base helper class to handle the creation of the EPC entities.
Definition: epc-helper.h:51
virtual Ipv4InterfaceContainer AssignUeIpv4Address(NetDeviceContainer ueDevices)=0
Assign IPv4 addresses to UE devices.
static TypeId GetTypeId()
Register this type.
Definition: epc-helper.cc:48
virtual int64_t AssignStreams(int64_t stream)=0
Assign a fixed random variable stream number to the random variables used.
virtual Ptr< Node > GetSgwNode() const =0
Get the SGW node.
EpcHelper()
Constructor.
Definition: epc-helper.cc:37
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:55
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 void AddEnb(Ptr< Node > enbNode, Ptr< NetDevice > lteEnbNetDevice, std::vector< uint16_t > cellIds)=0
Add an eNB to the EPC.
virtual Ipv6InterfaceContainer AssignUeIpv6Address(NetDeviceContainer ueDevices)=0
Assign IPv6 addresses to UE devices.
~EpcHelper() override
Destructor.
Definition: epc-helper.cc:42
virtual Ptr< Node > GetPgwNode() const =0
Get the PGW node.
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
a unique identifier for an interface.
Definition: type-id.h:59
Every class exported by the ns3 library is enclosed in the ns3 namespace.