Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
- Loading branch information
1 parent
9c84165
commit 78b516a
Showing
2 changed files
with
30 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters