A Discrete-Event Network Simulator
API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
ns3::LteRlcHeader Class Reference

The packet header for the Radio Link Control (RLC) protocol packets. More...

#include <lte-rlc-header.h>

+ Inheritance diagram for ns3::LteRlcHeader:
+ Collaboration diagram for ns3::LteRlcHeader:

Public Types

enum  ExtensionBit_t { DATA_FIELD_FOLLOWS = 0, E_LI_FIELDS_FOLLOWS = 1 }
 
enum  FramingInfoFirstByte_t { FIRST_BYTE = 0x00, NO_FIRST_BYTE = 0x02 }
 
enum  FramingInfoLastByte_t { LAST_BYTE = 0x00, NO_LAST_BYTE = 0x01 }
 

Public Member Functions

 LteRlcHeader ()
 Constructor. More...
 
 ~LteRlcHeader ()
 
virtual uint32_t Deserialize (Buffer::Iterator start)
 
uint8_t GetFramingInfo () const
 
virtual TypeId GetInstanceTypeId (void) const
 
SequenceNumber10 GetSequenceNumber () const
 
virtual uint32_t GetSerializedSize (void) const
 
uint8_t PopExtensionBit (void)
 
uint16_t PopLengthIndicator (void)
 
virtual void Print (std::ostream &os) const
 
void PushExtensionBit (uint8_t extensionBit)
 
void PushLengthIndicator (uint16_t lengthIndicator)
 
virtual void Serialize (Buffer::Iterator start) const
 
void SetFramingInfo (uint8_t framingInfo)
 
void SetSequenceNumber (SequenceNumber10 sequenceNumber)
 
- Public Member Functions inherited from ns3::Header
virtual ~Header ()
 
- Public Member Functions inherited from ns3::ObjectBase
virtual ~ObjectBase ()
 Virtual destructor. More...
 
void GetAttribute (std::string name, AttributeValue &value) const
 
bool GetAttributeFailSafe (std::string name, AttributeValue &attribute) const
 
void SetAttribute (std::string name, const AttributeValue &value)
 
bool SetAttributeFailSafe (std::string name, const AttributeValue &value)
 
bool TraceConnect (std::string name, std::string context, const CallbackBase &cb)
 
bool TraceConnectWithoutContext (std::string name, const CallbackBase &cb)
 
bool TraceDisconnect (std::string name, std::string context, const CallbackBase &cb)
 
bool TraceDisconnectWithoutContext (std::string name, const CallbackBase &cb)
 

Static Public Member Functions

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

Private Attributes

std::list< uint8_t > m_extensionBits
 
uint8_t m_framingInfo
 
uint16_t m_headerLength
 
std::list< uint16_t > m_lengthIndicators
 
SequenceNumber10 m_sequenceNumber
 

Additional Inherited Members

- Protected Member Functions inherited from ns3::ObjectBase
void ConstructSelf (const AttributeConstructionList &attributes)
 
virtual void NotifyConstructionCompleted (void)
 This method is invoked once all member attributes have been initialized. More...
 

Detailed Description

The packet header for the Radio Link Control (RLC) protocol packets.

Doxygen introspection did not find any typical Config paths.

This class has fields corresponding to those in an RLC header as well as methods for serialization to and deserialization from a byte buffer. It follows 3GPP TS 36.322 Radio Link Control (RLC) protocol specification.


No Attributes are defined for this type.
No TraceSources are defined for this type.

Definition at line 39 of file lte-rlc-header.h.

Member Enumeration Documentation

Enumerator
DATA_FIELD_FOLLOWS 
E_LI_FIELDS_FOLLOWS 

Definition at line 63 of file lte-rlc-header.h.

Enumerator
FIRST_BYTE 
NO_FIRST_BYTE 

Definition at line 68 of file lte-rlc-header.h.

Enumerator
LAST_BYTE 
NO_LAST_BYTE 

Definition at line 73 of file lte-rlc-header.h.

Constructor & Destructor Documentation

ns3::LteRlcHeader::LteRlcHeader ( )

Constructor.

Creates a null header

Definition at line 32 of file lte-rlc-header.cc.

ns3::LteRlcHeader::~LteRlcHeader ( )

Definition at line 39 of file lte-rlc-header.cc.

References m_framingInfo, m_headerLength, and m_sequenceNumber.

Member Function Documentation

