How to drop packets on purpose?

100 views
Skip to first unread message

Ilya Migal

unread,
Mar 24, 2013, 12:28:08 PM3/24/13
to ns-3-...@googlegroups.com
Hello.

Is it possible to make a node drop packets from time to time on purpose?
After looking through classes and functions (Doxygen) i found only Drop, DropPacketWithDst.

If anybody has any info i would be very grateful. 

Thank you in advance.

Konstantinos

unread,
Mar 26, 2013, 7:20:35 AM3/26/13
to ns-3-...@googlegroups.com
Hi,

It depends where and why do you want to drop the packet.

You can implement it on any layer/protocol you want. The idea is to find where you receive each packet for every layer and where it is forwarded to the next. You can put a random variable there that will decide to pass it to the next or not.

See this graph for example

http://www.nsnam.org/docs/models/html/internet-stack.html#example-path-of-a-packet

Ilya Migal

unread,
Mar 30, 2013, 8:12:20 AM3/30/13
to ns-3-...@googlegroups.com
Thank you very much! i am working on it and if i will get something i'll share, maybe it will be of use :)


2013/3/26 Konstantinos <dinos.k...@gmail.com>
--
You received this message because you are subscribed to a topic in the Google Groups "ns-3-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/ns-3-users/2sGbY_aBSmE/unsubscribe?hl=en.
To unsubscribe from this group and all its topics, send an email to ns-3-users+...@googlegroups.com.
To post to this group, send email to ns-3-...@googlegroups.com.
Visit this group at http://groups.google.com/group/ns-3-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 



--
С уважением,
Илья Мигаль
Reply all
Reply to author
Forward
0 new messages