Trunk load balancing using port layers allows the use of TCP/UDP source and destination port number for trunk load balancing. This is in addition to the current use of source and destination IP address and MAC addresses. Configuration of Layer 4 load balancing would apply to all trunks on the switch. Only non-fragmented packets will have their TCP/UDP port number used by load balancing. This ensures that all frames associated with a fragmented IP packet are sent through the same trunk on the same physical link.
The priority for using layer packet information when this feature is enabled is as follows:
-
L4-based: If the packet protocol is an IP packet, use Layer 4, or Layer 3, or Layer 2 information, whichever is present, in that order.
-
L3-based: If the packet protocol is an IP packet, use Layer 3, or Layer 2 information, whichever is present, in that order.
-
L2-based: If the packet protocol is an IP packet use Layer 2 information.
-
For all options, if the packet is not an IP packet, use Layer 2 information.
Enter the following command to enable load balancing.
Syntax:
This option enables load balancing based on port layer information. The configuration is executed in global configuration context and applies to the entire switch.
Output when L4-based trunk load balancing is enabled
HP Switch(config)# show trunk Load Balancing Method: L4-based, L2-based if non-IP traffic Port | Name Type | Group Type ---- + ----------------------------- --------- + ------ ------- 41 100/1000T Trk1 Trunk 42 100/1000T Trk1 Trunk
Note in Running config file when L4-based trunk load balancing is enabled that in if L4 trunk load balancing is enabled, a line appears in the running-config file. If it is not enabled, nothing appears as this is the default and the default values are not displayed.
Running config file when L4-based trunk load balancing is enabled
HP Switch(config)# show running-config Running configuration ; J9091A Configuration Editor; Created on release #XX.15.02.0001x hostname "Switch" module 1 type J8702A module 5 type J9051A module 7 type J8705A module 10 type J8708A module 12 type J8702A trunk-load-balance L4-based vlan 1 name "DEFAULT_VLAN" untagged A1-A24, G1-G24, J1-J4, L1-L24 ip address dhcp-bootp tagged EUP no untagged EDP exit snmp-server community "public" unrestricted