Simple Module NA_Attack

Package: nesg.netattacks.attacks.controllers
File: src/attacks/controllers/NA_Attack.ned

C++ definition

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

NA_Attack

Usage diagram:

The following diagram shows usage relationships between types. Unresolved types are missing from the diagram.

Inheritance diagram:

The following diagram shows inheritance relationships for this type. Unresolved types are missing from the diagram.

Known subclasses:

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.

Parameters:

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.

Properties:

Name Value Description
display i=misc/cloud3,red,100;is=l

Source code:

//
// 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.
}