CN115442280A - IPv6 concentration detection method, device and storage medium - Google Patents

IPv6 concentration detection method, device and storage medium Download PDF

Info

Publication number
CN115442280A
CN115442280A CN202210956176.9A CN202210956176A CN115442280A CN 115442280 A CN115442280 A CN 115442280A CN 202210956176 A CN202210956176 A CN 202210956176A CN 115442280 A CN115442280 A CN 115442280A
Authority
CN
China
Prior art keywords
domain name
name information
sub
ipv6
main
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
CN202210956176.9A
Other languages
Chinese (zh)
Other versions
CN115442280B (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.)
Tianyi Safety Technology Co Ltd
Original Assignee
Tianyi Safety Technology Co Ltd
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 Tianyi Safety Technology Co Ltd filed Critical Tianyi Safety Technology Co Ltd
Priority to CN202210956176.9A priority Critical patent/CN115442280B/en
Publication of CN115442280A publication Critical patent/CN115442280A/en
Application granted granted Critical
Publication of CN115442280B publication Critical patent/CN115442280B/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
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/10Active monitoring, e.g. heartbeat, ping or trace-route

Landscapes

  • Health & Medical Sciences (AREA)
  • Cardiology (AREA)
  • General Health & Medical Sciences (AREA)
  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The application relates to the technical field of computers, and discloses a method, a device and a storage medium for detecting IPv6 concentration, wherein the method comprises the following steps: respectively detecting main domain name information corresponding to each target client website to obtain each level of sub domain name information corresponding to each main domain name information, determining each main domain name information and first total quantity of each level of sub domain name information, wherein the protocol type supported by each main domain name information is IPv4 or IPv6, the protocol type supported by each level of sub domain name information is IPv4 or IPv6, respectively carrying out dial testing on each main domain name information to determine target main domain name information supporting an IPv6 protocol, respectively carrying out dial testing on each level of sub domain name information to determine target sub domain name information supporting the IPv6 protocol, determining second total quantity of the target main domain name information and the target sub domain name information, determining IPv6 concentration based on the first total quantity and the second total quantity, and conveniently realizing concentration analysis of the website IPv6.

Description

