From owner-freebsd-net@FreeBSD.ORG Fri Oct 19 03:09:27 2007 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3159416A46C for ; Fri, 19 Oct 2007 03:09:27 +0000 (UTC) (envelope-from max@love2party.net) Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.187]) by mx1.freebsd.org (Postfix) with ESMTP id AA96613C46B for ; Fri, 19 Oct 2007 03:09:25 +0000 (UTC) (envelope-from max@love2party.net) Received: from amd64.laiers.local (dslb-088-066-001-171.pools.arcor-ip.net [88.66.1.171]) by mrelayeu.kundenserver.de (node=mrelayeu6) with ESMTP (Nemesis) id 0ML29c-1IiiEF0GIH-0006V8; Fri, 19 Oct 2007 05:08:51 +0200 From: Max Laier Organization: FreeBSD To: freebsd-net@freebsd.org Date: Fri, 19 Oct 2007 05:08:43 +0200 User-Agent: KMail/1.9.7 References: <2385.62.242.232.132.1192696439.squirrel@www.enableit.dk> <200710181432.14461.freebsd-net@dino.sk> <200710182255.48379.freebsd-net@dino.sk> In-Reply-To: <200710182255.48379.freebsd-net@dino.sk> X-Face: ,,8R(x[kmU]tKN@>gtH1yQE4aslGdu+2]; R]*pL,U>^H?)gW@49@wdJ`H<=?utf-8?q?=25=7D*=5FBD=0A=09U=5For=3D=5CmOZf764=26nYj=3DJYbR1PW0ud?=>|!~,,CPC.1-D$FG@0h3#'5"k{V]a~.<=?utf-8?q?mZ=7D44=23Se=7Em=0A=09Fe=7E=5C=5DX5B=5D=5Fxj?=(ykz9QKMw_l0C2AQ]}Ym8)fU MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart2443098.GNIvYS6fbv"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200710190508.50040.max@love2party.net> X-Provags-ID: V01U2FsdGVkX19fO6GdoiJaZfDgZgyGGFA1jr0BNRG8lREyCT+ vRPoKKQFFCnjTmEXW02NRyy63ou9tWzsThRZnRP1CvE8338bWw kOc3Jda5IETg0EbD5a+MtmwGGVqzKXiIb0mEqEVVkE= Cc: Milan Obuch Subject: Re: packet loss with carp on 6.2 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 19 Oct 2007 03:09:27 -0000 --nextPart2443098.GNIvYS6fbv Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Thursday 18 October 2007, Milan Obuch wrote: > On Thursday 18 October 2007 14:32:13 Milan Obuch wrote: > > On Thursday 18 October 2007 12:50:19 Max Laier wrote: > > > On Thursday 18 October 2007, Klavs Klavsen wrote: > > > > I tried to just disable carp on the new machine (simply comment > > > > out carp config from /etc/rc.conf.local) and now the packet loss > > > > is gone - and hasn't been there for half an hour, so far. > > > > > > I supposed you also had to change your firewall rules? Otherwise > > > your ruleset might not be ready to deal with carp and that could be > > > the reason why you get the bad results? Start debugging by looking > > > at "netstat -ssp carp" on either machine and take a careful look at > > > your pf.conf. I also suggest that you add "log" to all you block > > > rules and watch tcpdump on pflog0 while pinging. > > > > > > > Seems the carp network interfaces has bugs. > > > > > > That's a pretty bold assertion given the limited debugging you have > > > done ;) > > > > I am experiencing something similar. I am trying to put together two > > PC firewall with failover. My rc.conf has following lines > > [ snip ] > > I did even simpler test: one firewall with one switch. > > ifconfig fxp0 10.0.0.1/26 > ifconfig carp0 create > ifconfig carp0 10.0.0.2/26 vhid ... pass ... > > switch has IP 10.0.0.3 > > ping -S 10.0.0.1 10.0.0.3 works, no loss. > ping -S 10.0.0.2 10.0.0.3 does not work well, ~ 80 % packet loss. > > This seems unusable to me. I see no simpler test right now... Can you do a tcpdump on fxp0 during this test and analyse if the loss is=20 in received or send packets. It is possible that the switch is the=20 culprit here. Maybe you can provide me with the pcap of this off list. Make sure to=20 start dumpping *before* bringing up carp. i.e. tcpdump -s 0 -i fxp0 -w carp_ping.pcap & ifconfig carp0 vhid ... ping ... fg ^C Thanks. =2D-=20 /"\ Best regards, | mlaier@freebsd.org \ / Max Laier | ICQ #67774661 X http://pf4freebsd.love2party.net/ | mlaier@EFnet / \ ASCII Ribbon Campaign | Against HTML Mail and News --nextPart2443098.GNIvYS6fbv Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4 (FreeBSD) iD8DBQBHGB/CXyyEoT62BG0RAnkAAJ98e0GqxfZ3g1c0kP/35drReUSpNQCcDjaB +O0zY9GDq05qA7Cg8ifHHqU= =tKNb -----END PGP SIGNATURE----- --nextPart2443098.GNIvYS6fbv--