DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] Is it possible to get symmetric hash from RSS for a given flow
@ 2014-02-28  0:22 Daniel Kan
  2014-02-28  0:24 ` Sangjin Han
  0 siblings, 1 reply; 5+ messages in thread
From: Daniel Kan @ 2014-02-28  0:22 UTC (permalink / raw)
  To: dev

Hi,
It appears that the hash computed from RSS is unidirectional. Hence, for a 5-tuple flow, packet in one direction can be routed to a queue that may be different than packet in the other direction. I’m wondering if there is a configuration or mechanism to get a symmetric hash so that all packets for a given flow will be in the same queue. Thanks in advance. 

Dan

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

* Re: [dpdk-dev] Is it possible to get symmetric hash from RSS for a given flow
  2014-02-28  0:22 [dpdk-dev] Is it possible to get symmetric hash from RSS for a given flow Daniel Kan
@ 2014-02-28  0:24 ` Sangjin Han
  2014-02-28  1:04   ` Daniel Kan
  0 siblings, 1 reply; 5+ messages in thread
From: Sangjin Han @ 2014-02-28  0:24 UTC (permalink / raw)
  To: Daniel Kan; +Cc: dev

Hi,

This is exactly what you want:
http://www.ndsl.kaist.edu/~shinae/papers/TR-symRSS.pdf

Sangjin

On Thu, Feb 27, 2014 at 4:22 PM, Daniel Kan <dan@nyansa.com> wrote:
> Hi,
> It appears that the hash computed from RSS is unidirectional. Hence, for a 5-tuple flow, packet in one direction can be routed to a queue that may be different than packet in the other direction. I'm wondering if there is a configuration or mechanism to get a symmetric hash so that all packets for a given flow will be in the same queue. Thanks in advance.
>
> Dan

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

* Re: [dpdk-dev] Is it possible to get symmetric hash from RSS for a given flow
  2014-02-28  0:24 ` Sangjin Han
@ 2014-02-28  1:04   ` Daniel Kan
  2014-02-28  1:08     ` Stefan Baranoff
  0 siblings, 1 reply; 5+ messages in thread
From: Daniel Kan @ 2014-02-28  1:04 UTC (permalink / raw)
  To: Sangjin Han; +Cc: dev

Thanks, Sangjin. This is exactly i’m looking for. Sorry, I should’ve googled it first. It’s good to know that hash key of repetitive 0x6d5a still yields good load balancing results.

Dan

On Feb 27, 2014, at 4:24 PM, Sangjin Han <sangjin@eecs.berkeley.edu> wrote:

> Hi,
> 
> This is exactly what you want:
> http://www.ndsl.kaist.edu/~shinae/papers/TR-symRSS.pdf
> 
> Sangjin
> 
> On Thu, Feb 27, 2014 at 4:22 PM, Daniel Kan <dan@nyansa.com> wrote:
>> Hi,
>> It appears that the hash computed from RSS is unidirectional. Hence, for a 5-tuple flow, packet in one direction can be routed to a queue that may be different than packet in the other direction. I'm wondering if there is a configuration or mechanism to get a symmetric hash so that all packets for a given flow will be in the same queue. Thanks in advance.
>> 
>> Dan

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

* Re: [dpdk-dev] Is it possible to get symmetric hash from RSS for a given flow
  2014-02-28  1:04   ` Daniel Kan
@ 2014-02-28  1:08     ` Stefan Baranoff
  2014-02-28  5:34       ` Daniel Kan
  0 siblings, 1 reply; 5+ messages in thread
From: Stefan Baranoff @ 2014-02-28  1:08 UTC (permalink / raw)
  To: Daniel Kan; +Cc: dev

Has anyone already applied this logic to IP only load balancing to get
SRC/DST and DST/SRC on the same queue and come up with an RSK value? If not
I'll spend some time with a calculator and see if I can get one.

Thanks,
Stefan

Sent from my smart phone; people don't make typos, Swype does!
On Feb 27, 2014 8:04 PM, "Daniel Kan" <dan@nyansa.com> wrote:

> Thanks, Sangjin. This is exactly i'm looking for. Sorry, I should've
> googled it first. It's good to know that hash key of repetitive 0x6d5a
> still yields good load balancing results.
>
> Dan
>
> On Feb 27, 2014, at 4:24 PM, Sangjin Han <sangjin@eecs.berkeley.edu>
> wrote:
>
> > Hi,
> >
> > This is exactly what you want:
> > http://www.ndsl.kaist.edu/~shinae/papers/TR-symRSS.pdf
> >
> > Sangjin
> >
> > On Thu, Feb 27, 2014 at 4:22 PM, Daniel Kan <dan@nyansa.com> wrote:
> >> Hi,
> >> It appears that the hash computed from RSS is unidirectional. Hence,
> for a 5-tuple flow, packet in one direction can be routed to a queue that
> may be different than packet in the other direction. I'm wondering if there
> is a configuration or mechanism to get a symmetric hash so that all packets
> for a given flow will be in the same queue. Thanks in advance.
> >>
> >> Dan
>
>

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

* Re: [dpdk-dev] Is it possible to get symmetric hash from RSS for a given flow
  2014-02-28  1:08     ` Stefan Baranoff
@ 2014-02-28  5:34       ` Daniel Kan
  0 siblings, 0 replies; 5+ messages in thread
From: Daniel Kan @ 2014-02-28  5:34 UTC (permalink / raw)
  To: Stefan Baranoff; +Cc: dev

The symmetric RSK for 5-tuple is a generalized case for 2-tuple src ip/dst ip. You can use the same RSK to get the symmetric load balancing. 

Dan

On Feb 27, 2014, at 5:08 PM, Stefan Baranoff <sbaranoff@gmail.com> wrote:

> Has anyone already applied this logic to IP only load balancing to get SRC/DST and DST/SRC on the same queue and come up with an RSK value? If not I'll spend some time with a calculator and see if I can get one.
> Thanks,
> Stefan
> 
> Sent from my smart phone; people don't make typos, Swype does!
> 
> On Feb 27, 2014 8:04 PM, "Daniel Kan" <dan@nyansa.com> wrote:
> Thanks, Sangjin. This is exactly i’m looking for. Sorry, I should’ve googled it first. It’s good to know that hash key of repetitive 0x6d5a still yields good load balancing results.
> 
> Dan
> 
> On Feb 27, 2014, at 4:24 PM, Sangjin Han <sangjin@eecs.berkeley.edu> wrote:
> 
> > Hi,
> >
> > This is exactly what you want:
> > http://www.ndsl.kaist.edu/~shinae/papers/TR-symRSS.pdf
> >
> > Sangjin
> >
> > On Thu, Feb 27, 2014 at 4:22 PM, Daniel Kan <dan@nyansa.com> wrote:
> >> Hi,
> >> It appears that the hash computed from RSS is unidirectional. Hence, for a 5-tuple flow, packet in one direction can be routed to a queue that may be different than packet in the other direction. I'm wondering if there is a configuration or mechanism to get a symmetric hash so that all packets for a given flow will be in the same queue. Thanks in advance.
> >>
> >> Dan
> 

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

end of thread, other threads:[~2014-02-28  5:32 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-02-28  0:22 [dpdk-dev] Is it possible to get symmetric hash from RSS for a given flow Daniel Kan
2014-02-28  0:24 ` Sangjin Han
2014-02-28  1:04   ` Daniel Kan
2014-02-28  1:08     ` Stefan Baranoff
2014-02-28  5:34       ` Daniel Kan

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).