Re: [openib-general] mapping between IP address and device name

2005-06-28 Thread Michael Krause
At 10:30 AM 6/24/2005, Roland Dreier wrote:     Thomas> As I said - I am not attached to ATS. I would welcome an     Thomas> alternative. Sure, understood.  I'm suggesting a slight tweak to the IB wire protocol.  I don't think there's a difference in the security provided, and carrying the peer a

Re: [openib-general] mapping between IP address and device name

2005-06-28 Thread David M. Brean
The Sun implementation uses a Service ID from the "Local OS Administrative" range when installing an entry in the SA. So, the first byte should be 0x2 in the ServiceID component in the SA record. The Service Name in the SA record contained the IP address with the NFS port number appended at the

Re: [openib-general] mapping between IP address and device name

2005-06-28 Thread Talpey, Thomas
At 05:34 PM 6/27/2005, Roland Dreier wrote: >I'm not sure I understand this. At best, ATS can give you back a list >of IPs. How do you decide which one to check against the exports? Any or all of them. Exports is a fairly simple access list, and membership by the client is all that's required. I

Re: [openib-general] mapping between IP address and device name

2005-06-27 Thread Roland Dreier
Itamar> But the ATS will not solve the problem of "many to one". Itamar> What will the nfs module will do if the the result from Itamar> the ATS will be a list of "IP's" which only one of them is Itamar> has permission to the nfs ? ATS cant tell you who is the Itamar> source IP

RE: [openib-general] mapping between IP address and device name

2005-06-27 Thread Talpey, Thomas
At 03:10 AM 6/26/2005, Itamar Rabenstein wrote: >But the ATS will not solve the problem of "many to one". >What will the nfs module will do if the the result from the ATS will be >a list of "IP's" which only one of them is has permission to the nfs ? >ATS cant tell you who is the source IP. The N

RE: [openib-general] mapping between IP address and device name

2005-06-25 Thread Itamar Rabenstein
> On the other hand, placing a mandatory content in the CM exchange > brings in a whole different raft of interoperability > questions, as James > mentioned earlier. For better or for worse, the ATS approach is easily > administered and does not impact any protocol layers outside of its > own. I t

Re: [openib-general] mapping between IP address and device name

2005-06-24 Thread Hal Rosenstock
On Fri, 2005-06-24 at 15:14, Talpey, Thomas wrote: > At 02:27 PM 6/24/2005, Hal Rosenstock wrote: > >On Fri, 2005-06-24 at 13:51, Talpey, Thomas wrote: > >> mentioned earlier. For better or for worse, the ATS approach is easily > >> administered and does not impact any protocol layers outside of it

Re: [openib-general] mapping between IP address and device name

2005-06-24 Thread Talpey, Thomas
At 02:27 PM 6/24/2005, Hal Rosenstock wrote: >On Fri, 2005-06-24 at 13:51, Talpey, Thomas wrote: >> mentioned earlier. For better or for worse, the ATS approach is easily >> administered and does not impact any protocol layers outside of its >> own. I think of it as ARP for IB. > >reverse ARP for I

Re: [openib-general] mapping between IP address and device name

2005-06-24 Thread Hal Rosenstock
On Fri, 2005-06-24 at 13:51, Talpey, Thomas wrote: > On the other hand, placing a mandatory content in the CM exchange > brings in a whole different raft of interoperability questions, as James > mentioned earlier. For better or for worse, the ATS approach is easily > administered and does not impa

Re: [openib-general] mapping between IP address and device name

2005-06-24 Thread Talpey, Thomas
At 01:30 PM 6/24/2005, Roland Dreier wrote: >Thomas> But in the absence of one, I like what we have. Also, I do >Thomas> not want to saddle the NFS/RDMA transport with carrying an >Thomas> IP address purely for the benefit of a missing transport >Thomas> facility. After all NFS/RDMA

Re: [openib-general] mapping between IP address and device name

2005-06-24 Thread Roland Dreier
Roland> Right, but at least for now the SA has no way of checking Roland> the IP address in a request to decide whether or not it Roland> should allow creating an ATS record. Hal> In fact, the SA does not know it is an IP address in the Hal> ServiceData of the ServiceRecord. R

Re: [openib-general] mapping between IP address and device name

2005-06-24 Thread Jay Rosser
On the subject of NFS/RDMA, what is the IB ServiceID space that is used? If I recall correctly, I have seen simply the value 2049 (i.e. the standard TCP/UDP port number) used in some implementations (i.e. 00 00 00 00 00 00 20 49). Is there a mapping onto an IB ServiceID defined? We aren

Re: [openib-general] mapping between IP address and device name

2005-06-24 Thread Roland Dreier
Thomas> As I said - I am not attached to ATS. I would welcome an Thomas> alternative. Sure, understood. I'm suggesting a slight tweak to the IB wire protocol. I don't think there's a difference in the security provided, and carrying the peer address in the CM private data avoids a lot of

Re: [openib-general] mapping between IP address and device name

2005-06-24 Thread Hal Rosenstock
On Fri, 2005-06-24 at 13:22, Roland Dreier wrote: > Hal> The first level of IB trust in terms of the SA (authenticaing > Hal> the requestor) is restrictions based on access > Hal> (partitioning). This is true for a number of SA attributes > Hal> which is more than (just) ServiceReco

Re: [openib-general] mapping between IP address and device name

2005-06-24 Thread Talpey, Thomas
At 01:22 PM 6/24/2005, Roland Dreier wrote: >Hal> But we do trust the kernel, right ? > >No, an NFS server can't trust anything coming from a remote client. Well, the server can't trust untrusted information coming from the client. NFS has many forms of strong authentication. But many, many us

Re: [openib-general] mapping between IP address and device name

2005-06-24 Thread Roland Dreier
Thomas> We aren't currently using the portmapper to discover the Thomas> serviceid that the NFS/RDMA server is listening on. Brent Thomas> Callaghan chose serviceid 2049 as a convenience in Sun's Thomas> first implementation, and so far it has stuck. Ugh, according to the IBA spec

Re: [openib-general] mapping between IP address and device name

2005-06-24 Thread Talpey, Thomas
At 12:42 PM 6/24/2005, Roland Dreier wrote: >Thomas> But that's totally and completely insecure. The goal of >Thomas> /etc/exports is to place at least part of the client >Thomas> authentication in the network rather than the supplied >Thomas> credentials. NFS has quite enough of a

Re: [openib-general] mapping between IP address and device name

2005-06-24 Thread Roland Dreier
Hal> The first level of IB trust in terms of the SA (authenticaing Hal> the requestor) is restrictions based on access Hal> (partitioning). This is true for a number of SA attributes Hal> which is more than (just) ServiceRecords. Right, but at least for now the SA has no way of che

Re: [openib-general] mapping between IP address and device name

2005-06-24 Thread Talpey, Thomas
At 01:02 PM 6/24/2005, Jay Rosser wrote: >On the subject of NFS/RDMA, what is the IB ServiceID space that is used? >If I recall correctly, I have seen simply the value 2049 (i.e. the >standard TCP/UDP port number) used in some implementations (i.e. 00 00 >00 00 00 00 20 49). Is there a mapping o

Re: [openib-general] mapping between IP address and device name

2005-06-24 Thread Hal Rosenstock
On Fri, 2005-06-24 at 12:42, Roland Dreier wrote: > Thomas> But that's totally and completely insecure. The goal of > Thomas> /etc/exports is to place at least part of the client > Thomas> authentication in the network rather than the supplied > Thomas> credentials. NFS has quite en

Re: [openib-general] mapping between IP address and device name

2005-06-24 Thread Caitlin Bestler
The presumption behind authenticating by remote address is that the local subnet is sufficiently administered so as to prevent address spoofing. That would require firewalls, configured switches and other techniques for an IP network, and for IB ensuring that the IB subnet administration is not s

Re: [openib-general] mapping between IP address and device name

2005-06-24 Thread Jay Rosser
On the subject of NFS/RDMA, what is the IB ServiceID space that is used? If I recall correctly, I have seen simply the value 2049 (i.e. the standard TCP/UDP port number) used in some implementations (i.e. 00 00 00 00 00 00 20 49). Is there a mapping onto an IB ServiceID defined? Thanks, Jay

Re: [openib-general] mapping between IP address and device name

2005-06-24 Thread Roland Dreier
> Why do you say ATS only works for IPv4 and doesn't support multiple IP > addresses on a single interface ? It certainly does the later. Both IPv4 > and v6 addresses are accomodated in the ATS SR definition. Any IPv4ness > of the some ATS APIs (and the underlying implementation) need to be > enhan

Re: [openib-general] mapping between IP address and device name

2005-06-24 Thread Roland Dreier
Thomas> But that's totally and completely insecure. The goal of Thomas> /etc/exports is to place at least part of the client Thomas> authentication in the network rather than the supplied Thomas> credentials. NFS has quite enough of a history with Thomas> AUTH_SYS to prove the i

Re: [openib-general] mapping between IP address and device name

2005-06-24 Thread Talpey, Thomas
At 12:19 PM 6/24/2005, Roland Dreier wrote: >It seems far preferable to me to just define the wire protocol of >NFS/RDMA for IB such that a client passes its IP address as part of >the connection request. This scheme was used for SDP to avoid >precisely the complications that we're discussing now.

Re: [openib-general] mapping between IP address and device name

2005-06-24 Thread Hal Rosenstock
On Fri, 2005-06-24 at 12:19, Roland Dreier wrote: > Sure, I understand why NFS/RDMA wants the peer address. However, > forcing this into kDAPL and then making kDAPL go through contortions > to provide it seems like the wrong way around. We end up with gross > hacks like ATS, which only works for

Re: [openib-general] mapping between IP address and device name

2005-06-24 Thread Roland Dreier
Thomas> Yes, it's weak, but it's needed. A good example is the NFS Thomas> server's "exports" function. For the last 20 or so years, Thomas> NFS servers have a table which assigns access rights to Thomas> filesystems by IP address, for example restricting access, Thomas> making

Re: [openib-general] mapping between IP address and device name

2005-06-24 Thread Hal Rosenstock
On Fri, 2005-06-24 at 11:58, Roland Dreier wrote: > Hal> I think this part is simpler than this. Aren't the > Hal> primary/alternate GIDs in the CM REQ ? > > Yes, but the remote peer could lie, right? So there needs to be one more SA lookup to validate that the GID is associated with the

Re: [openib-general] mapping between IP address and device name

2005-06-24 Thread Roland Dreier
Hal> I think this part is simpler than this. Aren't the Hal> primary/alternate GIDs in the CM REQ ? Yes, but the remote peer could lie, right? - R. ___ openib-general mailing list openib-general@openib.org http://openib.org/mailman/listinfo/ope

Re: [openib-general] mapping between IP address and device name

2005-06-24 Thread Talpey, Thomas
At 01:31 PM 6/23/2005, Roland Dreier wrote: >James> kDAPL uses this feature to provide the passive side of a >James> connection with the IP address of the remote peer. kDAPL >James> consumers can use this information as a weak authentication >James> mechanism. > >This seems so weak

RE: [openib-general] mapping between IP address and device name

2005-06-24 Thread James Lentini
On Thu, 23 Jun 2005, Fab Tillier wrote: From: Roland Dreier [mailto:[EMAIL PROTECTED] Sent: Thursday, June 23, 2005 10:32 AM James> Perhaps a bit of motivation of how the GID->IP service can James> be used is in order. James> kDAPL uses this feature to provide the passive side of

Re: [openib-general] mapping between IP address and device name

2005-06-24 Thread James Lentini
On Thu, 23 Jun 2005, Roland Dreier wrote: James> Perhaps a bit of motivation of how the GID->IP service can James> be used is in order. James> kDAPL uses this feature to provide the passive side of a James> connection with the IP address of the remote peer. kDAPL James> consume

Re: [openib-general] mapping between IP address and device name

2005-06-24 Thread Hal Rosenstock
On Thu, 2005-06-23 at 13:31, Roland Dreier wrote: > James> Perhaps a bit of motivation of how the GID->IP service can > James> be used is in order. > > James> kDAPL uses this feature to provide the passive side of a > James> connection with the IP address of the remote peer. kDAPL

RE: [openib-general] mapping between IP address and device name

2005-06-23 Thread Fab Tillier
> From: Roland Dreier [mailto:[EMAIL PROTECTED] > Sent: Thursday, June 23, 2005 10:32 AM > > James> Perhaps a bit of motivation of how the GID->IP service can > James> be used is in order. > > James> kDAPL uses this feature to provide the passive side of a > James> connection with

Re: [openib-general] mapping between IP address and device name

2005-06-23 Thread Roland Dreier
James> Perhaps a bit of motivation of how the GID->IP service can James> be used is in order. James> kDAPL uses this feature to provide the passive side of a James> connection with the IP address of the remote peer. kDAPL James> consumers can use this information as a weak auth

Re: [openib-general] mapping between IP address and device name

2005-06-23 Thread James Lentini
On Thu, 23 Jun 2005, Hal Rosenstock wrote: On Thu, 2005-06-23 at 11:47, Roland Dreier wrote: James> The IBAT API provides the two key services needed by kDAPL: James> the ability to obtain a route based on an IP address and James> the ability to map a GID to an IP address. Ja

Re: [openib-general] mapping between IP address and device name

2005-06-23 Thread Hal Rosenstock
On Thu, 2005-06-23 at 11:47, Roland Dreier wrote: > James> The IBAT API provides the two key services needed by kDAPL: > James> the ability to obtain a route based on an IP address and > James> the ability to map a GID to an IP address. > > James> Is there agreement that an IB addr

Re: [openib-general] mapping between IP address and device name

2005-06-23 Thread Roland Dreier
James> The IBAT API provides the two key services needed by kDAPL: James> the ability to obtain a route based on an IP address and James> the ability to map a GID to an IP address. James> Is there agreement that an IB address translation service James> must provide these two se

Re: [openib-general] mapping between IP address and device name

2005-06-23 Thread James Lentini
On Tue, 21 Jun 2005, Hal Rosenstock wrote: On Mon, 2005-06-20 at 23:40, Roland Dreier wrote: There was some discussion a while ago about an "IB address translation" service proposed by the Voltaire crew, which would encapsulate some of this. However, we didn't make much progress towards a goo

Re: [openib-general] mapping between IP address and device name

2005-06-23 Thread Hal Rosenstock
Hi again Kevin, I'd like to go back to your original query to make sure I understand things. On Mon, 2005-06-20 at 22:23, Kevin Reilly wrote: > Maybe somebody could help me understand the proper way to map between an IP > address assigned to a port to the > "device name" and "port number" in the

Re: [openib-general] mapping between IP address and device name

2005-06-23 Thread Hal Rosenstock
cc > AMopenib-general@openib.org > Subject > Re

Re: [openib-general] mapping between IP address and device name

2005-06-22 Thread Kevin Reilly
openib-general@openib.org Subject Re: [openib-general] mapping between IP address and

Re: [openib-general] mapping between IP address and device name

2005-06-21 Thread Hal Rosenstock
On Tue, 2005-06-21 at 11:44, Caitlin Bestler wrote: > Expanding slightly on Hal's response, the correct method to correlate > an *IP* address with a device is to consult the *IP* routing tables. > While there are exceptions where you want to control the local > address, With IBAT there is a way t

Re: [openib-general] mapping between IP address and device name

2005-06-21 Thread Caitlin Bestler
Expanding slightly on Hal's response, the correct method to correlate an *IP* address with a device is to consult the *IP* routing tables. While there are exceptions where you want to control the local address, it is far more common that you need to reach a remote address (or be reachable from a r

Re: [openib-general] mapping between IP address and device name

2005-06-21 Thread Hal Rosenstock
On Tue, 2005-06-21 at 01:14, Libor Michalek wrote: > On Mon, Jun 20, 2005 at 08:40:47PM -0700, Roland Dreier wrote: > > Kevin> Maybe somebody could help me understand the proper way to > > Kevin> map between an IP address assigned to a port to the "device > > Kevin> name" and "port numb

Re: [openib-general] mapping between IP address and device name

2005-06-21 Thread Hal Rosenstock
On Mon, 2005-06-20 at 23:40, Roland Dreier wrote: > There was some discussion a while ago about an "IB address > translation" service proposed by the Voltaire crew, which would > encapsulate some of this. However, we didn't make much progress > towards a good API design, and the discussion fizzle

Re: [openib-general] mapping between IP address and device name

2005-06-21 Thread Hal Rosenstock
Hi Kevin, On Mon, 2005-06-20 at 22:23, Kevin Reilly wrote: > Maybe somebody could help me understand the proper way to map between an IP > address assigned to a port to the > "device name" and "port number" in the gen2 architecture. If I have an IP > address can I map it to a name that i get ba

Re: [openib-general] mapping between IP address and device name

2005-06-20 Thread Libor Michalek
On Mon, Jun 20, 2005 at 08:40:47PM -0700, Roland Dreier wrote: > Kevin> Maybe somebody could help me understand the proper way to > Kevin> map between an IP address assigned to a port to the "device > Kevin> name" and "port number" in the gen2 architecture. If I > Kevin> have an IP

Re: [openib-general] mapping between IP address and device name

2005-06-20 Thread Roland Dreier
Kevin> Maybe somebody could help me understand the proper way to Kevin> map between an IP address assigned to a port to the "device Kevin> name" and "port number" in the gen2 architecture. If I Kevin> have an IP address can I map it to a name that i get back Kevin> from ibv_get

[openib-general] mapping between IP address and device name

2005-06-20 Thread Kevin Reilly
Maybe somebody could help me understand the proper way to map between an IP address assigned to a port to the "device name" and "port number" in the gen2 architecture. If I have an IP address can I map it to a name that i get back from ibv_get_device_name() or pass to ibv_open_device().