java.lang.Object
edu.internet2.ndt.NDTConstants
Constants for the NDT (Network Diagnostic Tool) client, including protocol values, test type flags, firewall test statuses, data rate indicators, RFC option flags, and unit conversion factors.
Field Summary
Modifier and TypeFieldDescriptionprivate static ResourceBundleResource bundle for NDT localized messages.static final StringAccess technology variable name as sent by the NDT server.static final StringAverage RTT variable name as sent by the NDT server in TEST_MSG results.static final StringBad cable detection variable name as sent by the NDT server.static final floatReceiver-limited threshold (fraction of time).static final intCable status: bad cable detected.static final intCable status: OK (no fault detected).static final StringCongestion detection variable name as sent by the NDT server.static final intCongestion status: congestion found.static final intCongestion status: no congestion detected.static final intDefault NDT control connection port (non-SSL).static final intDefault NDT control connection port (SSL).static final StringCurrent retransmission timeout variable name as sent by the NDT server.static final StringCurrent receive window size variable name as sent by the NDT server.static final StringCongestion window time variable name as sent by the NDT server.static final intData rate indicator: 10 Gigabit Ethernet connection.static final intData rate indicator: dial-up connection.static final intData rate indicator: Ethernet connection.static final intData rate indicator: Fast Ethernet connection.static final intData rate indicator: Gigabit Ethernet connection.static final intData rate indicator: insufficient data to determine rate.static final intData rate indicator: OC-12 connection.static final intData rate indicator: OC-48 connection.static final intData rate indicator: RTT measurement only.static final intData rate indicator: system fault during rate detection.static final intData rate indicator: T1 connection.static final intData rate indicator: T3 connection.static final StringDuplicate ACKs incoming variable name as sent by the NDT server.static final intDuplex status indicator: mismatch detected.static final intDuplex status indicator: OK at both ends.static final intDuplex status indicator: switch full-duplex, host half-duplex.static final intDuplex status indicator: possible switch full, host half.static final intDuplex status indicator: switch half-duplex, host full-duplex.static final intDuplex status indicator: possible switch half, host full.static final intDuplex status indicator: warning, switch half, host full.static final doubleConversion factor from bits to bytes (8.0).static final intStandard Ethernet MTU size used for middlebox detection.static final StringHuman-readable label for Ethernet data rate.static final StringHuman-readable label for Fast Ethernet data rate.static final StringHuman-readable label for Gigabit Ethernet data rate.static final intBase-10 kilo multiplier (1000).static final intBase-2 kilo multiplier (1024).static final StringIPv4 loopback address string.static final StringPacket loss variable name as sent by the NDT server.static final StringMaximum RTT variable name as sent by the NDT server.static final StringMaximum receive window size variable name as sent by the NDT server.static final StringBrowser OS name key sent in TEST_MSG during META test.static final StringClient application name key sent in TEST_MSG during META test.static final StringClient kernel version key sent in TEST_MSG during META test.static final StringClient OS name key sent in TEST_MSG during META test.static final StringClient software version key sent in TEST_MSG during META test.static final intMiddlebox test MSS size.static final StringMinimum RTT variable name as sent by the NDT server.static final StringMismatch counter variable name as sent by the NDT server.static final StringNDT client title bar prefix string.static final StringHuman-readable label for OC-12 data rate.static final StringHuman-readable label for OC-48 data rate.static final StringOptimal receiver buffer size variable name as sent by the NDT server.static final intPercentage multiplier (100).static final intPredefined buffer size for data transfers.static final intReturned byProtocol.recv_msg(Message)on success.static final intRFC 1323 window scaling disabled.static final intRFC 1323 window scaling enabled.static final intRFC 1323 window scaling peer-disabled by remote.static final intRFC 1323 window scaling self-disabled by endpoint.static final intRFC 2018 selective acknowledgment enabled.static final intRFC 3168 explicit congestion notification enabled.static final intRFC 3168 ECN peer-disabled.static final intRFC 3168 ECN self-disabled.static final intRFC 896 Nagle algorithm enabled.static final StringReceive window time variable name as sent by the NDT server.static final StringSACKs received variable name as sent by the NDT server.static final intSimple Firewall test result code: no firewall detected.static final intSimple Firewall test result code: not yet tested.static final intSimple Firewall test result code: firewall likely present.static final StringPredefined message text for the simple firewall test.static final intSimple Firewall test result code: firewall presence unknown.static final intSocket free port indicator (bind to any available port).static final intSRV_QUEUE message body value: heartbeat keepalive.static final intSRV_QUEUE message body value: server busy.static final intSRV_QUEUE message body value: server busy, retry after 60s.static final intSRV_QUEUE message body value: server fault.static final intSRV_QUEUE message body value: test starts now.static final StringHuman-readable label for T1 data rate.static final StringHuman-readable label for T3 data rate.static final StringMailto parameter key name for target URL.static final StringMailto parameter key name for host.static final intMaximum TCP receive window size in bytes (16-bit field).static final StringResource bundle base name for Tcpbw100 message translations.static final StringHuman-readable label for 10 Gigabit Ethernet data rate.static final byteTest type bitmask: client-to-server bandwidth test.static final byteTest type bitmask: META data exchange test.static final byteTest type bitmask: middlebox test.static final byteTest type bitmask: server-to-client bandwidth test.static final byteTest type bitmask: simple firewall test.static final byteTest type bitmask: status test.static final StringNDT protocol version string sent to server during login.static final doubleFractional difference threshold for packet queuing detection.static final StringWait seconds variable name as sent by the NDT server.Constructor Summary
ConstructorsMethod Summary
All MethodsModifier and TypeMethodDescriptionstatic StringgetMessageString(String paramStrName) Look up a translated string from the NDT message bundle.static voidinitConstants(String paramStrLang, String paramStrCountry) Load the NDT message resource bundle for the given language and country.static voidinitConstants(Locale paramLocale) Load the NDT message resource bundle for the given locale.
Field Details
META_CLIENT_OS
Client OS name key sent in TEST_MSG during META test.- See Also:
META_BROWSER_OS
Browser OS name key sent in TEST_MSG during META test.- See Also:
META_CLIENT_KERNEL_VERSION
Client kernel version key sent in TEST_MSG during META test.- See Also:
META_CLIENT_VERSION
Client software version key sent in TEST_MSG during META test.- See Also:
META_CLIENT_APPLICATION
Client application name key sent in TEST_MSG during META test.- See Also:
AVGRTT
Average RTT variable name as sent by the NDT server in TEST_MSG results.- See Also:
CURRWINRCVD
Current receive window size variable name as sent by the NDT server.- See Also:
MAXRWINRCVD
Maximum receive window size variable name as sent by the NDT server.- See Also:
LOSS
Packet loss variable name as sent by the NDT server.- See Also:
MINRTT
Minimum RTT variable name as sent by the NDT server.- See Also:
MAXRTT
Maximum RTT variable name as sent by the NDT server.- See Also:
WAITSEC
Wait seconds variable name as sent by the NDT server.- See Also:
CURRTO
Current retransmission timeout variable name as sent by the NDT server.- See Also:
SACKSRCVD
SACKs received variable name as sent by the NDT server.- See Also:
MISMATCH
Mismatch counter variable name as sent by the NDT server.- See Also:
BAD_CABLE
Bad cable detection variable name as sent by the NDT server.- See Also:
CONGESTION
Congestion detection variable name as sent by the NDT server.- See Also:
CWNDTIME
Congestion window time variable name as sent by the NDT server.- See Also:
RWINTIME
Receive window time variable name as sent by the NDT server.- See Also:
OPTRCVRBUFF
Optimal receiver buffer size variable name as sent by the NDT server.- See Also:
ACCESS_TECH
Access technology variable name as sent by the NDT server.- See Also:
DUPACKSIN
Duplicate ACKs incoming variable name as sent by the NDT server.- See Also:
VERSION
NDT protocol version string sent to server during login.- See Also:
NDT_TITLE_STR
NDT client title bar prefix string.- See Also:
TEST_MID
TEST_C2S
public static final byte TEST_C2STest type bitmask: client-to-server bandwidth test.- See Also:
TEST_S2C
public static final byte TEST_S2CTest type bitmask: server-to-client bandwidth test.- See Also:
TEST_SFW
public static final byte TEST_SFWTest type bitmask: simple firewall test.- See Also:
TEST_STATUS
TEST_META
public static final byte TEST_METATest type bitmask: META data exchange test.- See Also:
SFW_NOTTESTED
public static final int SFW_NOTTESTEDSimple Firewall test result code: not yet tested.- See Also:
SFW_NOFIREWALL
public static final int SFW_NOFIREWALLSimple Firewall test result code: no firewall detected.- See Also:
SFW_UNKNOWN
public static final int SFW_UNKNOWNSimple Firewall test result code: firewall presence unknown.- See Also:
SFW_POSSIBLE
public static final int SFW_POSSIBLESimple Firewall test result code: firewall likely present.- See Also:
VIEW_DIFF
public static final double VIEW_DIFFFractional difference threshold for packet queuing detection.- See Also:
TARGET1
Mailto parameter key name for target URL.- See Also:
TARGET2
CONTROL_PORT_DEFAULT
public static final int CONTROL_PORT_DEFAULTDefault NDT control connection port (non-SSL).- See Also:
CONTROL_PORT_SSL
public static final int CONTROL_PORT_SSLDefault NDT control connection port (SSL).- See Also:
SRV_QUEUE_TEST_STARTS_NOW
public static final int SRV_QUEUE_TEST_STARTS_NOWSRV_QUEUE message body value: test starts now.- See Also:
SRV_QUEUE_SERVER_FAULT
public static final int SRV_QUEUE_SERVER_FAULTSRV_QUEUE message body value: server fault.- See Also:
SRV_QUEUE_SERVER_BUSY
public static final int SRV_QUEUE_SERVER_BUSYSRV_QUEUE message body value: server busy.- See Also:
SRV_QUEUE_HEARTBEAT
public static final int SRV_QUEUE_HEARTBEATSRV_QUEUE message body value: heartbeat keepalive.- See Also:
SRV_QUEUE_SERVER_BUSY_60s
public static final int SRV_QUEUE_SERVER_BUSY_60sSRV_QUEUE message body value: server busy, retry after 60s.- See Also:
MIDDLEBOX_PREDEFINED_MSS
public static final int MIDDLEBOX_PREDEFINED_MSSMiddlebox test MSS size.- See Also:
ETHERNET_MTU_SIZE
public static final int ETHERNET_MTU_SIZEStandard Ethernet MTU size used for middlebox detection.- See Also:
SFW_PREDEFINED_TEST_MESSAGE
Predefined message text for the simple firewall test.- See Also:
_rscBundleMessages
Resource bundle for NDT localized messages.TCPBW100_MSGS
Resource bundle base name for Tcpbw100 message translations.- See Also:
PREDEFINED_BUFFER_SIZE
public static final int PREDEFINED_BUFFER_SIZEPredefined buffer size for data transfers.- See Also:
DATA_RATE_INSUFFICIENT_DATA
public static final int DATA_RATE_INSUFFICIENT_DATAData rate indicator: insufficient data to determine rate.- See Also:
DATA_RATE_SYSTEM_FAULT
public static final int DATA_RATE_SYSTEM_FAULTData rate indicator: system fault during rate detection.- See Also:
DATA_RATE_RTT
public static final int DATA_RATE_RTTData rate indicator: RTT measurement only.- See Also:
DATA_RATE_DIAL_UP
public static final int DATA_RATE_DIAL_UPData rate indicator: dial-up connection.- See Also:
DATA_RATE_T1
public static final int DATA_RATE_T1Data rate indicator: T1 connection.- See Also:
DATA_RATE_ETHERNET
public static final int DATA_RATE_ETHERNETData rate indicator: Ethernet connection.- See Also:
DATA_RATE_T3
public static final int DATA_RATE_T3Data rate indicator: T3 connection.- See Also:
DATA_RATE_FAST_ETHERNET
public static final int DATA_RATE_FAST_ETHERNETData rate indicator: Fast Ethernet connection.- See Also:
DATA_RATE_OC_12
public static final int DATA_RATE_OC_12Data rate indicator: OC-12 connection.- See Also:
DATA_RATE_GIGABIT_ETHERNET
public static final int DATA_RATE_GIGABIT_ETHERNETData rate indicator: Gigabit Ethernet connection.- See Also:
DATA_RATE_OC_48
public static final int DATA_RATE_OC_48Data rate indicator: OC-48 connection.- See Also:
DATA_RATE_10G_ETHERNET
public static final int DATA_RATE_10G_ETHERNETData rate indicator: 10 Gigabit Ethernet connection.- See Also:
T1_STR
Human-readable label for T1 data rate.- See Also:
T3_STR
Human-readable label for T3 data rate.- See Also:
ETHERNET_STR
Human-readable label for Ethernet data rate.- See Also:
FAST_ETHERNET
Human-readable label for Fast Ethernet data rate.- See Also:
OC_12_STR
Human-readable label for OC-12 data rate.- See Also:
GIGABIT_ETHERNET_STR
Human-readable label for Gigabit Ethernet data rate.- See Also:
OC_48_STR
Human-readable label for OC-48 data rate.- See Also:
TENGIGABIT_ETHERNET_STR
Human-readable label for 10 Gigabit Ethernet data rate.- See Also:
RFC_1323_DISABLED
public static final int RFC_1323_DISABLEDRFC 1323 window scaling disabled.- See Also:
RFC_1323_ENABLED
public static final int RFC_1323_ENABLEDRFC 1323 window scaling enabled.- See Also:
RFC_1323_SELF_DISABLED
public static final int RFC_1323_SELF_DISABLEDRFC 1323 window scaling self-disabled by endpoint.- See Also:
RFC_1323_PEER_DISABLED
public static final int RFC_1323_PEER_DISABLEDRFC 1323 window scaling peer-disabled by remote.- See Also:
RFC_2018_ENABLED
public static final int RFC_2018_ENABLEDRFC 2018 selective acknowledgment enabled.- See Also:
RFC_896_ENABLED
public static final int RFC_896_ENABLEDRFC 896 Nagle algorithm enabled.- See Also:
RFC_3168_ENABLED
public static final int RFC_3168_ENABLEDRFC 3168 explicit congestion notification enabled.- See Also:
RFC_3168_SELF_DISABLED
public static final int RFC_3168_SELF_DISABLEDRFC 3168 ECN self-disabled.- See Also:
RFC_3168_PEER_DISABLED
public static final int RFC_3168_PEER_DISABLEDRFC 3168 ECN peer-disabled.- See Also:
BUFFER_LIMITED
public static final float BUFFER_LIMITEDReceiver-limited threshold (fraction of time).- See Also:
TCP_MAX_RECV_WIN_SIZE
public static final int TCP_MAX_RECV_WIN_SIZEMaximum TCP receive window size in bytes (16-bit field).- See Also:
KILO
KILO_BITS
EIGHT
public static final double EIGHTConversion factor from bits to bytes (8.0).- See Also:
DUPLEX_OK_INDICATOR
public static final int DUPLEX_OK_INDICATORDuplex status indicator: OK at both ends.- See Also:
DUPLEX_NOK_INDICATOR
public static final int DUPLEX_NOK_INDICATORDuplex status indicator: mismatch detected.- See Also:
DUPLEX_SWITCH_FULL_HOST_HALF
public static final int DUPLEX_SWITCH_FULL_HOST_HALFDuplex status indicator: switch full-duplex, host half-duplex.- See Also:
DUPLEX_SWITCH_HALF_HOST_FULL
public static final int DUPLEX_SWITCH_HALF_HOST_FULLDuplex status indicator: switch half-duplex, host full-duplex.- See Also:
DUPLEX_SWITCH_FULL_HOST_HALF_POSS
public static final int DUPLEX_SWITCH_FULL_HOST_HALF_POSSDuplex status indicator: possible switch full, host half.- See Also:
DUPLEX_SWITCH_HALF_HOST_FULL_POSS
public static final int DUPLEX_SWITCH_HALF_HOST_FULL_POSSDuplex status indicator: possible switch half, host full.- See Also:
DUPLEX_SWITCH_HALF_HOST_FULL_WARN
public static final int DUPLEX_SWITCH_HALF_HOST_FULL_WARNDuplex status indicator: warning, switch half, host full.- See Also:
CABLE_STATUS_OK
public static final int CABLE_STATUS_OKCable status: OK (no fault detected).- See Also:
CABLE_STATUS_BAD
public static final int CABLE_STATUS_BADCable status: bad cable detected.- See Also:
CONGESTION_NONE
public static final int CONGESTION_NONECongestion status: no congestion detected.- See Also:
CONGESTION_FOUND
public static final int CONGESTION_FOUNDCongestion status: congestion found.- See Also:
SOCKET_FREE_PORT_INDICATOR
public static final int SOCKET_FREE_PORT_INDICATORSocket free port indicator (bind to any available port).- See Also:
LOOPBACK_ADDRS_STRING
IPv4 loopback address string.- See Also:
PERCENTAGE
PROTOCOL_MSG_READ_SUCCESS
public static final int PROTOCOL_MSG_READ_SUCCESSReturned byProtocol.recv_msg(Message)on success.- See Also:
Constructor Details
NDTConstants
private NDTConstants()Prevent instantiation of constants class.
Method Details
initConstants
Load the NDT message resource bundle for the given locale.- Parameters:
paramLocale- locale to load
initConstants
getMessageString