WO2018210265A1 - Scheduling control method, apparatus, and system - Google Patents

Scheduling control method, apparatus, and system Download PDF

Info

Publication number
WO2018210265A1
WO2018210265A1 PCT/CN2018/087074 CN2018087074W WO2018210265A1 WO 2018210265 A1 WO2018210265 A1 WO 2018210265A1 CN 2018087074 W CN2018087074 W CN 2018087074W WO 2018210265 A1 WO2018210265 A1 WO 2018210265A1
Authority
WO
WIPO (PCT)
Prior art keywords
terminal
access
service
network
service node
Prior art date
Application number
PCT/CN2018/087074
Other languages
French (fr)
Chinese (zh)
Inventor
廖伟健
Original Assignee
腾讯科技(深圳)有限公司
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 腾讯科技(深圳)有限公司 filed Critical 腾讯科技(深圳)有限公司
Publication of WO2018210265A1 publication Critical patent/WO2018210265A1/en

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
    • H04L43/0852Delays
    • 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/10Mapping addresses of different types
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5007Internet protocol [IP] addresses
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1001Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
    • H04L67/1004Server selection for load balancing
    • H04L67/101Server selection for load balancing based on network conditions

Definitions

  • the present application relates to the field of network communication technologies, and in particular, to a scheduling control method, apparatus, and system.
  • IP Internet Protocol
  • domain names are generally used instead of IP addresses.
  • the terminal after receiving the network address input by the user, the terminal needs to send the domain name included in the network address to the domain name server, and the domain name server converts the domain name into an IP address before accessing the network based on the IP address.
  • Host. The process of converting a domain name into an IP address through a domain name server is commonly known as domain name resolution.
  • a service system In order to meet business needs or improve business processing efficiency, a service system generally deploys multiple service nodes, so that in order to make access requests to the service system can be directed to different service nodes, the domain name server corresponding to the service service system
  • the domain name of the service service system can be resolved to the IP address of a different service node.
  • the domain name server can store the correspondence between different operators, domain names, and IP addresses.
  • the present application provides a scheduling control method, apparatus, and system to improve access speed of a service node in a terminal access service system.
  • the application provides a scheduling control method, including:
  • the average access delay of each service node in the terminal access service system with different network attributes is obtained, where the network attribute of the terminal represents the operator and the geographical area to which the terminal belongs;
  • a service node suitable for access by a terminal having a network attribute is selected from a plurality of service nodes of the service system, wherein a target service suitable for access by a terminal having a target network attribute is selected.
  • a node the average access delay of the terminal having the target network attribute accessing the target service node satisfies a first preset condition
  • the IP address of the service node that the terminal having the network attribute is suitable to access is used as the IP address of the service node in the domain name resolution list that matches the network attribute.
  • the first preset condition includes:
  • the terminal having the target network attribute has the smallest average access delay for accessing the target service node.
  • the load or capacity of the target service node satisfies a second preset condition.
  • the IP address of the service node that the terminal having the network attribute is suitable to access is the IP address of the service node that matches the network attribute in the domain name resolution list, and includes:
  • the authoritative domain name server Sending, by the authoritative domain name server, the IP address of the service node corresponding to the local domain name server having the network attribute in the domain name resolution list stored by the authoritative domain name server.
  • the IP address of the service node that is configured to be accessible to the terminal with network attributes.
  • the IP address of the service node that the terminal having the network attribute is suitable to access is used as the IP address of the service node that matches the network attribute in the domain name resolution list, including :
  • IP address is configured as the IP address of the service node to which the terminal having the network attribute is suitable to access.
  • the obtaining an average access delay of each service node in a terminal access service system having different network attributes includes:
  • the obtaining an average access delay of each service node in a terminal access service system having different network attributes includes:
  • the average access delay of the terminal accessing each service node in the terminal set is calculated separately, and the difference is obtained.
  • the endpoint of the network attribute accesses the average access latency of each service node.
  • the obtaining an average access delay of each service node in a terminal access service system having different network attributes, respectively includes:
  • a service node that is suitable for access by the terminal having the network attribute is selected from the plurality of service nodes of the service system, including:
  • a service node suitable for access by a mobile terminal having a network attribute is selected from a plurality of service nodes of the service system;
  • the IP address of the service node that the terminal having the network attribute is suitable to access is used as the IP address of the service node in the domain name resolution list that matches the network attribute, including:
  • the IP address of the service node that the mobile terminal having the network attribute is suitable to access is used as the IP address of the service node in the first domain name resolution list that matches the network attribute, in the first domain name resolution list.
  • the IP address of the service node to which the mobile terminal having different network attributes needs to be scheduled is stored.
  • the obtaining an average access delay of each service node in a terminal access service system having different network attributes, respectively includes:
  • a service node that is suitable for access by the terminal having the network attribute is selected from the plurality of service nodes of the service system, including:
  • a service node suitable for access by a wired network terminal having a network attribute is selected from a plurality of service nodes of the service system;
  • the IP address of the service node that the terminal of the network attribute is suitable to access is used as the IP address of the service node in the domain name resolution list that matches the network attribute, including:
  • the IP address of the service node that the wired network terminal of the network attribute is suitable to access is used as the IP address of the service node in the second domain name resolution list that matches the network attribute, and the second domain name resolution list is The IP address of the service node to which the wired network terminal having different network attributes needs to be scheduled is stored.
  • the embodiment of the present application further provides a scheduling control apparatus, including:
  • An average delay acquisition unit is configured to respectively obtain an average access delay of each service node in the terminal access service system having different network attributes, where the network attribute of the terminal represents the operator and the geographical area to which the terminal belongs;
  • a service node matching unit configured to: for a terminal having each network attribute, select, from a plurality of service nodes of the service system, a service node that is suitable for access by a terminal having a network attribute, where, for a target network attribute a target service node that is suitable for access by the terminal, and an average access delay of the terminal having the target network attribute accessing the target service node satisfies a first preset condition;
  • the matching relationship determining unit is configured to, for each network attribute, an IP address of a service node that is suitable for access by the terminal having the network attribute as an IP address of the service node in the domain name resolution list that matches the network attribute.
  • an average access delay of the terminal having the target network attribute accessing the target service node is the smallest.
  • the load or capacity of the target service node satisfies a second preset condition.
  • the matching relationship determining unit includes:
  • a matching relationship sending unit configured to send an IP address of a service node that is suitable for access by the terminal having the network attribute to the authoritative domain name server, so that the authoritative domain name server will store the domain name resolution list, and the local domain name server with the network attribute
  • the IP address of the corresponding service node is configured as the IP address of the service node to which the terminal having the network attribute is suitable to access.
  • the matching relationship determining unit includes:
  • a matching relationship configuration unit configured to configure a domain name resolution list stored in an authoritative domain name server according to an IP address of a target service node that is suitable for a terminal having a network attribute, to configure a local domain name with a network attribute in the domain name resolution list
  • the IP address of the service node corresponding to the server is configured as the IP address of the service node to which the terminal having the network attribute is suitable to access.
  • the device further includes:
  • a relationship configuration unit configured to: in the matching relationship determining unit, the IP address of the service node that the terminal having the network attribute is suitable to access, as the IP address of the service node matching the network attribute in the domain name resolution list, according to the network The matching relationship between the attribute and the IP address of the service node, and configuring the domain name resolution list stored in the authoritative domain name server.
  • the average delay acquisition unit is specifically configured to:
  • the network attribute calculates the average access delay of each terminal accessing each service node with each network attribute.
  • the average delay acquisition unit includes:
  • a delay acquisition unit configured to acquire access delays of multiple terminals to different service nodes in the service system, where the plurality of terminals have different network attributes
  • a terminal categorizing unit configured to form, according to network attributes of the multiple terminals, at least one terminal having the same network attribute to form a terminal set, to obtain a plurality of terminal sets that represent different network attributes
  • An average delay calculation unit is configured to calculate, according to each network attribute, access delays of each of the service nodes in the terminal set in the terminal set according to the network attribute, and calculate, according to the access delay of each terminal in the terminal set, The average access delay of the service nodes is obtained by the terminal of the network attribute to obtain the average access delay of each service node.
  • the average delay acquisition unit includes:
  • a first time delay acquisition unit configured to respectively acquire an average access delay of each service node in the mobile terminal access service system having different network attributes, where the mobile terminal accesses the service node in the service system by using a wireless network;
  • the service node matching unit includes:
  • a first node matching unit configured to: for a mobile terminal having each network attribute, select, from among a plurality of service nodes of the service system, a service node that is suitable for access by a mobile terminal with a network attribute;
  • the matching relationship determining unit includes:
  • a first relationship determining unit configured to use, for each network attribute, an IP address of a service node that is suitable for access by the mobile terminal having the network attribute as an IP address of the service node that matches the network attribute in the first domain name resolution list And storing, in the first domain name resolution list, an IP address of a service node that is required to be scheduled by the mobile terminal having different network attributes.
  • the average delay acquisition unit includes:
  • a second time delay acquisition unit configured to respectively obtain an average access delay of each service node in the wired network terminal access service system for acquiring different network attributes, where the wired network terminal accesses the service node in the service system based on the wired network ;
  • the service node matching unit includes:
  • a second node matching unit configured to: for a wired network terminal having each network attribute, select, from among a plurality of service nodes of the service system, a service node that is suitable for access by a wired network terminal having a network attribute;
  • the matching relationship determining unit includes:
  • a second relationship determining unit configured to, for each network attribute, an IP address of a service node that is suitable for access by the wired network terminal having the network attribute, as an IP address of the service node matching the network attribute in the second domain name resolution list An address, where the second domain name resolution list stores an IP address of a service node that is scheduled to be scheduled by a wired network terminal having a different network attribute.
  • the embodiment of the present application further provides a scheduling control system, including:
  • the data server is configured to acquire access delays of different service nodes in multiple terminal access service systems; and calculate, for each terminal having each network attribute, each service node in all terminal access service systems having network attributes Average access delay, where the network attribute of the terminal characterizes the operator to which the terminal belongs and the geographic area;
  • the configuration server is configured to select a terminal having each network attribute from multiple service nodes of the service system according to an average access delay of each service node in the terminal access service system having different network attributes.
  • a service node that is suitable for access wherein, for a target service node that is suitable for access by a terminal having a target network attribute, an average access delay of the terminal having the target network attribute accessing the target service node satisfies a first preset condition; For each network attribute, the IP address of the service node that the terminal having the network attribute is suitable to access is used as the IP address of the service node in the domain name resolution list that matches the network attribute.
  • the data server obtains a delay in accessing different service nodes in a plurality of terminal access service systems, and is specifically configured to acquire different services in multiple mobile terminal access service systems.
  • the data server calculates the average access time delay of each service node in the terminal access service system with network attributes for the terminal having each network attribute, specifically for:
  • the configuration server selects, according to the average access delay of each service node in the terminal access service system having different network attributes, from the plurality of service nodes of the service system, the terminal having each network attribute is suitable.
  • accessing a service node it is specifically used to:
  • the scheduling control system further includes: a plurality of speed measuring nodes deployed in different equipment rooms in the service system, wherein each service node of the service system is associated with a speed measuring node, and the speed measuring node associated with the service node and the service node are deployed in the same equipment room;
  • the data server obtains a delay of accessing different service nodes in a plurality of mobile terminal access service systems, and is specifically configured to: obtain access delays of multiple mobile terminals to access different speed measurement nodes;
  • the data server calculates, for a mobile terminal having each network attribute, an average access time delay of each service node in the service system having all the network attributes, specifically for:
  • For the mobile terminal with each network attribute calculate the average access delay of each speed-measuring node in all the mobile terminal access service systems with the network attribute, and determine all the movements with the network attribute according to the association relationship between the speed measuring node and the service node.
  • the average access delay of each service node in the terminal access service system
  • the speed measuring node is configured to test an access delay of the target gateway to the speed measuring node according to an IP address of the target gateway returned by the service node associated with the speed measuring node, where the IP address of the target gateway is
  • the service node associated with the speed measuring node receives the access request of the wired network terminal, the IP address of the gateway to which the wired network terminal belongs is reversely routed, the network attribute of the wired network terminal and the wired network terminal
  • the network attribute of the associated target gateway is the same; the access delay of the target gateway to the speed measuring node is used as the access delay of the wired network terminal to the speed measuring node, and is sent to the data server.
  • the embodiment of the present application provides a storage medium for storing program code, where the program code is used to execute any one of the scheduling control methods of the first aspect.
  • an embodiment of the present application provides a computer program product comprising instructions, when executed on a computer, causing the computer to perform any one of the scheduling control methods of the first aspect.
  • the average access delays of different service nodes in the service system are obtained by the terminals having different network attributes (the carrier and the geographical area to which they belong), and are directed to the terminal having each network attribute.
  • the average access delay of the terminal with the network attribute to different service nodes it is advantageous to select a service node that is more suitable for terminal access with the network attribute from the service system, wherein the terminal is suitable for accessing the terminal with the target network attribute.
  • the target service node, the average access delay of the terminal access target service node having the target network attribute satisfies the first preset condition, so that the access delay of the terminal having the target network attribute accessing the target service node is relatively small.
  • the authority The domain name server can, according to the domain name resolution list, schedule the terminal of the target network attribute to the target service node with a small access delay, thereby reducing the access delay of the terminal access service system and improving the access of the terminal access service system. speed.
  • FIG. 1 is a schematic diagram of a domain name resolution scenario
  • FIG. 2 is a schematic diagram of domain name resolution based on a domain name resolution relationship
  • FIG. 3 is a schematic diagram showing a possible composition structure of a domain name configuration system to which the method for configuring domain name resolution in the present application is applicable;
  • FIG. 4 is a schematic structural diagram of a configuration scenario of an application scenario to which the method for configuring domain name resolution in the present application is applied;
  • FIG. 5 is a schematic flowchart diagram of an embodiment of a method for configuring domain name resolution according to the present application
  • FIG. 6 is a schematic flowchart diagram of still another embodiment of a method for configuring domain name resolution according to the present application.
  • FIG. 7 is a schematic flowchart of the domain name resolution system performing domain name resolution after the domain name resolution list is configured by applying the domain name resolution method in the application of the present application;
  • FIG. 8 is a schematic structural diagram of an apparatus for configuring domain name resolution according to an embodiment of the present application.
  • FIG. 9 is a block diagram showing the structure of an embodiment of a configuration server of the present application.
  • a terminal that initiates a domain name resolution request a local domain name server (LDNS), a root domain name server, a generic top-level domain name server, and a third-level domain name server are included.
  • the LDNS of different operators is different. Even if the same carrier is deployed in different locations, different LDNSs may be deployed. Therefore, when the operators to which the terminals belong and the location range are different, the LDNS corresponding to the terminals is also different.
  • FIG. 1 is a manner of performing domain name resolution by recursively.
  • LDNS may also be referred to as a recursive domain name resolution server.
  • the domain name resolution request sent by the terminal to the local domain name server of the operator carries the domain name "WWW.XXX.com.” to be resolved.
  • step 102 the LDNS initiates a domain name resolution request to the root domain name server.
  • step 103 the root domain name server returns the address of the generic top level domain server for the LDNS.
  • the root domain name server cannot determine the IP address corresponding to the domain name "WWW.XXX.com.”, but only knows the address of the generic top-level domain name server that needs to be accessed by the generic top-level domain name ".com.” in the domain name, The root name server will instruct the LDNS to access the generic top-level domain server.
  • step 104 the LDNS initiates a domain name resolution request to the generic top level domain server.
  • step 105 the generic top-level domain name server returns the address of the third-level domain name server that the domain name "WWW.XXX.com.” needs to access for the LDNS.
  • the generic top-level domain name server cannot resolve the IP address corresponding to the "WWW.XXX.com.”
  • the generic top-level domain name server can determine the third access required to resolve the domain name "***.XXX.com.”
  • the domain name server therefore, the generic top-level domain server sends the address of the third-level domain name server to the LDNS.
  • step 106 the LDNS sends a domain name resolution request to the third level domain name server.
  • step 107 after the third-level domain name server queries the IP address corresponding to the domain name "WWW.XXX.com.”, the queried IP address is returned to the LDNS.
  • step 108 the LDNS returns the IP address corresponding to the domain name "WWW.XXX.com.” to the terminal.
  • the LDNS needs to start the first-level recursion from the root domain name server, and finally finds the third-level domain name server, and the third-level domain name server resolves the domain name into an IP address.
  • FIG. 1 is only an example of a domain name resolution system including three levels of recursion.
  • the lowest level domain name server is a third level domain name server, but in actual application, LDNS may be After more levels of recursion, you can finally locate the lowest-level domain name server, and the domain name server resolves the domain name to an IP address.
  • the bottom-level domain name server is also referred to as an authoritative domain name server.
  • the domain name and the IP address are configured in the authoritative domain name server, such as a domain name resolution list. It can be seen that only the LDNS locates the authoritative domain name server, and the operation of resolving the domain name into an IP address can be completed through the authoritative domain name server.
  • FIG. 1 is only a domain name resolution process described in order to understand the domain name resolution process.
  • the process of domain name resolution may have other possibilities, which is not limited in this application.
  • the inventor of the present application has conducted research on the process of domain name resolution. It is found that the LDNS corresponding to the terminal can represent the operator to which the terminal belongs and the geographical area in which the terminal belongs.
  • LDNS is generally configured in the authoritative domain name server.
  • the correspondence between the identifier, domain name, and IP address is generally adopted according to the operator and the geographical area to which the LDNS belongs, and the location of the plurality of service nodes in the service system.
  • the IP address of the service node that is closer to the LDNS is selected from the plurality of IP addresses, and the correspondence between the selected IP address and the LDNS and the domain name is established.
  • the access delay (or network delay) of the terminal accessing different service nodes is not considered.
  • the access delay may be considered as the time required for the packet sent from the terminal to reach the serving node.
  • the location of the service node is close to the location of the LDNS corresponding to the terminal, the access delay of the terminal accessing the service node may be large, so that the access speed of the terminal accessing the service system is slow, which affects Access the access experience of the service system.
  • the embodiment of the present application provides a scheduling control method, in which a terminal having different network attributes (for example, information indicating a terminal or a device to which a device belongs and a geographical area) is separately required. Counting the average access delay of each service node in the terminal access service system with each network attribute; selecting the average access delay for the different service nodes of the service system for each terminal having each network attribute, respectively, from the service system a service node that is suitable for access by a terminal having a network attribute, for a target service node that is suitable for access by a terminal having a target network attribute, and an average access delay of the terminal having the target network attribute accessing the target service node satisfies a first pre- Set conditions.
  • a terminal having different network attributes for example, information indicating a terminal or a device to which a device belongs and a geographical area
  • the IP address of the service node that the terminal having the network attribute is suitable to access is the IP address of the service node that matches the network attribute in the domain name resolution list.
  • a scheduling control system used in the method for configuring domain name resolution information of the present application is first introduced, as shown in FIG. 3.
  • the dispatch control system can include:
  • the data server 301 is configured to obtain access delays of different service nodes in the plurality of terminal access service systems, where network attributes of the multiple terminals are not identical; for the terminals having each network attribute, respectively, the network is calculated. All the terminals of the attribute access the average access delay of each service node, wherein the network attribute of the terminal can represent the operator to which the terminal belongs and the geographical area. Of course, the network attribute may also include other network attributes of the terminal, and Limit it.
  • the configuration server 302 is configured to obtain, from the data server 301, an average access delay of each service node in the terminal access service system having different network attributes; for the terminal having each network attribute, multiple from the service system In the service node, a service node that is suitable for access by a terminal having a network attribute is selected, and an IP address of a service node that is suitable for access by a terminal having a network attribute is used as a service node that matches a network attribute in a domain name resolution list. IP address.
  • the average access delay of the terminal having the target network attribute accessing the target service node meets the first preset condition, for the terminal having the target network attribute being suitable for accessing the target service node.
  • the first preset condition may be that the average access delay of the terminal having the target network attribute accessing the target service node is smaller than the access of the service access node other than the target service node in the terminal access service system having the target network attribute. Delay.
  • the configuration server 302 is further configured to configure, according to the service node that matches the different operators and the geographic area, the correspondence between the different operators and the geographical area and the service node in the domain name resolution list of the authoritative domain name server.
  • the data server 301 calculates the average access delay of all the terminals having the network attributes to the service nodes in the service system, but in actual applications, the calculation average can also be completed by the configuration server. The operation of accessing the delay is not limited here.
  • the configuration server 302 and the data server 301 may be separately set as shown in FIG. 3, or may be combined into one server.
  • the configuration server 302 may be integrated into the data server 301.
  • a functional module for accessing latency data may be provided.
  • FIG. 4 is a schematic diagram showing the structure of an application scenario used in the embodiment of the present application.
  • the application scenario includes: a service system 40, a domain name resolution system 41, and a scheduling control system 42.
  • the service system 40 includes a plurality of service nodes 401 deployed at different locations.
  • the domain name resolution system 41 includes at least an authoritative domain name server 411 and a plurality of local domain name servers LDNS 412.
  • each LDNS 412 is different, and the network attribute of the LDNS can also be the operator and the geographical area to which the LDNS belongs.
  • the multiple LDNSs may include at least: a first LDNS that is deployed in the first geographic area and belongs to the first operator; a second LDNS that is deployed in the second geographic area and belongs to the first carrier; a third LDNS that is located in a geographic area and belongs to the second operator; a fourth LDNS that is deployed in the second geographic area and belongs to the second operator, where the first geographic area is different from the second geographical area, and the first An operator is different from the second carrier.
  • the domain name resolution list is stored in the authoritative domain name server 411, and the domain name resolution list may include: a correspondence between a domain name of the service system, a network attribute, and an IP address of the service node in the service system. Considering that the network attributes of different LDNSs are different, the domain name resolution list may specifically store the correspondence between the domain name of the service system, the identifier of the LDNS, and the IP address of the service node in the service system.
  • the dispatch control system 42 includes a data server 421 and a configuration server 422.
  • the specific functions of the data server 421 and the configuration server 422 can be referred to the related introduction.
  • the configuration server 422 can also be connected to the authoritative domain name server 411 via the network, so that the configuration server 422 can send information of the service node suitable for the terminal having each network attribute to the authoritative domain name server 411, or the authority The domain name resolution list in the domain name server 411 is configured.
  • the terminal 43 belonging to different LDNSs may be further included, wherein the network attributes of the terminals 43 belonging to different LDNSs are different. For example, if the terminal 1 belongs to the LDNS set by the operator A at the city M, the operator of the terminal 1 is the operator A, and the terminal 1 is the terminal of the user of the operator A in the range of the city M.
  • the service system 40 may instruct the terminal to send a test data packet to different service nodes; the time when the terminal transmits the test data packet, and the time of the response data packet of the test data packet returned by the service node.
  • the terminal may send an access delay to test access to different service nodes to the data server.
  • the method further includes: a speed measuring node 402 associated with the service node 401, each service node 401 is associated with at least one speed measuring node 402, and the speed measuring node 402 is at the same position as its associated service node 401, specific The speed measuring node 402 associated with the service node 401 and the service node 401 can be deployed in the same equipment room.
  • the same terminal accesses the access delay of the speed measuring node 402, and the terminal accesses the speed measuring node 402.
  • the access delay of the associated service node 401 is the same.
  • the access delay of the speed measurement node 402 is accessed by the test terminal, and the tested access delay is used as the access delay of the service node 401 associated with the speed measurement node 402, so that the terminal can access the service node 401 more realistically.
  • the network state makes the access latency closer to the real network latency.
  • the data server 421 can be connected to the speed measuring node 402 through a network, so that the data server 421 can obtain the access delay of different terminals reported by the speed measuring node 402, and report the speed measuring node 402.
  • the access delays of different terminals are used as access delays of the service nodes 401 corresponding to the speed measurement nodes 402 by different terminals.
  • the terminal calculates the access delay of the terminal and the speed measuring node.
  • the data server 421 may also be connected to the terminal through the network, so as to obtain the access of the terminal to the different speed measuring nodes 402. The delay is used, and the access delay of the terminal accessing the different speed measuring nodes 402 is used as the access delay of the different service nodes 401 corresponding to the different speed measuring nodes 402.
  • the terminal may be a mobile terminal, a tablet computer, or the like, based on a mobile Internet access service system; the terminal may also be a desktop computer or the like based on a wired network (commonly known as a fixed network) access service system. Terminal, referred to as wired network terminal.
  • the access delay of the terminal access service node may also be different. If the terminal configuration in the different network environments adopts the same domain name resolution configuration relationship, the mobile terminal and the cable may not be considered. The access experience of the network terminal. Therefore, in the embodiment of the present application, the mobile terminal having each network attribute and the access delay of the wired network terminal accessing different service nodes may be separately tested, and the mobile terminal is determined to be suitable for mobile mobile having each network attribute. The service node, and for the wired network terminal, determine the service node to which the wired network terminal of each network attribute is suitable to access.
  • the following describes the scheduling control method of the present application for terminals in two different types of network environments, namely, a mobile terminal and a wired network terminal.
  • FIG. 5 is a schematic flowchart diagram of an embodiment of a scheduling control method in the present application.
  • the method in this embodiment may include:
  • the mobile terminal After initiating an access request to the serving node in the serving system, the mobile terminal determines an IP address of the at least one speed measuring node to be tested.
  • determining the IP address of the at least one speed measuring node may be: after the serving node receives the access request of the mobile terminal, the serving node feeds back to the mobile terminal one or more speed measuring nodes of the required test IP address. It can be understood that when the terminal is a mobile terminal, the network protocol used by the mobile terminal to access the service node is different from the network protocol used by the wired network terminal. Therefore, the service node can identify according to the network protocol adopted by the terminal.
  • the terminal is a mobile terminal, and further instructs the mobile terminal to access at least one speed measuring node to be tested.
  • determining the IP address of the at least one speed measuring node may be: presetting a plurality of IP addresses of the speed measuring nodes required to be tested in a client of the service system installed by the mobile terminal, such that When the terminal detects that an access request is initiated to the service system, the IP address of the preset at least one speed measuring node may be acquired.
  • each mobile terminal may use all the speed measuring nodes as the speed measuring nodes to be tested;
  • the speed measurement nodes to be tested corresponding to different mobile terminals may be different.
  • the speed measuring nodes to be tested of the mobile terminal A are the speed measuring node A, the speed measuring node B and the speed measuring node C, and the speed measuring node of the mobile terminal B to be tested may It is the speed measuring node A and the speed measuring node D.
  • condition that the mobile terminal triggers the access delay of the test accessing the different speed measurement nodes is not limited to the mobile terminal initiating an access request to the service system. In actual applications, other trigger conditions may also be triggered to trigger the mobile terminal to determine the speed measurement node.
  • the IP address for example, the mobile terminal can also periodically determine the IP address of the speed measurement node to be tested according to a preset test period.
  • the mobile terminal sends the speed measurement data packet to the speed measurement node according to the IP address of the speed measurement node.
  • the speed measurement node After receiving the speed measurement data packet, the speed measurement node returns a response data packet for the speed measurement data packet to the mobile terminal.
  • the mobile terminal determines, according to the sending time of the speed measuring data packet to the speed measuring node, and the receiving time of the response data packet returned by the speed measuring node, the access delay of the mobile terminal to access the speed measuring node.
  • the access delay may be half of the time difference between the reception time and the transmission time.
  • the mobile terminal sends the IP address of the mobile terminal, the identifier of the speed measuring node, and the access delay to the data server.
  • the mobile terminal sends an access delay to the data server, and may carry the IP address of the mobile terminal and the identifier of the speed measuring node, and the mobile terminal may identify the mobile terminal that sends the access delay by using the IP address of the mobile terminal, and pass the The IP address can analyze network attributes such as the operator to which the mobile terminal belongs and the geographic area.
  • the identifier of the speed measuring node may indicate that the access delay is a network delay that exists when the mobile terminal accesses the speed measuring node.
  • the mobile terminal may delay the sending of the access, carrying the IP address of the mobile terminal A and the identifier of the speed measuring node M.
  • the identifier of the speed measuring node may be an IP address of the speed measuring node or other identifier capable of uniquely indicating the speed measuring node.
  • steps S501 to S505 are only one implementation manner of obtaining the access delay of the mobile terminal accessing the service node, and the method for obtaining the access delay of the mobile terminal accessing the service node by using other methods in the actual application is also The same applies to the embodiments of the present application.
  • steps S501 and S505 only describe the process of testing the access delay of the mobile terminal to a speed measuring node from the perspective of the mobile terminal, but it can be understood that the mobile terminal accesses other speed measuring nodes and other mobiles.
  • the process of accessing any one of the speed measurement nodes in the service system is similar to the above process, and will not be described here.
  • the above steps S501 to S505 can be repeatedly performed to update the access delays of different mobile operators and different mobile nodes in different geographical locations in real time to reflect the network delay of different mobile terminals.
  • the data server stores the IP address of the mobile terminal, the identifier of the speed measuring node, and the access delay transmitted by the mobile terminal.
  • each access delay corresponds to an IP address of the mobile terminal and an identifier of the speed measuring node.
  • the data server may move the access delay and the access delay.
  • the IP address of the terminal and the identifier of the speed measuring node are stored as an access delay array.
  • each access delay data includes: an IP address of the mobile terminal, an identifier of the speed measuring node, and an access delay.
  • the data server may update the stored access delay data at regular intervals.
  • steps S501 to S506 are only for explaining the process of obtaining the access delay of the mobile terminal to the serving node, which is only for preparing the subsequent configuration of the domain name resolution information.
  • the configuration server may obtain multiple access delay arrays, where each access delay array includes: the IP address of the mobile terminal, the speed measurement node Identification and access delay.
  • the data server determines an operator and a geographic area to which the mobile terminal belongs according to the IP address of the mobile terminal.
  • the embodiment of the present application introduces the network attribute of the mobile terminal to the operator and the geographical area to which the terminal belongs, but when the network attribute includes other attribute information, the process is similar.
  • the data server combines at least one mobile terminal belonging to the same operator and the geographical area to form a mobile terminal set according to the operator and the geographical area to which the plurality of mobile terminals that report the access delay respectively belong to obtain a plurality of different operators. And a collection of mobile terminals in a geographic area.
  • the data server can store the access delay data reported by a plurality of different mobile terminals, and the IP addresses of the multiple mobile terminals are different, thereby obtaining a plurality of different network attributes.
  • the access delay of mobile terminals For each network attribute, the data server can store the access delays of the plurality of mobile terminals having the network attribute for different service nodes, so that multiple terminals having each network attribute can be calculated for the same service.
  • the average access delay of a node needs to first determine the mobile terminal with the same network attribute.
  • the data server For each mobile terminal set, the data server respectively determines an average access delay of each mobile terminal in the mobile terminal set accessing each speed measuring node in the service system.
  • the access delays of the mobile terminal A accessing the speed measuring node 1, the speed measuring node 2, and the speed measuring node 3 belonging to the China-Guangzhou-first operator can be expressed as:
  • IP address 1.1.1.1, delay 30ms;
  • IP address 2.2.2.2, delay 100ms
  • IP address 3.3.3.3, delay 50ms
  • IP address 2.2.2.2, delay 70ms
  • IP address 3.3.3.3, delay 10ms
  • IP address 4.4.4.4, delay 40ms
  • the average access latency for other speed measuring nodes is similar.
  • the mobile terminal may be removed from the mobile terminal set to access the speed measurement node.
  • the highest value and the lowest value of the plurality of access delays are then used to calculate the average access delay of the terminal in the mobile terminal set to access the speed measuring node by using the remaining multiple access delays.
  • the network status may be different at different times.
  • the calculation time of the average access delay may also be recorded, so that the domain name resolution may be configured by using the latest calculated average access delay. List.
  • steps S507 to S509 can be performed every preset time, instead of triggering execution every time the mobile terminal reports the access delay data.
  • steps S507 to S509 are only for convenience of understanding, that the mobile terminals of the same network attribute are grouped into one mobile terminal set, and all mobile terminal pairs in the mobile terminal set formed by the terminal that calculates the network attribute are
  • the average access latency of a service node is described as an example. However, it can be understood that, for a network attribute, there may be other manners for calculating the average access delay of the mobile terminal having the network attribute for a service node in the service system, and details are not described herein again.
  • the wireless network used by the mobile terminal may also be in various forms, for example, a wireless network using the 3rd Generation mobile communication technology (3G), using a fourth generation mobile communication technology (The 4th Generation mobile communication technology, 4G) wireless network, WiFi network and so on.
  • 3G 3rd Generation mobile communication technology
  • 4G fourth generation mobile communication technology
  • WiFi network WiFi network
  • the mobile terminal may also use the type of the wireless network used by the mobile terminal.
  • the IP address of the mobile terminal, the identifier of the speed measuring node, and the access delay corresponding to the speed measuring node are sent to the data server.
  • the data server can separately count the average access delay of each mobile node when the mobile terminal having each network attribute uses different wireless networks.
  • the data server determines, according to the average access delay of the mobile terminal in the mobile terminal set to different speed measuring nodes, and combines the relationship between the different speed measuring nodes and the service node, respectively, to determine the mobility in the mobile terminal set.
  • the average access delay of the terminal to each service node is the average access delay of the terminal to each service node.
  • the average access delay of the mobile terminal in the mobile terminal set to the service node is: the mobile terminal having the network attribute represented by the mobile terminal set to the service node Average access latency.
  • association relationship between the speed measuring node and the service node may be stored in the data server, so that after determining the average access delay of the mobile terminal in the mobile terminal set for the speed measuring node, determining the speed node association The service node actually obtains the average access delay of the mobile terminal in the mobile terminal set to the service node.
  • the data server may store the correspondence between the network attribute, the identifier of the speed measuring node, and the average access delay, for example, may be stored in the following form:
  • IP address 1.1.1.1, average access delay 40ms;
  • the above correspondence indicates that the average access delay of the mobile terminal of the first operator in Guangzhou, China, accessing the speed measuring node 1 (IP address: 1.1.1.1) is 40 ms.
  • calculating an average access delay of a terminal having a network attribute to different service nodes in the service system may also be performed by a configuration server, that is, a step.
  • S507 to S510 may be completed by the configuration server.
  • the configuration server only needs to acquire data of the access delay reported by a plurality of different mobile terminals having network attributes from the data server.
  • the configuration server acquires, from the data server, the average access delay of each mobile node in the service system by the mobile terminal having different network attributes.
  • the configuration server may obtain multiple sets of correspondences stored by the data server, and each set of correspondences includes: network attributes, service node identifiers, and average access delay correspondences, and each set of correspondences represents a network attribute terminal for one The average access latency of the service node.
  • the configuration server selects, from among a plurality of service nodes of the service system, a service node that is suitable for access by the mobile terminal having the network attribute.
  • the average access delay of the mobile terminal having the target network attribute accessing the target service node satisfies the first preset condition may have A variety of possibilities.
  • the first preset condition may be that an average access delay of a mobile terminal having a target network attribute accessing the target service node is smaller than an average access delay of the mobile terminal accessing another service node.
  • the first preset condition may be that the average access delay is less than the preset value; for example, the first preset condition may be in the order of the average access delay corresponding to the service node from small to large, for multiple After the service node sorts, it sorts any service node that is in the previous specified position.
  • the target service node that is suitable for the terminal with the target network attribute the load or capacity of the target service node needs to meet the second preset condition, the load is less than the preset value, or the capacity is greater than the preset threshold. and many more.
  • the target service node may be a service node in the service system whose load is less than a preset value, and the mobile terminal has the smallest average access delay.
  • the priority order of the average access delay, load, and capacity may be preset, such as optimal load, optimal capacity, etc., so that the highest priority factor may be selected from multiple service nodes.
  • the at least one service node of the second preset condition selects, from the at least one service node, a target service node whose other factors also satisfy the corresponding preset condition.
  • For each network attribute configure an IP address of a service node that is suitable for access by the mobile terminal of the network attribute as an IP address of the service node that matches the network attribute in the first domain name resolution list of the authoritative domain name server.
  • the domain name resolution list for the mobile terminal is referred to as a first domain name resolution list
  • the subsequent domain name resolution list for the wired network terminal is referred to as a second domain name resolution list.
  • the IP address of the service node corresponding to the target network attribute in the first domain name resolution list is the IP address of the target service node
  • the IP address of the corresponding service node may be maintained. Otherwise, the IP address of the service node corresponding to the target network attribute can be updated to the IP address of the target service node.
  • the mobile network with the target network attribute is actually The IP address of the target service node that the terminal is suitable to access is configured as the IP address of the service node that matches the identifier of the LDNS with the target network attribute in the first domain name resolution list.
  • the mobile terminal having the same network attribute and the service node to be directed to the wired network terminal may have different differences. Therefore, the authoritative domain name server may be configured differently for the mobile terminal and the wired network terminal respectively. List of domain name resolutions. Certainly, in order to directly distinguish the network type used by the terminal in the domain name resolution list, the identifier information used to identify the network type used by the terminal may be added in each domain name resolution relationship of the domain name resolution list.
  • the domain name used by the terminal to request access to the same service system may be different.
  • the mobile terminal accessing the service system may adopt the first domain name of the service system, and the wired network terminal The service system can be accessed using the second domain name of the service system.
  • the network type identifier indicating the network type used by the terminal may be included in the domain name requested by the terminal, and the network type identifier in the first domain name and the second domain name are different.
  • the domain name that the mobile terminal can use to access a certain service system may be mobile.a*b.com
  • the domain name used by the wired network terminal to access the service system may be: static.a*b.com, where "mobile" in the domain name "mobile.a*b.com” indicates that the terminal that initiated the domain name resolution request is a mobile terminal that uses the wireless network; and the "static" in the domain name "static.a*b.com” indicates that the domain name resolution request is initiated.
  • the terminal is a wired network terminal using a wired network.
  • the configuration server may configure the identifier of the LDNS with the network attribute and the service system in the domain name resolution list of the authoritative domain name server.
  • the embodiment of the present application is an example in which the configuration server configures the domain name resolution list in the authoritative domain name server as an example, but it can be understood that the configuration server determines that the mobile terminal having different network attributes is suitable for parsing.
  • the service node After the service node, the service node that is suitable for the terminal having the network attribute is only used as the service node corresponding to the network attribute in the domain name resolution list, and the matching relationship between the service node and the network attribute that the terminal having the network attribute is suitable for is stored, and subsequently
  • the configuration relationship update request may be initiated by the authoritative domain name server, or the configuration server may send the matching relationship to the authoritative domain name server, so that the authoritative domain name server completes the configuration of the domain name resolution list according to the matching relationship.
  • the average access delay of each service node in the service system is accessed by the mobile terminal having the network attribute, thereby facilitating the service system from the service system.
  • the service node having the average access delay of the mobile terminal having the network attribute is selected, so that the IP address of the service node corresponding to the LDNS having the network attribute in the domain name resolution list is determined to have
  • the mobile terminal can be directed to the service node that the terminal having the network attribute is suitable for access, which is beneficial to reducing the access of the mobile terminal.
  • the access delay of the service system improves the access speed of the mobile terminal access service system.
  • FIG. 6 is a schematic flowchart of a scheduling control method of the present application in a case where the terminal is a wired network terminal, and the method in this embodiment may include:
  • the wired network terminal sends an access request to a service node in the service system.
  • the serving node After receiving the access request, the serving node tracks the target gateway to which the wired network terminal belongs by using a reverse route.
  • the reverse route traceroute technology can track the gateway through which the access request passes, and the gateway through which the access request passes is the target gateway to which the wired network terminal belongs.
  • the serving node transmits the IP address of the target gateway to which the wired network terminal belongs to the speed measuring node associated with the serving node.
  • the speed measurement node sends the speed measurement data packet to the target gateway according to the IP address of the target gateway to which the wired network terminal belongs.
  • the target gateway returns a response data packet for the speed measurement data packet to the speed measurement node in response to the received speed measurement data packet.
  • the speed measurement node calculates an access delay of the target gateway to the speed measurement node according to a sending time of the speed data packet and a receiving time of receiving the response data packet.
  • the access delay of the target gateway to the speed measuring node can be regarded as the access delay of the mobile terminal belonging to the target gateway to access the speed measuring node.
  • steps S602 to S606 are one way of testing the access delay of the gateway to the speed measuring node, but the manner of testing the access delay of the gateway to the speed measuring node is also applicable to the embodiment.
  • the embodiment of the present application introduces the access delay of the gateway to the speed measuring node as an access delay of the wired network terminal to the speed measuring node, but it can be understood that the wired network terminal is tested to the speed measuring node by other means.
  • the manner of access delay is also applicable to the embodiments of the present application.
  • the speed measurement node sends the IP address of the target gateway, the identifier of the service node, and the access delay to the data server.
  • the data server stores the IP address of the target gateway, the identifier of the speed measuring node, and the access delay.
  • the first data server may store the access reported by the mobile terminal. Relevant data such as delay; the second data server can obtain related data such as the access delay of the wired network terminal reported by the speed measuring node.
  • the data server can distinguish the access delay corresponding to the access delay according to the device that reports the access delay, such as After receiving the access delay sent by the speed measurement node, the data server may determine that the access delay is an access delay of the target gateway to the speed measurement node to which the wired network terminal belongs.
  • the speed measurement node and the mobile terminal can also report the access delay, and carry the network representing the terminal corresponding to the access delay.
  • the identifier of the attribute for example, the delay when the mobile terminal reports the access, may carry the identifier 1 indicating that the access delay is the access delay of the mobile terminal to the speed measuring node or the serving node; and the speed measuring node reports the access of the target gateway to the serving node.
  • the time delay may carry an identifier 2 that may indicate that the access delay is a access delay of the wired network terminal to the serving node.
  • the data server may uniformly store all access delays in one data table, or may store the corresponding access of the mobile terminal and the wired network terminal through two data tables respectively. Delay data.
  • the data server determines, according to the IP address of the target gateway, the operator and the geographic area to which the target gateway belongs.
  • the embodiment of the present application introduces the network attribute of the target gateway to the operator and the geographical area to which the target gateway belongs, but when the network attribute includes other attribute information, the process is similar.
  • the data server forms a set of gateways belonging to the same operator and at least one wired network terminal of the geographic area, and obtains a plurality of gateway sets that represent different operators and geographic regions.
  • the data server determines an average access delay of each target gateway in the gateway set to each speed measuring node in the service system.
  • Steps S609 to S611 are similar to the processes of steps S507 to S509 in the embodiment of FIG. 5. Therefore, the average access delay of all target gateways to the speed measuring nodes in each gateway set can be obtained by referring to the foregoing calculation of all terminal pairs in the mobile terminal set. The process of the average access delay of the speed measuring node will not be described here.
  • the data server determines the target access gateway in the gateway set to different service nodes according to the average access delay of the target gateway to the different speed measuring nodes in the gateway set, and the association relationship between the different speed measuring nodes and the serving node. Average access latency.
  • the average access delay of the target gateway to the service node in the gateway set is: the average of the wired network terminal having the network attribute represented by the set of gateways to the service node Access delay.
  • the data server can store the association relationship between the speed measurement node and the service node, so that after determining the average access delay of the target gateway in the gateway set for the speed measurement node, the gateway is actually obtained.
  • the configuration server acquires, from the data server, a wired network terminal having different network attributes to respectively access an average access delay of each service node in the service system.
  • the configuration server selects, from among a plurality of service nodes of the service system, a service node that is suitable for access by the wired network terminal having the network attribute.
  • the average access delay of the target service node that is suitable for the network network terminal of each network attribute meets the first preset condition.
  • the first preset condition may be similar to the previous embodiment, and details are not described herein again.
  • the load or capacity of the target service node needs to meet the second preset condition, the load is less than the preset value, or the capacity is greater than the preset threshold. and many more.
  • the second preset condition refer to the related description of the previous embodiment, and details are not described herein again.
  • For each network attribute configure an IP address of a service node that is suitable for access by the wired network terminal of the network attribute as an IP address of the service node that matches the network attribute in the second domain name resolution list of the authoritative domain name server.
  • the identifier and the service system of the LDNS having the target network attribute may be configured in the domain name resolution list of the authoritative domain name server.
  • the domain name resolution relationship between the second domain name and the IP address of the target service node may be configured in the domain name resolution list of the authoritative domain name server.
  • step S615 can be similar to the process of step S513 in the foregoing embodiment of FIG. 5, and details are not described herein again.
  • the IP address of the service node corresponding to the LDNS in the domain name resolution list may be configured as an IP address of a service node that is suitable for access by the wired network terminal of the LDNS, and the wired network terminal belonging to the LDNS is suitable.
  • the accessed service node is a service node whose average access delay is delayed by the wired network terminal belonging to the LDNS, so that the wired network terminal is directed to the service node suitable for access by the wired network terminal belonging to the LDNS according to the domain name resolution list. It is beneficial to reduce the access delay of the wired network terminal access service system and improve the access speed of the wired network terminal access service system.
  • the scheduling control process of the present application is introduced for the case of the mobile terminal and the wired network terminal respectively by using the embodiments of FIG. 5 and FIG. 6 respectively.
  • the average access delay data acquired by the configuration server may include: an average access delay of the mobile terminal with different network nodes for each network attribute, and a wired network terminal pair with each network attribute.
  • the average access delay of different service nodes, the configuration server only needs to allocate the configuration relationship of determining the domain name resolution list to the mobile terminal and the wired network terminal respectively.
  • FIG. 7 is a schematic flowchart diagram of an embodiment of a domain name resolution method according to the present application.
  • the method in this embodiment may include:
  • the mobile terminal sends a domain name resolution request to the LDNS to which the mobile terminal belongs, where the domain name resolution request carries the first domain name of the service system.
  • the first domain name includes a first network type identifier indicating that the network type used by the terminal is a wireless network, and can be used as a target network attribute.
  • the first domain name is "mobile.a*b.com" as an example.
  • the LDNS is the LDNS of China-Guangzhou-operator 1 as an example.
  • the LDNS determines an authoritative domain name server for parsing the first domain name, and forwards the first domain name to the authoritative domain name server.
  • the authoritative domain name server queries, from the first domain name resolution list, an IP address of the first target service node that matches the first domain name and the identifier of the LDNS.
  • the first domain name resolution table stores a correspondence between the first domain name requested by the mobile terminal, the identifier of the LDNS, and the IP address of the first target service node.
  • the first domain name is “mobile.a*b.com”.
  • the first domain name resolution table of the authoritative server stores the following domain name resolution relationship:
  • the IDC indicates the service node. According to the first domain name and the identifier corresponding to the LDNS, that is, China-Guangzhou-operator 1, the resolved IP address can be determined as the IP address of the service node IDC3: 3.3.3.3.
  • the authoritative domain name server sends the IP address of the first target service node to the mobile terminal via the LDNS server.
  • the wired network terminal sends a domain name resolution request to the LDNS to which the wired network terminal belongs, where the domain name resolution request carries the second domain name of the service system.
  • the second domain name includes a second network type identifier indicating that the network type adopted by the terminal is a wired network.
  • the second domain name is "static.a*b.com" as an example.
  • the LDNS to which the wired network terminal belongs is also the LDNS of China-Guangzhou-operator 1 as an example.
  • the LDNS determines an authoritative domain name server for parsing the second domain name, and forwards the second domain name to the authoritative domain name server.
  • the authoritative domain name server queries, from the second domain name resolution list, an IP address of the second target service node that matches the second domain name and the identifier of the LDNS.
  • the second domain name resolution table stores a correspondence between the second domain name requested by the wired network terminal, the identifier of the LDNS, and the IP address of the second target service node.
  • the second domain name is assumed to be "static.a*b.com".
  • the second domain name resolution table of the authoritative server stores the following domain name resolution relationship:
  • the parsed IP address is the IP address of the service node IDC1: 1.1.1.1, visible, although the wired network terminal and the mobile terminal
  • the LDNSs that belong to the same are the same, but when the networks used by the terminals are different, the service nodes with the least access delay of the terminal will be different due to the difference in network status, so that the IP addresses returned by the authoritative domain name servers are different.
  • the terminals of different networks can access the service nodes with relatively small delay.
  • the authoritative domain name server sends the IP address of the second target service node to the wired network terminal via the LDNS server.
  • FIG. 8 is a schematic structural diagram of an embodiment of a scheduling control apparatus according to the present application.
  • the apparatus of this embodiment may include:
  • the average time delay obtaining unit 801 is configured to respectively obtain an average access delay of each service node in the terminal access service system having different network attributes, where the network attribute of the terminal represents the operator and the geographical area to which the terminal belongs;
  • the service node matching unit 802 is configured to: for a terminal having each network attribute, select, from among a plurality of service nodes of the service system, a service node that is suitable for access by a terminal having a network attribute, where The target service node to which the terminal is suitable to access, the average access delay of the terminal having the target network attribute accessing the target service node satisfies the first preset condition;
  • the matching relationship determining unit 803 is configured to, for each network attribute, the IP address of the service node that the terminal having the network attribute is suitable to access, as the IP address of the service node in the domain name resolution list that matches the network attribute.
  • a terminal having the target network attribute has a minimum average access delay for accessing the target service node.
  • the load or capacity of the target service node satisfies a second preset condition.
  • the matching relationship determining unit includes:
  • a matching relationship sending unit configured to send an IP address of a service node that is suitable for access by the terminal having the network attribute to the authoritative domain name server, so that the authoritative domain name server will store the domain name resolution list, and the local domain name server with the network attribute
  • the IP address of the corresponding service node is configured as the IP address of the service node to which the terminal having the network attribute is suitable to access.
  • the matching relationship determining unit includes:
  • a matching relationship configuration unit configured to configure a domain name resolution list stored in an authoritative domain name server according to an IP address of a target service node that is suitable for a terminal having a network attribute, to configure a local domain name with a network attribute in the domain name resolution list
  • the IP address of the service node corresponding to the server is configured as the IP address of the service node to which the terminal having the network attribute is suitable to access.
  • the device further includes:
  • a relationship configuration unit configured to: in the matching relationship determining unit, the IP address of the service node that the terminal having the network attribute is suitable to access, as the IP address of the service node matching the network attribute in the domain name resolution list, according to the network The matching relationship between the attribute and the IP address of the service node, and configuring the domain name resolution list stored in the authoritative domain name server.
  • the average delay acquisition unit is specifically configured to:
  • the network attribute calculates the average access delay of each terminal accessing each service node with each network attribute.
  • the average delay acquisition unit includes:
  • a delay acquisition unit configured to acquire access delays of multiple terminals to different service nodes in the service system, where the plurality of terminals have different network attributes
  • a terminal categorizing unit configured to form, according to network attributes of the multiple terminals, at least one terminal having the same network attribute to form a terminal set, to obtain a plurality of terminal sets that represent different network attributes
  • An average delay calculation unit is configured to calculate, according to each network attribute, access delays of each of the service nodes in the terminal set in the terminal set according to the network attribute, and calculate, according to the access delay of each terminal in the terminal set, The average access delay of the service nodes is obtained by the terminal of the network attribute to obtain the average access delay of each service node.
  • the average delay acquisition unit includes:
  • a first time delay acquisition unit configured to respectively acquire an average access delay of each service node in the mobile terminal access service system having different network attributes, where the mobile terminal accesses the service node in the service system by using a wireless network;
  • the service node matching unit includes:
  • a first node matching unit configured to: for a mobile terminal having each network attribute, select, from among a plurality of service nodes of the service system, a service node that is suitable for access by a mobile terminal with a network attribute;
  • the matching relationship determining unit includes:
  • a first relationship determining unit configured to use, for each network attribute, an IP address of a service node that is suitable for access by the mobile terminal having the network attribute as an IP address of the service node that matches the network attribute in the first domain name resolution list And storing, in the first domain name resolution list, an IP address of a service node that is required to be scheduled by the mobile terminal having different network attributes.
  • the average delay acquisition unit includes:
  • a second time delay acquisition unit configured to respectively obtain an average access delay of each service node in the wired network terminal access service system for acquiring different network attributes, where the wired network terminal accesses the service node in the service system based on the wired network ;
  • the service node matching unit includes:
  • a second node matching unit configured to: for a wired network terminal having each network attribute, select, from among a plurality of service nodes of the service system, a service node that is suitable for access by a wired network terminal having a network attribute;
  • the matching relationship determining unit includes:
  • a second relationship determining unit configured to, for each network attribute, an IP address of a service node that is suitable for access by the wired network terminal having the network attribute, as an IP address of the service node matching the network attribute in the second domain name resolution list An address, where the second domain name resolution list stores an IP address of a service node that is scheduled to be scheduled by a wired network terminal having a different network attribute.
  • the embodiment of the present application further provides a configuration server, which may include a scheduling control device as described above.
  • the server 900 may include: a processor 901, a communication interface 902, a memory 903, and a communication bus 904;
  • the processor 901, the communication interface 902, and the memory 903 complete communication with each other through the communication bus 904.
  • the communication interface 902 can be an interface of the communication module, such as an interface of the GSM module;
  • a processor 901 configured to execute a program
  • a memory 903, configured to store a program
  • the program can include program code, the program code including computer operating instructions.
  • the processor 901 may be a central processing unit CPU, or an Application Specific Integrated Circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of the present invention.
  • CPU central processing unit
  • ASIC Application Specific Integrated Circuit
  • the memory 903 may include a high speed RAM memory and may also include a non-volatile memory such as at least one disk memory.
  • the program can be specifically used to:
  • a service node suitable for access by a terminal having a network attribute is selected from a plurality of service nodes of the service system, wherein a target service node suitable for access by a terminal having a target network attribute is selected.
  • the average access delay of the terminal having the target network attribute accessing the target service node satisfies a first preset condition
  • the IP address of the service node that the terminal having the network attribute is suitable to access is used as the IP address of the service node in the domain name resolution list that matches the network attribute.
  • the embodiment provides a storage medium for storing program code, and the program code is used to execute the scheduling control method according to any one of the foregoing embodiments corresponding to FIG. 3-7.
  • the present embodiment provides a computer program product comprising instructions which, when run on a computer, cause the computer to perform any of the scheduling control methods of the embodiments corresponding to the foregoing Figures 3-7.
  • the steps of a method or algorithm described in connection with the embodiments disclosed herein can be implemented directly in hardware, a software module executed by a processor, or a combination of both.
  • the software module can be placed in random access memory (RAM), memory, read only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, removable disk, CD-ROM, or technical field. Any other form of storage medium known.

