A Discrete-Event Network Simulator
API
 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 
98 
107 
108 
114 
115 
116 
117 private:
118 
124 
129 
133 
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