DNS resolvers, DHCP clients, and every ping utility on Linux depend on exactly these two lightweight formats: UDP's 8-byte header (RFC 768) and ICMP's type/code scheme (RFC 792). The ping tool you've used your whole life is just an ICMP type-8 request built and parsed the same way you do here.