From nobody@FreeBSD.org  Thu Nov 28 09:00:16 2013
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115])
	(using TLSv1 with cipher ADH-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by hub.freebsd.org (Postfix) with ESMTPS id 0543E394
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 28 Nov 2013 09:00:16 +0000 (UTC)
Received: from oldred.freebsd.org (oldred.freebsd.org [8.8.178.121])
	(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by mx1.freebsd.org (Postfix) with ESMTPS id CBB7F1ED5
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 28 Nov 2013 09:00:15 +0000 (UTC)
Received: from oldred.freebsd.org ([127.0.1.6])
	by oldred.freebsd.org (8.14.5/8.14.7) with ESMTP id rAS90FeW084339
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 28 Nov 2013 09:00:15 GMT
	(envelope-from nobody@oldred.freebsd.org)
Received: (from nobody@localhost)
	by oldred.freebsd.org (8.14.5/8.14.5/Submit) id rAS90F2N084335;
	Thu, 28 Nov 2013 09:00:15 GMT
	(envelope-from nobody)
Message-Id: <201311280900.rAS90F2N084335@oldred.freebsd.org>
Date: Thu, 28 Nov 2013 09:00:15 GMT
From: Archy <archy@i-services.com.hk>
To: freebsd-gnats-submit@FreeBSD.org
Subject: Very slow connection to Windows x64 System
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         184349
>Category:       kern
>Synopsis:       Very slow connection to Windows x64 System
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Nov 28 09:10:00 UTC 2013
>Closed-Date:    Mon Dec 02 20:23:39 UTC 2013
>Last-Modified:  Mon Dec 02 20:23:50 UTC 2013
>Originator:     Archy
>Release:        9.2 x86_64
>Organization:
I-Services Network Solution Limited
>Environment:
FreeBSD Router-xx 9.2-RELEASE FreeBSD 9.2-RELEASE #0: Tue Oct 15 09:29:45 HKT 2013     root@Router-xx:/usr/src/sys/amd64/compile/ROUTER-NETMAP  amd64

>Description:
I found a problem but I could not justify is that problem of FreeBSD or Windows.

I got very slow connection between two machine, only HTTP have problem.

Server : FreeBSD 9.2 x86_64
Client: Windows 7 x86_64

The problem was found since I use the FreeBSD 9.2 as a web server ,
client complaint the connection very slow , have only ~1kbps , 
I have change the server side from Apache to Lighttpd , no luck , 
and I test the line with FTP SSH protocol , 
Server to Client with same IP address , connection have >30Mbps via internet .

After that , I use the same IP address of server side , 
change it to FreeBSD 9.1 x86_64 and have no problem of the HTTP connections , 
got 30Mbps back again.

Then I change the server back to FreeBSD 9.2 x86_64 , 
and change the client side from Windows 7 x86_64 to Windows 2008 x86_64 , 
the problem exist , whatever a chrome / IE / or any download agents .
And I change to a Win7 32bit , the line get back to 30Mbps again with HTTP.

All test use the same Server IP and Client IP , IP have no changed.

As I have tested and got the following result:
FreeBSD 9.2 x86_64 > Windows6.1(Win7/2008) x86_64 slow with HTTP but other work fine
Same IP address of both sides 
FreeBSD 9.1 x86_64 >Windows6.1(Win7/2008) x86_64 works fine.

Here is my custom kernel configuration (Both 9.1 and 9.2) hope it helps :
options         DUMMYNET
options         IPFIREWALL
options         IPFIREWALL_FORWARD
options         IPFIREWALL_DEFAULT_TO_ACCEPT
options         IPDIVERT
device          pf
device          pflog
device          pfsync
options         ALTQ
options         ALTQ_CBQ
options         ALTQ_RED
options         ALTQ_RIO
options         ALTQ_HFSC
options         ALTQ_CDNR
options         ALTQ_PRIQ
options         ALTQ_NOPCC
options	     ZERO_COPY_SOCKETS
options         TCP_SIGNATURE
options         IPSEC
options         IPSEC_FILTERTUNNEL
device          cryptodev
device          crypto
options        HZ=1000
device          carp
device          netmap

And more information , I put the server and client with-in the same subnet , 
it will have no problem , but I don't think that is a routing problem ,
since I have test with only one router hop between server and client , 
it will got the problem back again , no matter the router is a Cisco or FreeBSD box.
>How-To-Repeat:

>Fix:


>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: remko 
State-Changed-When: Mon Dec 2 20:22:19 UTC 2013 
State-Changed-Why:  
I do not think this is a PR just yet. Please ask around on the hackers@FreeBSD.org mailing list or 
the questions@FreeBSD.org mailing list instead. 


Responsible-Changed-From-To: freebsd-www->freebsd-bugs 
Responsible-Changed-By: remko 
Responsible-Changed-When: Mon Dec 2 20:22:19 UTC 2013 
Responsible-Changed-Why:  
reassign to -bugs, since this is not a WWW PR. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=184349 
>Unformatted:
