Main Page   Alphabetical List   Data Structures   File List   Data Fields   Globals  

config.h File Reference

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


Detailed Description

ARTP's configuraton file.
Author:
Tomas Rebok
Date:
2004

Define Documentation

#define ARTP_VERSION   1
 

Constant that define the ARTP's version.

#define CWND_ACK mss,
old_cwnd       ((mss) * (mss)) / (old_cwnd)
 

Congestion window change after incoming acknowledgement. This macro says how to change congestion window size when any acknowledgement came.

Parameters:
mss  current maximum segment size
old_cwnd  old size of congestion window

#define CWND_DOWN_MULTIPLIER   0.7
 

Congestion window multiplier after packet loss. This constant defines multiplier when retransmission took place (packet loss was detected).

#define CWND_RETRANS mss,
old_cwnd   
 

Value:

(CWND_DOWN_MULTIPLIER * (old_cwnd) >= INITIAL_WINDOW_SIZE(mss)) \
        ? CWND_DOWN_MULTIPLIER * (old_cwnd) \
        : INITIAL_WINDOW_SIZE(mss);
Congestion window change after packet loss. This macro says how to compute new congestion window size after retransmission of any packet.
Parameters:
mss  current maximum segment size
old_cwnd  old size of congestion window

#define DUPPLE_SEQ_COUNT   100000
 

Maximal count of sequence numbers in one item of structure for searching duplicities.

#define INITIAL_WINDOW_SIZE mss       (3 * (mss))
 

Initial congestion window size

Parameters:
mss  actual maximum segment size

#define LATEST_ACKS_SEND srtt       ((srtt) / 2.0)
 

Latest acknowledgement packet send time. This macro says how to compute time when given acknowledgement packet has to be sent (lately).

Parameters:
srtt  actual smooth round trip time

#define LINK_IDLE rto       (2 * (rto))
 

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.

Parameters:
rto  actual retransmit timeout

#define MAX_ARTP_PACKET_SIZE   2048
 

Maximal incoming ARTP packet size

#define MAX_CONFIG_LINE_LENGTH   1000
 

Maximal read line length from config file

#define RTO_COMPUTE srtt,
init_resend_time       (srtt > 0) ? (4 * (srtt)) : init_resend_time
 

Retransmit timeout computing. This macro says how to compute packets' retransmit timeout after incoming ackwnowledgement packet.

Parameters:
srtt  actual smooth round trip time
init_resend_time  initial retransmit timeout

#define SRTT_ALPHA   0.875
 

Smooth round trip time computing constant.

#define SRTT_COMPUTE rtt,
old_srtt   
 

Value:

((old_srtt) == 0) ? rtt \
                      : (SRTT_ALPHA * (old_srtt)) + ((1 - SRTT_ALPHA) * (rtt));
Smooth round trip time computing. This macro says how to compute smooth round trip time when actual round trip time and old smooth round trip time are given.
Parameters:
rtt  actual round trip time
old_srtt  old value of smooth round trip time

#define TS_DELTA_ALPHA   0.875
 

Time stamp delta computing constant (see below)

#define TS_DELTA_COMPUTE current_time,
sent_time,
srtt,
old_ts_delta   
 

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)))
Timestamp delta computing. This macro says how to compute the difference between our time and our partner's time (timestamp delta).
Parameters:
current_time  actual time
sent_time  sent time of given acknowledgement packet
srtt  actual smooth round trip time
old_ts_delta  old value of timestamp delta


Generated on Fri May 21 07:50:25 2004 for Active Router Transport Protocol (ARTP) by doxygen1.2.15