Landscapes

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

Abstract

Provided in the present application are a scheduling control method, an apparatus, and a system. The method comprises: obtaining respective average access delays experienced by terminals with different network properties upon accessing each service node in a service system, wherein the network properties of the terminals represent operators and geographical regions to which the terminals belong; and selecting, for each of the terminals having a network property, and from the service nodes in the service system, a service node suitable for access by the terminal with the network property, and using an IP address of the service node suitable for access by the terminal with the network property as an IP address of a service node matching the network property in a domain name resolution list. The solution of the present application enables a more reasonable configuration of service nodes in a domain name resolution list to be accessed by terminals with different network properties, thus reducing access delay when accessing service nodes in a service system by the terminals, and enhancing access speed.

Description

调度控制方法、装置和系统Scheduling control method, device and system
本申请要求于2017年5月18日提交中国专利局、申请号201710353408.0、申请名称为“调度控制方法、装置和系统”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。The present application claims priority to Chinese Patent Application No. PCT Application No. No. No. No. No. No. No. No. No. No. No. No. No.
技术领域Technical field
本申请涉及网络通信技术领域,特别涉及一种调度控制方法、装置和系统。The present application relates to the field of network communication technologies, and in particular, to a scheduling control method, apparatus, and system.
背景技术Background technique
网络中的计算机是通过互联网协议(Internet Protocol,IP)地址来定位的,而IP地址难以记忆,因此,一般通过记录域名来代替IP地址。相应的,终端在接收到用户输入的网络地址之后,需要将该网络地址中包含的域名发送给域名服务器,并由域名服务器将该域名转换为IP地址之后,才可以基于该IP地址访问网络中的主机。其中,通过域名服务器将域名转换为IP地址的过程就是俗称的域名解析。Computers in the network are located through Internet Protocol (IP) addresses, and IP addresses are difficult to remember. Therefore, domain names are generally used instead of IP addresses. Correspondingly, after receiving the network address input by the user, the terminal needs to send the domain name included in the network address to the domain name server, and the domain name server converts the domain name into an IP address before accessing the network based on the IP address. Host. The process of converting a domain name into an IP address through a domain name server is commonly known as domain name resolution.
而为了满足业务需求或者提高业务处理效率,一套服务系统一般会部署多个服务节点,这样,为了使得访问该服务系统的访问请求可以定向到不同的服务节点,在业务服务系统对应的域名服务器可以将该业务服务系统的域名解析为不同的服务节点的IP地址。如,域名服务器可以存储不同运营商、域名与IP地址的对应关系,这样,如果终端所归属的运营商不同,即使终端所请求解析的域名相同,域名服务器为终端返回的IP地址也会不同。然而,目前终端基于域名服务器所解析的IP地址访问该服务系统时,却存在访问速度过慢的情况。In order to meet business needs or improve business processing efficiency, a service system generally deploys multiple service nodes, so that in order to make access requests to the service system can be directed to different service nodes, the domain name server corresponding to the service service system The domain name of the service service system can be resolved to the IP address of a different service node. For example, the domain name server can store the correspondence between different operators, domain names, and IP addresses. Thus, if the operators to which the terminals belong are different, even if the domain names requested by the terminal are the same, the IP address returned by the domain name server for the terminal will be different. However, when the terminal accesses the service system based on the IP address resolved by the domain name server, the access speed is too slow.
发明内容Summary of the invention
本申请提供了一种调度控制方法、装置和系统,以提高终端访问服务系统中服务节点的访问速度。The present application provides a scheduling control method, apparatus, and system to improve access speed of a service node in a terminal access service system.
为了解决上述问题,第一方面,本申请提供了一种调度控制方法,包括:In order to solve the above problem, in a first aspect, the application provides a scheduling control method, including:
分别获取具有不同网络属性的终端访问服务系统中每个服务节点的平均访问时延,其中,终端的网络属性表征所述终端所归属的运营商以及地理区域;The average access delay of each service node in the terminal access service system with different network attributes is obtained, where the network attribute of the terminal represents the operator and the geographical area to which the terminal belongs;
针对具有每种网络属性的终端,从所述服务系统的多个服务节点中,选取出具有网络属性的终端所适合访问的服务节点,其中,针对具有目标网络属性的终端所适合访问的目标服务节点,具有所述目标网络属性的终端访问所述目标服务节点的平均访问时延满足第一预设条件;For a terminal having each network attribute, a service node suitable for access by a terminal having a network attribute is selected from a plurality of service nodes of the service system, wherein a target service suitable for access by a terminal having a target network attribute is selected. a node, the average access delay of the terminal having the target network attribute accessing the target service node satisfies a first preset condition;
针对每种网络属性,将具有网络属性的终端所适合访问的服务节点的IP地址,作为域名解析列表中与网络属性相匹配的服务节点的IP地址。For each network attribute, the IP address of the service node that the terminal having the network attribute is suitable to access is used as the IP address of the service node in the domain name resolution list that matches the network attribute.
在第一方面的一种可能的实现方式中,针对具有目标网络属性的终端所适合访问的目标服务节点,具有所述目标网络属性的终端所适合访问所述目标服务节点的平均访问时延满足第一预设条件,包括:In a possible implementation manner of the first aspect, for a target service node that is suitable for access by a terminal having a target network attribute, an average access delay of the terminal having the target network attribute suitable for accessing the target service node is satisfied. The first preset condition includes:
具有所述目标网络属性的终端访问所述目标服务节点的平均访问延时最小。The terminal having the target network attribute has the smallest average access delay for accessing the target service node.
在第一方面的一种可能的实现方式中,针对具有目标网络属性的终端所适合访问的目标服务节点,所述目标服务节点的负载或者容量满足第二预设条件。In a possible implementation manner of the first aspect, for a target service node that is suitable for access by a terminal having a target network attribute, the load or capacity of the target service node satisfies a second preset condition.
在第一方面的一种可能的实现方式中,所述将具有网络属性的终端所适合访问的服务节点的IP地址,作为域名解析列表中与网络属性相匹配的服务节点的IP地址,包括:In a possible implementation manner of the first aspect, the IP address of the service node that the terminal having the network attribute is suitable to access is the IP address of the service node that matches the network attribute in the domain name resolution list, and includes:
将具有网络属性的终端所适合访问的服务节点的IP地址发送给权威域名服务器,以便所述权威域名服务器将存储的域名解析列表中,具有网络属性的本地域名服务器所对应的服务节点的IP地址配置为具有网络属性的终端所适合访问的服务节点的IP地址。Sending, by the authoritative domain name server, the IP address of the service node corresponding to the local domain name server having the network attribute in the domain name resolution list stored by the authoritative domain name server. The IP address of the service node that is configured to be accessible to the terminal with network attributes.
在第一方面的一种可能的实现方式中,所述将具有网络属性的终端所适合访问的服务节点的IP地址,作为域名解析列表中与具有网络属性相匹配的服务节点的IP地址,包括:In a possible implementation manner of the first aspect, the IP address of the service node that the terminal having the network attribute is suitable to access is used as the IP address of the service node that matches the network attribute in the domain name resolution list, including :
依据具有网络属性的终端所适合访问的目标服务节点的IP地址,配置权威域名服务器中存储的域名解析列表,以将所述域名解析列表中,具有网络属性的本地域名服务器所对应的服务节点的IP地址配置为具有网络属性的终端所适合访问的服务节点的IP地址。Configuring a domain name resolution list stored in the authoritative domain name server according to the IP address of the target service node that the terminal having the network attribute is suitable for accessing, in the domain name resolution list, the service node corresponding to the local domain name server having the network attribute The IP address is configured as the IP address of the service node to which the terminal having the network attribute is suitable to access.
在第一方面的一种可能的实现方式中,所述获取具有不同网络属性的终端访问服务系统中每个服务节点的平均访问时延,包括:In a possible implementation manner of the first aspect, the obtaining an average access delay of each service node in a terminal access service system having different network attributes includes:
从数据服务器获取具有不同网络属性的终端访问服务系统中每个服务节点的平均访问时延,其中,所述数据服务器在获取到多个终端访问服务系统中不同服务节点的访问时延之后,按照终端的网络属性,分别计算出具有每种网络属性的终端访问每个服务节点的平均访问时延。Acquiring an average access delay of each service node in the terminal access service system having different network attributes from the data server, wherein the data server obtains access delays of different service nodes in the plurality of terminal access service systems, according to the access delay The network attributes of the terminal respectively calculate the average access delay of each terminal accessing each service node with each network attribute.
在第一方面的一种可能的实现方式中,所述获取具有不同网络属性的终端访问服务系统中每个服务节点的平均访问时延,包括:In a possible implementation manner of the first aspect, the obtaining an average access delay of each service node in a terminal access service system having different network attributes includes:
获取多个终端访问服务系统中不同服务节点的访问时延,所述多个终端的网络属性不同;Acquiring access delays of different service nodes in multiple terminal access service systems, where network attributes of the multiple terminals are different;
依据所述多个终端的网络属性,将具有相同网络属性的至少一个终端组成终端集合,得到多个表征不同网络属性的终端集合;Determining, by the network attributes of the multiple terminals, at least one terminal having the same network attribute to form a terminal set, to obtain a plurality of terminal sets that represent different network attributes;
针对具有每种网络属性的终端集合,依据终端集合内所有终端访问服务系统中每个服务节点的访问时延,分别计算终端集合中的终端访问每个服务节点的平均访问时延,得到具有不同网络属性的终端访问每个服务节点的平均访问时延。For the terminal set with each network attribute, according to the access delay of each service node in the terminal access service system in the terminal set, the average access delay of the terminal accessing each service node in the terminal set is calculated separately, and the difference is obtained. The endpoint of the network attribute accesses the average access latency of each service node.
在第一方面的一种可能的实现方式中,所述分别获取具有不同网络属性的终端访问服务系统中每个服务节点的平均访问时延,包括:In a possible implementation manner of the first aspect, the obtaining an average access delay of each service node in a terminal access service system having different network attributes, respectively, includes:
分别获取具有不同网络属性的移动终端访问服务系统中每个服务节点的平均访问时延,所述移动终端采用无线网络访问所述服务系统中的服务节点;Obtaining an average access delay of each service node in the mobile terminal access service system having different network attributes, where the mobile terminal accesses the service node in the service system by using a wireless network;
所述针对具有每种网络属性的终端,从所述服务系统的多个服务节点中,选取出具有网络属性的终端所适合访问的服务节点,包括:For the terminal having each network attribute, a service node that is suitable for access by the terminal having the network attribute is selected from the plurality of service nodes of the service system, including:
针对具有每种网络属性的移动终端,从所述服务系统的多个服务节点中,选取出具有网络属性的移动终端所适合访问的服务节点;For a mobile terminal having each network attribute, a service node suitable for access by a mobile terminal having a network attribute is selected from a plurality of service nodes of the service system;
所述针对每种网络属性,将具有网络属性的终端所适合访问的服务节点的IP地址,作为域名解析列表中与网络属性相匹配的服务节点的IP地址,包括:For each network attribute, the IP address of the service node that the terminal having the network attribute is suitable to access is used as the IP address of the service node in the domain name resolution list that matches the network attribute, including:
针对每种网络属性,将具有网络属性的移动终端所适合访问的服务节点的IP地址,作为第一域名解析列表中与网络属性相匹配的服务节点的IP地址,所述第一域名解析列表中存储有具有不同网络属性的移动终端所需调度到的服务节点的IP地址。For each network attribute, the IP address of the service node that the mobile terminal having the network attribute is suitable to access is used as the IP address of the service node in the first domain name resolution list that matches the network attribute, in the first domain name resolution list. The IP address of the service node to which the mobile terminal having different network attributes needs to be scheduled is stored.
在第一方面的一种可能的实现方式中,所述分别获取具有不同网络属性的终端访问服务系统中每个服务节点的平均访问时延,包括:In a possible implementation manner of the first aspect, the obtaining an average access delay of each service node in a terminal access service system having different network attributes, respectively, includes:
分别获取具有不同网络属性的有线网络终端访问服务系统中每个服务节点的平均访问时延,所述有线网络终端基于有线网络访问所述服务系统中的服务节点;Obtaining an average access delay of each service node in a wired network terminal access service system having different network attributes, where the wired network terminal accesses a service node in the service system based on a wired network;
所述针对具有每种网络属性的终端,从所述服务系统的多个服务节点中,选取出具有网络属性的终端所适合访问的服务节点,包括:For the terminal having each network attribute, a service node that is suitable for access by the terminal having the network attribute is selected from the plurality of service nodes of the service system, including:
针对具有每种网络属性的有线网络终端,从所述服务系统的多个服务节点中,选取出具有网络属性的有线网络终端所适合访问的服务节点;For a wired network terminal having each network attribute, a service node suitable for access by a wired network terminal having a network attribute is selected from a plurality of service nodes of the service system;
所述针对每种网络属性,将网络属性的终端所适合访问的服务节点的IP地址,作为域名解析列表中与网络属性相匹配的服务节点的IP地址,包括:For each network attribute, the IP address of the service node that the terminal of the network attribute is suitable to access is used as the IP address of the service node in the domain name resolution list that matches the network attribute, including:
针对每种网络属性,将网络属性的有线网络终端所适合访问的服务节点的IP地址,作为第二域名解析列表中与网络属性相匹配的服务节点的IP地址,所述第二域名解析列表中存储有具有不同网络属性的有线网络终端所需调度到的服务节点的IP地址。For each network attribute, the IP address of the service node that the wired network terminal of the network attribute is suitable to access is used as the IP address of the service node in the second domain name resolution list that matches the network attribute, and the second domain name resolution list is The IP address of the service node to which the wired network terminal having different network attributes needs to be scheduled is stored.
第二方面,本申请实施例还提供了一种调度控制装置,包括:In a second aspect, the embodiment of the present application further provides a scheduling control apparatus, including:
平均时延获取单元,用于分别获取具有不同网络属性的终端访问服务系统中每个服务节点的平均访问时延,其中,终端的网络属性表征终端所归属的运营商以及地理区域;An average delay acquisition unit is configured to respectively obtain an average access delay of each service node in the terminal access service system having different network attributes, where the network attribute of the terminal represents the operator and the geographical area to which the terminal belongs;
服务节点匹配单元,用于针对具有每种网络属性的终端,从所述服务系统的多个服务节点中,选取出具有网络属性的终端所适合访问的服务节点,其中,针对具有目标网络属 性的终端所适合访问的目标服务节点,具有所述目标网络属性的终端访问所述目标服务节点的平均访问时延满足第一预设条件;a service node matching unit, configured to: for a terminal having each network attribute, select, from a plurality of service nodes of the service system, a service node that is suitable for access by a terminal having a network attribute, where, for a target network attribute a target service node that is suitable for access by the terminal, and an average access delay of the terminal having the target network attribute accessing the target service node satisfies a first preset condition;
匹配关系确定单元,用于针对每种网络属性,将具有网络属性的终端所适合访问的服务节点的IP地址,作为域名解析列表中与网络属性相匹配的服务节点的IP地址。The matching relationship determining unit is configured to, for each network attribute, an IP address of a service node that is suitable for access by the terminal having the network attribute as an IP address of the service node in the domain name resolution list that matches the network attribute.
在第二方面的一种可能的实现方式中,针对具有目标网络属性的终端所适合访问的目标服务节点,具有所述目标网络属性的终端访问所述目标服务节点的平均访问延时最小。In a possible implementation manner of the second aspect, for a target service node that is suitable for access by a terminal having a target network attribute, an average access delay of the terminal having the target network attribute accessing the target service node is the smallest.
在第二方面的一种可能的实现方式中,针对具有目标网络属性的终端所适合访问的目标服务节点,所述目标服务节点的负载或者容量满足第二预设条件。In a possible implementation manner of the second aspect, for a target service node that is suitable for access by a terminal having a target network attribute, the load or capacity of the target service node satisfies a second preset condition.
在第二方面的一种可能的实现方式中,所述匹配关系确定单元,包括:In a possible implementation manner of the second aspect, the matching relationship determining unit includes:
匹配关系发送单元,用于将具有网络属性的终端所适合访问的服务节点的IP地址发送给权威域名服务器,以便所述权威域名服务器将存储的域名解析列表中,具有网络属性的本地域名服务器所对应的服务节点的IP地址配置为具有网络属性的终端所适合访问的服务节点的IP地址。a matching relationship sending unit, configured to send an IP address of a service node that is suitable for access by the terminal having the network attribute to the authoritative domain name server, so that the authoritative domain name server will store the domain name resolution list, and the local domain name server with the network attribute The IP address of the corresponding service node is configured as the IP address of the service node to which the terminal having the network attribute is suitable to access.
在第二方面的一种可能的实现方式中,所述匹配关系确定单元,包括:In a possible implementation manner of the second aspect, the matching relationship determining unit includes:
匹配关系配置单元,用于依据具有网络属性的终端所适合访问的目标服务节点的IP地址,配置权威域名服务器中存储的域名解析列表,以将所述域名解析列表中,具有网络属性的本地域名服务器所对应的服务节点的IP地址配置为具有网络属性的终端所适合访问的服务节点的IP地址。a matching relationship configuration unit, configured to configure a domain name resolution list stored in an authoritative domain name server according to an IP address of a target service node that is suitable for a terminal having a network attribute, to configure a local domain name with a network attribute in the domain name resolution list The IP address of the service node corresponding to the server is configured as the IP address of the service node to which the terminal having the network attribute is suitable to access.
在第二方面的一种可能的实现方式中,所述装置还包括:In a possible implementation manner of the second aspect, the device further includes:
关系配置单元,用于在所述匹配关系确定单元将具有网络属性的终端所适合访问的服务节点的IP地址,作为域名解析列表中,与网络属性相匹配的服务节点的IP地址之后,依据网络属性与服务节点的IP地址之间的匹配关系,配置权威域名服务器中存储的所述域名解析列表。a relationship configuration unit, configured to: in the matching relationship determining unit, the IP address of the service node that the terminal having the network attribute is suitable to access, as the IP address of the service node matching the network attribute in the domain name resolution list, according to the network The matching relationship between the attribute and the IP address of the service node, and configuring the domain name resolution list stored in the authoritative domain name server.
在第二方面的一种可能的实现方式中,所述平均时延获取单元,具体用于:In a possible implementation manner of the second aspect, the average delay acquisition unit is specifically configured to:
从数据服务器获取具有不同网络属性的终端访问服务系统中每个服务节点的平均访问时延,其中,所述数据服务器在获取到多个终端访问服务器中不同服务节点的访问时延之后,按照终端的网络属性,分别计算出具有每个网络属性的终端访问每个服务节点的平均访问时延。Acquiring an average access delay of each service node in the terminal access service system having different network attributes from the data server, wherein the data server obtains access delays of different service nodes in the plurality of terminal access servers, according to the terminal The network attribute calculates the average access delay of each terminal accessing each service node with each network attribute.
在第二方面的一种可能的实现方式中,所述平均时延获取单元,包括:In a possible implementation manner of the second aspect, the average delay acquisition unit includes:
时延获取单元,用于获取多个终端对服务系统中不同服务节点的访问时延,所述多个终端所具有的网络属性不同;a delay acquisition unit, configured to acquire access delays of multiple terminals to different service nodes in the service system, where the plurality of terminals have different network attributes;
终端归类单元,用于依据所述多个终端的网络属性,将具有相同网络属性的至少一个终端组成终端集合,得到多个表征不同网络属性的终端集合;a terminal categorizing unit, configured to form, according to network attributes of the multiple terminals, at least one terminal having the same network attribute to form a terminal set, to obtain a plurality of terminal sets that represent different network attributes;
平均时延计算单元,用于针对每个网络属性,分别依据表征该网络属性的终端集合内所有终端访问服务系统中每个服务节点的访问时延,计算所述终端集合中所有终端分别访问每个服务节点的平均访问时延,得到所述网络属性的终端分别访问每个服务节点的平均访问时延。An average delay calculation unit is configured to calculate, according to each network attribute, access delays of each of the service nodes in the terminal set in the terminal set according to the network attribute, and calculate, according to the access delay of each terminal in the terminal set, The average access delay of the service nodes is obtained by the terminal of the network attribute to obtain the average access delay of each service node.
在第二方面的一种可能的实现方式中,所述平均时延获取单元,包括:In a possible implementation manner of the second aspect, the average delay acquisition unit includes:
第一时延获取单元,用于分别获取具有不同网络属性的移动终端访问服务系统中每个服务节点的平均访问时延,所述移动终端采用无线网络访问所述服务系统中的服务节点;a first time delay acquisition unit, configured to respectively acquire an average access delay of each service node in the mobile terminal access service system having different network attributes, where the mobile terminal accesses the service node in the service system by using a wireless network;
所述服务节点匹配单元,包括:The service node matching unit includes:
第一节点匹配单元,用于针对具有每种网络属性的移动终端,从所述服务系统的多个服务节点中,选取出网络属性的移动终端所适合访问的服务节点;a first node matching unit, configured to: for a mobile terminal having each network attribute, select, from among a plurality of service nodes of the service system, a service node that is suitable for access by a mobile terminal with a network attribute;
所述匹配关系确定单元,包括:The matching relationship determining unit includes:
第一关系确定单元,用于针对每种网络属性,将具有网络属性的移动终端所适合访问的服务节点的IP地址,作为第一域名解析列表中,与网络属性相匹配的服务节点的IP地址,所述第一域名解析列表中存储有具有不同网络属性的移动终端所需调度到的服务节点的IP地址。a first relationship determining unit, configured to use, for each network attribute, an IP address of a service node that is suitable for access by the mobile terminal having the network attribute as an IP address of the service node that matches the network attribute in the first domain name resolution list And storing, in the first domain name resolution list, an IP address of a service node that is required to be scheduled by the mobile terminal having different network attributes.
在第二方面的一种可能的实现方式中,所述平均时延获取单元,包括:In a possible implementation manner of the second aspect, the average delay acquisition unit includes:
第二时延获取单元,用于分别具有获取不同网络属性的有线网络终端访问服务系统中每个服务节点的平均访问时延,所述有线网络终端基于有线网络访问所述服务系统中的服务节点;a second time delay acquisition unit, configured to respectively obtain an average access delay of each service node in the wired network terminal access service system for acquiring different network attributes, where the wired network terminal accesses the service node in the service system based on the wired network ;
所述服务节点匹配单元,包括:The service node matching unit includes:
第二节点匹配单元,用于针对具有每种网络属性的有线网络终端,从所述服务系统的多个服务节点中,选取出具有网络属性的有线网络终端所适合访问的服务节点;a second node matching unit, configured to: for a wired network terminal having each network attribute, select, from among a plurality of service nodes of the service system, a service node that is suitable for access by a wired network terminal having a network attribute;
所述匹配关系确定单元,包括:The matching relationship determining unit includes:
第二关系确定单元,用于针对每种网络属性,将具有网络属性的有线网络终端所适合访问的服务节点的IP地址,作为第二域名解析列表中,与网络属性相匹配的服务节点的IP地址,所述第二域名解析列表中存储有具有不同网络属性的有线网络终端所需调度到的服务节点的IP地址。a second relationship determining unit, configured to, for each network attribute, an IP address of a service node that is suitable for access by the wired network terminal having the network attribute, as an IP address of the service node matching the network attribute in the second domain name resolution list An address, where the second domain name resolution list stores an IP address of a service node that is scheduled to be scheduled by a wired network terminal having a different network attribute.
第三方面,本申请实施例还提供了一种调度控制系统,包括:In a third aspect, the embodiment of the present application further provides a scheduling control system, including:
数据服务器以及配置服务器;Data server and configuration server;
其中,所述数据服务器,用于获取多个终端访问服务系统中不同服务节点的访问时延;针对具有每种网络属性的终端,分别计算具有网络属性的所有终端访问服务系统中每个服务节点的平均访问时延,其中,终端的网络属性表征终端所归属的运营商以及地理区域;The data server is configured to acquire access delays of different service nodes in multiple terminal access service systems; and calculate, for each terminal having each network attribute, each service node in all terminal access service systems having network attributes Average access delay, where the network attribute of the terminal characterizes the operator to which the terminal belongs and the geographic area;
所述配置服务器,用于根据具有不同网络属性的终端访问服务系统中每个服务节点的平均访问时延,分别从所述服务系统的多个服务节点中,选取出具有每种网络属性的终端所适合访问的服务节点,其中,针对具有目标网络属性的终端所适合访问的目标服务节点,具有所述目标网络属性的终端访问所述目标服务节点的平均访问时延满足第一预设条件;针对每种网络属性,将具有网络属性的终端所适合访问的服务节点的IP地址,作为域名解析列表中与网络属性相匹配的服务节点的IP地址。The configuration server is configured to select a terminal having each network attribute from multiple service nodes of the service system according to an average access delay of each service node in the terminal access service system having different network attributes. a service node that is suitable for access, wherein, for a target service node that is suitable for access by a terminal having a target network attribute, an average access delay of the terminal having the target network attribute accessing the target service node satisfies a first preset condition; For each network attribute, the IP address of the service node that the terminal having the network attribute is suitable to access is used as the IP address of the service node in the domain name resolution list that matches the network attribute.
在第三方面的一种可能的实现方式中,所述数据服务器在获取多个终端访问服务系统中不同服务节点的访问时延时,具体用于,获取多个移动终端访问服务系统中不同服务节点的访问时延,以及多个有线网络终端访问服务系统中不同服务节点的访问时延;In a possible implementation manner of the third aspect, the data server obtains a delay in accessing different service nodes in a plurality of terminal access service systems, and is specifically configured to acquire different services in multiple mobile terminal access service systems. The access delay of the node and the access delay of different service nodes in the plurality of wired network terminals accessing the service system;
所述数据服务器在针对具有每种网络属性的终端,分别计算具有网络属性的终端访问服务系统中每个服务节点的平均访问时延时,具体用于:The data server calculates the average access time delay of each service node in the terminal access service system with network attributes for the terminal having each network attribute, specifically for:
针对具有每种网络属性的移动终端,计算具有网络属性的所有移动终端访问服务系统中每个服务节点的平均访问时延,所述移动终端采用无线网络访问所述服务系统中的服务节点;Calculating, for a mobile terminal having each network attribute, an average access delay of each service node in the service system having all the network attributes, the mobile terminal accessing the service node in the service system by using a wireless network;
针对具有每种网络属性的有线网络终端,计算具有网络属性的所有线网络终端访问服务系统中每个服务节点的平均访问时延,所述有线网络终端基于有线网络访问所述服务系统中的服务节点;Calculating, for a wired network terminal having each network attribute, an average access delay of each of the service nodes having access to the service system in all of the line network terminals having the network attribute, the wired network terminal accessing the service in the service system based on the wired network node;
所述配置服务器在根据具有不同网络属性的终端访问服务系统中每个服务节点的平均访问时延,分别从所述服务系统的多个服务节点中,选取出具有每种网络属性的终端所适合访问的服务节点时,具体用于:The configuration server selects, according to the average access delay of each service node in the terminal access service system having different network attributes, from the plurality of service nodes of the service system, the terminal having each network attribute is suitable. When accessing a service node, it is specifically used to:
分别从所述服务系统的多个服务节点中,选取出具有每种网络属性的移动终端所适合访问的服务节点;或,选取出具有每种网络属性的有线网络终端所适合访问的服务节点。Selecting, from the plurality of service nodes of the service system, a service node that is suitable for access by the mobile terminal having each network attribute; or selecting a service node that is suitable for access by the wired network terminal having each network attribute.
在第三方面的一种可能的实现方式中,所述调度控制系统还包括:部署于所述服务系统中不同机房内的多个测速节点,其中,所述服务系统的每个服务节点关联有一个测速节点,且服务节点关联的测速节点与服务节点部署于同一机房内;In a possible implementation manner of the third aspect, the scheduling control system further includes: a plurality of speed measuring nodes deployed in different equipment rooms in the service system, wherein each service node of the service system is associated with a speed measuring node, and the speed measuring node associated with the service node and the service node are deployed in the same equipment room;
所述数据服务器在获取多个移动终端访问服务系统中不同服务节点的访问时延时,具体用于:获取多个移动终端访问不同测速节点的访问时延;The data server obtains a delay of accessing different service nodes in a plurality of mobile terminal access service systems, and is specifically configured to: obtain access delays of multiple mobile terminals to access different speed measurement nodes;
所述数据服务器在针对具有每种网络属性的移动终端,计算具有网络属性的所有移动终端访问服务系统中每个服务节点的平均访问时延时,具体用于:The data server calculates, for a mobile terminal having each network attribute, an average access time delay of each service node in the service system having all the network attributes, specifically for:
针对具有每种网络属性的移动终端,计算具有网络属性的所有移动终端访问服务系统中每个测速节点的平均访问时延,并依据测速节点与服务节点的关联关系,确定具有网络属性的所有移动终端访问服务系统中每个服务节点的平均访问时延;For the mobile terminal with each network attribute, calculate the average access delay of each speed-measuring node in all the mobile terminal access service systems with the network attribute, and determine all the movements with the network attribute according to the association relationship between the speed measuring node and the service node. The average access delay of each service node in the terminal access service system;
所述测速节点,用于根据所述测速节点关联的服务节点所返回的目标网关的IP地址,测试所述目标网关到所述测速节点的访问时延,所述目标网关的IP地址为所述测速节点关联的服务节点在接收到所述有线网络终端的访问请求时,反向路由出的所述有线网络终端所属的网关的IP地址,所述有线网络终端的网络属性与所述有线网络终端所属的目标网关的网络属性相同;将所述目标网关到所述测速节点的访问时延作为所述有线网络终端到所述测速节点的访问时延,发送给所述数据服务器。The speed measuring node is configured to test an access delay of the target gateway to the speed measuring node according to an IP address of the target gateway returned by the service node associated with the speed measuring node, where the IP address of the target gateway is When the service node associated with the speed measuring node receives the access request of the wired network terminal, the IP address of the gateway to which the wired network terminal belongs is reversely routed, the network attribute of the wired network terminal and the wired network terminal The network attribute of the associated target gateway is the same; the access delay of the target gateway to the speed measuring node is used as the access delay of the wired network terminal to the speed measuring node, and is sent to the data server.
第四方面,本申请实施例提供了一种存储介质,该存储介质用于存储程序代码,该程序代码用于执行第一方面中任一项调度控制方法。In a fourth aspect, the embodiment of the present application provides a storage medium for storing program code, where the program code is used to execute any one of the scheduling control methods of the first aspect.
第五方面,本申请实施例提供了一种包括指令的计算机程序产品,当其在计算机上运行时,使得该计算机执行第一方面中任一项调度控制方法。In a fifth aspect, an embodiment of the present application provides a computer program product comprising instructions, when executed on a computer, causing the computer to perform any one of the scheduling control methods of the first aspect.
由以上可知,本申请实施例中,分别获取具有不同网络属性(所归属的运营商以及地理区域)的终端对服务系统中不同服务节点的平均访问时延,并针对具有每个网络属性的终端,根据具有网络属性的终端对不同服务节点的平均访问时延,有利于从服务系统中选取出更为适合具有网络属性的终端访问的服务节点,其中,针对具有目标网络属性的终端所适合访问的目标服务节点,具有目标网络属性的终端访问目标服务节点的平均访问时延满足第一预设条件,从而使得具有目标网络属性的终端访问该目标服务节点的访问时延相对较小。这样,在将具有网络属性的移动终端所适合访问的服务节点的IP地址确定为域名解析列表中网络属性对应的服务节点的IP地址之后,后续具有目标网络属性的终端访问该服务系统时,权威域名服务器就可以依据该域名解析列表,将该目标网络属性的终端调度到访问时延较小的该目标服务节点,从而有利于减少终端访问服务系统的访问延迟,提高了终端访问服务系统的访问速度。It can be seen from the above that in the embodiment of the present application, the average access delays of different service nodes in the service system are obtained by the terminals having different network attributes (the carrier and the geographical area to which they belong), and are directed to the terminal having each network attribute. According to the average access delay of the terminal with the network attribute to different service nodes, it is advantageous to select a service node that is more suitable for terminal access with the network attribute from the service system, wherein the terminal is suitable for accessing the terminal with the target network attribute. The target service node, the average access delay of the terminal access target service node having the target network attribute satisfies the first preset condition, so that the access delay of the terminal having the target network attribute accessing the target service node is relatively small. In this way, after the IP address of the service node that the mobile terminal having the network attribute is suitable to access is determined as the IP address of the service node corresponding to the network attribute in the domain name resolution list, when the terminal having the target network attribute subsequently accesses the service system, the authority The domain name server can, according to the domain name resolution list, schedule the terminal of the target network attribute to the target service node with a small access delay, thereby reducing the access delay of the terminal access service system and improving the access of the terminal access service system. speed.
附图说明DRAWINGS
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings used in the description of the embodiments will be briefly described below. It is obvious that the drawings in the following description are only some embodiments of the present application. Other drawings may also be obtained from those of ordinary skill in the art in view of the drawings.
图1示出了一种域名解析场景的示意图;FIG. 1 is a schematic diagram of a domain name resolution scenario;
图2示出了基于域名解析关系进行域名解析的一种示意图;FIG. 2 is a schematic diagram of domain name resolution based on a domain name resolution relationship;
图3示出了本申请的配置域名解析的方法所适用的一种域名配置系统的一种可能的组成结构示意图;FIG. 3 is a schematic diagram showing a possible composition structure of a domain name configuration system to which the method for configuring domain name resolution in the present application is applicable;
图4示出了本申请的配置域名解析的方法所适用的一种应用场景的组成结构示意图;FIG. 4 is a schematic structural diagram of a configuration scenario of an application scenario to which the method for configuring domain name resolution in the present application is applied;
图5示出了本申请一种配置域名解析的方法一个实施例的流程示意图;FIG. 5 is a schematic flowchart diagram of an embodiment of a method for configuring domain name resolution according to the present application;
图6示出了本申请一种配置域名解析的方法又一个实施例的流程示意图;FIG. 6 is a schematic flowchart diagram of still another embodiment of a method for configuring domain name resolution according to the present application;
图7示出了在应用本申请的配置域名解析的方法配置了域名解析列表之后,域名解析系统进行域名解析的一种流程示意图;FIG. 7 is a schematic flowchart of the domain name resolution system performing domain name resolution after the domain name resolution list is configured by applying the domain name resolution method in the application of the present application;
图8示出了本申请一种配置域名解析的装置一个实施例的组成结构示意图;FIG. 8 is a schematic structural diagram of an apparatus for configuring domain name resolution according to an embodiment of the present application;
图9示出了本申请一种配置服务器的一个实施例的组成结构示意图。FIG. 9 is a block diagram showing the structure of an embodiment of a configuration server of the present application.
具体实施方式detailed description
为了便于理解本申请的方案,先对域名解析的场景进行介绍。参见图1,其示出了一种域名解析场景的示意图。In order to facilitate the understanding of the solution of the present application, the scenario of domain name resolution is introduced first. Referring to Figure 1, a schematic diagram of a domain name resolution scenario is shown.
在图1的场景中,至少包括发起域名解析请求的终端,本地域名服务器(Local Domain Name Server,LDNS),根域名服务器,通用顶级域名服务器以及第三级域名服务器。其中,不同运营商的LDNS不同,即使相同运营商在不同位置范围内也可能会部署不同的LDNS,因此,当终端所归属的运营商以及所处的位置范围不同时,终端所对应的LDNS也不同。In the scenario of FIG. 1, at least a terminal that initiates a domain name resolution request, a local domain name server (LDNS), a root domain name server, a generic top-level domain name server, and a third-level domain name server are included. The LDNS of different operators is different. Even if the same carrier is deployed in different locations, different LDNSs may be deployed. Therefore, when the operators to which the terminals belong and the location range are different, the LDNS corresponding to the terminals is also different.
图1是通过逐级递归进行域名解析的方式,在图1的场景中LDNS也可以称为递归域名解析服务器。FIG. 1 is a manner of performing domain name resolution by recursively. In the scenario of FIG. 1, LDNS may also be referred to as a recursive domain name resolution server.
如图1,在步骤101中,终端向运营商的本地域名服务器发送的域名解析请求中携带有待解析的域名“WWW.XXX.com.”。As shown in Figure 1, in the step 101, the domain name resolution request sent by the terminal to the local domain name server of the operator carries the domain name "WWW.XXX.com." to be resolved.
在步骤102中,LDNS会向根域名服务器发起域名解析请求。In step 102, the LDNS initiates a domain name resolution request to the root domain name server.
在步骤103中,根域名服务器为该LDNS返回通用顶级域名服务器的地址。In step 103, the root domain name server returns the address of the generic top level domain server for the LDNS.
由于根域名服务器无法确定该域名“WWW.XXX.com.”所对应的IP地址,而只知道解析该域名中的通用顶级域名“.com.”所需访问的通用顶级域名服务器的地址,因此,根域名服务器会指示LDNS访问该通用顶级域名服务器。Since the root domain name server cannot determine the IP address corresponding to the domain name "WWW.XXX.com.", but only knows the address of the generic top-level domain name server that needs to be accessed by the generic top-level domain name ".com." in the domain name, The root name server will instruct the LDNS to access the generic top-level domain server.
在步骤104中,LDNS向通用顶级域名服务器发起域名解析请求。In step 104, the LDNS initiates a domain name resolution request to the generic top level domain server.
在步骤105中,通用顶级域名服务器为该LDNS返回解析该域名“WWW.XXX.com.”所需访问的第三级域名服务器的地址。In step 105, the generic top-level domain name server returns the address of the third-level domain name server that the domain name "WWW.XXX.com." needs to access for the LDNS.
由于通用顶级域名服务器也无法解析出该“WWW.XXX.com.”所对应的IP地址,但是通用顶级域名服务器可以确定解析该域名“***.XXX.com.”所需访问的第三级域名服务器,因此,该通用顶级域名服务器将该第三级域名服务器的地址发送给该LDNS。Since the generic top-level domain name server cannot resolve the IP address corresponding to the "WWW.XXX.com.", the generic top-level domain name server can determine the third access required to resolve the domain name "***.XXX.com." The domain name server, therefore, the generic top-level domain server sends the address of the third-level domain name server to the LDNS.
在步骤106中,LDNS向该第三级域名服务器发送域名解析请求。In step 106, the LDNS sends a domain name resolution request to the third level domain name server.
在步骤107中,第三级域名服务器查询该域名“WWW.XXX.com.”对应的IP地址之后,将查询到的IP地址返回给该LDNS。In step 107, after the third-level domain name server queries the IP address corresponding to the domain name "WWW.XXX.com.", the queried IP address is returned to the LDNS.
在步骤108中,LDNS将该域名“WWW.XXX.com.”对应的IP地址返回给终端。In step 108, the LDNS returns the IP address corresponding to the domain name "WWW.XXX.com." to the terminal.
由以上可知,LDNS需要从根域名服务器开始一级一级递归,最终查到第三级域名服务器,并由该第三级域名服务器将域名解析为IP地址。可以理解的是,图1仅仅是以包含三级递归的域名解析系统为例进行介绍,在该种情况下,最底级域名服务器为第三级域名服务器,但是在实际应用中LDNS有可能会经过更多级递归才可以最终定位到最底级域名服务器,并由最底级域名服务器将域名解析为IP地址。It can be seen from the above that the LDNS needs to start the first-level recursion from the root domain name server, and finally finds the third-level domain name server, and the third-level domain name server resolves the domain name into an IP address. It can be understood that FIG. 1 is only an example of a domain name resolution system including three levels of recursion. In this case, the lowest level domain name server is a third level domain name server, but in actual application, LDNS may be After more levels of recursion, you can finally locate the lowest-level domain name server, and the domain name server resolves the domain name to an IP address.
其中,最底级域名服务器也被称为权威域名服务器,在该权威域名服务器中配置有域名与IP地址的对应关系,如域名解析列表。可见,只有LDNS定位出权威域名服务器,才可以通过该权威域名服务器完成将域名解析为IP地址的操作。The bottom-level domain name server is also referred to as an authoritative domain name server. The domain name and the IP address are configured in the authoritative domain name server, such as a domain name resolution list. It can be seen that only the LDNS locates the authoritative domain name server, and the operation of resolving the domain name into an IP address can be completed through the authoritative domain name server.
当然,图1仅仅是为了理解域名解析过程而描述的一种域名解析过程,在实际应用中,域名解析的过程还可以有其他可能,本申请对此不加以限制。Of course, FIG. 1 is only a domain name resolution process described in order to understand the domain name resolution process. In actual applications, the process of domain name resolution may have other possibilities, which is not limited in this application.
本申请的发明人经过对域名解析的过程进行研究发现:由于终端对应的LDNS可以表征出终端所归属的运营商以及所处的地理区域,目前,在该权威域名服务器中一般会配置有LDNS的标识、域名与IP地址的对应关系。目前,在服务系统的一个域名对应多个服务节点的IP地址的情况下,一般都是依据LDNS所属运营商以及地理区域,以及该服务系统中多个服务节点所部属的位置,采取就近接入原则,从该多个IP地址中,选取出与LDNS距离较近的服务节点的IP地址,并建立选取出的IP地址与该LDNS以及域名之间的对应关系。The inventor of the present application has conducted research on the process of domain name resolution. It is found that the LDNS corresponding to the terminal can represent the operator to which the terminal belongs and the geographical area in which the terminal belongs. Currently, LDNS is generally configured in the authoritative domain name server. The correspondence between the identifier, domain name, and IP address. At present, when a domain name of a service system corresponds to an IP address of a plurality of service nodes, the proximity access is generally adopted according to the operator and the geographical area to which the LDNS belongs, and the location of the plurality of service nodes in the service system. In principle, the IP address of the service node that is closer to the LDNS is selected from the plurality of IP addresses, and the correspondence between the selected IP address and the LDNS and the domain name is established.
参见图2,以两个不同的LDNS为例,假设一个LDNS为电信运营商处于广州的LDNS,一个LDNS为联通运营商处于上海的LDNS,同时,假设服务系统中,与电信运营商处于广州的LDNS距离最近的服务节点的IP地址为:119.***.15.13,而与联通运营商处于上海的LDNS距离最近的服务节点的IP地址为:123.***.119.147,那么权威域名服务器中可以存储如下两种对应关系:Referring to Figure 2, taking two different LDNSs as an example, assume that one LDNS is the LDNS of the telecom operator in Guangzhou, and one LDNS is the LDNS of the Unicom operator in Shanghai. At the same time, it is assumed that the service system is in Guangzhou with the telecom operator. The IP address of the nearest service node of LDNS is: 119.***.15.13, and the IP address of the service node closest to the LDNS of China Unicom's operator in Shanghai is: 123.***.119.147, then the authoritative domain name server The following two correspondences can be stored:
域名:www.a*b.com,广州—电信运营商,IP地址:119.***.15.13;Domain name: www.a*b.com, Guangzhou - Telecom operator, IP address: 119.***.15.13;
域名:www.a*b.com,上海—联通运营商,IP地址:123.***.119.147。Domain name: www.a*b.com, Shanghai-China Unicom operator, IP address: 123.***.119.147.
相应的,由图2可以看出,当广州-电信运营商的终端以及上海-联通运营商的终端均发起对www.a*b.com的解析请求时,权威域名服务器会根据以上对应关系返回不同的IP地址。Correspondingly, as can be seen from Figure 2, when the terminal of the Guangzhou-telecom operator and the terminal of the Shanghai-China Unicom operator initiate a resolution request for www.a*b.com, the authoritative domain name server will return according to the above correspondence. Different IP addresses.
然而,依据就近接入原则为权威域名服务器建立以上对应关系,却并未考虑终端访问不同服务节点的访问时延(或者说,网络延迟)。其中,访问时延可以认为是从终端发送的 报文到达该服务节点所需的时间。虽然服务节点的位置与该终端对应的LDNS的位置较近,但是终端访问该服务节点的访问时延却可能会较大,这样,就会导致终端访问该服务系统的访问速度较慢,影响到访问服务系统的访问体验。However, the above correspondence is established for the authoritative domain name server according to the nearest access principle, but the access delay (or network delay) of the terminal accessing different service nodes is not considered. The access delay may be considered as the time required for the packet sent from the terminal to reach the serving node. Although the location of the service node is close to the location of the LDNS corresponding to the terminal, the access delay of the terminal accessing the service node may be large, so that the access speed of the terminal accessing the service system is slow, which affects Access the access experience of the service system.
为了解决如上问题,本申请实施例提供了一种调度控制方法,在该方案中,需要分别针对具有不同网络属性(如,表征终端或设备所归属的运营商以及地理区域等信息)的终端,统计具有每种网络属性的终端访问服务系统中每个服务节点的平均访问时延;分别针对具有每种网络属性的终端对服务系统的不同服务节点的平均访问时延,从服务系统中选取出具有网络属性的终端所适合访问的服务节点,针对具有目标网络属性的终端所适合访问的目标服务节点,具有所述目标网络属性的终端访问所述目标服务节点的平均访问时延满足第一预设条件。并将具有网络属性的终端所适合访问的服务节点的IP地址,作为域名解析列表中,与网络属性相匹配的服务节点的IP地址。可见,在本申请的方案在确定域名解析表中不同网络属性所需匹配的服务节点的IP地址时,综合考虑了具有不同网络属性的终端访问服务系统中各个服务节点的平均访问时延,从而能够合理的确定出不同终端所需调度到的服务节点,从而有利于减少终端访问服务系统的访问延迟,提高了终端访问服务系统的访问速度。In order to solve the above problem, the embodiment of the present application provides a scheduling control method, in which a terminal having different network attributes (for example, information indicating a terminal or a device to which a device belongs and a geographical area) is separately required. Counting the average access delay of each service node in the terminal access service system with each network attribute; selecting the average access delay for the different service nodes of the service system for each terminal having each network attribute, respectively, from the service system a service node that is suitable for access by a terminal having a network attribute, for a target service node that is suitable for access by a terminal having a target network attribute, and an average access delay of the terminal having the target network attribute accessing the target service node satisfies a first pre- Set conditions. And the IP address of the service node that the terminal having the network attribute is suitable to access is the IP address of the service node that matches the network attribute in the domain name resolution list. It can be seen that, when the solution of the present application determines the IP address of the service node that needs to be matched by different network attributes in the domain name resolution table, the average access delay of each service node in the terminal access service system with different network attributes is comprehensively considered, thereby It is possible to reasonably determine the service nodes that need to be scheduled by different terminals, thereby reducing the access delay of the terminal access service system and improving the access speed of the terminal access service system.
为了便于理解本申请的方案,下面首先对本申请的一种配置域名解析信息的方法所使用的一种调度控制系统进行介绍,如参见图3。In order to facilitate the understanding of the solution of the present application, a scheduling control system used in the method for configuring domain name resolution information of the present application is first introduced, as shown in FIG. 3.
由图3可以看出,该调度控制系统可以包括:As can be seen from FIG. 3, the dispatch control system can include:
数据服务器301以及配置服务器302; Data server 301 and configuration server 302;
其中,数据服务器301,用于获取多个终端访问服务系统中不同服务节点的访问时延,其中,该多个终端的网络属性不完全相同;针对具有每种网络属性的终端,分别计算具有网络属性的所有终端访问每个服务节点的平均访问时延,其中终端的网络属性可以表征终端所归属的运营商以及地理区域,当然,该网络属性还可以包括该终端的其他网络属性,在此不加以限制。The data server 301 is configured to obtain access delays of different service nodes in the plurality of terminal access service systems, where network attributes of the multiple terminals are not identical; for the terminals having each network attribute, respectively, the network is calculated. All the terminals of the attribute access the average access delay of each service node, wherein the network attribute of the terminal can represent the operator to which the terminal belongs and the geographical area. Of course, the network attribute may also include other network attributes of the terminal, and Limit it.
相应的,配置服务器302,用于从数据服务器301中获取具有不同网络属性的终端访问服务系统中每个服务节点的平均访问时延;针对具有每种网络属性的终端,从服务系统的多个服务节点中,选取出具有网络属性的终端所适合访问的服务节点,并将具有网络属性的终端所适合访问的服务节点的IP地址,作为域名解析列表中,与网络属性相匹配的服务节点的IP地址。其中,针对具有目标网络属性的终端所适合访问目标服务节点,具有所述目标网络属性的终端访问所述目标服务节点的平均访问时延满足第一预设条件。如,该第一预设条件可以为具有目标网络属性的终端访问该目标服务节点的平均访问时延小于具有目标网络属性的终端访问服务系统中除该目标服务节点之外的其他服务节点的访问时延。Correspondingly, the configuration server 302 is configured to obtain, from the data server 301, an average access delay of each service node in the terminal access service system having different network attributes; for the terminal having each network attribute, multiple from the service system In the service node, a service node that is suitable for access by a terminal having a network attribute is selected, and an IP address of a service node that is suitable for access by a terminal having a network attribute is used as a service node that matches a network attribute in a domain name resolution list. IP address. The average access delay of the terminal having the target network attribute accessing the target service node meets the first preset condition, for the terminal having the target network attribute being suitable for accessing the target service node. For example, the first preset condition may be that the average access delay of the terminal having the target network attribute accessing the target service node is smaller than the access of the service access node other than the target service node in the terminal access service system having the target network attribute. Delay.
可选的,该配置服务器302还可以用于根据与不同运营商以及地理区域相匹配的服务节点,配置权威域名服务器的域名解析列表中,不同运营商以及地理区域与服务节点之间的对应关系。可以理解的是,以上是以数据服务器301计算具有每种网络属性的所有终端对服务系统中服务节点的平均访问时延为例进行介绍,但是实际应用中,也可以由配置服务器来完成计算平均访问时延的操作,在此不加以限制。Optionally, the configuration server 302 is further configured to configure, according to the service node that matches the different operators and the geographic area, the correspondence between the different operators and the geographical area and the service node in the domain name resolution list of the authoritative domain name server. . It can be understood that the above is an example in which the data server 301 calculates the average access delay of all the terminals having the network attributes to the service nodes in the service system, but in actual applications, the calculation average can also be completed by the configuration server. The operation of accessing the delay is not limited here.
当然,在实际应用中,该配置服务器302与该数据服务器301可以如图3所示各自独立设置,也可以是结合到一个服务器中,如,该配置服务器302可以集成为该数据服务器301中获取访问时延数据的功能模块。Of course, in the actual application, the configuration server 302 and the data server 301 may be separately set as shown in FIG. 3, or may be combined into one server. For example, the configuration server 302 may be integrated into the data server 301. A functional module for accessing latency data.
为了便于理解,下面结合本申请实施例的一种调度控制方法所适用的一种应用场景进行介绍。如图4,其示出了本申请实施例所使用的一种应用场景的组成结构示意图。For ease of understanding, an application scenario to which a scheduling control method in the embodiment of the present application is applied is introduced below. FIG. 4 is a schematic diagram showing the structure of an application scenario used in the embodiment of the present application.
由图4可知,该应用场景中包括:服务系统40,域名解析系统41以及调度控制系统42。As shown in FIG. 4, the application scenario includes: a service system 40, a domain name resolution system 41, and a scheduling control system 42.
其中,该服务系统40包括部署于不同位置处的多个服务节点401。The service system 40 includes a plurality of service nodes 401 deployed at different locations.
域名解析系统41至少包括:权威域名服务器411以及多个本地域名服务器LDNS412。The domain name resolution system 41 includes at least an authoritative domain name server 411 and a plurality of local domain name servers LDNS 412.
其中,每一个LDNS412的网络属性均不同,LDNS的网络属性同样可以为该LDNS归属的运营商以及地理区域。如,该多个LDNS可以至少包括:部署于第一地理区域内且归属于第一运营商的第一LDNS;部署于第二地理区域且归属于第一运营商的第二LDNS;部署于第一地理区域内且归属于第二运营商的第三LDNS;部署于第二地理区域内且归属于第二运营商的第四LDNS,其中,第一地理区域与第二地理区域不同,且第一运营商与第二运营商不同。The network attribute of each LDNS 412 is different, and the network attribute of the LDNS can also be the operator and the geographical area to which the LDNS belongs. For example, the multiple LDNSs may include at least: a first LDNS that is deployed in the first geographic area and belongs to the first operator; a second LDNS that is deployed in the second geographic area and belongs to the first carrier; a third LDNS that is located in a geographic area and belongs to the second operator; a fourth LDNS that is deployed in the second geographic area and belongs to the second operator, where the first geographic area is different from the second geographical area, and the first An operator is different from the second carrier.
在该权威域名服务器411中存储有域名解析列表,该域名解析列表中可以包括:服务系统的域名、网络属性与该服务系统中服务节点的IP地址之间的对应关系。考虑到不同LDNS的网络属性不同,因此,该域名解析列表中具体可以存储该服务系统的域名、LDNS的标识与该服务系统中服务节点的IP地址之间的对应关系。The domain name resolution list is stored in the authoritative domain name server 411, and the domain name resolution list may include: a correspondence between a domain name of the service system, a network attribute, and an IP address of the service node in the service system. Considering that the network attributes of different LDNSs are different, the domain name resolution list may specifically store the correspondence between the domain name of the service system, the identifier of the LDNS, and the IP address of the service node in the service system.
该调度控制系统42包括:数据服务器421以及配置服务器422。The dispatch control system 42 includes a data server 421 and a configuration server 422.
该数据服务器421以及配置服务器422的具体功能可以参照前面的相关介绍。The specific functions of the data server 421 and the configuration server 422 can be referred to the related introduction.
相应的,该配置服务器422还可以与权威域名服务器411通过网络相连,这样,配置服务器422可以将具有每种网络属性的终端所适合的服务节点的信息发送给权威域名服务器411,或者对该权威域名服务器411中的域名解析列表进行配置。Correspondingly, the configuration server 422 can also be connected to the authoritative domain name server 411 via the network, so that the configuration server 422 can send information of the service node suitable for the terminal having each network attribute to the authoritative domain name server 411, or the authority The domain name resolution list in the domain name server 411 is configured.
在该应用场景中,还可以包括:归属于不同LDNS的多个终端43(图4中仅仅示出了一个终端),其中,归属于不同的LDNS的终端43的网络属性不同。如,终端1归属于运营商A设置于城市M处的LDNS,则说明终端1的运营商为运营商A,且终端1为运营商A在城市M范围内的用户的终端。In this application scenario, the terminal 43 belonging to different LDNSs (only one terminal is shown in FIG. 4) may be further included, wherein the network attributes of the terminals 43 belonging to different LDNSs are different. For example, if the terminal 1 belongs to the LDNS set by the operator A at the city M, the operator of the terminal 1 is the operator A, and the terminal 1 is the terminal of the user of the operator A in the range of the city M.
可以理解的是,获取终端访问不同服务节点的访问时延的方式可以有多种方式。如,可以在终端访问服务节点时,服务系统40可以指示终端向不同的服务节点发送测试数据包;终端根据发送测试数据包的时刻,以及服务节点返回的该测试数据包的响应数据包的时刻,来确定该终端访问该服务节点的访问时延;相应的,终端可以将测试出访问不同服务节点的访问时延发送给该数据服务器。It can be understood that there are many ways to obtain the access delay of the terminal to access different service nodes. For example, when the terminal accesses the service node, the service system 40 may instruct the terminal to send a test data packet to different service nodes; the time when the terminal transmits the test data packet, and the time of the response data packet of the test data packet returned by the service node. To determine the access delay of the terminal to access the service node; correspondingly, the terminal may send an access delay to test access to different service nodes to the data server.
可选的,由于服务节点在不同时刻所需处理的业务量不同,为了避免由于服务节点处理业务而影响到访问时延的测试,也为了避免测试访问时延而影响到服务节点的业务处理,在图4的应用场景中,还包括:与服务节点401关联的测速节点402,每个服务节点401关联有至少一个测速节点402,测速节点402与其关联的服务节点401处于相同位置处,具体的,服务节点401关联的测速节点402与该服务节点401可以部署于同一个机房内。Optionally, because the service nodes need to process different services at different times, in order to avoid the test of the access delay caused by the service node processing the service, and to avoid the test access delay, the service processing of the service node is affected. In the application scenario of FIG. 4, the method further includes: a speed measuring node 402 associated with the service node 401, each service node 401 is associated with at least one speed measuring node 402, and the speed measuring node 402 is at the same position as its associated service node 401, specific The speed measuring node 402 associated with the service node 401 and the service node 401 can be deployed in the same equipment room.
由于与服务节点401关联的测速节点402与该服务节点401部署于相同位置处(如,同一机房内),因此,同一台终端访问该测速节点402的访问延迟,与该终端访问该测速节点402关联的服务节点401的访问时延相同。Since the speed measuring node 402 associated with the service node 401 and the service node 401 are deployed at the same location (eg, in the same equipment room), the same terminal accesses the access delay of the speed measuring node 402, and the terminal accesses the speed measuring node 402. The access delay of the associated service node 401 is the same.
通过测试终端访问测速节点402的访问时延,并将测试出的访问延迟作为终端访问该测速节点402关联的服务节点401的访问时延,从而可以更为真实的反映出终端访问该服务节点401的网络状态,使得访问时延能够更为接近真实的网络延迟。The access delay of the speed measurement node 402 is accessed by the test terminal, and the tested access delay is used as the access delay of the service node 401 associated with the speed measurement node 402, so that the terminal can access the service node 401 more realistically. The network state makes the access latency closer to the real network latency.
相应的,在图4的场景中,该数据服务器421可以与测速节点402通过网络相连,以使得数据服务器421可以获取测速节点402上报的不同终端的访问时延,并将该测速节点402上报的不同终端的访问时延作为不同终端访问该测速节点402对应的服务节点401的访问时延。Correspondingly, in the scenario of FIG. 4, the data server 421 can be connected to the speed measuring node 402 through a network, so that the data server 421 can obtain the access delay of different terminals reported by the speed measuring node 402, and report the speed measuring node 402. The access delays of different terminals are used as access delays of the service nodes 401 corresponding to the speed measurement nodes 402 by different terminals.
当然,也可以存在由终端计算出该终端与测速节点的访问时延的情况,在该种情况中,该数据服务器421还可以通过网络与终端相连,以便获取到终端访问不同测速节点402的访问时延,并将终端访问不同测速节点402的访问延迟作为终端访问不同测速节点402对应的不同服务节点401的访问时延。Of course, there may be a case where the terminal calculates the access delay of the terminal and the speed measuring node. In this case, the data server 421 may also be connected to the terminal through the network, so as to obtain the access of the terminal to the different speed measuring nodes 402. The delay is used, and the access delay of the terminal accessing the different speed measuring nodes 402 is used as the access delay of the different service nodes 401 corresponding to the different speed measuring nodes 402.
可以理解的是,在本申请实施例中,终端可以为手机、平板电脑等基于移动互联网访问服务系统的移动终端;该终端也可以是台式计算机等基于有线网络(俗称的固网)访问服务系统的终端,简称有线网络终端。It can be understood that, in the embodiment of the present application, the terminal may be a mobile terminal, a tablet computer, or the like, based on a mobile Internet access service system; the terminal may also be a desktop computer or the like based on a wired network (commonly known as a fixed network) access service system. Terminal, referred to as wired network terminal.
可选的,考虑到不同网络环境下,终端访问服务节点的访问延时也会存在差异,如果针对不同网络环境下的终端采用完全相同的域名解析配置关系,则可能会无法兼顾移动终端以及有线网络终端的访问体验。因此,在本申请实施例中,可以分别测试具有每种网络属性的移动终端以及有线网络终端访问不同服务节点的访问时延,并分别针对移动终端确定具有每种网络属性的移动移动所适合访问的服务节点,以及针对有线网络终端,确定每种网络属性的有线网络终端所适合访问的服务节点。Optionally, considering the different network environments, the access delay of the terminal access service node may also be different. If the terminal configuration in the different network environments adopts the same domain name resolution configuration relationship, the mobile terminal and the cable may not be considered. The access experience of the network terminal. Therefore, in the embodiment of the present application, the mobile terminal having each network attribute and the access delay of the wired network terminal accessing different service nodes may be separately tested, and the mobile terminal is determined to be suitable for mobile mobile having each network attribute. The service node, and for the wired network terminal, determine the service node to which the wired network terminal of each network attribute is suitable to access.
为了便于理解,下面分别针对移动终端以及有线网络终端两种不同类网络环境下的终端,对本申请的调度控制方法进行介绍。For ease of understanding, the following describes the scheduling control method of the present application for terminals in two different types of network environments, namely, a mobile terminal and a wired network terminal.
结合图4,参见图5,其示出了本申请中一种调度控制方法一个实施例的流程示意图,本实施例的方法可以包括:Referring to FIG. 4, FIG. 5 is a schematic flowchart diagram of an embodiment of a scheduling control method in the present application. The method in this embodiment may include:
S501,移动终端在向服务系统中服务节点发起访问请求之后,确定待测试的至少一个测速节点的IP地址。S501. After initiating an access request to the serving node in the serving system, the mobile terminal determines an IP address of the at least one speed measuring node to be tested.
在一种可能的情况中,确定至少一个测速节点的IP地址可以为:在服务节点接收到移动终端的访问请求之后,该服务节点向该移动终端反馈所需测试的一个或多个测速节点的IP地址。可以理解的是,当终端为移动终端时,该移动终端访问该服务节点所采用的网络协议不同于有线网络终端所采用的网络协议,因此,服务节点可以根据终端所采用的网络协议,识别出该终端为移动终端,进而指示该移动终端访问至少一个待测试的测速节点。In a possible case, determining the IP address of the at least one speed measuring node may be: after the serving node receives the access request of the mobile terminal, the serving node feeds back to the mobile terminal one or more speed measuring nodes of the required test IP address. It can be understood that when the terminal is a mobile terminal, the network protocol used by the mobile terminal to access the service node is different from the network protocol used by the wired network terminal. Therefore, the service node can identify according to the network protocol adopted by the terminal. The terminal is a mobile terminal, and further instructs the mobile terminal to access at least one speed measuring node to be tested.
在又一种可能的情况中,确定至少一个测速节点的IP地址可以为:在移动终端安装的该服务系统的客户端内预置多个所需测试的测速节点的IP地址,这样,在移动终端检测到发起向该服务系统的访问请求时,则可以获取预置的至少一个测速节点的IP地址。In another possible case, determining the IP address of the at least one speed measuring node may be: presetting a plurality of IP addresses of the speed measuring nodes required to be tested in a client of the service system installed by the mobile terminal, such that When the terminal detects that an access request is initiated to the service system, the IP address of the preset at least one speed measuring node may be acquired.
可以理解的是,为了能够使得归属于同一个LDNS的多个移动终端可以分别访问不同的服务节点所关联的测速节点,则每个移动终端可以将所有测速节点均作为待测试的测速节点;可选的,为了减少移动终端的数据处理量,不同移动终端所对应的待测试的测速节点可以不同。如,对于归属于同一个LDNS的移动终端A和移动终端B,移动终端A的待测试的测速节点为测速节点A、测速节点B和测速节点C,而移动终端B的待测试的测速节点可以为测速节点A和测速节点D。It can be understood that, in order to enable a plurality of mobile terminals belonging to the same LDNS to separately access the speed measuring nodes associated with different service nodes, each mobile terminal may use all the speed measuring nodes as the speed measuring nodes to be tested; In order to reduce the data processing capacity of the mobile terminal, the speed measurement nodes to be tested corresponding to different mobile terminals may be different. For example, for the mobile terminal A and the mobile terminal B belonging to the same LDNS, the speed measuring nodes to be tested of the mobile terminal A are the speed measuring node A, the speed measuring node B and the speed measuring node C, and the speed measuring node of the mobile terminal B to be tested may It is the speed measuring node A and the speed measuring node D.
需要说明的是,移动终端触发测试访问不同测速节点的访问时延的条件并不限于该移动终端向服务系统发起访问请求,在实际应用中,还可以有其他触发条件触发移动终端确定测速节点的IP地址,如,移动终端也可以按照预设的测试周期,定期确定所需测试的测速节点的IP地址。It should be noted that the condition that the mobile terminal triggers the access delay of the test accessing the different speed measurement nodes is not limited to the mobile terminal initiating an access request to the service system. In actual applications, other trigger conditions may also be triggered to trigger the mobile terminal to determine the speed measurement node. The IP address, for example, the mobile terminal can also periodically determine the IP address of the speed measurement node to be tested according to a preset test period.
S502,移动终端依据测速节点的IP地址,向该测速节点发送测速数据包。S502. The mobile terminal sends the speed measurement data packet to the speed measurement node according to the IP address of the speed measurement node.
S503,测速节点在接收到该测速数据包之后,向移动终端返回针对该测速数据包的响应数据包。S503. After receiving the speed measurement data packet, the speed measurement node returns a response data packet for the speed measurement data packet to the mobile terminal.
S504,移动终端依据向测速节点发送测速数据包的发送时刻以及接收到该测速节点返回的响应数据包的接收时刻,确定该移动终端访问该测速节点的访问时延。S504: The mobile terminal determines, according to the sending time of the speed measuring data packet to the speed measuring node, and the receiving time of the response data packet returned by the speed measuring node, the access delay of the mobile terminal to access the speed measuring node.
如,访问时延可以为该接收时刻与发送时刻的时间差的一半。For example, the access delay may be half of the time difference between the reception time and the transmission time.
S505,移动终端将该移动终端的IP地址、该测速节点的标识以及该访问时延发送给该数据服务器。S505. The mobile terminal sends the IP address of the mobile terminal, the identifier of the speed measuring node, and the access delay to the data server.
如,移动终端向该数据服务器发送访问时延时,可以携带该移动终端的IP地址以及该测速节点的标识,通过该移动终端的IP地址可以标识出发送访问延时的移动终端,且通过该IP地址可以分析出移动终端所归属的运营商以及地理区域等网络属性。相应的,测速节点的标识可以表明该访问时延为该移动终端访问哪个该测速节点时所存在的网络时延。For example, the mobile terminal sends an access delay to the data server, and may carry the IP address of the mobile terminal and the identifier of the speed measuring node, and the mobile terminal may identify the mobile terminal that sends the access delay by using the IP address of the mobile terminal, and pass the The IP address can analyze network attributes such as the operator to which the mobile terminal belongs and the geographic area. Correspondingly, the identifier of the speed measuring node may indicate that the access delay is a network delay that exists when the mobile terminal accesses the speed measuring node.
举例说明,移动终端A访问测速节点M的访问时延为15ms,则移动终端可以在发送访问时延时,携带该移动终端A的IP地址以及测速节点M的标识。For example, if the access delay of the mobile terminal A accessing the speed measuring node M is 15 ms, the mobile terminal may delay the sending of the access, carrying the IP address of the mobile terminal A and the identifier of the speed measuring node M.
其中,测速节点的标识可以为测速节点的IP地址或者其他能够唯一表示该测速节点的标识。The identifier of the speed measuring node may be an IP address of the speed measuring node or other identifier capable of uniquely indicating the speed measuring node.
可以理解的是,以上步骤S501至步骤S505仅仅是获取到移动终端访问服务节点的访问延时的一种实现方式,在实际应用中通过其他方式获取移动终端访问服务节点的访问延时的方式也同样适用于本申请实施例。It can be understood that the foregoing steps S501 to S505 are only one implementation manner of obtaining the access delay of the mobile terminal accessing the service node, and the method for obtaining the access delay of the mobile terminal accessing the service node by using other methods in the actual application is also The same applies to the embodiments of the present application.
另外,以上步骤S501以及步骤S505仅仅是从移动终端的角度,描述了测试该移动终端到一个测速节点的访问时延的过程,但是可以理解的是,对于该移动终端访问其他测速节点以及其他移动终端访问服务系统中任意一个测速节点的过程均与以上过程相似,在此不再赘述。In addition, the above steps S501 and S505 only describe the process of testing the access delay of the mobile terminal to a speed measuring node from the perspective of the mobile terminal, but it can be understood that the mobile terminal accesses other speed measuring nodes and other mobiles. The process of accessing any one of the speed measurement nodes in the service system is similar to the above process, and will not be described here.
以上步骤S501至步骤S505可以不断重复执行,以便实时更新不同运营商以及地理区域内的多个移动终端对于不同服务节点的访问时延情况,以真实反映不同移动终端的网络延迟。The above steps S501 to S505 can be repeatedly performed to update the access delays of different mobile operators and different mobile nodes in different geographical locations in real time to reflect the network delay of different mobile terminals.
S506,数据服务器将移动终端传输的该移动终端的IP地址、测速节点的标识以及访问时延进行对应存储。S506. The data server stores the IP address of the mobile terminal, the identifier of the speed measuring node, and the access delay transmitted by the mobile terminal.
可选的,由于每个访问时延均对应着一个移动终端的IP地址以及测速节点的标识,为了便于数据存储以及后续的数据传输,数据服务器可以将访问时延以及该访问时延对应的移动终端的IP地址以及测速节点的标识存储为一个访问时延数组,这样,每个访问时延数据均包括:移动终端的IP地址、测速节点的标识以及访问时延。Optionally, each access delay corresponds to an IP address of the mobile terminal and an identifier of the speed measuring node. To facilitate data storage and subsequent data transmission, the data server may move the access delay and the access delay. The IP address of the terminal and the identifier of the speed measuring node are stored as an access delay array. Thus, each access delay data includes: an IP address of the mobile terminal, an identifier of the speed measuring node, and an access delay.
可以理解的是,由于不同时刻移动终端上报的访问时延数据会有所差异,该数据服务器可以每隔一定时间对存储的访问延迟数据进行更新。It can be understood that, because the access delay data reported by the mobile terminal may be different at different times, the data server may update the stored access delay data at regular intervals.
需要说明的是,以上步骤S501至步骤S506仅仅是为了说明获取移动终端对服务节点的访问延时的过程,其仅仅是为后续配置域名解析信息做准备。It should be noted that the above steps S501 to S506 are only for explaining the process of obtaining the access delay of the mobile terminal to the serving node, which is only for preparing the subsequent configuration of the domain name resolution information.
可选的,在数据服务器以访问时延数组形式存储访问时延数据的情况下,配置服务器可以获取到多个访问延迟数组,其中,每个访问延迟数组包括:移动终端的IP地址、测速节点的标识以及访问时延。Optionally, in the case that the data server stores the access delay data in the form of an access delay array, the configuration server may obtain multiple access delay arrays, where each access delay array includes: the IP address of the mobile terminal, the speed measurement node Identification and access delay.
S507,数据服务器依据移动终端的IP地址,确定该移动终端所归属的运营商以及地理区域。S507. The data server determines an operator and a geographic area to which the mobile terminal belongs according to the IP address of the mobile terminal.
为了便于理解,本申请实施例以移动终端的网络属性为终端归属的运营商以及地理区域为例进行介绍,但是当网络属性包括其他属性信息时,其过程类似。For ease of understanding, the embodiment of the present application introduces the network attribute of the mobile terminal to the operator and the geographical area to which the terminal belongs, but when the network attribute includes other attribute information, the process is similar.
S508,数据服务器按照上报访问时延的多个移动终端各自所归属的运营商以及地理区域,将归属于相同运营商以及地理区域的至少一个移动终端组成移动终端集合,得到多个表征不同运营商以及地理区域的移动终端集合。S508. The data server combines at least one mobile terminal belonging to the same operator and the geographical area to form a mobile terminal set according to the operator and the geographical area to which the plurality of mobile terminals that report the access delay respectively belong to obtain a plurality of different operators. And a collection of mobile terminals in a geographic area.
由前面步骤501至步骤S505的过程可知,数据服务器中可以存储多个不同移动终端上报的访问时延数据,而该多个移动终端的IP地址不同,从而得到归属于多种不同网络属性的多个移动终端的访问时延。而对于每种网络属性,该数据服务器均可以存储该具有该网络属性的多个移动终端对于不同服务节点的访问时延,为了后续可以计算出具有每种网络属性的多个终端对于同一个服务节点的平均访问时延,需要先确定出具有相同网络属性的移动终端。It can be seen from the foregoing steps 501 to S505 that the data server can store the access delay data reported by a plurality of different mobile terminals, and the IP addresses of the multiple mobile terminals are different, thereby obtaining a plurality of different network attributes. The access delay of mobile terminals. For each network attribute, the data server can store the access delays of the plurality of mobile terminals having the network attribute for different service nodes, so that multiple terminals having each network attribute can be calculated for the same service. The average access delay of a node needs to first determine the mobile terminal with the same network attribute.
S509,对于每个移动终端集合,数据服务器分别确定该移动终端集合中所有移动终端访问服务系统中每个测速节点的平均访问时延。S509. For each mobile terminal set, the data server respectively determines an average access delay of each mobile terminal in the mobile terminal set accessing each speed measuring node in the service system.
举例说明,归属于中国-广州-第一运营商的移动终端A访问测速节点1、测速节点2以及测速节点3的访问延时可以分别表示为:For example, the access delays of the mobile terminal A accessing the speed measuring node 1, the speed measuring node 2, and the speed measuring node 3 belonging to the China-Guangzhou-first operator can be expressed as:
中国-广州-第一运营商to测速节点1,IP地址:1.1.1.1,延迟30ms;China-Guangzhou-first operator to speed node 1, IP address: 1.1.1.1, delay 30ms;
中国-广州-第一运营商to测速节点2,IP地址:2.2.2.2,延迟100ms;China-Guangzhou-first operator to speed node 2, IP address: 2.2.2.2, delay 100ms;
中国-广州-第一运营商to测速节点3,IP地址:3.3.3.3,延迟50ms;China-Guangzhou-first operator to speed node 3, IP address: 3.3.3.3, delay 50ms;
同时,假设归属于中国-广州-第一运营商的移动终端B访问测速节点2、测速节点3以及测速节点4的访问延时可以分别表示为:Meanwhile, it is assumed that the access delays of the mobile terminal B accessing the speed measuring node 2, the speed measuring node 3, and the speed measuring node 4 belonging to the China-Guangzhou-first operator can be expressed as:
中国-广州-第一运营商to测速节点2,IP地址:2.2.2.2,延迟70ms;China-Guangzhou-first operator to speed node 2, IP address: 2.2.2.2, delay 70ms;
中国-广州-第一运营商to测速节点3,IP地址:3.3.3.3,延迟10ms;China-Guangzhou-first operator to speed node 3, IP address: 3.3.3.3, delay 10ms;
中国-广州-第一运营商to测速节点4,IP地址:4.4.4.4,延迟40ms;China-Guangzhou-first operator to speed node 4, IP address: 4.4.4.4, delay 40ms;
则,可以统计出中国-广州-第一运营商下的移动终端访问测速节点1的平均访问时延为30ms;而访问测速节点2的平均访问时延为(100ms+70ms)/2=85ms,对于其他测速节点的平均访问时延类似。Then, it can be counted that the average access delay of the mobile terminal accessing the speed measurement node 1 under the China-Guangzhou-first operator is 30 ms; and the average access delay of the access speed measurement node 2 is (100 ms+70 ms)/2=85 ms, The average access latency for other speed measuring nodes is similar.
可选的,在针对一个移动终端集合,计算该移动终端集合中所有移动终端访问某个测速节点的平均访问时延时之前,还可以先去除该移动终端集合中多个移动终端访问该测速节点的多个访问时延中的最高值以及最低值,然后再利用剩余的多个访问时延,计算该移动终端集合内的终端访问该测速节点的平均访问时延。Optionally, before calculating, for a mobile terminal set, an average access time delay of all the mobile terminals in the mobile terminal set to access a certain speed measurement node, the mobile terminal may be removed from the mobile terminal set to access the speed measurement node. The highest value and the lowest value of the plurality of access delays are then used to calculate the average access delay of the terminal in the mobile terminal set to access the speed measuring node by using the remaining multiple access delays.
进一步的,由于不同时刻,网络状态也会存在差异,在计算出平均访问时延之后,还可以记录该平均访问时延的计算时刻,以便后续利用最新计算出的平均访问时延来配置域名解析列表。Further, the network status may be different at different times. After calculating the average access delay, the calculation time of the average access delay may also be recorded, so that the domain name resolution may be configured by using the latest calculated average access delay. List.
可以理解的是,该步骤S507至S509可以是每隔预设时间执行一次,而并非是每次存在移动终端上报访问时延数据就触发执行。It can be understood that the steps S507 to S509 can be performed every preset time, instead of triggering execution every time the mobile terminal reports the access delay data.
需要说明的是,步骤S507至S509仅仅是为了便于理解,以将相同网络属性的移动终端组成一个移动终端集合,并通过计算该网络属性的终端所组成的移动终端集合内的所有移动终端对一个服务节点的平均访问时延为例进行介绍。但是可以理解的是,针对一种网络属性,在计算具有该网络属性的移动终端对于服务系统中一个服务节点的平均访问时延的方式还可以有其他方式,在此不再赘述。It should be noted that steps S507 to S509 are only for convenience of understanding, that the mobile terminals of the same network attribute are grouped into one mobile terminal set, and all mobile terminal pairs in the mobile terminal set formed by the terminal that calculates the network attribute are The average access latency of a service node is described as an example. However, it can be understood that, for a network attribute, there may be other manners for calculating the average access delay of the mobile terminal having the network attribute for a service node in the service system, and details are not described herein again.
可选的,由于移动终端所采用的无线网络也可以有多种形式,如,采用第三代移动通信技术(the 3rd Generation mobile communication technology,3G)的无线网络、采用第四代移动通信技术(the 4th Generation mobile communication technology,4G)的无线网络以及WiFi网络等等。在本申请实施例中,为了能够更为准确的反映出移动终端在不同网络环境下,对于不同服务节点的访问延迟情况,移动终端还可以将该移动终端所采用的无线网络的类型,与该移动终端的IP地址、该测速节点的标识以及该测速节点对应的访问时延一起发送给数据服务器。相应的,数据服务器可以分别统计具有每种网络属性的移动终端在采用不同无线网络的情况下,访问每个服务节点的平均访问时延。Optionally, the wireless network used by the mobile terminal may also be in various forms, for example, a wireless network using the 3rd Generation mobile communication technology (3G), using a fourth generation mobile communication technology ( The 4th Generation mobile communication technology, 4G) wireless network, WiFi network and so on. In the embodiment of the present application, in order to more accurately reflect the access delay of the mobile terminal in different network environments and different service nodes, the mobile terminal may also use the type of the wireless network used by the mobile terminal. The IP address of the mobile terminal, the identifier of the speed measuring node, and the access delay corresponding to the speed measuring node are sent to the data server. Correspondingly, the data server can separately count the average access delay of each mobile node when the mobile terminal having each network attribute uses different wireless networks.
S510,针对每个移动终端,数据服务器依据该移动终端集合中的移动终端对不同测速节点的平均访问时延,并结合不同测速节点与服务节点的关联关系,分别确定该移动终端集合中的移动终端对每个服务节点的平均访问延迟。S510. For each mobile terminal, the data server determines, according to the average access delay of the mobile terminal in the mobile terminal set to different speed measuring nodes, and combines the relationship between the different speed measuring nodes and the service node, respectively, to determine the mobility in the mobile terminal set. The average access delay of the terminal to each service node.
其中,由于不同移动终端集合表征不同的网络属性,因此,移动终端集合中的移动终端对服务节点的平均访问时延也就是:具有该移动终端集合所表征的网络属性的移动终端对该服务节点的平均访问时延。Wherein, because different mobile terminal sets represent different network attributes, the average access delay of the mobile terminal in the mobile terminal set to the service node is: the mobile terminal having the network attribute represented by the mobile terminal set to the service node Average access latency.
可以理解的是,数据服务器中可以存储有测速节点与服务节点的关联关系,这样,在确定出该移动终端集合中的移动终端对于该测速节点的平均访问时延之后,确定出该测速节点关联的服务节点,实际上就得到了该移动终端集合中的移动终端对该服务节点的平均访问时延。It can be understood that the association relationship between the speed measuring node and the service node may be stored in the data server, so that after determining the average access delay of the mobile terminal in the mobile terminal set for the speed measuring node, determining the speed node association The service node actually obtains the average access delay of the mobile terminal in the mobile terminal set to the service node.
可选的,为了区分出不同网络属性的终端访问不同服务节点的平均访问时延,数据服务器可以存储网络属性、测速节点的标识与平均访问时延的对应关系,如,可以采用如下形式存储:Optionally, in order to distinguish the average access delay of the terminal accessing different service nodes by different network attributes, the data server may store the correspondence between the network attribute, the identifier of the speed measuring node, and the average access delay, for example, may be stored in the following form:
中国-广州-第一运营商to测速节点1,IP地址:1.1.1.1,平均访问延迟40ms;China-Guangzhou-first operator to speed node 1, IP address: 1.1.1.1, average access delay 40ms;
如上对应关系表明,处于中国广州的第一运营商的移动终端访问该测速节点1(IP地址:1.1.1.1)的平均访问延迟为40ms。The above correspondence indicates that the average access delay of the mobile terminal of the first operator in Guangzhou, China, accessing the speed measuring node 1 (IP address: 1.1.1.1) is 40 ms.
可以理解的是,在实际应用中,针对具有每种网络属性的移动终端,计算具有网络属性的终端对于服务系统中不同服务节点的平均访问时延也可以是由配置服务器来完成,即,步骤S507至S510可以由配置服务器完成,在该种情况下,配置服务器仅仅需要从数据服务器获取具有网络属性的多个不同的移动终端上报的访问时延的数据即可。It can be understood that, in practical applications, for a mobile terminal having each network attribute, calculating an average access delay of a terminal having a network attribute to different service nodes in the service system may also be performed by a configuration server, that is, a step. S507 to S510 may be completed by the configuration server. In this case, the configuration server only needs to acquire data of the access delay reported by a plurality of different mobile terminals having network attributes from the data server.
S511,配置服务器从数据服务器获取具有不同网络属性的移动终端分别访问服务系统中每个服务节点的平均访问时延。S511. The configuration server acquires, from the data server, the average access delay of each mobile node in the service system by the mobile terminal having different network attributes.
如,配置服务器可以获取数据服务器存储的多组对应关系,每组对应关系包括:网络属性、服务节点的标识以及平均访问时延的对应关系,每组对应关系表征一种网络属性的终端对于一个服务节点的平均访问时延。For example, the configuration server may obtain multiple sets of correspondences stored by the data server, and each set of correspondences includes: network attributes, service node identifiers, and average access delay correspondences, and each set of correspondences represents a network attribute terminal for one The average access latency of the service node.
S512,针对具有每种网络属性的移动终端,配置服务器从服务系统的多个服务节点中,选取出具有网络属性的移动终端所适合访问的服务节点。S512. For a mobile terminal having each network attribute, the configuration server selects, from among a plurality of service nodes of the service system, a service node that is suitable for access by the mobile terminal having the network attribute.
其中,针对具有目标网络属性的终端所适合访问的目标服务节点,具有目标网络属性的移动终端访问所述目标服务节点的平均访问时延满足第一预设条件,该第一预设条件可以有多种可能。如,对于具有目标网络属性的终端而言,该第一预设条件可以是具有目标网络属性的移动终端访问该目标服务节点的平均访问时延小于该移动终端访问其他服务节点的平均访问时延;又如,该第一预设条件可以为平均访问时延小于预设值;又如,该第一预设条件可以为按照服务节点对应的平均访问延时从小到大的顺序,对多个服务节点进行排序后,排序处于前指定位的任意一个服务节点。Wherein, for the target service node that is suitable for the terminal with the target network attribute, the average access delay of the mobile terminal having the target network attribute accessing the target service node satisfies the first preset condition, and the first preset condition may have A variety of possibilities. For example, for a terminal having a target network attribute, the first preset condition may be that an average access delay of a mobile terminal having a target network attribute accessing the target service node is smaller than an average access delay of the mobile terminal accessing another service node. For example, the first preset condition may be that the average access delay is less than the preset value; for example, the first preset condition may be in the order of the average access delay corresponding to the service node from small to large, for multiple After the service node sorts, it sorts any service node that is in the previous specified position.
可以理解的是,在确定具有网络属性的移动终端所适合访问的服务节点时,除了依据服务节点对应的时延访问时延之外,还可以综合考虑服务节点的负载、容量等多个因素。相应的,针对具有目标网络属性的终端所适合访问的目标服务节点,还可以设定目标服务节点的负载或者容量需要满足第二预设条件,负载小于预设值,或者,容量大于预设阈值等等。例如,如,对于具有目标网络属性的移动终端而言,该目标服务节点可以为服务系统中负载小于预设值的服务节点中,该移动终端的平均访问时延最小的服务节点。It can be understood that, when determining the service node that the mobile terminal having the network attribute is suitable to access, in addition to the delay access delay corresponding to the service node, multiple factors such as the load and capacity of the service node can be comprehensively considered. Correspondingly, for the target service node that is suitable for the terminal with the target network attribute, the load or capacity of the target service node needs to meet the second preset condition, the load is less than the preset value, or the capacity is greater than the preset threshold. and many more. For example, for a mobile terminal having a target network attribute, the target service node may be a service node in the service system whose load is less than a preset value, and the mobile terminal has the smallest average access delay.
可选的,可以预先设定平均访问时延、负载以及容量等因素的优先级顺序,如负载最优,容量最优等,这样,可以先从多个服务节点中选取出优先级最高的因素满足第二预设条件的至少一个服务节点,再从该至少一个服务节点中选取出其他因素也满足相应预设条件的目标服务节点。Optionally, the priority order of the average access delay, load, and capacity may be preset, such as optimal load, optimal capacity, etc., so that the highest priority factor may be selected from multiple service nodes. The at least one service node of the second preset condition selects, from the at least one service node, a target service node whose other factors also satisfy the corresponding preset condition.
S513,针对每种网络属性,将网络属性的移动终端所适合访问的服务节点的IP地址,配置为权威域名服务器的第一域名解析列表中,与网络属性相匹配的服务节点的IP地址。S513. For each network attribute, configure an IP address of a service node that is suitable for access by the mobile terminal of the network attribute as an IP address of the service node that matches the network attribute in the first domain name resolution list of the authoritative domain name server.
为了与有线网络终端对应的域名解析列表相区分,将针对移动终端的域名解析列表称为第一域名解析列表,并将后续针对有线网络终端的域名解析列表称为第二域名解析列表。In order to distinguish the domain name resolution list corresponding to the wired network terminal, the domain name resolution list for the mobile terminal is referred to as a first domain name resolution list, and the subsequent domain name resolution list for the wired network terminal is referred to as a second domain name resolution list.
其中,对于目标网络属性而言,如果第一域名解析列表中该目标网络属性对应的服务节点的IP地址为目标服务节点的IP地址时,则可以维持该所对应的服务节点的IP地址不 变;反之,则可以将目标网络属性对应的服务节点的IP地址更新为该目标服务节点的IP地址。For the target network attribute, if the IP address of the service node corresponding to the target network attribute in the first domain name resolution list is the IP address of the target service node, the IP address of the corresponding service node may be maintained. Otherwise, the IP address of the service node corresponding to the target network attribute can be updated to the IP address of the target service node.
由于不同运营商以及地理区域内所部署的LDNS不同,因此,在第一域名解析列表中可以通过LDNS的标识表征不同的网络属性,在该种情况下,实际上是将具有目标网络属性的移动终端所适合访问的目标服务节点的IP地址,配置为第一域名解析列表中,具有目标网络属性的LDNS的标识相匹配的服务节点的IP地址。Because different operators and LDNSs deployed in the geographic area are different, different network attributes can be characterized by the LDNS identifier in the first domain name resolution list. In this case, the mobile network with the target network attribute is actually The IP address of the target service node that the terminal is suitable to access is configured as the IP address of the service node that matches the identifier of the LDNS with the target network attribute in the first domain name resolution list.
可以理解的是,在本申请实施例中,具有相同网络属性的移动终端以及有线网络终端所需定向到的服务节会存在差异,因此,权威域名服务器可以分别针对移动终端以及有线网络终端配置不同的域名解析列表。当然,为了在域名解析列表中可以直接区分出中终端所采用的网络类型,在域名解析列表的每条域名解析关系中可以添加用于标识终端所采用的网络类型的标识信息。It can be understood that, in the embodiment of the present application, the mobile terminal having the same network attribute and the service node to be directed to the wired network terminal may have different differences. Therefore, the authoritative domain name server may be configured differently for the mobile terminal and the wired network terminal respectively. List of domain name resolutions. Certainly, in order to directly distinguish the network type used by the terminal in the domain name resolution list, the identifier information used to identify the network type used by the terminal may be added in each domain name resolution relationship of the domain name resolution list.
可选的,当终端所采用的网络不同时,该终端请求访问同一个服务系统所采用的域名可以不同,如,移动终端访问该服务系统可以采用服务系统的第一域名,而该有线网络终端可以采用服务系统的第二域名访问该服务系统。具体的,可以在终端所请求解析的域名中包含表示该终端所采用的网络类型的网络类型标识,则第一域名与第二域名中的网络类型标识不同。例如,对于移动终端可以为访问某个服务系统所采用的域名可以为mobile.a*b.com,而有线网络终端访问该服务系统采用的域名则可以为:static.a*b.com,其中,域名“mobile.a*b.com”中“mobile”表示发起域名解析请求的终端为采用无线网络的移动终端;而域名“static.a*b.com”中“static”表示发起域名解析请求的终端为采用有线网络的有线网络终端。Optionally, when the network used by the terminal is different, the domain name used by the terminal to request access to the same service system may be different. For example, the mobile terminal accessing the service system may adopt the first domain name of the service system, and the wired network terminal The service system can be accessed using the second domain name of the service system. Specifically, the network type identifier indicating the network type used by the terminal may be included in the domain name requested by the terminal, and the network type identifier in the first domain name and the second domain name are different. For example, the domain name that the mobile terminal can use to access a certain service system may be mobile.a*b.com, and the domain name used by the wired network terminal to access the service system may be: static.a*b.com, where "mobile" in the domain name "mobile.a*b.com" indicates that the terminal that initiated the domain name resolution request is a mobile terminal that uses the wireless network; and the "static" in the domain name "static.a*b.com" indicates that the domain name resolution request is initiated. The terminal is a wired network terminal using a wired network.
相应的,在本申请实施例中,该配置服务器在确定出每种网络属性对应的服务节点之后,可以向权威域名服务器的域名解析列表中,配置具有网络属性的LDNS的标识、服务系统的第一域名以及服务节点的IP地址之间的域名解析关系。Correspondingly, in the embodiment of the present application, after determining the service node corresponding to each network attribute, the configuration server may configure the identifier of the LDNS with the network attribute and the service system in the domain name resolution list of the authoritative domain name server. The domain name resolution relationship between a domain name and the IP address of the service node.
可以理解的是,本申请实施例是以配置服务器配置权威域名服务器中的域名解析列表为例进行介绍,但是可以理解的是,配置服务器在确定出具有不同网络属性的移动终端所适合解析到的服务节点之后,仅仅将具有网络属性的终端所适合访问的服务节点作为域名解析列表中与网络属性对应的服务节点,存储具有网络属性的终端所适合访问的服务节点与网络属性的匹配关系,后续可以在权威域名服务器发起配置关系更新请求时,或者该配置服务器主动将该匹配关系发送给权威域名服务器,以便由权威域名服务器依据该匹配关系完成对域名解析列表的配置。It can be understood that the embodiment of the present application is an example in which the configuration server configures the domain name resolution list in the authoritative domain name server as an example, but it can be understood that the configuration server determines that the mobile terminal having different network attributes is suitable for parsing. After the service node, the service node that is suitable for the terminal having the network attribute is only used as the service node corresponding to the network attribute in the domain name resolution list, and the matching relationship between the service node and the network attribute that the terminal having the network attribute is suitable for is stored, and subsequently The configuration relationship update request may be initiated by the authoritative domain name server, or the configuration server may send the matching relationship to the authoritative domain name server, so that the authoritative domain name server completes the configuration of the domain name resolution list according to the matching relationship.
可见,在本实施例中,针对同一个网络属性表征的运营商以及地理区域,通过获取具有网络属性的移动终端访问服务系统中每个服务节点的平均访问时延,从而有利于从该服务系统的多个服务节点中,选取出具有网络属性的移动终端的平均访问时延相对较小的服务节点,这样,在将域名解析列表中具有网络属性的LDNS对应的服务节点的IP地址确定为具有网络属性的终端所适合访问的服务节点的IP地址之后,后续移动终端通过LDNS访 问服务系统时,可以将该移动终端定向到具有网络属性的终端所适合访问的服务节点,有利于减少移动终端访问服务系统的访问延迟,提高了移动终端访问服务系统的访问速度。It can be seen that, in this embodiment, for the operator and the geographic area represented by the same network attribute, the average access delay of each service node in the service system is accessed by the mobile terminal having the network attribute, thereby facilitating the service system from the service system. Among the plurality of service nodes, the service node having the average access delay of the mobile terminal having the network attribute is selected, so that the IP address of the service node corresponding to the LDNS having the network attribute in the domain name resolution list is determined to have After the IP address of the service node that the terminal of the network attribute is suitable for access, when the subsequent mobile terminal accesses the service system through the LDNS, the mobile terminal can be directed to the service node that the terminal having the network attribute is suitable for access, which is beneficial to reducing the access of the mobile terminal. The access delay of the service system improves the access speed of the mobile terminal access service system.
结合图4,参见图6,其示出了在终端为有线网络终端的情况下,本申请的调度控制方法的流程示意图,本实施例的方法可以包括:Referring to FIG. 4, FIG. 6 is a schematic flowchart of a scheduling control method of the present application in a case where the terminal is a wired network terminal, and the method in this embodiment may include:
S601,有线网络终端向服务系统中的服务节点发送访问请求。S601. The wired network terminal sends an access request to a service node in the service system.
S602,服务节点在接收访问请求之后,通过反向路由跟踪有线网络终端所属的目标网关。S602. After receiving the access request, the serving node tracks the target gateway to which the wired network terminal belongs by using a reverse route.
其中,通过反向路由traceroute技术可以跟踪出该访问请求所经过的网关,访问请求所经过的网关也就是有线网络终端所归属的目标网关。The reverse route traceroute technology can track the gateway through which the access request passes, and the gateway through which the access request passes is the target gateway to which the wired network terminal belongs.
S603,服务节点将该有线网络终端所属的目标网关的IP地址传输给该服务节点关联的测速节点。S603. The serving node transmits the IP address of the target gateway to which the wired network terminal belongs to the speed measuring node associated with the serving node.
S604,测速节点依据该有线网络终端所属的目标网关的IP地址,向该目标网关发送测速数据包。S604. The speed measurement node sends the speed measurement data packet to the target gateway according to the IP address of the target gateway to which the wired network terminal belongs.
S605,该目标网关响应于接收到的测速数据包,向该测速节点返回针对该测速数据包的响应数据包。S605. The target gateway returns a response data packet for the speed measurement data packet to the speed measurement node in response to the received speed measurement data packet.
S606,测速节点依据测速数据包的发送时刻以及接收到该响应数据包的接收时刻,计算该目标网关到该测速节点的访问时延。S606. The speed measurement node calculates an access delay of the target gateway to the speed measurement node according to a sending time of the speed data packet and a receiving time of receiving the response data packet.
其中,该目标网关到测速节点的访问时延就可以认为是该属于该目标网关的移动终端访问该测速节点的访问时延。The access delay of the target gateway to the speed measuring node can be regarded as the access delay of the mobile terminal belonging to the target gateway to access the speed measuring node.
当然,步骤S602至S606是测试网关到测速节点的访问时延的一种方式,但是对于其他测试该网关到该测速节点的访问时延的方式也同样适用于本实施例。另外,本申请实施例是以网关到测速节点的访问时延来作为有线网络终端到测速节点的访问时延为例进行介绍,但是可以理解的是,通过其他方式来测试有线网络终端到测速节点的访问时延的方式也适用于本申请实施例。Of course, steps S602 to S606 are one way of testing the access delay of the gateway to the speed measuring node, but the manner of testing the access delay of the gateway to the speed measuring node is also applicable to the embodiment. In addition, the embodiment of the present application introduces the access delay of the gateway to the speed measuring node as an access delay of the wired network terminal to the speed measuring node, but it can be understood that the wired network terminal is tested to the speed measuring node by other means. The manner of access delay is also applicable to the embodiments of the present application.
S607,测速节点将目标网关的IP地址、服务节点的标识以及该访问时延发送给数据服务器。S607. The speed measurement node sends the IP address of the target gateway, the identifier of the service node, and the access delay to the data server.
S608,数据服务器将该目标网关的IP地址、测速节点的标识以及访问时延进行对应存储。S608. The data server stores the IP address of the target gateway, the identifier of the speed measuring node, and the access delay.
可以理解的是,为了区分出移动终端以及有线网络终端各自的访问时延数据,可以分别针对移动终端以及有线网络终端单独设置不同的数据服务器,如,第一数据服务器可以存储移动终端上报的访问时延等相关数据;第二数据服务器可以获取测速节点上报的有线网络终端的访问时延等相关数据。It can be understood that, in order to distinguish the access delay data of the mobile terminal and the wired network terminal, different data servers may be separately set for the mobile terminal and the wired network terminal respectively. For example, the first data server may store the access reported by the mobile terminal. Relevant data such as delay; the second data server can obtain related data such as the access delay of the wired network terminal reported by the speed measuring node.
在采用一个数据服务器来存储有线网络终端以及移动终端相关的访问时延数据的情况下,该数据服务器可以根据上报访问时延的设备来区分访问时延为哪种终端对应的访问时延,如,数据服务器接收到测速节点发送的访问时延,则可以确定该访问时延为有线网络终端所属的目标网关到测速节点的访问时延。当然,为了能够更加明确出访问时延为针对具有哪种网络属性的终端的访问时延,还可以在测速节点以及移动终端上报访问时延时,携带表征该访问时延所对应的终端的网络属性的标识,例如,移动终端上报访问时延时,可以携带表征该访问时延为移动终端对该测速节点或服务节点的访问时延的标识1;而测速节点上报目标网关对服务节点的访问时延时,可以携带可以表示该访问时延为有线网络终端对服务节点的访问时延的标识2。相应的,数据服务器在接收到不同终端对应的访问时延后,可以在一个数据表中统一存储所有的访问时延,也可以是通过两个数据表分别存储移动终端以及有线网络终端对应的访问时延数据。When a data server is used to store the access delay data related to the wired network terminal and the mobile terminal, the data server can distinguish the access delay corresponding to the access delay according to the device that reports the access delay, such as After receiving the access delay sent by the speed measurement node, the data server may determine that the access delay is an access delay of the target gateway to the speed measurement node to which the wired network terminal belongs. Of course, in order to be able to more clearly determine the access delay for the access delay of the terminal with which network attribute, the speed measurement node and the mobile terminal can also report the access delay, and carry the network representing the terminal corresponding to the access delay. The identifier of the attribute, for example, the delay when the mobile terminal reports the access, may carry the identifier 1 indicating that the access delay is the access delay of the mobile terminal to the speed measuring node or the serving node; and the speed measuring node reports the access of the target gateway to the serving node. The time delay may carry an identifier 2 that may indicate that the access delay is a access delay of the wired network terminal to the serving node. Correspondingly, after receiving the access delay corresponding to different terminals, the data server may uniformly store all access delays in one data table, or may store the corresponding access of the mobile terminal and the wired network terminal through two data tables respectively. Delay data.
S609,数据服务器按照目标网关的IP地址,确定出目标网关所归属的运营商以及地理区域。S609. The data server determines, according to the IP address of the target gateway, the operator and the geographic area to which the target gateway belongs.
为了便于理解,本申请实施例以目标网关的网络属性为目标网关归属的运营商以及地理区域为例进行介绍,但是当网络属性包括其他属性信息时,其过程类似。For ease of understanding, the embodiment of the present application introduces the network attribute of the target gateway to the operator and the geographical area to which the target gateway belongs, but when the network attribute includes other attribute information, the process is similar.
S610,数据服务器将归属于相同运营商以及地理区域的至少一个有线网络终端组成网关集合,得到多个表征不同运营商以及地理区域的网关集合。S610: The data server forms a set of gateways belonging to the same operator and at least one wired network terminal of the geographic area, and obtains a plurality of gateway sets that represent different operators and geographic regions.
S611,对于每个网关集合,数据服务器分别确定网关集合中所有目标网关到服务系统中每个测速节点的平均访问时延。S611. For each gateway set, the data server determines an average access delay of each target gateway in the gateway set to each speed measuring node in the service system.
其中,步骤S609至S611与图5实施例中步骤S507至S509的过程相似,因此,得到每个网关集合中所有目标网关对测速节点的平均访问时延可以参见前面计算移动终端集合中所有终端对测速节点的平均访问时延的过程,在此不再赘述。Steps S609 to S611 are similar to the processes of steps S507 to S509 in the embodiment of FIG. 5. Therefore, the average access delay of all target gateways to the speed measuring nodes in each gateway set can be obtained by referring to the foregoing calculation of all terminal pairs in the mobile terminal set. The process of the average access delay of the speed measuring node will not be described here.
S612,针对每个网关集合,数据服务器依据网关集合中目标网关对不同测速节点的平均访问时延,并结合不同测速节点与服务节点的关联关系,确定该网关集合中的目标网关对不同服务节点的平均访问延迟。S612. For each gateway set, the data server determines the target access gateway in the gateway set to different service nodes according to the average access delay of the target gateway to the different speed measuring nodes in the gateway set, and the association relationship between the different speed measuring nodes and the serving node. Average access latency.
其中,由于不同网关集合表征不同的网络属性,因此,网关集合中的目标网关对服务节点的平均访问时延也就是:具有该网关集合所表征的网络属性的有线网络终端对该服务节点的平均访问时延。Wherein, because different gateway sets represent different network attributes, the average access delay of the target gateway to the service node in the gateway set is: the average of the wired network terminal having the network attribute represented by the set of gateways to the service node Access delay.
可以理解的是,数据服务器中可以存储有测速节点与服务节点的关联关系,这样,在确定出该网关集合中的目标网关对于该测速节点的平均访问时延之后,实际上就得到了该网关集合中的目标网关对该测速节点关联的服务节点的平均访问时延。It can be understood that the data server can store the association relationship between the speed measurement node and the service node, so that after determining the average access delay of the target gateway in the gateway set for the speed measurement node, the gateway is actually obtained. The average access latency of the target node in the set to the service node associated with the speed node.
S613,配置服务器从数据服务器获取具有不同网络属性的有线网络终端分别访问服务系统中每个服务节点的平均访问时延。S613. The configuration server acquires, from the data server, a wired network terminal having different network attributes to respectively access an average access delay of each service node in the service system.
S614,针对每种网络属性的有线网络终端,配置服务器从服务系统的多个服务节点中,选取出具有网络属性的有线网络终端所适合访问的服务节点。S614. For a wired network terminal of each network attribute, the configuration server selects, from among a plurality of service nodes of the service system, a service node that is suitable for access by the wired network terminal having the network attribute.
其中,每种网络属性的有线网络终端所适合访问的目标服务节点的平均访问时延满足第一预设条件,该第一预设条件可以与前面实施例相似,在此不再赘述。The average access delay of the target service node that is suitable for the network network terminal of each network attribute meets the first preset condition. The first preset condition may be similar to the previous embodiment, and details are not described herein again.
相应的,在确定具有网络属性的有线网络终端所适合访问的服务节点时,除了依据服务节点对应的时延访问时延之外,还可以综合考虑服务节点的负载、容量等多个因素。相应的,针对具有目标网络属性的终端所适合访问的目标服务节点,还可以设定目标服务节点的负载或者容量需要满足第二预设条件,负载小于预设值,或者,容量大于预设阈值等等。其中,该第二预设条件同样可以参见前面实施例的相关介绍,在此不再赘述。Correspondingly, when determining the service node that the wired network terminal with the network attribute is suitable for access, in addition to the delay access delay corresponding to the service node, multiple factors such as the load and capacity of the service node can be comprehensively considered. Correspondingly, for the target service node that is suitable for the terminal with the target network attribute, the load or capacity of the target service node needs to meet the second preset condition, the load is less than the preset value, or the capacity is greater than the preset threshold. and many more. For the second preset condition, refer to the related description of the previous embodiment, and details are not described herein again.
S615,针对每种网络属性,将网络属性的有线网络终端所适合访问的服务节点的IP地址,配置为权威域名服务器的第二域名解析列表中,与网络属性相匹配的服务节点的IP地址。S615. For each network attribute, configure an IP address of a service node that is suitable for access by the wired network terminal of the network attribute as an IP address of the service node that matches the network attribute in the second domain name resolution list of the authoritative domain name server.
如,针对目标网络属性,在确定出具有目标网络属性的有线网络终端所适合访问的目标服务节点之后,可以向权威域名服务器的域名解析列表中,配置具有目标网络属性的LDNS的标识、服务系统的第二域名与该目标服务节点的IP地址之间的域名解析关系。For example, for the target network attribute, after determining the target service node that the wired network terminal having the target network attribute is suitable to access, the identifier and the service system of the LDNS having the target network attribute may be configured in the domain name resolution list of the authoritative domain name server. The domain name resolution relationship between the second domain name and the IP address of the target service node.
当然,步骤S615的具体操作过程可以前面图5实施例中步骤S513的过程相似,在此不再赘述。Certainly, the specific operation process of step S615 can be similar to the process of step S513 in the foregoing embodiment of FIG. 5, and details are not described herein again.
在本实施例中,可以将域名解析列表中该LDNS对应的服务节点的IP地址配置为归属于该LDNS的有线网络终端适合访问的服务节点的IP地址,而归属于该LDNS的有线网络终端适合访问的服务节点为该归属于该LDNS的有线网络终端平均访问延迟相对较小的服务节点,从而依据该域名解析列表,将有线网络终端定向到归属于该LDNS的有线网络终端适合访问的服务节点,有利于减少有线网络终端访问服务系统的访问延迟,提高了有线网络终端访问服务系统的访问速度。In this embodiment, the IP address of the service node corresponding to the LDNS in the domain name resolution list may be configured as an IP address of a service node that is suitable for access by the wired network terminal of the LDNS, and the wired network terminal belonging to the LDNS is suitable. The accessed service node is a service node whose average access delay is delayed by the wired network terminal belonging to the LDNS, so that the wired network terminal is directed to the service node suitable for access by the wired network terminal belonging to the LDNS according to the domain name resolution list. It is beneficial to reduce the access delay of the wired network terminal access service system and improve the access speed of the wired network terminal access service system.
需要说明的是,为了便于描述确定移动终端以及有线网络终端对服务节点的访问时延,采用图5和图6的实施例分别针对移动终端、有线网络终端的情况对本申请的调度控制过程进行介绍,但是可以理解的是,配置服务器获取到的平均访问时延数据可以同时包括:具有每种网络属性的移动终端对不同服务节点的平均访问时延,以及具有每种网络属性的有线网络终端对不同服务节点的平均访问时延,该配置服务器只需要分别针对移动终端以及有线网络终端分配确定域名解析列表的配置关系即可。It should be noted that, in order to facilitate the description of determining the access delay of the mobile terminal and the wired network terminal to the service node, the scheduling control process of the present application is introduced for the case of the mobile terminal and the wired network terminal respectively by using the embodiments of FIG. 5 and FIG. 6 respectively. However, it can be understood that the average access delay data acquired by the configuration server may include: an average access delay of the mobile terminal with different network nodes for each network attribute, and a wired network terminal pair with each network attribute. The average access delay of different service nodes, the configuration server only needs to allocate the configuration relationship of determining the domain name resolution list to the mobile terminal and the wired network terminal respectively.
为了便于理解本申请实施例的有益效果,结合以上共性,下面对通过本申请实施例的方法配置权威域名服务器中域名解析列表之后,终端请求域名解析的过程进行介绍。In order to facilitate the understanding of the beneficial effects of the embodiments of the present application, the process of requesting domain name resolution by the terminal after the domain name resolution list in the authoritative domain name server is configured by the method in the embodiment of the present application is described below.
如图7,其示出了本申请一种域名解析方法一个实施例的流程示意图,本实施例的方法可以包括:FIG. 7 is a schematic flowchart diagram of an embodiment of a domain name resolution method according to the present application. The method in this embodiment may include:
S701,移动终端向该移动终端所属的LDNS发送域名解析请求,该域名解析请求携带有服务系统的第一域名。S701. The mobile terminal sends a domain name resolution request to the LDNS to which the mobile terminal belongs, where the domain name resolution request carries the first domain name of the service system.
其中,该第一域名包括表示终端所采用的网络类型为无线网络的第一网络类型标识,可以作为目标网络属性。如,在图7中,是以第一域名为“mobile.a*b.com”为例。The first domain name includes a first network type identifier indicating that the network type used by the terminal is a wireless network, and can be used as a target network attribute. For example, in FIG. 7, the first domain name is "mobile.a*b.com" as an example.
另外,在图7中以LDNS为中国-广州-运营商1的LDNS为例进行说明。In addition, in FIG. 7, the LDNS is the LDNS of China-Guangzhou-operator 1 as an example.
S702,该LDNS确定出用于解析该第一域名的权威域名服务器,并将该第一域名转发给该权威域名服务器。S702. The LDNS determines an authoritative domain name server for parsing the first domain name, and forwards the first domain name to the authoritative domain name server.
其中,LDNS确定用于解析该第一域名的权威域名服务器的过程可以参见前面图1所示的流程,在此不再赘述。For the process of determining the authoritative domain name server for the first domain name, refer to the process shown in FIG. 1 above, and details are not described herein again.
S703,权威域名服务器从第一域名解析列表中,查询与第一域名以及该LDNS的标识相匹配的第一目标服务节点的IP地址。S703. The authoritative domain name server queries, from the first domain name resolution list, an IP address of the first target service node that matches the first domain name and the identifier of the LDNS.
第一域名解析表中存储有移动终端所请求的第一域名、LDNS的标识以及第一目标服务节点的IP地址之间的对应关系。The first domain name resolution table stores a correspondence between the first domain name requested by the mobile terminal, the identifier of the LDNS, and the IP address of the first target service node.
如图7所示,假设第一域名为“mobile.a*b.com”,针对该第一域名,该权威服务器的第一域名解析表中存储有如下域名解析关系:As shown in FIG. 7 , the first domain name is “mobile.a*b.com”. For the first domain name, the first domain name resolution table of the authoritative server stores the following domain name resolution relationship:
mobile.a*b.com,中国-广州-运营商2,IDC1:1.1.1.1;Mobile.a*b.com, China-Guangzhou-operator 2, IDC1: 1.1.1.1;
mobile.a*b.com,中国-西安-运营商1,IDC2:2.2.2.2;Mobile.a*b.com, China-Xi'an - Carrier 1, IDC 2: 2.2.2.2;
mobile.a*b.com,中国-广州-运营商1,IDC3:3.3.3.3。Mobile.a*b.com, China-Guangzhou-operator 1, IDC3: 3.3.3.3.
其中,IDC表示服务节点,则,依据该第一域名以及该LDNS对应的标识,即中国-广州-运营商1,可以确定解析出的IP地址为该服务节点IDC3的IP地址:3.3.3.3。The IDC indicates the service node. According to the first domain name and the identifier corresponding to the LDNS, that is, China-Guangzhou-operator 1, the resolved IP address can be determined as the IP address of the service node IDC3: 3.3.3.3.
S704,权威域名服务器将第一目标服务节点的IP地址经该LDNS服务器发送给该移动终端。S704. The authoritative domain name server sends the IP address of the first target service node to the mobile terminal via the LDNS server.
S705,有线网络终端向该有线网络终端所属的LDNS发送域名解析请求,该域名解析请求携带有服务系统的第二域名。S705: The wired network terminal sends a domain name resolution request to the LDNS to which the wired network terminal belongs, where the domain name resolution request carries the second domain name of the service system.
其中,该第二域名包括表示终端所采用的网络类型为有线网络的第二网络类型标识。如,在图7中,是以第二域名为“static.a*b.com”为例。The second domain name includes a second network type identifier indicating that the network type adopted by the terminal is a wired network. For example, in FIG. 7, the second domain name is "static.a*b.com" as an example.
另外,在图7中以有线网络终端所属的LDNS同样为中国-广州-运营商1的LDNS为例进行说明。In addition, in FIG. 7, the LDNS to which the wired network terminal belongs is also the LDNS of China-Guangzhou-operator 1 as an example.
S706,LDNS确定出用于解析该第二域名的权威域名服务器,并将该第二域名转发给该权威域名服务器。S706. The LDNS determines an authoritative domain name server for parsing the second domain name, and forwards the second domain name to the authoritative domain name server.
S707,权威域名服务器从第二域名解析列表中,查询与第二域名以及该LDNS的标识相匹配的第二目标服务节点的IP地址。S707. The authoritative domain name server queries, from the second domain name resolution list, an IP address of the second target service node that matches the second domain name and the identifier of the LDNS.
第二域名解析表中存储有有线网络终端所请求的第二域名、LDNS的标识以及第二目标服务节点的IP地址之间的对应关系。The second domain name resolution table stores a correspondence between the second domain name requested by the wired network terminal, the identifier of the LDNS, and the IP address of the second target service node.
如图7所示,假设第二域名为“static.a*b.com”,针对该第二域名,该权威服务器的第二域名解析表中存储有如下域名解析关系:As shown in FIG. 7, the second domain name is assumed to be "static.a*b.com". For the second domain name, the second domain name resolution table of the authoritative server stores the following domain name resolution relationship:
static.a*b.com,中国-广州-运营商3,IDC2:2.2.2.2;Static.a*b.com, China-Guangzhou-operator 3, IDC2: 2.2.2.2;
static.a*b.com,中国-西安-运营商1,IDC4:4.4.4.4;Static.a*b.com, China-Xi'an - Carrier 1, IDC4: 4.4.4.4;
static.a*b.com,中国-广州-运营商1,IDC1:1.1.1.1。Static.a*b.com, China-Guangzhou-operator 1, IDC1: 1.1.1.1.
依据该第二域名以及该LDNS对应的标识,即中国-广州-运营商1,可以确定解析出的IP地址为该服务节点IDC1的IP地址:1.1.1.1,可见,虽然有线网络终端以及移动终端所归属的LDNS相同,但是终端所采用的网络不同时,由于网络状态的差异,该终端访问延迟最小的服务节点也会有所不同,从而使得权威域名服务器为终端返回的IP地址也不同,从而使得不同网络的终端可以访问时延相对较小的服务节点。According to the second domain name and the identifier corresponding to the LDNS, that is, China-Guangzhou-operator 1, it can be determined that the parsed IP address is the IP address of the service node IDC1: 1.1.1.1, visible, although the wired network terminal and the mobile terminal The LDNSs that belong to the same are the same, but when the networks used by the terminals are different, the service nodes with the least access delay of the terminal will be different due to the difference in network status, so that the IP addresses returned by the authoritative domain name servers are different. The terminals of different networks can access the service nodes with relatively small delay.
S708,权威域名服务器将第二目标服务节点的IP地址经该LDNS服务器发送给该有线网络终端。S708. The authoritative domain name server sends the IP address of the second target service node to the wired network terminal via the LDNS server.
另一方面,本申请实施例还提供了一种调度控制装置。如图8,其示出了本申请一种调度控制装置一个实施例组成结构示意图,本实施例的装置可以包括:On the other hand, the embodiment of the present application further provides a scheduling control apparatus. FIG. 8 is a schematic structural diagram of an embodiment of a scheduling control apparatus according to the present application. The apparatus of this embodiment may include:
平均时延获取单元801,用于分别获取具有不同网络属性的终端访问服务系统中每个服务节点的平均访问时延,其中,终端的网络属性表征终端所归属的运营商以及地理区域;The average time delay obtaining unit 801 is configured to respectively obtain an average access delay of each service node in the terminal access service system having different network attributes, where the network attribute of the terminal represents the operator and the geographical area to which the terminal belongs;
服务节点匹配单元802,用于针对具有每种网络属性的终端,从所述服务系统的多个服务节点中,选取出具有网络属性的终端所适合访问的服务节点,其中,针对具有目标网络属性的终端所适合访问的目标服务节点,具有所述目标网络属性的终端访问所述目标服务节点的平均访问时延满足第一预设条件;The service node matching unit 802 is configured to: for a terminal having each network attribute, select, from among a plurality of service nodes of the service system, a service node that is suitable for access by a terminal having a network attribute, where The target service node to which the terminal is suitable to access, the average access delay of the terminal having the target network attribute accessing the target service node satisfies the first preset condition;
匹配关系确定单元803,用于针对每种网络属性,将具有网络属性的终端所适合访问的服务节点的IP地址,作为域名解析列表中,与网络属性相匹配的服务节点的IP地址。The matching relationship determining unit 803 is configured to, for each network attribute, the IP address of the service node that the terminal having the network attribute is suitable to access, as the IP address of the service node in the domain name resolution list that matches the network attribute.
可选的,针对具有目标网络属性的终端所适合访问的目标服务节点,具有所述目标网络属性的终端访问所述目标服务节点的平均访问延时最小。Optionally, for a target service node that is suitable for access by a terminal having a target network attribute, a terminal having the target network attribute has a minimum average access delay for accessing the target service node.
可选的,针对具有目标网络属性的终端所适合访问的目标服务节点,所述目标服务节点的负载或者容量满足第二预设条件。Optionally, for a target service node that is suitable for access by a terminal having a target network attribute, the load or capacity of the target service node satisfies a second preset condition.
在一种实现方式中,所述匹配关系确定单元,包括:In an implementation manner, the matching relationship determining unit includes:
匹配关系发送单元,用于将具有网络属性的终端所适合访问的服务节点的IP地址发送给权威域名服务器,以便所述权威域名服务器将存储的域名解析列表中,具有网络属性的本地域名服务器所对应的服务节点的IP地址配置为具有网络属性的终端所适合访问的服务节点的IP地址。a matching relationship sending unit, configured to send an IP address of a service node that is suitable for access by the terminal having the network attribute to the authoritative domain name server, so that the authoritative domain name server will store the domain name resolution list, and the local domain name server with the network attribute The IP address of the corresponding service node is configured as the IP address of the service node to which the terminal having the network attribute is suitable to access.
在又一种实现方式中,所述匹配关系确定单元,包括:In still another implementation, the matching relationship determining unit includes:
匹配关系配置单元,用于依据具有网络属性的终端所适合访问的目标服务节点的IP地址,配置权威域名服务器中存储的域名解析列表,以将所述域名解析列表中,具有网络属性的本地域名服务器所对应的服务节点的IP地址配置为具有网络属性的终端所适合访问的服务节点的IP地址。a matching relationship configuration unit, configured to configure a domain name resolution list stored in an authoritative domain name server according to an IP address of a target service node that is suitable for a terminal having a network attribute, to configure a local domain name with a network attribute in the domain name resolution list The IP address of the service node corresponding to the server is configured as the IP address of the service node to which the terminal having the network attribute is suitable to access.
可选的,所述装置还包括:Optionally, the device further includes:
关系配置单元,用于在所述匹配关系确定单元将具有网络属性的终端所适合访问的服务节点的IP地址,作为域名解析列表中,与网络属性相匹配的服务节点的IP地址之后,依据网络属性与服务节点的IP地址之间的匹配关系,配置权威域名服务器中存储的所述域名解析列表。a relationship configuration unit, configured to: in the matching relationship determining unit, the IP address of the service node that the terminal having the network attribute is suitable to access, as the IP address of the service node matching the network attribute in the domain name resolution list, according to the network The matching relationship between the attribute and the IP address of the service node, and configuring the domain name resolution list stored in the authoritative domain name server.
可选的,所述平均时延获取单元,具体用于:Optionally, the average delay acquisition unit is specifically configured to:
从数据服务器获取具有不同网络属性的终端访问服务系统中每个服务节点的平均访问时延,其中,所述数据服务器在获取到多个终端访问服务器中不同服务节点的访问时延之后,按照终端的网络属性,分别计算出具有每个网络属性的终端访问每个服务节点的平均访问时延。Acquiring an average access delay of each service node in the terminal access service system having different network attributes from the data server, wherein the data server obtains access delays of different service nodes in the plurality of terminal access servers, according to the terminal The network attribute calculates the average access delay of each terminal accessing each service node with each network attribute.
可选的,所述平均时延获取单元,包括:Optionally, the average delay acquisition unit includes:
时延获取单元,用于获取多个终端对服务系统中不同服务节点的访问时延,所述多个终端所具有的网络属性不同;a delay acquisition unit, configured to acquire access delays of multiple terminals to different service nodes in the service system, where the plurality of terminals have different network attributes;
终端归类单元,用于依据所述多个终端的网络属性,将具有相同网络属性的至少一个终端组成终端集合,得到多个表征不同网络属性的终端集合;a terminal categorizing unit, configured to form, according to network attributes of the multiple terminals, at least one terminal having the same network attribute to form a terminal set, to obtain a plurality of terminal sets that represent different network attributes;
平均时延计算单元,用于针对每个网络属性,分别依据表征该网络属性的终端集合内所有终端访问服务系统中每个服务节点的访问时延,计算所述终端集合中所有终端分别访问每个服务节点的平均访问时延,得到所述网络属性的终端分别访问每个服务节点的平均访问时延。An average delay calculation unit is configured to calculate, according to each network attribute, access delays of each of the service nodes in the terminal set in the terminal set according to the network attribute, and calculate, according to the access delay of each terminal in the terminal set, The average access delay of the service nodes is obtained by the terminal of the network attribute to obtain the average access delay of each service node.
在一种可能的实现方式中,所述平均时延获取单元,包括:In a possible implementation, the average delay acquisition unit includes:
第一时延获取单元,用于分别获取具有不同网络属性的移动终端访问服务系统中每个服务节点的平均访问时延,所述移动终端采用无线网络访问所述服务系统中的服务节点;a first time delay acquisition unit, configured to respectively acquire an average access delay of each service node in the mobile terminal access service system having different network attributes, where the mobile terminal accesses the service node in the service system by using a wireless network;
所述服务节点匹配单元,包括:The service node matching unit includes:
第一节点匹配单元,用于针对具有每种网络属性的移动终端,从所述服务系统的多个服务节点中,选取出网络属性的移动终端所适合访问的服务节点;a first node matching unit, configured to: for a mobile terminal having each network attribute, select, from among a plurality of service nodes of the service system, a service node that is suitable for access by a mobile terminal with a network attribute;
所述匹配关系确定单元,包括:The matching relationship determining unit includes:
第一关系确定单元,用于针对每种网络属性,将具有网络属性的移动终端所适合访问的服务节点的IP地址,作为第一域名解析列表中,与网络属性相匹配的服务节点的IP地址,所述第一域名解析列表中存储有具有不同网络属性的移动终端所需调度到的服务节点的IP地址。a first relationship determining unit, configured to use, for each network attribute, an IP address of a service node that is suitable for access by the mobile terminal having the network attribute as an IP address of the service node that matches the network attribute in the first domain name resolution list And storing, in the first domain name resolution list, an IP address of a service node that is required to be scheduled by the mobile terminal having different network attributes.
在又一种可能的实现方式中,所述平均时延获取单元,包括:In a further possible implementation, the average delay acquisition unit includes:
第二时延获取单元,用于分别具有获取不同网络属性的有线网络终端访问服务系统中每个服务节点的平均访问时延,所述有线网络终端基于有线网络访问所述服务系统中的服务节点;a second time delay acquisition unit, configured to respectively obtain an average access delay of each service node in the wired network terminal access service system for acquiring different network attributes, where the wired network terminal accesses the service node in the service system based on the wired network ;
所述服务节点匹配单元,包括:The service node matching unit includes:
第二节点匹配单元,用于针对具有每种网络属性的有线网络终端,从所述服务系统的多个服务节点中,选取出具有网络属性的有线网络终端所适合访问的服务节点;a second node matching unit, configured to: for a wired network terminal having each network attribute, select, from among a plurality of service nodes of the service system, a service node that is suitable for access by a wired network terminal having a network attribute;
所述匹配关系确定单元,包括:The matching relationship determining unit includes:
第二关系确定单元,用于针对每种网络属性,将具有网络属性的有线网络终端所适合访问的服务节点的IP地址,作为第二域名解析列表中,与网络属性相匹配的服务节点的IP地址,所述第二域名解析列表中存储有具有不同网络属性的有线网络终端所需调度到的服务节点的IP地址。a second relationship determining unit, configured to, for each network attribute, an IP address of a service node that is suitable for access by the wired network terminal having the network attribute, as an IP address of the service node matching the network attribute in the second domain name resolution list An address, where the second domain name resolution list stores an IP address of a service node that is scheduled to be scheduled by a wired network terminal having a different network attribute.
另一方面,本申请实施例还提供了一种配置服务器,该配置服务器可以包括上述所述的一种调度控制装置。On the other hand, the embodiment of the present application further provides a configuration server, which may include a scheduling control device as described above.
图9示出了服务器的硬件结构框图,参照图9,服务器900可以包括:处理器901,通信接口902,存储器903和通信总线904;9 is a block diagram showing the hardware structure of the server. Referring to FIG. 9, the server 900 may include: a processor 901, a communication interface 902, a memory 903, and a communication bus 904;
其中处理器901、通信接口902、存储器903通过通信总线904完成相互间的通信;The processor 901, the communication interface 902, and the memory 903 complete communication with each other through the communication bus 904.
可选的,通信接口902可以为通信模块的接口,如GSM模块的接口;Optionally, the communication interface 902 can be an interface of the communication module, such as an interface of the GSM module;
处理器901,用于执行程序;a processor 901, configured to execute a program;
存储器903,用于存放程序;a memory 903, configured to store a program;
程序可以包括程序代码,所述程序代码包括计算机操作指令。The program can include program code, the program code including computer operating instructions.
处理器901可能是一个中央处理器CPU,或者是特定集成电路ASIC(Application Specific Integrated Circuit),或者是被配置成实施本发明实施例的一个或多个集成电路。The processor 901 may be a central processing unit CPU, or an Application Specific Integrated Circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of the present invention.
存储器903可能包含高速RAM存储器,也可能还包括非易失性存储器(non-volatile memory),例如至少一个磁盘存储器。The memory 903 may include a high speed RAM memory and may also include a non-volatile memory such as at least one disk memory.
其中,程序可具体用于:Among them, the program can be specifically used to:
分别获取具有不同网络属性的终端访问服务系统中每个服务节点的平均访问时延,其中,终端的网络属性表征终端所归属的运营商以及地理区域;Acquiring an average access delay of each service node in the terminal access service system with different network attributes, where the network attribute of the terminal represents the operator and the geographical area to which the terminal belongs;
针对具有每种网络属性的终端,从所述服务系统的多个服务节点中,选取出网络属性的终端所适合访问的服务节点,其中,针对具有目标网络属性的终端所适合访问的目标服务节点,具有所述目标网络属性的终端访问所述目标服务节点的平均访问时延满足第一预设条件;For a terminal having each network attribute, a service node suitable for access by a terminal having a network attribute is selected from a plurality of service nodes of the service system, wherein a target service node suitable for access by a terminal having a target network attribute is selected. The average access delay of the terminal having the target network attribute accessing the target service node satisfies a first preset condition;
针对每种网络属性,将具有网络属性的终端所适合访问的服务节点的IP地址,作为域名解析列表中,与网络属性相匹配的服务节点的IP地址。For each network attribute, the IP address of the service node that the terminal having the network attribute is suitable to access is used as the IP address of the service node in the domain name resolution list that matches the network attribute.
基于前述实施例,本实施例提供了一种存储介质,该存储介质用于存储程序代码,该程序代码用于执行前述图3-图7对应的实施例中任一项调度控制方法。Based on the foregoing embodiment, the embodiment provides a storage medium for storing program code, and the program code is used to execute the scheduling control method according to any one of the foregoing embodiments corresponding to FIG. 3-7.
基于前述实施例,,本实施例提供了一种包括指令的计算机程序产品,当其在计算机上运行时,使得该计算机执行前述图3-图7对应的实施例中任一项调度控制方法。Based on the foregoing embodiments, the present embodiment provides a computer program product comprising instructions which, when run on a computer, cause the computer to perform any of the scheduling control methods of the embodiments corresponding to the foregoing Figures 3-7.
本说明书中各个实施例采用递进的方式描述,每个实施例重点说明的都是与其他实施例的不同之处,各个实施例之间相同相似部分互相参见即可。对于实施例公开的装置而言,由于其与实施例公开的方法相对应,所以描述的比较简单,相关之处参见方法部分说明即可。The various embodiments in the present specification are described in a progressive manner, and each embodiment focuses on differences from other embodiments, and the same similar parts between the various embodiments may be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part.
专业人员还可以进一步意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、计算机软件或者二者的结合来实现,为了清楚地说明硬件和软件的可互换性,在上述说明中已经按照功能一般性地描述了各示例的组成及步骤。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本发明的范围。A person skilled in the art will further appreciate that the elements and algorithm steps of the various examples described in connection with the embodiments disclosed herein can be implemented in electronic hardware, computer software or a combination of both, in order to clearly illustrate the hardware and software. Interchangeability, the composition and steps of the various examples have been generally described in terms of function in the above description. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the solution. A person skilled in the art can use different methods for implementing the described functions for each particular application, but such implementation should not be considered to be beyond the scope of the present invention.
结合本文中所公开的实施例描述的方法或算法的步骤可以直接用硬件、处理器执行的软件模块,或者二者的结合来实施。软件模块可以置于随机存储器(RAM)、内存、只读存储器(ROM)、电可编程ROM、电可擦除可编程ROM、寄存器、硬盘、可移动磁盘、CD-ROM、或技术领域内所公知的任意其它形式的存储介质中。The steps of a method or algorithm described in connection with the embodiments disclosed herein can be implemented directly in hardware, a software module executed by a processor, or a combination of both. The software module can be placed in random access memory (RAM), memory, read only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, removable disk, CD-ROM, or technical field. Any other form of storage medium known.
对所公开的实施例的上述说明,使本领域专业技术人员能够实现或使用本发明。对这些实施例的多种修改对本领域的专业技术人员来说将是显而易见的,本文中所定义的一般原理可以在不脱离本发明的精神或范围的情况下,在其它实施例中实现。因此,本发明将 不会被限制于本文所示的这些实施例,而是要符合与本文所公开的原理和新颖特点相一致的最宽的范围。The above description of the disclosed embodiments enables those skilled in the art to make or use the invention. Various modifications to these embodiments are obvious to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the invention. Therefore, the present invention is not intended to be limited to the embodiments shown herein.

