Not the same thing as a port number
The protocol numbers covered here live inside the IP header and identify which protocol β TCP, UDP, ICMP β is being used. A port number is a separate value that lives inside TCP or UDP itself and identifies which service the traffic is meant for.
Useful for reading firewall rules
Firewall and router configuration screens often show a 'Protocol: TCP/UDP/ICMP/ALL' option, and these are exactly the numbers behind that choice. When troubleshooting a VPN connection, checking that ESP (50) and AH (51) aren't blocked by a firewall is a common diagnostic step.
Frequently Asked Questions
Who assigns IP protocol numbers?
The Internet Assigned Numbers Authority (IANA) officially manages and assigns them, ensuring every network device worldwide uses the same numbering scheme so they can all understand each other.
Why are ESP and AH always mentioned together?
Both are protocols used to build an IPsec VPN β ESP handles encrypting the data, AH handles verifying it hasn't been altered, and they're sometimes used together depending on the setup.