Implement total packet protocol.