Determining network protocol being used