resolve msg header , the protocol is simple