A Discrete-Event Network Simulator
API
ns3::GtpcCreateSessionResponseMessage Class Reference

GTP-C Create Session Response Message. More...

#include "epc-gtpc-header.h"

+ Inheritance diagram for ns3::GtpcCreateSessionResponseMessage:
+ Collaboration diagram for ns3::GtpcCreateSessionResponseMessage:

Classes

struct  BearerContextCreated
 Bearer Context structure. More...
 

Public Member Functions

 GtpcCreateSessionResponseMessage ()
 
virtual ~GtpcCreateSessionResponseMessage ()
 
virtual uint32_t Deserialize (Buffer::Iterator start)
 
std::list< BearerContextCreatedGetBearerContextsCreated () const
 Get the Container of Bearer Contexts. More...
 
Cause_t GetCause () const
 Get the Cause. More...
 
virtual TypeId GetInstanceTypeId (void) const
 Get the most derived TypeId for this Object. More...
 
virtual uint32_t GetMessageSize (void) const
 Get the message size. More...
 
GtpcHeader::Fteid_t GetSenderCpFteid () const
 Get the Sender CpFteid. More...
 
virtual uint32_t GetSerializedSize (void) const
 
virtual void Print (std::ostream &os) const
 
virtual void Serialize (Buffer::Iterator start) const
 
void SetBearerContextsCreated (std::list< BearerContextCreated > bearerContexts)
 Set the Bearer Contexts. More...
 
void SetCause (Cause_t cause)
 Set the Cause. More...
 
void SetSenderCpFteid (GtpcHeader::Fteid_t fteid)
 Set the Sender CpFteid. More...
 
- Public Member Functions inherited from ns3::GtpcHeader
 GtpcHeader ()
 
virtual ~GtpcHeader ()
 
void ComputeMessageLength (void)
 Compute the message length according to the message type. More...
 
uint16_t GetMessageLength () const
 Get message length. More...
 
uint8_t GetMessageType () const
 Get message type. More...
 
uint32_t GetSequenceNumber () const
 Get sequence number. More...
 
uint32_t GetTeid () const
 Get TEID. More...
 
void SetIesLength (uint16_t iesLength)
 Set IEs length. More...
 
void SetMessageLength (uint16_t messageLength)
 Set message length. More...
 
void SetMessageType (uint8_t messageType)
 Set message type. More...
 
void SetSequenceNumber (uint32_t sequenceNumber)
 Set sequence number. More...
 
void SetTeid (uint32_t teid)
 Set TEID. More...
 
- Public Member Functions inherited from ns3::Header
virtual ~Header ()
 
virtual uint32_t Deserialize (Buffer::Iterator start)=0
 Deserialize the object from a buffer iterator. More...
 
virtual uint32_t Deserialize (Buffer::Iterator start, Buffer::Iterator end)
 Deserialize the object from a buffer iterator. More...
 
- Public Member Functions inherited from ns3::Chunk
virtual uint32_t Deserialize (Buffer::Iterator start, Buffer::Iterator end)
 Deserialize the object from a buffer iterator. More...
 
- Public Member Functions inherited from ns3::ObjectBase
virtual ~ObjectBase ()
 Virtual destructor. More...
 
void GetAttribute (std::string name, AttributeValue &value) const
 Get the value of an attribute, raising fatal errors if unsuccessful. More...
 
bool GetAttributeFailSafe (std::string name, AttributeValue &value) const
 Get the value of an attribute without raising erros. More...
 
void SetAttribute (std::string name, const AttributeValue &value)
 Set a single attribute, raising fatal errors if unsuccessful. More...
 
bool SetAttributeFailSafe (std::string name, const AttributeValue &value)
 Set a single attribute without raising errors. More...
 
bool TraceConnect (std::string name, std::string context, const CallbackBase &cb)
 Connect a TraceSource to a Callback with a context. More...
 
bool TraceConnectWithoutContext (std::string name, const CallbackBase &cb)
 Connect a TraceSource to a Callback without a context. More...
 
bool TraceDisconnect (std::string name, std::string context, const CallbackBase &cb)
 Disconnect from a TraceSource a Callback previously connected with a context. More...
 
