NS-3 based Named Data Networking (NDN) simulator
ndnSIM: NDN, CCN, CCNx, content centric networks
API Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Groups Pages
ns3::ndn::ConsumerZipfMandelbrot Class Reference

NDN app requesting contents following Zipf-Mandelbrot Distbituion. More...

#include <ndn-consumer-zipf-mandelbrot.h>

Inheritance diagram for ns3::ndn::ConsumerZipfMandelbrot:
Collaboration diagram for ns3::ndn::ConsumerZipfMandelbrot:

Public Member Functions

 ConsumerZipfMandelbrot ()
 Default constructor Sets up randomized Number Generator (RNG) Note: m_seq of its parent class ConsumerCbr here is used to record the interest number.
 
virtual void SendPacket ()
 
uint32_t GetNextSeq ()
 
- Public Member Functions inherited from ns3::ndn::ConsumerCbr
 ConsumerCbr ()
 Default constructor Sets up randomizer function and packet sequence number.
 
- Public Member Functions inherited from ns3::ndn::Consumer
 Consumer ()
 Default constructor Sets up randomizer function and packet sequence number.
 
virtual void OnNack (Ptr< const Interest > interest)
 Method that will be called every time new NACK arrives. More...
 
virtual void OnData (Ptr< const Data > contentObject)
 Method that will be called every time new Data arrives. More...
 
virtual void OnTimeout (uint32_t sequenceNumber)
 Timeout event. More...
 
void SendPacket ()
 Actually send packet.
 
virtual void WillSendOutInterest (uint32_t sequenceNumber)
 An event that is fired just before an Interest packet is actually send out (send is inevitable) More...
 
- Public Member Functions inherited from ns3::ndn::App
 App ()
 Default constructor.
 
uint32_t GetId () const
 Get application ID (ID of applications face)
 
virtual void OnInterest (Ptr< const Interest > interest)
 Method that will be called every time new Interest arrives. More...
 

Static Public Member Functions

static TypeId GetTypeId ()
 
- Static Public Member Functions inherited from ns3::ndn::ConsumerCbr
static TypeId GetTypeId ()
 
- Static Public Member Functions inherited from ns3::ndn::Consumer
static TypeId GetTypeId ()
 
- Static Public Member Functions inherited from ns3::ndn::App
static TypeId GetTypeId ()
 

Protected Member Functions

virtual void ScheduleNextPacket ()
 Constructs the Interest packet and sends it using a callback to the underlying NDN protocol.
 
- Protected Member Functions inherited from ns3::ndn::ConsumerCbr
void SetRandomize (const std::string &value)
 Set type of frequency randomization. More...
 
std::string GetRandomize () const
 Get type of frequency randomization. More...
 
- Protected Member Functions inherited from ns3::ndn::Consumer
virtual void StartApplication ()
 Called at time specified by Start.
 
virtual void StopApplication ()
 Called at time specified by Stop.
 
void CheckRetxTimeout ()
 Checks if the packet need to be retransmitted becuase of retransmission timer expiration.
 
void SetRetxTimer (Time retxTimer)
 Modifies the frequency of checking the retransmission timeouts. More...
 
Time GetRetxTimer () const
 Returns the frequency of checking the retransmission timeouts. More...
 
- Protected Member Functions inherited from ns3::ndn::App
virtual void DoDispose ()
 Do cleanup when application is destroyed.
 

Additional Inherited Members

- Protected Attributes inherited from ns3::ndn::ConsumerCbr
double m_frequency
 
bool m_firstTime
 
RandomVariable * m_random
 
std::string m_randomType
 
- Protected Attributes inherited from ns3::ndn::Consumer
UniformVariable m_rand
 nonce generator
 
uint32_t m_seq
 currently requested sequence number
 
uint32_t m_seqMax
 maximum number of sequence number
 
EventId m_sendEvent
 EventId of pending "send packet" event.
 
Time m_retxTimer
 Currently estimated retransmission timer.
 
EventId m_retxEvent
 Event to check whether or not retransmission should be performed.
 
Ptr< RttEstimatorm_rtt
 RTT estimator.
 
Time m_offTime
 Time interval between packets.
 
Name m_interestName
 NDN Name of the Interest (use Name)
 
Time m_interestLifeTime
 LifeTime for interest packet.
 
- Protected Attributes inherited from ns3::ndn::App
bool m_active
 Flag to indicate that application is active (set by StartApplication and StopApplication)
 
Ptr< Facem_face
 automatically created application face through which application communicates
 
TracedCallback< Ptr< const
Interest >, Ptr< App >, Ptr
< Face > > 
m_receivedInterests
 App-level trace of received Interests.
 
TracedCallback< Ptr< const
Interest >, Ptr< App >, Ptr
< Face > > 
m_receivedNacks
 App-level trace of received NACKs.
 
TracedCallback< Ptr< const
Data >, Ptr< App >, Ptr< Face > > 
m_receivedDatas
 App-level trace of received Data.
 
TracedCallback< Ptr< const
Interest >, Ptr< App >, Ptr
< Face > > 
m_transmittedInterests
 App-level trace of transmitted Interests.
 
TracedCallback< Ptr< const
Data >, Ptr< App >, Ptr< Face > > 
m_transmittedDatas
 App-level trace of transmitted Data.
 

