ocaml module for the NBD protocol