IPv6 concentration detection method, device and storage medium
Technical Field
The application relates to the technical field of computers, and provides a method and a device for detecting IPv6 concentration and a storage medium.
Background
At present, under the requirement of national internet protocol (IPv 6) scale deployment, official website of each relevant college, medical treatment, financial and other units is undergoing IPv6 modification to support IPv6 client access.
However, the situation of IPv6 deployment of enterprise websites in different industries is different, and some websites are deployed in an IPv 4-only scheme. The existing detection technology determines whether the website supports IPv6 access according to experience or subjective judgment of workers, and calculates the IPv6 concentration of the website through manual comparison, which wastes time and labor.
Disclosure of Invention
The embodiment of the application provides a method and a device for detecting IPv6 concentration and a storage medium, which are used for improving the detection efficiency of the IPv6 concentration.
The specific technical scheme provided by the application is as follows:
in a first aspect, an embodiment of the present application provides a method for detecting an IPv6 concentration, including:
respectively detecting main domain name information corresponding to each target client website to obtain each level of sub domain name information corresponding to each main domain name information, and determining first total quantity of each main domain name information and each level of sub domain name information, wherein the protocol type supported by each main domain name information is IPv4 or IPv6, and the protocol type supported by each level of sub domain name information is IPv4 or IPv6;
respectively carrying out dial testing on each main domain name information to determine target main domain name information supporting an IPv6 protocol, and respectively carrying out dial testing on each level of sub domain name information to determine target sub domain name information supporting the IPv6 protocol;
and determining a second total number of the target main domain name information and the target sub domain name information, and determining the IPv6 concentration based on the first total number and the second total number.
Optionally, before performing dial testing on each piece of main domain name information to determine target main domain name information supporting the IPv6 protocol, the method further includes:
and performing deduplication operation on the same main domain name information based on the first similarity between the main domain name information.
Optionally, the first similarity between the main domain name information is determined by:
the following operations are performed for each primary domain name information:
determining at least one first feature word based on the main domain name information, and configuring a first weight value for each first feature word based on a preset rule; and
multiplying a first hash value corresponding to each first feature word by a first weight value to obtain a first weight vector; and
merging the first weight vectors corresponding to the first characteristic words, and obtaining a main fingerprint signature corresponding to the main domain name information based on the merged first weight vectors;
and determining the similarity between the main fingerprint signatures corresponding to any two main domain name information, and taking the similarity as the first similarity between any two main domain name information.
Optionally, before performing dial-testing on each level of sub domain name information to determine the target sub domain name information supporting the IPv6 protocol, the method further includes:
and carrying out duplication elimination operation on the same sub domain name information of each level based on the second similarity between the sub domain name information of each level.
Optionally, the second similarity between each level of sub domain name information is determined by:
performing the following operations for each sub-domain name information:
determining at least one second feature word based on each sub-domain name information, and configuring a second weight value for each second feature word based on a preset rule; and
multiplying a second hash value corresponding to each second feature word by a second weight value to obtain a second weight vector; and
merging the second weight vectors corresponding to the second characteristic words, and obtaining sub-fingerprint signatures corresponding to the sub-domain name information based on the merged second weight vectors;
and determining the similarity between the sub-fingerprint signatures corresponding to any two sub-domain name information belonging to the same level, and taking the similarity as a second similarity between any two sub-domain name information.
Optionally, the step of performing dial testing on each piece of main domain name information to determine target main domain name information supporting the IPv6 protocol includes:
and when receiving a first dialing test result returned by the IPv6 dialing test host based on the first ping dialing test request as a response, determining the main domain name information corresponding to the first dialing test result as target main domain name information supporting an IPv6 protocol.
Optionally, the step of determining the target sub-domain name information supporting the IPv6 protocol by dial-testing each level of sub-domain name information includes:
and when receiving a second dialing test result returned by the IPv6 dialing test host based on the second ping dialing test request as a response, determining each level of sub domain name information corresponding to the second dialing test result as target sub domain name information supporting the IPv6 protocol.
In a second aspect, an embodiment of the present application further provides an apparatus for detecting an IPv6 concentration, including:
the system comprises an acquisition unit, a processing unit and a display unit, wherein the acquisition unit is used for respectively detecting main domain name information corresponding to each target client website to obtain each level of sub domain name information corresponding to each main domain name information and determining first total quantity of each main domain name information and each level of sub domain name information, the protocol type supported by each main domain name information is IPv4 or IPv6, and the protocol type supported by each level of sub domain name information is IPv4 or IPv6;
the dial testing unit is used for respectively dial testing each main domain name information to determine target main domain name information supporting the IPv6 protocol, and dial testing each level of sub domain name information to determine target sub domain name information supporting the IPv6 protocol;
and the determining unit is used for determining the second total number of the target main domain name information and the target sub domain name information and determining the IPv6 concentration based on the first total number and the second total number.
Optionally, before performing dial testing on each piece of main domain name information to determine the target main domain name information supporting the IPv6 protocol, the method further includes:
and performing deduplication operation on the same main domain name information based on the first similarity between the main domain name information.
Optionally, the first similarity between the main domain name information is determined by:
the following operations are performed for each primary domain name information:
determining at least one first feature word based on the main domain name information, and configuring a first weight value for each first feature word based on a preset rule; and
multiplying a first hash value corresponding to each first feature word by a first weight value to obtain a first weight vector; and
merging the first weight vectors corresponding to the first feature words, and obtaining a main fingerprint signature corresponding to the main domain name information based on the merged first weight vectors;
and determining the similarity between the main fingerprint signatures corresponding to any two main domain name information, and taking the similarity as the first similarity between any two main domain name information.
Optionally, before performing dial testing on each level of sub-domain name information respectively to determine the target sub-domain name information supporting the IPv6 protocol, the method further includes:
and carrying out deduplication operation on the same sub domain name information of each level based on the second similarity between the sub domain name information of each level.
Optionally, the second similarity between each level of sub domain name information is determined by:
performing the following operations for each sub-domain name information:
determining at least one second feature word based on each sub-domain name information, and configuring a second weight value for each second feature word based on a preset rule; and
multiplying a second hash value corresponding to each second feature word by a second weight value to obtain a second weight vector; and
merging the second weight vectors corresponding to the second feature words, and obtaining sub-fingerprint signatures corresponding to the sub-domain name information based on the merged second weight vectors;
and determining the similarity between the sub-fingerprint signatures corresponding to any two sub-domain name information belonging to the same level, and taking the similarity as a second similarity between any two sub-domain name information.
Optionally, the dial testing unit is configured to perform dial testing on each piece of main domain name information to determine target main domain name information supporting an IPv6 protocol, and is configured to:
and when receiving a first dialing test result returned by the IPv6 dialing test host based on the first ping dialing test request as a response, determining the main domain name information corresponding to the first dialing test result as target main domain name information supporting an IPv6 protocol.
Optionally, the dial testing unit is configured to respectively dial test each level of sub domain name information to determine target sub domain name information supporting the IPv6 protocol, and is configured to:
and when receiving a second dialing test result returned by the IPv6 dialing test host based on the second ping dialing test request as a response, determining each level of sub domain name information corresponding to the second dialing test result as target sub domain name information supporting the IPv6 protocol.
In a third aspect, an intelligent terminal comprises:
a memory for storing executable instructions;
a processor for reading and executing executable instructions stored in the memory to implement a method as in any one of the first aspect.
In a fourth aspect, a computer-readable storage medium, wherein instructions, when executed by a processor, enable the processor to perform the method of any of the first aspect.
The beneficial effects of this application are as follows:
to sum up, in the embodiment of the present application, a method, an apparatus, and a storage medium for detecting an IPv6 concentration are provided, where the method includes: the method comprises the steps of respectively detecting main domain name information corresponding to each target client website to obtain each level of sub-domain name information corresponding to each main domain name information, determining each main domain name information and a first total number of each level of sub-domain name information, wherein the protocol type supported by each main domain name information is IPv4 or IPv6, the protocol type supported by each level of sub-domain name information is IPv4 or IPv6, respectively carrying out dial testing on each main domain name information to determine target main domain name information supporting an IPv6 protocol, respectively carrying out dial testing on each level of sub-domain name information to determine target sub-domain name information supporting the IPv6 protocol, determining a second total number of the target main domain name information and the target sub-domain name information, and determining the IPv6 concentration based on the first total number and the second total number, so that the IPv6 concentration of the website can be conveniently and efficiently determined.
Additional features and advantages of the application will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by the practice of the application. The objectives and other advantages of the application may be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the application and together with the description serve to explain the application and not to limit the application. In the drawings:
fig. 1 is a schematic diagram of a system architecture for detecting IPv6 concentration in an embodiment of the present application;
fig. 2 is a schematic flowchart of a method for detecting IPv6 concentration in this embodiment;
fig. 3 is a schematic flowchart illustrating a process of determining a first similarity between main domain name information in an embodiment of the present application;
FIG. 4 is a schematic flow chart illustrating the process of determining the second similarity between the sub-domain name information of each level in the embodiment of the present application;
FIG. 5 is a schematic diagram illustrating a logic architecture of an apparatus for detecting IPv6 concentration according to an embodiment of the present application;
fig. 6 is a schematic entity architecture diagram of an intelligent terminal in an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments, but not all embodiments, of the technical solutions of the present application. All other embodiments obtained by a person skilled in the art based on the embodiments described in the present application without any creative effort belong to the protection scope of the technical solution of the present application.
The terms "first," "second," and the like in the description and in the claims, and in the drawings described above, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in sequences other than those illustrated or described herein.
Preferred embodiments of the present invention will be described in detail below with reference to the accompanying drawings.
Referring to fig. 1, in the embodiment of the present application, a system includes at least one intelligent terminal, and in fig. 1, a processing object of the intelligent terminal is a target client website, where the number of the target client websites is usually multiple, and multiple levels of sub domain name information are further provided under main domain name information corresponding to each target client website, where the levels of the sub domain name information are not specifically limited, and the levels of the sub domain name information provided under each main domain name information may be the same or different. As will be described in detail below.
Referring to fig. 2, in the embodiment of the present application, a specific flow of detecting an IPv6 concentration is as follows:
step 201: the method comprises the steps of respectively detecting main domain name information corresponding to each target client website to obtain all levels of sub domain name information corresponding to each main domain name information, and determining the first total quantity of each main domain name information and all levels of sub domain name information, wherein the protocol type supported by each main domain name information is IPv4 or IPv6, and the protocol type supported by all levels of sub domain name information is IPv4 or IPv6.
Because the number of the target client websites is large, correspondingly, the main domain name information corresponding to the target client websites is also large, and each main domain name information is also provided with multi-level sub-domain name information. In the implementation process, after the main domain name information corresponding to the target client website is determined, the main domain name information is detected, namely, each sub domain name information including the main domain name information is automatically searched, and except the main domain name information, each detected sub domain name information is each level of sub domain name information corresponding to the main domain name information. The specific level corresponding to the sub-domain name information is determined by the length, the separation number and the like of the detected sub-domain name information.
It should be noted that the protocol type supported by each main domain name information is IPv4 or IPv6, there is no correlation between the protocol type of the sub domain name information and the main domain name information, and the protocol types of the main domain name information and the sub domain name information at each level may be the same or different, so that the protocol type supported by the sub domain name information at each level is also IPv4 or IPv6.
After the main domain name information and the corresponding sub domain name information of each level are obtained, the first total quantity of each main domain name information and each sub domain name information of each level is further determined, namely the main domain name information and each sub domain name information of each level are taken as individuals, and the sum of the quantity of each main domain name information and each sub domain name information of each level is calculated.
Step 202: and respectively carrying out dial testing on each level of sub domain name information to determine the target sub domain name information supporting the IPv6 protocol.
In the implementation process, in order to calculate the IPv6 concentration more accurately, that is, to avoid the influence of repeated main domain name information or sub domain name information on the IPv6 concentration, before calculating the IPv6 concentration, a deduplication operation needs to be performed on each main domain name information and each level of sub domain name information.
In a first aspect, before performing dial testing on each main domain name information to determine target main domain name information supporting an IPv6 protocol, the method further includes:
and performing deduplication operation on the same main domain name information based on the first similarity between the main domain name information.
In the implementation process, the similarity, namely called as a first similarity, is calculated for any two pieces of main domain name information, the same main domain name information is determined according to the first similarity, and one main domain name information is reserved for each same main domain name information, so that the aim of removing the repeated main domain name information is fulfilled.
Referring to fig. 3, a first similarity between the pieces of main domain name information is determined by:
the following operations are performed for each primary domain name information:
step 001: determining at least one first feature word based on the main domain name information, and configuring a first weight value for each first feature word based on a preset rule; and
in the implementation process, after the main domain name information is determined, the main domain name information is subjected to word segmentation, so that at least one first characteristic word corresponding to the main domain name information is obtained. Com ", the first characteristic word" jiance "," com "may be obtained by performing word segmentation on the main domain name information.
In order to effectively identify the importance of each feature word in the main domain name information, a weight value is preset for each or every feature word through a preset rule, and in the preset rule, the larger the weight value is, the higher the importance of the corresponding feature word is, so in the implementation process, after the at least one first feature word is obtained, a first weight value is configured for each first feature word through the preset rule, for example, the first weight value is configured for "jiance" as 2, and the first weight value is configured for "com" as 1.
Step 002: multiplying a first hash value corresponding to each first feature word by a first weight value to obtain a first weight vector; and
in an implementation process, after a first feature word is determined, a hash value corresponding to the first feature word, namely a first hash value, is calculated according to a hash algorithm, and the first hash value is multiplied by the first weight value to obtain an n-bit binary string, which is called a first weight vector.
In an embodiment, 1 in the n-bit binary string is multiplied by the first weight value to obtain a first weight vector corresponding to the bit "1", a first weight vector corresponding to "0" in the n-bit binary string is valued as the inverse number of the first weight vector corresponding to the "1", and a set of the first weight vectors of all bits is the first weight vector corresponding to the first feature word.
Step 003: merging the first weight vectors corresponding to the first characteristic words, and obtaining a main fingerprint signature corresponding to the main domain name information based on the merged first weight vectors;
usually, the number of the first feature words corresponding to one main domain name information is multiple, and therefore, in the implementation process, the first weight vectors corresponding to the multiple first feature words belonging to one main domain name information are merged, that is, the multiple n-bit binary strings are merged to obtain a merged first weight vector, and the merged first weight vector is used as the main fingerprint signature corresponding to the main domain name information.
In one embodiment, the merging includes accumulating the first weight vector corresponding to each bit with the previous N-bit first weight vectors to obtain a merged new weight vector, and using the merged new weight vector as a main fingerprint signature corresponding to the main domain name information.
And, for the convenience of subsequent calculation, the merged first weight vector may be further subjected to a dimensionality reduction operation, for example, bits greater than 0 are set to 1, and bits less than 0 are set to 0.
Through the steps, the main fingerprint signature corresponding to each main domain name information can be determined, and in the subsequent calculation process, the main fingerprint signature is used for identifying the corresponding main domain name information.
Step 004: and determining the similarity between the main fingerprint signatures corresponding to any two main domain name information, and taking the similarity as the first similarity between any two main domain name information.
In order to calculate the first similarity between any two main domain name information, in the implementation process, the similarity between the main fingerprint signatures corresponding to any two main domain name information is determined, specifically, the hamming distance between two main fingerprint signatures can be calculated bit by bit, each main fingerprint signature is taken as an object, the total number of bits of the hamming distance with the similarity smaller than or equal to a preset threshold value is counted, and the total number of bits can be taken as the first similarity.
After the main domain name information is deduplicated, further deduplication operation needs to be performed on each level of sub domain name information. That is, in the second aspect, before the step of performing dial testing on each level of sub-domain name information to determine the target sub-domain name information supporting the IPv6 protocol, the method further includes:
and carrying out deduplication operation on the same sub domain name information of each level based on the second similarity between the sub domain name information of each level.
In the implementation process, the similarity of any two sub-domain name information is calculated, namely called as a second similarity, the same sub-domain name information is determined according to the second similarity, and one sub-domain name information is reserved for each same sub-domain name information, so that the aim of removing repeated sub-domain name information is fulfilled. It should be noted that, in consideration of factors such as different lengths of the sub-domain name information of different levels, the two sub-domain name information used for calculating the second similarity are usually of the same level, which can simplify the calculation process.
Referring to fig. 4, the second similarity between each level of sub-domain name information is determined by:
the following operations are performed for each sub domain name information:
step 101: determining at least one second feature word based on each piece of sub-domain name information, and configuring a second weight value for each second feature word based on a preset rule; and
similarly, after each piece of sub domain name information is determined, the sub domain name information is subjected to word segmentation, and therefore at least one second feature word corresponding to the sub domain name information is obtained. For example, the sub domain name information is "kw.
Similarly, in order to effectively identify the importance of each feature word in the sub-domain name information, a weight value is preset for each or every feature word according to a preset rule, and in the preset rule, the larger the weight value is, the higher the importance of the corresponding feature word is, therefore, in the implementation process, after the at least one second feature word is obtained, a second weight value is configured for each second feature word according to the preset rule, for example, the second weight value is configured to be 4 for "kw", the second weight value is configured to be 3 for "mail", the second weight value is configured to be 2 for "jiance", and the second weight value is configured to be 1 for "com".
Step 102: multiplying a second hash value corresponding to each second feature word by a second weight value to obtain a second weight vector; and
in an implementation process, after a second feature word is determined, a hash value corresponding to the second feature word, namely, a second hash value, is calculated according to a hash algorithm, and the second hash value is multiplied by the second weight value to obtain an n-bit binary string, which is called a second weight vector.
In an embodiment, 1 in the n-bit binary string is multiplied by the second weight value to obtain a second weight vector corresponding to the bit "1", a value of the second weight vector corresponding to "0" in the n-bit binary string is an inverse number of the second weight vector corresponding to the "1", and a set of the second weight vectors of all bits is the second weight vector corresponding to the second feature word.
Step 103: and merging the second weight vectors corresponding to the second characteristic words, and obtaining the sub-fingerprint signature corresponding to the sub-domain name information based on the merged second weight vectors.
Similarly, the number of the second feature words corresponding to one sub-domain name information is multiple, and therefore, in the implementation process, the second weight vectors corresponding to the multiple second feature words belonging to one sub-domain name information are merged, that is, the multiple n-bit binary strings are merged to obtain a merged second weight vector, and the merged second weight vector is used as the sub-fingerprint signature corresponding to the sub-domain name information.
In one embodiment, the merging method includes accumulating the second weight vector corresponding to each bit with the previous N second weight vectors to obtain a merged new weight vector, and using the merged new weight vector as a sub-fingerprint signature corresponding to the sub-domain name information.
And, for the convenience of subsequent calculation, the merged second weight vector may be further subjected to a dimensionality reduction operation, for example, bits greater than 0 are set to 1, and bits less than 0 are set to 0.
Through the steps, the sub-fingerprint signature corresponding to each sub-domain name information can be determined, and in the subsequent calculation process, the corresponding sub-domain name information is identified by the sub-fingerprint signature.
Step 104: and determining the similarity between the sub-fingerprint signatures corresponding to any two sub-domain name information belonging to the same level, and taking the similarity as a second similarity between any two sub-domain name information.
In order to calculate the second similarity between any two pieces of sub-domain name information, in the implementation process, the similarity between sub-fingerprint signatures corresponding to any two pieces of sub-domain name information is determined, specifically, the hamming distance between two sub-fingerprint signatures can be calculated bit by bit, each bit of sub-fingerprint signature is taken as an object, the total number of bits of the hamming distance with the similarity smaller than or equal to a preset threshold is counted, and the total number of bits can be taken as the second similarity.
In the implementation process, after the duplication removal operation is performed on each main domain name information, the dial testing is performed on each main domain name information respectively to determine the target main domain name information supporting the IPv6 protocol, and the method comprises the following steps:
and when receiving a first dialing test result returned by the IPv6 dialing test host based on the first ping dialing test request as a response, determining the main domain name information corresponding to the first dialing test result as target main domain name information supporting the IPv6 protocol.
In the implementation process, whether the protocol type supported by each main domain name information is IPv6 is detected through the IPv6 dial testing host.
Specifically, if the IPv6 dial testing host makes a first ping dial testing request for the input main domain name information, the IPv6 dial testing host can respond to the input main domain name information and return a first dial testing result that has been responded to the IPv6 dial testing host, and then the main domain name information corresponding to the first dial testing result is determined as the target main domain name information that supports the IPv6 protocol.
If the IPv6 dial testing host can respond to the input main domain name information after the IPv6 dial testing host makes a first ping dial testing request for the input main domain name information, and returns an unresponsive first dial testing result to the IPv6 dial testing host, then the main domain name information corresponding to the first dial testing result is determined to be the target main domain name information that does not support the IPv6 protocol.
In the implementation process, after the duplication elimination operation is performed on each level of sub-domain name information, dial testing is performed on each level of sub-domain name information respectively to determine the target sub-domain name information supporting the IPv6 protocol, which comprises the following steps:
and when receiving a second dial test result returned by the IPv6 dial test host based on the second ping dial test request as a response, determining each level of sub-domain name information corresponding to the second dial test result as target sub-domain name information supporting the IPv6 protocol.
In the implementation process, the IPv6 dial testing host is used for detecting whether the protocol type supported by each sub-domain name information is IPv6.
Specifically, if the IPv6 dial testing host can respond to the input sub-domain name information after the IPv6 dial testing host makes a second ping dial testing request for the input sub-domain name information, and returns a second dial testing result that has responded to the IPv6 dial testing host, the sub-domain name information corresponding to the second dial testing result is determined to be the target sub-domain name information supporting the IPv6 protocol.
If the IPv6 dial testing host can respond to the input sub-domain name information after the IPv6 dial testing host makes a second ping dial testing request for the input sub-domain name information, and returns an unresponsive second dial testing result to the IPv6 dial testing host, then the sub-domain name information corresponding to the second dial testing result is determined to be the target sub-domain name information that does not support the IPv6 protocol.
Step 203: and determining a second total number of the target main domain name information and the target sub domain name information, and determining the IPv6 concentration based on the first total number and the second total number.
In the implementation process, after the number sum of the target main domain name information and the target sub domain name information supporting the IPv6 protocol, namely the second total number, is determined, the second total number is divided by the first total number, and the obtained ratio is determined as the IPv6 concentration.
Based on the same inventive concept, referring to fig. 5, an IPv6 concentration detection apparatus provided in an embodiment of the present application includes:
an obtaining unit 501, configured to detect main domain name information corresponding to each target client website, respectively, obtain sub domain name information of each level corresponding to each main domain name information, and determine first total amount of each main domain name information and each sub domain name information of each level, where a protocol type supported by each main domain name information is IPv4 or IPv6, and a protocol type supported by each sub domain name information of each level is IPv4 or IPv6;
a dial testing unit 502, configured to respectively dial test each main domain name information to determine a target main domain name information supporting the IPv6 protocol, and dial test each level of sub domain name information to determine a target sub domain name information supporting the IPv6 protocol;
the determining unit 503 is configured to determine a second total amount of the target main domain name information and the target sub-domain name information, and determine an IPv6 concentration based on the first total amount and the second total amount.
Optionally, before performing dial testing on each piece of main domain name information to determine the target main domain name information supporting the IPv6 protocol, the method further includes:
and performing deduplication operation on the same main domain name information based on the first similarity between the main domain name information.
Optionally, the first similarity between the main domain name information is determined by:
the following operations are performed for each primary domain name information:
determining at least one first feature word based on the main domain name information, and configuring a first weight value for each first feature word based on a preset rule; and
multiplying a first hash value corresponding to each first feature word by a first weight value to obtain a first weight vector; and
merging the first weight vectors corresponding to the first feature words, and obtaining a main fingerprint signature corresponding to the main domain name information based on the merged first weight vectors;
and determining the similarity between the main fingerprint signatures corresponding to any two main domain name information, and taking the similarity as the first similarity between any two main domain name information.
Optionally, before performing dial testing on each level of sub-domain name information respectively to determine the target sub-domain name information supporting the IPv6 protocol, the method further includes:
and carrying out deduplication operation on the same sub domain name information of each level based on the second similarity between the sub domain name information of each level.
Optionally, the second similarity between each level of sub domain name information is determined by:
performing the following operations for each sub-domain name information:
determining at least one second feature word based on each piece of sub-domain name information, and configuring a second weight value for each second feature word based on a preset rule; and
multiplying a second hash value corresponding to each second feature word by a second weight value to obtain a second weight vector; and
merging the second weight vectors corresponding to the second feature words, and obtaining sub-fingerprint signatures corresponding to the sub-domain name information based on the merged second weight vectors;
and determining the similarity between the sub-fingerprint signatures corresponding to any two sub-domain name information belonging to the same level, and taking the similarity as a second similarity between any two sub-domain name information.
Optionally, the dial testing unit 502 is configured to respectively perform dial testing on each piece of main domain name information to determine target main domain name information supporting the IPv6 protocol, and:
and when receiving a first dialing test result returned by the IPv6 dialing test host based on the first ping dialing test request as a response, determining the main domain name information corresponding to the first dialing test result as target main domain name information supporting the IPv6 protocol.
Optionally, each level of sub domain name information is respectively dial-tested to determine the target sub domain name information supporting the IPv6 protocol, and the dial-testing unit 502 is configured to:
and when receiving a second dial test result returned by the IPv6 dial test host based on the second ping dial test request as a response, determining each level of sub-domain name information corresponding to the second dial test result as target sub-domain name information supporting the IPv6 protocol.
Based on the same inventive concept, referring to fig. 6, an embodiment of the present application provides an intelligent terminal, including: a memory 601 for storing executable instructions; and the processor 602 is configured to read and execute the executable instructions stored in the memory, and execute any one of the above-described IPv6 concentration detection methods.
Based on the same inventive concept, embodiments of the present application provide a computer-readable storage medium, where instructions, when executed by a processor, enable the processor to perform any one of the above-described IPv6 concentration detection methods.
To sum up, in the embodiment of the present application, a method, an apparatus, and a storage medium for detecting an IPv6 concentration are provided, where the method includes: the method comprises the steps of respectively detecting main domain name information corresponding to each target client website to obtain each level of sub-domain name information corresponding to each main domain name information, determining each main domain name information and a first total number of each level of sub-domain name information, wherein the protocol type supported by each main domain name information is IPv4 or IPv6, the protocol type supported by each level of sub-domain name information is IPv4 or IPv6, respectively carrying out dial testing on each main domain name information to determine target main domain name information supporting an IPv6 protocol, respectively carrying out dial testing on each level of sub-domain name information to determine target sub-domain name information supporting the IPv6 protocol, determining a second total number of the target main domain name information and the target sub-domain name information, and determining the IPv6 concentration based on the first total number and the second total number, so that the IPv6 concentration of the website can be conveniently and efficiently determined.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product system. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product system embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program product systems according to the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present application without departing from the spirit and scope of the application. Thus, if such modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is intended to include such modifications and variations as well.

