Configuring Flow Affinity on the Data Plane

As of JUNOS Release 9.5, the Services SDK (a module of the JUNOS SDK) supports flow affinity behavior for the data CPUs. Flow affinity distribution is based on a hash distribution. Flow affinity is already the default behavior for the control CPUs, but the default behavior for distributing data packets over data cores is in a round-robin fashion.

You can change the default behavior from round-robin to flow affinity for the data cores by adding the data-flow-affinity statement at the [edit chassis fpc slot-number pic slot-number adaptive-services service-package extension-provider] hierarchy level.

Note: When the extension-provider statement is first configured, the PIC will reboot. Either adding the data-flow-affinity statement or removing it will cause the PIC to reboot.

[edit chassis fpc slot-number pic pic-number adaptive-services service-package]extension-provider {data-flow-affinity;}

Related Topics