From owner-freebsd-bugs@FreeBSD.ORG Sun Feb 6 17:50:07 2011 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 34733106567A for ; Sun, 6 Feb 2011 17:50:07 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 107138FC14 for ; Sun, 6 Feb 2011 17:50:07 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id p16Ho6EF074583 for ; Sun, 6 Feb 2011 17:50:06 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p16Ho6Go074582; Sun, 6 Feb 2011 17:50:06 GMT (envelope-from gnats) Resent-Date: Sun, 6 Feb 2011 17:50:06 GMT Resent-Message-Id: <201102061750.p16Ho6Go074582@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, "Vladislav V. Prodan" Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 04FCE1065672 for ; Sun, 6 Feb 2011 17:47:24 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22]) by mx1.freebsd.org (Postfix) with ESMTP id DDAD28FC16 for ; Sun, 6 Feb 2011 17:47:23 +0000 (UTC) Received: from red.freebsd.org (localhost [127.0.0.1]) by red.freebsd.org (8.14.4/8.14.4) with ESMTP id p16HlNNQ064512 for ; Sun, 6 Feb 2011 17:47:23 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.4/8.14.4/Submit) id p16HlNYR064511; Sun, 6 Feb 2011 17:47:23 GMT (envelope-from nobody) Message-Id: <201102061747.p16HlNYR064511@red.freebsd.org> Date: Sun, 6 Feb 2011 17:47:23 GMT From: "Vladislav V. Prodan" To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: misc/154557: Freeze tcp-session of the clients, if in the gateway is used quagga X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 06 Feb 2011 17:50:07 -0000 >Number: 154557 >Category: misc >Synopsis: Freeze tcp-session of the clients, if in the gateway is used quagga >Confidential: no >Severity: serious >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sun Feb 06 17:50:06 UTC 2011 >Closed-Date: >Last-Modified: >Originator: Vladislav V. Prodan >Release: 8.2-PRERELEASE amd64 >Organization: >Environment: FreeBSD bgp.ZZZ 8.2-PRERELEASE FreeBSD 8.2-PRERELEASE #0: Sun Jan 30 03:15:34 EET 2011 root@bgp.ZZZ:/usr/obj/usr/src/sys/bgp.1 amd64 >Description: --> gateway freebsd (8.2-PRERELEASE, Jan 30) -->(Local area network, using unmanaged switch) --> client freebsd (8.2-PRERELEASE, Dec 19) AS1111 <--> AS5555 via BGP gateway freebsd, quagga-0.99.17_5, prefix XXX.YYY.202.0/23 No problems with services that use udp, for example, DNS and ntp. Also, there are no problems when using ipv6. This impression, if tcp response of more than 1000 bytes - then the session hangs. Below shows how to hang two sessions - http and cvsup: Proto Recv-Q Send-Q Local Address Foreign Address (state) tcp4 0 0 XXX.YYY.202.12.45966 H250.onetel92.on.http ESTABLISHED tcp4 0 0 XXX.YYY.202.12.14486 sesame.csx.cam.a.cvsup ESTABLISHED tcp4 0 52 10.0.1.201.ssh 10.0.0.10.1587 ESTABLISHED tcp4 0 0 XXX.YYY.202.12.11307 otrada.pptp ESTABLISHED udp4 0 0 10.0.1.201.ntp *.* udp6 0 0 fe80:4::1.ntp *.* udp6 0 0 localhost.ntp *.* udp4 0 0 localhost.ntp *.* udp4 0 0 beastie.local.ntp *.* udp4 0 0 XXX.YYY.202.18.ntp *.* udp6 0 0 fe80:1::92e6:baf.ntp *.* udp4 0 0 XXX.YYY.202.12.ntp *.* udp4 0 0 localhost.11211 *.* udp4 0 0 10.0.1.201.domain *.* udp4 0 0 localhost.domain *.* udp4 0 0 beastie.local.domain *.* udp4 0 0 XXX.YYY.202.18.domain *.* udp4 0 0 XXX.YYY.202.12.domain *.* BGP-router# sh ip bgp sum BGP router identifier A.B.C.D, local AS number 5555 RIB entries 632127, using 58 MiB of memory Peers 2, using 9120 bytes of memory Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd 195.230.ZZZ.xx 4 1111 7062 1138 0 0 0 18:54:53 5044 195.230.ZZZ.YY 4 1111 143093 1138 0 0 0 18:54:51 336779 Total number of neighbors 2 /etc/sysctl.conf on the gateway: kern.ipc.somaxconn=65535 kern.ipc.maxsockets=204800 net.inet.ip.portrange.first=1024 net.inet.ip.portrange.last=65535 kern.maxfiles=204800 ##? 256000 kern.maxfilesperproc=200000 ## ? 230400 kern.ipc.shmmax=67108864 kern.ipc.shmall=67108864 net.inet.tcp.rfc3465=0 net.inet.flowtable.enable=0 net.inet.tcp.blackhole=1 net.inet.udp.blackhole=1 net.inet.icmp.drop_redirect=1 /etc/sysctl.conf on the client: kern.ipc.somaxconn=65535 kern.ipc.maxsockets=204800 net.inet.ip.portrange.first=1024 net.inet.ip.portrange.last=65535 kern.maxfiles=204800 ##? 256000 kern.maxfilesperproc=200000 ## ? 230400 kern.ipc.shmmax=67108864 kern.ipc.shmall=67108864 net.inet.tcp.rfc3465=0 net.inet.flowtable.enable=0 >How-To-Repeat: >Fix: >Release-Note: >Audit-Trail: >Unformatted: