please give me a source code of how to insert selfish nodes in aodv coding.
Posts: 14,118
Threads: 61
Joined: Oct 2014
MANET nodes rely on network cooperation schemes to work properly, sending traffic unrelated to their own use. There is the possibility of MANET selfish nodes exist without forwarding the data in order to save their own energy. Collaborative watchdog introduces an efficient approach to reduce detection time of selfish nodes in MANET based on the dissemination of contacts. If a node has previously detected a selfish node using its watchdog, it can broadcast this information to other nodes when a contact occurs.
An ad hoc mobile network or, ultimately, MANET, is a relatively new communication paradigm. A MANET network consists of a group of mobile devices (nodes) that communicate through a wireless medium. Unlike a traditional infrastructure network, the network is established only by the MANET devices themselves without the need for any fixed infrastructure, such as an access point or a base station. A node may be able to communicate with other nodes away with the cooperation of intermediate nodes, forwarding the packets to the destination. In this multi-hop communication, each node functions as both a host and a router. The routing protocol, such as Dynamic Source Routing [DSR], AODV, has been designed to handle this environment. Minimum configuration, rapid deployment and absence of central authority make MANET suitable for emergencies such as natural disasters, military conflicts and emergency medical situations. However, since there is no centralized management, the performance of a MANET depends to a great extent on the cooperation of all nodes in the network. In this article we propose a system to detect selfish nodes that refuse to cooperate, but at the same time continue to use the network for their own benefits. The rest of the article is organized as follows. In Section II, we present the DSR (Dynamic Source Routing) protocol that will be used in our simulation. In Section III, we have categorized two types of node misconduct in a MANET. In Section IV we briefly summarize the various approaches for the detection of bad behavior of nodes that have been proposed and studied in the literature. In Section V, we present and introduce our new system for detecting selfish nodes. In Section VI, we reviewed our system for the simulation environment. In section VII we conclude the work.