Claims (17)

  1. 一种调度控制方法,其特征在于,包括:A scheduling control method, comprising:
    分别获取具有不同网络属性的终端访问服务系统中每个服务节点的平均访问时延,其中,终端的网络属性表征所述终端所归属的运营商以及地理区域;The average access delay of each service node in the terminal access service system with different network attributes is obtained, where the network attribute of the terminal represents the operator and the geographical area to which the terminal belongs;
    针对具有每种网络属性的终端,从所述服务系统的多个服务节点中,选取出具有网络属性的终端所适合访问的服务节点,其中,针对具有目标网络属性的终端所适合访问的目标服务节点,具有所述目标网络属性的终端访问所述目标服务节点的平均访问时延满足第一预设条件;For a terminal having each network attribute, a service node suitable for access by a terminal having a network attribute is selected from a plurality of service nodes of the service system, wherein a target service suitable for access by a terminal having a target network attribute is selected. a node, the average access delay of the terminal having the target network attribute accessing the target service node satisfies a first preset condition;
    针对每种网络属性,将具有网络属性的终端所适合访问的服务节点的IP地址,作为域名解析列表中与网络属性相匹配的服务节点的IP地址。For each network attribute, the IP address of the service node that the terminal having the network attribute is suitable to access is used as the IP address of the service node in the domain name resolution list that matches the network attribute.
  2. 根据权利要求1所述的调度控制方法,其特征在于,针对具有目标网络属性的终端所适合访问的目标服务节点,具有所述目标网络属性的终端所适合访问所述目标服务节点的平均访问时延满足第一预设条件,包括:The scheduling control method according to claim 1, wherein for a target service node that is suitable for access by a terminal having a target network attribute, an average access time of the terminal having the target network attribute is suitable for accessing the target service node Delay to meet the first preset conditions, including:
    具有所述目标网络属性的终端访问所述目标服务节点的平均访问延时最小。The terminal having the target network attribute has the smallest average access delay for accessing the target service node.
  3. 根据权利要求1或2所述的调度控制方法,其特征在于,针对具有目标网络属性的终端所适合访问的目标服务节点,所述目标服务节点的负载或者容量满足第二预设条件。The scheduling control method according to claim 1 or 2, wherein the load or capacity of the target service node satisfies a second preset condition for a target service node that is suitable for access by a terminal having a target network attribute.
  4. 根据权利要求1所述的调度控制方法,其特征在于,所述将具有网络属性的终端所适合访问的服务节点的IP地址,作为域名解析列表中与网络属性相匹配的服务节点的IP地址,包括:The scheduling control method according to claim 1, wherein the IP address of the service node that the terminal having the network attribute is suitable to access is used as the IP address of the service node matching the network attribute in the domain name resolution list. include:
    将具有网络属性的终端所适合访问的服务节点的IP地址发送给权威域名服务器,以便所述权威域名服务器将存储的域名解析列表中,具有网络属性的本地域名服务器所对应的服务节点的IP地址配置为具有网络属性的终端所适合访问的服务节点的IP地址。Sending, by the authoritative domain name server, the IP address of the service node corresponding to the local domain name server having the network attribute in the domain name resolution list stored by the authoritative domain name server. The IP address of the service node that is configured to be accessible to the terminal with network attributes.
  5. 根据权利要求1所述的调度控制方法,其特征在于,所述将具有网络属性的终端所适合访问的服务节点的IP地址,作为域名解析列表中与具有网络属性相匹配的服务节点的IP地址,包括:The scheduling control method according to claim 1, wherein the IP address of the service node that the terminal having the network attribute is suitable to access is used as the IP address of the service node matching the network attribute in the domain name resolution list. ,include:
    依据具有网络属性的终端所适合访问的目标服务节点的IP地址,配置权威域名服务器中存储的域名解析列表,以将所述域名解析列表中,具有网络属性的本地域名服务器所对应的服务节点的IP地址配置为具有网络属性的终端所适合访问的服务节点的IP地址。Configuring a domain name resolution list stored in the authoritative domain name server according to the IP address of the target service node that the terminal having the network attribute is suitable for accessing, in the domain name resolution list, the service node corresponding to the local domain name server having the network attribute The IP address is configured as the IP address of the service node to which the terminal having the network attribute is suitable to access.
  6. 根据权利要求1、2、4或5所述的调度控制方法,其特征在于,所述获取具有不同网络属性的终端访问服务系统中每个服务节点的平均访问时延,包括:The scheduling control method according to claim 1, 2, 4 or 5, wherein the obtaining an average access delay of each service node in the terminal access service system having different network attributes comprises:
    从数据服务器获取具有不同网络属性的终端访问服务系统中每个服务节点的平均访问时延,其中,所述数据服务器在获取到多个终端访问服务系统中不同服务节点的访问时延 之后,按照终端的网络属性,分别计算出具有每种网络属性的终端访问每个服务节点的平均访问时延。Acquiring an average access delay of each service node in the terminal access service system having different network attributes from the data server, wherein the data server obtains access delays of different service nodes in the plurality of terminal access service systems, according to the access delay The network attributes of the terminal respectively calculate the average access delay of each terminal accessing each service node with each network attribute.
  7. 根据权利要求1、2、4或5所述的调度控制方法,其特征在于,所述获取具有不同网络属性的终端访问服务系统中每个服务节点的平均访问时延,包括:The scheduling control method according to claim 1, 2, 4 or 5, wherein the obtaining an average access delay of each service node in the terminal access service system having different network attributes comprises:
    获取多个终端访问服务系统中不同服务节点的访问时延,所述多个终端的网络属性不同;Acquiring access delays of different service nodes in multiple terminal access service systems, where network attributes of the multiple terminals are different;
    依据所述多个终端的网络属性,将具有相同网络属性的至少一个终端组成终端集合,得到多个表征不同网络属性的终端集合;Determining, by the network attributes of the multiple terminals, at least one terminal having the same network attribute to form a terminal set, to obtain a plurality of terminal sets that represent different network attributes;
    针对具有每种网络属性的终端集合,依据终端集合内所有终端访问服务系统中每个服务节点的访问时延,分别计算终端集合中的终端访问每个服务节点的平均访问时延,得到具有不同网络属性的终端访问每个服务节点的平均访问时延。For the terminal set with each network attribute, according to the access delay of each service node in the terminal access service system in the terminal set, the average access delay of the terminal accessing each service node in the terminal set is calculated separately, and the difference is obtained. The endpoint of the network attribute accesses the average access latency of each service node.
  8. 根据权利要求1所述的调度控制方法,其特征在于,所述分别获取具有不同网络属性的终端访问服务系统中每个服务节点的平均访问时延,包括:The scheduling control method according to claim 1, wherein the obtaining an average access delay of each service node in the terminal access service system having different network attributes, respectively:
    分别获取具有不同网络属性的移动终端访问服务系统中每个服务节点的平均访问时延,所述移动终端采用无线网络访问所述服务系统中的服务节点;Obtaining an average access delay of each service node in the mobile terminal access service system having different network attributes, where the mobile terminal accesses the service node in the service system by using a wireless network;
    所述针对具有每种网络属性的终端,从所述服务系统的多个服务节点中,选取出具有网络属性的终端所适合访问的服务节点,包括:For the terminal having each network attribute, a service node that is suitable for access by the terminal having the network attribute is selected from the plurality of service nodes of the service system, including:
    针对具有每种网络属性的移动终端,从所述服务系统的多个服务节点中,选取出具有网络属性的移动终端所适合访问的服务节点;For a mobile terminal having each network attribute, a service node suitable for access by a mobile terminal having a network attribute is selected from a plurality of service nodes of the service system;
    所述针对每种网络属性,将具有网络属性的终端所适合访问的服务节点的IP地址,作为域名解析列表中与网络属性相匹配的服务节点的IP地址,包括:For each network attribute, the IP address of the service node that the terminal having the network attribute is suitable to access is used as the IP address of the service node in the domain name resolution list that matches the network attribute, including:
    针对每种网络属性,将具有网络属性的移动终端所适合访问的服务节点的IP地址,作为第一域名解析列表中与网络属性相匹配的服务节点的IP地址,所述第一域名解析列表中存储有具有不同网络属性的移动终端所需调度到的服务节点的IP地址。For each network attribute, the IP address of the service node that the mobile terminal having the network attribute is suitable to access is used as the IP address of the service node in the first domain name resolution list that matches the network attribute, in the first domain name resolution list. The IP address of the service node to which the mobile terminal having different network attributes needs to be scheduled is stored.
  9. 根据权利要求1所述的调度控制方法,其特征在于,所述分别获取具有不同网络属性的终端访问服务系统中每个服务节点的平均访问时延,包括:The scheduling control method according to claim 1, wherein the obtaining an average access delay of each service node in the terminal access service system having different network attributes, respectively:
    分别获取具有不同网络属性的有线网络终端访问服务系统中每个服务节点的平均访问时延,所述有线网络终端基于有线网络访问所述服务系统中的服务节点;Obtaining an average access delay of each service node in a wired network terminal access service system having different network attributes, where the wired network terminal accesses a service node in the service system based on a wired network;
    所述针对具有每种网络属性的终端,从所述服务系统的多个服务节点中,选取出具有网络属性的终端所适合访问的服务节点,包括:For the terminal having each network attribute, a service node that is suitable for access by the terminal having the network attribute is selected from the plurality of service nodes of the service system, including:
    针对具有每种网络属性的有线网络终端,从所述服务系统的多个服务节点中,选取出具有网络属性的有线网络终端所适合访问的服务节点;For a wired network terminal having each network attribute, a service node suitable for access by a wired network terminal having a network attribute is selected from a plurality of service nodes of the service system;
    所述针对每种网络属性,将网络属性的终端所适合访问的服务节点的IP地址,作为域名解析列表中与网络属性相匹配的服务节点的IP地址,包括:For each network attribute, the IP address of the service node that the terminal of the network attribute is suitable to access is used as the IP address of the service node in the domain name resolution list that matches the network attribute, including:
    针对每种网络属性,将网络属性的有线网络终端所适合访问的服务节点的IP地址,作为第二域名解析列表中与网络属性相匹配的服务节点的IP地址,所述第二域名解析列表中存储有具有不同网络属性的有线网络终端所需调度到的服务节点的IP地址。For each network attribute, the IP address of the service node that the wired network terminal of the network attribute is suitable to access is used as the IP address of the service node in the second domain name resolution list that matches the network attribute, and the second domain name resolution list is The IP address of the service node to which the wired network terminal having different network attributes needs to be scheduled is stored.
  10. 一种调度控制装置,其特征在于,包括:A scheduling control device, comprising:
    平均时延获取单元,用于分别获取具有不同网络属性的终端访问服务系统中每个服务节点的平均访问时延,其中,终端的网络属性表征终端所归属的运营商以及地理区域;An average delay acquisition unit is configured to respectively obtain an average access delay of each service node in the terminal access service system having different network attributes, where the network attribute of the terminal represents the operator and the geographical area to which the terminal belongs;
    服务节点匹配单元,用于针对具有每种网络属性的终端,从所述服务系统的多个服务节点中,选取出具有网络属性的终端所适合访问的服务节点,其中,针对具有目标网络属性的终端所适合访问的目标服务节点,具有所述目标网络属性的终端访问所述目标服务节点的平均访问时延满足第一预设条件;a service node matching unit, configured to: for a terminal having each network attribute, select, from a plurality of service nodes of the service system, a service node that is suitable for access by a terminal having a network attribute, where, for a target network attribute a target service node that is suitable for access by the terminal, and an average access delay of the terminal having the target network attribute accessing the target service node satisfies a first preset condition;
    匹配关系确定单元,用于针对每种网络属性,将具有网络属性的终端所适合访问的服务节点的IP地址,作为域名解析列表中与网络属性相匹配的服务节点的IP地址。The matching relationship determining unit is configured to, for each network attribute, an IP address of a service node that is suitable for access by the terminal having the network attribute as an IP address of the service node in the domain name resolution list that matches the network attribute.
  11. 根据权利要求10所述的调度控制装置,其特征在于,所述平均时延获取单元,包括:The scheduling control apparatus according to claim 10, wherein the average delay acquisition unit comprises:
    第一时延获取单元,用于分别获取具有不同网络属性的移动终端访问服务系统中每个服务节点的平均访问时延,所述移动终端采用无线网络访问所述服务系统中的服务节点;a first time delay acquisition unit, configured to respectively acquire an average access delay of each service node in the mobile terminal access service system having different network attributes, where the mobile terminal accesses the service node in the service system by using a wireless network;
    所述服务节点匹配单元,包括:The service node matching unit includes:
    第一节点匹配单元,用于针对具有每种网络属性的移动终端,从所述服务系统的多个服务节点中,选取出具有网络属性的移动终端所适合访问的服务节点;a first node matching unit, configured to: for a mobile terminal having each network attribute, select, from a plurality of service nodes of the service system, a service node that is suitable for access by a mobile terminal having a network attribute;
    所述匹配关系确定单元,包括:The matching relationship determining unit includes:
    第一关系确定单元,用于针对每种网络属性,将网络属性的移动终端所适合访问的服务节点的IP地址,作为第一域名解析列表中与网络属性相匹配的服务节点的IP地址,所述第一域名解析列表中存储有具有不同网络属性的移动终端所需调度到的服务节点的IP地址。a first relationship determining unit, configured to use, for each network attribute, an IP address of a service node that is suitable for the mobile terminal of the network attribute to access, as an IP address of the service node that matches the network attribute in the first domain name resolution list, The IP address of the service node scheduled to be scheduled by the mobile terminal having different network attributes is stored in the first domain name resolution list.
  12. 根据权利要求10所述的调度控制装置,其特征在于,所述平均时延获取单元,包括:The scheduling control apparatus according to claim 10, wherein the average delay acquisition unit comprises:
    第二时延获取单元,用于分别获取具有不同网络属性的有线网络终端访问服务系统中每个服务节点的平均访问时延,所述有线网络终端基于有线网络访问所述服务系统中的服务节点;a second time delay acquisition unit, configured to respectively acquire an average access delay of each service node in the wired network terminal access service system having different network attributes, where the wired network terminal accesses the service node in the service system based on the wired network ;
    所述服务节点匹配单元,包括:The service node matching unit includes:
    第二节点匹配单元,用于针对具有每种网络属性的有线网络终端,从所述服务系统的多个服务节点中,选取出具有网络属性的有线网络终端所适合访问的服务节点;a second node matching unit, configured to: for a wired network terminal having each network attribute, select, from among a plurality of service nodes of the service system, a service node that is suitable for access by a wired network terminal having a network attribute;
    所述匹配关系确定单元,包括:The matching relationship determining unit includes:
    第二关系确定单元,用于针对每种网络属性,将网络属性的有线网络终端所适合访问的服务节点的IP地址,作为第二域名解析列表中与网络属性相匹配的服务节点的IP地址,所述第二域名解析列表中存储有具有不同网络属性的有线网络终端所需调度到的服务节点的IP地址。a second relationship determining unit, configured to, for each network attribute, an IP address of a service node that is suitable for access by the wired network terminal of the network attribute, as an IP address of a service node that matches the network attribute in the second domain name resolution list, The second domain name resolution list stores an IP address of a service node that is scheduled to be scheduled by a wired network terminal having different network attributes.
  13. 一种调度控制系统,其特征在于,包括:A dispatch control system, comprising:
    数据服务器以及配置服务器;Data server and configuration server;
    其中,所述数据服务器,用于获取多个终端访问服务系统中不同服务节点的访问时延;针对具有每种网络属性的终端,分别计算具有网络属性的所有终端访问服务系统中每个服务节点的平均访问时延,其中,终端的网络属性表征终端所归属的运营商以及地理区域;The data server is configured to acquire access delays of different service nodes in multiple terminal access service systems; and calculate, for each terminal having each network attribute, each service node in all terminal access service systems having network attributes Average access delay, where the network attribute of the terminal characterizes the operator to which the terminal belongs and the geographic area;
    所述配置服务器,用于根据具有不同网络属性的终端访问服务系统中每个服务节点的平均访问时延,分别从所述服务系统的多个服务节点中,选取出具有每种网络属性的终端所适合访问的服务节点,其中,针对具有目标网络属性的终端所适合访问的目标服务节点,具有所述目标网络属性的终端访问所述目标服务节点的平均访问时延满足第一预设条件;针对每种网络属性,将具有网络属性的终端所适合访问的服务节点的IP地址,作为域名解析列表中与网络属性相匹配的服务节点的IP地址。The configuration server is configured to select a terminal having each network attribute from multiple service nodes of the service system according to an average access delay of each service node in the terminal access service system having different network attributes. a service node that is suitable for access, wherein, for a target service node that is suitable for access by a terminal having a target network attribute, an average access delay of the terminal having the target network attribute accessing the target service node satisfies a first preset condition; For each network attribute, the IP address of the service node that the terminal having the network attribute is suitable to access is used as the IP address of the service node in the domain name resolution list that matches the network attribute.
  14. 根据权利要求13所述的调度控制系统,其特征在于,所述数据服务器在获取多个终端访问服务系统中不同服务节点的访问时延时,具体用于,获取多个移动终端访问服务系统中不同服务节点的访问时延,以及多个有线网络终端访问服务系统中不同服务节点的访问时延;The scheduling control system according to claim 13, wherein the data server obtains a delay in accessing different service nodes in the plurality of terminal access service systems, and is specifically configured to acquire a plurality of mobile terminal access service systems. Access delays of different service nodes, and access delays of different service nodes in a plurality of wired network terminals accessing the service system;
    所述数据服务器在针对具有每种网络属性的终端,分别计算具有网络属性的终端访问服务系统中每个服务节点的平均访问时延时,具体用于:The data server calculates the average access time delay of each service node in the terminal access service system with network attributes for the terminal having each network attribute, specifically for:
    针对具有每种网络属性的移动终端,计算具有网络属性的所有移动终端访问服务系统中每个服务节点的平均访问时延,所述移动终端采用无线网络访问所述服务系统中的服务节点;Calculating, for a mobile terminal having each network attribute, an average access delay of each service node in the service system having all the network attributes, the mobile terminal accessing the service node in the service system by using a wireless network;
    针对具有每种网络属性的有线网络终端,计算具有网络属性的所有线网络终端访问服务系统中每个服务节点的平均访问时延,所述有线网络终端基于有线网络访问所述服务系统中的服务节点;Calculating, for a wired network terminal having each network attribute, an average access delay of each of the service nodes having access to the service system in all of the line network terminals having the network attribute, the wired network terminal accessing the service in the service system based on the wired network node;
    所述配置服务器在根据具有不同网络属性的终端访问服务系统中每个服务节点的平均访问时延,分别从所述服务系统的多个服务节点中,选取出具有每种网络属性的终端所适合访问的服务节点时,具体用于:The configuration server selects, according to the average access delay of each service node in the terminal access service system having different network attributes, from the plurality of service nodes of the service system, the terminal having each network attribute is suitable. When accessing a service node, it is specifically used to:
    分别从所述服务系统的多个服务节点中,选取出具有每种网络属性的移动终端所适合访问的服务节点;或,选取出具有每种网络属性的有线网络终端所适合访问的服务节点。Selecting, from the plurality of service nodes of the service system, a service node that is suitable for access by the mobile terminal having each network attribute; or selecting a service node that is suitable for access by the wired network terminal having each network attribute.
  15. 根据权利要求14所述的调度控制系统,其特征在于,所述调度控制系统还包括:部署于所述服务系统中不同机房内的多个测速节点,其中,所述服务系统的每个服务节点关联有一个测速节点,且服务节点关联的测速节点与服务节点部署于同一机房内;The scheduling control system according to claim 14, wherein the scheduling control system further comprises: a plurality of speed measuring nodes deployed in different equipment rooms in the service system, wherein each service node of the service system The association has a speed measuring node, and the speed measuring node associated with the service node and the service node are deployed in the same equipment room;
    所述数据服务器在获取多个移动终端访问服务系统中不同服务节点的访问时延时,具体用于:获取多个移动终端访问不同测速节点的访问时延;The data server obtains a delay of accessing different service nodes in a plurality of mobile terminal access service systems, and is specifically configured to: obtain access delays of multiple mobile terminals to access different speed measurement nodes;
    所述数据服务器在针对具有每种网络属性的移动终端,计算具有网络属性的所有移动终端访问服务系统中每个服务节点的平均访问时延时,具体用于:The data server calculates, for a mobile terminal having each network attribute, an average access time delay of each service node in the service system having all the network attributes, specifically for:
    针对具有每种网络属性的移动终端,计算具有网络属性的所有移动终端访问服务系统中每个测速节点的平均访问时延,并依据测速节点与服务节点的关联关系,确定具有网络属性的所有移动终端访问服务系统中每个服务节点的平均访问时延;For the mobile terminal with each network attribute, calculate the average access delay of each speed-measuring node in all the mobile terminal access service systems with the network attribute, and determine all the movements with the network attribute according to the association relationship between the speed measuring node and the service node. The average access delay of each service node in the terminal access service system;
    所述测速节点,用于根据所述测速节点关联的服务节点所返回的目标网关的IP地址,测试所述目标网关到所述测速节点的访问时延,所述目标网关的IP地址为所述测速节点关联的服务节点在接收到所述有线网络终端的访问请求时,反向路由出的所述有线网络终端所属的网关的IP地址,所述有线网络终端的网络属性与所述有线网络终端所属的目标网关的网络属性相同;将所述目标网关到所述测速节点的访问时延作为所述有线网络终端到所述测速节点的访问时延,发送给所述数据服务器。The speed measuring node is configured to test an access delay of the target gateway to the speed measuring node according to an IP address of the target gateway returned by the service node associated with the speed measuring node, where the IP address of the target gateway is When the service node associated with the speed measuring node receives the access request of the wired network terminal, the IP address of the gateway to which the wired network terminal belongs is reversely routed, the network attribute of the wired network terminal and the wired network terminal The network attribute of the associated target gateway is the same; the access delay of the target gateway to the speed measuring node is used as the access delay of the wired network terminal to the speed measuring node, and is sent to the data server.
  16. 一种存储介质,所述存储介质用于存储程序代码,所述程序代码用于执行权利要求1-9任一项所述的一种调度控制方法。A storage medium for storing program code for performing a scheduling control method according to any one of claims 1-9.
  17. 一种包括指令的计算机程序产品,当其在计算机上运行时,使得所述计算机执行权利要求1-9任一项所述的一种调度控制方法。A computer program product comprising instructions which, when run on a computer, cause the computer to perform a scheduling control method according to any of claims 1-9.
