Research Article
Multilevel Modeling of Distributed Denial of Service Attacks in Wireless Sensor Networks
Listing 2
Attacker node modeled in QoP-ML.
| (1) host Attacker(rr)(⋆) | | (2) | | (3) #MY_ID = id(); | | (4) #SENSOR_ID = id(CompromisedSensor); | | (5) #KEY = nonce(); | | (6) | | (7) process MainProcess(⋆) | | (8) | | (9) subprocess FirstFloodWave(⋆) | | (10) FLOOD_MSG = (MY_ID, SENSOR_ID, msg_flood1()); | | (11) out(ch_MGMT: FLOOD_MSG); | | (12) wait()[UPDATED]; | | (13) | | (14) | | (15) %... | | (16) | | (17) subprocess SixthFloodWave(⋆) | | (18) FLOOD_MSG = (MY_ID, SENSOR_ID, msg_flood6()); | | (19) out(ch_MGMT: FLOOD_MSG); | | (20) wait()[UPDATED]; | | (21) | | (22) | | (23) STOP_MSG = (MY_ID, SENSOR_ID, msg_stop()); | | (24) out(ch_MGMT: STOP_MSG); | | (25) | | (26) |
|