Replication traffic integrity checking

This feature is available in DRBD 8.2.0 and later.

DRBD optionally performs end-to-end message integrity checking using cryptographic message digest algorithms such as MD5, SHA-1 or CRC-32C.


These message digest algorithms are not provided by DRBD. The Linux kernel crypto API provides these; DRBD merely uses them. Thus, DRBD is capable of utilizing any message digest algorithm available in a particular system's kernel configuration.

With this feature enabled, DRBD generates a message digest of every data block it replicates to the peer, which the peer then uses to verify the integrity of the replication packet. If the replicated block can not be verified against the digest, the peer requests retransmission. Thus, DRBD replication is protected against several error sources, all of which, if unchecked, would potentially lead to data corruption during the replication process:

  • Bitwise errors ("bit flips") occurring on data in transit between main memory and the network interface on the sending node (which goes undetected by TCP checksumming if it is offloaded to the network card, as is common in recent implementations);

  • bit flips occuring on data in transit from the network interface to main memory on the receiving node (the same considerations apply for TCP checksum offloading);

  • any form of corruption due to a race conditions or bugs in network interface firmware or drivers;

  • bit flips or random corruption injected by some reassembling network component between nodes (if not using direct, back-to-back connections).

See the section called “Configuring replication traffic integrity checking” for information on how to enable replication traffic integrity checking.