PCT/CN2018/087074 2017-05-18 2018-05-16 Scheduling control method, apparatus, and system WO2018210265A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201710353408.0A CN107071089B (en) 2017-05-18 2017-05-18 Scheduling control method, device and system
CN201710353408.0 2017-05-18

Publications (1)

Publication Number Publication Date
WO2018210265A1 true WO2018210265A1 (en) 2018-11-22

Family

ID=59611004

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/087074 WO2018210265A1 (en) 2017-05-18 2018-05-16 Scheduling control method, apparatus, and system

Country Status (2)

Country Link
CN (1) CN107071089B (en)
WO (1) WO2018210265A1 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112242937A (en) * 2020-10-13 2021-01-19 腾讯科技(深圳)有限公司 Network speed measuring method and device and computer readable medium
CN112532765A (en) * 2020-12-14 2021-03-19 广东睿江云计算股份有限公司 Network access method and system thereof
CN113037888A (en) * 2021-03-12 2021-06-25 北京金山云网络技术有限公司 Method and device for accelerating configuration of domain name, storage medium and electronic equipment
CN114338817A (en) * 2021-12-22 2022-04-12 中国人民银行清算总中心 Multi-plane network access control method and multi-plane network

Families Citing this family (20)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107071089B (en) * 2017-05-18 2020-09-15 腾讯科技(深圳)有限公司 Scheduling control method, device and system
CN109428839B (en) * 2017-08-31 2022-10-11 华为技术有限公司 CDN scheduling method, device and system
CN107635015B (en) * 2017-10-25 2020-11-24 深圳市和讯华谷信息技术有限公司 Optimal path selection system and method for linking mobile terminal and server
CN108600146A (en) * 2017-12-29 2018-09-28 北京搜狐新媒体信息技术有限公司 A kind of address dispatching method and device
CN110768852A (en) * 2018-07-25 2020-02-07 贵州白山云科技股份有限公司 Method and device for testing cloud network nodes
CN109768897B (en) * 2018-12-20 2022-07-29 深圳市创梦天地科技有限公司 Server deployment method and device
CN110166581B (en) * 2019-04-30 2022-03-29 大唐软件技术股份有限公司 Domain name resolution server access frequency ratio obtaining method and device
CN114172961A (en) 2019-07-31 2022-03-11 贵州白山云科技股份有限公司 Method, device, medium and equipment for scheduling access request
CN110784559B (en) * 2019-09-17 2022-06-07 大唐软件技术股份有限公司 DNS analysis delay acquisition method and device
CN110661879B (en) * 2019-10-12 2023-03-24 北京奇艺世纪科技有限公司 Node scheduling method, device and system, scheduling server and terminal equipment
CN110809040B (en) * 2019-10-30 2022-04-29 四川速宝网络科技有限公司 Acceleration service providing system and method
CN111385357B (en) * 2020-03-04 2021-04-27 腾讯科技(深圳)有限公司 Network resource management method and device, computer equipment and storage medium
CN111934947B (en) * 2020-07-17 2023-03-24 中国联合网络通信集团有限公司 Speed measurement method, speed measurement scheduling server, terminal equipment and readable storage medium
CN111917898B (en) * 2020-07-24 2021-08-27 网宿科技股份有限公司 Resource scheduling policy adjusting method and device
CN113132182B (en) * 2021-03-30 2022-08-30 新华三智能终端有限公司 Network speed testing method and device
CN114244805B (en) * 2021-11-08 2023-10-03 网宿科技股份有限公司 Domain name configuration method and device
CN114257530B (en) * 2021-11-29 2023-08-22 中国联合网络通信集团有限公司 Network asset mapping method, device, equipment and storage medium
CN114143251B (en) * 2021-12-08 2023-10-13 北京天融信网络安全技术有限公司 Intelligent routing method, intelligent routing device, electronic equipment and computer readable storage medium
CN114650295B (en) * 2022-03-29 2023-12-05 北京有竹居网络技术有限公司 CDN quality scheduling method and device, medium and electronic equipment
CN114697241B (en) * 2022-04-07 2023-09-12 机械工业仪器仪表综合技术经济研究所 End-to-end time delay test system and method

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2011049500A1 (en) * 2009-10-23 2011-04-28 Telefonaktiebolaget Lm Ericsson (Publ) A method and arrangement in a communication network for selecting network elements
CN104954507A (en) * 2015-06-23 2015-09-30 中国互联网络信息中心 Domain name resolution method and system adopting data optimization
CN105610995A (en) * 2015-09-11 2016-05-25 宇龙计算机通信科技(深圳)有限公司 Selection method of DNS server, selection device of the DNS server and terminal
CN106992938A (en) * 2017-05-15 2017-07-28 网宿科技股份有限公司 A kind of network traffics dynamic dispatching distribution method and system
CN107071089A (en) * 2017-05-18 2017-08-18 腾讯科技(深圳)有限公司 Dispatch control method, device and system

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101764747B (en) * 2009-12-24 2012-05-02 北京云快线软件服务有限公司 Intelligent dispatching method, device and system of content delivery network flow
CN105162900B (en) * 2015-09-25 2019-02-15 中国互联网络信息中心 A kind of domain name mapping of multi-node collaboration and caching method and system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2011049500A1 (en) * 2009-10-23 2011-04-28 Telefonaktiebolaget Lm Ericsson (Publ) A method and arrangement in a communication network for selecting network elements
CN104954507A (en) * 2015-06-23 2015-09-30 中国互联网络信息中心 Domain name resolution method and system adopting data optimization
CN105610995A (en) * 2015-09-11 2016-05-25 宇龙计算机通信科技(深圳)有限公司 Selection method of DNS server, selection device of the DNS server and terminal
CN106992938A (en) * 2017-05-15 2017-07-28 网宿科技股份有限公司 A kind of network traffics dynamic dispatching distribution method and system
CN107071089A (en) * 2017-05-18 2017-08-18 腾讯科技(深圳)有限公司 Dispatch control method, device and system

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112242937A (en) * 2020-10-13 2021-01-19 腾讯科技(深圳)有限公司 Network speed measuring method and device and computer readable medium
CN112242937B (en) * 2020-10-13 2024-03-08 腾讯科技(深圳)有限公司 Network speed measuring method and device, electronic equipment and computer readable medium
CN112532765A (en) * 2020-12-14 2021-03-19 广东睿江云计算股份有限公司 Network access method and system thereof
CN113037888A (en) * 2021-03-12 2021-06-25 北京金山云网络技术有限公司 Method and device for accelerating configuration of domain name, storage medium and electronic equipment
CN114338817A (en) * 2021-12-22 2022-04-12 中国人民银行清算总中心 Multi-plane network access control method and multi-plane network
CN114338817B (en) * 2021-12-22 2023-11-10 中国人民银行清算总中心 Multi-plane network access control method and multi-plane network

