CN114143230A - Method and device for calculating DNS (Domain name Server) resolution time of dual-stack user - Google Patents

Method and device for calculating DNS (Domain name Server) resolution time of dual-stack user Download PDF

Info

Publication number
CN114143230A
CN114143230A CN202010910882.0A CN202010910882A CN114143230A CN 114143230 A CN114143230 A CN 114143230A CN 202010910882 A CN202010910882 A CN 202010910882A CN 114143230 A CN114143230 A CN 114143230A
Authority
CN
China
Prior art keywords
analysis
analysis request
request
resolution
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.)
Granted
Application number
CN202010910882.0A
Other languages
Chinese (zh)
Other versions
CN114143230B (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.)
China Mobile Communications Group Co Ltd
China Mobile Group Anhui Co Ltd
Original Assignee
China Mobile Communications Group Co Ltd
China Mobile Group Anhui 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 China Mobile Communications Group Co Ltd, China Mobile Group Anhui Co Ltd filed Critical China Mobile Communications Group Co Ltd
Priority to CN202010910882.0A priority Critical patent/CN114143230B/en
Publication of CN114143230A publication Critical patent/CN114143230A/en
Application granted granted Critical
Publication of CN114143230B publication Critical patent/CN114143230B/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/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0852Delays
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/18Protocol analysers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/09Mapping addresses
    • H04L61/25Mapping addresses of the same type
    • H04L61/2503Translation of Internet protocol [IP] addresses
    • H04L61/251Translation of Internet protocol [IP] addresses between different IP versions

Abstract

The invention discloses a method and a device for calculating DNS (domain name system) resolution duration of a dual-stack user, wherein the method comprises the following steps: detecting whether an IPV6 analysis result corresponding to a first analysis request is received or not according to the detected IPV6 first analysis request initiated by the terminal equipment; if not, storing the first analysis request information of the terminal equipment in the cache, and setting a cache life cycle; acquiring a second analysis request initiated by the terminal equipment and detected in the cache life cycle; if the second analysis request is an IPV4DNS analysis request, detecting that a corresponding IPV4 analysis result is received, acquiring first analysis request information according to the second analysis request, and calculating DNS analysis duration of the dual-stack user according to the first analysis request information and the second analysis request. By storing the first analysis request information in the cache and setting the life cycle of the cache, the DNS analysis time length of the dual-stack user can be accurately calculated aiming at the first analysis request information and the second analysis request of the same terminal device.

Description

Method and device for calculating DNS (Domain name Server) resolution time of dual-stack user
Technical Field
The invention relates to the technical field of networks, in particular to a method and a device for calculating DNS (domain name system) resolution time of a dual-stack user.
Background
An IPV4V6 dual-stack user, that is, a network side allocates an IPV6(Internet Protocol Version 6, Version 6 of the Internet Protocol) address and an IPV4(Internet Protocol Version4, Version4 of the Internet Protocol) address to a terminal device at the same time, the terminal device will default and preferentially select an IPV6 address to initiate service access, and if a content provider does not have content based on the IPV6 address, the terminal device will reselect an IPV4 address to initiate service access.
The DNS (domain name system) is responsible for a database that stores mapping data of internet domain names and IP addresses. When terminal equipment such as a mobile terminal or a computer accesses any website or APP, a domain name resolution request must be sent to a DNS (domain name server), and after the DNS returns a corresponding IP address resolution result to the terminal, the network performs routing and addressing according to the IP address, so that the DNS resolution request is a key first step for completing internet access. The method mainly comprises three parts, namely DNS analysis duration, client server TCP link establishment duration and application layer GET request duration, from the input of a website domain name to the display of website contents, and is one of the most key indexes influencing the internet surfing perception of a user, and the optimization of the DNS analysis duration is one of key points improving the network experience of the user. With the advance of the scale modification and deployment of the IPV6, the IPV6 user conversion rate and the IPV6 traffic conversion rate are continuously improved, the total number of IPV6 users and the number of active IPV6 users both reach hundred million numbers, and it is very important to enhance the accurate monitoring and optimization of the internet-surfing delay perception of the IPV4V6 dual-stack user so as to improve the user satisfaction and reduce the user complaint rate.
Currently, DNS resolution requests of terminal devices are divided into two types, i.e., IPV6 resolution requests (AAAA record queries) and IPV4 resolution requests (a record queries). The IPV4 single-stack terminal equipment only initiates an IPV4 analysis request, the IPV6 single-stack terminal equipment only initiates an IPV6 analysis request, and the dual-stack terminal equipment serially initiates an IPV6 analysis request and an IPV4 analysis request. Typically, an IPV6 parsing request is initiated first, and an IPV4 parsing request (set by a specific terminal equipment vendor) is initiated next. The DNS analysis time length is obtained by collecting and analyzing a DNS analysis request time length mainly through a signaling analysis platform built by an operator, a probe device of the signaling platform collects an original code stream of a SAEGWS1-U interface of a core network and performs analysis and order falling, the DNS analysis time length is obtained by calculating the difference value of DNSQUERYRESPONSE message time and DNSQUERY message time in a DNSXDR document, and an IPV6 analysis request and an IPV4 analysis request are independently calculated and do not interfere with each other.
The prior art is accurate in calculating the DNS resolution duration in the single stack of IPV4 or single stack of IPV 6. However, the prior art has a large error in calculating the DNS resolution duration in many service scenarios under IPV4V6 dual stack. The reason is that with the continuous acceleration of the modification of the IPV6 network, the content of the IPV6 is quincuncial and uneven in quality, and the IPV6 parsing request often has a long-time parsing unresponsive due to poor transmission link quality, disordered content scheduling and the like. Taking the case that only one host domain name DNS resolution request is initiated for each service access, under normal conditions, the terminal device in the dual stack initiates an IPV6 resolution request and an IPV4 resolution request at the same time, and obtains an IPV6 address and an IPV4 address returned by the DNS, and then the terminal preferentially selects the IPV6 address to initiate the service access, where the time length of the single stack DNS resolution of the IPV6 is the DNS delay of the service access of the user. Under the abnormal condition, after the terminal equipment of the dual stack initiates an IPV6 analysis request, the server IPV6 has no response or does not return an IPV6 analysis result all the time due to the occurrence of multi-layer recursive analysis, the terminal initiates an IPV4 analysis request after waiting for ten seconds and ten seconds of no analysis result of the IPV6, and finally obtains an address contained in an IPV4 analysis result and initiates IPV4 service access, at the moment, the user has no IPV6 analysis time and only has IPV4 analysis time, time errors can cause serious misjudgment of the time delay perception of the dual stack user by an operator, and the abnormal scene is necessary to occur frequently along with the continuous acceleration of the transformation of the whole network IPV6 and the mass content of continuous explosion of the internet. Therefore, a method for calculating the DNS resolution time of the dual stack user is needed to ensure the accuracy of the obtained DNS resolution time of the dual stack user.
Disclosure of Invention
In view of the above, the present invention is proposed to provide a method and an apparatus for calculating a DNS resolution duration for a dual stack user, which overcome or at least partially solve the above problems.
According to one aspect of the present invention, a method for calculating a DNS resolution duration of a dual stack user is provided, which includes:
detecting whether an IPV6 analysis result corresponding to a first analysis request is received or not according to the detected IPV6 first analysis request initiated by the terminal equipment;
if not, storing the first analysis request information of the terminal equipment in the cache, and setting a cache life cycle;
acquiring a second analysis request initiated by the terminal equipment and detected in the cache life cycle;
if the second analysis request is an IPV4DNS analysis request, and the received corresponding IPV4 analysis result is detected, the first analysis request information is obtained according to the second analysis request, and the DNS analysis duration of the dual-stack user is calculated according to the first analysis request information and the second analysis request.
According to another aspect of the present invention, there is provided a dual stack user DNS resolution duration calculation apparatus, including:
the detection module is suitable for detecting whether an IPV6 analysis result corresponding to a first analysis request is received or not according to the detected IPV6 first analysis request initiated by the terminal equipment;
the cache module is suitable for storing the first analysis request information of the terminal equipment in a cache and setting a cache life cycle if the detection module does not receive the IPV6 analysis result corresponding to the first analysis request;
the acquisition module is suitable for acquiring a second analysis request initiated by the terminal equipment detected in the cache life cycle;
and the calculation module is suitable for detecting that a corresponding IPV4 analysis result is received if the second analysis request is an IPV4DNS analysis request, acquiring first analysis request information according to the second analysis request, and calculating DNS analysis duration of the dual-stack user according to the first analysis request information and the second analysis request.
According to still another aspect of the present invention, there is provided an electronic apparatus including: the system comprises a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface complete mutual communication through the communication bus;
the memory is used for storing at least one executable instruction, and the executable instruction enables the processor to execute the operation corresponding to the double-stack user DNS analysis time length calculation method.
According to another aspect of the present invention, a computer storage medium is provided, where at least one executable instruction is stored in the storage medium, and the executable instruction causes a processor to perform an operation corresponding to the above method for calculating a DNS resolution duration of a dual stack user.
According to the method and the device for calculating the DNS resolution duration of the dual-stack user, whether an IPV6 resolution result corresponding to a first resolution request is received or not is detected according to the detected IPV6 first resolution request initiated by the terminal equipment; if not, storing the first analysis request information of the terminal equipment in the cache, and setting a cache life cycle; acquiring a second analysis request initiated by the terminal equipment and detected in the cache life cycle; if the second analysis request is an IPV4DNS analysis request, and the received corresponding IPV4 analysis result is detected, the first analysis request information is obtained according to the second analysis request, and the DNS analysis duration of the dual-stack user is calculated according to the first analysis request information and the second analysis request. By storing the first analysis request information in the cache and setting the life cycle of the cache, the DNS analysis time length of the dual-stack user can be accurately calculated aiming at the first analysis request information and the second analysis request of the same terminal device. The method is compatible with the DNS analysis time length of the existing single-stack user, and meanwhile, the problem of accurate calculation of the DNS analysis time length of the double-stack user in various abnormal scenes is solved.
The foregoing description is only an overview of the technical solutions of the present invention, and the embodiments of the present invention are described below in order to make the technical means of the present invention more clearly understood and to make the above and other objects, features, and advantages of the present invention more clearly understandable.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the invention. Also, like reference numerals are used to refer to like parts throughout the drawings. In the drawings:
FIG. 1 shows a flow diagram of a method for calculating a DNS resolution duration for a dual stack user according to an embodiment of the invention;
FIG. 2 shows a functional block diagram of a dual stack user DNS resolution duration calculation apparatus according to an embodiment of the present invention;
fig. 3 shows a schematic structural diagram of an electronic device according to an embodiment of the invention.
Detailed Description
Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
Fig. 1 shows a flowchart of a method for calculating a DNS resolution duration of a dual stack user according to an embodiment of the present invention. As shown in fig. 1, the method for calculating DNS resolution time of a dual stack user specifically includes the following steps:
and step S101, detecting whether an IPV6 analysis result corresponding to the first analysis request is received or not according to the detected IPV6 first analysis request initiated by the terminal equipment.
The terminal device may include a terminal device supporting dual stack users, such as a mobile phone, a pad, and the like. The probe device based on the signaling acquisition platform can detect an analysis request initiated by the terminal device when the terminal device accesses a website or APP and other network operations. In this embodiment, since the terminal device of the dual stack user may initiate an IPV6 parsing request (AAAA record query) and an IPV4 parsing request, according to the setting of the terminal device manufacturer, the IPV6 parsing request is usually initiated first, and then the IPV4 parsing request is sent. The probe equipment based on the signaling acquisition platform detects a first analysis request of the IPV6 initiated by the terminal equipment, and then detects an S1-U interface downlink by the probe equipment to detect whether an IPV6 analysis result corresponding to the first analysis request is received. If the IPV6 resolution result corresponding to the first resolution request is detected to be received, it indicates that the first resolution request of the IPV6 is normally responded by the server, and an IPV6 DNS document may be generated according to the DNS resolution mechanism of the IPV6 single stack. For a terminal device of a single stack of the IPV6, the single stack DNS resolution duration may be directly calculated according to the time of initiating the IPV6 first resolution request and the time of receiving the IPV6 resolution result. If the IPV6 parsing result corresponding to the first parsing request is not detected, step S102 is executed.
Step S102, storing the first analysis request information of the terminal equipment in the cache, and setting the life cycle of the cache.
The cache may be a memory space defined by dividing on the core network probe device as a cache for storing the first analysis request information of the terminal device in this embodiment, and a cache life cycle is set for the cache. The buffer lifetime is set according to the specific implementation, and is not limited herein.
The first resolution request information of the terminal device stored in the cache includes the number of the terminal device, the start time of the first resolution request, domain name information, and the like. The number of the terminal device may be a telephone number used by the terminal device, or an identification number of the terminal device, and is used for uniquely marking the terminal device. The first resolution request start time, i.e. the time of the IPV6 first resolution request initiated by the terminal device, the accurate DNS delay should be timed from the IPV6 first resolution request initiated by the terminal device (the IPV6 first resolution request initiated for the first time). The domain name information is the domain name information requested by the IPV6 first resolution request. The first analysis request information of the terminal device stored in the cache can be stored in a key value pair mode, and the first analysis request information can be conveniently and quickly located in the cache. The primary key value is the number and domain name information of the terminal equipment.
Step S103, a second analysis request initiated by the terminal device detected in the cache life cycle is obtained.
And in the buffer life cycle, the probe equipment based on the signaling acquisition platform continuously detects a second analysis request initiated by the terminal equipment. And correspondingly performing subsequent processing according to the detected second analysis request.
And step S104, if the second analysis request is an IPV4 analysis request, detecting that a corresponding IPV4 analysis result is received, acquiring first analysis request information according to the second analysis request, and calculating DNS analysis duration of the dual-stack user according to the first analysis request information and the second analysis request.
If the second resolution request detected by the probe device is an IPV4 resolution request, and the probe device further detects that an IPV4 resolution result corresponding to the IPV4 resolution request is received, it indicates that the DNS resolution process initiated by the dual-stack user using the terminal device is completed, and it is about to initiate a corresponding network access using an address included in the IPV4 resolution result. At this time, the DNS resolution duration of the dual stack user should be a time difference between the first IPV6 resolution request initiated by the terminal device and the returned IPV4 resolution result, instead of the time difference between the IPV4 resolution request and the IPV4 resolution result. Specifically, for the second resolution request, the number and domain name information of the terminal device included in the second resolution request are obtained first. And searching first analysis request information of the terminal equipment, which is the same as the number of the terminal equipment of the second analysis request and the domain name information primary key value in the cache, by taking the number and the domain name information of the terminal equipment as the primary key value, and acquiring the first analysis request starting time of the first analysis request information of the terminal equipment. And calculating the time difference between the starting time of the first resolution request and the returning time of the resolution result of the IPV4, thereby obtaining the DNS resolution duration of the dual-stack user.
Optionally, this embodiment further includes the following steps:
in step S105, if the second resolution request is an IPV6 resolution request including the same domain name information as the first resolution request, the cache is cleared.
If the second resolution request is also an IPV6 resolution request and the first resolution request includes the same domain name information, it indicates that the internet behavior of the first resolution request of the terminal device has been terminated, the terminal device re-initiates a new resolution request, and needs to empty the first resolution request information stored in the cache first, then performs a new detection according to the current second resolution request, and re-performs step S101 to detect whether an IPV6 resolution result corresponding to the second resolution request is received.
According to the method for calculating the DNS resolution duration of the dual-stack user, whether an IPV6 resolution result corresponding to a first resolution request is received or not is detected according to the detected IPV6 first resolution request initiated by the terminal equipment; if not, storing the first analysis request information of the terminal equipment in the cache, and setting a cache life cycle; acquiring a second analysis request initiated by the terminal equipment and detected in the cache life cycle; if the second analysis request is an IPV4DNS analysis request, and the received corresponding IPV4 analysis result is detected, the first analysis request information is obtained according to the second analysis request, and the DNS analysis duration of the dual-stack user is calculated according to the first analysis request information and the second analysis request. By storing the first analysis request information in the cache and setting the life cycle of the cache, the DNS analysis time length of the dual-stack user can be accurately calculated aiming at the first analysis request information and the second analysis request of the same terminal device. The method is compatible with the DNS analysis time length of the existing single-stack user, and meanwhile, the problem of accurate calculation of the DNS analysis time length of the double-stack user in various abnormal scenes is solved.
Fig. 2 shows a functional block diagram of a dual stack user DNS resolution duration calculation apparatus according to an embodiment of the present invention. As shown in fig. 2, the apparatus for calculating DNS resolution duration of dual stack users includes the following modules:
the detection module 210 is adapted to: detecting whether an IPV6 analysis result corresponding to a first analysis request is received or not according to the detected IPV6 first analysis request initiated by the terminal equipment;
the caching module 220 is adapted to: if the detection module 210 does not receive the IPV6 parsing result corresponding to the first parsing request, storing the first parsing request information of the terminal device in the cache, and setting a cache life cycle;
the acquisition module 230 is adapted to: acquiring a second analysis request initiated by the terminal equipment and detected in the cache life cycle;
the calculation module 240 is adapted to: if the second analysis request is an IPV4 analysis request, and the received corresponding IPV4 analysis result is detected, the first analysis request information is obtained according to the second analysis request, and the DNS analysis duration of the dual-stack user is calculated according to the first analysis request information and the second analysis request.
Optionally, the detection module 210 is further adapted to: based on a first analysis request of the IPV6 initiated by the terminal equipment detected by the probe equipment of the signaling acquisition platform, the probe equipment detects whether an IPV6 analysis result corresponding to the first analysis request is received on an S1-U interface downlink.
Optionally, the apparatus further comprises: a single stack duration module 250.
The single stack duration module 250 is adapted to: if detecting that an IPV6 analysis result corresponding to the first analysis request is received, generating an IPV6 DNS document according to an IPV6 single stack DNS analysis mechanism; and calculating the single stack DNS resolution duration according to the time of initiating the IPV6 first resolution request and the time of receiving the IPV6 resolution result.
Optionally, the first resolution request information of the terminal device includes a number of the terminal device, a start time of the first resolution request, and/or domain name information.
Optionally, the first resolution request information of the terminal device is stored in a key-value pair manner, and the primary key is the number and domain name information of the terminal device.
Optionally, the calculation module 240 is further adapted to: acquiring the number and domain name information of the terminal equipment contained in the second analysis request; searching first analysis request information of the terminal equipment, which is the same as the number and domain name information of the terminal equipment of the second analysis request, in the cache, and acquiring first analysis request starting time of the first analysis request information of the terminal equipment; and calculating the time difference between the starting time of the first analysis request and the returning time of the IPV4 analysis result to obtain the DNS analysis duration of the dual-stack user.
Optionally, the apparatus further comprises: the module 260 is cleared.
The purge module 260 is adapted to: if the second resolution request is an IPV6 resolution request containing the same domain name information as the first resolution request, the cache is emptied.
The descriptions of the modules refer to the corresponding descriptions in the method embodiments, and are not repeated herein.
The application also provides a nonvolatile computer storage medium, wherein the computer storage medium stores at least one executable instruction, and the computer executable instruction can execute the method for calculating the DNS resolution duration of the dual stack user in any method embodiment.
Fig. 3 is a schematic structural diagram of an electronic device according to an embodiment of the present invention, and the specific embodiment of the present invention does not limit the specific implementation of the electronic device.
As shown in fig. 3, the electronic device may include: a processor (processor)302, a communication Interface 304, a memory 306, and a communication bus 308.
Wherein:
the processor 302, communication interface 304, and memory 306 communicate with each other via a communication bus 308.
A communication interface 304 for communicating with network elements of other devices, such as clients or other servers.
The processor 302 is configured to execute the program 310, and may specifically execute relevant steps in the above-described embodiment of the method for calculating a DNS resolution duration for a dual stack user.
In particular, program 310 may include program code comprising computer operating instructions.
The processor 302 may be a central processing unit CPU, or an Application Specific Integrated Circuit (ASIC), or one or more Integrated circuits configured to implement an embodiment of the present invention. The electronic device comprises one or more processors, which can be the same type of processor, such as one or more CPUs; or may be different types of processors such as one or more CPUs and one or more ASICs.
And a memory 306 for storing a program 310. Memory 306 may comprise high-speed RAM memory and may also include non-volatile memory (non-volatile memory), such as at least one disk memory.
The program 310 may be specifically configured to enable the processor 302 to execute the method for calculating a DNS resolution duration of a dual stack user in any of the method embodiments described above. For specific implementation of each step in the program 310, reference may be made to corresponding steps and corresponding descriptions in units in the foregoing dual-stack user DNS resolution duration calculation embodiment, which are not described herein again. It can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described devices and modules may refer to the corresponding process descriptions in the foregoing method embodiments, and are not described herein again.
The algorithms and displays presented herein are not inherently related to any particular computer, virtual machine, or other apparatus. Various general purpose systems may also be used with the teachings herein. The required structure for constructing such a system will be apparent from the description above. Moreover, the present invention is not directed to any particular programming language. It is appreciated that a variety of programming languages may be used to implement the teachings of the present invention as described herein, and any descriptions of specific languages are provided above to disclose the best mode of the invention.
In the description provided herein, numerous specific details are set forth. It is understood, however, that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure an understanding of this description.
Similarly, it should be appreciated that in the foregoing description of exemplary embodiments of the invention, various features of the invention are sometimes grouped together in a single embodiment, figure, or description thereof for the purpose of streamlining the disclosure and aiding in the understanding of one or more of the various inventive aspects. However, the disclosed method should not be interpreted as reflecting an intention that: that the invention as claimed requires more features than are expressly recited in each claim. Rather, as the following claims reflect, inventive aspects lie in less than all features of a single foregoing disclosed embodiment. Thus, the claims following the detailed description are hereby expressly incorporated into this detailed description, with each claim standing on its own as a separate embodiment of this invention.
Those skilled in the art will appreciate that the modules in the device in an embodiment may be adaptively changed and disposed in one or more devices different from the embodiment. The modules or units or components of the embodiments may be combined into one module or unit or component, and furthermore they may be divided into a plurality of sub-modules or sub-units or sub-components. All of the features disclosed in this specification (including any accompanying claims, abstract and drawings), and all of the processes or elements of any method or apparatus so disclosed, may be combined in any combination, except combinations where at least some of such features and/or processes or elements are mutually exclusive. Each feature disclosed in this specification (including any accompanying claims, abstract and drawings) may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated otherwise.
Furthermore, those skilled in the art will appreciate that while some embodiments described herein include some features included in other embodiments, rather than other features, combinations of features of different embodiments are meant to be within the scope of the invention and form different embodiments. For example, in the claims, any of the claimed embodiments may be used in any combination.
The various component embodiments of the invention may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. It will be appreciated by those skilled in the art that a microprocessor or Digital Signal Processor (DSP) may be used in practice to implement some or all of the functions of some or all of the components in the dual stack user DNS resolution time length calculation apparatus according to embodiments of the present invention. The present invention may also be embodied as apparatus or device programs (e.g., computer programs and computer program products) for performing a portion or all of the methods described herein. Such programs implementing the present invention may be stored on computer-readable media or may be in the form of one or more signals. Such a signal may be downloaded from an internet website or provided on a carrier signal or in any other form.
It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and that those skilled in the art will be able to design alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention may be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these means may be embodied by one and the same item of hardware. The usage of the words first, second and third, etcetera do not indicate any ordering. These words may be interpreted as names.

