The internet is an academic research project that escaped the lab prematurely.
Although it has been patched numerous times (up to RFC 10097 now), it still has problems.