|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Thread
simnet.Application
simnet.PacketGenerator
An application used to create floods of packets.
| Field Summary | |
int |
loaded_ip_percent
What percent of randomly chosen addresses use ip's of loaded nodes. |
int |
total_sent
The total number of packets sent |
| Fields inherited from class simnet.Application |
appid, appstart, frame, initialized, node, NODE_ID, pid, random, sim, win |
| Fields inherited from class java.lang.Thread |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
| Constructor Summary | |
PacketGenerator()
|
|
| Method Summary | |
void |
flood(java.lang.Integer src,
java.lang.Integer src_port,
java.lang.Integer dest,
java.lang.Integer dest_port,
java.lang.Integer proto,
java.lang.Integer total,
java.lang.Integer src_perc,
java.lang.Integer dest_perc,
java.lang.Integer proto_perc)
Executes a randomized SYN flood against the specified Node. |
void |
flood(int src,
int src_port,
int dest,
int dest_port,
int proto,
int total,
int src_perc,
int dest_perc,
int proto_perc)
Executes a randomized SYN flood against the specified Node. |
void |
flood(java.lang.String dest,
java.lang.Integer dest_port,
java.lang.Integer proto,
java.lang.Integer total,
java.lang.Integer src_perc,
java.lang.Integer dest_perc,
java.lang.Integer proto_perc)
Executes a randomized SYN flood against the specified Node. |
void |
flood(java.lang.String src,
java.lang.Integer src_port,
java.lang.String dest,
java.lang.Integer dest_port,
java.lang.Integer proto,
java.lang.Integer total,
java.lang.Integer src_perc,
java.lang.Integer dest_perc,
java.lang.Integer proto_perc)
Executes a randomized SYN flood against the specified Node. |
protected int |
getRandomIP(java.util.Vector ips)
Return a random ip address. |
boolean |
prePlugout(java.lang.Object replacement)
No state to maintain, so can always be removed or replaced. |
void |
setLoadedIPPercent(int nv)
|
void |
setLoadedIPPercent(java.lang.Integer nv)
Sets the percent of randomly chosen addresses that use ip's of loaded nodes. |
void |
synflood(java.lang.Integer destination,
java.lang.Integer destination_port,
java.lang.Integer total_packets)
Executes a SYN flood against the specified Node. |
void |
synflood(java.lang.Integer source,
java.lang.Integer source_port,
java.lang.Integer destination,
java.lang.Integer destination_port,
java.lang.Integer total_packets)
Executes a SYN flood against the specified Node. |
void |
synflood(java.lang.String destination,
java.lang.Integer destination_port,
java.lang.Integer total_packets)
Executes a SYN flood against the specified Node. |
void |
synflood(java.lang.String source,
java.lang.Integer source_port,
java.lang.String destination,
java.lang.Integer destination_port,
java.lang.Integer total_packets)
Executes a SYN flood against the specified Node. |
| Methods inherited from class simnet.Application |
closeWindow, customInit, finalize, getTitleString, initialize, plugoutNotification, printout, printout, processWindowCommand, rawOut, run, window |
| Methods inherited from class java.lang.Thread |
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield |
| Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public int total_sent
public int loaded_ip_percent
| Constructor Detail |
public PacketGenerator()
| Method Detail |
public void setLoadedIPPercent(java.lang.Integer nv)
public void setLoadedIPPercent(int nv)
public void flood(java.lang.Integer src,
java.lang.Integer src_port,
java.lang.Integer dest,
java.lang.Integer dest_port,
java.lang.Integer proto,
java.lang.Integer total,
java.lang.Integer src_perc,
java.lang.Integer dest_perc,
java.lang.Integer proto_perc)
src - the source of the packetssrc_port - the source port of the packetsdest - the destination of the packetsdest_port - the destination port of the packetsproto - the transport protocol of the packetstotal - the total number of packets to sendsrc_perc - the percentage of packets that should have a random
sourcedest_perc - the percentage of packets that should have a random
destinationproto_perc - the percentage of packets that should have a random
protocol
public void flood(java.lang.String src,
java.lang.Integer src_port,
java.lang.String dest,
java.lang.Integer dest_port,
java.lang.Integer proto,
java.lang.Integer total,
java.lang.Integer src_perc,
java.lang.Integer dest_perc,
java.lang.Integer proto_perc)
src - the source of the packetssrc_port - the source port of the packetsdest - the destination of the packetsdest_port - the destination port of the packetsproto - the transport protocol of the packetstotal - the total number of packets to sendsrc_perc - the percentage of packets that should have a random
sourcedest_perc - the percentage of packets that should have a random
destinationproto_perc - the percentage of packets that should have a random
protocol
public void flood(java.lang.String dest,
java.lang.Integer dest_port,
java.lang.Integer proto,
java.lang.Integer total,
java.lang.Integer src_perc,
java.lang.Integer dest_perc,
java.lang.Integer proto_perc)
dest - the destination of the packetsdest_port - the destination port of the packetsproto - the transport protocol of the packetstotal - the total number of packets to sendsrc_perc - the percentage of packets that should have a random
sourcedest_perc - the percentage of packets that should have a random
destinationproto_perc - the percentage of packets that should have a random
protocolprotected int getRandomIP(java.util.Vector ips)
public void flood(int src,
int src_port,
int dest,
int dest_port,
int proto,
int total,
int src_perc,
int dest_perc,
int proto_perc)
src - the source of the packetssrc_port - the source port of the packetsdest - the destination of the packetsdest_port - the destination port of the packetsproto - the transport protocol of the packetstotal - the total number of packets to sendsrc_perc - the percentage of packets that should have a random
sourcedest_perc - the percentage of packets that should have a random
destinationproto_perc - the percentage of packets that should have a random
protocol
public void synflood(java.lang.Integer source,
java.lang.Integer source_port,
java.lang.Integer destination,
java.lang.Integer destination_port,
java.lang.Integer total_packets)
source - the source of the packetssource_port - the source port of the packetsdestination - the destination of the packetsdestination_port - the destination port of the packetstotal_packets - the total number of packets to send
public void synflood(java.lang.Integer destination,
java.lang.Integer destination_port,
java.lang.Integer total_packets)
destination - the destination of the packetsdestination_port - the destination port of the packetstotal_packets - the total number of packets to send
public void synflood(java.lang.String destination,
java.lang.Integer destination_port,
java.lang.Integer total_packets)
destination - the destination of the packetsdestination_port - the destination port of the packetstotal_packets - the total number of packets to send
public void synflood(java.lang.String source,
java.lang.Integer source_port,
java.lang.String destination,
java.lang.Integer destination_port,
java.lang.Integer total_packets)
source - the source of the packetssource_port - the source port of the packetsdestination - the destination of the packetsdestination_port - the destination port of the packetstotal_packets - the total number of packets to sendpublic boolean prePlugout(java.lang.Object replacement)
prePlugout in interface Pluggable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||