Understanding and Hardening Blockchain Network Security Against Denial of Service Attacks