implement application layer protocol parser framework