Fortinet black logo

FortiGate-7000 Handbook

Load balancing TCP, UDP, and ICMP sessions with fragmented packets

Copy Link
Copy Doc ID 46a2bcaf-5a38-11ea-9384-00505692583a:252556
Download PDF

Load balancing TCP, UDP, and ICMP sessions with fragmented packets

This section describes how to support efficient load balancing of fragmented TCP, UDP, and ICMP packets. When the DP2 processor receives a header fragment packet, if a matching session is found, the DP2 processor creates an additional fragment session matching the source-ip, destination-ip, and IP identifier (IPID) of the header fragment packet. Subsequent non-header fragments will match this fragment session and be forwarded to the same FPM as the header fragment.

You can use the following configuration to enable or disable this method of handling TCP, UDP, and ICMP sessions with fragmented packets.

config load-balance setting

set dp-fragment-session enable

set sw-load-distribution-method src-dst-ip

end

If you disable dp-fragment-session, the DP2 processor broadcasts all non-header fragmented TCP, UDP, or ICMP packets to all FPMs. FPMs that also received the header fragments of these packets re-assemble the packets correctly. FPMs that did not receive the header fragments discard the non-header fragments.

The age of the fragment session can be controlled using the following command:

config system global

set dp-fragment-timer <timer>

end

The default <timer> value is 120 seconds.

Load balancing TCP, UDP, and ICMP sessions with fragmented packets

This section describes how to support efficient load balancing of fragmented TCP, UDP, and ICMP packets. When the DP2 processor receives a header fragment packet, if a matching session is found, the DP2 processor creates an additional fragment session matching the source-ip, destination-ip, and IP identifier (IPID) of the header fragment packet. Subsequent non-header fragments will match this fragment session and be forwarded to the same FPM as the header fragment.

You can use the following configuration to enable or disable this method of handling TCP, UDP, and ICMP sessions with fragmented packets.

config load-balance setting

set dp-fragment-session enable

set sw-load-distribution-method src-dst-ip

end

If you disable dp-fragment-session, the DP2 processor broadcasts all non-header fragmented TCP, UDP, or ICMP packets to all FPMs. FPMs that also received the header fragments of these packets re-assemble the packets correctly. FPMs that did not receive the header fragments discard the non-header fragments.

The age of the fragment session can be controlled using the following command:

config system global

set dp-fragment-timer <timer>

end

The default <timer> value is 120 seconds.