Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752022AbbKPUh2 (ORCPT ); Mon, 16 Nov 2015 15:37:28 -0500 Received: from aserp1040.oracle.com ([141.146.126.69]:20872 "EHLO aserp1040.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751041AbbKPUhY (ORCPT ); Mon, 16 Nov 2015 15:37:24 -0500 Date: Mon, 16 Nov 2015 15:37:09 -0500 From: Sowmini Varadhan To: "Jason A. Donenfeld" Cc: Jiri Benc , therbert@google.com, David Miller , Netdev , LKML Subject: Re: Routing loops & TTL tracking with tunnel devices Message-ID: <20151116203709.GA27178@oracle.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) X-Source-IP: userv0021.oracle.com [156.151.31.71] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1440 Lines: 31 On (11/16/15 21:14), Jason A. Donenfeld wrote: > > But what about in devices for which self-routing might actually be > useful? For example, let's say that if an incoming skb is headed for > dst X, it gets encapsulated and sent to dst A, and for dst Y it gets > encapsulated and sent to dst B, and for dst Z it gets encapsulated and > sent to dst C. I can imagine situations in which setting A==Y and B==Z > might be useful to do multiple levels of encapsulation on one device, > so that skbs headed for dst X get sent to dst C, but with intermediate > transformations of dst A and dst B. I believe that what you are talking about is basically nested encapsulation- see https://tools.ietf.org/html/rfc2473. The tunnelling endpoint could track the number of encapsulations and keep a limit on that? (conceptually this may be the same thing as your ttl proposal, except that "ttl" has other meanings in other contexts, so a bit non-intuitive) --Sowmini (fwiw, RFC 2473 proposes an ipv6 option to track nested encapsulation, and that never took off, because, among other reasons, its hard to offload such options to hardware. Anyway, you are not trying to carry this around in the packet). -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/