use vector instead of map to accelerate the lookup of port#