Deriving the Optimal Payload Size for Packet-Based Communication Over a Binary Symmetrical Channel