Re: [homenet] source routing requirements for routing protocols
Dave Taht <dave.taht@gmail.com> Tue, 06 August 2013 11:21 UTC
Return-Path: <dave.taht@gmail.com>
X-Original-To: homenet@ietfa.amsl.com
Delivered-To: homenet@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id DFC5F21F942D for <homenet@ietfa.amsl.com>; Tue, 6 Aug 2013 04:21:34 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.262
X-Spam-Level:
X-Spam-Status: No, score=-2.262 tagged_above=-999 required=5 tests=[AWL=-0.262, BAYES_00=-2.599, J_CHICKENPOX_13=0.6, NO_RELAYS=-0.001]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id lPJS84ogwpAu for <homenet@ietfa.amsl.com>; Tue, 6 Aug 2013 04:21:33 -0700 (PDT)
Received: from mail-ob0-x235.google.com (mail-ob0-x235.google.com [IPv6:2607:f8b0:4003:c01::235]) by ietfa.amsl.com (Postfix) with ESMTP id 4774621F9D96 for <homenet@ietf.org>; Tue, 6 Aug 2013 04:21:33 -0700 (PDT)
Received: by mail-ob0-f181.google.com with SMTP id dn14so497536obc.12 for <homenet@ietf.org>; Tue, 06 Aug 2013 04:21:32 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=L2bi8E5ZmSSkV91GGu3i9ZfeNWHEelNGt/2dgXBqyes=; b=EybzQ3uyK5/x1fiSvzNFHGIpG18nFqcANEJG4TzWd6Cl8bd/eHogsWIHIUIIVdC14m MY2hvkqcaeWhWapdW22gFIFeD5z/+ng8HxUBZzWFn1DCLYg1+7kXiqawDiah13vZ8fzW /BUhHiBi1CD4ZpSh092+sgFP4Rf8NVhFJh8DZHiqT2Eect1jbKYfudlL3uozGPMU4KzH DjRaIQTdPz1rs+0kBnMgrzc3nJ0xdzBtJmXdLXT+FMd8n8npC3v9vQFsAia+4R8WVjQG 0z24bknsn7D8779jaTLpNesXxL4JznspcoA6LDe91SKBsy6R/VfhtixC6EzbpiYzcK+P Wkqg==
MIME-Version: 1.0
X-Received: by 10.42.37.203 with SMTP id z11mr2018717icd.56.1375788092631; Tue, 06 Aug 2013 04:21:32 -0700 (PDT)
Received: by 10.64.62.106 with HTTP; Tue, 6 Aug 2013 04:21:32 -0700 (PDT)
In-Reply-To: <20130806111256.GF95257@jupiter.n2.diac24.net>
References: <6856.1375095717@sandelman.ca> <10806.1375097238@sandelman.ca> <CAKD1Yr1E3ai9bP4OXbNCH=v_uCXpK_Yf2_cccAYwAv2b8v7e8A@mail.gmail.com> <20130729143209.GL901145@jupiter.n2.diac24.net> <BEB7ED2C-8626-43A3-8E04-34C513B817D9@inf-net.nl> <20130806111256.GF95257@jupiter.n2.diac24.net>
Date: Tue, 06 Aug 2013 04:21:32 -0700
Message-ID: <CAA93jw7PBsrOKDpuV0_WaCtM8a42j25AKV5+fkF6n5TPzUVy2A@mail.gmail.com>
From: Dave Taht <dave.taht@gmail.com>
To: David Lamparter <equinox@diac24.net>
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: quoted-printable
Cc: "homenet@ietf.org Group" <homenet@ietf.org>, Teco Boot <teco@inf-net.nl>, Pierre PFISTER <pierre.pfister@darou.fr>
Subject: Re: [homenet] source routing requirements for routing protocols
X-BeenThere: homenet@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: <homenet.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/homenet>, <mailto:homenet-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/homenet>
List-Post: <mailto:homenet@ietf.org>
List-Help: <mailto:homenet-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/homenet>, <mailto:homenet-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 06 Aug 2013 11:21:35 -0000
On Tue, Aug 6, 2013 at 4:12 AM, David Lamparter <equinox@diac24.net> wrote: > On Sat, Aug 03, 2013 at 03:42:44PM +0200, Teco Boot wrote: >> I tested SADR with Linux IPv6_SUBTREES, with disappointing outcome. >> I posted my results on devnet, http://www.spinics.net/lists/netdev/msg245231.html >> Can you verify? >> I included the posting for convenience. > > Indeed I failed to take Linux's routing cache into account. (Basically, > since I was testing interactively in a shell, I was too slow to trigger > this issue.) > > So the core logic is correct, but it breaks as soon as there is a cache > entry. The way the route cache works, this is a bit annoying to fix > correctly. > > If someone wants to work on SADR on Linux right now, I have a patch that > partially fixes the cache lookup, but it only works as long as the > source specifications don't overlap. [which should be the case in > homenet most of the time, but note it breaks when there is a route with > ::/0 source.] > > (For the interested, fib6_lookup/_1() and ip6_pol_route() need to be > restructured. Also, the "BACKTRACK" macro is completely f*ken useless. > Not sure if this ever worked.) git clone git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git There have been a half dozen commits in linux's net-next kernel tree around the route cache in the last few weeks, notably one simplified ip rule for dealing with default routes, another broke out the genid stuff to make route flushing ipv4 not affect ipv6 and vice versa. Can I encourage those looking at this to look at that and see what can be leveraged/improved/fixed/de-borked? commit 7764a45a8f1fe74d4f7d301eaca2e558e7e2831a Author: Stefan Tomanek <stefan.tomanek@wertarbyte.de> Date: Thu Aug 1 02:17:15 2013 +0200 fib_rules: add .suppress operation This change adds a new operation to the fib_rules_ops struct; it allows the suppression of routing decisions if certain criteria are not met by its results. The first implemented constraint is a minimum prefix length added to the structures of routing rules. If a rule is added with a minimum prefix length >0, only routes meeting this threshold will be considered. Any other (more general) routing table entries will be ignored. When configuring a system with multiple network uplinks and default routes, is often convinient to reference the main routing table multiple times - but omitting the default route. Using this patch and a modified "ip" utility, th can be achieved by using the following command sequence: $ ip route add table secuplink default via 10.42.23.1 $ ip rule add pref 100 table main prefixlength 1 $ ip rule add pref 150 fwmark 0xA table secuplink With this setup, packets marked 0xA will be processed by the additional rout table "secuplink", but only if no suitable route in the main routing table c be found. By using a minimal prefixlength of 1, the default route (/0) of th table "main" is hidden to packets processed by rule 100; packets traveling t destinations with more specific routing entries are processed as usual. > > > -David > _______________________________________________ > homenet mailing list > homenet@ietf.org > https://www.ietf.org/mailman/listinfo/homenet -- Dave Täht Fixing bufferbloat with cerowrt: http://www.teklibre.com/cerowrt/subscribe.html
- [homenet] how to avoid getting stuck at Medius: a… Michael Richardson
- [homenet] source routing requirements for routing… Michael Richardson
- Re: [homenet] how to avoid getting stuck at Mediu… Ted Lemon
- Re: [homenet] source routing requirements for rou… Lorenzo Colitti
- Re: [homenet] source routing requirements for rou… Acee Lindem
- Re: [homenet] source routing requirements for rou… David Lamparter
- Re: [homenet] how to avoid getting stuck at Mediu… Lorenzo Colitti
- Re: [homenet] longest-match (was: source routing … Alexandru Petrescu
- Re: [homenet] source routing requirements for rou… Juliusz Chroboczek
- Re: [homenet] source routing requirements for rou… Juliusz Chroboczek
- Re: [homenet] source routing requirements for rou… Lorenzo Colitti
- Re: [homenet] longest-match (was: source routing … Wes Beebee (wbeebee)
- Re: [homenet] longest-match (was: source routing … Alexandru Petrescu
- Re: [homenet] longest-match (was: source routing … Wes Beebee (wbeebee)
- Re: [homenet] source routing requirements for rou… Teco Boot
- Re: [homenet] source routing requirements for rou… Michael Richardson
- Re: [homenet] how to avoid getting stuck at Mediu… Chris Grundemann
- Re: [homenet] longest-match (was: source routing … Alexandru Petrescu
- Re: [homenet] Medius: additional DHCPv6 (PD) opti… Michael Richardson
- Re: [homenet] timescale for HIPnet Michael Richardson
- Re: [homenet] longest-match (was: source routing … Wes Beebee (wbeebee)
- Re: [homenet] timescale for HIPnet Chris Grundemann
- Re: [homenet] longest-match (was: source routing … Alexandru Petrescu
- Re: [homenet] longest-match (was: source routing … Wes Beebee (wbeebee)
- Re: [homenet] longest-match (was: source routing … Pierre PFISTER
- Re: [homenet] timescale for HIPnet Michael Richardson
- Re: [homenet] timescale for HIPnet Chris Grundemann
- Re: [homenet] longest-match (was: source routing … Pierre PFISTER
- Re: [homenet] source routing requirements for rou… Teco Boot
- Re: [homenet] longest-match (was: source routing … Ray Hunter
- Re: [homenet] Medius: additional DHCPv6 (PD) opti… Ted Lemon
- Re: [homenet] Medius: additional DHCPv6 (PD) opti… Michael Richardson
- Re: [homenet] longest-match (was: source routing … Mark Andrews
- Re: [homenet] longest-match (was: source routing … Wes Beebee (wbeebee)
- Re: [homenet] longest-match (was: source routing … Henning Rogge
- Re: [homenet] Medius: additional DHCPv6 (PD) opti… Chris Grundemann
- Re: [homenet] longest-match (was: source routing … Teco Boot
- Re: [homenet] Medius: additional DHCPv6 (PD) opti… Ted Lemon
- Re: [homenet] longest-match (was: source routing … Teco Boot
- Re: [homenet] longest-match (was: source routing … Ray Hunter
- Re: [homenet] Medius: additional DHCPv6 (PD) opti… Townsley.net
- Re: [homenet] longest-match (was: source routing … Teco Boot
- Re: [homenet] longest-match (was: source routing … Lorenzo Colitti
- Re: [homenet] Medius: additional DHCPv6 (PD) opti… Ole Troan
- Re: [homenet] source routing requirements for rou… David Lamparter
- Re: [homenet] source routing requirements for rou… David Lamparter
- Re: [homenet] source routing requirements for rou… Dave Taht
- Re: [homenet] source routing requirements for rou… David Lamparter
- Re: [homenet] source routing requirements for rou… Lorenzo Colitti
- Re: [homenet] source routing requirements for rou… Robert Bradley
- Re: [homenet] Medius: additional DHCPv6 (PD) opti… Ted Lemon
- Re: [homenet] source routing requirements for rou… David Lamparter
- Re: [homenet] Medius: additional DHCPv6 (PD) opti… Ole Troan
- Re: [homenet] source routing requirements for rou… Lorenzo Colitti
- Re: [homenet] longest-match (was: source routing … Ray Hunter
- Re: [homenet] Medius: additional DHCPv6 (PD) opti… Chris Grundemann
- Re: [homenet] Medius: additional DHCPv6 (PD) opti… Michael Richardson
- Re: [homenet] Medius: additional DHCPv6 (PD) opti… Ted Lemon
- Re: [homenet] longest-match (was: source routing … Juliusz Chroboczek