uint32_t ns3::LteRlcHeader::Deserialize ( Buffer::Iterator  start)
virtual
Parameters
startan iterator which points to where the header should written.
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.

Implements ns3::Header.

Definition at line 214 of file lte-rlc-header.cc.

References DATA_FIELD_FOLLOWS, E_LI_FIELDS_FOLLOWS, GetSerializedSize(), m_extensionBits, m_framingInfo, m_headerLength, m_lengthIndicators, m_sequenceNumber, ns3::Buffer::Iterator::ReadU8(), and visualizer.core::start().

+ Here is the call graph for this function:

uint8_t ns3::LteRlcHeader::GetFramingInfo ( ) const

Definition at line 59 of file lte-rlc-header.cc.

References m_framingInfo.

Referenced by ns3::LteRlcUm::ReassembleAndDeliver().

+ Here is the caller graph for this function:

TypeId ns3::LteRlcHeader::GetInstanceTypeId ( void  ) const
virtual
Returns
the TypeId associated to the most-derived type of this instance.

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

Implements ns3::ObjectBase.

Definition at line 126 of file lte-rlc-header.cc.

References GetTypeId().

+ Here is the call graph for this function:

SequenceNumber10 ns3::LteRlcHeader::GetSequenceNumber ( void  ) const

Definition at line 65 of file lte-rlc-header.cc.

References m_sequenceNumber.

Referenced by ns3::LteRlcUm::ReassembleAndDeliver().

+ Here is the caller graph for this function:

uint32_t ns3::LteRlcHeader::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.

Implements ns3::Header.

Definition at line 163 of file lte-rlc-header.cc.

References m_headerLength.

Referenced by Deserialize().

+ Here is the caller graph for this function:

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

Definition at line 116 of file lte-rlc-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:

uint8_t ns3::LteRlcHeader::PopExtensionBit ( void  )

Definition at line 97 of file lte-rlc-header.cc.

References m_extensionBits.

Referenced by ns3::LteRlcUm::ReassembleAndDeliver().

+ Here is the caller graph for this function:

uint16_t ns3::LteRlcHeader::PopLengthIndicator ( void  )

Definition at line 106 of file lte-rlc-header.cc.

References m_lengthIndicators.

Referenced by ns3::LteRlcUm::ReassembleAndDeliver().

+ Here is the caller graph for this function:

void ns3::LteRlcHeader::Print ( std::ostream &  os) const
virtual
Parameters
osoutput stream This method is used by Packet::Print to print the content of a trailer as ascii data to a c++ output stream. Although the trailer 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

Implements ns3::Header.

Definition at line 131 of file lte-rlc-header.cc.

References m_extensionBits, m_framingInfo, m_headerLength, m_lengthIndicators, and m_sequenceNumber.

void ns3::LteRlcHeader::PushExtensionBit ( uint8_t  extensionBit)

Definition at line 72 of file lte-rlc-header.cc.

References m_extensionBits, and m_headerLength.

void ns3::LteRlcHeader::PushLengthIndicator ( uint16_t  lengthIndicator)

Definition at line 90 of file lte-rlc-header.cc.

References m_lengthIndicators.

void ns3::LteRlcHeader::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.

Implements ns3::Header.

Definition at line 168 of file lte-rlc-header.cc.

References ns3::SequenceNumber10::GetValue(), m_extensionBits, m_framingInfo, m_lengthIndicators, m_sequenceNumber, visualizer.core::start(), and ns3::Buffer::Iterator::WriteU8().

+ Here is the call graph for this function:

void ns3::LteRlcHeader::SetFramingInfo ( uint8_t  framingInfo)

Definition at line 47 of file lte-rlc-header.cc.

References m_framingInfo.

void ns3::LteRlcHeader::SetSequenceNumber ( SequenceNumber10  sequenceNumber)

Definition at line 53 of file lte-rlc-header.cc.

References m_sequenceNumber.

Member Data Documentation

std::list<uint8_t> ns3::LteRlcHeader::m_extensionBits
private

Definition at line 91 of file lte-rlc-header.h.

Referenced by Deserialize(), PopExtensionBit(), Print(), PushExtensionBit(), and Serialize().

uint8_t ns3::LteRlcHeader::m_framingInfo
private
uint16_t ns3::LteRlcHeader::m_headerLength
private
std::list<uint16_t> ns3::LteRlcHeader::m_lengthIndicators
private
SequenceNumber10 ns3::LteRlcHeader::m_sequenceNumber
private

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