Claims (10)

1. A method for detecting IPv6 concentration is characterized by comprising the following steps:
respectively detecting main domain name information corresponding to each target client website to obtain each level of sub domain name information corresponding to each main domain name information, and determining first total quantity of each main domain name information and each level of sub domain name information, wherein the protocol type supported by each main domain name information is IPv4 or IPv6, and the protocol type supported by each level of sub domain name information is IPv4 or IPv6;
respectively carrying out dial testing on each main domain name information to determine target main domain name information supporting an IPv6 protocol, and respectively carrying out dial testing on each level of sub-domain name information to determine target sub-domain name information supporting the IPv6 protocol;
and determining a second total number of the target main domain name information and the target sub domain name information, and determining the IPv6 concentration based on the first total number and the second total number.
2. The method as claimed in claim 1, wherein before said determining the target main domain name information supporting the IPv6 protocol by separately dialing each of said main domain name information, the method further comprises:
and performing deduplication operation on the same main domain name information based on the first similarity between the main domain name information.
3. The method of claim 2, wherein the first similarity between the primary domain name information is determined by:
performing the following operations for each of the primary domain name information:
determining at least one first feature word based on the main domain name information, and configuring a first weight value for each first feature word based on a preset rule; and
multiplying a first hash value corresponding to each first feature word by the first weight value to obtain a first weight vector; and
merging the first weight vectors corresponding to the first feature words, and obtaining a main fingerprint signature corresponding to the main domain name information based on the merged first weight vectors;
and determining the similarity between the main fingerprint signatures corresponding to any two main domain name information, and taking the similarity as the first similarity between any two main domain name information.
4. The method of claim 1, wherein before the step of performing dial testing on each level of the sub-domain name information to determine the target sub-domain name information supporting the IPv6 protocol, the method further comprises:
and carrying out duplication elimination operation on the same sub domain name information of each level based on the second similarity between the sub domain name information of each level.
5. The method of claim 4, wherein the second similarity between each level of the sub-domain name information is determined by:
performing the following for each of the sub domain name information:
determining at least one second feature word based on each piece of sub-domain name information, and configuring a second weight value for each second feature word based on a preset rule; and
multiplying a second hash value corresponding to each second feature word by the second weight value to obtain a second weight vector; and
merging the second weight vectors corresponding to the second feature words, and obtaining sub-fingerprint signatures corresponding to the sub-domain name information based on the merged second weight vectors;
and determining the similarity between the sub-fingerprint signatures corresponding to any two sub-domain name information belonging to the same level, and taking the similarity as a second similarity between any two sub-domain name information.
6. The method according to any one of claims 1 to 5, wherein the step of separately performing dial testing on each of the main domain name information to determine the target main domain name information supporting the IPv6 protocol comprises:
and when a first dial test result returned by the IPv6 dial test host based on the first ping dial test request is received as a response, determining the main domain name information corresponding to the first dial test result as target main domain name information supporting an IPv6 protocol.
7. The method according to any one of claims 1 to 5, wherein the step of performing dial testing on each level of the sub-domain name information respectively to determine the target sub-domain name information supporting the IPv6 protocol includes:
and when receiving a second dial test result returned by the IPv6 dial test host based on the second ping dial test request as a response, determining each level of sub domain name information corresponding to the second dial test result as target sub domain name information supporting an IPv6 protocol.
8. An IPv6 concentration detection apparatus, comprising:
the system comprises an acquisition unit, a processing unit and a display unit, wherein the acquisition unit is used for respectively detecting main domain name information corresponding to each target client website, obtaining each level of sub domain name information corresponding to each main domain name information, and determining first total quantity of each main domain name information and each level of sub domain name information, wherein the protocol type supported by each main domain name information is IPv4 or IPv6, and the protocol type supported by each level of sub domain name information is IPv4 or IPv6;
a dial testing unit, configured to respectively dial test each of the main domain name information to determine target main domain name information supporting an IPv6 protocol, and dial test each of the sub-domain name information to determine target sub-domain name information supporting the IPv6 protocol;
and the determining unit is used for determining a second total number of the target main domain name information and the target sub domain name information and determining the IPv6 concentration based on the first total number and the second total number.
9. An intelligent terminal, comprising:
a memory for storing executable instructions;
a processor for reading and executing executable instructions stored in the memory to implement the method of any one of claims 1-7.
10. A computer-readable storage medium, wherein instructions in the storage medium, when executed by a processor, enable the processor to perform the method of any of claims 1-7.
CN202210956176.9A 2022-08-10 2022-08-10 IPv6 concentration detection method, device and storage medium Active CN115442280B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210956176.9A CN115442280B (en) 2022-08-10 2022-08-10 IPv6 concentration detection method, device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210956176.9A CN115442280B (en) 2022-08-10 2022-08-10 IPv6 concentration detection method, device and storage medium

