A Discrete-Event Network Simulator
API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
point-to-point-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-2013 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  * Manuel Requena <manuel.requena@cttc.es>
21  */
22 
23 #ifndef POINT_TO_POINT_EPC_HELPER_H
24 #define POINT_TO_POINT_EPC_HELPER_H
25 
26 #include <ns3/object.h>
27 #include <ns3/ipv4-address-helper.h>
28 #include <ns3/data-rate.h>
29 #include <ns3/epc-tft.h>
30 #include <ns3/eps-bearer.h>
31 #include <ns3/epc-helper.h>
32 
33 namespace ns3 {
34 
35 class Node;
36 class NetDevice;
37 class VirtualNetDevice;
38 class EpcSgwPgwApplication;
39 class EpcX2;
40 class EpcMme;
41 
51 {
52 public:
53 
58 
62  virtual ~PointToPointEpcHelper ();
63 
64  // inherited from Object
65  static TypeId GetTypeId (void);
66  virtual void DoDispose ();
67 
68  // inherited from EpcHelper
69  virtual void AddEnb (Ptr<Node> enbNode, Ptr<NetDevice> lteEnbNetDevice, uint16_t cellId);
70  virtual void AddUe (Ptr<NetDevice> ueLteDevice, uint64_t imsi);
71  virtual void AddX2Interface (Ptr<Node> enbNode1, Ptr<Node> enbNode2);
72  virtual void ActivateEpsBearer (Ptr<NetDevice> ueLteDevice, uint64_t imsi, Ptr<EpcTft> tft, EpsBearer bearer);
73  virtual Ptr<Node> GetPgwNode ();
76 
77 
78 
79 private:
80 
89 
94 
103 
106  uint16_t m_s1uLinkMtu;
107 
111  uint16_t m_gtpuUdpPort;
112 
117  std::map<uint64_t, Ptr<NetDevice> > m_imsiEnbDeviceMap;
118 
123 
126  uint16_t m_x2LinkMtu;
127 
128 };
129 
130 
131 
132 
133 } // namespace ns3
134 
135 #endif // POINT_TO_POINT_EPC_HELPER_H
Simulation virtual time values and global simulation resolution.
Definition: nstime.h:79
holds a vector of std::pair of Ptr and interface index.
virtual void ActivateEpsBearer(Ptr< NetDevice > ueLteDevice, uint64_t imsi, Ptr< EpcTft > tft, EpsBearer bearer)
Activate an EPS bearer, setting up the corresponding S1-U tunnel.
virtual void AddUe(Ptr< NetDevice > ueLteDevice, uint64_t imsi)
Notify the EPC of the existance of a new UE which might attach at a later time.
Ptr< EpcSgwPgwApplication > m_sgwPgwApp
Class for representing data rates.
Definition: data-rate.h:71
This class contains the specification of EPS Bearers.
Definition: eps-bearer.h:71
holds a vector of ns3::NetDevice pointers
virtual void DoDispose()
This method is called by Object::Dispose or by the object's destructor, whichever comes first...
virtual void AddEnb(Ptr< Node > enbNode, Ptr< NetDevice > lteEnbNetDevice, uint16_t cellId)
Add an eNB to the EPC.
Ipv4AddressHelper m_x2Ipv4AddressHelper
helper to assign addresses to X2 NetDevices
Base helper class to handle the creation of the EPC entities.
Definition: epc-helper.h:48
virtual Ipv4Address GetUeDefaultGatewayAddress()
Create an EPC network with PointToPoint links.
Ipv4AddressHelper m_ueAddressHelper
SGW-PGW network element.
uint16_t m_gtpuUdpPort
UDP port where the GTP-U Socket is bound, fixed by the standard as 2152.
virtual Ipv4InterfaceContainer AssignUeIpv4Address(NetDeviceContainer ueDevices)
Assign IPv4 addresses to UE devices.
Ipv4AddressHelper m_s1uIpv4AddressHelper
S1-U interfaces.
Ipv4 addresses are stored in host order in this class.
Definition: ipv4-address.h:38
std::map< uint64_t, Ptr< NetDevice > > m_imsiEnbDeviceMap
Map storing for each IMSI the corresponding eNB NetDevice.
virtual ~PointToPointEpcHelper()
Destructor.
virtual void AddX2Interface(Ptr< Node > enbNode1, Ptr< Node > enbNode2)
Add an X2 interface between two eNB.
A helper class to make life easier while doing simple IPv4 address assignment in scripts.
a unique identifier for an interface.
Definition: type-id.h:49
Ptr< VirtualNetDevice > m_tunDevice