From owner-freebsd-net@FreeBSD.ORG Thu Feb 7 12:07:26 2008 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 307BA16A417 for ; Thu, 7 Feb 2008 12:07:26 +0000 (UTC) (envelope-from jp@tns.cz) Received: from bns.tns.cz (bns.tns.cz [213.194.214.115]) by mx1.freebsd.org (Postfix) with ESMTP id 90B0F13C45B for ; Thu, 7 Feb 2008 12:07:25 +0000 (UTC) (envelope-from jp@tns.cz) Received: from bns.tns.cz (localhost [127.0.0.1]) by bns.tns.cz (Postfix) with ESMTP id 9698455E401 for ; Thu, 7 Feb 2008 13:07:24 +0100 (CET) Received: from bonifac.tns.cz (bertik [192.168.144.14]) by bns.tns.cz with ESMTP id 4FANKFG0014IUYQEHFB; Thu, 7 Feb 2008 13:07:24 +0100 (CET) Received: by bonifac.tns.cz (Postfix, from userid 1001) id B2437F2305; Thu, 7 Feb 2008 13:07:58 +0100 (CET) Resent-From: Josef Pojsl Resent-Date: Thu, 7 Feb 2008 13:07:58 +0100 Resent-Message-ID: <20080207120758.GD56085@bonifac.tns.cz> Resent-To: freebsd-net@freebsd.org X-Original-To: jp@tns.cz Delivered-To: pepa@i.tns.cz Received: from i.tns.cz [194.228.50.77] by bonifac.tns.cz with POP3 (fetchmail-6.3.8) for (single-drop); Thu, 07 Feb 2008 09:20:58 +0100 (CET) Received: from jonas.tns.cz (jonas.tns.cz [194.228.50.78]) by i.tns.cz (Postfix) with ESMTP id 087FEA048F3 for ; Thu, 7 Feb 2008 08:49:19 +0100 (CET) Received: from bns.tns.cz (bns.tns.cz [213.194.214.115]) by jonas.tns.cz with ESMTP id 4FALNW4001IW8YQHMO2; Thu, 7 Feb 2008 08:49:13 +0100 (CET) Received: from bns.tns.cz (localhost [127.0.0.1]) by bns.tns.cz (Postfix) with ESMTP id 77A5C55E401 for ; Thu, 7 Feb 2008 08:49:10 +0100 (CET) Received: from bonifac.tns.cz (bertik [192.168.144.14]) by bns.tns.cz with ESMTP id 4FALNVO000V7KYQ8401; Thu, 7 Feb 2008 08:49:10 +0100 (CET) Received: by bonifac.tns.cz (Postfix, from userid 1001) id 30A21F19CD; Thu, 7 Feb 2008 08:49:45 +0100 (CET) Date: Thu, 7 Feb 2008 08:49:44 +0100 From: Josef Pojsl To: Eygene Ryabinkin Message-ID: <20080207074944.GA56085@bonifac.tns.cz> References: <20080206144104.GL1122@bonifac.tns.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.16 (2007-06-09) X-Kernun-Spam-Checker: Version KERNUN-2_4-RELEASE on jonas.tns.cz X-Kernun-Spam-Level: X-Kernun-Spam-Score: 600 X-Kernun-Spam-Report: Protocol details follow * -0.4 ALL_TRUSTED Passed through trusted hosts only via SMTP * 1.0 BAYES_50 BODY: Bayesian spam probability is 40 to 60% * [score: 0.5000] Cc: freebsd-net@freebsd.org Subject: Re: ospf cost and route selection (openospfd) 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: Thu, 07 Feb 2008 12:07:26 -0000 Hi Eygene, Thanks a lot for your remarks. I absolutely agree with you that all columns are correct except the Nexthop. On Wed, Feb 06, 2008 at 06:21:42PM +0300, Eygene Ryabinkin wrote: > Josef, good day. > > Currently I can not answer your question, sorry. I just have the > remark. > > Wed, Feb 06, 2008 at 03:41:04PM +0100, Josef Pojsl wrote: > > ospfctl show rib: > > Router 1: > > Destination Nexthop Path Type Type Cost Uptime > > 0.0.0.2 10.31.2.2 Intra-Area Router 20 00:03:51 > > 10.30.1.2/32 10.31.2.2 Intra-Area Network 40 00:03:41 > > 10.31.1.2/32 10.31.2.2 Intra-Area Network 70 00:03:51 > > 'Cost' column looks perfectly correct: in order to reach the other > router, the path with cost 20 is selected (presumably, WAN X); path > to 10.30.1.2/32 costs 20+20: 20 from WAN X interface and 20 from > the gre30 on the other end; and path to 10.31 costs 70=20+50, > WAN X + gre31 on the other end. > > The only weird thing is the nexthop value. Your 'netstat -rn' shows > routes via gre31 too? If yes, maybe the verbose mode of the openospfd > (-v) will show something interesting? > -- > Eygene Yes, netstat -rn shows routes via gre31. I forgot to include its output: Router 1: 10.30.1.2/32 10.31.2.2 UG2 0 0 gre31 10.30.2/24 10.31.2.2 UG2 0 0 gre31 10.30.2.2 10.30.1.2 UH 0 4148 gre30 10.31.1.2/32 10.31.2.2 UG2 0 0 gre31 10.31.2.2 10.31.1.2 UH 4 3178 gre31 192.168.1 link#3 UC 0 0 re0 192.168.2 10.31.2.2 UG2 0 0 gre31 Router 2: 10.30.1/24 10.31.1.2 UG2 0 0 gre31 10.30.1.2 10.30.2.2 UH 0 4551 gre30 10.30.2.2/32 10.31.1.2 UG2 0 0 gre31 10.31.1.2 10.31.2.2 UH 5 2451 gre31 10.31.2.2/32 10.31.1.2 UG2 0 0 gre31 192.168.1 10.31.1.2 UG2 0 0 gre31 192.168.2 link#4 UC 0 0 int ospfd -dv shows the following: Router 1: startup orig_asext_lsa: 10.10.0.0/16 age 0 start_spf_timer: IDLE -> DELAY orig_asext_lsa: 10.20.0.0/16 age 0 orig_asext_lsa: 192.168.1.0/24 age 0 orig_rtr_lsa: area 0.0.0.0 orig_rtr_lsa: stub net, interface gre31 if_fsm: event UP resulted in action START and changing state for interface gre31 from DOWN to P2P orig_rtr_lsa: area 0.0.0.0 orig_rtr_lsa: stub net, interface gre31 orig_rtr_lsa: stub net, interface gre30 if_fsm: event UP resulted in action START and changing state for interface gre30 from DOWN to P2P spf_calc: calculation started, area ID 0.0.0.0 spf_calc: calculation ended, area ID 0.0.0.0 spf_start_holdtimer: DELAY -> HOLD nbr_fsm: event HELLO_RECEIVED resulted in action START_INACTIVITY_TIMER and changing state for neighbor ID 0.0.0.2 from DOWN to INIT nbr_fsm: event HELLO_RECEIVED resulted in action START_INACTIVITY_TIMER and changing state for neighbor ID 0.0.0.2 from DOWN to INIT spf_timer: state HOLD -> IDLE nbr_fsm: event 2_WAY_RECEIVED resulted in action EVAL and changing state for neighbor ID 0.0.0.2 from INIT to EXSTA if_fsm: event NEIGHBORCHANGE resulted in action NOTHING and changing state for interface gre31 from P2P to P2P nbr_fsm: event NEGOTIATION_DONE resulted in action SNAPSHOT and changing state for neighbor ID 0.0.0.2 from EXSTA to SNAP nbr_fsm: event 2_WAY_RECEIVED resulted in action EVAL and changing state for neighbor ID 0.0.0.2 from INIT to EXSTA if_fsm: event NEIGHBORCHANGE resulted in action NOTHING and changing state for interface gre30 from P2P to P2P nbr_fsm: event NEGOTIATION_DONE resulted in action SNAPSHOT and changing state for neighbor ID 0.0.0.2 from EXSTA to SNAP nbr_fsm: event SNAPSHOT_DONE resulted in action SNAPSHOT_DONE and changing state for neighbor ID 0.0.0.2 from SNAP to EXCHG nbr_fsm: event SNAPSHOT_DONE resulted in action SNAPSHOT_DONE and changing state for neighbor ID 0.0.0.2 from SNAP to EXCHG nbr_fsm: event EXCHANGE_DONE resulted in action EXCHANGE_DONE and changing state for neighbor ID 0.0.0.2 from EXCHG to LOAD nbr_fsm: event EXCHANGE_DONE resulted in action EXCHANGE_DONE and changing state for neighbor ID 0.0.0.2 from EXCHG to LOAD start_spf_timer: IDLE -> DELAY orig_rtr_lsa: area 0.0.0.0 orig_rtr_lsa: point-to-point, interface gre31 orig_rtr_lsa: stub net, interface gre31 orig_rtr_lsa: stub net, interface gre30 nbr_fsm: event LOADING_DONE resulted in action NOTHING and changing state for neighbor ID 0.0.0.2 from LOAD to FULL orig_rtr_lsa: area 0.0.0.0 orig_rtr_lsa: point-to-point, interface gre31 orig_rtr_lsa: stub net, interface gre31 orig_rtr_lsa: point-to-point, interface gre30 orig_rtr_lsa: stub net, interface gre30 nbr_fsm: event LOADING_DONE resulted in action NOTHING and changing state for neighbor ID 0.0.0.2 from LOAD to FULL spf_calc: calculation started, area ID 0.0.0.0 spf_calc: w id 0.0.0.2 type 1 has no link to v id 0.0.0.1 type 1 spf_calc: w id 0.0.0.2 type 1 has no link to v id 0.0.0.1 type 1 spf_calc: calculation ended, area ID 0.0.0.0 spf_start_holdtimer: DELAY -> HOLD spf_timer: state HOLD -> IDLE start_spf_timer: IDLE -> DELAY spf_calc: calculation started, area ID 0.0.0.0 spf_calc: calculation ended, area ID 0.0.0.0 spf_start_holdtimer: DELAY -> HOLD spf_timer: state HOLD -> IDLE Router 2: startup orig_asext_lsa: 10.10.0.0/16 age 0 start_spf_timer: IDLE -> DELAY orig_asext_lsa: 10.20.0.0/16 age 0 orig_asext_lsa: 192.168.2.0/24 age 0 orig_rtr_lsa: area 0.0.0.0 orig_rtr_lsa: stub net, interface gre31 if_fsm: event UP resulted in action START and changing state for interface gre31 from DOWN to P2P orig_rtr_lsa: area 0.0.0.0 orig_rtr_lsa: stub net, interface gre31 orig_rtr_lsa: stub net, interface gre30 if_fsm: event UP resulted in action START and changing state for interface gre30 from DOWN to P2P spf_calc: calculation started, area ID 0.0.0.0 spf_calc: calculation ended, area ID 0.0.0.0 spf_start_holdtimer: DELAY -> HOLD spf_timer: state HOLD -> IDLE nbr_fsm: event HELLO_RECEIVED resulted in action START_INACTIVITY_TIMER and changing state for neighbor ID 0.0.0.1 from DOWN to INIT nbr_fsm: event 2_WAY_RECEIVED resulted in action EVAL and changing state for neighbor ID 0.0.0.1 from INIT to EXSTA if_fsm: event NEIGHBORCHANGE resulted in action NOTHING and changing state for interface gre31 from P2P to P2P nbr_fsm: event HELLO_RECEIVED resulted in action START_INACTIVITY_TIMER and changing state for neighbor ID 0.0.0.1 from DOWN to INIT nbr_fsm: event 2_WAY_RECEIVED resulted in action EVAL and changing state for neighbor ID 0.0.0.1 from INIT to EXSTA if_fsm: event NEIGHBORCHANGE resulted in action NOTHING and changing state for interface gre30 from P2P to P2P nbr_fsm: event NEGOTIATION_DONE resulted in action SNAPSHOT and changing state for neighbor ID 0.0.0.1 from EXSTA to SNAP nbr_fsm: event NEGOTIATION_DONE resulted in action SNAPSHOT and changing state for neighbor ID 0.0.0.1 from EXSTA to SNAP nbr_fsm: event SNAPSHOT_DONE resulted in action SNAPSHOT_DONE and changing state for neighbor ID 0.0.0.1 from SNAP to EXCHG nbr_fsm: event SNAPSHOT_DONE resulted in action SNAPSHOT_DONE and changing state for neighbor ID 0.0.0.1 from SNAP to EXCHG nbr_fsm: event EXCHANGE_DONE resulted in action EXCHANGE_DONE and changing state for neighbor ID 0.0.0.1 from EXCHG to LOAD nbr_fsm: event EXCHANGE_DONE resulted in action EXCHANGE_DONE and changing state for neighbor ID 0.0.0.1 from EXCHG to LOAD start_spf_timer: IDLE -> DELAY orig_rtr_lsa: area 0.0.0.0 orig_rtr_lsa: point-to-point, interface gre31 orig_rtr_lsa: stub net, interface gre31 orig_rtr_lsa: stub net, interface gre30 nbr_fsm: event LOADING_DONE resulted in action NOTHING and changing state for neighbor ID 0.0.0.1 from LOAD to FULL orig_rtr_lsa: area 0.0.0.0 orig_rtr_lsa: point-to-point, interface gre31 orig_rtr_lsa: stub net, interface gre31 orig_rtr_lsa: point-to-point, interface gre30 orig_rtr_lsa: stub net, interface gre30 nbr_fsm: event LOADING_DONE resulted in action NOTHING and changing state for neighbor ID 0.0.0.1 from LOAD to FULL spf_calc: calculation started, area ID 0.0.0.0 spf_calc: w id 0.0.0.1 type 1 has no link to v id 0.0.0.2 type 1 spf_calc: w id 0.0.0.1 type 1 has no link to v id 0.0.0.2 type 1 spf_calc: calculation ended, area ID 0.0.0.0 spf_start_holdtimer: DELAY -> HOLD spf_timer: state HOLD -> IDLE start_spf_timer: IDLE -> DELAY spf_calc: calculation started, area ID 0.0.0.0 spf_calc: calculation ended, area ID 0.0.0.0 spf_start_holdtimer: DELAY -> HOLD spf_timer: state HOLD -> IDLE Regards, -- Josef