Also Published As

Publication number Publication date
CN107071089B (en) 2020-09-15
CN107071089A (en) 2017-08-18

Similar Documents

Publication Publication Date Title
WO2018210265A1 (en) Scheduling control method, apparatus, and system
US11461402B2 (en) Routing based request correlation
CN107395683B (en) Method for selecting return path and server
CN111262938B (en) DNS server selection method and proxy server
CN102859942B (en) Using DNS reflection to measure network performance
JP5889445B2 (en) Method and apparatus for identifying an application associated with an IP flow using DNS data
JP2012509623A (en) Updating routing information using request routing and client location information
CN109151009B (en) CDN node distribution method and system based on MEC
WO2021004528A1 (en) Method, device and apparatus for address acquisition of application example and storage medium
JP5928040B2 (en) Relay device, information processing system, relay program, and relay method
WO2015112206A1 (en) Intelligent ip resolver
WO2015039475A1 (en) Method, server, and system for domain name resolution
CN110769080B (en) Domain name resolution method, related product and computer readable storage medium
CN103873604A (en) Network access method based on analysis of CDN data
CN112118151A (en) Network speed measuring method, device, system, electronic equipment and storage medium
US11297131B2 (en) Method and apparatus for multi-vendor GTM fabric
US10397082B2 (en) Internet infrastructure measurement method and system adapted to session volume
JP6212344B2 (en) Network monitoring device, network monitoring system, network monitoring method, and network monitoring program
US8862724B2 (en) Processing apparatus, processing method, and communication system
US11336615B2 (en) Global load balancing achieved by using distributed DNS reflection
CN106034124B (en) A kind of flow statistical method and device
CN114520784A (en) Dynamic content accelerated access method and device
CN104734919B (en) A kind of method and apparatus for measuring network delay
US8239483B2 (en) System and method for generic application of location determination for network attached devices
CN111371826A (en) CDN node performance detection method, device and system

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 18802835

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 18802835

Country of ref document: EP

Kind code of ref document: A1