A Discrete-Event Network Simulator
API
mesh.cc File Reference
#include <iostream>
#include <sstream>
#include <fstream>
#include "ns3/core-module.h"
#include "ns3/internet-module.h"
#include "ns3/network-module.h"
#include "ns3/applications-module.h"
#include "ns3/mesh-module.h"
#include "ns3/mobility-module.h"
#include "ns3/mesh-helper.h"
#include "ns3/yans-wifi-helper.h"
+ Include dependency graph for mesh.cc:

Go to the source code of this file.

Classes

class  MeshTest
 MeshTest class. More...
 

Functions

void RxTrace (Ptr< const Packet > p)
 
void TxTrace (Ptr< const Packet > p)
 

Variables

uint32_t g_udpRxCount = 0
 
uint32_t g_udpTxCount = 0
 

Detailed Description

Usage

$ ./ns3 run "mesh [Program Options]"

Program Options

–x-size
Number of nodes in a row grid [3]
–y-size
Number of rows in a grid [3]
–step
Size of edge in our grid (meters) [50]
–start
Maximum random start delay for beacon jitter (sec) [0.1]
–time
Simulation time (sec) [100]
–packet-interval
Interval between packets in UDP ping (sec) [1]
–packet-size
Size of packets in UDP ping (bytes) [1024]
–interfaces
Number of radio interfaces used by each mesh point [1]
–channels
Use different frequency channels for different interfaces [true]
–pcap
Enable PCAP traces on interfaces [false]
–ascii
Enable Ascii traces on interfaces [false]
–stack
Type of protocol stack. ns3::Dot11sStack by default [ns3::Dot11sStack]
–root
Mac address of root mesh point in HWMP [ff:ff:ff:ff:ff:ff]

Definition in file mesh.cc.

Function Documentation

◆ RxTrace()

void RxTrace ( Ptr< const Packet p)

Definition at line 101 of file mesh.cc.

References g_udpRxCount, ns3::Packet::GetSize(), and NS_LOG_DEBUG.

Referenced by MeshTest::InstallApplication().

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

◆ TxTrace()

void TxTrace ( Ptr< const Packet p)

Definition at line 94 of file mesh.cc.

References g_udpTxCount, ns3::Packet::GetSize(), and NS_LOG_DEBUG.

Referenced by MeshTest::InstallApplication().

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

Variable Documentation

◆ g_udpRxCount

uint32_t g_udpRxCount = 0

Definition at line 91 of file mesh.cc.

Referenced by MeshTest::Run(), and RxTrace().

◆ g_udpTxCount

uint32_t g_udpTxCount = 0

Definition at line 90 of file mesh.cc.

Referenced by MeshTest::Run(), and TxTrace().