bool TraceDisconnectWithoutContext (std::string name, const CallbackBase &cb)
 Disconnect from a TraceSource a Callback previously connected without a context. More...
 
- Public Member Functions inherited from ns3::GtpcIes
uint32_t DeserializeBearerContextHeader (Buffer::Iterator &i, uint16_t &length)
 Deserialize the Bearer Context Header. More...
 
uint32_t DeserializeBearerQos (Buffer::Iterator &i, EpsBearer &bearerQos)
 Deserialize the eps Bearer QoS. More...
 
uint32_t DeserializeBearerTft (Buffer::Iterator &i, Ptr< EpcTft > epcTft)
 Deserialize the Bearer TFT. More...
 
uint32_t DeserializeCause (Buffer::Iterator &i, Cause_t &cause)
 Deserialize the Cause. More...
 
uint32_t DeserializeEbi (Buffer::Iterator &i, uint8_t &epsBearerId)
 Deserialize the eps Bearer Id. More...
 
uint32_t DeserializeFteid (Buffer::Iterator &i, GtpcHeader::Fteid_t &fteid)
 Deserialize the Fteid. More...
 
uint32_t DeserializeImsi (Buffer::Iterator &i, uint64_t &imsi)
 Deserialize the IMSI. More...
 
uint32_t DeserializeUliEcgi (Buffer::Iterator &i, uint32_t &uliEcgi)
 Deserialize the UliEcgi. More...
 
uint32_t GetSerializedSizeBearerTft (std::list< EpcTft::PacketFilter > packetFilters) const
 
uint64_t ReadNtohU40 (Buffer::Iterator &i)
 
void SerializeBearerContextHeader (Buffer::Iterator &i, uint16_t length) const
 Serialize the Bearer Context Header. More...
 
void SerializeBearerQos (Buffer::Iterator &i, EpsBearer bearerQos) const
 Serialize the eps Bearer QoS. More...
 
void SerializeBearerTft (Buffer::Iterator &i, std::list< EpcTft::PacketFilter > packetFilters) const
 Serialize the Bearer TFT. More...
 
void SerializeCause (Buffer::Iterator &i, Cause_t cause) const
 Serialize the Cause. More...
 
void SerializeEbi (Buffer::Iterator &i, uint8_t epsBearerId) const
 Serialize the eps Bearer Id. More...
 
void SerializeFteid (Buffer::Iterator &i, GtpcHeader::Fteid_t fteid) const
 Serialize the Fteid_t. More...
 
void SerializeImsi (Buffer::Iterator &i, uint64_t imsi) const
 Serialize the IMSI. More...
 
void SerializeUliEcgi (Buffer::Iterator &i, uint32_t uliEcgi) const
 Serialize the UliEcgi. More...
 
void WriteHtonU40 (Buffer::Iterator &i, uint64_t data) const
 

Static Public Member Functions

static TypeId GetTypeId (void)
 Get the type ID. More...
 
- Static Public Member Functions inherited from ns3::GtpcHeader
static TypeId GetTypeId (void)
 Get the type ID. More...
 
- Static Public Member Functions inherited from ns3::Header
static TypeId GetTypeId (void)
 Get the type ID. More...
 
- Static Public Member Functions inherited from ns3::Chunk
static TypeId GetTypeId (void)
 Get the type ID. More...
 
- Static Public Member Functions inherited from ns3::ObjectBase
static TypeId GetTypeId (void)
 Get the type ID. More...
 

Private Attributes

std::list< BearerContextCreatedm_bearerContextsCreated
 Container of Bearer Contexts. More...
 
Cause_t m_cause
 Cause. More...
 
GtpcHeader::Fteid_t m_senderCpFteid
 Sender CpFteid. More...
 

Additional Inherited Members

- Public Types inherited from ns3::GtpcHeader
enum  InterfaceType_t {
  S1U_ENB_GTPU = 0 , S5_SGW_GTPU = 4 , S5_PGW_GTPU = 5 , S5_SGW_GTPC = 6 ,
  S5_PGW_GTPC = 7 , S11_MME_GTPC = 10
}
 Interface Type enumeration. More...
 
