udt.cc
Class SimpleTCP
java.lang.Object
udt.UDTCongestionControl
udt.cc.SimpleTCP
- All Implemented Interfaces:
- CongestionControl
public class SimpleTCP
- extends UDTCongestionControl
simple TCP CC algorithm from the paper
"Optimizing UDP-based Protocol Implementations" by Y. Gu and R. Grossmann
|
Method Summary |
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. |
| Methods inherited from class udt.UDTCongestionControl |
close, getAckInterval, getCongestionWindowSize, getEstimatedLinkCapacity, getPacketArrivalRate, getSendInterval, onPacketReceive, onPacketSend, onTimeout, setAckInterval, setRTT, updatePacketArrivalRate |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SimpleTCP
public SimpleTCP(UDTSession session)
init
public void init()
- Description copied from interface:
CongestionControl
- Callback function to be called (only) at the start of a UDT connection.
when the UDT socket is conected
- Specified by:
init in interface CongestionControl- Overrides:
init in class UDTCongestionControl
onACK
public void onACK(long ackSeqno)
- Description copied from interface:
CongestionControl
- Callback function to be called when an ACK packet is received.
- Specified by:
onACK in interface CongestionControl- Overrides:
onACK in class UDTCongestionControl
- Parameters:
ackSeqno - - the data sequence number acknowledged by this ACK.
see spec. page(16-17)
onLoss
public void onLoss(List<Integer> lossInfo)
- Description copied from interface:
CongestionControl
- Callback function to be called when a loss report is received.
- Specified by:
onLoss in interface CongestionControl- Overrides:
onLoss in class UDTCongestionControl
- Parameters:
lossInfo - - list of sequence number of packets
Copyright © 2013 LittleShoot. All Rights Reserved.