add packet length checksum

add packet length checksum