CN114244825A - Method and system for accurately judging external network IP address of network host - Google Patents

Method and system for accurately judging external network IP address of network host Download PDF

Info

Publication number
CN114244825A
CN114244825A CN202111485190.7A CN202111485190A CN114244825A CN 114244825 A CN114244825 A CN 114244825A CN 202111485190 A CN202111485190 A CN 202111485190A CN 114244825 A CN114244825 A CN 114244825A
Authority
CN
China
Prior art keywords
information
network
network host
host
remote server
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202111485190.7A
Other languages
Chinese (zh)
Other versions
CN114244825B (en
Inventor
汤子健
苏嘉
钟平声
张爱丽
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Taierkaida Telecom Information Consulting Co ltd
China Academy of Information and Communications Technology CAICT
Original Assignee
Beijing Taierkaida Telecom Information Consulting Co ltd
China Academy of Information and Communications Technology CAICT
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Taierkaida Telecom Information Consulting Co ltd, China Academy of Information and Communications Technology CAICT filed Critical Beijing Taierkaida Telecom Information Consulting Co ltd
Priority to CN202111485190.7A priority Critical patent/CN114244825B/en
Publication of CN114244825A publication Critical patent/CN114244825A/en
Application granted granted Critical
Publication of CN114244825B publication Critical patent/CN114244825B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/12Network monitoring probes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/09Mapping addresses
    • H04L61/25Mapping addresses of the same type
    • H04L61/2503Translation of Internet protocol [IP] addresses

Abstract

The invention discloses a method and a system for accurately judging an external network IP address of a network host, which comprises the steps of firstly deploying HTTP service in a cloud server, initiating HTTP access to the cloud server by the network host, and recording HTTP access information of the network host by the cloud server; then, initiating Traceroute detection to the cloud server by the network host, and uploading Traceroute detection information to the cloud server; the cloud server acquires the IP information of the remote server from the HTTP access information of the network host, judges the attribute of each hop of IP information in the IP information of the remote server, the IP information of the network host and the Traceroute detection information based on the IP information address base, and judges the attribute of each piece of IP information to obtain the IP information of the external network of the network host.

Description

Method and system for accurately judging external network IP address of network host
Technical Field
The invention relates to the technical field of network address judgment, in particular to a method and a system for accurately judging an external network IP address of a network host.
Background
In the analysis of network monitoring data, it is usually necessary to accurately determine the external network IP address of the network host to obtain a more accurate network quality analysis result. However, the technologies and networking modes adopted by broadband access service providers are very different, for example, common access technologies include xDLS, FTTH, LAN, etc., and broadband access service providers with smaller scales can only provide broadband access services, and need to access the internet depending on telecommunication, communication or mobile networks, so that there is a great technical difficulty in accurately positioning the external network IP of the network host.
Disclosure of Invention
The invention aims to overcome the technical defects and provides a method and a system for accurately judging the IP address of the external network of the network host, which improve the representation capability of a feature extraction network by utilizing a self-supervision learning task and realize the technical effect of improving a small amount of labeled data classification tasks.
In order to achieve the above technical object, a first aspect of the present invention provides a method for accurately determining an external network IP address of a network host, including the steps of:
deploying HTTP service in a cloud server, initiating HTTP access to the cloud server by a network host, and recording HTTP access information of the network host by the cloud server;
initiating Traceroute detection to a cloud server by a network host, and uploading Traceroute detection information to the cloud server;
the cloud server acquires the IP information of the remote server and the IP information of the network host from the HTTP access information of the network host, judges the attribute of each hop of IP information in the IP information of the remote server, the IP information of the network host and the Traceroute detection information based on the IP information address base, and judges the attribute of each piece of IP information to obtain the IP information of the external network of the network host.
The second aspect of the present invention provides a system for accurately determining an external network IP address of a network host, which includes the following functional modules:
the HTTP access module is used for deploying HTTP service in the cloud server, the network host initiates HTTP access to the cloud server, and the cloud server records HTTP access information of the network host;
the Traceroute detection module is used for initiating Traceroute detection to the cloud server by the network host and uploading Traceroute detection information to the cloud server;
and the IP judging module is used for acquiring the IP information of the remote server and the IP information of the network host from the HTTP access information of the network host by the cloud server, judging the attribute of each hop of IP information in the Traceroute detection information based on the IP information address base, and judging according to the attribute of each piece of IP information to obtain the IP information of the external network of the network host.
A third aspect of the present invention provides a server, including a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor implements the above steps of the method for accurately determining an IP address of an external network of a network host when executing the computer program.
A fourth aspect of the present invention provides a computer-readable storage medium, which stores a computer program, and when the computer program is executed by a processor, the computer program implements the steps of the above method for accurately determining an IP address of an external network of a network host.
Compared with the prior art, the method and the device have the advantages that the remote server IP information and the network host IP information are extracted, the network host external network IP information is judged according to the remote server IP information and the network host IP information attribute, and further comprehensive judgment is carried out according to the attribute of each hop of IP information extracted from Traceroute detection information and the attribute of the remote server IP information, so that accurate network host external network IP information is judged and obtained.
Drawings
FIG. 1 is a block diagram illustrating a flowchart of a method for accurately determining an IP address of an external network of a network host according to an embodiment of the present invention;
FIG. 2 is a block diagram illustrating a process of determining IP information of an external network of a network host according to an embodiment of the present invention;
fig. 3 is a block diagram of a system for accurately determining an IP address of an external network of a network host according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
Aiming at the problem of greater technical difficulty in positioning the external network IP of the network host in the prior art, the invention provides a method for accurately judging the external network IP address of the network host, as shown in figure 1, which comprises the following steps:
s1, deploying HTTP service in the cloud server, initiating HTTP access to the cloud server by the network host, and recording HTTP access information of the network host by the cloud server;
s2, initiating Traceroute detection to the cloud server by the network host, and uploading Traceroute detection information to the cloud server;
s3, the cloud server acquires the IP information of the remote server and the IP information of the network host from the HTTP access information of the network host, judges the attribute of each hop of IP information in the IP information of the remote server, the IP information of the network host and the Traceroute detection information based on the IP information address base, and judges the attribute of each piece of IP information to obtain the IP information of the external network of the network host.
Wherein, the step S3 includes the following steps:
the cloud server acquires remote server IP information and network host IP information from the network host HTTP access information and the network host information, judges the attributes of the remote server IP information and the network host IP information based on an IP information address base, and judges according to the attributes of the remote server IP information and the network host IP information to obtain network host external network IP information;
when the external network IP information of the network host cannot be confirmed under the judgment based on the IP information of the remote server and the IP information attribute of the network host, the cloud server extracts the IP information of each hop from the Traceroute detection information, judges the IP information of the remote server and the attribute of the IP information of each hop based on the IP information address base, and judges to obtain the external network IP information of the network host according to the IP information of the remote server and the attribute of the IP information of each hop.
Specifically, as shown in fig. 2, the process of determining the IP information of the external network of the network host based on the IP information of the remote server, the IP information of the network host and the Traceroute detection information is as follows:
1) the cloud server acquires REMOTE server IP information (namely REMOTE _ IP) and network host IP information from the network host HTTP access information and the network host information;
2) judging the attributes of the REMOTE server IP information (namely REMOTE _ IP) and the network host IP information based on the IP information address library;
3) if the IP information of the network host is public network IP information and is the same as the IP information (namely REMOTE _ IP) of the REMOTE server, the IP information of the external network of the network host is the IP information of the REMOTE server;
4) under the condition that the condition is not met, if the IP information of the network host is public network IP information and is IP information of three operators, namely non-telecom, Unicom and Mobile, the IP information of the network host and the external network IP information are the IP information of the network host.
5) Under the condition that the conditions are not met, extracting the attribute of each hop of IP information in Traceroute detection information;
6) under the condition that the external network IP information of the network host cannot be obtained according to the REMOTE server IP information (namely REMOTE _ IP) and the attribute of the network host IP information, judging based on an IP information address base, and if public network IP information is not found in the first 5 hops of each hop of IP information, the external network IP information of the network host is the REMOTE server IP information;
7) if public network IP information is found in the first 5 hops of each hop of IP information, the 1 st public network IP information found in each hop of IP information belongs to operators except telecom, Unicom and Mobile, and the remote server IP information belongs to three operators, namely telecom, Unicom and Mobile, the network host external network IP information is the 1 st public network IP information found in each hop of IP information; otherwise, the IP information of the external network of the network host is the IP information of the remote server.
8) Except the situation, the IP information of the external network of the network host is the IP information of the remote server.
The invention judges the external network IP information of the network host according to the IP information of the remote server and the IP information attribute of the network host by extracting the IP information of the remote server and the IP information of the network host, and further carries out comprehensive judgment according to the attribute of each hop of IP information extracted from Traceroute detection information and the attribute of the IP information of the remote server, thereby obtaining accurate external network IP information of the network host by judgment.
As shown in fig. 3, an embodiment of the present invention further provides a system for accurately determining an external network IP address of a network host, where the system includes the following functional modules:
the HTTP access module 10 is configured to deploy an HTTP service in a cloud server, initiate an HTTP access to the cloud server by a network host, and record HTTP access information of the network host by the cloud server;
the Traceroute detection module 20 is used for initiating Traceroute detection to the cloud server by the network host and uploading Traceroute detection information to the cloud server;
the IP determining module 30 is configured to, by the cloud server, obtain the IP information of the remote server and the IP information of the network host from the HTTP access information of the network host, determine, based on the IP information address base, an attribute of each hop of IP information in the IP information of the remote server, the IP information of the network host, and Traceroute probe information, and determine, according to the attribute of each piece of IP information, to obtain the IP information of the external network of the network host.
The system for accurately determining the IP address of the external network of the network host according to this embodiment is implemented in a manner substantially the same as the method for accurately determining the IP address of the external network of the network host, and therefore, detailed descriptions thereof are omitted.
The server in this embodiment is a device for providing computing services, and generally refers to a computer with high computing power, which is provided to a plurality of consumers via a network. The server of this embodiment includes: a memory including an executable program stored thereon, a processor, and a system bus, it will be understood by those skilled in the art that the terminal device structure of the present embodiment does not constitute a limitation of the terminal device, and may include more or less components than those shown, or some components in combination, or a different arrangement of components.
The memory may be used to store software programs and modules, and the processor may execute various functional applications of the terminal and data processing by operating the software programs and modules stored in the memory. The memory may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the terminal, etc. Further, the memory may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The executable program of the method for accurately judging the IP address of the network host extranet is contained in a memory, the executable program can be divided into one or more modules/units, the one or more modules/units are stored in the memory and executed by a processor to complete the information acquisition and implementation process, and the one or more modules/units can be a series of computer program instruction segments capable of completing specific functions, and the instruction segments are used for describing the execution process of the computer program in the server. For example, the computer program may be divided into an HTTP access module 10, a Traceroute probe module 20, and an IP determination module 30.
The processor is a control center of the server, connects various parts of the whole terminal equipment by various interfaces and lines, and executes various functions of the terminal and processes data by running or executing software programs and/or modules stored in the memory and calling data stored in the memory, thereby performing overall monitoring of the terminal. Alternatively, the processor may include one or more processing units; preferably, the processor may integrate an application processor, which mainly handles operating systems, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor.
The system bus is used to connect functional units in the computer, and can transmit data information, address information and control information, and the types of the functional units can be PCI bus, ISA bus, VESA bus, etc. The system bus is responsible for data and instruction interaction between the processor and the memory. Of course, the system bus may also access other devices such as network interfaces, display devices, etc.
The server at least includes a CPU, a chipset, a memory, a disk system, and the like, and other components are not described herein again.
In the embodiment of the present invention, the executable program executed by the processor included in the terminal specifically includes: a method for accurately judging the external network IP address of a network host comprises the following steps:
deploying HTTP service in a cloud server, initiating HTTP access to the cloud server by a network host, and recording HTTP access information of the network host by the cloud server;
initiating Traceroute detection to a cloud server by a network host, and uploading Traceroute detection information to the cloud server;
the cloud server acquires the IP information of the remote server and the IP information of the network host from the HTTP access information of the network host, judges the attribute of each hop of IP information in the IP information of the remote server, the IP information of the network host and the Traceroute detection information based on the IP information address base, and judges the attribute of each piece of IP information to obtain the IP information of the external network of the network host.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
Those of ordinary skill in the art would appreciate that the modules, elements, and/or method steps of the various embodiments described in connection with the embodiments disclosed herein may be implemented as electronic hardware, or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present invention, and not for limiting the same; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (9)