enum  MessageType_t {
  Reserved = 0 , CreateSessionRequest = 32 , CreateSessionResponse = 33 , ModifyBearerRequest = 34 ,
  ModifyBearerResponse = 35 , DeleteSessionRequest = 36 , DeleteSessionResponse = 37 , DeleteBearerCommand = 66 ,
  DeleteBearerRequest = 99 , DeleteBearerResponse = 100
}
 Message Type enumeration. More...
 
- Public Types inherited from ns3::GtpcIes
enum  Cause_t { RESERVED = 0 , REQUEST_ACCEPTED = 16 }
 Cause. More...
 
- Public Attributes inherited from ns3::GtpcIes
const uint32_t serializedSizeBearerContextHeader = 4
 Fteid serialized size. More...
 
const uint32_t serializedSizeBearerQos = 26
 Bearer QoS serialized size. More...
 
const uint32_t serializedSizeCause = 6
 Cause serialized size. More...
 
const uint32_t serializedSizeEbi = 5
 EBI serialized size. More...
 
const uint32_t serializedSizeFteid = 13
 Fteid serialized size. More...
 
const uint32_t serializedSizeImsi = 12
 IMSI serialized size. More...
 
const uint32_t serializedSizePacketFilter = 3 + 9 + 9 + 5 + 5 + 3
 Packet filter serialized size. More...
 
const uint32_t serializedSizeUliEcgi = 12
 UliEcgi serialized size. More...
 
- Protected Member Functions inherited from ns3::GtpcHeader
uint32_t PreDeserialize (Buffer::Iterator &i)
 Deserialize the GTP-C header in the GTP-C messages. More...
 
void PreSerialize (Buffer::Iterator &i) const
 Serialize the GTP-C header in the GTP-C messages. More...
 
- Protected Member Functions inherited from ns3::ObjectBase
void ConstructSelf (const AttributeConstructionList &attributes)
 Complete construction of ObjectBase; invoked by derived classes. More...
 
virtual void NotifyConstructionCompleted (void)
 Notifier called once the ObjectBase is fully constructed. More...
 

Detailed Description

GTP-C Create Session Response Message.

Definition at line 443 of file epc-gtpc-header.h.

Constructor & Destructor Documentation

◆ GtpcCreateSessionResponseMessage()

ns3::GtpcCreateSessionResponseMessage::GtpcCreateSessionResponseMessage ( )

Definition at line 650 of file epc-gtpc-header.cc.

References ns3::GtpcHeader::CreateSessionResponse, m_cause, ns3::GtpcHeader::SetMessageType(), and ns3::GtpcHeader::SetSequenceNumber().

+ Here is the call graph for this function:

◆ ~GtpcCreateSessionResponseMessage()

ns3::GtpcCreateSessionResponseMessage::~GtpcCreateSessionResponseMessage ( )
virtual

Definition at line 657 of file epc-gtpc-header.cc.

Member Function Documentation

◆ Deserialize()

uint32_t ns3::GtpcCreateSessionResponseMessage::Deserialize ( Buffer::Iterator  start)
virtual
Parameters
startan iterator which points to where the header should read from.
Returns
the number of bytes read.

This method is used by Packet::RemoveHeader to re-create a header from the byte buffer of a packet. The data read is expected to match bit-for-bit the representation of this header in real networks.

Note that data is not actually removed from the buffer to which the iterator points. Both Packet::RemoveHeader() and Packet::PeekHeader() call Deserialize(), but only the RemoveHeader() has additional statements to remove the header bytes from the underlying buffer and associated metadata.

Reimplemented from ns3::GtpcHeader.

Definition at line 710 of file epc-gtpc-header.cc.

References ns3::GtpcCreateSessionResponseMessage::BearerContextCreated::bearerLevelQos, ns3::GtpcIes::DeserializeBearerContextHeader(), ns3::GtpcIes::DeserializeBearerQos(), ns3::GtpcIes::DeserializeBearerTft(), ns3::GtpcIes::DeserializeCause(), ns3::GtpcIes::DeserializeEbi(), ns3::GtpcIes::DeserializeFteid(), ns3::GtpcCreateSessionResponseMessage::BearerContextCreated::epsBearerId, ns3::GtpcCreateSessionResponseMessage::BearerContextCreated::fteid, ns3::Buffer::Iterator::GetRemainingSize(), GetSerializedSize(), m_bearerContextsCreated, m_cause, m_senderCpFteid, ns3::GtpcHeader::PreDeserialize(), visualizer.core::start(), and ns3::GtpcCreateSessionResponseMessage::BearerContextCreated::tft.

