add basic protocol logic implementation and interface for check summ calculating function.