state synchronization

term

networkingsecurity

Kept in this browser · My desk

In a stateful cluster, the copying of runtime state, above all the connection or session table, from the active member to its peers, so that a member taking over can keep forwarding connections it did not open.

A firewall, load balancer or address translator drops or resets packets of connections it does not know, so a standby without the table turns every failover into a reset. Every implementation leaves something out: Check Point delays or skips short HTTP connections, FortiOS can skip sessions younger than 30 seconds, Palo Alto Networks does not carry decrypted SSL sessions, and a connection that survives may continue without inspection.

Mechanics. Check Point ClusterXL sends Delta Sync over UDP port 8116, about 90% of its Cluster Control Protocol traffic, after a Full Sync over TCP port 263 when a member joins; OpenBSD's pfsync collapses state changes and sends them within at most one second, and its defer option holds the first packet of a connection until a peer acknowledges the new state. Cost. Fortinet notes that with session pickup enabled, heartbeat traffic surges during a failover or when a unit joins, because the whole session table must be synchronized. Security. The pfsync manual warns that the protocol has no authenticity or integrity protection of its own, so spoofed packets could create states that bypass the ruleset; Check Point encrypts its Cluster Control Protocol by default. Limits. Researchers who interviewed middlebox vendors in 2015 found that flows active at a failure may bypass some security inspections afterwards, so the continuity of a connection and the continuity of its inspection are different promises.

Also known as: state sync, session synchronization, session sync, session pickup, connection mirroring, sincronização de estado

Sources

← Back to S Back to the glossary