#include <uwcbr-module.h>
UwCbrModule class is used to manage UWCBR packets and to collect statistics about them. 
Definition at line 161 of file uwcbr-module.h.
 
◆ UwCbrModule()
      
        
          | UwCbrModule::UwCbrModule  | 
          ( | 
           | ) | 
           | 
        
      
 
 
◆ ~UwCbrModule()
  
  
      
        
          | virtual UwCbrModule::~UwCbrModule  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
virtualdefault   | 
  
 
 
◆ command()
  
  
      
        
          | int UwCbrModule::command  | 
          ( | 
          int  | 
          argc,  | 
         
        
           | 
           | 
          const char *const *  | 
          argv  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
overridevirtual   | 
  
 
 
◆ 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 442 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 466 of file uwcbr-module.cpp.
 
 
◆ GetPER()
  
  
      
        
          | double UwCbrModule::GetPER  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
virtual   | 
  
 
Returns the mean Packet Error Rate. 
- Returns
 - Packet Error Rate. 
 
Definition at line 479 of file uwcbr-module.cpp.
 
 
◆ GetRTT()
  
  
      
        
          | double UwCbrModule::GetRTT  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
virtual   | 
  
 
Returns the mean Round Trip Time. 
- Returns
 - Round Trip Time. 
 
Definition at line 436 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 454 of file uwcbr-module.cpp.
 
 
◆ GetTHR()
  
  
      
        
          | double UwCbrModule::GetTHR  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
virtual   | 
  
 
Returns the mean Throughput. 
- Returns
 - Throughput. 
 
Definition at line 493 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 567 of file uwcbr-module.cpp.
 
 
◆ GetTxTime()
  
  
      
        
          | double UwCbrModule::GetTxTime  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
virtual   | 
  
 
Returns the mean transmission time. 
- Returns
 - transmission time. 
 
Definition at line 448 of file uwcbr-module.cpp.
 
 
◆ incrPktInvalid()
  
  
      
        
          | void UwCbrModule::incrPktInvalid  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
protectedvirtual   | 
  
 
Increases by one the number of invalid packets. 
Definition at line 540 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 522 of file uwcbr-module.cpp.
 
 
◆ incrPktOoseq()
  
  
      
        
          | void UwCbrModule::incrPktOoseq  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
protectedvirtual   | 
  
 
Increases by one the number of out of sequence packets received. 
Definition at line 534 of file uwcbr-module.cpp.
 
 
◆ incrPktRecv()
  
  
      
        
          | void UwCbrModule::incrPktRecv  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
protectedvirtual   | 
  
 
Increases by one the number of received packets. 
Definition at line 528 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 261 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 584 of file uwcbr-module.cpp.
 
 
◆ recv() [1/2]
  
  
      
        
          | void UwCbrModule::recv  | 
          ( | 
          Packet *  | 
          p | ) | 
           | 
         
       
   | 
  
overridevirtual   | 
  
 
 
◆ recv() [2/2]
  
  
      
        
          | void UwCbrModule::recv  | 
          ( | 
          Packet *  | 
          p,  | 
         
        
           | 
           | 
          Handler *  | 
          h  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
overridevirtual   | 
  
 
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 344 of file uwcbr-module.cpp.
 
 
◆ resetStats()
  
  
      
        
          | void UwCbrModule::resetStats  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
virtual   | 
  
 
Resets all the statistics of the UWCBR module. 
Definition at line 546 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 507 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 499 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 515 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 299 of file uwcbr-module.h.
 
 
◆ debug_
Flag to enable several levels of debug. 
Definition at line 281 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 282 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 308 of file uwcbr-module.h.
 
 
◆ pkts_invalid
  
  
      
        
          | int UwCbrModule::pkts_invalid | 
         
       
   | 
  
protected   | 
  
 
Total number of invalid packets received. 
Definition at line 295 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 296 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 293 of file uwcbr-module.h.
 
 
◆ pkts_ooseq
  
  
      
        
          | int UwCbrModule::pkts_ooseq | 
         
       
   | 
  
protected   | 
  
 
Total number of packets received out of sequence. 
Definition at line 292 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 290 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 279 of file uwcbr-module.h.
 
 
◆ priority_
  
  
      
        
          | char UwCbrModule::priority_ | 
         
       
   | 
  
protected   | 
  
 
 
◆ rftt
Forward Trip Time seen for last received packet. 
Definition at line 302 of file uwcbr-module.h.
 
 
◆ rttsamples
  
  
      
        
          | int UwCbrModule::rttsamples | 
         
       
   | 
  
protected   | 
  
 
 
◆ sendTmr_
◆ sftt
Smoothed Forward Trip Time, calculated as srtt. 
Definition at line 304 of file uwcbr-module.h.
 
 
◆ sn_check
  
  
      
        
          | bool* UwCbrModule::sn_check | 
         
       
   | 
  
protected   | 
  
 
Used to keep track of the packets already received. 
Definition at line 277 of file uwcbr-module.h.
 
 
◆ srtt
Smoothed Round Trip Time, calculated as for TCP. 
Definition at line 303 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 326 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 288 of file uwcbr-module.h.
 
 
◆ uidcnt_
  
  
      
        
          | int UwCbrModule::uidcnt_ = 0 | 
         
       
   | 
  
staticprotected   | 
  
 
 
The documentation for this class was generated from the following files: