From owner-freebsd-stable@FreeBSD.ORG Sat Jun 18 20:16:37 2005 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E919816A41C for ; Sat, 18 Jun 2005 20:16:37 +0000 (GMT) (envelope-from cswiger@mac.com) Received: from pi.codefab.com (pi.codefab.com [199.103.21.227]) by mx1.FreeBSD.org (Postfix) with ESMTP id B5C8C43D1F for ; Sat, 18 Jun 2005 20:16:37 +0000 (GMT) (envelope-from cswiger@mac.com) Received: from localhost (localhost [127.0.0.1]) by pi.codefab.com (Postfix) with ESMTP id 1E7015C99; Sat, 18 Jun 2005 16:16:37 -0400 (EDT) Received: from pi.codefab.com ([127.0.0.1]) by localhost (pi.codefab.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 87086-06; Sat, 18 Jun 2005 16:16:36 -0400 (EDT) Received: from [192.168.1.3] (pool-68-161-66-3.ny325.east.verizon.net [68.161.66.3]) by pi.codefab.com (Postfix) with ESMTP id EBDDB5C51; Sat, 18 Jun 2005 16:16:35 -0400 (EDT) Message-ID: <42B481A1.2050903@mac.com> Date: Sat, 18 Jun 2005 16:18:41 -0400 From: Chuck Swiger Organization: The Courts of Chaos User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.8) Gecko/20050511 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Michal Vanco References: <51688.147.175.8.5.1119105461.squirrel@webmail.satronet.sk> <42B46C9B.7000206@mac.com> <200506190004.48066.vanco@satro.sk> In-Reply-To: <200506190004.48066.vanco@satro.sk> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: amavisd-new at codefab.com Cc: freebsd-stable@freebsd.org Subject: Re: Routes not deleted after link down X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 18 Jun 2005 20:16:38 -0000 Michal Vanco wrote: > On Saturday 18 June 2005 20:48, Chuck Swiger wrote: [ ... ] >> Maybe. If the system was not going to be reconnected to that network >> anytime soon, it would be a good idea. On the other hand, if the link down >> was due to a transient failure of a wireless connection, which will be back >> up in a second or two, it's much better not to drop the route and kill any >> open connections. > > hmm ... this approach is may be appropriate for deskop instalation. what about > internet router? shouldn't "fast convergence" be better in this case? imagine > two links connected to the same router with different metrics. if first of > them goes down, the second never gets used in this case. You're right that a router should notice and quickly respond to an interface going down. Routing software like routed, gated, zebra, CARP, freevrrpd should register to receive interface change notifications and do the appropriate thing. In fact, that's pretty much what those programs actually do, although the details vary. Anyway, if you don't run such programs, FreeBSD generally is using static routes or a simple dynamic default route discovered via DHCP. The network stack has timeouts in place to close down open TCP connections and the like if no traffic can be sent for a long time. -- -Chuck