title: Udp Packet error rate in omnetpp
body: <p>I have a question regarding the error rate calculation in .cc file for udpapp.</p>
  
  <pre><code>errorRate = ((float)(numPKTDropped) / (float)(numReceived + numPKTDropped))*100;
  EV &lt;&lt; "Error rate= "&lt;&lt;errorRate&lt;&lt;"%, Sent= "&lt;&lt;numSent&lt;&lt;" , Received= "&lt;&lt;numReceived&lt;&lt; endl;
  </code></pre>
  
  <p>this is my code and its a duplex system. Udp packet receiver is unaware with the number of sent packets from sender. How could this be possible to know this via code in omnetpp. </p>