udt.cc
Class SimpleTCP

java.lang.Object
  extended by udt.UDTCongestionControl
      extended by 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


Field Summary
 
Fields inherited from class udt.UDTCongestionControl
ackInterval, congestionWindowSize, estimatedLinkCapacity, packetArrivalRate, packetSendingPeriod, roundTripTime, session, statistics
 
Constructor Summary
SimpleTCP(UDTSession session)
           
 
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
 

Constructor Detail

SimpleTCP

public SimpleTCP(UDTSession session)
Method Detail

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.