Packet decoding ,client handling and testing