A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
ns3::UdpTraceClientHelper Class Reference

Create UdpTraceClient application which sends UDP packets based on a trace file of an MPEG4 stream. More...

#include "udp-client-server-helper.h"

+ Inheritance diagram for ns3::UdpTraceClientHelper:
+ Collaboration diagram for ns3::UdpTraceClientHelper:

Public Member Functions

 UdpTraceClientHelper ()
 Create UdpTraceClientHelper which will make life easier for people trying to set up simulations with udp-client-server.
 
 UdpTraceClientHelper (const Address &addr, const std::string &filename="")
 Create UdpTraceClientHelper which will make life easier for people trying to set up simulations with udp-client-server.
 
 UdpTraceClientHelper (const Address &ip, uint16_t port, const std::string &filename="")
 Create UdpTraceClientHelper which will make life easier for people trying to set up simulations with udp-client-server.
 
- Public Member Functions inherited from ns3::ApplicationHelper
 ApplicationHelper (const std::string &typeId)
 Create an application of a given type ID.
 
 ApplicationHelper (TypeId typeId)
 Create an application of a given type ID.
 
int64_t AssignStreams (NodeContainer c, int64_t stream)
 Assigns a unique (monotonically increasing) stream number to all applications that match the configured type of this application helper instance.
 
ApplicationContainer Install (const std::string &nodeName)
 Install an application on the node configured with all the attributes set with SetAttribute.
 
ApplicationContainer Install (NodeContainer c)
 Install an application on each node of the input container configured with all the attributes set with SetAttribute.
 
ApplicationContainer Install (Ptr< Node > node)
 Install an application on the node configured with all the attributes set with SetAttribute.
 
void SetAttribute (const std::string &name, const AttributeValue &value)
 Helper function used to set the underlying application attributes.
 
void SetTypeId (const std::string &typeId)
 Allow the helper to be repurposed for another application type.
 
void SetTypeId (TypeId typeId)
 Allow the helper to be repurposed for another application type.
 

Additional Inherited Members

- Static Public Member Functions inherited from ns3::ApplicationHelper
static int64_t AssignStreamsToAllApps (NodeContainer c, int64_t stream)
 Assign a fixed random variable stream number to the random variables used by all the applications.
 
- Protected Member Functions inherited from ns3::ApplicationHelper
virtual Ptr< ApplicationDoInstall (Ptr< Node > node)
 Install an application on the node configured with all the attributes set with SetAttribute.
 
- Protected Attributes inherited from ns3::ApplicationHelper
ObjectFactory m_factory
 Object factory.
 

Detailed Description

Create UdpTraceClient application which sends UDP packets based on a trace file of an MPEG4 stream.

Trace files could be downloaded form : https://web.archive.org/web/20190907061916/http://www2.tkn.tu-berlin.de/research/trace/ltvt.html (the 2 first lines of the file should be removed) A valid trace file is a file with 4 columns:

  • -1- the first one represents the frame index
  • -2- the second one indicates the type of the frame: I, P or B
  • -3- the third one indicates the time on which the frame was generated by the encoder
  • -4- the fourth one indicates the frame size in byte

Definition at line 108 of file udp-client-server-helper.h.

Constructor & Destructor Documentation

◆ UdpTraceClientHelper() [1/3]

ns3::UdpTraceClientHelper::UdpTraceClientHelper ( )

Create UdpTraceClientHelper which will make life easier for people trying to set up simulations with udp-client-server.

Definition at line 56 of file udp-client-server-helper.cc.

◆ UdpTraceClientHelper() [2/3]

ns3::UdpTraceClientHelper::UdpTraceClientHelper ( const Address ip,
uint16_t  port,
const std::string &  filename = "" 
)

Create UdpTraceClientHelper which will make life easier for people trying to set up simulations with udp-client-server.

Use this variant with addresses that do not include a port value (e.g., Ipv4Address and Ipv6Address).

Parameters
ipThe IP address of the remote UDP server
portThe port number of the remote UDP server
filenamethe file from which packet traces will be loaded

Definition at line 68 of file udp-client-server-helper.cc.

References port, and ns3::ApplicationHelper::SetAttribute().

+ Here is the call graph for this function:

◆ UdpTraceClientHelper() [3/3]

ns3::UdpTraceClientHelper::UdpTraceClientHelper ( const Address addr,
const std::string &  filename = "" 
)

Create UdpTraceClientHelper which will make life easier for people trying to set up simulations with udp-client-server.

Use this variant with addresses that do include a port value (e.g., InetSocketAddress and Inet6SocketAddress).

Parameters
addrThe address of the remote UDP server
filenamethe file from which packet traces will be loaded

Definition at line 61 of file udp-client-server-helper.cc.

References ns3::ApplicationHelper::SetAttribute().

+ Here is the call graph for this function:

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