#include <uwcbr-module.h>
UwCbrModule class is used to manage UWCBR packets and to collect statistics about them.
Definition at line 168 of file uwcbr-module.h.
◆ UwCbrModule()
UwCbrModule::UwCbrModule |
( |
| ) |
|
◆ ~UwCbrModule()
UwCbrModule::~UwCbrModule |
( |
| ) |
|
|
virtual |
◆ command()
int UwCbrModule::command |
( |
int |
argc, |
|
|
const char *const * |
argv |
|
) |
| |
|
virtual |
◆ crLayCommand()
int UwCbrModule::crLayCommand |
( |
ClMessage * |
m | ) |
|
|
virtual |
◆ getCbrHeaderSize()
static int UwCbrModule::getCbrHeaderSize |
( |
| ) |
|
|
inlinestaticprotected |
◆ GetFTT()
double UwCbrModule::GetFTT |
( |
| ) |
const |
|
virtual |
Returns the mean Forward Trip Time.
- Returns
- Forward Trip Time.
Definition at line 457 of file uwcbr-module.cpp.
◆ GetFTTstd()
double UwCbrModule::GetFTTstd |
( |
| ) |
const |
|
virtual |
Returns the mean Forward Trip Time Standard Deviation.
- Returns
- Forward Trip Time Standard Deviation.
Definition at line 480 of file uwcbr-module.cpp.
◆ GetPER()
double UwCbrModule::GetPER |
( |
| ) |
const |
|
virtual |
Returns the mean Packet Error Rate.
- Returns
- Packet Error Rate.
Definition at line 495 of file uwcbr-module.cpp.
◆ GetRTT()
double UwCbrModule::GetRTT |
( |
| ) |
const |
|
virtual |
Returns the mean Round Trip Time.
- Returns
- Round Trip Time.
Definition at line 451 of file uwcbr-module.cpp.
◆ GetRTTstd()
double UwCbrModule::GetRTTstd |
( |
| ) |
const |
|
virtual |
Returns the Round Trip Time Standard Deviation.
- Returns
- Round Trip Time Standard Deviation.
Definition at line 469 of file uwcbr-module.cpp.
◆ GetTHR()
double UwCbrModule::GetTHR |
( |
| ) |
const |
|
virtual |
Returns the mean Throughput.
- Returns
- Throughput.
Definition at line 505 of file uwcbr-module.cpp.
◆ getTimeBeforeNextPkt()
double UwCbrModule::getTimeBeforeNextPkt |
( |
| ) |
|
|
protectedvirtual |
Returns the amount of time to wait before the next transmission.
It depends on the PoissonTraffic_ flag.
- Returns
- double Value to use as delay for the next transmission.
- See also
- PoissonTraffic_
Definition at line 583 of file uwcbr-module.cpp.
◆ GetTxTime()
double UwCbrModule::GetTxTime |
( |
| ) |
const |
|
virtual |
Returns the mean transmission time.
- Returns
- transmission time.
Definition at line 463 of file uwcbr-module.cpp.
◆ incrPktInvalid()
void UwCbrModule::incrPktInvalid |
( |
| ) |
|
|
protectedvirtual |
Increases by one the number of invalid packets.
Definition at line 556 of file uwcbr-module.cpp.
◆ incrPktLost()
void UwCbrModule::incrPktLost |
( |
const int & |
npkts | ) |
|
|
protectedvirtual |
Increases the number of packets lost.
- Parameters
-
int& | Number of packets lost. |
Definition at line 538 of file uwcbr-module.cpp.
◆ incrPktOoseq()
void UwCbrModule::incrPktOoseq |
( |
| ) |
|
|
protectedvirtual |
Increases by one the number of out of sequence packets received.
Definition at line 550 of file uwcbr-module.cpp.
◆ incrPktRecv()
void UwCbrModule::incrPktRecv |
( |
| ) |
|
|
protectedvirtual |
Increases by one the number of received packets.
Definition at line 544 of file uwcbr-module.cpp.
◆ initPkt()
void UwCbrModule::initPkt |
( |
Packet * |
p | ) |
|
|
protectedvirtual |
◆ printIdsPkts()
void UwCbrModule::printIdsPkts |
( |
| ) |
const |
|
inline |
Prints the IDs of the packet's headers defined by UWCBR.
Definition at line 268 of file uwcbr-module.h.
◆ printReceivedPacket()
void UwCbrModule::printReceivedPacket |
( |
Packet * |
p | ) |
|
|
protectedvirtual |
Print to tracefile details about a received packet.
- Parameters
-
Packet* | Pointer to the received packet |
Reimplemented in UwTrackerModule.
Definition at line 600 of file uwcbr-module.cpp.
◆ recv() [1/2]
void UwCbrModule::recv |
( |
Packet * |
p | ) |
|
|
virtual |
◆ recv() [2/2]
void UwCbrModule::recv |
( |
Packet * |
p, |
|
|
Handler * |
h |
|
) |
| |
|
virtual |
Performs the reception of packets from upper and lower layers.
- Parameters
-
Packet* | Pointer to the packet will be received. |
Handler* | Handler. |
Reimplemented in UwROVModule, and UwROVCtrModule.
Definition at line 355 of file uwcbr-module.cpp.
◆ resetStats()
void UwCbrModule::resetStats |
( |
| ) |
|
|
virtual |
Resets all the statistics of the UWCBR module.
Definition at line 562 of file uwcbr-module.cpp.
◆ sendPkt()
void UwCbrModule::sendPkt |
( |
| ) |
|
|
protectedvirtual |
◆ sendPktHighPriority()
void UwCbrModule::sendPktHighPriority |
( |
| ) |
|
|
protectedvirtual |
◆ sendPktLowPriority()
void UwCbrModule::sendPktLowPriority |
( |
| ) |
|
|
protectedvirtual |
◆ start()
void UwCbrModule::start |
( |
| ) |
|
|
protectedvirtual |
◆ stop()
void UwCbrModule::stop |
( |
| ) |
|
|
protectedvirtual |
◆ transmit()
void UwCbrModule::transmit |
( |
| ) |
|
|
protectedvirtual |
◆ updateFTT()
void UwCbrModule::updateFTT |
( |
const double & |
ftt | ) |
|
|
protectedvirtual |
Updates the Forward Trip Time.
- Parameters
-
double& | New Forward Trip Time entry. |
Definition at line 519 of file uwcbr-module.cpp.
◆ updateRTT()
void UwCbrModule::updateRTT |
( |
const double & |
rtt | ) |
|
|
protectedvirtual |
Updates the Round Trip Time.
- Parameters
-
double& | New Round Trip Time entry. |
Definition at line 511 of file uwcbr-module.cpp.
◆ updateThroughput()
void UwCbrModule::updateThroughput |
( |
const int & |
bytes, |
|
|
const double & |
dt |
|
) |
| |
|
protectedvirtual |
Updates the Throughput.
- Parameters
-
int& | Bytes of the payload of the last packet received. |
double& | Delay Time between the last two receipts. |
Definition at line 527 of file uwcbr-module.cpp.
◆ UwSendTimer
◆ cnt
Used for check if is the first time that tracefile<ip of sink> is opened.
Definition at line 307 of file uwcbr-module.h.
◆ debug_
Flag to enable several levels of debug.
Definition at line 287 of file uwcbr-module.h.
◆ drop_out_of_order_
int UwCbrModule::drop_out_of_order_ |
|
protected |
Flag to enable or disable the check for out of order packets.
Definition at line 288 of file uwcbr-module.h.
◆ dstAddr_
nsaddr_t UwCbrModule::dstAddr_ |
|
protected |
◆ dstPort_
uint16_t UwCbrModule::dstPort_ |
|
protected |
◆ esn
uint32_t UwCbrModule::esn |
|
protected |
◆ fttsamples
int UwCbrModule::fttsamples |
|
protected |
◆ hrsn
◆ log_suffix
std::string UwCbrModule::log_suffix |
|
protected |
◆ lrtime
double UwCbrModule::lrtime |
|
protected |
◆ period_
double UwCbrModule::period_ |
|
protected |
Period between two consecutive packet transmissions.
Definition at line 315 of file uwcbr-module.h.
◆ pkts_invalid
int UwCbrModule::pkts_invalid |
|
protected |
Total number of invalid packets received.
Definition at line 303 of file uwcbr-module.h.
◆ pkts_last_reset
int UwCbrModule::pkts_last_reset |
|
protected |
Used for error checking after stats are reset.
Set to pkts_lost+pkts_recv each time resetStats is called.
Definition at line 304 of file uwcbr-module.h.
◆ pkts_lost
int UwCbrModule::pkts_lost |
|
protected |
Total number of lost packets, including packets received out of sequence.
Definition at line 301 of file uwcbr-module.h.
◆ pkts_ooseq
int UwCbrModule::pkts_ooseq |
|
protected |
Total number of packets received out of sequence.
Definition at line 299 of file uwcbr-module.h.
◆ pkts_recv
int UwCbrModule::pkts_recv |
|
protected |
Total number of received packets.
Packet out of sequence are not counted here.
Definition at line 297 of file uwcbr-module.h.
◆ pktSize_
int UwCbrModule::pktSize_ |
|
protected |
◆ PoissonTraffic_
int UwCbrModule::PoissonTraffic_ |
|
protected |
1 if the traffic is generated according to a poissonian distribution, 0 otherwise.
Definition at line 285 of file uwcbr-module.h.
◆ priority_
char UwCbrModule::priority_ |
|
protected |
◆ rftt
Forward Trip Time seen for last received packet.
Definition at line 309 of file uwcbr-module.h.
◆ rttsamples
int UwCbrModule::rttsamples |
|
protected |
◆ sendTmr_
◆ sftt
Smoothed Forward Trip Time, calculated as srtt.
Definition at line 311 of file uwcbr-module.h.
◆ sn_check
bool* UwCbrModule::sn_check |
|
protected |
Used to keep track of the packets already received.
Definition at line 283 of file uwcbr-module.h.
◆ srtt
Smoothed Round Trip Time, calculated as for TCP.
Definition at line 310 of file uwcbr-module.h.
◆ sthr
◆ sumbytes
double UwCbrModule::sumbytes |
|
protected |
◆ sumdt
double UwCbrModule::sumdt |
|
protected |
◆ sumftt
double UwCbrModule::sumftt |
|
protected |
◆ sumftt2
double UwCbrModule::sumftt2 |
|
protected |
◆ sumrtt
double UwCbrModule::sumrtt |
|
protected |
◆ sumrtt2
double UwCbrModule::sumrtt2 |
|
protected |
◆ sumtxtimes
double UwCbrModule::sumtxtimes = 0 |
|
protected |
◆ tracefile
std::ofstream UwCbrModule::tracefile |
|
protected |
◆ tracefile_enabler_
int UwCbrModule::tracefile_enabler_ |
|
protected |
True if enable tracefile of received packets, default disabled.
Definition at line 333 of file uwcbr-module.h.
◆ tracefilename
std::string UwCbrModule::tracefilename |
|
protected |
◆ traffic_type_
uint UwCbrModule::traffic_type_ |
|
protected |
◆ txsn
Sequence number of the next packet to be transmitted.
Definition at line 294 of file uwcbr-module.h.
◆ uidcnt_
int UwCbrModule::uidcnt_ = 0 |
|
staticprotected |
The documentation for this class was generated from the following files: