def <=>(other)
      c = port <=> other.port
      return c unless c.zero?
      c = protocol <=> other.protocol
      return c unless c.zero?