pure zab protocol implement by erlang.