SSF.App.DDoS
Class SD_DDoSTracer

java.lang.Object
  |
  +--SSF.Util.Streams.BasicPlayer
        |
        +--SSF.App.DDoS.SD_DDoSTracer
All Implemented Interfaces:
StreamInterface

public class SD_DDoSTracer
extends BasicPlayer

Tempararily used DDoS Tracer in a single domain.


Field Summary
protected  float endTime
          end time
protected  java.util.Hashtable internalTable
          store information of related ingress traffic
static int SET_QUERY_FAIL
          some constants
static int SET_QUERY_SUCC
           
protected  float startTime
          start time
protected  int targetIP
          the target IP address
protected  long totalEgressFlows
           
protected  long totalEgressPkts
           
protected  long totalEgressSize
           
protected  long totalIngressFlows
           
protected  long totalIngressPkts
           
protected  long totalIngressSize
          statistic data of a domain
 
Constructor Summary
SD_DDoSTracer(java.lang.String streamID)
           
 
Method Summary
static void main(java.lang.String[] args)
           
 void printSummary()
          print out the content and a summary of ingress/egress table
 int receive(int type_code, int source_code, double timestamp, byte[] bytes, int offset, int length)
          Default handler for generic record data.
 int setQuery(int targetIP, float startTime, float endTime)
          This is called to set the parameters for query.
 
Methods inherited from class SSF.Util.Streams.BasicPlayer
connectRead, connectWrite, disconnect, getRecordCount, getRecordSourceCode, getRecordSourceString, getRecordTypeCode, getRecordTypeString, isConnected, send, send
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SET_QUERY_FAIL

public static final int SET_QUERY_FAIL
some constants

See Also:
Constant Field Values

SET_QUERY_SUCC

public static final int SET_QUERY_SUCC
See Also:
Constant Field Values

internalTable

protected java.util.Hashtable internalTable
store information of related ingress traffic


targetIP

protected int targetIP
the target IP address


startTime

protected float startTime
start time


endTime

protected float endTime
end time


totalIngressSize

protected long totalIngressSize
statistic data of a domain


totalIngressPkts

protected long totalIngressPkts

totalIngressFlows

protected long totalIngressFlows

totalEgressSize

protected long totalEgressSize

totalEgressPkts

protected long totalEgressPkts

totalEgressFlows

protected long totalEgressFlows
Constructor Detail

SD_DDoSTracer

public SD_DDoSTracer(java.lang.String streamID)
Method Detail

setQuery

public int setQuery(int targetIP,
                    float startTime,
                    float endTime)
This is called to set the parameters for query.


receive

public int receive(int type_code,
                   int source_code,
                   double timestamp,
                   byte[] bytes,
                   int offset,
                   int length)
Description copied from class: BasicPlayer
Default handler for generic record data.

Specified by:
receive in interface StreamInterface
Overrides:
receive in class BasicPlayer

printSummary

public void printSummary()
print out the content and a summary of ingress/egress table


main

public static void main(java.lang.String[] args)