Alternating Bit Protocol (ABP)
This example provides a formal specification of the Alternating Bit Protocol (ABP), a protocol for reliable communication over an unreliable channel. It uses a single alternating control bit and acknowledgments to detect losses and trigger retransmissions, ensuring that messages are delivered correctly and in order.
Verification
This case study checks a symbolic invariant for the Alternating Bit Protocol. The invariant captures the relationships needed between protocol data structures and is checked by constrained narrowing.
Some folding steps depend on semantic properties of auxiliary functions. DM-Check records the corresponding proof obligations, and supporting lemmas can be added to the interactive session before the check is re-executed.
The downloadable files contain the exact Maude specification, DM-Check command material, and the associated NuITP proof material. They should be used as the authoritative record of the property established by this example.
Run it
Extract the DM-Check archive and, from that folder, replay the whole case study with its script:
$ maude -allow-files
Maude> load examples/abp/abp.maude
Maude> load dm-check.maude
DM-Check> load examples/abp/abp.dmcThe script selects the module ABP-PRED-AUX, prints every command before running it, and stops at the end of the file or at the first command that cannot be parsed or executed. To follow the proof step by step, type the commands one by one at the prompt instead. See Install, step 5 for the script format.
The proof obligation reported by DM-Check is discharged with NuITP. From the same folder, in a new Maude session, run its script:
$ maude -allow-files
Maude> load examples/abp/abp.maude
Maude> load NuITP.maude
Maude> erew in NuITP : init .
NuITP> load examples/abp/abp.nuitp