CN107888717B - Domain name determination method and device and electronic equipment - Google Patents

Domain name determination method and device and electronic equipment Download PDF

Info

Publication number
CN107888717B
CN107888717B CN201711428418.2A CN201711428418A CN107888717B CN 107888717 B CN107888717 B CN 107888717B CN 201711428418 A CN201711428418 A CN 201711428418A CN 107888717 B CN107888717 B CN 107888717B
Authority
CN
China
Prior art keywords
domain name
accelerated
server corresponding
service
target
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
Application number
CN201711428418.2A
Other languages
Chinese (zh)
Other versions
CN107888717A (en
Inventor
陈伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Sohu New Media Information Technology Co Ltd
Original Assignee
Beijing Sohu New Media Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Sohu New Media Information Technology Co Ltd filed Critical Beijing Sohu New Media Information Technology Co Ltd
Priority to CN201711428418.2A priority Critical patent/CN107888717B/en
Publication of CN107888717A publication Critical patent/CN107888717A/en
Application granted granted Critical
Publication of CN107888717B publication Critical patent/CN107888717B/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
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/45Network directories; Name-to-address mapping
    • H04L61/4505Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols
    • H04L61/4511Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols using domain name system [DNS]
    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
    • H04L67/61Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources taking into account QoS or priority requirements

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Environmental & Geological Engineering (AREA)
  • Computer And Data Communications (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention provides a domain name determining method, a domain name determining device and electronic equipment. The invention does not depend on one CDN service provider any more, and further can avoid the condition that the workload of the CDN server is larger and the network delay is larger when a plurality of users in the same region access the same CDN server at the same time when the number of CDN servers of one CDN service provider in a certain region is less. And moreover, the domain name is accelerated to serve the user with the best network condition, so that the network delay can be reduced, and the user experience is improved.

Description

Domain name determination method and device and electronic equipment
Technical Field
The present invention relates to the field of communications, and in particular, to a method and an apparatus for determining a domain name, and an electronic device.
Background
Today, to improve user experience, a content delivery network CDN server is deployed to reduce network latency. When a user requests data, a CDN server closer to the user is selected to serve the user.
Typically, a user will only select a CDN server deployed by a CDN service provider to provide services. When the number of CDN servers of the CDN service provider in a certain area is small, and a plurality of users located in the same area access the same CDN server at the same time, the workload of the CDN server may be large, and thus the network delay may be large, and user experience may be reduced.
Disclosure of Invention
In view of this, the present invention provides a method, an apparatus, and an electronic device for determining a domain name, so as to solve the problem that when the number of CDN servers in a certain area of a CDN service provider is small, and when multiple users in the same area access the same CDN server at the same time, the workload of the CDN server is large, and thus the network delay is large, and the user experience is reduced.
In order to solve the technical problems, the invention adopts the following technical scheme:
a domain name determining method is applied to electronic equipment and comprises the following steps:
acquiring a domain name mapping relation; the domain name mapping relation comprises a corresponding relation between a domain name and a plurality of accelerated domain names; the accelerating domain name is a service domain name set by a supplier for the domain name; the corresponding suppliers of each accelerated domain name are different;
determining a target domain name from the accelerated domain names according to the network condition of the server corresponding to each accelerated domain name; wherein the target domain name is an acceleration domain name with the best network condition of a server corresponding to the acceleration domain names;
and providing service for the user by using the server corresponding to the target domain name.
Preferably, the determining a target domain name from the plurality of accelerated domain names according to the network condition of the server corresponding to each accelerated domain name includes:
measuring the speed of the server corresponding to each accelerated domain name to obtain the service response time of the server corresponding to each accelerated domain name;
setting the weight of each accelerated domain name according to the service response time of the server corresponding to each accelerated domain name; the shorter the service response time of the server corresponding to the accelerated domain name is, the larger the weight of the accelerated domain name is;
and taking the corresponding accelerated domain name with the maximum weight value as the target domain name.
Preferably, after setting the weight of each accelerated domain name according to the service response time of the server corresponding to each accelerated domain name, the method further includes:
generating a lookup table according to the network information of the network used by the electronic device, the protocol IP address interconnected among the networks of the electronic device, the service response time of the server corresponding to each accelerated domain name and the weight of each accelerated domain name;
and the query table is used for directly selecting the accelerated domain name corresponding to the maximum weight value in the query table as the domain name for providing service for the user when the domain name is used under the network information and the IP address next time.
Preferably, in the process of providing a service for a user by using the target domain name, the method further includes:
and when the server corresponding to the target domain name fails to access or the response time is longer than the preset time, reducing the weight of the target domain name.
A domain name determining device applied to an electronic device comprises:
the acquisition module is used for acquiring a domain name mapping relation; the domain name mapping relation comprises a corresponding relation between a domain name and a plurality of accelerated domain names; the accelerating domain name is a service domain name set by a supplier for the domain name; the corresponding suppliers of each accelerated domain name are different;
the determining module is used for determining a target domain name from the accelerated domain names according to the network condition of the server corresponding to each accelerated domain name; wherein the target domain name is an acceleration domain name with the best network condition of a server corresponding to the acceleration domain names;
and the service module is used for providing service for the user by using the server corresponding to the target domain name.
Preferably, the determining module comprises:
the speed measuring sub-module is used for measuring the speed of the server corresponding to each accelerated domain name to obtain the service response time of the server corresponding to each accelerated domain name;
the setting sub-module is used for setting the weight of each accelerated domain name according to the service response time of the server corresponding to each accelerated domain name; the shorter the service response time of the server corresponding to the accelerated domain name is, the larger the weight of the accelerated domain name is;
and the selection submodule is used for taking the corresponding accelerated domain name with the largest weight value as the target domain name.
Preferably, the method further comprises the following steps:
the generating module is used for setting the weight of each accelerated domain name by the sub-module according to the service response time of the server corresponding to each accelerated domain name, and then generating a query table according to the network information of the network used by the electronic equipment, the protocol IP addresses interconnected among the networks of the electronic equipment, the service response time of the server corresponding to each accelerated domain name and the weight of each accelerated domain name;
and the query table is used for directly selecting the accelerated domain name corresponding to the maximum weight value in the query table as the domain name for providing service for the user when the domain name is used under the network information and the IP address next time.
Preferably, the method further comprises the following steps:
and the adjusting module is used for reducing the weight of the target domain name when the server corresponding to the target domain name fails to access or the response time is longer than the preset time in the process that the service module provides service for the user by using the server corresponding to the target domain name.
An electronic device, comprising: a memory and a processor;
wherein the memory is used for storing programs;
the processor is configured to invoke a program, wherein the program is configured to:
acquiring a domain name mapping relation; the domain name mapping relation comprises a corresponding relation between a domain name and a plurality of accelerated domain names; the accelerating domain name is a service domain name set by a supplier for the domain name; the corresponding suppliers of each accelerated domain name are different;
determining a target domain name from the accelerated domain names according to the network condition of the server corresponding to each accelerated domain name; wherein the target domain name is an acceleration domain name with the best network condition of a server corresponding to the acceleration domain names;
and providing service for the user by using the server corresponding to the target domain name.
Compared with the prior art, the invention has the following beneficial effects:
the invention provides a domain name determining method, a domain name determining device and electronic equipment. The invention does not depend on one CDN service provider any more, and further can avoid the condition that the workload of the CDN server is larger and the network delay is larger when a plurality of users in the same region access the same CDN server at the same time when the number of CDN servers of one CDN service provider in a certain region is less. And moreover, the domain name is accelerated to serve the user with the best network condition, so that the network delay can be reduced, and the user experience is improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
FIG. 1 is a flow chart of a method for determining a domain name according to the present invention;
fig. 2 is a flowchart of another domain name determining method provided in the present invention;
fig. 3 is a schematic structural diagram of a domain name determining apparatus provided in the present invention;
fig. 4 is a schematic structural diagram of another domain name determining apparatus provided in the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The embodiment of the invention provides a domain name determining method, which is applied to electronic equipment, wherein the electronic equipment can be a mobile phone, a tablet, a notebook and the like. At least one mobile phone software APP is installed in the electronic equipment.
Referring to fig. 1, the domain name determining method may include:
s11, acquiring a domain name mapping relation;
the domain name mapping relationship comprises a corresponding relationship between a domain name and a plurality of accelerated domain names, wherein the accelerated domain name is a service domain name set by a supplier for the domain name; and the corresponding supplier of each acceleration domain name is different.
Specifically, the provider is a content delivery network CDN provider, and each provider may deploy an acceleration domain name for the same domain name. Thus, the same domain name corresponds to multiple accelerated domain names.
The domain name mapping relation is generated by a server corresponding to an APP in the electronic equipment and is imported into the electronic equipment in a push mode.
S12, determining a target domain name from the accelerated domain names according to the network condition of the server corresponding to each accelerated domain name;
wherein the target domain name is an acceleration domain name with the best network condition of a corresponding server in the plurality of acceleration domain names. The network condition may be a network open flow condition.
The accelerated domain names other than the target domain name may constitute an alternative domain name list, and when the target domain name cannot be used, the accelerated domain names in the alternative domain name list are used.
Optionally, on the basis of this embodiment, step S12 may include:
s21, measuring the speed of the server corresponding to each accelerated domain name to obtain the service response time of the server corresponding to each accelerated domain name;
specifically, an internet packet explorer ping packet may be sent to the server corresponding to the accelerated domain name, and then a return result of the server is waited for, so as to obtain the service response time of the server.
Wherein, the shorter the service response time is, the faster the network speed of the server is.
It should be noted that, when the speed measurement is performed, when a network handover occurs, the speed measurement needs to be performed again.
The network handover refers to handover from a wireless network to a mobile network or handover from the mobile network to the wireless network.
S22, setting the weight of each accelerated domain name according to the service response time of the server corresponding to each accelerated domain name;
wherein, the shorter the service response time of the server corresponding to the accelerated domain name is, the larger the weight of the accelerated domain name is.
Specifically, the shorter the service response time of the server, the larger the weight is set.
For example, assuming there are three speed-up domain names, the corresponding service response times are 10s, 5s and 3s, respectively. The weights may be set to 0.1, 0.2, and 0.3, respectively.
And S23, taking the corresponding accelerated domain name with the largest weight value as the target domain name.
Specifically, as can be seen from the above description, the shorter the service response time is, the greater the weight setting is, if a server with the fastest service is desired to be selected, the server with the largest weight value should be selected, that is, the accelerated domain name with the largest weight value is selected as the target domain name.
And S13, providing service for the user by using the server corresponding to the target domain name.
Specifically, the domain name requested by the user is modified into the target domain name, and the server corresponding to the target domain name can be used for providing service for the user. The service providing may be sending content corresponding to the user request to the electronic device, and enabling the user to view the content that the user wants to view on the electronic device, such as novel, pictures, and web pages.
In this embodiment, each CDN service provider provides an acceleration domain name, and selects an acceleration domain name with the best network condition from the multiple acceleration domain names as an acceleration domain name for providing a service to a user. The method and the system do not depend on one CDN service provider any more, further can avoid the condition that the workload of the CDN server is larger and further the network delay is larger when a plurality of users in the same region access the same CDN server at the same time when the number of CDN servers of one CDN service provider in a certain region is less, and further use the accelerated domain name with the best network condition to serve the user, so that the network delay can be reduced and the user experience can be improved.
Optionally, on the basis of the embodiment corresponding to fig. 2, after step S22, the method further includes:
generating a lookup table according to the network information of the network used by the electronic device, the protocol IP address interconnected among the networks of the electronic device, the service response time of the server corresponding to each accelerated domain name and the weight of each accelerated domain name;
and the query table is used for directly selecting the accelerated domain name corresponding to the maximum weight value in the query table as the domain name for providing service for the user when the domain name is used under the network information and the IP address next time.
Specifically, the electronic device of the user can use the own mobile phone network to surf the internet, and can also be connected wirelessly, and can be connected with different radios in different places. When the user replaces the IC card, the IP address of the electronic device is different.
Therefore, in order to record the service response time of the server corresponding to the accelerated domain name and the weight of the accelerated domain name under different conditions, the network information of the network used by the electronic device, the protocol IP addresses interconnected between the networks of the electronic device, the service response time of the server corresponding to each accelerated domain name and the weight of each accelerated domain name are constructed into a lookup table.
And recording service integration identifiers SSID or mobile network ports of different wireless fidelity WIFI, service response time of servers corresponding to different acceleration domain names corresponding to different IP addresses and weight of each acceleration domain name in a lookup table.
When this look-up table is available, the look-up table can be used directly next time to determine the speed-up domain name that provides service to the user.
Specifically, the accelerated domain name corresponding to the largest weight value in the lookup table is directly selected as the domain name for providing service to the user.
It should be noted that, in this embodiment, a lookup table may be generated according to network information of a network currently used by an electronic device, a protocol IP address interconnected between networks of the electronic device, a service response time of a server corresponding to each accelerated domain name, and a weight of each accelerated domain name.
When the user changes the wireless or the IC card, the service response time of the server corresponding to each accelerated domain name and the weight of each accelerated domain name can be obtained again and added into the lookup table. Under the condition of different networks or IC cards, the service response time of the server corresponding to each accelerated domain name and the weight of each accelerated domain name can be directly obtained without speed measurement, and the time for determining the target domain name is reduced.
Optionally, on the basis of this embodiment, in the process of providing a service for a user by using the target domain name, the method further includes:
and when the server corresponding to the target domain name fails to access or the response time is longer than the preset time, reducing the weight of the target domain name.
The preset time is set by a technician according to a specific use scene.
Specifically, after the target domain name is determined, when the server corresponding to the target domain name is used for working, because the server may have the condition that the workload is suddenly increased and the like, the current network speed of the server is poor, and the condition that the access fails or the response time is longer than the preset time can occur.
In this embodiment, a lookup table can be generated, and then a target domain name can be obtained by directly looking up the table when the same domain name is used next time. And the weight can be dynamically adjusted according to the service condition of the server corresponding to the target domain name.
Optionally, on the basis of the embodiment of the domain name determining method, another embodiment of the present invention provides a domain name determining apparatus, which is applied to an electronic device, and with reference to fig. 3, the method may include:
an obtaining module 101, configured to obtain a domain name mapping relationship; the domain name mapping relation comprises a corresponding relation between a domain name and a plurality of accelerated domain names; the accelerating domain name is a service domain name set by a supplier for the domain name; the corresponding suppliers of each accelerated domain name are different;
a determining module 102, configured to determine a target domain name from the multiple accelerated domain names according to a network condition of a server corresponding to each accelerated domain name; wherein the target domain name is an acceleration domain name with the best network condition of a server corresponding to the acceleration domain names;
and the service module 103 is configured to provide a service for the user by using the server corresponding to the target domain name.
Further, referring to fig. 4, the determining module 102 includes:
a speed measuring sub-module 1021, configured to measure the speed of the server corresponding to each accelerated domain name to obtain the service response time of the server corresponding to each accelerated domain name;
the setting sub-module 1022 is configured to set the weight of each accelerated domain name according to the service response time of the server corresponding to each accelerated domain name; the shorter the service response time of the server corresponding to the accelerated domain name is, the larger the weight of the accelerated domain name is;
and the selecting sub-module 1023 is used for taking the corresponding accelerated domain name with the largest weight value as the target domain name.
In this embodiment, each CDN service provider provides an acceleration domain name, and selects an acceleration domain name with the best network condition from the multiple acceleration domain names as an acceleration domain name for providing a service to a user. The method and the system do not depend on one CDN service provider any more, further can avoid the condition that the workload of the CDN server is larger and further the network delay is larger when a plurality of users in the same region access the same CDN server at the same time when the number of CDN servers of one CDN service provider in a certain region is less, and further use the accelerated domain name with the best network condition to serve the user, so that the network delay can be reduced and the user experience can be improved.
It should be noted that, for the working processes of each module and sub-module in this embodiment, please refer to the corresponding description in the above embodiments, which is not described herein again.
Optionally, on the basis of the corresponding embodiment in fig. 2, the method further includes:
the generating module is used for setting the weight of each accelerated domain name by the sub-module according to the service response time of the server corresponding to each accelerated domain name, and then generating a query table according to the network information of the network used by the electronic equipment, the protocol IP addresses interconnected among the networks of the electronic equipment, the service response time of the server corresponding to each accelerated domain name and the weight of each accelerated domain name;
and the query table is used for directly selecting the accelerated domain name corresponding to the maximum weight value in the query table as the domain name for providing service for the user when the domain name is used under the network information and the IP address next time.
Further, still include:
and the adjusting module is used for reducing the weight of the target domain name when the server corresponding to the target domain name fails to access or the response time is longer than the preset time in the process that the service module provides service for the user by using the server corresponding to the target domain name.
In this embodiment, a lookup table can be generated, and then a target domain name can be obtained by directly looking up the table when the same domain name is used next time. And the weight can be dynamically adjusted according to the service condition of the server corresponding to the target domain name.
It should be noted that, for the working processes of each module and sub-module in this embodiment, please refer to the corresponding description in the above embodiments, which is not described herein again.
Optionally, on the basis of the embodiments of the domain name determining method and apparatus, another embodiment of the present invention provides an electronic device, including: a memory and a processor;
wherein the memory is used for storing programs;
the processor is configured to invoke a program, wherein the program is configured to:
acquiring a domain name mapping relation; the domain name mapping relation comprises a corresponding relation between a domain name and a plurality of accelerated domain names; the accelerating domain name is a service domain name set by a supplier for the domain name; the corresponding suppliers of each accelerated domain name are different;
determining a target domain name from the accelerated domain names according to the network condition of the server corresponding to each accelerated domain name; wherein the target domain name is an acceleration domain name with the best network condition of a server corresponding to the acceleration domain names;
and providing service for the user by using the server corresponding to the target domain name.
Further, when the processor is configured to determine the target domain name from the plurality of accelerated domain names according to the network status of the server corresponding to each accelerated domain name, the processor is specifically configured to:
measuring the speed of the server corresponding to each accelerated domain name to obtain the service response time of the server corresponding to each accelerated domain name;
setting the weight of each accelerated domain name according to the service response time of the server corresponding to each accelerated domain name; the shorter the service response time of the server corresponding to the accelerated domain name is, the larger the weight of the accelerated domain name is;
and taking the corresponding accelerated domain name with the maximum weight value as the target domain name.
Further, the processor is configured to, after setting the weight of each accelerated domain name according to the service response time of the server corresponding to each accelerated domain name, further:
generating a lookup table according to the network information of the network used by the electronic device, the protocol IP address interconnected among the networks of the electronic device, the service response time of the server corresponding to each accelerated domain name and the weight of each accelerated domain name;
and the query table is used for directly selecting the accelerated domain name corresponding to the maximum weight value in the query table as the domain name for providing service for the user when the domain name is used under the network information and the IP address next time.
Further, the processor is configured to, in the process of providing a service to the user using the target domain name, further:
and when the server corresponding to the target domain name fails to access or the response time is longer than the preset time, reducing the weight of the target domain name.
In this embodiment, each CDN service provider provides an acceleration domain name, and selects an acceleration domain name with the best network condition from the multiple acceleration domain names as an acceleration domain name for providing a service to a user. The method and the system do not depend on one CDN service provider any more, further can avoid the condition that the workload of the CDN server is larger and further the network delay is larger when a plurality of users in the same region access the same CDN server at the same time when the number of CDN servers of one CDN service provider in a certain region is less, and further use the accelerated domain name with the best network condition to serve the user, so that the network delay can be reduced and the user experience can be improved.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). The memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may 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 computer storage media 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 that can be used to store information that can be accessed by a computing device.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in the process, method, article, or apparatus that comprises the element.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (7)

1. A domain name determining method applied to an electronic device includes:
acquiring a domain name mapping relation; the domain name mapping relation comprises a corresponding relation between a domain name and a plurality of accelerated domain names; the accelerating domain name is a service domain name set by a supplier for the domain name; the corresponding suppliers of each accelerated domain name are different; each supplier deploys an acceleration domain name for the same domain name;
sending a ping packet to the server corresponding to the accelerated domain name, and determining a target domain name from the accelerated domain names according to the network condition of the server corresponding to each accelerated domain name; wherein the target domain name is an acceleration domain name with the best network condition of a server corresponding to the acceleration domain names; the network condition of the server is preferably the weighted value is the maximum;
using the server corresponding to the target domain name to provide service for the user, and reducing the weight of the target domain name in a lookup table when the server corresponding to the target domain name fails to access or the response time is longer than the preset time in the process of using the target domain name to provide service for the user;
the look-up table is generated according to network information of networks used by the electronic equipment, protocol IP addresses interconnected among the networks of the electronic equipment, service response time of a server corresponding to each accelerated domain name and weight of each accelerated domain name.
2. The method according to claim 1, wherein the determining a target domain name from the plurality of accelerated domain names according to the network condition of the server corresponding to each accelerated domain name includes:
measuring the speed of the server corresponding to each accelerated domain name to obtain the service response time of the server corresponding to each accelerated domain name;
setting the weight of each accelerated domain name according to the service response time of the server corresponding to each accelerated domain name; the shorter the service response time of the server corresponding to the accelerated domain name is, the larger the weight of the accelerated domain name is;
and taking the corresponding accelerated domain name with the maximum weight value as the target domain name.
3. The method according to claim 2, wherein the lookup table is used for directly selecting an accelerated domain name corresponding to the largest weight value in the lookup table as the domain name for providing the service to the user when the domain name is used next time under the network information and the IP address.
4. A domain name determining apparatus, applied to an electronic device, comprising:
the acquisition module is used for acquiring a domain name mapping relation; the domain name mapping relation comprises a corresponding relation between a domain name and a plurality of accelerated domain names; the accelerating domain name is a service domain name set by a supplier for the domain name; the corresponding suppliers of each accelerated domain name are different; each supplier deploys an acceleration domain name for the same domain name;
the determining module is used for sending a ping packet to the server corresponding to the accelerated domain name and determining a target domain name from the accelerated domain names according to the network condition of the server corresponding to each accelerated domain name; wherein the target domain name is an acceleration domain name with the best network condition of a server corresponding to the acceleration domain names; the network condition of the server is preferably the weighted value is the maximum;
the service module is used for providing service for the user by using the server corresponding to the target domain name;
the adjusting module is used for reducing the weight of the target domain name in a query table when the server corresponding to the target domain name fails to access or the response time is longer than the preset time in the process that the service module provides service for the user by using the server corresponding to the target domain name;
the look-up table is generated according to network information of networks used by the electronic equipment, protocol IP addresses interconnected among the networks of the electronic equipment, service response time of a server corresponding to each accelerated domain name and weight of each accelerated domain name.
5. The domain name determining apparatus according to claim 4, wherein the determining module comprises:
the speed measuring sub-module is used for measuring the speed of the server corresponding to each accelerated domain name to obtain the service response time of the server corresponding to each accelerated domain name;
the setting sub-module is used for setting the weight of each accelerated domain name according to the service response time of the server corresponding to each accelerated domain name; the shorter the service response time of the server corresponding to the accelerated domain name is, the larger the weight of the accelerated domain name is;
and the selection submodule is used for taking the corresponding accelerated domain name with the largest weight value as the target domain name.
6. The apparatus according to claim 5, wherein the lookup table is configured to directly select an accelerated domain name corresponding to a maximum weight value in the lookup table as the domain name for providing the service to the user when the domain name is used next time under the network information and the IP address.
7. An electronic device, comprising: a memory and a processor;
wherein the memory is used for storing programs;
the processor is configured to invoke a program, wherein the program is configured to:
acquiring a domain name mapping relation; the domain name mapping relation comprises a corresponding relation between a domain name and a plurality of accelerated domain names; the accelerating domain name is a service domain name set by a supplier for the domain name; the corresponding suppliers of each accelerated domain name are different; each supplier deploys an acceleration domain name for the same domain name;
sending a ping packet to the server corresponding to the accelerated domain name, and determining a target domain name from the accelerated domain names according to the network condition of the server corresponding to each accelerated domain name; wherein the target domain name is an acceleration domain name with the best network condition of a server corresponding to the acceleration domain names; the network condition of the server is preferably the weighted value is the maximum;
using the server corresponding to the target domain name to provide service for the user, and reducing the weight of the target domain name in a lookup table when the server corresponding to the target domain name fails to access or the response time is longer than the preset time in the process of using the target domain name to provide service for the user;
the look-up table is generated according to network information of networks used by the electronic equipment, protocol IP addresses interconnected among the networks of the electronic equipment, service response time of a server corresponding to each accelerated domain name and weight of each accelerated domain name.
CN201711428418.2A 2017-12-26 2017-12-26 Domain name determination method and device and electronic equipment Active CN107888717B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711428418.2A CN107888717B (en) 2017-12-26 2017-12-26 Domain name determination method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711428418.2A CN107888717B (en) 2017-12-26 2017-12-26 Domain name determination method and device and electronic equipment

Publications (2)

Publication Number Publication Date
CN107888717A CN107888717A (en) 2018-04-06
CN107888717B true CN107888717B (en) 2021-04-20

Family

ID=61772424

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711428418.2A Active CN107888717B (en) 2017-12-26 2017-12-26 Domain name determination method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN107888717B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109769040A (en) * 2018-12-14 2019-05-17 平安普惠企业管理有限公司 Content delivery network service switching method, device, equipment and storage medium
CN110769058B (en) * 2019-10-25 2021-11-19 广州六一信息科技有限公司 Acceleration method and system based on multiple CDN service providers
CN110740191B (en) * 2019-10-29 2023-03-24 成都超有爱科技有限公司 Resource access method, device, electronic equipment and storage medium
CN112260853B (en) * 2020-09-17 2023-07-21 北京大米科技有限公司 Disaster recovery switching method and device, storage medium and electronic equipment
CN114827283A (en) * 2022-04-18 2022-07-29 上海擎朗智能科技有限公司 Resource access method, device, medium and robot
CN114928588B (en) * 2022-05-11 2024-02-13 上海移远通信技术股份有限公司 Server connection method, internet of things equipment, domain name server and regional server

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104144222A (en) * 2014-08-20 2014-11-12 北京阅联信息技术有限公司 Method and system for load balancing in DNS system based on alias record
CN105516391A (en) * 2015-12-25 2016-04-20 互联网域名系统北京市工程研究中心有限公司 CNAME-based DNS (domain name system) domain name resolution method

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10069787B2 (en) * 2014-04-01 2018-09-04 Cloudflare, Inc. Domain name system CNAME record management
CN105681491B (en) * 2016-04-08 2018-09-14 网宿科技股份有限公司 A kind of domain name mapping accelerated method, system and device
CN106657432B (en) * 2016-11-17 2019-10-15 中国移动通信集团江苏有限公司 Domain name analytic method and device

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104144222A (en) * 2014-08-20 2014-11-12 北京阅联信息技术有限公司 Method and system for load balancing in DNS system based on alias record
CN105516391A (en) * 2015-12-25 2016-04-20 互联网域名系统北京市工程研究中心有限公司 CNAME-based DNS (domain name system) domain name resolution method

Also Published As

Publication number Publication date
CN107888717A (en) 2018-04-06

Similar Documents

Publication Publication Date Title
CN107888717B (en) Domain name determination method and device and electronic equipment
CN108134766B (en) Service publishing method, device, system, server and client
CN109547286B (en) CDN node selection method, device and storage medium
CN113300985B (en) Data processing method, device, equipment and storage medium
US8935377B2 (en) Dynamic registration of listener resources for cloud services
US9088461B2 (en) Common web accessible data store for client side page processing
CN109660578B (en) CDN back-to-source processing method, device and system
US11036535B2 (en) Data storage method and apparatus
CN113709200B (en) Method and device for establishing communication connection
CN107135242B (en) Mongodb cluster access method, device and system
JP6966432B2 (en) Cloud file processing method and equipment
CN111431813A (en) Access current limiting method, device and storage medium
CN114553762A (en) Method and device for processing flow table items in flow table
CN108124021B (en) Method, device and system for obtaining Internet Protocol (IP) address and accessing website
US10397106B2 (en) Mobile conditions aware content delivery network
CN110764930B (en) Request or response processing method and device based on message mode
JP6484166B2 (en) Name resolution device, name resolution method, and name resolution program
CN111343293A (en) Method for acquiring client IP based on Kong gateway
CN116074282A (en) Data message response method and device, electronic equipment and storage medium
CN112040023B (en) Object access method and device, electronic equipment and machine-readable storage medium
CN115021831A (en) Weak network testing method, device, system, equipment and storage medium
CN113687940B (en) Load balancing method and device and physical machine
CN110476401B (en) Multimedia service content providing apparatus and method
CN110321133B (en) H5 application deployment method and device
US9953037B1 (en) Accelerating file downloads

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