fix of message format error and hop count measurement