1. A method for accurately judging the external network IP address of a network host is characterized by comprising the following steps:
deploying HTTP service in a cloud server, initiating HTTP access to the cloud server by a network host, and recording HTTP access information of the network host by the cloud server;
initiating Traceroute detection to a cloud server by a network host, and uploading Traceroute detection information to the cloud server;
the cloud server acquires the IP information of the remote server and the IP information of the network host from the HTTP access information of the network host, judges the attribute of each hop of IP information in the IP information of the remote server, the IP information of the network host and the Traceroute detection information based on the IP information address base, and judges the attribute of each piece of IP information to obtain the IP information of the external network of the network host.
2. The method as claimed in claim 1, wherein the cloud server obtains the remote server IP information and the network host IP information from the HTTP access information of the network host, determines the attribute of each hop of IP information in the remote server IP information, the network host IP information, and the Traceroute probe information based on the IP information address library, and determines the external network IP information of the network host according to the attribute of each IP information, including:
the cloud server acquires remote server IP information and network host IP information from the network host HTTP access information and the network host information, judges the attributes of the remote server IP information and the network host IP information based on an IP information address base, and judges according to the attributes of the remote server IP information and the network host IP information to obtain network host external network IP information;
the cloud server extracts IP information of each hop from Traceroute detection information, judges the IP information of the remote server and the attribute of the IP information of each hop based on an IP information address base, and judges and obtains the IP information of the external network of the network host according to the IP information of the remote server and the attribute of the IP information of each hop.
3. The method as claimed in claim 2, wherein the cloud server extracts IP information of each hop from Traceroute probe information, determines the remote server IP information and the attribute of the IP information of each hop based on the IP information address library, and determines the IP information of the external network of the network host according to the attribute, under the condition that the IP information of the external network of the network host cannot be confirmed based on the determination of the IP information of the remote server and the IP information attribute of the network host.
4. The method of claim 2, wherein the determining of the IP address of the external network of the network host according to the IP information of the remote server and the IP information of the network host is performed to obtain the IP information of the external network of the network host; the method comprises the following steps:
if the IP information of the network host is public network IP information and is the same as the IP information of the remote server, the IP information of the external network of the network host is the IP information of the remote server;
under the condition that the condition is not met, if the IP information of the network host is public network IP information and is IP information of three operators, namely non-telecom, Unicom and Mobile, the IP information of the network host and the external network IP information are the IP information of the network host.
5. The method of claim 4, wherein the determining the IP address of the external network of the network host according to the IP information of the remote server and the attribute of the IP information of each hop comprises:
under the condition that the external network IP information of the network host cannot be obtained according to the remote server IP information and the attribute of the network host IP information, if the public network IP information is not found in the first 5 hops of each hop of IP information, the external network IP information of the network host is the remote server IP information;
if public network IP information is found in the first 5 hops of each hop of IP information, the 1 st public network IP information found in each hop of IP information belongs to operators except telecom, Unicom and Mobile, and the remote server IP information belongs to three operators, namely telecom, Unicom and Mobile, the network host external network IP information is the 1 st public network IP information found in each hop of IP information; otherwise, the IP information of the external network of the network host is the IP information of the remote server.
6. The method of claim 5, wherein the IP address of the external network of the network host is the IP information of the remote server except the case.
7. A system for accurately judging the external network IP address of a network host is characterized by comprising the following functional modules:
the HTTP access module is used for deploying HTTP service in the cloud server, the network host initiates HTTP access to the cloud server, and the cloud server records HTTP access information of the network host;
the Traceroute detection module is used for initiating Traceroute detection to the cloud server by the network host and uploading Traceroute detection information to the cloud server;
and the IP judging module is used for acquiring the remote server IP information and the network host IP information from the network host HTTP access information by the cloud server, judging the attribute of each hop of IP information in the remote server IP information, the network host IP information and the Traceroute detection information based on the IP information address base, and judging according to the attribute of each piece of IP information to obtain the external network IP information of the network host.
8. A server comprising a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor when executing the computer program implements the steps of the method for accurately determining an IP address of an external network of a host of a network according to any one of claims 1 to 6.
9. A computer-readable storage medium, in which a computer program is stored, which, when being executed by a processor, carries out the steps of the method for accurately determining an IP address of an external network of a network host according to any one of claims 1 to 6.
CN202111485190.7A 2021-12-07 2021-12-07 Method and system for accurately judging external network IP address of network host Active CN114244825B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111485190.7A CN114244825B (en) 2021-12-07 2021-12-07 Method and system for accurately judging external network IP address of network host

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111485190.7A CN114244825B (en) 2021-12-07 2021-12-07 Method and system for accurately judging external network IP address of network host

