Parser for CPA2 protocol