A Discrete-Event Network Simulator
API
emu-epc-helper.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2011-2019 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 EMU_EPC_HELPER_H
23 #define EMU_EPC_HELPER_H
24 
25 #include "ns3/no-backhaul-epc-helper.h"
26 
27 namespace ns3
28 {
29 
42 {
43  public:
47  EmuEpcHelper();
48 
52  ~EmuEpcHelper() override;
53 
54  // inherited from Object
59  static TypeId GetTypeId();
60  TypeId GetInstanceTypeId() const override;
61  void DoDispose() override;
62 
63  // inherited from EpcHelper
64  void AddEnb(Ptr<Node> enbNode,
65  Ptr<NetDevice> lteEnbNetDevice,
66  std::vector<uint16_t> cellIds) override;
67  void AddX2Interface(Ptr<Node> enbNode1, Ptr<Node> enbNode2) override;
68 
69  private:
74 
79 
83  std::string m_sgwDeviceName;
84 
88  std::string m_enbDeviceName;
89 
93  std::string m_sgwMacAddress;
94 
98  std::string m_enbMacAddressBase;
99 };
100 
101 } // namespace ns3
102 
103 #endif // EMU_EPC_HELPER_H
Create an EPC network using EmuFdNetDevice.
TypeId GetInstanceTypeId() const override
Get the most derived TypeId for this Object.
EmuEpcHelper()
Constructor.
static TypeId GetTypeId()
Register this type.
~EmuEpcHelper() override
Destructor.
Ipv4AddressHelper m_epcIpv4AddressHelper
helper to assign addresses to S1-U NetDevices
std::string m_enbMacAddressBase
First 5 bytes of the Enb MAC address base.
void DoDispose() override
Destructor implementation.
std::string m_enbDeviceName
The name of the device used for the S1-U interface of the eNB.
std::string m_sgwDeviceName
The name of the device used for the S1-U interface of the SGW.
std::string m_sgwMacAddress
MAC address used for the SGW.
void AddX2Interface(Ptr< Node > enbNode1, Ptr< Node > enbNode2) override
Add an X2 interface between two eNB.
Ipv4InterfaceContainer m_sgwIpIfaces
Container for Ipv4Interfaces of the SGW.
void AddEnb(Ptr< Node > enbNode, Ptr< NetDevice > lteEnbNetDevice, std::vector< uint16_t > cellIds) override
Add an eNB to the EPC.
A helper class to make life easier while doing simple IPv4 address assignment in scripts.
holds a vector of std::pair of Ptr<Ipv4> and interface index.
Create an EPC network with PointToPoint links between the core network nodes.
a unique identifier for an interface.
Definition: type-id.h:60
Every class exported by the ns3 library is enclosed in the ns3 namespace.