added packet type 4 for protocol
Finish packet_size_protocol