Detailed Description

NDN app requesting contents following Zipf-Mandelbrot Distbituion.

The class implements an app which requests contents following Zipf-Mandelbrot Distribution Here is the explaination of Zipf-Mandelbrot Distribution: http://en.wikipedia.org/wiki/Zipf%E2%80%93Mandelbrot_law

Config Paths

ns3::ndn::ConsumerZipfMandelbrot is accessible through the following paths with Config::Set and Config::Connect:

  • /NodeList/[i]/ApplicationList/[i]/$ns3::ndn::App/$ns3::ndn::Consumer/$ns3::ndn::ConsumerCbr/$ns3::ndn::ConsumerZipfMandelbrot
  • /NodeList/[i]/ApplicationList/[i]/$ns3::ndn::App/$ns3::ndn::Consumer/$ns3::ndn::ConsumerZipfMandelbrot
  • /NodeList/[i]/ApplicationList/[i]/$ns3::ndn::App/$ns3::ndn::ConsumerCbr/$ns3::ndn::ConsumerZipfMandelbrot
  • /NodeList/[i]/ApplicationList/[i]/$ns3::ndn::App/$ns3::ndn::ConsumerZipfMandelbrot
  • /NodeList/[i]/ApplicationList/[i]/$ns3::ndn::Consumer/$ns3::ndn::ConsumerCbr/$ns3::ndn::ConsumerZipfMandelbrot
  • /NodeList/[i]/ApplicationList/[i]/$ns3::ndn::Consumer/$ns3::ndn::ConsumerZipfMandelbrot
  • /NodeList/[i]/ApplicationList/[i]/$ns3::ndn::ConsumerCbr/$ns3::ndn::ConsumerZipfMandelbrot
  • /NodeList/[i]/ApplicationList/[i]/$ns3::ndn::ConsumerZipfMandelbrot

Attributes

  • NumberOfContents: Number of the Contents in total
    • Set with class: ns3::UintegerValue
    • Underlying type: uint32_t 0:4294967295
    • Initial value: 100
    • Flags: construct write read
  • q: parameter of improve rank
    • Set with class: ns3::DoubleValue
    • Underlying type: double -1.79769e+308:1.79769e+308
    • Initial value: 0.7
    • Flags: construct write read
  • s: parameter of power
    • Set with class: ns3::DoubleValue
    • Underlying type: double -1.79769e+308:1.79769e+308
    • Initial value: 0.7
    • Flags: construct write read

Attributes defined in parent class ns3::ndn::ConsumerCbr

  • Frequency: Frequency of interest packets
    • Set with class: ns3::DoubleValue
    • Underlying type: double -1.79769e+308:1.79769e+308
    • Initial value: 1.0
    • Flags: construct write read
  • Randomize: Type of send time randomization: none (default), uniform, exponential
    • Set with class: StringValue
    • Underlying type:
    • Initial value: none
    • Flags: construct write read
  • MaxSeq: Maximum sequence number to request
    • Set with class: ns3::IntegerValue
    • Underlying type: uint32_t 0:4294967295
    • Initial value: 4294967295
    • Flags: construct write read

Attributes defined in parent class ns3::ndn::Consumer

  • StartSeq: Initial sequence number
    • Set with class: ns3::IntegerValue
    • Underlying type: int32_t -2147483648:2147483647
    • Initial value: 0
    • Flags: construct write read
  • Prefix: Name of the Interest
    • Set with class: NameValue
    • Underlying type: Name
    • Initial value: /
    • Flags: construct write read
  • LifeTime: LifeTime for interest packet
    • Set with class: ns3::TimeValue
    • Underlying type: Time –9223372036854775808.0ns:+9223372036854775807.0ns
    • Initial value: 2s
    • Flags: construct write read
  • RetxTimer: Timeout defining how frequent retransmission timeouts should be checked
    • Set with class: ns3::TimeValue
    • Underlying type: Time –9223372036854775808.0ns:+9223372036854775807.0ns
    • Initial value: 50ms
    • Flags: construct write read

Attributes defined in parent class ns3::Application

  • StartTime: Time at which the application will start
    • Set with class: ns3::TimeValue
    • Underlying type: Time –9223372036854775808.0ns:+9223372036854775807.0ns
    • Initial value: +0.0ns
    • Flags: construct write read
  • StopTime: Time at which the application will stop
    • Set with class: ns3::TimeValue
    • Underlying type: Time –9223372036854775808.0ns:+9223372036854775807.0ns
    • Initial value: +0.0ns
    • Flags: construct write read

No TraceSources are defined for this type.

TraceSources defined in parent class ns3::ndn::Consumer

  • LastRetransmittedInterestDataDelay: Delay between last retransmitted Interest and received Data
  • FirstInterestDataDelay: Delay between first transmitted Interest and received Data

TraceSources defined in parent class ns3::ndn::App

  • ReceivedInterests: ReceivedInterests
  • ReceivedNacks: ReceivedNacks
  • ReceivedDatas: ReceivedDatas
  • TransmittedInterests: TransmittedInterests
  • TransmittedDatas: TransmittedDatas

Definition at line 47 of file ndn-consumer-zipf-mandelbrot.h.


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