Base simple module inherited from all attacks modules. Is in charge of set the schedulling parameters, attack activation or not, and what is the type of the attack.
Author: Gabriel Maciá Fernández, gmacia@ugr.es
Date: 01/22/2013
The following diagram shows usage relationships between types. Unresolved types are missing from the diagram.
The following diagram shows inheritance relationships for this type. Unresolved types are missing from the diagram.
Name | Type | Description |
---|---|---|
NA_DelayAttack | simple module |
Delay attack controller simple module. Two parameters control the attack behavior: the attack probability and the delay time. |
NA_DroppingAttack | simple module |
Dropping attack controller simple module. One parameter controls the attack behavior: the attack probability. |
NA_SinkholeAttack | simple module |
Sinkhole attack controller simple module. Three parameter controls the attack behavior: the attack probability, if the route requested is knowed by the attacker or not and the the sequence number generated. |
Name | Type | Default value | Description |
---|---|---|---|
attackType | string | "" |
String with the type of attack |
active | bool | false |
Indicates if this attack is active or not in the node |
startTime | double | 0s |
Timestamp to start the attack |
endTime | double | 0s |
Time instant at which the attack ends, 0 means that the attack will not end during the simulation. |
Name | Value | Description |
---|---|---|
display | i=misc/cloud3,red,100;is=l |
// // Base simple module inherited from all attacks modules. // Is in charge of set the schedulling parameters, attack activation or not, and what // is the type of the attack. // // @author Gabriel Maciá Fernández, gmacia@ugr.es // @date 01/22/2013 simple NA_Attack { parameters: @display("i=misc/cloud3,red,100;is=l"); string attackType @enum("dropping","sinkhole","delay") = default(""); //String with the type of attack bool active = default(false); //Indicates if this attack is active or not in the node double startTime @unit("s") = default(0s); // Timestamp to start the attack double endTime @unit("s") = default(0s); //Time instant at which the attack ends, 0 means that the attack will not end during the simulation. }