Created a function for converting the protocol name into protocol number