For traffic received on an L3 interface hashing depends on several criteria, including the headers present in the packet stack and whether the Control Word (CW) and Flow Label (FL) are enabled on the pseudowire (PW).
When ethernet frames entering a L3 interface, the router identifies the IP header within the packet based on the packet stack headers.
IP over PW Traffic
An ethernet frame is classified as IP over PW traffic if it meets the following criteria:
The frame contains an outer ethernet header and an inner ethernet header.
No more than two MPLS labels are placed between the outer ethernet header and the inner ethernet header.
There is no control word in front of the inner ethernet header.
The inner ethernet header contains no more than two VLAN tags.
The inner ethernet header has no VLAN tag or has VLAN tags in supported format as listed in Supported VLAN Tag Formats for Load Balancing.
Behind the inner ethernet header, there are no more than ten MPLS labels placed in front of the IP header.
Non-IP over PW Traffic
All traffic that does not meet the IP over PW traffic criteria is classified as non-IP over PW traffic.
Inner Ethernet L2 Hash Fields
The inner ethernet L2 hash fields include the source and destination MAC addresses, and the first VLAN tag of the inner ethernet frame.
Inner Ethernet L2 Hash Fields for NPU2.0 ASIC
The inner ethernet L2 hash fields include the source and destination MAC addresses of the inner ethernet frame.
Inner Ethernet L3 Hash Fields
The inner ethernet L3 hash fields include L3 and L4 headers in the inner ethernet frame. They are source and destination IP addresses, the source and destination ports of the layer 4 header.
Control Word Presence L2 Hash Fields
The 12 bytes of the PW payload, which include 4 bytes of CW followed by the 8 bytes of inner ethernet frame MAC address.
MPLS Hash Fields of Outer Ethernet Frame
All MPLS labels in front of inner ethernet header.
PW Disposition Traffic Load Balancing
PW disposition traffic load balance when control word and flow label are both disabled.
IP over PW Traffic Load Balancing
On Q100 and Q200 based Silicon One ASIC:
IP over PW traffic load balance hash uses the inner ethernet L2 hash fields.
Before Release 24.2.1, inner ethernet L3 hash fields are also added in the hashing for limited types of traffic.
Starting from Release 24.2.1, both inner ethernet L2 hash fields and inner ethernet L3 hash fields are used in hashing.
On P100, K100, and A100 based Silicon One ASIC:
Before Release 24.2.1, IP over PW traffic load balance hash uses the inner ethernet L2 hash fields. Inner Ethernet L3 hash fields are also added in the hashing for limited types of traffic.
From Release 24.2.1 to Release 24.3.1, IP over PW traffic load balance hash uses the Inner Ethernet L2 Hash Fields and Inner Ethernet L3 Hash Fields.
Starting from Release 24.3.2, IP over PW traffic load balance hash uses the Inner Ethernet L2 Hash Fields for NPU2.0 ASIC and Inner Ethernet L3 Hash Fields.
Non-IP over PW Traffic Load Balancing
Non-IP over PW traffic load balance hash always uses the inner ethernet L2 hash fields.
PW disposition traffic load balance when control word is enabled and flow label disabled.
In this case, all PW traffic is non-IP over PW traffic. Load balance hash uses control word presence L2 hash fields.
PW disposition traffic load balance when control word is disabled and flow label enabled.
On Q100 and Q200 based Silicon One ASIC:
IP over PW Traffic Load Balancing
IP over PW traffic load balancing hash uses the following fields:
Before Release 24.2.1, hash uses the inner ethernet L2 hash fields. Inner ethernet L3 hash fields are also added in the hashing for limited types of traffic.
In Release 24.2.1, inner ethernet L2 hash fields and inner ethernet L3 hash fields are both used in hashing.
Starting from Release 24.3.1, inner ethernet L3 hash fields and MPLS hash fields of outer ethernet frame are used in hashing.
Non-IP over PW Traffic Load Balancing
Before Release 24.3.1, Non-IP over PW traffic load balance hash uses the inner ethernet L2 hash fields.
Starting from Release 24.3.1 release, MPLS hash fields of outer ethernet frame are used in hashing.
On P100, K100, and A100 based Silicon One ASIC:
IP over PW Traffic Load Balancing
IP over PW traffic load balance hash uses the following fields:
Before Release 24.4.1, hash uses the inner ethernet L2 hash fields. Inner ethernet L3 hash fields are also added in the hashing for limited types of traffic.
Starting from Release 24.4.1, inner ethernet L3 hash fields and MPLS hash fields of outer ethernet frame are used in hashing.
Non-IP over PW Traffic Load Balancing
Before Release 24.3.1, Non-IP over PW traffic load balance hash uses the inner ethernet L2 hash fields.
Starting from Release 24.3.1 release, MPLS hash fields of outer ethernet frame are used in hashing.
PW disposition traffic load balance when control word and flow label are both enabled.
In this case, all PW traffic is Non-IP over PW traffic.
Before Release 24.3.1, Non-IP over PW traffic load balance hash uses the control word presence L2 hash fields.
Starting from Release 24.3.1, MPLS hash fields of outer ethernet frame are used in hashing.