Publications (2)

Publication Number Publication Date
CN114244825A true CN114244825A (en) 2022-03-25
CN114244825B CN114244825B (en) 2022-12-02

Family

ID=80753660

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111485190.7A Active CN114244825B (en) 2021-12-07 2021-12-07 Method and system for accurately judging external network IP address of network host

Country Status (1)

Country Link
CN (1) CN114244825B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050170851A1 (en) * 2002-05-07 2005-08-04 Koninklijke Philips Electronics N.V. Wireless communications arrangements with location based services
CN111490996A (en) * 2020-06-24 2020-08-04 腾讯科技(深圳)有限公司 Network attack processing method and device, computer equipment and storage medium

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050170851A1 (en) * 2002-05-07 2005-08-04 Koninklijke Philips Electronics N.V. Wireless communications arrangements with location based services
CN1653842A (en) * 2002-05-07 2005-08-10 皇家飞利浦电子股份有限公司 Wireless communications arrangements with location based services
CN111490996A (en) * 2020-06-24 2020-08-04 腾讯科技(深圳)有限公司 Network attack processing method and device, computer equipment and storage medium

Also Published As

Publication number Publication date
CN114244825B (en) 2022-12-02

Similar Documents

Publication Publication Date Title
CN110602671B (en) Bluetooth search result display method and device, terminal equipment and storage medium
US8874736B2 (en) Event extractor
JP2022539910A (en) Electronic device screen area defect inspection method and apparatus
CN110012217B (en) Method and device for determining acquisition resolution and electronic equipment
CN109905292B (en) Terminal equipment identification method, system and storage medium
CN109831351B (en) Link tracking method, device, terminal and storage medium
CN110830551A (en) Service request processing method, device and system
CN104427547A (en) Business and network association test method, device and system
TWI830815B (en) User terminal failure detection method, device, computer device and storage medium
US11570274B1 (en) Systems for exchange of data between remote devices
US20130219021A1 (en) Predictive caching for telecommunication towers using propagation of identification of items of high demand data at a geographic level
CN114244825B (en) Method and system for accurately judging external network IP address of network host
US10111120B2 (en) Apparatus and method for diagnosing anomaly in mobile communication network
CN113301155A (en) Data routing method, device, equipment and storage medium
CN106375378B (en) Application deployment method and system based on local area network client server structure
CN110401626B (en) Hacker attack grading detection method and device
CN109905486B (en) Application program identification display method and device
CN114449444B (en) Cross-intelligent portable equipment association method based on WiFi-BLE signal passive sniffing
CN105915639B (en) Page access method and device
CN114463585A (en) Violation flag identification method and system for content community
CN114726905A (en) Method, device, equipment and storage medium for accessing Tbox network to Android system
CN114025014A (en) Asset detection method and device, electronic equipment and storage medium
CN112541183B (en) Data processing method and device, edge computing equipment and storage medium
CN116304399B (en) Visual processing method, device and system for test cases
CN112542165A (en) Voice control method of application program and intelligent terminal

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant