HI, i'm trying to implement the channel aware detection algorithm for reducing the selective forwarding attack in wireless mesh network in NS2, can anyone help me in implementing CAD Algorithm or can i get the code for this algorithm n TCL scripts for 2 scenarios Scenario: With normal packet losses (due to bad channel quality or medium access collision). * Create Mesh network of nodes with minimum of 16 or 25 nodes. * Make a node at one end of the network as Source and node at the other end as Destination. * Assign normal packet losses due to channel quality & collisions and calculate threshold value.
Scenario 1: With no attacker in the network & CAD algorithm * Source initiates UDP/CBR traffic to send packets to destination. * Get the results of how many packets received by destination out of all packets send by source and show it in graph (PDR). Scenario 2:With attacker & no CAD algorithm * Randomly assign an intermediate node as attacker and drop packets intentionally. * Get the results of how many packets received by destination out of all packets send by source and show it in same graph (PDR). Scenario 2: With attacker & CAD algorithm * Randomly assign an intermediate node as attacker and drop packets intentionally. * Use CAD algorithm to identify the attacker by checking with threshold value of normal packet loss and send the packets in other path not involving attacker. * Get the results of how many packets received by destination out of all packets send by source and show it in same graph (PDR).