Subject: [manet] simulating Selfishness in DSR protocol using ns2

From: Ehsan Ataie <[email-masked]>
Date: Wed, 29 Sep 2004 14:13:40 -0700 (PDT)

hi dear friends,
i am going to model selfishness in DSR protocol. so i define a selfiFlag in MobileNode and then i should handle this flag in that if this flag is set for a node, that node should drop packet instead of forwarding it; but i have faced with some problems

1) as you know, "dsragent" is an agent which is attached to SRNode (and MobileNode is the superclass of SRNode; so SRNode inherites the selfishFlag from MobileNode) and i think that i should handle selfishness problem in dsragent.cc
so i should drop the packet in sendOutPacketWithRoute procedure; but i do not know how can i access the selfishFlag in this procedure.
 
2) i do not want to drop the packet silently (for example by Packet::free(p.pkt); p.pkt=0;) because i think this way of dropping a packet will not be recorded in trace
file(am i right?). i require this event to be recorded in trace file as a line starting with "d" pointing to an event of dropping. also, i don't know exactly about Connector::drop(packet*, char*) procedure used in dsragent.cc (in which char* seems to be the reason of
dropping that packet*). when i tracked it i did not see any evidence of recording the reason in a trace file.

please help me;
i'll appreciate any help;
truely,
Ehsan

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

_______________________________________________
manet mailing list
[email-masked]
https://www1.ietf.org/mailman/listinfo/manet