netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Lennert Buytenhek <buytenh@wantstofly.org>
To: netdev@oss.sgi.com
Cc: jamal <hadi@cyberus.ca>, Pekka Savola <pekkas@netcore.fi>,
	shemminger@osdl.org, shollenbeck@verisign.com
Subject: tunneling in linux (was: Re: [PATCH][RFC] etherip: Ethernet-in-IPv4 tunneling)
Date: Sun, 16 Jan 2005 19:55:53 +0100	[thread overview]
Message-ID: <20050116185553.GA21739@xi.wantstofly.org> (raw)
In-Reply-To: <1105897020.1091.736.camel@jzny.localdomain>

Summarising private thread on netdev.

The main issue under discussion is whether to implement ethernet-over-IP
tunneling by using etherip, or whether using something like GRE would be
better.  The main argument against etherip is that its RFC has
'Informational' status (while the latest GRE RFC I could find, 2784, is
'Proposed Standard'.)

Another argument against etherip would be that OpenBSD apparently
mis-implemented etherip by putting the etherip version nibble in the
second nibble of the etherip header instead of the first, which would
probably prevent the linux and OpenBSD versions from interoperating,
negating the advantage of using etherip in the first place.

All I personally care about is that when I install a random linux distro
two years from now, that ethernet-over-IP tunneling will simply work, using
whatever protocol -- I don't care about which.

Any opinions?


If we do end up using GRE for ethernet tunneling, there's some work that
needs to be done.  For one, ip_gre in its current form would need a certain
amount of hacking for tunneling ethernet frames instead of IPv4/IPv6 as
it does now.  We might as rename it to plain 'gre' and move it out of
net/ipv4/ to net/core/ or something while we're at it.

The way we currently use (f.e. in iproute2) for finding out whether a
given netdevice is a tunnel or not is by looking at ARPHRD_*, but this
scheme breaks down for ethernet tunnels, since there is no other way of
distinguishing them from regular ethernet devices.  We could issue
SIOCGETTUNNEL and see if that succeeds, but that unfortunately aliases
with SIOCDEVPRIVATE which aliases to BOND_ENSLAVE_OLD, SIOCGMSTATS,
EQL_ENSLAVE, FRAD_GET_CONF, SIOCDEVPLIP, SIOCGPPPSTATS and a million
others, so you never know if the netdevice really interpreted it as
SIOCGETTUNNEL or no.

Other things that suck about tunneling?
- If we're going to overhaul the way tunneling works, we should try to
  remove the need for the gre0 interface as well.
- Tunneling over IPv6 should be implemented.
- How to share more code between sit/ipip/gre?

Ideas?



On Sun, Jan 16, 2005 at 12:37:00PM -0500, jamal wrote:

> > > Is there a particular reason why GRE tunnel is not sufficient? 
> > 
> > No particular reason, apart from not being aware that GRE provides
> > this functionality.
> 
> True that GRE can do all this (and they have thought out well the
> broadcasting etc) but i dont think it will harm to push this into the
> kernel if some odd OS like openbsd supports it. 
> 
> cheers,
> jamal
> 
> 

  reply	other threads:[~2005-01-16 18:55 UTC|newest]

Thread overview: 30+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-01-12 22:24 [PATCH][RFC] etherip: Ethernet-in-IPv4 tunneling Lennert Buytenhek
2005-01-12 22:42 ` Ben Greear
2005-01-12 22:48   ` Lennert Buytenhek
2005-01-12 23:11     ` Ben Greear
2005-01-12 23:16       ` Lennert Buytenhek
2005-01-12 23:43         ` Thomas Graf
2005-01-13  0:18           ` Lennert Buytenhek
2005-01-13  0:28             ` Thomas Graf
2005-01-13  0:36               ` Lennert Buytenhek
2005-01-13  1:20                 ` Thomas Graf
2005-01-12 23:43         ` Ben Greear
2005-01-13  0:04 ` Stephen Hemminger
2005-01-13  0:29   ` Lennert Buytenhek
2005-01-13  7:49 ` Pekka Savola
2005-01-13  9:23   ` Lennert Buytenhek
2005-01-16 17:37     ` jamal
2005-01-16 18:55       ` Lennert Buytenhek [this message]
2005-01-16 19:51         ` tunneling in linux (was: Re: [PATCH][RFC] etherip: Ethernet-in-IPv4 tunneling) Pekka Savola
2005-01-16 19:57           ` Lennert Buytenhek
2005-01-17  5:45             ` Pekka Savola
2005-01-16 20:02         ` jamal
2005-01-16 20:20           ` Lennert Buytenhek
2005-01-16 20:37             ` Hasso Tepper
2005-01-16 21:21               ` Lennert Buytenhek
2005-01-16 21:32                 ` Hasso Tepper
2005-01-16 21:44                   ` Lennert Buytenhek
2005-01-16 23:09             ` jamal
2005-01-16 19:02       ` [PATCH][RFC] etherip: Ethernet-in-IPv4 tunneling Lennert Buytenhek
2005-01-16 20:05         ` jamal
2005-01-16 20:22           ` Lennert Buytenhek

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20050116185553.GA21739@xi.wantstofly.org \
    --to=buytenh@wantstofly.org \
    --cc=hadi@cyberus.ca \
    --cc=netdev@oss.sgi.com \
    --cc=pekkas@netcore.fi \
    --cc=shemminger@osdl.org \
    --cc=shollenbeck@verisign.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).