+ Here is the call graph for this function:

◆ GetBearerContextsCreated()

std::list< GtpcCreateSessionResponseMessage::BearerContextCreated > ns3::GtpcCreateSessionResponseMessage::GetBearerContextsCreated ( ) const

Get the Container of Bearer Contexts.

Returns
a list of Bearer Contexts

Definition at line 771 of file epc-gtpc-header.cc.

References m_bearerContextsCreated.

Referenced by ns3::EpcMmeApplication::DoRecvCreateSessionResponse(), and ns3::EpcSgwApplication::DoRecvCreateSessionResponse().

+ Here is the caller graph for this function:

◆ GetCause()

GtpcCreateSessionResponseMessage::Cause_t ns3::GtpcCreateSessionResponseMessage::GetCause ( ) const

Get the Cause.

Returns
the Cause

Definition at line 747 of file epc-gtpc-header.cc.

References m_cause.

◆ GetInstanceTypeId()

TypeId ns3::GtpcCreateSessionResponseMessage::GetInstanceTypeId ( void  ) const
virtual

Get the most derived TypeId for this Object.

This method is typically implemented by ns3::Object::GetInstanceTypeId but some classes which derive from ns3::ObjectBase directly have to implement it themselves.

Returns
The TypeId associated to the most-derived type of this instance.

Reimplemented from ns3::GtpcHeader.

Definition at line 662 of file epc-gtpc-header.cc.

References GetTypeId().

+ Here is the call graph for this function:

◆ GetMessageSize()

uint32_t ns3::GtpcCreateSessionResponseMessage::GetMessageSize ( void  ) const
virtual

Get the message size.

Subclasses are supposed to have a message size greater than zero.

Returns
the message size

Reimplemented from ns3::GtpcHeader.

Definition at line 668 of file epc-gtpc-header.cc.

References ns3::GtpcIes::GetSerializedSizeBearerTft(), m_bearerContextsCreated, ns3::GtpcIes::serializedSizeBearerContextHeader, ns3::GtpcIes::serializedSizeBearerQos, ns3::GtpcIes::serializedSizeCause, ns3::GtpcIes::serializedSizeEbi, and ns3::GtpcIes::serializedSizeFteid.

Referenced by GetSerializedSize().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetSenderCpFteid()

GtpcHeader::Fteid_t ns3::GtpcCreateSessionResponseMessage::GetSenderCpFteid ( ) const

Get the Sender CpFteid.

Returns
the Sender CpFteid

Definition at line 759 of file epc-gtpc-header.cc.

References m_senderCpFteid.

Referenced by ns3::EpcSgwApplication::DoRecvCreateSessionResponse().

+ Here is the caller graph for this function:

◆ GetSerializedSize()

uint32_t ns3::GtpcCreateSessionResponseMessage::GetSerializedSize ( void  ) const
virtual
Returns
the expected size of the header.

This method is used by Packet::AddHeader to store a header into the byte buffer of a packet. This method should return the number of bytes which are needed to store the full header data by Serialize.

Reimplemented from ns3::GtpcHeader.

Definition at line 682 of file epc-gtpc-header.cc.

References GetMessageSize(), and ns3::GtpcHeader::GetSerializedSize().

Referenced by Deserialize().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetTypeId()

TypeId ns3::GtpcCreateSessionResponseMessage::GetTypeId ( void  )
static

Get the type ID.

Returns
the object TypeId

Definition at line 641 of file epc-gtpc-header.cc.

References ns3::TypeId::SetParent().

Referenced by GetInstanceTypeId().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ Print()

