Improved TCP acknowledgement number calculation