cloudFPGA (cF) API  1.0
The documentation of the source code of cloudFPGA (cF)
TxSarEntry Class Reference

#include <tx_sar_table.hpp>

Public Member Functions

 TxSarEntry ()
 

Public Attributes

TxBufPtr appw
 
TxAckNum unak
 
TxAckNum ackd
 
RemotWinSize recv_window
 
LocalWinSize cong_window
 
TcpWindow slowstart_threshold
 
ap_uint< 2 > count
 
bool fastRetransmitted
 
bool finReady
 
bool finSent
 

Detailed Description

Tx SAR Table (TSt) Structure to manage the transmitted data stream in the TCP Tx buffer memory. Every session is allocated with a static Tx buffer of 64KB to store the stream of bytes received from the application layer, until the network layer consumes (.i.e read) them out and acknowledge them. The Tx buffer is managed as a circular buffer with three pointers:

  • 'appw' points to the last byte written by the application layer.
  • 'ackd' holds the sequence number of the last transmitted and acknowledged byte by the network layer (aka SND.NXT),
  • 'unak' holds the sequence number of the last transmitted but not yet acknowledged byte by the network layer (aka SND.UNA).
       ackd                            unak           appw
        |                               |               |
       \|/                             \|/             \|/
    
    –+—+—+—+—+—+—+—+—+—+—+—+—+—+—+—+—+– |269|270|271|272|273|274|275|276|277|278|279|280|281|282|283|284| –+—+—+—+—+—+—+—+—+—+—+—+—+—+—+—+—+–

[TODO - The structure is also used to manage the send window...]

Definition at line 85 of file tx_sar_table.hpp.

Constructor & Destructor Documentation

◆ TxSarEntry()

TxSarEntry::TxSarEntry ( )
inline

Definition at line 97 of file tx_sar_table.hpp.

97 {}

Member Data Documentation

◆ ackd

TxAckNum TxSarEntry::ackd

Definition at line 89 of file tx_sar_table.hpp.

◆ appw

TxBufPtr TxSarEntry::appw

Definition at line 87 of file tx_sar_table.hpp.

◆ cong_window

LocalWinSize TxSarEntry::cong_window

Definition at line 91 of file tx_sar_table.hpp.

◆ count

ap_uint<2> TxSarEntry::count

Definition at line 93 of file tx_sar_table.hpp.

◆ fastRetransmitted

bool TxSarEntry::fastRetransmitted

Definition at line 94 of file tx_sar_table.hpp.

◆ finReady

bool TxSarEntry::finReady

Definition at line 95 of file tx_sar_table.hpp.

◆ finSent

bool TxSarEntry::finSent

Definition at line 96 of file tx_sar_table.hpp.

◆ recv_window

RemotWinSize TxSarEntry::recv_window

Definition at line 90 of file tx_sar_table.hpp.

◆ slowstart_threshold

TcpWindow TxSarEntry::slowstart_threshold

Definition at line 92 of file tx_sar_table.hpp.

◆ unak

TxAckNum TxSarEntry::unak

Definition at line 88 of file tx_sar_table.hpp.


The documentation for this class was generated from the following file: