* IPoIB CM connection establishment protocol question
@ 2010-08-05 17:25 Smith, Stan
[not found] ` <3F6F638B8D880340AB536D29CD4C1E1925AC41133A-osO9UTpF0USkrb+BlOpmy7fspsVTdybXVpNB7YpNyf8@public.gmane.org>
0 siblings, 1 reply; 3+ messages in thread
From: Smith, Stan @ 2010-08-05 17:25 UTC (permalink / raw)
To: linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Could someone who is OFED IPoIB knowledgeable help me understand which IPoIB side starts the RC connection establishment (Tx REQ) to an ARP unknown remote host?
I tried reading the Linux IPoIB code and realized it's been too many years since writing Linux network drivers (2001) and found myself lost in the bits w.r.t. CM connection mgmt. and ARP handling.
>From limited observation, it looks like the ACTIVE side (ttcp -t) of an IPoIB network connection broadcasts an IB ARP-REQ which indicates CM capability in the IB ARP flags byte.
When the PASSIVE IPoIB (ttcp -r) receives the IB ARP-REQ, it sends back an IB ARP-REPLY which indicates it's CM capability among other items.
Now the confusing part: which IPoIB CM side starts the CM-RC connection establishment?
Does the PASSIVE IPoIB start the RC connection (Tx REQ) prior to sending the IB ARP-REPLY?
Or does the ACTIVE IPoIB side receive the IB ARP-REPLY and then start an ACTIVE RC connection (Tx REQ) now that it knows the remote side is CM capable?
thanks,
stan.
--
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] 3+ messages in thread
* Re: IPoIB CM connection establishment protocol question
[not found] ` <3F6F638B8D880340AB536D29CD4C1E1925AC41133A-osO9UTpF0USkrb+BlOpmy7fspsVTdybXVpNB7YpNyf8@public.gmane.org>
@ 2010-08-25 11:45 ` Eli Cohen
2010-08-26 0:30 ` Smith, Stan
0 siblings, 1 reply; 3+ messages in thread
From: Eli Cohen @ 2010-08-25 11:45 UTC (permalink / raw)
To: Smith, Stan; +Cc: linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Hi stan,
Here's a short summary:
An IPoIB interface encodes it capability of supporting CM mode in the
hardware adress it publishes. Once the stack hands an SKB to IPoIB for
transmission (unicast), IPoIB needs to resolve the hardware address to
IB adress information (LID, SL etc.). Once resolution is complete, it
will create a RC connection with the other host using IB CM. This
process is symetrical - that is, for two communicating hosts there are
two RC connections so that each connection works half duplex.
Hope that helps.
On Thu, Aug 05, 2010 at 10:25:27AM -0700, Smith, Stan wrote:
>
> Could someone who is OFED IPoIB knowledgeable help me understand which IPoIB side starts the RC connection establishment (Tx REQ) to an ARP unknown remote host?
>
> I tried reading the Linux IPoIB code and realized it's been too many years since writing Linux network drivers (2001) and found myself lost in the bits w.r.t. CM connection mgmt. and ARP handling.
>
> >From limited observation, it looks like the ACTIVE side (ttcp -t) of an IPoIB network connection broadcasts an IB ARP-REQ which indicates CM capability in the IB ARP flags byte.
>
> When the PASSIVE IPoIB (ttcp -r) receives the IB ARP-REQ, it sends back an IB ARP-REPLY which indicates it's CM capability among other items.
>
> Now the confusing part: which IPoIB CM side starts the CM-RC connection establishment?
>
> Does the PASSIVE IPoIB start the RC connection (Tx REQ) prior to sending the IB ARP-REPLY?
>
> Or does the ACTIVE IPoIB side receive the IB ARP-REPLY and then start an ACTIVE RC connection (Tx REQ) now that it knows the remote side is CM capable?
>
> thanks,
>
> stan.
>
> --
> 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
--
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] 3+ messages in thread
* RE: IPoIB CM connection establishment protocol question
2010-08-25 11:45 ` Eli Cohen
@ 2010-08-26 0:30 ` Smith, Stan
0 siblings, 0 replies; 3+ messages in thread
From: Smith, Stan @ 2010-08-26 0:30 UTC (permalink / raw)
To: Eli Cohen; +Cc: linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Eli Cohen wrote:
> Hi stan,
>
> Here's a short summary:
> An IPoIB interface encodes it capability of supporting CM mode in the
> hardware address it publishes. Once the stack hands an SKB to IPoIB for
> transmission (unicast), IPoIB needs to resolve the hardware address to
> IB address information (LID, SL etc.). Once resolution is complete, it
> will create a RC connection with the other host using IB CM. This
> process is symmetrical - that is, for two communicating hosts there are
> two RC connections so that each connection works half duplex.
>
> Hope that helps.
Hello,
Thanks for responding.
Indeed this clears the air; the original Windows IPoIB CM code assumed a single connection.
stan.
>
> On Thu, Aug 05, 2010 at 10:25:27AM -0700, Smith, Stan wrote:
>>
>> Could someone who is OFED IPoIB knowledgeable help me understand
>> which IPoIB side starts the RC connection establishment (Tx REQ) to
>> an ARP unknown remote host?
>>
>> I tried reading the Linux IPoIB code and realized it's been too many
>> years since writing Linux network drivers (2001) and found myself
>> lost in the bits w.r.t. CM connection mgmt. and ARP handling.
>>
>>> From limited observation, it looks like the ACTIVE side (ttcp -t)
>>> of an IPoIB network connection broadcasts an IB ARP-REQ which
>>> indicates CM capability in the IB ARP flags byte.
>>
>> When the PASSIVE IPoIB (ttcp -r) receives the IB ARP-REQ, it sends
>> back an IB ARP-REPLY which indicates it's CM capability among other
>> items.
>>
>> Now the confusing part: which IPoIB CM side starts the CM-RC
>> connection establishment?
>>
>> Does the PASSIVE IPoIB start the RC connection (Tx REQ) prior to
>> sending the IB ARP-REPLY?
>>
>> Or does the ACTIVE IPoIB side receive the IB ARP-REPLY and then
>> start an ACTIVE RC connection (Tx REQ) now that it knows the remote
>> side is CM capable?
>>
>> thanks,
>>
>> stan.
>>
>> --
>> 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
--
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] 3+ messages in thread
end of thread, other threads:[~2010-08-26 0:30 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-08-05 17:25 IPoIB CM connection establishment protocol question Smith, Stan
[not found] ` <3F6F638B8D880340AB536D29CD4C1E1925AC41133A-osO9UTpF0USkrb+BlOpmy7fspsVTdybXVpNB7YpNyf8@public.gmane.org>
2010-08-25 11:45 ` Eli Cohen
2010-08-26 0:30 ` Smith, Stan
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox