A Discrete-Event Network Simulator
API
codel-vs-pfifo-basic-test.cc File Reference
#include <iostream>
#include <fstream>
#include <string>
#include "ns3/core-module.h"
#include "ns3/network-module.h"
#include "ns3/internet-module.h"
#include "ns3/point-to-point-module.h"
#include "ns3/applications-module.h"
#include "ns3/error-model.h"
#include "ns3/tcp-header.h"
#include "ns3/udp-header.h"
#include "ns3/enum.h"
#include "ns3/event-id.h"
#include "ns3/ipv4-global-routing-helper.h"
#include "ns3/traffic-control-module.h"
+ Include dependency graph for codel-vs-pfifo-basic-test.cc:

Go to the source code of this file.

Functions

static void CwndTracer (Ptr< OutputStreamWrapper >stream, uint32_t oldval, uint32_t newval)
 
static void TraceCwnd (std::string cwndTrFileName)
 

Detailed Description

Usage

$ ./ns3 run "codel-vs-pfifo-basic-test [Program Options]"

Program Options

–bottleneckBandwidth
Bottleneck bandwidth [5Mbps]
–bottleneckDelay
Bottleneck delay [5ms]
–accessBandwidth
Access link bandwidth [100Mbps]
–accessDelay
Access link delay [0.1ms]
–queueDiscType
Bottleneck queue disc type: PfifoFast, CoDel [PfifoFast]
–queueDiscSize
Bottleneck queue disc size in packets [1000]
–queueSize
Devices queue size in packets [10]
–pktSize
Packet size in bytes [1458]
–startTime
Simulation start time [0.1]
–simDuration
Simulation duration in seconds [60]
–isPcapEnabled
Flag to enable/disable pcap [true]
–pcapFileName
Name of pcap file [pcapFilePfifoFast.pcap]
–cwndTrFileName
Name of cwnd trace file [cwndPfifoFast.tr]
–logging
Flag to enable/disable logging [false]

Definition in file codel-vs-pfifo-basic-test.cc.

Function Documentation

◆ CwndTracer()

static void CwndTracer ( Ptr< OutputStreamWrapper stream,
uint32_t  oldval,
uint32_t  newval 
)
static

Definition at line 58 of file codel-vs-pfifo-basic-test.cc.

References ns3::OutputStreamWrapper::GetStream().

Referenced by TraceCwnd().

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

◆ TraceCwnd()

static void TraceCwnd ( std::string  cwndTrFileName)
static