The invention discloses a method and apparatus for creating network space coordinate system architecture based on an IP address and a logical port. According to the method, the IP address and logicalport are used as base vectors of the network space coordinate system, the network space is visualized from the perspective of the origin of the network space, compared with the traditional geospatialvisualization and the network topology coordinate system, unique properties of the network space can be visualized more intuitively, more comprehensively, and more effectively, and the coordinate system combines the advantages of the traditional geographical maps and the network coordinate systems, thus having certain advantages. By converting a one-dimensional IP address space into a two-dimensional IP address space through Hilbert transform, the IP dimension address space is better visualized, and the adjacent basic attributes between the IP addresses in the network space are reserved. Compared with the one-dimensional IP address space method, the method has the advantages of a better visualization effect.