gov.nist.antd.traffic_generator
Class udpTGServer

java.lang.Object
  |
  +--SSF.OS.ProtocolSession
        |
        +--gov.nist.antd.traffic_generator.udpTGServer
All Implemented Interfaces:
com.renesys.raceway.DML.Configurable

public class udpTGServer
extends ProtocolSession


Nested Class Summary
(package private)  class udpTGServer.slaveServer
          The slave server inner class
 
Field Summary
(package private)  int client_limit
          max number of clients of this server - default is unlimited
(package private)  int clientNumber
          current number of contemporaneous clients of this server
 int datagram_size
           
 double datagram_size_deviation
           
 java.lang.String datagram_size_distribution
           
(package private)  boolean debug
          default is don't print verbose debugging information
 int docsize
           
 double end_transmit_time
           
 boolean isMCastTraffic
           
(package private)  Host localHost
          Host entity where this pseudo-protocol is installed
(package private)  int localIP
          Host's IP address
(package private)  java.lang.String localNHI
          Host's NHI address
(package private)  java.lang.Object[] obj
           
 double packet_gen_rate_deviation
           
 java.lang.String packet_gen_rate_distribution
           
 double PacketGenerationRate
           
(package private)  RandomInfo randomInfo
           
 int remote_ip
           
 int remote_port
           
(package private)  int request_size
          size of data request object from matching client
(package private)  boolean show_report
          default is show summary session information
(package private)  SSF.OS.Socket.socketMaster socketms
          Host's Socket ProtocolSession
 double start_time
           
(package private)  SSF.OS.UDP.udpSocket udpsocket
          "listening" socket of this server
(package private)  int wellKnownPort
          port number used by this server
 
Fields inherited from class SSF.OS.ProtocolSession
name, use
 
Constructor Summary
udpTGServer()
          Server configuration.
 
Method Summary
 void config(com.renesys.raceway.DML.Configuration cfg)
          Class Methods
 void configMcast(com.renesys.raceway.DML.Configuration cfg, boolean isInit)
           
 void configTGServer(com.renesys.raceway.DML.Configuration cfg)
           
 void init()
           
 void initMcastGroupId()
           
 boolean push(ProtocolMessage message, ProtocolSession fromSession)
           
 void serv()
          Method - Serv Play a server role
(package private)  void serverInfo(java.lang.String str)
          preamble to server diagnostics
 void startMCastTraffic()
           
 
Methods inherited from class SSF.OS.ProtocolSession
close, closed, debugIdentifier, inGraph, open, opened, pushAfterDelay, pushAfterDelayFailed, setGraph, version
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

wellKnownPort

int wellKnownPort
port number used by this server


PacketGenerationRate

public double PacketGenerationRate

packet_gen_rate_distribution

public java.lang.String packet_gen_rate_distribution

packet_gen_rate_deviation

public double packet_gen_rate_deviation

datagram_size

public int datagram_size

datagram_size_distribution

public java.lang.String datagram_size_distribution

datagram_size_deviation

public double datagram_size_deviation

request_size

int request_size
size of data request object from matching client


udpsocket

SSF.OS.UDP.udpSocket udpsocket
"listening" socket of this server


client_limit

int client_limit
max number of clients of this server - default is unlimited


clientNumber

int clientNumber
current number of contemporaneous clients of this server


localHost

Host localHost
Host entity where this pseudo-protocol is installed


localIP

int localIP
Host's IP address


localNHI

java.lang.String localNHI
Host's NHI address


socketms

SSF.OS.Socket.socketMaster socketms
Host's Socket ProtocolSession


debug

boolean debug
default is don't print verbose debugging information


show_report

boolean show_report
default is show summary session information


randomInfo

RandomInfo randomInfo

end_transmit_time

public double end_transmit_time

isMCastTraffic

public boolean isMCastTraffic

remote_ip

public int remote_ip

remote_port

public int remote_port

docsize

public int docsize

start_time

public double start_time

obj

java.lang.Object[] obj
Constructor Detail

udpTGServer

public udpTGServer()
Server configuration. Supported DML attributes:
  ProtocolSession [ name server use gov.nist.antd.traffic_generator.udpTGServer
    port          %I      		# server's well known port number
    client_limit  %I      		# max number of simultaneous clients,
                          		# if omitted, no limit
    end_transmit_time %d            # time to stop transmission packet
    request_size  %I      		# client request nominal datagram size (bytes, int)
    show_report   %S      		# print client-server session summary report, true/false
    debug         %S      		# print verbose client/server diagnostics, true/false

    packet_gen_rate %F    		# packet generation rate of this server..
    packet_gen_rate_distribution %s # packet generation rate distribution, Normal or Exponential
    packet_gen_rate_deviation %f    # packet generation rate deviation, only Normal distribution
                                    # unit : % of the packet generation rate, 0 <= packet_gen_rate_deviation < 1.0

    datagram_size %I      		# max server datagram payload size (virtual bytes, int)
    datagram_size_distribution %s 	# datagram size distrubution, Normal or Exponential
    datagram_size_deviation %f      # datagram size deviation, only Normal distribution
                                    # unit : % of the datagram size, 0 <= packet_gen_rate_deviation < 1.0
  ]
 

Method Detail

config

public void config(com.renesys.raceway.DML.Configuration cfg)
            throws com.renesys.raceway.DML.configException
Class Methods

Specified by:
config in interface com.renesys.raceway.DML.Configurable
Overrides:
config in class ProtocolSession
com.renesys.raceway.DML.configException

configTGServer

public void configTGServer(com.renesys.raceway.DML.Configuration cfg)
                    throws com.renesys.raceway.DML.configException
com.renesys.raceway.DML.configException

configMcast

public void configMcast(com.renesys.raceway.DML.Configuration cfg,
                        boolean isInit)
                 throws com.renesys.raceway.DML.configException
com.renesys.raceway.DML.configException

init

public void init()
Overrides:
init in class ProtocolSession

initMcastGroupId

public void initMcastGroupId()

startMCastTraffic

public void startMCastTraffic()

serv

public void serv()
Method - Serv Play a server role


serverInfo

void serverInfo(java.lang.String str)
preamble to server diagnostics


push

public boolean push(ProtocolMessage message,
                    ProtocolSession fromSession)
             throws ProtocolException
Specified by:
push in class ProtocolSession
ProtocolException