pi_protocol definition