A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
epc-pgw-application.cc
Go to the documentation of this file.
1/*
2 * Copyright (c) 2018 Centre Tecnologic de Telecomunicacions de Catalunya (CTTC)
3 *
4 * SPDX-License-Identifier: GPL-2.0-only
5 *
6 * Author: Manuel Requena <manuel.requena@cttc.es>
7 * (based on epc-sgw-pgw-application.cc)
8 */
9
10#include "epc-pgw-application.h"
11
12#include "epc-gtpu-header.h"
13
14#include "ns3/abort.h"
15#include "ns3/iana-ieee802-numbers.h"
16#include "ns3/inet-socket-address.h"
17#include "ns3/ipv4.h"
18#include "ns3/ipv6-header.h"
19#include "ns3/ipv6.h"
20#include "ns3/log.h"
21#include "ns3/mac48-address.h"
22
23namespace ns3
24{
25
26NS_LOG_COMPONENT_DEFINE("EpcPgwApplication");
27
28/////////////////////////
29// UeInfo
30/////////////////////////
31
36
37void
39{
40 NS_LOG_FUNCTION(this << (uint16_t)bearerId << teid << tft);
41 m_teidByBearerIdMap[bearerId] = teid;
42 return m_tftClassifier.Add(tft, teid);
43}
44
45void
47{
48 NS_LOG_FUNCTION(this << (uint16_t)bearerId);
49 auto it = m_teidByBearerIdMap.find(bearerId);
50 if (it != m_teidByBearerIdMap.end())
51 {
52 m_tftClassifier.Delete(it->second); // delete tft
53 m_teidByBearerIdMap.erase(bearerId);
54 }
55}
56
59{
60 NS_LOG_FUNCTION(this << p);
61 // we hardcode DOWNLINK direction since the PGW is expected to
62 // classify only downlink packets (uplink packets will go to the
63 // internet without any classification).
64 return m_tftClassifier.Classify(p, EpcTft::DOWNLINK, protocolNumber);
65}
66
72
73void
78
84
85void
90
96
97void
102
103/////////////////////////
104// EpcPgwApplication
105/////////////////////////
106
107TypeId
109{
110 static TypeId tid =
111 TypeId("ns3::EpcPgwApplication")
112 .SetParent<Object>()
113 .SetGroupName("Lte")
114 .AddTraceSource("RxFromTun",
115 "Receive data packets from internet in Tunnel NetDevice",
117 "ns3::EpcPgwApplication::RxTracedCallback")
118 .AddTraceSource("RxFromS1u",
119 "Receive data packets from S5 Socket",
121 "ns3::EpcPgwApplication::RxTracedCallback");
122 return tid;
123}
124
125void
127{
128 NS_LOG_FUNCTION(this);
129 m_s5uSocket->SetRecvCallback(MakeNullCallback<void, Ptr<Socket>>());
130 m_s5uSocket = nullptr;
131 m_s5cSocket->SetRecvCallback(MakeNullCallback<void, Ptr<Socket>>());
132 m_s5cSocket = nullptr;
133}
134
136 Ipv4Address s5Addr,
137 const Ptr<Socket> s5uSocket,
138 const Ptr<Socket> s5cSocket)
139 : m_pgwS5Addr(s5Addr),
140 m_s5uSocket(s5uSocket),
141 m_s5cSocket(s5cSocket),
142 m_tunDevice(tunDevice),
143 m_gtpuUdpPort(2152), // fixed by the standard
144 m_gtpcUdpPort(2123) // fixed by the standard
145{
146 NS_LOG_FUNCTION(this << tunDevice << s5Addr << s5uSocket << s5cSocket);
149}
150
155
156bool
158 const Address& source,
159 const Address& dest,
160 uint16_t protocolNumber)
161{
162 NS_LOG_FUNCTION(this << source << dest << protocolNumber << packet << packet->GetSize());
163 m_rxTunPktTrace(packet->Copy());
164
165 // get IP address of UE
166 if (protocolNumber == iana::ieee802numbers::IPV4)
167 {
168 Ipv4Header ipv4Header;
169 packet->PeekHeader(ipv4Header);
170 Ipv4Address ueAddr = ipv4Header.GetDestination();
171 NS_LOG_LOGIC("packet addressed to UE " << ueAddr);
172
173 // find corresponding UeInfo address
174 auto it = m_ueInfoByAddrMap.find(ueAddr);
175 if (it == m_ueInfoByAddrMap.end())
176 {
177 NS_LOG_WARN("unknown UE address " << ueAddr);
178 }
179 else
180 {
181 Ipv4Address sgwAddr = it->second->GetSgwAddr();
182 uint32_t teid = it->second->Classify(packet, protocolNumber);
183 if (teid == 0)
184 {
185 NS_LOG_WARN("no matching bearer for this packet");
186 }
187 else
188 {
189 SendToS5uSocket(packet, sgwAddr, teid);
190 }
191 }
192 }
193 else if (protocolNumber == iana::ieee802numbers::IPV6)
194 {
195 Ipv6Header ipv6Header;
196 packet->PeekHeader(ipv6Header);
197 Ipv6Address ueAddr = ipv6Header.GetDestination();
198 NS_LOG_LOGIC("packet addressed to UE " << ueAddr);
199
200 // find corresponding UeInfo address
201 auto it = m_ueInfoByAddrMap6.find(ueAddr);
202 if (it == m_ueInfoByAddrMap6.end())
203 {
204 NS_LOG_WARN("unknown UE address " << ueAddr);
205 }
206 else
207 {
208 Ipv4Address sgwAddr = it->second->GetSgwAddr();
209 uint32_t teid = it->second->Classify(packet, protocolNumber);
210 if (teid == 0)
211 {
212 NS_LOG_WARN("no matching bearer for this packet");
213 }
214 else
215 {
216 SendToS5uSocket(packet, sgwAddr, teid);
217 }
218 }
219 }
220 else
221 {
222 NS_ABORT_MSG("Unknown IP type");
223 }
224
225 // there is no reason why we should notify the TUN
226 // VirtualNetDevice that he failed to send the packet: if we receive
227 // any bogus packet, it will just be silently discarded.
228 const bool succeeded = true;
229 return succeeded;
230}
231
232void
234{
235 NS_LOG_FUNCTION(this << socket);
236 NS_ASSERT(socket == m_s5uSocket);
237 Ptr<Packet> packet = socket->Recv();
238 m_rxS5PktTrace(packet->Copy());
239
240 GtpuHeader gtpu;
241 packet->RemoveHeader(gtpu);
242 uint32_t teid = gtpu.GetTeid();
243
244 SendToTunDevice(packet, teid);
245}
246
247void
249{
250 NS_LOG_FUNCTION(this << socket);
251 NS_ASSERT(socket == m_s5cSocket);
252 Ptr<Packet> packet = socket->Recv();
253 GtpcHeader header;
254 packet->PeekHeader(header);
255 uint16_t msgType = header.GetMessageType();
256
257 switch (msgType)
258 {
261 break;
262
265 break;
266
269 break;
270
273 break;
274
275 default:
276 NS_FATAL_ERROR("GTP-C message not supported");
277 break;
278 }
279}
280
281void
283{
284 NS_LOG_FUNCTION(this);
285
287 packet->RemoveHeader(msg);
288 uint64_t imsi = msg.GetImsi();
289 uint16_t cellId = msg.GetUliEcgi();
290 NS_LOG_DEBUG("cellId " << cellId << " IMSI " << imsi);
291
292 auto ueit = m_ueInfoByImsiMap.find(imsi);
293 NS_ASSERT_MSG(ueit != m_ueInfoByImsiMap.end(), "unknown IMSI " << imsi);
294 ueit->second->SetSgwAddr(m_sgwS5Addr);
295
296 GtpcHeader::Fteid_t sgwS5cFteid = msg.GetSenderCpFteid();
297 NS_ASSERT_MSG(sgwS5cFteid.interfaceType == GtpcHeader::S5_SGW_GTPC, "Wrong interface type");
298
300 msgOut.SetTeid(sgwS5cFteid.teid);
302
303 GtpcHeader::Fteid_t pgwS5cFteid;
305 pgwS5cFteid.teid = sgwS5cFteid.teid;
306 pgwS5cFteid.addr = m_pgwS5Addr;
307 msgOut.SetSenderCpFteid(pgwS5cFteid);
308
309 std::list<GtpcCreateSessionRequestMessage::BearerContextToBeCreated> bearerContexts =
311 NS_LOG_DEBUG("BearerContextsToBeCreated size = " << bearerContexts.size());
312
313 std::list<GtpcCreateSessionResponseMessage::BearerContextCreated> bearerContextsCreated;
314 for (auto& bearerContext : bearerContexts)
315 {
316 uint32_t teid = bearerContext.sgwS5uFteid.teid;
317 NS_LOG_DEBUG("bearerId " << (uint16_t)bearerContext.epsBearerId << " SGW "
318 << bearerContext.sgwS5uFteid.addr << " TEID " << teid);
319
320 ueit->second->AddBearer(bearerContext.epsBearerId, teid, bearerContext.tft);
321
324 bearerContextOut.fteid.teid = teid;
325 bearerContextOut.fteid.addr = m_pgwS5Addr;
326 bearerContextOut.epsBearerId = bearerContext.epsBearerId;
327 bearerContextOut.bearerLevelQos = bearerContext.bearerLevelQos;
328 bearerContextOut.tft = bearerContext.tft;
329 bearerContextsCreated.push_back(bearerContextOut);
330 }
331
332 NS_LOG_DEBUG("BearerContextsCreated size = " << bearerContextsCreated.size());
333 msgOut.SetBearerContextsCreated(bearerContextsCreated);
334 msgOut.SetTeid(sgwS5cFteid.teid);
335 msgOut.ComputeMessageLength();
336
337 Ptr<Packet> packetOut = Create<Packet>();
338 packetOut->AddHeader(msgOut);
339 NS_LOG_DEBUG("Send CreateSessionResponse to SGW " << sgwS5cFteid.addr);
340 m_s5cSocket->SendTo(packetOut, 0, InetSocketAddress(sgwS5cFteid.addr, m_gtpcUdpPort));
341}
342
343void
345{
346 NS_LOG_FUNCTION(this);
347
349 packet->RemoveHeader(msg);
350 uint64_t imsi = msg.GetImsi();
351 uint16_t cellId = msg.GetUliEcgi();
352 NS_LOG_DEBUG("cellId " << cellId << " IMSI " << imsi);
353
354 auto ueit = m_ueInfoByImsiMap.find(imsi);
355 NS_ASSERT_MSG(ueit != m_ueInfoByImsiMap.end(), "unknown IMSI " << imsi);
356 ueit->second->SetSgwAddr(m_sgwS5Addr);
357
358 std::list<GtpcModifyBearerRequestMessage::BearerContextToBeModified> bearerContexts =
360 NS_LOG_DEBUG("BearerContextsToBeModified size = " << bearerContexts.size());
361
362 for (auto& bearerContext : bearerContexts)
363 {
364 Ipv4Address sgwAddr = bearerContext.fteid.addr;
365 uint32_t teid = bearerContext.fteid.teid;
366 NS_LOG_DEBUG("bearerId " << (uint16_t)bearerContext.epsBearerId << " SGW " << sgwAddr
367 << " TEID " << teid);
368 }
369
372 msgOut.SetTeid(imsi);
373 msgOut.ComputeMessageLength();
374
375 Ptr<Packet> packetOut = Create<Packet>();
376 packetOut->AddHeader(msgOut);
377 NS_LOG_DEBUG("Send ModifyBearerResponse to SGW " << m_sgwS5Addr);
379}
380
381void
383{
384 NS_LOG_FUNCTION(this);
385
387 packet->RemoveHeader(msg);
388
389 std::list<uint8_t> epsBearerIds;
390 for (auto& bearerContext : msg.GetBearerContexts())
391 {
392 NS_LOG_DEBUG("ebid " << (uint16_t)bearerContext.m_epsBearerId);
393 epsBearerIds.push_back(bearerContext.m_epsBearerId);
394 }
395
397 msgOut.SetEpsBearerIds(epsBearerIds);
398 msgOut.SetTeid(msg.GetTeid());
399 msgOut.ComputeMessageLength();
400
401 Ptr<Packet> packetOut = Create<Packet>();
402 packetOut->AddHeader(msgOut);
403 NS_LOG_DEBUG("Send DeleteBearerRequest to SGW " << m_sgwS5Addr);
405}
406
407void
409{
410 NS_LOG_FUNCTION(this);
411
413 packet->RemoveHeader(msg);
414
415 uint64_t imsi = msg.GetTeid();
416 auto ueit = m_ueInfoByImsiMap.find(imsi);
417 NS_ASSERT_MSG(ueit != m_ueInfoByImsiMap.end(), "unknown IMSI " << imsi);
418
419 for (auto& epsBearerId : msg.GetEpsBearerIds())
420 {
421 // Remove de-activated bearer contexts from PGW side
422 NS_LOG_INFO("PGW removing bearer " << (uint16_t)epsBearerId << " of IMSI " << imsi);
423 ueit->second->RemoveBearer(epsBearerId);
424 }
425}
426
427void
429{
430 NS_LOG_FUNCTION(this << packet << teid);
431 NS_LOG_LOGIC("packet size: " << packet->GetSize() << " bytes");
432
433 uint8_t ipType;
434 packet->CopyData(&ipType, 1);
435 ipType = (ipType >> 4) & 0x0f;
436
437 uint16_t protocol = 0;
438 if (ipType == 0x04)
439 {
441 }
442 else if (ipType == 0x06)
443 {
445 }
446 else
447 {
448 NS_ABORT_MSG("Unknown IP type");
449 }
450
451 m_tunDevice->Receive(packet,
452 protocol,
453 m_tunDevice->GetAddress(),
454 m_tunDevice->GetAddress(),
456}
457
458void
460{
461 NS_LOG_FUNCTION(this << packet << sgwAddr << teid);
462
463 GtpuHeader gtpu;
464 gtpu.SetTeid(teid);
465 // From 3GPP TS 29.281 v10.0.0 Section 5.1
466 // Length of the payload + the non obligatory GTP-U header
467 gtpu.SetLength(packet->GetSize() + gtpu.GetSerializedSize() - 8);
468 packet->AddHeader(gtpu);
469 uint32_t flags = 0;
470 m_s5uSocket->SendTo(packet, flags, InetSocketAddress(sgwAddr, m_gtpuUdpPort));
471}
472
473void
475{
476 NS_LOG_FUNCTION(this << sgwS5Addr);
477 m_sgwS5Addr = sgwS5Addr;
478}
479
480void
482{
483 NS_LOG_FUNCTION(this << imsi);
484 m_ueInfoByImsiMap[imsi] = std::make_shared<UeInfo>();
485}
486
487void
489{
490 NS_LOG_FUNCTION(this << imsi << ueAddr);
491 auto ueit = m_ueInfoByImsiMap.find(imsi);
492 NS_ASSERT_MSG(ueit != m_ueInfoByImsiMap.end(), "unknown IMSI" << imsi);
493 ueit->second->SetUeAddr(ueAddr);
494 m_ueInfoByAddrMap[ueAddr] = ueit->second;
495}
496
497void
499{
500 NS_LOG_FUNCTION(this << imsi << ueAddr);
501 auto ueit = m_ueInfoByImsiMap.find(imsi);
502 NS_ASSERT_MSG(ueit != m_ueInfoByImsiMap.end(), "unknown IMSI " << imsi);
503 m_ueInfoByAddrMap6[ueAddr] = ueit->second;
504 ueit->second->SetUeAddr6(ueAddr);
505}
506
507} // namespace ns3
a polymophic address class
Definition address.h:114
Ipv6Address GetUeAddr6()
Get the IPv6 address of the UE.
uint32_t Classify(Ptr< Packet > p, uint16_t protocolNumber)
Classify the packet according to TFTs of this UE.
void SetUeAddr(Ipv4Address addr)
Set the IPv4 address of the UE.
Ipv4Address GetSgwAddr()
Get the address of the SGW to which the UE is connected.
EpcTftClassifier m_tftClassifier
TFT classifier.
void RemoveBearer(uint8_t bearerId)
Delete context of bearer for this UE on PGW side.
Ipv4Address m_sgwAddr
SGW IPv4 address.
Ipv4Address m_ueAddr
UE IPv4 address.
std::map< uint8_t, uint32_t > m_teidByBearerIdMap
TEID By bearer ID Map.
Ipv6Address m_ueAddr6
UE IPv6 address.
Ipv4Address GetUeAddr()
Get the IPv4 address of the UE.
void SetUeAddr6(Ipv6Address addr)
Set the IPv6 address of the UE.
void SetSgwAddr(Ipv4Address addr)
Set the address of the eNB to which the UE is connected.
void AddBearer(uint8_t bearerId, uint32_t teid, Ptr< EpcTft > tft)
Add a bearer for this UE on PGW side.
EpcPgwApplication(const Ptr< VirtualNetDevice > tunDevice, Ipv4Address s5Addr, const Ptr< Socket > s5uSocket, const Ptr< Socket > s5cSocket)
Constructor that binds the tap device to the callback methods.
void SendToS5uSocket(Ptr< Packet > packet, Ipv4Address sgwS5uAddress, uint32_t teid)
Send a data packet to the SGW via the S5-U interface.
void SetUeAddress6(uint64_t imsi, Ipv6Address ueAddr)
set the address of a previously added UE
void SendToTunDevice(Ptr< Packet > packet, uint32_t teid)
Send a data packet to the internet via the SGi interface of the PGW.
std::map< uint64_t, std::shared_ptr< UeInfo > > m_ueInfoByImsiMap
UeInfo stored by IMSI.
void AddSgw(Ipv4Address sgwS5Addr)
Let the PGW be aware of a new SGW.
TracedCallback< Ptr< Packet > > m_rxTunPktTrace
Callback to trace received data packets at Tun NetDevice from internet.
TracedCallback< Ptr< Packet > > m_rxS5PktTrace
Callback to trace received data packets from S5 socket.
void RecvFromS5uSocket(Ptr< Socket > socket)
Method to be assigned to the receiver callback of the S5-U socket.
std::map< Ipv4Address, std::shared_ptr< UeInfo > > m_ueInfoByAddrMap
UeInfo stored by UE IPv4 address.
void DoRecvDeleteBearerResponse(Ptr< Packet > packet)
Process Delete Bearer Response message.
void RecvFromS5cSocket(Ptr< Socket > socket)
Method to be assigned to the receiver callback of the S5-C socket.
void DoRecvDeleteBearerCommand(Ptr< Packet > packet)
Process Delete Bearer Command message.
void AddUe(uint64_t imsi)
Let the PGW be aware of a new UE.
Ptr< Socket > m_s5uSocket
UDP socket to send/receive GTP-U packets to/from the S5 interface.
std::map< Ipv6Address, std::shared_ptr< UeInfo > > m_ueInfoByAddrMap6
UeInfo stored by UE IPv6 address.
void DoDispose() override
Destructor implementation.
uint16_t m_gtpuUdpPort
UDP port to be used for GTP-U.
bool RecvFromTunDevice(Ptr< Packet > packet, const Address &source, const Address &dest, uint16_t protocolNumber)
Method to be assigned to the callback of the SGi TUN VirtualNetDevice.
Ipv4Address m_pgwS5Addr
PGW address of the S5 interface.
Ipv4Address m_sgwS5Addr
SGW address of the S5 interface.
~EpcPgwApplication() override
Destructor.
Ptr< VirtualNetDevice > m_tunDevice
TUN VirtualNetDevice used for tunneling/detunneling IP packets from/to the internet over GTP-U/UDP/IP...
void DoRecvModifyBearerRequest(Ptr< Packet > packet)
Process Modify Bearer Request message.
void DoRecvCreateSessionRequest(Ptr< Packet > packet)
Process Create Session Request message.
uint16_t m_gtpcUdpPort
UDP port to be used for GTPv2-C.
static TypeId GetTypeId()
Get the type ID.
Ptr< Socket > m_s5cSocket
UDP socket to send/receive GTPv2-C packets to/from the S5 interface.
void SetUeAddress(uint64_t imsi, Ipv4Address ueAddr)
Set the address of a previously added UE.
GTP-C Create Session Request Message.
uint64_t GetImsi() const
Get the IMSI.
GtpcHeader::Fteid_t GetSenderCpFteid() const
Get the Sender CpFteid.
uint32_t GetUliEcgi() const
Get the UliEcgi.
std::list< BearerContextToBeCreated > GetBearerContextsToBeCreated() const
Get the Bearer Contexts.
GTP-C Create Session Response Message.
void SetCause(Cause_t cause)
Set the Cause.
void SetBearerContextsCreated(std::list< BearerContextCreated > bearerContexts)
Set the Bearer Contexts.
void SetSenderCpFteid(GtpcHeader::Fteid_t fteid)
Set the Sender CpFteid.
GTP-C Delete Bearer Command Message.
std::list< BearerContext > GetBearerContexts() const
Get the Bearer contexts.
GTP-C Delete Bearer Request Message.
void SetEpsBearerIds(std::list< uint8_t > epsBearerIds)
Set the Bearers IDs.
GTP-C Delete Bearer Response Message.
std::list< uint8_t > GetEpsBearerIds() const
Get the Bearers IDs.
Header of the GTPv2-C protocol.
uint8_t GetMessageType() const
Get message type.
void ComputeMessageLength()
Compute the message length according to the message type.
void SetTeid(uint32_t teid)
Set TEID.
uint32_t GetTeid() const
Get TEID.
GTP-C Modify Bearer Request Message.
uint64_t GetImsi() const
Get the IMSI.
uint32_t GetUliEcgi() const
Get the UliEcgi.
std::list< BearerContextToBeModified > GetBearerContextsToBeModified() const
Get the Bearer Contexts.
GTP-C Modify Bearer Response Message.
void SetCause(Cause_t cause)
Set the Cause.
Implementation of the GPRS Tunnelling Protocol header according to GTPv1-U Release 10 as per 3Gpp TS ...
void SetTeid(uint32_t teid)
Set TEID function.
uint32_t GetSerializedSize() const override
uint32_t GetTeid() const
Get a tunnel endpoint identificator (TEID).
void SetLength(uint16_t length)
Set the length in octets of the payload.
an Inet address class
Ipv4 addresses are stored in host order in this class.
Packet header for IPv4.
Definition ipv4-header.h:23
Ipv4Address GetDestination() const
Describes an IPv6 address.
Packet header for IPv6.
Definition ipv6-header.h:24
Ipv6Address GetDestination() const
Get the "Destination address" field.
@ PACKET_HOST
Packet addressed to us.
Definition net-device.h:315
A base class which provides memory management and object aggregation.
Definition object.h:81
Smart pointer class similar to boost::intrusive_ptr.
Definition ptr.h:70
a unique identifier for an interface.
Definition type-id.h:50
TypeId SetParent(TypeId tid)
Set the parent TypeId.
Definition type-id.cc:1003
#define NS_ASSERT(condition)
At runtime, in debugging builds, if this condition is not true, the program prints the source file,...
Definition assert.h:55
#define NS_ASSERT_MSG(condition, message)
At runtime, in debugging builds, if this condition is not true, the program prints the message to out...
Definition assert.h:76
Callback< R, Args... > MakeCallback(R(T::*memPtr)(Args...), OBJ objPtr)
Build Callbacks for class method members which take varying numbers of arguments and potentially retu...
Definition callback.h:690
Callback< R, Args... > MakeNullCallback()
Build null Callbacks which take no arguments, for varying number of template arguments,...
Definition callback.h:734
#define NS_FATAL_ERROR(msg)
Report a fatal error with a message and terminate.
#define NS_ABORT_MSG(msg)
Unconditional abnormal program termination with a message.
Definition abort.h:38
#define NS_LOG_COMPONENT_DEFINE(name)
Define a Log component with a specific name.
Definition log.h:201
#define NS_LOG_DEBUG(msg)
Use NS_LOG to output a message of level LOG_DEBUG.
Definition log.h:267
#define NS_LOG_LOGIC(msg)
Use NS_LOG to output a message of level LOG_LOGIC.
Definition log.h:281
#define NS_LOG_FUNCTION(parameters)
If log level LOG_FUNCTION is enabled, this macro will output all input parameters separated by ",...
#define NS_LOG_WARN(msg)
Use NS_LOG to output a message of level LOG_WARN.
Definition log.h:260
#define NS_LOG_INFO(msg)
Use NS_LOG to output a message of level LOG_INFO.
Definition log.h:274
Ptr< T > Create(Ts &&... args)
Create class instances by constructors with varying numbers of arguments and return them by Ptr.
Definition ptr.h:492
Ptr< const TraceSourceAccessor > MakeTraceSourceAccessor(T a)
Create a TraceSourceAccessor which will control access to the underlying trace source.
constexpr uint16_t IPV6
IPv6 EtherType [RFC2464].
constexpr uint16_t IPV4
IPv4 EtherType [RFC894].
Every class exported by the ns3 library is enclosed in the ns3 namespace.
Ptr< EpcTft > tft
Bearer traffic flow template.
Ipv4Address addr
IPv4 address.
InterfaceType_t interfaceType
Interface type.