Research Article
TBSMR: A Trust-Based Secure Multipath Routing Protocol for Enhancing the QoS of the Mobile Ad Hoc Network
Algorithm 2
Malicious node detection.
Malicious_node_detection ( ) | { | for each neighbor node n | do | if (nrecv > nfowd) || (nfowd = = 0) | { | mark node n as malicious. propagate this information to other nodes | } | else if (nrecv = = nfowd) | { | If (size_of_pkt! = 512 bytes)//change in packet size | { | Mark node n as malicious node | Propagate this information to other nodes | } | } | else | forward packets to node n | } |
|