write packet and sequence number pair at once