public class Tcpbw100 extends JApplet implements ActionListener
| Modifier and Type | Class and Description |
|---|---|
(package private) class |
Tcpbw100.TestWorker
Class to start tests in a thread.
|
| Modifier and Type | Field and Description |
|---|---|
(package private) boolean |
_bFailed |
(package private) boolean |
_bIsApplication |
(package private) JButton |
_buttonDetails |
(package private) JButton |
_buttonStartTest |
(package private) JButton |
_buttonStatistics |
(package private) int |
_c2sspdUpdateTime |
(package private) JCheckBox |
_chkboxDefaultTest |
(package private) JCheckBox |
_chkboxPreferIPv6 |
(package private) double |
_dC2sspd |
(package private) double |
_dS2cspd |
(package private) double |
_dSbytes |
(package private) double |
_dSc2sspd |
(package private) double |
_dSs2cspd |
(package private) double |
_dTime |
(package private) NewFrame |
_frameDetailedStats |
(package private) NewFrame |
_frameOptions |
(package private) NewFrame |
_frameWeb100Vars |
(package private) int |
_iAckPktsIn |
(package private) int |
_iAckPktsOut |
(package private) int |
_iC2sAck |
(package private) int |
_iC2sData |
(package private) int |
_iC2sSFWResult |
(package private) int |
_iCongestionSignals |
(package private) int |
_iCountRTT |
(package private) int |
_iCurrentCwnd |
(package private) int |
_iCurrentMSS |
(package private) int |
_iCurrentRTO |
(package private) long |
_iDataBytesOut |
(package private) int |
_iDataPktsOut |
(package private) int |
_iDupAcksIn |
(package private) int |
_iECNEnabled |
(package private) int |
_iFastRetran |
(package private) int |
_iLength |
(package private) int |
_iMaxCwnd |
(package private) int |
_iMaxRwinRcvd |
(package private) int |
_iMaxRwinSent |
(package private) int |
_iMaxSsthresh |
(package private) int |
_iNagleEnabled |
(package private) int |
_iPkts |
(package private) int |
_iPktsOut |
(package private) int |
_iPktsRetrans |
(package private) int |
_iRcvbuf |
(package private) int |
_iRcvWinScale |
(package private) int |
_iS2cAck |
(package private) int |
_iS2cData |
(package private) int |
_iS2cSFWResult |
(package private) int |
_iSACKEnabled |
(package private) int |
_iSACKsRcvd |
(package private) int |
_iSmoothedRTT |
(package private) int |
_iSndbuf |
(package private) int |
_iSndLimTimeCwnd |
(package private) int |
_iSndLimTimeRwin |
(package private) int |
_iSndLimTimeSender |
(package private) int |
_iSndLimTransCwnd |
(package private) int |
_iSndLimTransRwin |
(package private) int |
_iSndLimTransSender |
(package private) int |
_iSsndqueue |
(package private) int |
_iSumRTT |
(package private) int |
_iTimeouts |
(package private) int |
_iTimestampsEnabled |
(package private) int |
_iWinScaleRcvd |
(package private) int |
_iWinScaleSent |
(package private) ResultsTextPane |
_resultsTxtPane |
(package private) int |
_s2cspdUpdateTime |
(package private) String[] |
_saDelays |
(package private) String |
_sErrMsg |
(package private) String |
_sMidBoxTestResult |
(package private) JSpinner |
_spinnerTestCount |
(package private) String |
_sServerType |
(package private) String |
_sTestResults |
(package private) JTextArea |
_txtDiagnosis |
(package private) JTextArea |
_txtStatistics |
(package private) byte[] |
_yabuff2Write |
(package private) byte |
_yTests |
(package private) double |
aspd |
(package private) double |
avgrtt |
(package private) int |
bad_cable |
(package private) int |
congestion |
(package private) double |
cwin |
(package private) double |
cwndtime |
(package private) double |
estimate |
(package private) int |
half_duplex |
(package private) InetAddress |
hostAddress |
(package private) double |
loss |
(package private) int |
mismatch |
(package private) int |
MSSRcvd |
(package private) int |
MSSSent |
(package private) double |
mylink |
(package private) double |
order |
(package private) double |
rttsec |
(package private) double |
rwin |
(package private) double |
rwintime |
(package private) double |
sendtime |
(package private) String |
sHostName |
(package private) double |
spd |
(package private) double |
swin |
(package private) double |
timesec |
(package private) double |
waitsec |
| Constructor and Description |
|---|
Tcpbw100(boolean useSSL) |
| Modifier and Type | Method and Description |
|---|---|
void |
actionPerformed(ActionEvent paramEventObj)
Action handler method called when an associated action is performed
|
void |
createDiagnoseWindow()
Create the "More details" window.
|
void |
createOptionsWindow() |
void |
createStatsWindow()
Create the "Statistics" window.
|
void |
dottcp(StatusPanel sPanel)
Method to run tests and interpret the results sent by the server
|
String |
get_AccessTech() |
String |
get_avgrtt() |
String |
get_Bad_cable() |
String |
get_c2sspd() |
String |
get_clientIP() |
String |
get_congestion() |
String |
get_CurRTO() |
String |
get_CurRwinRcvd() |
String |
get_cwndtime() |
String |
get_diagnosis() |
String |
get_DupAcksIn() |
String |
get_DupAcksOut() |
String |
get_errmsg() |
String |
get_host() |
String |
get_instSpeed() |
String |
get_jitter() |
String |
get_loss() |
String |
get_MaxRTT() |
String |
get_MaxRwinRcvd() |
String |
get_mismatch() |
String |
get_natStatus() |
String |
get_optimalRcvrBuffer() |
String |
get_osArch() |
String |
get_osName() |
String |
get_osVer() |
String |
get_PcBuffSpdLimit() |
String |
get_Ping() |
String |
get_pluginVer() |
String |
get_rcvrLimiting() |
String |
get_s2cspd() |
String |
get_SACKsRcvd() |
String |
get_statistics() |
String |
get_status() |
String |
get_TimeStamp() |
String |
get_WaitSec() |
int |
getC2sSFWTestResults()
Get Client->Server fire-wall test results.
|
String |
getNDTvar(String varName)
Function that returns a variable corresponding to the parameter passed to it as a request.
|
String |
getParameter(String paramStrName)
Utility method to get parameter value.
|
int |
getS2cSFWTestResults()
Get Server->Client fire-wall test results.
|
String |
getStatus()
I2P
Translated status, not HTML escaped.
|
String |
getUserAgent()
Set UserAgent String containing browser details.
|
void |
init()
Initialize the base NDT window Applet init() method
|
boolean |
isTestInProgress() |
void |
killIt()
bigly -- must have been started with main() or runIt()
|
static void |
main(String[] args)
public static void main for invoking as an Application
|
static Tcpbw100 |
mainSupport(String[] args)
bigly
|
void |
run_test()
"Remote Control" function - invoke NDT' runtest() method from the API
|
void |
runIt()
bigly
|
void |
runtest()
Run the Thread that calls the "dottcp" method to run tests.
|
void |
save_dbl_values(String sSysvarParam,
double dSysvalParam)
Method to save double values of various "keys" from the the test results
string into corresponding double datatypes.
|
void |
save_int_values(String sSysvarParam,
int iSysvalParam)
Method to save integer values of various "keys" from the the test results
string into corresponding integer datatypes.
|
void |
save_long_values(String sSysvarParam,
long lSysvalParam)
Method to save long values of various "keys" from the the test results
string into corresponding long datatypes.
|
void |
setC2sSFWTestResults(int iParamC2SRes)
Set Client->Server fire-wall test results.
|
void |
setS2cSFWTestResults(int iParamS2CRes)
Set server->Client fire-wall test results.
|
void |
setUserAgent(String paramStrUserAgent)
Set UserAgent String.
|
void |
showBufferedBytesInfo()
Pop up a window to display some information about TCP packet queuing.
|
void |
showStatus(String msg)
Display current status in Applet window.
|
boolean |
test_c2s(Protocol paramProtoObj)
Client to server throughput test.
|
boolean |
test_meta(Protocol paramProtoObj,
String application)
The META test allows the Client to send an additional information to the Server that basically
gets included along with the overall set of test results.
|
boolean |
test_mid(Protocol paramProtoObj) |
boolean |
test_s2c(Protocol paramProtoObj,
Socket paramSocketObj)
S2C throughput test to measure network bandwidth from server to client.
|
boolean |
test_sfw(Protocol protocolObj) |
void |
testResults(String sTestResParam)
Method that interprets test results.
|
getAppletContext, getCodeBase, startdestroy, dispose, getContentPane, toBackadd, add, add, addMouseListener, addWindowListener, getToolkit, pack, repaint, setBorder, setCursor, setEditable, setEnabled, setForeground, setLayout, setLayout, setPreferredSize, setResizable, setSize, setTitle, setVisibleboolean _bFailed
boolean _bIsApplication
JButton _buttonDetails
JButton _buttonStartTest
JButton _buttonStatistics
int _c2sspdUpdateTime
JCheckBox _chkboxDefaultTest
JCheckBox _chkboxPreferIPv6
double _dC2sspd
double _dS2cspd
double _dSbytes
double _dSc2sspd
double _dSs2cspd
double _dTime
NewFrame _frameDetailedStats
NewFrame _frameOptions
NewFrame _frameWeb100Vars
int _iAckPktsIn
int _iAckPktsOut
int _iC2sAck
int _iC2sData
int _iC2sSFWResult
int _iCongestionSignals
int _iCountRTT
int _iCurrentCwnd
int _iCurrentMSS
int _iCurrentRTO
long _iDataBytesOut
int _iDataPktsOut
int _iDupAcksIn
int _iECNEnabled
int _iFastRetran
int _iLength
int _iMaxCwnd
int _iMaxRwinRcvd
int _iMaxRwinSent
int _iMaxSsthresh
int _iNagleEnabled
int _iPkts
int _iPktsOut
int _iPktsRetrans
int _iRcvbuf
int _iRcvWinScale
int _iS2cAck
int _iS2cData
int _iS2cSFWResult
int _iSACKEnabled
int _iSACKsRcvd
int _iSmoothedRTT
int _iSndbuf
int _iSndLimTimeCwnd
int _iSndLimTimeRwin
int _iSndLimTimeSender
int _iSndLimTransCwnd
int _iSndLimTransRwin
int _iSndLimTransSender
int _iSsndqueue
int _iSumRTT
int _iTimeouts
int _iTimestampsEnabled
int _iWinScaleRcvd
int _iWinScaleSent
ResultsTextPane _resultsTxtPane
int _s2cspdUpdateTime
String[] _saDelays
String _sErrMsg
String _sMidBoxTestResult
JSpinner _spinnerTestCount
String _sServerType
String _sTestResults
JTextArea _txtDiagnosis
JTextArea _txtStatistics
byte[] _yabuff2Write
byte _yTests
double aspd
double avgrtt
int bad_cable
int congestion
double cwin
double cwndtime
double estimate
int half_duplex
InetAddress hostAddress
double loss
int mismatch
int MSSRcvd
int MSSSent
double mylink
double order
double rttsec
double rwin
double rwintime
double sendtime
String sHostName
double spd
double swin
double timesec
double waitsec
public void actionPerformed(ActionEvent paramEventObj)
paramEventObj - Event object that prompted the callpublic void createDiagnoseWindow()
public void createOptionsWindow()
public void createStatsWindow()
public void dottcp(StatusPanel sPanel) throws IOException
sPanel - StatusPanel object to describe status of testsIOException - When sending/receiving messages from server failsProtocol.recv_msg(Message msgParam),
Protocol.send_json_msg(byte bParamType, byte[] baParamTab)public String get_AccessTech()
public String get_avgrtt()
public String get_Bad_cable()
public String get_c2sspd()
public String get_clientIP()
public String get_congestion()
public String get_CurRTO()
public String get_CurRwinRcvd()
public String get_cwndtime()
public String get_diagnosis()
public String get_DupAcksIn()
public String get_DupAcksOut()
public String get_errmsg()
public String get_host()
public String get_instSpeed()
public String get_jitter()
public String get_loss()
public String get_MaxRTT()
public String get_MaxRwinRcvd()
public String get_mismatch()
public String get_natStatus()
public String get_optimalRcvrBuffer()
public String get_osArch()
public String get_osName()
public String get_osVer()
public String get_PcBuffSpdLimit()
public String get_Ping()
public String get_pluginVer()
public String get_rcvrLimiting()
public String get_s2cspd()
public String get_SACKsRcvd()
public String get_statistics()
public String get_status()
public String get_TimeStamp()
public String get_WaitSec()
public int getC2sSFWTestResults()
public String getNDTvar(String varName)
varName - {String} The parameter which the caller is seeking.public String getParameter(String paramStrName)
getParameter in class JAppletparamStrName - Key String whose value has to be foundpublic int getS2cSFWTestResults()
public String getStatus()
public String getUserAgent()
UserAgentToolspublic void init()
public boolean isTestInProgress()
public void killIt()
public static void main(String[] args)
args - String array of command line argumentsIllegalArgumentException - on bad hostnamepublic static Tcpbw100 mainSupport(String[] args)
IllegalArgumentException - on bad hostnamepublic void run_test()
public void runIt()
public void runtest()
public void save_dbl_values(String sSysvarParam, double dSysvalParam)
sSysvarParam - key name stringdSysvalParam - Value for this key namepublic void save_int_values(String sSysvarParam, int iSysvalParam)
sSysvarParam - String key nameiSysvalParam - Value for this key namepublic void save_long_values(String sSysvarParam, long lSysvalParam)
sSysvarParam - key name stringlSysvalParam - Value for this key namepublic void setC2sSFWTestResults(int iParamC2SRes)
iParamC2SRes - integer indicating C->S test resultspublic void setS2cSFWTestResults(int iParamS2CRes)
iParamS2CRes - integer indicating C->S test resultspublic void setUserAgent(String paramStrUserAgent)
paramStrUserAgent - UserAgent String to be set locallyUserAgentToolspublic void showBufferedBytesInfo()
public void showStatus(String msg)
showStatus in class JAppletmsg - String value of statuspublic boolean test_c2s(Protocol paramProtoObj) throws IOException
paramProtoObj - Protocol Object used to exchange messagesIOException - when sending/receiving messages from server failsProtocol.recv_msg(Message msgParam),
Protocol.send_json_msg(byte bParamType, byte[] baParamTab)public boolean test_meta(Protocol paramProtoObj, String application) throws IOException
paramProtoObj - Protocol Object used to exchange protocol messagesIOException - When sending/receiving messages from server failsProtocol.recv_msg(Message msgParam),
These methods indicate more information about IOExceptionpublic boolean test_mid(Protocol paramProtoObj) throws IOException
IOExceptionpublic boolean test_s2c(Protocol paramProtoObj, Socket paramSocketObj) throws IOException
paramProtoObj - Protocol Object used to exchange messagesparamSocketObj - Socket Object to write/read NDTProtocol control messagesIOException - When sending/receiving messages from server failsProtocol.recv_msg(Message msgParam),
Protocol.send_json_msg(byte bParamType, byte[] baParamTab)public boolean test_sfw(Protocol protocolObj) throws IOException
IOExceptionpublic void testResults(String sTestResParam)
sTestResParam - String containing all results