A Discrete-Event Network Simulator
API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
multirate.cc File Reference
#include "ns3/core-module.h"
#include "ns3/network-module.h"
#include "ns3/applications-module.h"
#include "ns3/mobility-module.h"
#include "ns3/stats-module.h"
#include "ns3/random-variable-stream.h"
#include "ns3/wifi-module.h"
#include "ns3/internet-module.h"
#include "ns3/flow-monitor-helper.h"
#include "ns3/olsr-helper.h"
#include "ns3/ipv4-static-routing-helper.h"
#include "ns3/ipv4-list-routing-helper.h"
#include <iostream>
#include <fstream>
+ Include dependency graph for multirate.cc:

Go to the source code of this file.

Classes

class  Experiment
 Helper class for UAN CW MAC example. More...
 

Functions

static Vector GetPosition (Ptr< Node > node)
 
int main (int argc, char *argv[])
 
 NS_LOG_COMPONENT_DEFINE ("multirate")
 Scenarios: 100 nodes, multiple simultaneous flows, multi-hop ad hoc, routing, and mobility. More...
 
static std::string PrintPosition (Ptr< Node > client, Ptr< Node > server)
 

Function Documentation

static Vector GetPosition ( Ptr< Node node)
inlinestatic

Definition at line 315 of file multirate.cc.

References ns3::Object::GetObject(), and ns3::MobilityModel::GetPosition().

Referenced by ns3::LteHelper::AttachToClosestEnb(), ns3::LteEpcE2eDataTestCase::DoRun(), PrintGnuplottableEnbListToFile(), PrintGnuplottableUeListToFile(), PrintPosition(), and NetAnimExperiment::Run().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

NS_LOG_COMPONENT_DEFINE ( "multirate"  )

Scenarios: 100 nodes, multiple simultaneous flows, multi-hop ad hoc, routing, and mobility.

QUICK INSTRUCTIONS:

To optimize build: ./waf -d optimized configure ./waf

To compile: ./waf –run multirate

To compile with command line(useful for varying parameters): ./waf –run "multirate --totalTime=0.3s --rateManager=ns3::MinstrelWifiManager"

To turn on NS_LOG: export NS_LOG=multirate=level_all (can only view log if built with ./waf -d debug configure)

To debug: ./waf –shell gdb ./build/debug/examples/wireless/multirate

To view pcap files: tcpdump -nn -tt -r filename.pcap

To monitor the files: tail -f filename.pcap

static std::string PrintPosition ( Ptr< Node client,
Ptr< Node server 
)
inlinestatic

Definition at line 322 of file multirate.cc.

References ns3::Ipv4::GetAddress(), ns3::Node::GetDevice(), ns3::Ipv4InterfaceAddress::GetLocal(), ns3::Object::GetObject(), GetPosition(), ns3::Vector3D::x, ns3::Vector3D::y, and ns3::Vector3D::z.

Referenced by Experiment::ApplicationSetup().

+ Here is the call graph for this function:

+ Here is the caller graph for this function: