How Does the Internet Know Your Download Isn’t Corrupted?

You wait 20 minutes for a large software update to finish downloading.