Publications (2)

Publication Number Publication Date
CN115442280A true CN115442280A (en) 2022-12-06
CN115442280B CN115442280B (en) 2024-08-02

Family

ID=84241709

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210956176.9A Active CN115442280B (en) 2022-08-10 2022-08-10 IPv6 concentration detection method, device and storage medium

Country Status (1)

Country Link
CN (1) CN115442280B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2011020102A2 (en) * 2009-08-14 2011-02-17 Akamai Technologies, Inc. Method and apparatus for correlating nameserver ipv6 and ipv4 addresses
CN111130845A (en) * 2019-11-25 2020-05-08 北京邮电大学 Method and device for testing IPv6 support degree of website page based on visual information
WO2020140433A1 (en) * 2019-01-02 2020-07-09 北京宏图佳都通信设备有限公司 Ipv4/ipv6 address translation system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2011020102A2 (en) * 2009-08-14 2011-02-17 Akamai Technologies, Inc. Method and apparatus for correlating nameserver ipv6 and ipv4 addresses
WO2020140433A1 (en) * 2019-01-02 2020-07-09 北京宏图佳都通信设备有限公司 Ipv4/ipv6 address translation system
CN111130845A (en) * 2019-11-25 2020-05-08 北京邮电大学 Method and device for testing IPv6 support degree of website page based on visual information

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
工业和信息化部: "IPv6 改造相关指标和测试方法说明", pages 5 - 7, Retrieved from the Internet <URL:https://www.miit.gov.cn/jgsj/txs/wjfb/art/2020/art_0ef13fe4596d4c1890af30dcf23ba625.html> *
运维技术栈: "[工具推荐]IPv6 在线 Ping 测试", pages 1 - 2, Retrieved from the Internet <URL:https://blog.csdn.net/qq_34965807/article/details/120639156> *

Also Published As

Publication number Publication date
CN115442280B (en) 2024-08-02

Similar Documents

Publication Publication Date Title
US10127309B2 (en) Audio information retrieval method and device
CN108959370B (en) Community discovery method and device based on entity similarity in knowledge graph
CN112579623B (en) Method, device, storage medium and equipment for storing data
CN111177719B (en) Address category determination method, device, computer-readable storage medium and apparatus
US20170309298A1 (en) Digital fingerprint indexing
CN106598997B (en) Method and device for calculating text theme attribution degree
CN112256635A (en) Method and device for identifying file type
CN110855635A (en) URL (Uniform resource locator) identification method and device and data processing equipment
CN110019762B (en) Problem positioning method, storage medium and server
CN115442280B (en) IPv6 concentration detection method, device and storage medium
CN117492670A (en) Log printing sequence determining method and device and electronic equipment
CN114254069A (en) Domain name similarity detection method and device and storage medium
CN117520645A (en) User determination method and device based on financial products and electronic equipment
CN114995880B (en) Binary code similarity comparison method based on SimHash
CN116361185A (en) Software testing method and device
CN111198818B (en) Information acquisition method and device
CN110858852B (en) Method and device for acquiring registered domain name
CN114816518A (en) Simhash-based open source component screening and identifying method and system in source code
US20210357363A1 (en) File comparison method
CN112822220B (en) Multi-sample combination attack-oriented tracing method and device
CN111383032B (en) Method and device for detecting authenticity of house source information
CN113139379B (en) Information identification method and system
CN110008124B (en) Information processing method and device
CN115048543B (en) Image similarity judgment method, image searching method and device
CN113742208A (en) Software detection method, device, equipment and computer readable storage medium

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