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 |
_bCanCopy |
(package private) boolean |
_bFailed |
(package private) boolean |
_bIsApplication |
(package private) boolean |
_bRandomize |
(package private) JButton |
_buttonDetails |
(package private) JButton |
_buttonDetailsCopy |
(package private) JButton |
_buttonDetailsDismiss |
(package private) JButton |
_buttonMailTo |
(package private) JButton |
_buttonOptions |
(package private) JButton |
_buttonStartTest |
(package private) JButton |
_buttonStatistics |
(package private) JButton |
_buttonStatsCopy |
(package private) JButton |
_buttonStatsDismiss |
(package private) int |
_c2sspdUpdateTime |
(package private) JCheckBox |
_chkboxDefaultTest |
(package private) JCheckBox |
_chkboxPreferIPv6 |
(package private) JComboBox |
_cmboboxDelay |
(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 |
_sEmailText |
(package private) String |
_sErrMsg |
(package private) String |
_sMidBoxTestResult |
(package private) JSpinner |
_spinnerTestCount |
(package private) String |
_sServerType |
(package private) String |
_sTestResults |
protected URL |
_targetURL |
(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()
Create the "Options" window.
|
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()
I2P
|
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 |
middleboxResults(String sMidBoxTestResParam)
This routine decodes the middlebox test results.
|
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)
MiddleBox testing is a throughput test from the Server to the Client to
check for duplex mismatch conditions.
|
boolean |
test_s2c(Protocol paramProtoObj,
Socket paramSocketObj)
S2C throughput test to measure network bandwidth from server to client.
|
boolean |
test_sfw(Protocol protocolObj)
Fire-wall tests aiming to find out if one exists between Client and
server.
|
void |
testResults(String sTestResParam)
Method that interprets test results.
|
getAppletContext, getCodeBase, start
destroy, dispose, getContentPane, toBack
add, add, add, addMouseListener, addWindowListener, getToolkit, pack, repaint, setBorder, setCursor, setEditable, setEnabled, setForeground, setLayout, setLayout, setPreferredSize, setResizable, setSize, setTitle, setVisible
JTextArea _txtDiagnosis
JTextArea _txtStatistics
ResultsTextPane _resultsTxtPane
String _sErrMsg
JButton _buttonStartTest
JButton _buttonDetailsDismiss
JButton _buttonStatsDismiss
JButton _buttonDetailsCopy
JButton _buttonStatsCopy
JButton _buttonDetails
JButton _buttonStatistics
JButton _buttonMailTo
JButton _buttonOptions
JCheckBox _chkboxDefaultTest
JCheckBox _chkboxPreferIPv6
JSpinner _spinnerTestCount
String[] _saDelays
JComboBox _cmboboxDelay
boolean _bRandomize
boolean _bFailed
boolean _bCanCopy
NewFrame _frameWeb100Vars
NewFrame _frameDetailedStats
NewFrame _frameOptions
double _dTime
int _s2cspdUpdateTime
int _c2sspdUpdateTime
int _iECNEnabled
int _iNagleEnabled
int MSSSent
int MSSRcvd
int _iSACKEnabled
int _iTimestampsEnabled
int _iWinScaleRcvd
int _iWinScaleSent
int _iFastRetran
int _iAckPktsOut
int _iSmoothedRTT
int _iCurrentCwnd
int _iMaxCwnd
int _iSndLimTimeRwin
int _iSndLimTimeCwnd
int _iSndLimTimeSender
int _iSndLimTransRwin
int _iSndLimTransCwnd
int _iSndLimTransSender
int _iMaxSsthresh
int _iSumRTT
int _iCountRTT
int _iCurrentMSS
int _iTimeouts
int _iPktsRetrans
int _iSACKsRcvd
int _iDupAcksIn
int _iMaxRwinRcvd
int _iMaxRwinSent
int _iDataPktsOut
int _iRcvbuf
int _iSndbuf
int _iAckPktsIn
long _iDataBytesOut
int _iPktsOut
int _iCongestionSignals
int _iRcvWinScale
int _iPkts
int _iLength
int _iCurrentRTO
int _iC2sData
int _iC2sAck
int _iS2cData
int _iS2cAck
String _sServerType
protected URL _targetURL
String _sEmailText
double _dS2cspd
double _dC2sspd
double _dSc2sspd
double _dSs2cspd
int _iSsndqueue
double _dSbytes
byte[] _yabuff2Write
int half_duplex
int congestion
int bad_cable
int mismatch
double mylink
double loss
double estimate
double avgrtt
double spd
double waitsec
double timesec
double rttsec
double order
double rwintime
double sendtime
double cwndtime
double rwin
double swin
double cwin
double aspd
boolean _bIsApplication
String sHostName
InetAddress hostAddress
String _sTestResults
String _sMidBoxTestResult
byte _yTests
int _iC2sSFWResult
int _iS2cSFWResult
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 String get_c2sspd()
public String get_s2cspd()
public String get_CurRwinRcvd()
public String get_MaxRwinRcvd()
public String get_Ping()
public String get_MaxRTT()
public String get_loss()
public String get_avgrtt()
public String get_CurRTO()
public String get_SACKsRcvd()
public String get_osVer()
public String get_pluginVer()
public String get_host()
public String get_osName()
public String get_osArch()
public String get_mismatch()
public String get_Bad_cable()
public String get_congestion()
public String get_cwndtime()
public String get_AccessTech()
public String get_rcvrLimiting()
public String get_optimalRcvrBuffer()
public String get_clientIP()
public String get_natStatus()
public String get_DupAcksOut()
public String get_DupAcksIn()
public String get_TimeStamp()
public String get_PcBuffSpdLimit()
public String get_jitter()
public String get_WaitSec()
public String get_errmsg()
public String get_diagnosis()
public String get_statistics()
public String get_status()
public String get_instSpeed()
public String getUserAgent()
UserAgentTools
public void setUserAgent(String paramStrUserAgent)
paramStrUserAgent
- UserAgent String to be set locallyUserAgentTools
public int getC2sSFWTestResults()
public void setC2sSFWTestResults(int iParamC2SRes)
iParamC2SRes
- integer indicating C->S test resultspublic int getS2cSFWTestResults()
public void setS2cSFWTestResults(int iParamS2CRes)
iParamS2CRes
- integer indicating C->S test resultspublic boolean isTestInProgress()
public void run_test()
public void init()
public void createDiagnoseWindow()
public void createStatsWindow()
public void createOptionsWindow()
public void runtest()
public void actionPerformed(ActionEvent paramEventObj)
paramEventObj
- Event object that prompted the callpublic void showStatus(String msg)
showStatus
in class JApplet
msg
- String value of statuspublic String getStatus()
public boolean test_mid(Protocol paramProtoObj) throws IOException
paramProtoObj
- Protocol Object used to exchange messagesIOException
- when sending/receiving messages from server failsProtocol.recv_msg(Message msgParam)
,
These methods
indicate more information about IOException
public boolean test_sfw(Protocol protocolObj) throws IOException
protocolObj
- Protocol Object used for message exchangeIOException
- when sending/receiving messages from server fails. See the @see
methods for more information on causes for Exception.Protocol.recv_msg(Message msgParam)
,
Protocol.send_json_msg(byte bParamType, byte[] baParamTab)
public 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_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_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 IOException
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 void testResults(String sTestResParam)
sTestResParam
- String containing all resultspublic void middleboxResults(String sMidBoxTestResParam)
sMidBoxTestResParam
- String Middlebox resultspublic void showBufferedBytesInfo()
public void save_dbl_values(String sSysvarParam, double dSysvalParam)
sSysvarParam
- key name stringdSysvalParam
- Value for this key namepublic void save_long_values(String sSysvarParam, long lSysvalParam)
sSysvarParam
- key name stringlSysvalParam
- Value for this key namepublic void save_int_values(String sSysvarParam, int iSysvalParam)
sSysvarParam
- String key nameiSysvalParam
- Value for this key namepublic String getParameter(String paramStrName)
getParameter
in class JApplet
paramStrName
- Key String whose value has to be foundpublic String getNDTvar(String varName)
varName
- {String} The parameter which the caller is seeking.public void killIt()
public void runIt()