Claims (10)

1. A method for calculating DNS resolution duration of a dual-stack user is characterized by comprising the following steps:
detecting whether an IPV6 analysis result corresponding to a first analysis request is received or not according to the detected IPV6 first analysis request initiated by the terminal equipment;
if not, storing the first analysis request information of the terminal equipment in the cache, and setting a cache life cycle;
acquiring a second analysis request initiated by the terminal equipment and detected in the cache life cycle;
if the second analysis request is an IPV4 analysis request, detecting that a corresponding IPV4 analysis result is received, acquiring first analysis request information according to the second analysis request, and calculating DNS analysis duration of the dual-stack user according to the first analysis request information and the second analysis request.
2. The method according to claim 1, wherein the detecting, according to the detected IPV6 first resolution request initiated by the terminal device, whether an IPV6 resolution result corresponding to the first resolution request is received further comprises:
based on a first analysis request of IPV6 initiated by terminal equipment detected by probe equipment of a signaling acquisition platform, the probe equipment detects whether an IPV6 analysis result corresponding to the first analysis request is received on an S1-U interface downlink.
3. The method of claim 1, further comprising:
if detecting that an IPV6 analysis result corresponding to the first analysis request is received, generating an IPV6 DNS document according to an IPV6 single stack DNS analysis mechanism;
and calculating the single stack DNS resolution duration according to the time of initiating the IPV6 first resolution request and the time of receiving the IPV6 resolution result.
4. The method according to claim 1, wherein the first resolution request information of the terminal device comprises a number of the terminal device, a first resolution request start time and/or domain name information.
5. The method according to claim 4, wherein the first resolution request information of the terminal device is stored in a key-value pair manner, and the primary key is the number and domain name information of the terminal device.
6. The method of claim 4, wherein the obtaining first resolution request information according to the second resolution request, and the calculating a DNS resolution duration for a dual stack user according to the first resolution request information and the second resolution request further comprises:
acquiring the number and domain name information of the terminal equipment contained in the second analysis request;
searching first analysis request information of the terminal equipment, which is the same as the number and domain name information of the terminal equipment of the second analysis request, in the cache, and acquiring first analysis request starting time of the first analysis request information of the terminal equipment;
and calculating a time difference value between the starting time of the first analysis request and the returning time of the IPV4 analysis result to obtain the DNS analysis duration of the dual-stack user.
7. The method according to any one of claims 1-6, further comprising:
and if the second resolution request is an IPV6 resolution request containing the same domain name information as the first resolution request, emptying the cache.
8. A dual-stack user DNS resolution duration calculation device is characterized by comprising:
the detection module is suitable for detecting whether an IPV6 analysis result corresponding to a first analysis request is received or not according to the detected IPV6 first analysis request initiated by the terminal equipment;
the cache module is suitable for storing the first analysis request information of the terminal equipment in a cache and setting a cache life cycle if the detection module does not receive the IPV6 analysis result corresponding to the first analysis request;
the acquisition module is suitable for acquiring a second analysis request initiated by the terminal equipment detected in the cache life cycle;
and the calculation module is suitable for acquiring first analysis request information according to the second analysis request and calculating DNS analysis duration of the dual-stack user according to the first analysis request information and the second analysis request if the second analysis request is an IPV4 analysis request and detecting that a corresponding IPV4 analysis result is received.
9. An electronic device, comprising: the system comprises a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface complete mutual communication through the communication bus;
the memory is used for storing at least one executable instruction, and the executable instruction causes the processor to execute the operation corresponding to the dual stack user DNS resolution duration calculation method according to any one of claims 1-7.
10. A computer storage medium, wherein at least one executable instruction is stored in the storage medium, and the executable instruction causes a processor to execute an operation corresponding to the dual stack user DNS resolution duration calculation method according to any one of claims 1 to 7.
CN202010910882.0A 2020-09-02 2020-09-02 Dual-stack user DNS analysis duration calculation method and device Active CN114143230B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010910882.0A CN114143230B (en) 2020-09-02 2020-09-02 Dual-stack user DNS analysis duration calculation method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010910882.0A CN114143230B (en) 2020-09-02 2020-09-02 Dual-stack user DNS analysis duration calculation method and device

Publications (2)

Publication Number Publication Date
CN114143230A true CN114143230A (en) 2022-03-04
CN114143230B CN114143230B (en) 2023-07-21

Family

ID=80438140

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010910882.0A Active CN114143230B (en) 2020-09-02 2020-09-02 Dual-stack user DNS analysis duration calculation method and device

Country Status (1)

Country Link
CN (1) CN114143230B (en)

Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007214671A (en) * 2006-02-07 2007-08-23 Seiko Epson Corp Client device and program
JP2008042881A (en) * 2006-07-25 2008-02-21 Paz Itzhaki Weinberger Relay medium for internet data transmission
CN102036422A (en) * 2009-09-27 2011-04-27 中国移动通信集团公司 Method, device and system for acquiring IP address
JP2012109887A (en) * 2010-11-19 2012-06-07 Nec Access Technica Ltd Resource record control system, resource record control method, application determination method, and program
WO2012089013A1 (en) * 2010-12-29 2012-07-05 华为技术有限公司 Domain name system caching method, authorized domain name server and caching domain name server
JP2012239083A (en) * 2011-05-12 2012-12-06 Nec Access Technica Ltd FAULT ANALYSIS SYSTEM, IPv4-IPv6 CONVERTER, FAULT ANALYSIS METHOD, AND PROGRAM
CN103004173A (en) * 2012-09-29 2013-03-27 华为技术有限公司 Address allocation method, device and system thereof
CN103259740A (en) * 2013-04-27 2013-08-21 杭州华三通信技术有限公司 Load balancing processing method and device
CN103888552A (en) * 2012-12-24 2014-06-25 中国电信股份有限公司 Fast Internet accessing method and system and terminal device
CN104702707A (en) * 2013-12-06 2015-06-10 中国联合网络通信集团有限公司 Method and device for data processing
CN104852995A (en) * 2014-02-14 2015-08-19 中国电信股份有限公司 Method for accessing network resource, home gateway and system thereof
CN106161669A (en) * 2015-04-28 2016-11-23 阿里巴巴集团控股有限公司 A kind of quick domain name analytic method and system and terminal thereof and server
WO2018137180A1 (en) * 2017-01-25 2018-08-02 华为技术有限公司 Domain name access method and device
CN110855806A (en) * 2019-09-27 2020-02-28 网宿科技股份有限公司 Domain name request processing method and device and server
CN115118700A (en) * 2022-06-27 2022-09-27 北京天融信网络安全技术有限公司 Communication method and communication system

Patent Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007214671A (en) * 2006-02-07 2007-08-23 Seiko Epson Corp Client device and program
JP2008042881A (en) * 2006-07-25 2008-02-21 Paz Itzhaki Weinberger Relay medium for internet data transmission
CN102036422A (en) * 2009-09-27 2011-04-27 中国移动通信集团公司 Method, device and system for acquiring IP address
JP2012109887A (en) * 2010-11-19 2012-06-07 Nec Access Technica Ltd Resource record control system, resource record control method, application determination method, and program
WO2012089013A1 (en) * 2010-12-29 2012-07-05 华为技术有限公司 Domain name system caching method, authorized domain name server and caching domain name server
JP2012239083A (en) * 2011-05-12 2012-12-06 Nec Access Technica Ltd FAULT ANALYSIS SYSTEM, IPv4-IPv6 CONVERTER, FAULT ANALYSIS METHOD, AND PROGRAM
CN103004173A (en) * 2012-09-29 2013-03-27 华为技术有限公司 Address allocation method, device and system thereof
CN103888552A (en) * 2012-12-24 2014-06-25 中国电信股份有限公司 Fast Internet accessing method and system and terminal device
CN103259740A (en) * 2013-04-27 2013-08-21 杭州华三通信技术有限公司 Load balancing processing method and device
CN104702707A (en) * 2013-12-06 2015-06-10 中国联合网络通信集团有限公司 Method and device for data processing
CN104852995A (en) * 2014-02-14 2015-08-19 中国电信股份有限公司 Method for accessing network resource, home gateway and system thereof
CN106161669A (en) * 2015-04-28 2016-11-23 阿里巴巴集团控股有限公司 A kind of quick domain name analytic method and system and terminal thereof and server
WO2018137180A1 (en) * 2017-01-25 2018-08-02 华为技术有限公司 Domain name access method and device
CN110855806A (en) * 2019-09-27 2020-02-28 网宿科技股份有限公司 Domain name request processing method and device and server
CN115118700A (en) * 2022-06-27 2022-09-27 北京天融信网络安全技术有限公司 Communication method and communication system

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
李婷婷等,: "\"有线电视网IPv6支持能力测试流程分析\"", 《广播与电视技术》 *
秦丰林;仇一泓;郭晓东;: "\"双栈环境下的DNS可靠性增强方法\"", 东南大学学报(自然科学版) *

