CN114448849B - Method for detecting supporting mode of IPv6 network of website and electronic equipment - Google Patents
Method for detecting supporting mode of IPv6 network of website and electronic equipment Download PDFInfo
- Publication number
- CN114448849B CN114448849B CN202111552134.0A CN202111552134A CN114448849B CN 114448849 B CN114448849 B CN 114448849B CN 202111552134 A CN202111552134 A CN 202111552134A CN 114448849 B CN114448849 B CN 114448849B
- Authority
- CN
- China
- Prior art keywords
- website
- tested
- index
- score
- ipv6
- 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.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 53
- 238000001514 detection method Methods 0.000 claims abstract description 19
- 230000004044 response Effects 0.000 claims description 54
- 230000009977 dual effect Effects 0.000 claims description 11
- 238000013519 translation Methods 0.000 claims description 11
- 238000012545 processing Methods 0.000 claims description 10
- 238000004364 calculation method Methods 0.000 claims description 7
- 230000000977 initiatory effect Effects 0.000 claims description 7
- 230000003068 static effect Effects 0.000 claims description 7
- 238000004590 computer program Methods 0.000 claims description 3
- 238000005516 engineering process Methods 0.000 description 27
- 238000004891 communication Methods 0.000 description 13
- 238000010586 diagram Methods 0.000 description 4
- 238000012986 modification Methods 0.000 description 3
- 230000004048 modification Effects 0.000 description 3
- 230000008569 process Effects 0.000 description 3
- 230000009286 beneficial effect Effects 0.000 description 2
- 238000006243 chemical reaction Methods 0.000 description 2
- 230000005540 biological transmission Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 235000014510 cooky Nutrition 0.000 description 1
- 230000001419 dependent effect Effects 0.000 description 1
- 238000011156 evaluation Methods 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/50—Testing arrangements
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F17/00—Digital computing or data processing equipment or methods, specially adapted for specific functions
- G06F17/10—Complex mathematical operations
- G06F17/18—Complex mathematical operations for evaluating statistical data, e.g. average values, frequency distributions, probability functions, regression analysis
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F18/00—Pattern recognition
- G06F18/20—Analysing
- G06F18/24—Classification techniques
- G06F18/243—Classification techniques relating to the number of classes
- G06F18/24317—Piecewise classification, i.e. whereby each classification requires several discriminant rules
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L61/00—Network arrangements, protocols or services for addressing or naming
- H04L61/09—Mapping addresses
- H04L61/25—Mapping addresses of the same type
- H04L61/2503—Translation of Internet protocol [IP] addresses
- H04L61/251—Translation of Internet protocol [IP] addresses between different IP versions
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/02—Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
Abstract
The application provides a method for detecting an IPv6 network support mode of a website, which comprises the steps of acquiring network information of the website to be detected through a pre-constructed data acquisition model, and outputting the IPv6 network support mode of the website to be detected through the pre-constructed detection model based on the network information. The detection method provided by the application can effectively identify the IPv6 network support mode of the website.
Description
Technical Field
The application relates to the technical field of Internet, in particular to a website IPv6 network support mode detection method and electronic equipment.
Background
IPv6 (internet communication protocol version 6) is a protocol for replacing interconnection between next generation networks of IPv4 (internet communication protocol version 4), and can effectively solve the problem of insufficient number of network address resources. With the rapid promotion of the deployment of the IPv6 network, more and more websites are updated from IPv4 to IPv6, and the supporting modes of the IPv6 network adopted by different websites are different. The network connectivity, content support degree, security and other performances of the website are affected to a certain extent, so that detecting and identifying the IPv6 network support mode of the website is helpful for knowing problems existing in the deployment and upgrading process of IPv6, and therefore the deployment work of the IPv6 network is better developed. However, no technology is currently available to enable efficient detection of IPv6 network support modes.
Disclosure of Invention
In view of the above, the present application is directed to a method for detecting a supporting mode of an IPv6 network of a website and an electronic device.
Based on the above object, the present application provides a method for detecting a supporting mode of an IPv6 network of a website, including:
acquiring network information of a website to be tested through a pre-constructed data acquisition model;
and outputting the IPv6 network support mode of the website to be tested through a pre-constructed detection model based on the network information.
Further, the obtaining the network information of the website to be tested through the pre-built data obtaining model, outputting the IPv6 network support mode of the website to be tested through the pre-built detection model based on the network information, includes:
the IPv6 address of the website to be tested is obtained, and the port opening condition of the IPv6 address is scanned to obtain the port opening information of the IPv6 address;
acquiring IPv6 address operator information based on the IPv6 address;
initiating an HTTP request to the website to be tested to obtain IPv6-HTTP response data returned by the website to be tested;
acquiring a domain name of the website to be tested, and acquiring domain name record information based on the domain name;
obtaining a score of a preset first index based on the IPv6-http response data and a first preset condition;
obtaining a score of a preset second index based on the IPv6 address operator information, the domain name record information and a second preset condition;
obtaining a score of a preset third index based on the IPv6 address port opening information and a third preset condition;
respectively carrying out weight calculation on the score of the first index, the score of the second index and the score of the third index of the website to be tested by utilizing an entropy method so as to obtain the agent score of each website to be tested;
and in response to determining that the proxy score is greater than or equal to a preset target score, the IPv6 network support mode is a proxy technical support mode.
Further, the calculating the weights of the scores of the first index, the second index and the third index of the website to be measured by using an entropy method to obtain the proxy score of each website to be measured includes:
and respectively carrying out standardization processing on the score of the first index, the score of the second index and the score of the third index of the website to be tested:
wherein i epsilon (1, 2, …, n), n is the number of the websites to be tested, j epsilon (1, …, m),m is the sum of the number of the first index, the second index and the third index; x is x ij A score of the j index of the ith website to be tested, x' ij A score of the j index of the ith website to be tested after standardized processing;
calculating the score proportion of the j index:
wherein p is ij The score proportion of the j index of the ith website to be tested is the score proportion of the j index of the ith website to be tested;
calculating the entropy value of the j index:
wherein E is j Entropy value of the j index;
calculating the information entropy redundancy of the j index:
d j =1-E j ;
wherein d j Information entropy redundancy of the j index;
calculating the weight of the j index:
wherein omega j A weight for the j index;
calculating the proxy score of the website to be tested:
wherein S is i And (5) the proxy score of the ith website to be tested.
Further, the method further comprises the following steps:
and responding to the fact that the constitution information of the IPv6 address accords with the RFC6052 standard, wherein the IPv6 network support mode of the website to be tested is a translation technical support mode.
Further, the method further comprises the following steps:
and responding to the fact that the IPv6-http response data contains known CDN characters, wherein the IPv6 network support mode is a CDN technical support mode.
Further, the obtaining the network information of the website to be tested through the pre-built data obtaining model, outputting the IPv6 network support mode of the website to be tested through the pre-built detection model based on the network information, includes:
acquiring nodes of a plurality of areas of the website to be tested, and respectively initiating a ping command request from each node of the plurality of areas to the website to be tested to acquire IP address information responded by the website to be tested;
responding to the fact that the IP address information returned by the nodes in the multiple areas is consistent, wherein the IPv6 network support mode is a CDN technical support mode;
or, acquiring the corresponding number of IP addresses and CNAME field information based on the domain name of the website to be tested; and responding to the determination that the CNAME field contains known CDN characters and the number of the IP addresses is greater than or equal to 2, wherein the IPv6 network support mode is a CDN technical support mode.
Further, the obtaining the network information of the website to be tested through the pre-built data obtaining model, outputting the IPv6 network support mode of the website to be tested through the pre-built detection model based on the network information, includes:
simultaneously acquiring the network information of the website to be tested under an IPv4 network and an IPv6 network;
and responding to the determination that the network information under the IPv4 network and the IPv6 network is consistent, wherein the IPv6 network support mode of the website to be tested is a dual stack technical support mode.
Further, the network information comprises static resource file encryption information, http response data and/or port service response data.
Further, the port service response data under the IPv4 network and the IPv6 network is obtained by:
and simultaneously scanning all ports on the IP addresses of the websites to be tested under the IPv4 network and the IPv6 network, selecting ports which are opened under the IPv4 network and the IPv6 network from all ports, and sending port service requests to the ports so as to obtain the port service response data returned by the websites to be tested.
An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements a method for detecting a website IPv6 network support mode when executing the program.
From the above, the method for detecting the website IPv6 network support mode and the electronic device provided by the application can effectively identify the website IPv6 network support mode.
Drawings
In order to more clearly illustrate the technical solutions of the present application or related art, the drawings that are required to be used in the description of the embodiments or related art will be briefly described below, and it is apparent that the drawings in the following description are only embodiments of the present application, and other drawings may be obtained according to the drawings without inventive effort to those of ordinary skill in the art.
FIG. 1 is a flowchart of a method for detecting a supporting mode of an IPv6 network of a website according to an embodiment of the present application;
FIG. 2 is a schematic diagram of a device for detecting a supporting mode of an IPv6 network of a website according to an embodiment of the present application;
fig. 3 is a schematic diagram of an electronic device according to an embodiment of the application.
Detailed Description
The present application will be further described in detail below with reference to specific embodiments and with reference to the accompanying drawings, in order to make the objects, technical solutions and advantages of the present application more apparent.
It should be noted that unless otherwise defined, technical or scientific terms used in the embodiments of the present application should be given the ordinary meaning as understood by one of ordinary skill in the art to which the present application belongs. The terms "first," "second," and the like, as used in embodiments of the present application, do not denote any order, quantity, or importance, but rather are used to distinguish one element from another. The word "comprising" or "comprises", and the like, means that elements or items preceding the word are included in the element or item listed after the word and equivalents thereof, but does not exclude other elements or items. The terms "connected" or "connected," and the like, are not limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect. "upper", "lower", "left", "right", etc. are used merely to indicate relative positional relationships, which may also be changed when the absolute position of the object to be described is changed.
The IPv6 network support technologies commonly used in the current website include proxy technology, CDN (content delivery network) technology, translation technology, and dual stack technology. The proxy technology is to receive a connection request on the internet with a proxy server, then forward the request to a server on the internal network, and return a result obtained from the server on the internal network to a client requesting connection on the internet. The CDN technology adopts a plurality of cache servers, the cache servers are distributed in areas or networks with relatively concentrated user accesses, when the users access the networks, the global load technology is utilized to direct the user accesses to the cache server closest to the user accesses, and the cache server responds to the user requests. The translation technology is to perform access conversion from an IPv4 network to an IPv6 network or from an IPv6 network to an IPv4 network through an address conversion protocol. The dual stack technology is that two sets of protocol stacks of IPv4 and IPv6 are operated on the same host computer simultaneously, so that the dual stack technology can be communicated with an IPv4 network and an IPv6 network.
With the rapid advancement of IPv6 deployment, many websites have been gradually upgraded from IPv4 networks to IPv6 networks, and the support technologies adopted are different. But different supporting modes have certain influence on the performances of network connectivity, content supporting degree, security of the website and the like of the website. Therefore, the IPv6 supporting technology adopted by the website which finishes the IPv6 network upgrading is identified, which is helpful for analyzing the problems existing in the IPv6 network in the process of deploying and upgrading and better deploying the IPv6 network upgrading work. However, no mature technology is available for effectively detecting and identifying the IPv6 network support mode of the website.
Based on the above situation, the present application provides a method for detecting an IPv6 network support mode of a website, which can effectively detect an IPv6 network support mode of the website, as shown in fig. 1, and includes:
s101: acquiring network information of a website to be tested through a pre-constructed data acquisition model;
s102: and outputting the IPv6 network support mode of the website to be tested through a pre-constructed detection model based on the network information.
By analyzing and comparing the network information of the to-be-tested website by utilizing the pre-constructed detection model, the IPv6 network support mode can be effectively identified.
In some embodiments, S101 comprises:
the IPv6 address of the website to be tested is obtained, and the port opening condition of the IPv6 address is scanned to obtain the port opening information of the IPv6 address;
acquiring IPv6 address operator information based on the IPv6 address;
initiating an HTTP request to the website to be tested to obtain IPv6-HTTP response data returned by the website to be tested;
acquiring a domain name of the website to be tested, and acquiring domain name record information based on the domain name;
s102 includes:
obtaining a score of a preset first index based on the IPv6-http response data and a first preset condition;
obtaining a score of a preset second index based on the IPv6 address operator information, the domain name record information and a second preset condition;
obtaining a score of a preset third index based on the IPv6 address port opening information and a third preset condition;
respectively carrying out weight calculation on the score of the first index, the score of the second index and the score of the third index of the website to be tested by utilizing an entropy method so as to obtain the agent score of each website to be tested;
and in response to determining that the proxy score is greater than or equal to a preset target score, the IPv6 network support mode is a proxy technical support mode.
There are many proxy IP providers currently providing numerous proxy IPs as public resources for use by internet users. If the IPv6 address of the website to be tested is in the known proxy IP addresses, the IPv6 network support mode of the website to be tested can be determined to be a proxy technical support mode. The result detectable in this way is not numerous, and most proxy IP addresses are not disclosed and cannot be obtained from public resources. Therefore, the method utilizes IPv6-http response data, IPv6 address operator information, domain name record information and IPv6 address port opening information to judge the multi-dimensional information of the IPv6 network support mode, and synthesizes the multi-dimensional information judgment condition to obtain a final judgment result, thereby effectively improving the recognition rate and accuracy rate of the agent technical support mode.
In some embodiments, the IPv6-http response data includes client IP information, traffic trend information, and http expansion header information;
the first preset condition includes:
a first condition that the client IP information is inconsistent with the IPv6 address;
the second condition, the said flow trend information includes the intermediate node information;
the third condition is that the http expansion header information is inconsistent with the IPv6 address;
in response to determining that the first condition, the second condition, and the third condition are satisfied simultaneously, the first indicator obtains a higher score;
in response to determining that any two or one of the first condition, the second condition, and the third condition is satisfied, the first indicator obtains a moderate score;
in response to determining that any one of the first condition, the second condition, and the third condition is not satisfied, the first indicator obtains a lower score.
The client IP information is from REMOTE_ADDR field in IPv6-HTTP response data, the traffic trend information is from HTTP_VIA field in IPv6-HTTP response data, and the HTTP expansion header information is from HTTP_X_FORWARDED_FOR field in IPv6-HTTP response data. When IPv6-http response data of the website to be tested simultaneously meets the first condition, the second condition and the third condition, the probability that the IPv6 network support mode is the proxy technical support mode is higher, and secondly, when any one or two of the first condition, the second condition and the third condition are met, the probability that the IPv6-http response data is not the proxy technical support mode is higher when all the three conditions are not met, so that the first index obtains a score of the lowest interval.
In some embodiments, the IPv6 address operator information and the domain name proposal information each include registrant information, registrant country information, and registration address information;
the second preset condition includes:
and fourth condition, the IPv6 address operator information is inconsistent with the registrant information of the domain name record information, the registration country information and the registration address information.
A fifth condition that the IPv6 address operator information is partially inconsistent with the registrant information of the domain name registration information, the registrant country information, and the registration address information;
in response to determining that the fourth condition is satisfied, the second indicator obtains a higher score;
in response to determining that the fifth condition is satisfied, the second indicator obtains a medium score;
in response to determining that either of the fourth condition and the fifth condition is not met, the second indicator obtains a lower score.
In some embodiments, the IPv6 address port opening information includes an opened port number, and the third preset condition includes:
a sixth condition that there is a known proxy port number in the open port numbers;
a seventh condition that the open port number includes an unusual port number;
in response to determining that the sixth condition is met, the third indicator obtains a higher score;
in response to determining that only the seventh condition is met, the third indicator obtains a medium score;
in response to determining that either of the sixth condition and the seventh condition is not met, the third indicator obtains a lower score.
Specific scores for the higher score, the medium score, and the lower score are illustrated:
the higher score, the medium score, and the lower score of the first indicator may be: a random value between 90 and 100, a random value between 65 and 90, 0; the higher score, the medium score and the lower score of the second index may be respectively: a random value between 90 and 100, a random value between 50 and 90, a random value between 0 and 50; the higher score, the medium score, and the lower score of the third indicator may be: a random value between 80 and 100, a random value between 60 and 80, 0. The higher score, the middle score and the lower score between the first index, the second index and the third index can be the same or different, the higher score, the middle score and the lower score can be interval scores or a constant value, only one of the score conditions is given as an example in the section, and other score intervals and specific scores can also be applied to the method without limitation. When the first, second and third indexes are scored by the above-mentioned higher, medium and lower scores, the preset target score may be 90, and the preset target score may be adjusted according to different scoring criteria of the first, second and third indexes, without limitation.
In some embodiments, the weighting calculation is performed on the score of the first index, the score of the second index, and the score of the third index of the website to be tested by using an entropy method to obtain a proxy score of each website to be tested, including:
and respectively carrying out standardization processing on the score of the first index, the score of the second index and the score of the third index of the website to be tested:
wherein i epsilon (1, 2, …, n), n is the number of websites to be tested, j epsilon (1, …, m), and m is the sum of the numbers of the first index, the second index and the third index; x is x ij A score of the j index of the ith website to be tested, x' ij A score of the j index of the ith website to be tested after standardized processing;
calculating the score proportion of the j index:
wherein p is ij The score proportion of the j index of the ith website to be tested is the score proportion of the j index of the ith website to be tested;
calculating the entropy value of the j index:
wherein E is j Entropy value of the j index;
calculating the information entropy redundancy of the j index:
d j =1-E j ;
wherein d j Information entropy redundancy of the j index;
calculating the weight of the j index:
wherein omega j A weight for the j index;
calculating the proxy score of the website to be tested:
wherein S is i And (5) the proxy score of the ith website to be tested.
And (3) calculating weights of the first index, the second index and the third index by utilizing an entropy method, calculating scores of the plurality of indexes to obtain final agent scores, and fusing evaluation results of the plurality of indexes to judge the IPv6 network support mode by utilizing the multidimensional information, so that the IPv6 network support mode identification accuracy is effectively improved.
In some embodiments, further comprising: and responding to the fact that the constitution information of the IPv6 address accords with the RFC6052 standard, wherein the IPv6 network support mode of the website to be tested is a translation technical support mode. The RFC6052 standard defines the translation between various translators, gateway types, including IP headers and other types of messages used in translation techniques, as well as the IPv4 embedded prefix and format, selection of the prefix, and corresponding address translation algorithms. Therefore, by checking whether the constitution information of the IPv6 address accords with the RFC6052 standard, whether the IPv6 network support mode of the website to be tested is a translation technical support mode can be effectively judged.
In some embodiments, further comprising: and responding to the fact that the IPv6-http response data contains known CDN characters, wherein the IPv6 network support mode is a CDN technical support mode.
There are many CDN providers currently offering CDN technology services, and some of the IP addresses used by CDN providers have been shared as public resources. If the IPv6 address of the website to be tested is within the CDN-IP addresses, or the ASN (autonomous system number) to which the address obtained by analyzing the IPv6 address belongs is within the ASN of the CDN provider, the IPv6 network support mode of the website to be tested can be determined to be the CDN technical support mode. However, there are many cases where the IP address used by the CDN provider is not disclosed, so that the IPv6-http response data may be used for further comparison, and whether the IPv6-http response data includes a known CDN character, such as information of a known CDN operator, is analyzed and judged, so as to further judge whether the CDN is a CDN technical support mode, and improve the recognition rate and accuracy of the CDN technical support mode.
In some embodiments, S101 comprises: acquiring nodes of a plurality of areas of the website to be tested, and respectively initiating a ping command request from each node of the plurality of areas to the website to be tested to acquire IP address information responded by the website to be tested;
s102 includes: responding to the fact that the IP address information returned by the nodes in the multiple areas is consistent, wherein the IPv6 network support mode is a CDN technical support mode;
or, S101 includes: acquiring the corresponding number of IP addresses and CNAME field information based on the domain name of the website to be tested; s102 includes: and responding to the determination that the CNAME field contains known CDN characters and the number of the IP addresses is greater than or equal to 2, wherein the IPv6 network support mode is a CDN technical support mode.
And sending ping command requests on the nodes of the multiple areas of the to-be-tested website by utilizing the crawler technology, if the to-be-tested website uses the CDN technology, the information returned by the nodes of the multiple areas is different, and whether the IPv6 network support mode of the to-be-tested website is the CDN technical support mode can be effectively determined by comparing the information obtained on the nodes of the multiple areas.
In some embodiments, S101 comprises: simultaneously acquiring the network information of the website to be tested under an IPv4 network and an IPv6 network;
s102 includes: and responding to the determination that the network information under the IPv4 network and the IPv6 network is consistent, wherein the IPv6 network support mode of the website to be tested is a dual stack technical support mode.
One of the characteristics of the dual stack technology is that the dual stack technology supports the IPv4 network and the IPv6 network at the same time, so that whether the network information of the to-be-tested website in the IPv4 network and the IPv6 network is consistent is compared, and whether the IPv6 network support mode of the to-be-tested website is the dual stack technology support mode can be effectively judged.
In some embodiments, the network information includes static resource file encryption information, http response data, and/or port service response data. Optionally, the http response data includes X-Powered-By information, cookies information, and/or Server information.
And meanwhile, static resource file encryption information, http response data or port service response data are acquired from the website to be tested under the IPv4 network and the IPv6 network, and whether the information acquired through the IPv4 network and the IPv6 network is consistent or not is compared, so that the IPv6 network support mode can be accurately judged.
In some embodiments, the port service response data under the IPv4 network and the IPv6 network is obtained by:
and simultaneously scanning all ports on the IP addresses of the websites to be tested under the IPv4 network and the IPv6 network, selecting ports which are opened under the IPv4 network and the IPv6 network from all ports, and sending port service requests to the ports so as to obtain the port service response data returned by the websites to be tested.
The method for detecting the IPv6 network support mode of the website can effectively detect the IPv6 network support mode of the website to be detected, effectively identify the proxy technology, the translation technology, the dual stack technology and the CDN technology commonly used by the website at present, and has the advantages of multiple detectable support modes, wide detection range, wide application range, high identification rate, high accuracy and the like; and evaluating the agent technical support mode by using a plurality of preset indexes to judge the multidimensional information, thereby further improving the recognition rate and the accuracy rate of the agent technical support mode.
It should be noted that, the method of the embodiment of the present application may be performed by a single device, for example, a computer or a server. The method of the embodiment can also be applied to a distributed scene, and is completed by mutually matching a plurality of devices. In the case of such a distributed scenario, one of the devices may perform only one or more steps of the method of an embodiment of the present application, the devices interacting with each other to accomplish the method.
It should be noted that the foregoing describes some embodiments of the present application. Other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims may be performed in a different order than in the embodiments described above and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
Based on the same inventive concept, the application also provides a device for detecting the supporting mode of the IPv6 network of the website, which corresponds to the method of any embodiment.
Referring to fig. 2, the website IPv6 network support mode detecting apparatus includes:
the data acquisition module 201 is configured to acquire network information of a website to be tested through a data acquisition model constructed in advance;
the detection module 202 is configured to output an IPv6 network support mode of the website to be tested through a pre-constructed detection model based on the network information.
In some embodiments, the data acquisition module 201 is configured to:
the IPv6 address of the website to be tested is obtained, and the port opening condition of the IPv6 address is scanned to obtain the port opening information of the IPv6 address;
acquiring IPv6 address operator information based on the IPv6 address;
initiating an HTTP request to the website to be tested to obtain IPv6-HTTP response data returned by the website to be tested;
acquiring a domain name of the website to be tested, and acquiring domain name record information based on the domain name;
the detection module 202 is configured to:
obtaining a score of a preset first index based on the IPv6-http response data and a first preset condition;
obtaining a score of a preset second index based on the IPv6 address operator information, the domain name record information and a second preset condition;
obtaining a score of a preset third index based on the IPv6 address port opening information and a third preset condition;
respectively carrying out weight calculation on the score of the first index, the score of the second index and the score of the third index of the website to be tested by utilizing an entropy method so as to obtain the agent score of each website to be tested;
and in response to determining that the proxy score is greater than or equal to a preset target score, the IPv6 network support mode is a proxy technical support mode.
In some embodiments, the weighting calculation is performed on the score of the first index, the score of the second index, and the score of the third index of the website to be tested by using an entropy method to obtain a proxy score of each website to be tested, including:
and respectively carrying out standardization processing on the score of the first index, the score of the second index and the score of the third index of the website to be tested:
wherein i epsilon (1, 2, …, n), n is the number of websites to be tested, j epsilon (1, …, m), and m is the sum of the numbers of the first index, the second index and the third index; x is x ij A score of the j index of the ith website to be tested, x' ij A score of the j index of the ith website to be tested after standardized processing;
calculating the score proportion of the j index:
wherein p is ij The score proportion of the j index of the ith website to be tested is the score proportion of the j index of the ith website to be tested;
calculating the entropy value of the j index:
wherein E is j Entropy value of the j index;
calculating the information entropy redundancy of the j index:
d j =1-E j ;
wherein d j Information entropy redundancy of the j index;
calculating the weight of the j index:
wherein omega j A weight for the j index;
calculating the proxy score of the website to be tested:
wherein S is i And (5) the proxy score of the ith website to be tested.
In some embodiments, further comprising: and responding to the fact that the constitution information of the IPv6 address accords with the RFC6052 standard, wherein the IPv6 network support mode of the website to be tested is a translation technical support mode.
In some embodiments, further comprising: and responding to the fact that the IPv6-http response data contains known CDN characters, wherein the IPv6 network support mode is a CDN technical support mode.
In some embodiments, the data obtaining module 201 is configured to obtain nodes in a plurality of regions of the website to be tested, and initiate a ping command request to the website to be tested from each node in the plurality of nodes in the region to obtain IP address information responded by the website to be tested;
the detection module 202 is configured to respond to the fact that the IP address information returned by the nodes of the multiple regions is consistent, and the IPv6 network support mode is a CDN technical support mode;
or, the detection module 202 is configured to obtain the number of corresponding IP addresses and CNAME field information based on the domain name of the website to be detected; the detection module 202 is configured to, in response to determining that the CNAME field includes a known CDN character and the number of IP addresses is greater than or equal to 2, determine that the IPv6 network support mode is a CDN technical support mode.
In some embodiments, the data acquisition module 201 is configured to acquire the network information of the website to be tested under both an IPv4 network and an IPv6 network;
the detection module 202 is configured to determine that the network information under the IPv4 network and the IPv6 network are consistent, and the IPv6 network support mode of the website to be tested is a dual stack technical support mode.
In some embodiments, the network information includes static resource file encryption information, http response data, and/or port service response data.
In some embodiments, the port service response data under the IPv4 network and the IPv6 network is obtained by:
and simultaneously scanning all ports on the IP addresses of the websites to be tested under the IPv4 network and the IPv6 network, selecting ports which are opened under the IPv4 network and the IPv6 network from all ports, and sending port service requests to the ports so as to obtain the port service response data returned by the websites to be tested.
For convenience of description, the above devices are described as being functionally divided into various modules, respectively. Of course, the functions of each module may be implemented in the same piece or pieces of software and/or hardware when implementing the present application.
The device of the foregoing embodiment is configured to implement a corresponding method for detecting a website IPv6 network support mode in any of the foregoing embodiments, and has the beneficial effects of the corresponding method embodiment, which is not described herein.
Based on the same inventive concept, the application also provides an electronic device corresponding to the method of any embodiment, which comprises a memory, a processor and a computer program stored on the memory and capable of running on the processor, wherein the processor realizes the method for detecting the website IPv6 network support mode according to any embodiment when executing the program.
Fig. 3 shows a more specific hardware architecture of an electronic device according to this embodiment, where the device may include: a processor 1010, a memory 1020, an input/output interface 1030, a communication interface 1040, and a bus 1050. Wherein processor 1010, memory 1020, input/output interface 1030, and communication interface 1040 implement communication connections therebetween within the device via a bus 1050.
The processor 1010 may be implemented by a general-purpose CPU (Central Processing Unit ), microprocessor, application specific integrated circuit (Application Specific Integrated Circuit, ASIC), or one or more integrated circuits, etc. for executing relevant programs to implement the technical solutions provided in the embodiments of the present disclosure.
The Memory 1020 may be implemented in the form of ROM (Read Only Memory), RAM (Random Access Memory ), static storage device, dynamic storage device, or the like. Memory 1020 may store an operating system and other application programs, and when the embodiments of the present specification are implemented in software or firmware, the associated program code is stored in memory 1020 and executed by processor 1010.
The input/output interface 1030 is used to connect with an input/output module for inputting and outputting information. The input/output module may be configured as a component in a device (not shown) or may be external to the device to provide corresponding functionality. Wherein the input devices may include a keyboard, mouse, touch screen, microphone, various types of sensors, etc., and the output devices may include a display, speaker, vibrator, indicator lights, etc.
Communication interface 1040 is used to connect communication modules (not shown) to enable communication interactions of the present device with other devices. The communication module may implement communication through a wired manner (such as USB, network cable, etc.), or may implement communication through a wireless manner (such as mobile network, WIFI, bluetooth, etc.).
Bus 1050 includes a path for transferring information between components of the device (e.g., processor 1010, memory 1020, input/output interface 1030, and communication interface 1040).
It should be noted that although the above-described device only shows processor 1010, memory 1020, input/output interface 1030, communication interface 1040, and bus 1050, in an implementation, the device may include other components necessary to achieve proper operation. Furthermore, it will be understood by those skilled in the art that the above-described apparatus may include only the components necessary to implement the embodiments of the present description, and not all the components shown in the drawings.
The electronic device of the foregoing embodiment is configured to implement a corresponding method for detecting a website IPv6 network support mode in any of the foregoing embodiments, and has the beneficial effects of the corresponding method embodiment, which is not described herein.
Based on the same inventive concept, the present application also provides a non-transitory computer readable storage medium corresponding to the method of any embodiment, wherein the non-transitory computer readable storage medium stores computer instructions for causing the computer to execute the method for detecting the website IPv6 network support mode according to any embodiment.
The computer readable media of the present embodiments, including both permanent and non-permanent, removable and non-removable media, may be used to implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of storage media for a computer include, but are not limited to, phase change memory (PRAM), static Random Access Memory (SRAM), dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), read Only Memory (ROM), electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium, which can be used to store information that can be accessed by a computing device.
The storage medium of the foregoing embodiment stores computer instructions for causing the computer to execute a method for detecting a website IPv6 network support mode according to any one of the foregoing embodiments, and has the advantages of the corresponding method embodiments, which are not described herein.
Those of ordinary skill in the art will appreciate that: the discussion of any of the embodiments above is merely exemplary and is not intended to suggest that the scope of the application (including the claims) is limited to these examples; the technical features of the above embodiments or in the different embodiments may also be combined within the idea of the application, the steps may be implemented in any order, and there are many other variations of the different aspects of the embodiments of the application as described above, which are not provided in detail for the sake of brevity.
Additionally, well-known power/ground connections to Integrated Circuit (IC) chips and other components may or may not be shown within the provided figures, in order to simplify the illustration and discussion, and so as not to obscure the embodiments of the present application. Furthermore, the devices may be shown in block diagram form in order to avoid obscuring the embodiments of the present application, and also in view of the fact that specifics with respect to implementation of such block diagram devices are highly dependent upon the platform within which the embodiments of the present application are to be implemented (i.e., such specifics should be well within purview of one skilled in the art). Where specific details (e.g., circuits) are set forth in order to describe example embodiments of the application, it should be apparent to one skilled in the art that embodiments of the application can be practiced without, or with variation of, these specific details. Accordingly, the description is to be regarded as illustrative in nature and not as restrictive.
While the application has been described in conjunction with specific embodiments thereof, many alternatives, modifications, and variations of those embodiments will be apparent to those skilled in the art in light of the foregoing description. For example, other memory architectures (e.g., dynamic RAM (DRAM)) may use the embodiments discussed.
The present embodiments are intended to embrace all such alternatives, modifications and variances which fall within the broad scope of the appended claims. Therefore, any omissions, modifications, equivalent substitutions, improvements, and the like, which are within the spirit and principles of the embodiments of the application, are intended to be included within the scope of the application.
Claims (9)
1. The method for detecting the supporting mode of the IPv6 network of the website is characterized by comprising the following steps of:
acquiring network information of a website to be tested through a pre-constructed data acquisition model;
outputting an IPv6 network support mode of the website to be tested through a pre-constructed detection model based on the network information;
the method for obtaining the network information of the website to be tested through the pre-built data obtaining model, outputting the IPv6 network supporting mode of the website to be tested through the pre-built detecting model based on the network information comprises the following steps:
the IPv6 address of the website to be tested is obtained, and the port opening condition of the IPv6 address is scanned to obtain the port opening information of the IPv6 address;
acquiring IPv6 address operator information based on the IPv6 address;
initiating an HTTP request to the website to be tested to obtain IPv6-HTTP response data returned by the website to be tested;
acquiring a domain name of the website to be tested, and acquiring domain name record information based on the domain name;
obtaining a score of a preset first index based on the IPv6-http response data and a first preset condition;
obtaining a score of a preset second index based on the IPv6 address operator information, the domain name record information and a second preset condition;
obtaining a score of a preset third index based on the IPv6 address port opening information and a third preset condition;
respectively carrying out weight calculation on the score of the first index, the score of the second index and the score of the third index of the website to be tested by utilizing an entropy method so as to obtain the agent score of each website to be tested;
and in response to determining that the proxy score is greater than or equal to a preset target score, the IPv6 network support mode is a proxy technical support mode.
2. The method according to claim 1, wherein the weighting calculation is performed on the score of the first index, the score of the second index, and the score of the third index of the website to be tested by using an entropy method to obtain the proxy score of each website to be tested, respectively, including:
and respectively carrying out standardization processing on the score of the first index, the score of the second index and the score of the third index of the website to be tested:
wherein i epsilon (1, 2, …, n), n is the number of websites to be tested, j epsilon (1, …, m), and m is the sum of the numbers of the first index, the second index and the third index; x is x ij A score, x, of the j index of the ith website to be tested i ′ j A score of the j index of the ith website to be tested after standardized processing;
calculating the score proportion of the j index:
wherein p is ij The score proportion of the j index of the ith website to be tested is the score proportion of the j index of the ith website to be tested;
calculating the entropy value of the j index:
wherein E is j Entropy value of the j index;
calculating the information entropy redundancy of the j index:
d j =1-E j ;
wherein d j Information entropy redundancy of the j index;
calculating the weight of the j index:
wherein omega j A weight for the j index;
calculating the proxy score of the website to be tested:
wherein S is i And (5) the proxy score of the ith website to be tested.
3. The method of detecting according to claim 1, further comprising:
and responding to the fact that the constitution information of the IPv6 address accords with the RFC6052 standard, wherein the IPv6 network support mode of the website to be tested is a translation technical support mode.
4. The method of detecting according to claim 1, further comprising:
and responding to the fact that the IPv6-http response data contains known CDN characters, wherein the IPv6 network support mode is a CDN technical support mode.
5. The method according to claim 1, wherein the obtaining network information of the website to be tested through the pre-built data obtaining model, outputting the IPv6 network support mode of the website to be tested through the pre-built detecting model based on the network information, comprises:
acquiring nodes of a plurality of areas of the website to be tested, and respectively initiating a ping command request from each node of the plurality of areas to the website to be tested to acquire IP address information responded by the website to be tested;
responding to the fact that the IP address information returned by the nodes in the multiple areas is consistent, wherein the IPv6 network support mode is a CDN technical support mode;
or, acquiring the corresponding number of IP addresses and CNAME field information based on the domain name of the website to be tested; and responding to the determination that the CNAME field contains known CDN characters and the number of the IP addresses is greater than or equal to 2, wherein the IPv6 network support mode is a CDN technical support mode.
6. The method according to claim 1, wherein the obtaining network information of the website to be tested through the pre-built data obtaining model, outputting the IPv6 network support mode of the website to be tested through the pre-built detecting model based on the network information, comprises:
simultaneously acquiring the network information of the website to be tested under an IPv4 network and an IPv6 network;
and responding to the determination that the network information under the IPv4 network and the IPv6 network is consistent, wherein the IPv6 network support mode of the website to be tested is a dual stack technical support mode.
7. The method of claim 6, wherein the network information comprises static resource file encryption information, http response data, and/or port service response data.
8. The method according to claim 7, wherein the port service response data under the IPv4 network and the IPv6 network is obtained by:
and simultaneously scanning all ports on the IP addresses of the websites to be tested under the IPv4 network and the IPv6 network, selecting ports which are opened under the IPv4 network and the IPv6 network from all ports, and sending port service requests to the ports so as to obtain the port service response data returned by the websites to be tested.
9. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the method of any one of claims 1 to 8 when the program is executed by the processor.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111552134.0A CN114448849B (en) | 2021-12-17 | 2021-12-17 | Method for detecting supporting mode of IPv6 network of website and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111552134.0A CN114448849B (en) | 2021-12-17 | 2021-12-17 | Method for detecting supporting mode of IPv6 network of website and electronic equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN114448849A CN114448849A (en) | 2022-05-06 |
CN114448849B true CN114448849B (en) | 2023-12-05 |
Family
ID=81363412
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111552134.0A Active CN114448849B (en) | 2021-12-17 | 2021-12-17 | Method for detecting supporting mode of IPv6 network of website and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114448849B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115174519A (en) * | 2022-06-30 | 2022-10-11 | 上海宝创网络科技有限公司 | Method and equipment for judging IPv6 modification of website |
Citations (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101374069A (en) * | 2007-08-25 | 2009-02-25 | 华为技术有限公司 | Method, system and equipment for transforming multicast packet |
WO2011020102A3 (en) * | 2009-08-14 | 2011-06-16 | Akamai Technologies, Inc. | Method and apparatus for correlating nameserver ipv6 and ipv4 addresses |
CN103581248A (en) * | 2012-07-31 | 2014-02-12 | 中兴通讯股份有限公司 | Method and device for providing content distribution network CDN service |
CN104935521A (en) * | 2014-03-18 | 2015-09-23 | 中国电信股份有限公司 | Global load balancing method and server for realizing hybrid scheduling |
WO2017173766A1 (en) * | 2016-04-08 | 2017-10-12 | 网宿科技股份有限公司 | Domain name parsing acceleration method, system and apparatus |
CN109194776A (en) * | 2018-09-07 | 2019-01-11 | 赛尔网络有限公司 | A kind of detection method, system, electronic equipment and medium |
CN109451097A (en) * | 2019-01-02 | 2019-03-08 | 北京宏图佳都通信设备有限公司 | IPv4/IPv6 address conversion system |
CN109547246A (en) * | 2018-11-20 | 2019-03-29 | 睿哲科技股份有限公司 | IPv6 complexity evaluation methodology, device and electronic equipment are supported in the upgrading of the website IPv4 |
CN110392130A (en) * | 2019-08-23 | 2019-10-29 | 北京天融信网络安全技术有限公司 | Network-based information processing method, electronic equipment and network system |
CN110971571A (en) * | 2018-09-29 | 2020-04-07 | 北京国双科技有限公司 | Website domain name verification method and related device |
US10673992B1 (en) * | 2014-09-30 | 2020-06-02 | Flash Networks, Ltd | Method and system for implementing IPv4 or IPv6 in a proxy |
CN111447297A (en) * | 2020-03-20 | 2020-07-24 | 福建万物易联网络科技有限公司 | IPv4 and IPv6 DNS unified access management method and system |
CN111970262A (en) * | 2020-08-07 | 2020-11-20 | 杭州安恒信息技术股份有限公司 | Method and device for detecting third-party service enabling state of website and electronic device |
CN113489720A (en) * | 2021-07-01 | 2021-10-08 | 中电智恒信息科技服务有限公司 | Method and system for analyzing attack exposure surface in super-large-scale network |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7734818B2 (en) * | 2007-02-23 | 2010-06-08 | International Business Machines Corporation | Method to add IPV6 and DHCP support to the network support package |
US9736271B2 (en) * | 2012-12-21 | 2017-08-15 | Akamai Technologies, Inc. | Scalable content delivery network request handling mechanism with usage-based billing |
CN107733950B (en) * | 2016-08-11 | 2020-12-08 | 百度在线网络技术(北京)有限公司 | Method and device for accessing website |
-
2021
- 2021-12-17 CN CN202111552134.0A patent/CN114448849B/en active Active
Patent Citations (15)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101374069A (en) * | 2007-08-25 | 2009-02-25 | 华为技术有限公司 | Method, system and equipment for transforming multicast packet |
WO2011020102A3 (en) * | 2009-08-14 | 2011-06-16 | Akamai Technologies, Inc. | Method and apparatus for correlating nameserver ipv6 and ipv4 addresses |
CN103581248A (en) * | 2012-07-31 | 2014-02-12 | 中兴通讯股份有限公司 | Method and device for providing content distribution network CDN service |
CN104935521A (en) * | 2014-03-18 | 2015-09-23 | 中国电信股份有限公司 | Global load balancing method and server for realizing hybrid scheduling |
US10673992B1 (en) * | 2014-09-30 | 2020-06-02 | Flash Networks, Ltd | Method and system for implementing IPv4 or IPv6 in a proxy |
WO2017173766A1 (en) * | 2016-04-08 | 2017-10-12 | 网宿科技股份有限公司 | Domain name parsing acceleration method, system and apparatus |
CN109194776A (en) * | 2018-09-07 | 2019-01-11 | 赛尔网络有限公司 | A kind of detection method, system, electronic equipment and medium |
CN110971571A (en) * | 2018-09-29 | 2020-04-07 | 北京国双科技有限公司 | Website domain name verification method and related device |
CN109547246A (en) * | 2018-11-20 | 2019-03-29 | 睿哲科技股份有限公司 | IPv6 complexity evaluation methodology, device and electronic equipment are supported in the upgrading of the website IPv4 |
CN109451097A (en) * | 2019-01-02 | 2019-03-08 | 北京宏图佳都通信设备有限公司 | IPv4/IPv6 address conversion system |
WO2020140433A1 (en) * | 2019-01-02 | 2020-07-09 | 北京宏图佳都通信设备有限公司 | Ipv4/ipv6 address translation system |
CN110392130A (en) * | 2019-08-23 | 2019-10-29 | 北京天融信网络安全技术有限公司 | Network-based information processing method, electronic equipment and network system |
CN111447297A (en) * | 2020-03-20 | 2020-07-24 | 福建万物易联网络科技有限公司 | IPv4 and IPv6 DNS unified access management method and system |
CN111970262A (en) * | 2020-08-07 | 2020-11-20 | 杭州安恒信息技术股份有限公司 | Method and device for detecting third-party service enabling state of website and electronic device |
CN113489720A (en) * | 2021-07-01 | 2021-10-08 | 中电智恒信息科技服务有限公司 | Method and system for analyzing attack exposure surface in super-large-scale network |
Non-Patent Citations (7)
Title |
---|
《基于IPv6的CAPWAP协议系统设计与实现》;张明龙;《中国优秀硕士学位论文全文数据库信息科技辑》(第04期);全文 * |
《支持IPV4/IPV6双栈的宽带认证鉴权系统设计与实现》;冯铭能,王刚;《广东通信技术》(第3期);68-70 * |
《网络测量数据隐私保护若干关键技术研究》;张沛;《中国优秀硕士学位论文全文数据库信息科技辑》(第01期);全文 * |
Cable Network Transition to IPv6.ETSI TR 101 569.2012,(第V1.1.1期), * |
Cable Network Transition to IPv6.ETSI TR 101 569.2012,(第V1.1.1期),全文. * |
DTR/ATTM-003018.Technical Report Access, Terminals, Transmission and Multiplexing (ATTM) * |
Integrated Broadband Cable and Television Networks * |
Also Published As
Publication number | Publication date |
---|---|
CN114448849A (en) | 2022-05-06 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111314472B (en) | Domain name resolution method, domain name resolution server and terminal equipment | |
US10015243B2 (en) | Optimized content distribution based on metrics derived from the end user | |
US8479263B1 (en) | Method and system for detecting captive portals | |
EP2854378B1 (en) | Method, device and network equipment for acquiring feature information | |
US20100088405A1 (en) | Determining Network Delay and CDN Deployment | |
CN109327559B (en) | Domain name resolution method and device based on hybrid cloud platform | |
CN107342913B (en) | Detection method and device for CDN node | |
CN110740191B (en) | Resource access method, device, electronic equipment and storage medium | |
GB2500936A (en) | Identifying the physical location of internet service providers using geo-location data provided by devices requesting data | |
CN107295033B (en) | Routing method and device | |
JP6106911B2 (en) | Improving the accuracy of information returned for context signals | |
CN107959576B (en) | Flow charging method and system and cache device | |
CN105704171B (en) | System and method for realizing CDN access | |
CN103873604A (en) | Network access method based on analysis of CDN data | |
CN114448849B (en) | Method for detecting supporting mode of IPv6 network of website and electronic equipment | |
WO2017166524A1 (en) | Domain name parsing method and apparatus | |
CN110933193B (en) | Domain name resolution method and device, electronic equipment and computer readable storage medium | |
CN105592169B (en) | Terminal identification method and device | |
CN113055420B (en) | HTTPS service identification method and device and computing equipment | |
CN113965543B (en) | Access method, device and storage medium of application server | |
CN104468857B (en) | A kind of acquisition methods and system of correspondence | |
CN115955458A (en) | Method and device for identifying content distribution network address | |
CN110691023B (en) | Address system | |
US20160337195A1 (en) | Automated multi-user system detection | |
JP2018018523A (en) | Method for associating user access log, apparatus, system, program and recording 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 |