IT++ Logo Newcom Logo

itpp::TCP_Sender Class Reference

#include <itpp/protocol/tcp.h>

List of all members.

Public Member Functions

 TCP_Sender (int label)
virtual ~TCP_Sender ()
virtual void setup ()
virtual void release (std::string trace_filename="")
virtual void print_item (std::ostream &, const std::string &)
virtual void set_debug (const bool enable_debug=true)
virtual void set_debug (bool enable_debug, bool enable_signal_debug)
virtual void set_trace (const bool enable_trace=true)
virtual void save_trace (std::string filename)

Public Attributes

Signal< itpp::Packet * > tcp_send
Slot< TCP_Sender, itpp::Packet * > tcp_receive_ack
Slot< TCP_Sender, itpp::Packet * > tcp_socket_write
Slot< TCP_Sender, std::string > tcp_release


Detailed Description

TTCPSender is an entity that models TCP flow and congestion control at the sender side. It is one of the key components of the TCP module.

TTCPSender communicates with its environment via three ports:

The sender is activated when the user entity (e.g. a generator) offers a message, whose length indicates the amount of data to be transferred, or when an ACK is received from the network. In both cases data is only sent if there is any unsent data available, the sending window (determined by the congestion window and by the receiver advertised window) is large enough and the silly window syndrome avoidance algorithm is passed. Data that has been sent remains in the sender buffer, which is modelled in a virtual manner, until it is acknowledged. If data has been ACKed it is erased in the sender buffer and the TCP sender tries to get new data and send it.

TTCPSender can be used with different versions of congestion control: Tahoe, Reno, and New Reno. Moreover, various options (e.g. usage of Nagle/Karn/Go-Back-N algorithms) and parameters (e.g. mss, max cwnd, initial values, timer granularity) can be defined in the input file.

The class provides a simplified connection control via methods Setup and Release. Those methods are only used to reset internal state variables. No control messages are sent over the network, i.e. the sender assumes that the corresponding methods at the receiver side are called as well.

See also:
TTCPSenderSet

TTCPReceiver

Author:
Grevent

Lorang

Bodamer

Definition at line 255 of file tcp.h.


The documentation for this class was generated from the following files:
SourceForge Logo

Generated on Thu Apr 19 14:20:04 2007 for IT++ by Doxygen 1.4.6