Thanks a lot!
Regards,
Huanyu
--
You received this message because you are subscribed to the Google Groups "ns-3-users" group.
To post to this group, send email to ns-3-...@googlegroups.com.
To unsubscribe from this group, send email to ns-3-users+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/ns-3-users?hl=en.
Hello friends,
Is there a difference in behaviour between selfish and malicious
nodes?
If someone knows, can that be explained?
Best Regards
On Jun 19, 4:36 pm, NSimidjievski <nikola.simidziev...@gmail.com>
wrote:
> Hi,
>
> First of all, copying the whole code into a new one and then making all the
> necessary changes for binding is too much work, I think the first solution
> (by adding custom attributes) is simpler and already working (believe me,
> I've tried it). Having said that...
> 1. I don't quite understand what is your question.
> 2. There is no need for creating new SelfishAODV protocol
> 3. The code for the AODV is done by the RFC 3561
> 4. Setting some of the nodes to be selfish can be done by adding the
> "selfish" attribute to the desired nodes
> More precisely, you will create 2 AODVHelper objects and 2 stacks (one
> for the selfish nodes and one for the good ones), then you will set your
> SELFISH attribute to true (for the selfish nodes) and vice versa. Every node
> created by the Selfish Helper will be malicious, and every other will be
> "good" node.
>
> Hope this helps,
> Regards,
> Nikola
--
You received this message because you are subscribed to the Google Groups "ns-3-users" group.
To post to this group, send email to ns-3-...@googlegroups.com.
To unsubscribe from this group, send email to ns-3-users+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/ns-3-users?hl=en.
>
>
> On Thu, Jun 16, 2011 at 4:17 PM, Hacken <zhao.huanyu <at> gmail.com> wrote:
> Hi All,
> I am using AODV routing in a wireless ad hoc network. I would like to
> set up some nodes in the network to be selfish. That is, they drop
> data packets based on a preset probability.
> Currently, all the nodes are forwarding packets in my program. I have
> no idea on how to implement selfish node (packet drop) . Any
> suggestion will be appreciated.
>
>
> To add to what Nikola said, look into the RouteInput() method of the
aodv::RoutingProtocol class (src/aodv/model/aodv-routing-protocol.cc).
>
>
>
> Thanks a lot!
> Regards,
> Huanyu
> --
> You received this message because you are subscribed to the Google Groups
"ns-3-users" group.
> To post to this group, send email to
ns-3-...@googlegroups.com.
> To unsubscribe from this group, send email to
ns-3-users+...@googlegroups.com.
> For more options, visit this group at
http://groups.google.com/group/ns-3-users?hl=en.
>
>
> -- Lalith SureshDepartment of Computer Science and Engineering
> Instituto Superior Técnicowww.lalith.in
>
>
>
>
Dear All,
I created the malicious node for aodv as per above discussion and changed the
RouteInput() method according to this.
if(GetEnableMalicious()){
NS_LOG_UNCOND ("-----Packet Dropped ");
return false;
}
else
return Forwarding (p, header, ucb, ecb);
But this behaviour is not affecting the no. of packets reached at destination
with or without malicious nodes. But still i am getting the message printed like
"-----Packet Dropped."
But in DSDV protocol I am getting the difference between no. of packets reached
at destination with or without malicious nodes. I used a global counter to count
the packets in ReceivePacket() function in my user script.
Please Help.
--
Tasvinder Singh
B.Tech Final Year,
Department of Computer Engineering,
Malaviya National Institute Of Technology, Jaipur.
Dear All,
I created the malicious node for aodv as per above discussion and changed the
RouteInput() method according to this.
if(GetEnableMalicious()){
NS_LOG_UNCOND ("-----Packet Dropped ");
return false;
}
else
return Forwarding (p, header, ucb, ecb);
But this behaviour is not affecting the no. of packets reached at destination
with or without malicious nodes. But still i am getting the message printed like
"-----Packet Dropped."
But in DSDV protocol I am getting the difference between no. of packets reached
at destination with or without malicious nodes. I used a global counter to count
the packets in ReceivePacket() function in my user script.
Please Help.
--
Tasvinder Singh
B.Tech Final Year,
Department of Computer Engineering,
Malaviya National Institute Of Technology, Jaipur.
--
You received this message because you are subscribed to the Google Groups "ns-3-users" group.
To post to this group, send email to ns-3-...@googlegroups.com.
To unsubscribe from this group, send email to ns-3-users+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/ns-3-users?hl=en.