public inbox for linux-rdma@vger.kernel.org
 help / color / mirror / Atom feed
* changing subnet ID
@ 2011-04-13 22:18 Bob Ciotti
       [not found] ` <20110413221831.GA20946-2Ww08eqqtp6fRvmTrFJqzg@public.gmane.org>
  0 siblings, 1 reply; 2+ messages in thread
From: Bob Ciotti @ 2011-04-13 22:18 UTC (permalink / raw)
  To: linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org


Question with regard to changing the subnet prefix in OpenSM.

We want to uniquely identify individual subnets via changing the
subnet prefix in OpenSM:

 /etc/ofa/opensm-ib0.conf:subnet_prefix 0xfe80000000000000

to something like 

 /etc/ofa/opensm-ib0.conf:subnet_prefix 0xfe80000000000100

Then an application can make some sense of what ib subnets it has access to, particularly on multi-homed 
or multi interfaced hosts that can be on any combination of ib subnets.

The RFC on ipv6 addressing (http://tools.ietf.org/html/rfc4291#section-2.5.6) says those bits should 
be 0. I'm unclear if FE80/10 or FE80:0:0:0/64 is link local.

Does anyone know if this will break things or a better way to do this, and keep the host address part
private (not unique) between subnets? I suppose it could break routing ::))


host A - multi if on
ib0 - 0xfe80000000000000
ib1 - 0xfe80000000000001

host B - multi if on
ib0 - 0xfe80000000000001
ib1 - 0xfe80000000000000

host C - multi if on
ib0 - 0xfe80000000000100
ib1 - 0xfe80000000000001

host D - multi if on
ib0 - 0xfe80000000000100
ib1 - 0xfe80000000000001

host E - multi homed and multi if on
ib0 - 0xfe80000000000000
ib1 - 0xfe80000000000001
ib2 - 0xfe80000000000100
ib3 - 0xfe80000000000100

An application that spans all 5 hosts wants to know which hosts it can *expect* to connect to over what 
interfaces, without actually making the connection.



909

--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: changing subnet ID
       [not found] ` <20110413221831.GA20946-2Ww08eqqtp6fRvmTrFJqzg@public.gmane.org>
@ 2011-04-13 23:25   ` Jason Gunthorpe
  0 siblings, 0 replies; 2+ messages in thread
From: Jason Gunthorpe @ 2011-04-13 23:25 UTC (permalink / raw)
  To: Bob Ciotti; +Cc: linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org

On Wed, Apr 13, 2011 at 03:18:31PM -0700, Bob Ciotti wrote:

> Question with regard to changing the subnet prefix in OpenSM.
> 
> We want to uniquely identify individual subnets via changing the
> subnet prefix in OpenSM:

I highly recommend assigning a uniqe GID prefix to all subnets. eg
the ibtool program will use the GID prefix to identify the proper HCA
port to use, which in of itself makes it worth doing..

You should not use FE80::/10 as a prefix.

In IB all prefixes are /64s. I recommend generating a ULA for your
site and using that. See

http://en.wikipedia.org/wiki/Unique_local_address

This bit of python shows how to create the random address for your site:

>>> import os
>>> "fd"+os.urandom(40//8).encode("hex")+"0000"
'fd0b96859d2b0000'
(aka fd0b:9685:9d2b:0000::/64)

The lower 16 bits of the ULA can be incremented and assigned to each of
your site's subnets. Generate a new ULA if you run out.

This will work well with future IB routing specifications and allow
a hierarchical routing scheme where all subnets in your site can be
collapsed to a single /48 address for off-site access.

> The RFC on ipv6 addressing
> (http://tools.ietf.org/html/rfc4291#section-2.5.6) says those bits
> should be 0. I'm unclear if FE80/10 or FE80:0:0:0/64 is link local.

In IPv6 FE80::/10 is link local, technically in IB all prefixes are
/64 so it is FE80::/64.

-- 
Jason Gunthorpe <jgunthorpe-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>        (780)4406067x832
Chief Technology Officer, Obsidian Research Corp         Edmonton, Canada
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-04-13 23:25 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-04-13 22:18 changing subnet ID Bob Ciotti
     [not found] ` <20110413221831.GA20946-2Ww08eqqtp6fRvmTrFJqzg@public.gmane.org>
2011-04-13 23:25   ` Jason Gunthorpe

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox