<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none"><!--P{margin-top:0;margin-bottom:0;} .ms-cui-menu {background-color:#ffffff;border:1px rgb(166, 166, 166) solid;font-family:"Segoe UI","Segoe WP","Segoe UI WPC",Tahoma,Arial,sans-serif;font-size:10pt;color:rgb(51, 51, 51);} .ms-cui-menusection-title {display:none;} .ms-cui-ctl {vertical-align:text-top;text-decoration:none;color:rgb(51, 51, 51);} .ms-cui-ctl-on {background-color:rgb(205, 230, 247);opacity: 0.8;} .ms-cui-img-cont-float {display:inline-block;margin-top:2px} .ms-cui-smenu-inner {padding-top:0px;} .ms-owa-paste-option-icon {margin: 0px 6px 0px 6px;vertical-align:middle!important;padding-bottom: 2px;display:inline-block;} .ms-rtePasteFlyout-option:hover {background-color:rgb(205, 230, 247) !important;opacity:1 !important;} .ms-rtePasteFlyout-option {padding:8px 4px 8px 4px;outline:none;} .ms-cui-menusection {float:left; width:85px;height:24px;overflow:hidden}.wf {speak:none; font-weight:normal; font-variant:normal; text-transform:none; -webkit-font-smoothing:antialiased; vertical-align:middle; display:inline-block;}.wf-family-owa {font-family:'o365Icons'}@font-face {  font-family:'o365IconsIE8';  src:url('prem/15.0.995.34/resources/styles/office365icons.ie8.eot?#iefix') format('embedded-opentype'),         url('prem/15.0.995.34/resources/styles/office365icons.ie8.woff') format('woff'),         url('prem/15.0.995.34/resources/styles/office365icons.ie8.ttf') format('truetype');  font-weight:normal;  font-style:normal;}@font-face {  font-family:'o365IconsMouse';  src:url('prem/15.0.995.34/resources/styles/office365icons.mouse.eot?#iefix') format('embedded-opentype'),         url('prem/15.0.995.34/resources/styles/office365icons.mouse.woff') format('woff'),         url('prem/15.0.995.34/resources/styles/office365icons.mouse.ttf') format('truetype');  font-weight:normal;  font-style:normal;}.wf-family-owa {font-family:'o365IconsMouse'}.ie8 .wf-family-owa {font-family:'o365IconsIE8'}.ie8 .wf-owa-play-large:before {content:'\e254';}.notIE8 .wf-owa-play-large:before {content:'\e054';}.ie8 .wf-owa-play-large {color:#FFFFFF/*$WFWhiteColor*/;}.notIE8 .wf-owa-play-large {border-color:#FFFFFF/*$WFWhiteColor*/; width:1.4em; height:1.4em; border-width:.1em; border-style:solid; border-radius:.8em; text-align:center; box-sizing:border-box; -moz-box-sizing:border-box; padding:0.1em; color:#FFFFFF/*$WFWhiteColor*/;}.ie8 .wf-size-play-large {width:40px; height:40px; font-size:30px}.notIE8 .wf-size-play-large {width:40px; height:40px; font-size:30px}.notIE8 .wf-owa-triangle-down-small:before {content:'\e052';}.ie8 .wf-owa-triangle-down-small:before { content:'\e052';}.ie8 .wf-owa-triangle-down-small {color:#666666/*$WFGreyColor*/;}.wf-size-x20 {font-size: 20px!important;}--></style>
</head>
<body dir="ltr" style="font-size:12pt;color:#000000;background-color:#FFFFFF;font-family:Calibri,Arial,Helvetica,sans-serif;">
<p>If you're using UDP (also know as Unreliable Data Protocol) you can most definitely lose packets.</p>
<p>It's unlikely you are losing them on the sending side. Most likely lost in the wire due to collisions or the receiving side not clearing the queue fast enough.<br>
</p>
<p><br>
</p>
<p>Try TCP packets instead which are much more reliable (though the TCP protocol is not guaranteed either due to connection resets and such).<br>
</p>
<p><br>
</p>
<div id="Signature">
<div style="font-family:Tahoma; font-size:13px">
<div style="font-family:Tahoma; font-size:13px">
<div style="font-family:Tahoma; font-size:13px">
<p>Michael D. Black<br>
Senior Scientist<br>
Analytics, Production and Services<br>
Northrop Grumman Information Systems<br>
</p>
</div>
</div>
</div>
</div>
<div style="color: rgb(33, 33, 33);">
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font style="font-size:11pt" color="#000000" face="Calibri, sans-serif"><b>From:</b> winpcap-users-bounces@winpcap.org <winpcap-users-bounces@winpcap.org> on behalf of 范廷东 <fan.tingdong@gmail.com><br>
<b>Sent:</b> Sunday, September 7, 2014 6:59 AM<br>
<b>To:</b> winpcap-users<br>
<b>Subject:</b> EXT :[Winpcap-users] Confusion: How can we identify where the packet is lost?</font>
<div> </div>
</div>
<div>
<div>Dear all,</div>
<div> </div>
<div>I am writing a software program(with support from winpcap) which tests if a device could send packets continously to my laptop without loss of packets.
</div>
<div> </div>
<div>The sending part send packets with four bits for counter , and the receiving part check if there is incontinuity of the counts, as shown in the picture below.  Winpcap driver was working in PACKET_MODE_CAPT mode(mode=PACKET_MODE_CAPT). The Receing part
 found there were lost of packets when I was testing the software. </div>
<div> </div>
<div><img src="cid:3C384F9F@C69EC16A.A5480C54.bmp"></div>
<div> </div>
<div>Then I got a confusion: Where were the packets lost? The receiving part(my laptop) did not receive the packets successfully, or the sending part failed sending the packets?</div>
<div> </div>
<div>Hopefully anyone could provide any hits.  Thank you all in advance.</div>
<div> </div>
<div>Best regards,</div>
<div> </div>
<div>Fan Tingdong</div>
<div>User and Fans of Winpcap</div>
<div> </div>
<div> </div>
</div>
</div>
</body>
</html>