tcpprovider.java
来自「一个小型网络仿真器的实现」· Java 代码 · 共 41 行
JAVA
41 行
/*
JaNetSim --- Java Network Simulator
-------------------------------------
This software was developed at the Network Research Lab, Faculty of
Computer Science and Information Technology (FCSIT), University of Malaya.
This software may be used and distributed freely. FCSIT assumes no responsibility
whatsoever for its use by other parties, and makes no guarantees, expressed or
implied, about its quality, reliability, or any other characteristic.
We would appreciate acknowledgement if the software is used.
FCSIT ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS" CONDITION AND
DISCLAIM ANY LIABILITY OF ANY KIND FOR ANY DAMAGES WHATSOEVER RESULTING
FROM THE USE OF THIS SOFTWARE.
*/
package janetsim.component;
public interface TCPProvider {
public double getDelay(); //tcp packet processing delay, in usecs
public double getDelayVar(); //tcp packet processing delay variation, in usecs
public int getMaxWindowSize(); //receiver's maximum window size (in bytes)
public int getMaxSegmentSize(); //maximum segment size (in bytes)
public double getRTT_alpha(); //srtt update weight, recommended 1/8
public double getRTT_beta(); //rttvar update weight, recommended 1/4
public double getRTT_lbound(); //RTT lower bound (in seconds)
public double getRTT_ubound(); //RTT upper bound (in seconds)
public int getTCPCongestionControl(); //returns the desired TCP
//Congestion control scheme,
//supported values are:
// 1: Tahoe (`sub'Reno)
// 2: Reno
// otherwise: Standard
public long getLogFactor(); //the "Logging Every n Tick" value
public void sendPacket(IPPacket packet); //sends an IP packet out
public void statusChanged(); //notification of connection status changed
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?