Skip to main content
ppatel
Staff & Editor
Staff & Editor
Feb 11, 2010 10:56 PM UTC

Technical Tip: FortiGate HA A-A cluster - 3-way TCP handshake explanation

  • Apr 16, 2026 12:30 PM UTC
  • 0 replies
  • 18497 views

Description

 
This article describes an example of a simple TCP 3-way-handshake in HA Active-Active cluster where packet distribution between the primary and secondary FortiGate occurs.

The diagram below illustrates the packet flow between the client and the server through 2 FortiGate devices in the cluster:
 
 
Scope
 
All supported versions of FortiOS.

 

Solution

 

Detailed sequence:

 

  1. A SYN sent to the primary Internal interface has an internal Virtual MAC address (V_MAC_Inter).
  2. SYN is redistributed to secondary Internal Interface. Source MAC is (Phy_MAC_inter) and Dest MAC is secondary Internal Physical MAC address ( Phy_MAC_Inter).
  3. SYN is forwarded from internal interface to External Interface to the external switch connected to the server.
  4. SYN/ACK sent from server to primary External interface.
  5. SYN/ACK redistributed to secondary (source MAC address is primary virtual MAC address (Phy_MAC_external) and destination MAC address is the secondary external physical MAC (Phy_MAC_Exter).
  6. SYN/ACK is forwarded from secondary External interface to Internal Interface toward internal switch to client.
  7. ACK is sent from client to primary Internal interface.
  8. ACK redistributed to secondary.
  9. ACK forwarded from internal interface to external interface toward external switch to server.
  10. TCP 3 way hand-shake completes.
     

Note: The client and server do not know about the existence of the secondary FortiGate.
The ARP table of both devices point to the Virtual MAC address: internal and external, respectively.
In the event of a failover, FGT2 becomes the primary and will broadcast its VMAC address out to the Switches 1 and 2, which will update their MAC forwarding table. ARP entries on both client and server remain the same.

Related document:
NAT mode A-A packet flow - FortiGate 6.0.0 documentation.

Risk and Resilience in the Age of AI. An OT Thought Leadership Summit for Houston's Critical Infrastructure Leaders. Date: Thursday, December 3, 2026. Time: 8:30 am - 1:30 pm (CT). Location: The Westin Houston, Memorial City | 945 Gessner Road, Houston, TX 77024