<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style>.hmmessage P {
PADDING-RIGHT: 0px; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-TOP: 0px
}
BODY.hmmessage {
FONT-SIZE: 10pt; FONT-FAMILY: Tahoma
}
</style><style id="owaParaStyle">P {
MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px
}
</style>
</head>
<body class="hmmessage" fPStyle="1" ocsi="0">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">
<p>I'll jump in here...somebody correct me if I'm wrong.</p>
<p> </p>
<p>But...I believe pcap_send is synchronous so you're seeing network latency on the acknowledge.</p>
<p> </p>
<p>You need to look at pcap_sendqueue.... functions. Or just do the windows packet write without using winpcap at all. Pcap is mainly for honoring timestamps which you probably don't care about.</p>
<p> </p>
<p> </p>
<p> </p>
<div>
<p id=""> </p>
<div style="FONT-SIZE: 13px; FONT-FAMILY: Tahoma">
<p>Michael D. Black</p>
<p>Senior Scientist</p>
<p>NG Information Systems</p>
<p>Advanced Analytics Directorate</p>
<p> </p>
</div>
</div>
<div style="FONT-SIZE: 16px; COLOR: #000000; FONT-FAMILY: Times New Roman">
<hr tabindex="-1">
<div id="divRpF15293" style="DIRECTION: ltr"><font face="Tahoma" color="#000000" size="2"><b>From:</b> winpcap-users-bounces@winpcap.org [winpcap-users-bounces@winpcap.org] on behalf of Akif Usman [akif.usman@hotmail.com]<br>
<b>Sent:</b> Wednesday, January 26, 2011 5:46 AM<br>
<b>To:</b> winpcap-users@winpcap.org<br>
<b>Subject:</b> EXTERNAL:[Winpcap-users] Limit on packet sending.<br>
</font><br>
</div>
<div></div>
<div>HI,
<div><br>
</div>
<div>I am experiencing a problem while writing a program that accepts packets from one ethernet interface puts them in a queue and sends it back to another interface. I am using threading to do this multitasking. The sending thread is very slow, i dont know
why!</div>
<div><br>
</div>
<div>While i use threads and i receive at 50 Mbps i get a total forwarding rate of only 5-7 mbps. Then when i just grab one packet and keep on sending it in one thread (just to test the sending thread), it still gives me 5-10 Mbps . Is it a limitation of pcap_send
packet?</div>
<div><br>
</div>
<div>I am using pcap_loop to receive packets if i want to receive them continuously. But i don;t understand why the sending speed is so low. Please help me i am stuck from quite many days on this.</div>
<div><br>
</div>
<div>Best Regards</div>
<div>Fika</div>
</div>
</div>
</div>
</body>
</html>