All of lore.kernel.org
 help / color / mirror / Atom feed
From: David Ahern <dsa@cumulusnetworks.com>
To: Gilberto Bertin <gilberto.bertin@gmail.com>, netdev@vger.kernel.org
Subject: Re: [net-next RFC 0/4] SO_BINDTOSUBNET
Date: Mon, 7 Mar 2016 12:09:52 -0700	[thread overview]
Message-ID: <56DDD200.4080101@cumulusnetworks.com> (raw)
In-Reply-To: <1456241265-5766-1-git-send-email-gilberto.bertin@gmail.com>

On 2/23/16 8:27 AM, Gilberto Bertin wrote:
> This series introduces support for the SO_BINDTOSUBNET socket option, which
> allows a listener socket to bind to a subnet instead of * or a single address.
>
> Motivation:
> consider a set of servers, each one with thousands and thousands of IP
> addresses. Since assigning /32 or /128 IP individual addresses would be
> inefficient, one solution can be assigning subnets using local routes
> (with 'ip route add local').
>
> This allows a listener to listen and terminate connections going to any
> of the IP addresses of these subnets without explicitly configuring all
> of them. This is very efficient.
>
> Unfortunately there may be the need to use different subnets for
> different purposes.
> One can imagine port 80 being served by one HTTP server for some IP
> subnet, while another server used for another subnet.
> Right now Linux does not allow this.
> It is either possible to bind to *, indicating ALL traffic going to
> given port, or to individual IP addresses.
> The first only allows to accept connections from all the subnets.
> The latter does not scale well with lots of IP addresses.

Have you looked at the VRF implementation?
     Documentation/networking/vrf.txt

It certainly handles some of your requirements -- e.g., create L3 
domains (VRFs) for subnets of interest. Apps can bind to the VRF device 
to provide service to only those networks in the domain.

  parent reply	other threads:[~2016-03-07 19:09 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-02-23 15:27 [net-next RFC 0/4] SO_BINDTOSUBNET Gilberto Bertin
2016-02-23 15:27 ` [net-next RFC 1/4] bindtosubnet: infrastructure Gilberto Bertin
2016-02-23 15:27 ` [net-next RFC 2/4] bindtosubnet: TCP/IPv4 implementation Gilberto Bertin
2016-02-23 15:27 ` [net-next RFC 3/4] bindtosubnet: TCP/IPv6 implementation Gilberto Bertin
2016-02-23 15:27 ` [net-next RFC 4/4] bindtosubnet: UPD implementation Gilberto Bertin
2016-02-24  5:06 ` [net-next RFC 0/4] SO_BINDTOSUBNET Tom Herbert
2016-02-25 10:09   ` Gilberto Bertin
2016-03-07 17:22   ` Gilberto Bertin
2016-03-07 17:49     ` Tom Herbert
2016-03-11 14:43       ` Gilberto Bertin
2016-03-14 14:12     ` Willem de Bruijn
2016-03-07 19:09 ` David Ahern [this message]
  -- strict thread matches above, loose matches on Subject: below --
2016-03-16 13:19 Gilberto Bertin
2016-03-25  0:25 ` Tom Herbert
2016-03-25 22:29   ` Gilberto

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=56DDD200.4080101@cumulusnetworks.com \
    --to=dsa@cumulusnetworks.com \
    --cc=gilberto.bertin@gmail.com \
    --cc=netdev@vger.kernel.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.