|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface CongestionControl
congestion control interface
| Method Summary | |
|---|---|
void |
close()
Callback function to be called when a UDT connection is closed. |
long |
getAckInterval()
get the ACK interval. |
double |
getCongestionWindowSize()
get the congestion window size |
long |
getEstimatedLinkCapacity()
get the current value of the estimated link capacity |
long |
getPacketArrivalRate()
get the current value of the packet arrival |
double |
getSendInterval()
get the current value of the inter-packet interval in microseconds |
void |
init()
Callback function to be called (only) at the start of a UDT connection. |
void |
onACK(long ackSeqno)
Callback function to be called when an ACK packet is received. |
void |
onLoss(List<Integer> lossInfo)
Callback function to be called when a loss report is received. |
void |
onPacketReceive(long packetSeqNo)
Callback function to be called when a data packet is received. |
void |
onPacketSend(long packetSeqNo)
Callback function to be called when a data packet is sent. |
void |
onTimeout()
Callback function to be called when a timeout event occurs |
void |
setAckInterval(long ackInterval)
set the ACK interval. |
void |
setRTT(long rtt,
long rttVar)
set roundtrip time and associated variance |
void |
updatePacketArrivalRate(long rate,
long linkCapacity)
update packet arrival rate and link capacity with the values received in an ACK packet |
| Method Detail |
|---|
void init()
void setRTT(long rtt,
long rttVar)
rtt - - round trip time in microsecondsrttVar - - round trip time variance in microseconds
void updatePacketArrivalRate(long rate,
long linkCapacity)
rate - - packet rate in packets per secondlinkCapacity - - estimated link capacity in packets per secondlong getPacketArrivalRate()
long getEstimatedLinkCapacity()
double getSendInterval()
double getCongestionWindowSize()
long getAckInterval()
void setAckInterval(long ackInterval)
void onACK(long ackSeqno)
ackSeqno - - the data sequence number acknowledged by this ACK.
see spec. page(16-17)void onLoss(List<Integer> lossInfo)
lossInfo - - list of sequence number of packetsvoid onTimeout()
void onPacketSend(long packetSeqNo)
packetSeqNo - - the data packet sequence numbervoid onPacketReceive(long packetSeqNo)
packetSeqNo - - the data packet sequence number.void close()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||