Comment 8 for bug 1616822

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : A change has been merged

Reviewed: https://review.opencontrail.org/24590
Committed: http://github.org/Juniper/contrail-vrouter/commit/7de3127323428ba8f1f62fbc72dfb79f3c2acf01
Submitter: Zuul
Branch: R3.1

commit 7de3127323428ba8f1f62fbc72dfb79f3c2acf01
Author: Divakar <email address hidden>
Date: Fri Sep 2 23:25:39 2016 +0530

Distribute mirroring packets to Ecmp destination

Incase of dynamic mirroring, udp header is added on top of mirrored
packet. If the mirroring destination is an Ecmp destination, ecmp
distribution is happening using the newly added udp heder. This results
in no distribution with in Ecmp, as all mirrored packets are going to
contain the same IP/UDP header resulting in same hash calculation.

As a fix, for a better distribution, the udp source port of the UDP header
is calculated based on the packet's IP/IPV6 header content. This results
in better port range, eventually leading to better Ecmp distribution.
For non IP/IPV6 packets, Agent added port is taken as is.

closes-bug: #1616822

Change-Id: I06f2fd0dee79ade11696bc2b2d9c3c34c374ff65