<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML xmlns="http://www.w3.org/TR/REC-html40" xmlns:o =
"urn:schemas-microsoft-com:office:office" xmlns:w =
"urn:schemas-microsoft-com:office:word" xmlns:st1 =
"urn:schemas-microsoft-com:office:smarttags"><HEAD>
<META http-equiv=Content-Type content="text/html; charset=ks_c_5601-1987">
<META content="MSHTML 6.00.2900.2722" name=GENERATOR><o:SmartTagType
name="country-region"
namespaceuri="urn:schemas-microsoft-com:office:smarttags"></o:SmartTagType><o:SmartTagType
name="place"
namespaceuri="urn:schemas-microsoft-com:office:smarttags"></o:SmartTagType><!--[if !mso]>
<STYLE>st1\:* {
        BEHAVIOR: url(#default#ieooui)
}
</STYLE>
<![endif]-->
<STYLE>
<!--
/* Font Definitions */
@font-face
        {font-family:¹ÙÅÁ;
        panose-1:2 3 6 0 0 1 1 1 1 1;}
@font-face
        {font-family:±¼¸²;
        panose-1:2 11 6 0 0 1 1 1 1 1;}
@font-face
        {font-family:"\@±¼¸²";
        panose-1:2 11 6 0 0 1 1 1 1 1;}
@font-face
        {font-family:"\@¹ÙÅÁ";
        panose-1:2 3 6 0 0 1 1 1 1 1;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        text-align:justify;
        text-justify:inter-ideograph;
        text-autospace:none;
        word-break:break-hangul;
        font-size:10.0pt;
        font-family:¹ÙÅÁ;}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:±¼¸²;
        color:windowtext;}
/* Page Definitions */
@page Section1
        {size:595.3pt 841.9pt;
        margin:99.25pt 3.0cm 3.0cm 3.0cm;
        layout-grid:18.0pt;}
div.Section1
        {page:Section1;}
-->
</STYLE>
</HEAD>
<BODY lang=KO vLink=purple link=blue bgColor=#ffffff>
<DIV><FONT face="Courier New" size=2>Hi. </FONT></DIV>
<DIV><FONT face="Courier New" size=2></FONT> </DIV>
<DIV><FONT face="Courier New" size=2>There could be a number of reasons for this
low performance.</FONT></DIV>
<DIV><FONT face="Courier New" size=2></FONT> </DIV>
<DIV><FONT face="Courier New" size=2>Have you tried pinging a host on the other
side of your gateway and see the RTT for the reply? One reason could be the
latency introduced in the capture process by WinPcap, in order to achieve better
capture performance (i.e. a higher number of captured packets). In particular,
you can try to lower the timeout in pcap_open_xxx and the mintocopy value (with
pcap_setmintocopy). This should improve the responsiveness of the capture
process, at the expense of a higher CPU load.</FONT></DIV>
<DIV><FONT face="Courier New" size=2></FONT> </DIV>
<DIV><FONT face="Courier New" size=2>Have a nice day</FONT></DIV>
<DIV><FONT face="Courier New" size=2>GV</FONT></DIV>
<DIV><FONT face="Courier New" size=2></FONT> </DIV>
<BLOCKQUOTE
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=cmkim@sysonchip.co.kr href="mailto:cmkim@sysonchip.co.kr">±èö¹Î</A>
</DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A title=winpcap-users@winpcap.org
href="mailto:winpcap-users@winpcap.org">winpcap-users@winpcap.org</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Wednesday, August 17, 2005 4:57
AM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> [Winpcap-users] Performnace in
GW application....</DIV>
<DIV><BR></DIV>
<DIV class=Section1 style="LAYOUT-GRID: 18pt none">
<P class=MsoNormal><FONT face=±¼¸² size=2><SPAN lang=EN-US
style="FONT-SIZE: 10pt; FONT-FAMILY: ±¼¸²">Hi</SPAN></FONT><FONT
face=Arial><SPAN lang=EN-US style="FONT-FAMILY: Arial">¡¦</SPAN></FONT><FONT
face=±¼¸²><SPAN lang=EN-US style="FONT-FAMILY: ±¼¸²"><o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=±¼¸² size=2><SPAN lang=EN-US
style="FONT-SIZE: 10pt; FONT-FAMILY: ±¼¸²">I</SPAN></FONT><FONT face=Arial><SPAN
lang=EN-US style="FONT-FAMILY: Arial">¡¯</SPAN></FONT><FONT face=±¼¸²><SPAN
lang=EN-US style="FONT-FAMILY: ±¼¸²">m trying to develop GW application using
WinPCap library.<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=±¼¸² size=2><SPAN lang=EN-US
style="FONT-SIZE: 10pt; FONT-FAMILY: ±¼¸²">My target pc has two Ethernet
interfaces.<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=±¼¸² size=2><SPAN lang=EN-US
style="FONT-SIZE: 10pt; FONT-FAMILY: ±¼¸²">What I want to do now is just forward
every packet in one interface to the other.<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=±¼¸² size=2><SPAN lang=EN-US
style="FONT-SIZE: 10pt; FONT-FAMILY: ±¼¸²">Thus I capture every packet (but, I
do not use promiscuous option) and send it by opposite
interface.<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=±¼¸² size=2><SPAN lang=EN-US
style="FONT-SIZE: 10pt; FONT-FAMILY: ±¼¸²">The problem is in
performance.<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=±¼¸² size=2><SPAN lang=EN-US
style="FONT-SIZE: 10pt; FONT-FAMILY: ±¼¸²">The local network in my environment
has 100Mbps speed, but my application just shows 60Kbps in FTP
application</SPAN></FONT><FONT face=Arial><SPAN lang=EN-US
style="FONT-FAMILY: Arial">¡¦</SPAN></FONT><FONT face=±¼¸²><SPAN lang=EN-US
style="FONT-FAMILY: ±¼¸²"> ^^<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=±¼¸² size=2><SPAN lang=EN-US
style="FONT-SIZE: 10pt; FONT-FAMILY: ±¼¸²">I use two window threads for each
interface and pcap_loop() for packet capturing and
sending.<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=±¼¸² size=2><SPAN lang=EN-US
style="FONT-SIZE: 10pt; FONT-FAMILY: ±¼¸²">Are there any comments for increasing
performance?<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=±¼¸² size=2><SPAN lang=EN-US
style="FONT-SIZE: 10pt; FONT-FAMILY: ±¼¸²"><o:p> </o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=±¼¸² size=2><SPAN lang=EN-US
style="FONT-SIZE: 10pt; FONT-FAMILY: ±¼¸²">Cholmin
Kim<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><st1:country-region w:st="on"><st1:place w:st="on"><FONT
face=±¼¸² size=2><SPAN lang=EN-US
style="FONT-SIZE: 10pt; FONT-FAMILY: ±¼¸²">Korea</SPAN></FONT></st1:place></st1:country-region><FONT
face=±¼¸²><SPAN lang=EN-US
style="FONT-FAMILY: ±¼¸²">.<o:p></o:p></SPAN></FONT></P></DIV>
<P>
<HR>
<P></P>_______________________________________________<BR>Winpcap-users
mailing
list<BR>Winpcap-users@winpcap.org<BR>https://www.winpcap.org/mailman/listinfo/winpcap-users<BR></BLOCKQUOTE></BODY></HTML>