The packet has a flag hasBitError(), the channel computes the probability of errors and set the flag to true if the packet has an error, you only need to check it
If (pkt->hasBitError()) {
// packet has errors, discard it
delete pkt;
return;
--
You received this message because you are subscribed to the Google Groups "OMNeT++ Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
omnetpp+u...@googlegroups.com.
Visit this group at https://groups.google.com/group/omnetpp.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to omnetpp+unsubscribe@googlegroups.com.
Define Bad packet ratio. You can measure the PDR, number of packets received/sent.
To unsubscribe from this group and stop receiving emails from it, send an email to omnetpp+unsubscribe@googlegroups.com.
Visit this group at https://groups.google.com/group/omnetpp.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "OMNeT++ Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to omnetpp+unsubscribe@googlegroups.com.
Visit this group at https://groups.google.com/group/omnetpp.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "OMNeT++ Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to omnetpp+unsubscribe@googlegroups.com.
The application module usully records the number of packets received, and sent. The diference between both is the number of packets that have been discarded due to errors, collisions, queue overflows ….
The bit error is not the only cause that can make that a packet could be discarded.
De: omn...@googlegroups.com [mailto:omn...@googlegroups.com]
En nombre de Asmae Bengag
Enviado el: miércoles, 16 de mayo de 2018 12:01
Para: omn...@googlegroups.com
Asunto: Re: [Omnetpp-l] How to detect errors in message after put the bit error rate (ber) in the ned file.
Thakns for your answer, Yes I Calculate PDR(Packet Delivery Ratio) , And how I find the the number of failed packets received that did not pass the cyclic redundancy check (CRC) ? To use It in Bad Packet Ratio ?