CRDT TLA Save

Specifying and Verifying CRDT Protocols using TLA+

Project README

CRDT-TLA

Specifying and Verifying CRDT Protocols using TLA+

Specification

Conflict-free Replicated Data Types (CRDT) are replicated data types that encapsulate the mechanisms for resolving concurrent conflicts. They guarantee strong eventual consistency among replicas in distributed systems, which requires replicas that have executed the same set of updates be in the same state. However, CRDT protocols are subtle and it is difficult to ensure their correctness.

This project leverages model checking to verify the correctness of CRDT protocols. Specifically, we propose a reusable framework for modelling and verifying CRDT protocols. The framework consists of four layers, i.e., the communication layer, the interface layer, the protocol layer, and the specification layer.

Papers

See paper-crdt-TLA+.

TLA+ module description

The following figure shows the relationship between the key modules in the project:

The solid line from module A to module B indicates that A extends B,

The dashed line from module A to module B indicates that A instantiates B.


layer module function
specification Correctness the specification of SEC and EV
specification OpCorrectness the specification of SEC and EV for op-based CRDT
specification StateCorrectness the specification of SEC and EV for state-based CRDT
layer module function
protocol OpCounter the specification of op-based counter
protocol StateCounter the specification of state-based counter
protocol OpAWSet the specification of op-based AWSet
protocol StateAWSet the specification of state-based AWSet
layer module function
interface CRDTInterface provide a unified interface for two types of CRDT
layer module function
communication SystemModel the specification of system model
communication BasicNetwork the specification of basic network
communication ReliableNetwork the specification of reliable network
communication CausalNetwork the specification of casual network
communication ReliableCausalNetwork the specification of reliable causal network

How to run?

  1. Run separately.

Create and run TLC models in the usual way.

  1. Run in batch (Recommended).

We write scripts to automatically conduct a batch of experiments; seeJYwellin/crdt-experiments.

Open Source Agenda is not affiliated with "CRDT TLA" Project. README Source: JYwellin/CRDT-TLA
Stars
42
Open Issues
0
Last Commit
2 years ago
Repository

Open Source Agenda Badge

Open Source Agenda Rating