Also Published As

Publication number Publication date
CN114143230B (en) 2023-07-21

Similar Documents

Publication Publication Date Title
CN109688202B (en) Interface data processing method and device, computing equipment and storage medium
CN103281409B (en) Based on mobile Internet domain name analytic method and the dns server of Transmission Control Protocol
CN110740191B (en) Resource access method, device, electronic equipment and storage medium
CN103780714B (en) The detection method of a kind of dns server and device
CN113366815B (en) Network resource request method, device, electronic equipment and storage medium
CN111327647B (en) Method and device for providing service to outside by container and electronic equipment
CN103581351B (en) The method and apparatus of network access
CN104683330A (en) Domain name hijacking resisting method and device
EP3179370A1 (en) Webpage automatic test method and apparatus
CN112954089A (en) Method, device and equipment for analyzing data and storage medium
WO2017166524A1 (en) Domain name parsing method and apparatus
CN109729058B (en) Traffic hijacking analysis method and device
CN112671574B (en) Front-end and back-end joint debugging method and device, proxy equipment and storage medium
CN110784364B (en) Data monitoring method and device, storage medium and terminal
CN114143230B (en) Dual-stack user DNS analysis duration calculation method and device
CN114500456B (en) DNS (Domain name System) scheduling optimization method and device based on whole network sniffing and computing equipment
CN114448849B (en) Method for detecting supporting mode of IPv6 network of website and electronic equipment
CN113382093B (en) Domain name resolution method, electronic device and system
CN114356456A (en) Service processing method, device, storage medium and electronic equipment
CN111082977B (en) Method and device for acquiring IP address and terminal equipment
CN110635958B (en) Network fault diagnosis method, device and storage medium
CN114520784A (en) Dynamic content accelerated access method and device
CN114338630A (en) Domain name access method, device, electronic equipment, storage medium and program product
CN110809064B (en) IP address switching method, device and system
JP6787846B2 (en) Suspected location estimation device and suspected location estimation method

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