Go to the source code of this file.
Defines | |
#define | ARTP_CONFIG_H 1 |
#define | ARTP_VERSION 1 |
#define | LINK_IDLE(rto) (2 * (rto)) |
#define | INITIAL_WINDOW_SIZE(mss) (3 * (mss)) |
#define | CWND_ACK(mss, old_cwnd) ((mss) * (mss)) / (old_cwnd) |
#define | CWND_DOWN_MULTIPLIER 0.7 |
#define | CWND_RETRANS(mss, old_cwnd) |
#define | RTO_COMPUTE(srtt, init_resend_time) (srtt > 0) ? (4 * (srtt)) : init_resend_time |
#define | LATEST_ACKS_SEND(srtt) ((srtt) / 2.0) |
#define | SRTT_ALPHA 0.875 |
#define | SRTT_COMPUTE(rtt, old_srtt) |
#define | TS_DELTA_ALPHA 0.875 |
#define | TS_DELTA_COMPUTE(current_time, sent_time, srtt, old_ts_delta) |
#define | MAX_ARTP_PACKET_SIZE 2048 |
#define | DUPPLE_SEQ_COUNT 100000 |
#define | MAX_CONFIG_LINE_LENGTH 1000 |
ARTP's
configuraton file.
|
Constant that define the ARTP's version. |
|
Congestion window change after incoming acknowledgement. This macro says how to change congestion window size when any acknowledgement came.
|
|
Congestion window multiplier after packet loss. This constant defines multiplier when retransmission took place (packet loss was detected). |
|
Value: (CWND_DOWN_MULTIPLIER * (old_cwnd) >= INITIAL_WINDOW_SIZE(mss)) \ ? CWND_DOWN_MULTIPLIER * (old_cwnd) \ : INITIAL_WINDOW_SIZE(mss);
|
|
Maximal count of sequence numbers in one item of structure for searching duplicities. |
|
Initial congestion window size
|
|
Latest acknowledgement packet send time. This macro says how to compute time when given acknowledgement packet has to be sent (lately).
|
|
Link idle computing. This macro says how to compute time when we want to decrease congestion window size when connection is idle more than computed time.
|
|
Maximal incoming ARTP packet size |
|
Maximal read line length from config file |
|
Retransmit timeout computing. This macro says how to compute packets' retransmit timeout after incoming ackwnowledgement packet.
|
|
Smooth round trip time computing constant. |
|
Value: ((old_srtt) == 0) ? rtt \ : (SRTT_ALPHA * (old_srtt)) + ((1 - SRTT_ALPHA) * (rtt));
|
|
Time stamp delta computing constant (see below) |
|
Value: ((old_ts_delta) == 0) ? (current_time) - ((sent_time) + (srtt) / 2.0) \ : (TS_DELTA_ALPHA * (old_ts_delta)) + \ ((1 - TS_DELTA_ALPHA) * ((current_time) \ - ((sent_time) + (srtt) / 2.0)))
|