Drop Packets

926 views
Skip to first unread message

Bruno Marques

unread,
Jun 1, 2010, 8:32:57 PM6/1/10
to ns-3-users
Hi,

how can we get drop packets during a simulation?

Bruno Marques

Quincy

unread,
Jun 2, 2010, 11:38:27 PM6/2/10
to ns-3-users
What do you mean by drop packets? Packets don't just disappear for no
reason in real world. Are you saying you want to drop packet because
buffer's full? Packet drop because of collisions in wireless
situation? packet drop because SINR is too low in wireless situation?

Bruno Marques

unread,
Jun 7, 2010, 7:07:39 AM6/7/10
to ns-3-users

yes, when I said lost packets i was referring to, for example, lost
packets because the buffer is full.
How can I get the value that represents the number of packets lost?

Quincy

unread,
Jun 7, 2010, 8:38:53 PM6/7/10
to ns-3-users
On Jun 7, 9:07 pm, Bruno Marques <brunofs...@gmail.com> wrote:
> yes, when I said lost packets i was referring to, for example, lost
> packets because the buffer is full.
> How can I get the value that represents the number of packets lost?

Have a look at the TraceSources for the specific implementation of the
NetDevice/MAC. Eg. A CsmaNetDevice has "PhyRxDrop", WifiPhy has
"MacRxDrop", etc.

Quincy

Sérgio Figueiredo

unread,
Jun 7, 2010, 7:12:31 PM6/7/10
to ns-3-...@googlegroups.com
Hi Bruno,

You need to read the tutorial document, particularly the Tracing
Section, in order to get comfortable with trace sources and sinks. You
can see the whole list of trace sources in

http://www.nsnam.org/doxygen-release/index.html

under Modules -> Core -> The list of all trace sources.

As a tip, the trace source you're looking for is MacRxDrop, I guess.

Best regards,
S�rgio Figueiredo

Bruno Marques

unread,
Jun 8, 2010, 4:28:22 PM6/8/10
to ns-3-...@googlegroups.com


2010/6/8 Quincy <quinc...@gmail.com>

--
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.


Quincy, thanks for the help! Now i'll try to see how TraceSources works.

Bruno Marques

unread,
Jun 8, 2010, 4:37:04 PM6/8/10
to ns-3-...@googlegroups.com
No dia 8 de Junho de 2010 00:12, Sérgio Figueiredo <s3rg...@gmail.com> escreveu:
Hi Bruno,

You need to read the tutorial document, particularly the Tracing Section, in order to get comfortable with trace sources and sinks. You can see the whole list of trace sources in

http://www.nsnam.org/doxygen-release/index.html

under Modules -> Core -> The list of all trace sources.

As a tip, the trace source you're looking for is MacRxDrop, I guess.

Best regards,
Sérgio Figueiredo


Hi Sergio, 

actually i have read a little bit of the Tracing Section tutorial but now i understand that i must read it entirely... Yes, this is what i'm looking for.

Thank you for the reply
"Obrigado"
 




On 06/07/2010 12:07 PM, Bruno Marques wrote:
yes, when I said lost packets i was referring to, for example, lost
packets because the buffer is full.
How can I get the value that represents the number of packets lost?



On 3 Jun, 04:38, Quincy<quincy....@gmail.com>  wrote:
 
What do you mean by drop packets? Packets don't just disappear for no
reason in real world. Are you saying you want to drop packet because
buffer's full? Packet drop because of collisions in wireless
situation? packet drop because SINR is too low in wireless situation?

On Jun 2, 10:32 am, Bruno Marques<brunofs...@gmail.com>  wrote:



   
Hi,
     
   
how can we get drop packets during a simulation?
     
   
Bruno Marques
     
 

Reply all
Reply to author
Forward
0 new messages