void ns3::GtpcCreateSessionResponseMessage::Print ( std::ostream &  os) const
virtual
Parameters
osoutput stream This method is used by Packet::Print to print the content of a header as ascii data to a c++ output stream. Although the header is free to format its output as it wishes, it is recommended to follow a few rules to integrate with the packet pretty printer: start with flags, small field values located between a pair of parens. Values should be separated by whitespace. Follow the parens with the important fields, separated by whitespace. i.e.: (field1 val1 field2 val2 field3 val3) field4 val4 field5 val5

Reimplemented from ns3::GtpcHeader.

Definition at line 741 of file epc-gtpc-header.cc.

References ns3::GtpcHeader::Fteid_t::addr, m_cause, m_senderCpFteid, and ns3::GtpcHeader::Fteid_t::teid.

◆ Serialize()

void ns3::GtpcCreateSessionResponseMessage::Serialize ( Buffer::Iterator  start) const
virtual
Parameters
startan iterator which points to where the header should be written.

This method is used by Packet::AddHeader to store a header into the byte buffer of a packet. The data written is expected to match bit-for-bit the representation of this header in a real network.

Reimplemented from ns3::GtpcHeader.

Definition at line 688 of file epc-gtpc-header.cc.

References ns3::GtpcIes::GetSerializedSizeBearerTft(), m_bearerContextsCreated, m_cause, m_senderCpFteid, ns3::GtpcHeader::PreSerialize(), ns3::GtpcIes::SerializeBearerContextHeader(), ns3::GtpcIes::SerializeBearerQos(), ns3::GtpcIes::SerializeBearerTft(), ns3::GtpcIes::SerializeCause(), ns3::GtpcIes::serializedSizeBearerQos, ns3::GtpcIes::serializedSizeEbi, ns3::GtpcIes::serializedSizeFteid, ns3::GtpcIes::SerializeEbi(), ns3::GtpcIes::SerializeFteid(), and visualizer.core::start().

+ Here is the call graph for this function:

◆ SetBearerContextsCreated()

void ns3::GtpcCreateSessionResponseMessage::SetBearerContextsCreated ( std::list< BearerContextCreated bearerContexts)

Set the Bearer Contexts.

Parameters
bearerContextsa list of Bearer Contexts

Definition at line 777 of file epc-gtpc-header.cc.

References m_bearerContextsCreated.

Referenced by ns3::EpcPgwApplication::DoRecvCreateSessionRequest(), and ns3::EpcSgwApplication::DoRecvCreateSessionResponse().

+ Here is the caller graph for this function:

◆ SetCause()

void ns3::GtpcCreateSessionResponseMessage::SetCause ( GtpcCreateSessionResponseMessage::Cause_t  cause)

Set the Cause.

Parameters
causeThe cause

Definition at line 753 of file epc-gtpc-header.cc.

References m_cause.

Referenced by ns3::EpcPgwApplication::DoRecvCreateSessionRequest(), and ns3::EpcSgwApplication::DoRecvCreateSessionResponse().

+ Here is the caller graph for this function:

◆ SetSenderCpFteid()

void ns3::GtpcCreateSessionResponseMessage::SetSenderCpFteid ( GtpcHeader::Fteid_t  fteid)

Set the Sender CpFteid.

Parameters
fteidthe Sender CpFteid

Definition at line 765 of file epc-gtpc-header.cc.

References m_senderCpFteid.

Referenced by ns3::EpcPgwApplication::DoRecvCreateSessionRequest().

+ Here is the caller graph for this function:

Member Data Documentation

◆ m_bearerContextsCreated

std::list<BearerContextCreated> ns3::GtpcCreateSessionResponseMessage::m_bearerContextsCreated
private

Container of Bearer Contexts.

Definition at line 509 of file epc-gtpc-header.h.

Referenced by Deserialize(), GetBearerContextsCreated(), GetMessageSize(), Serialize(), and SetBearerContextsCreated().

◆ m_cause

Cause_t ns3::GtpcCreateSessionResponseMessage::m_cause
private

◆ m_senderCpFteid

GtpcHeader::Fteid_t ns3::GtpcCreateSessionResponseMessage::m_senderCpFteid
private

Sender CpFteid.

Definition at line 507 of file epc-gtpc-header.h.

Referenced by Deserialize(), GetSenderCpFteid(), Print(), Serialize(), and SetSenderCpFteid().


The documentation for this class was generated from the following files: