CN111064760B - Method and device for accessing service in content distribution network - Google Patents

Method and device for accessing service in content distribution network Download PDF

Info

Publication number
CN111064760B
CN111064760B CN201811208103.1A CN201811208103A CN111064760B CN 111064760 B CN111064760 B CN 111064760B CN 201811208103 A CN201811208103 A CN 201811208103A CN 111064760 B CN111064760 B CN 111064760B
Authority
CN
China
Prior art keywords
node
service
service node
gslb
terminal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201811208103.1A
Other languages
Chinese (zh)
Other versions
CN111064760A (en
Inventor
刘雨涵
孙莉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China United Network Communications Group Co Ltd
Original Assignee
China United Network Communications Group Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China United Network Communications Group Co Ltd filed Critical China United Network Communications Group Co Ltd
Priority to CN201811208103.1A priority Critical patent/CN111064760B/en
Publication of CN111064760A publication Critical patent/CN111064760A/en
Application granted granted Critical
Publication of CN111064760B publication Critical patent/CN111064760B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The application provides a method and a device for accessing a service in a CDN (content delivery network), which relate to the field of communication and can improve the access speed of a terminal when the service is accessed in the CDN. The method is applied to global server load balancing GSLB nodes, the GSLB nodes store the identification of each service node in a content distribution network and preset information corresponding to each service node, and the preset information is used for representing the performance of the service nodes and comprises the following steps: the GSLB node receives an access request of a terminal, wherein the access request is used for requesting a preset type service; the GSLB node determines a target service node according to the stored preset information of at least one service node; and the GSLB node sends the address of the target service node to the terminal, so that the terminal accesses the preset type service provided by the target service node according to the address of the target service node.

Description

Method and device for accessing service in content distribution network
Technical Field
The present application relates to the field of communications network technologies, and in particular, to a method and an apparatus for accessing a service in a content distribution network.
Background
A Content Delivery Network (CDN) is a one-layer intelligent Network constructed based on an existing Network, and redirects an access request of a terminal to a service node closest to the terminal by deploying a plurality of service nodes. The method aims to enable the terminal to obtain the required content nearby, solve the problem of congestion of the Internet network and improve the response speed of the terminal in accessing the website.
Typically, in larger CDNs, at least one GSLB node and multiple SLB nodes are deployed. Assuming that a GSLB node is deployed in a CDN, the GSLB node manages a plurality of SLB nodes, each SLB manages a plurality of service nodes, and a process of a terminal accessing a service provided by the CDN is as follows: the method comprises the steps that a terminal sends an access request to a Global Server Load Balance (GSLB) node, the GSLB node sends the address of an optimal SLB node to the terminal based on a scheduling strategy, the terminal sends the access request to the optimal SLB node, and the optimal SLB node sends the address of an optimal service node to the terminal. And finally, the terminal sends an access request to the optimal service node to acquire the service content provided by the optimal service node.
As can be seen, in the above process of accessing the service by the terminal, the access request of the terminal needs to be sequentially scheduled to the optimal SLB node, and then the optimal SLB node schedules the access request to the optimal service node, which means that the existing CDN increases the delay of the access request response based on multi-level scheduling.
Disclosure of Invention
The application provides a method and a device for accessing a service in a CDN (content distribution network), which can improve the access speed of a terminal when the service is accessed in the CDN.
In order to achieve the purpose, the technical scheme is as follows:
in a first aspect, the present application provides a method for accessing a service in a CDN, where the method is applied to a global server load balancing GSLB node, where the GSLB node stores an identifier of each service node in a content delivery network and preset information corresponding to each service node, and the preset information is used to characterize performance of the service node, and the method includes: the GSLB node receives an access request of a terminal, wherein the access request is used for requesting a preset type service; the GSLB node determines a target service node according to the stored preset information of at least one service node; and the GSLB node sends the address of the target service node to the terminal, so that the terminal accesses the preset type service provided by the target service node according to the address of the target service node.
In a second aspect, the present application provides a method for accessing a service in a CDN, where the method is applied to a GSLB or an SLB, and the method includes:
and if the value of the performance index corresponding to the service node is in the preset performance index value range, determining that the quantization value of the performance index corresponding to the service node is a preset quantization value, wherein the preset quantization value and the preset performance index value range have a corresponding relation.
Respectively determining the service quality of each service node according to the quantized value of the performance index corresponding to each service node, and the service quality of each service node
Figure BDA0001831296780000021
Wherein per i The weight is the weight of the performance index i in all the performance indexes of the service node, and N is the number of the performance indexes corresponding to the service node.
In a third aspect, the present application provides a GSLB node, where an identifier of each service node in a content distribution network and preset information corresponding to each service node are stored in the GSLB node, and the preset information is used to characterize performance of the service node. The GSLB node comprises at least a processor and a transceiver.
The system comprises a transceiver and a server, wherein the transceiver is used for receiving an access request of a terminal, and the access request is used for requesting a preset type service; the processor is used for determining a target service node according to the stored preset information of at least one service node; the transceiver is further configured to send the address of the target service node to the terminal, so that the terminal accesses the preset type service provided by the target service node according to the address of the target service node.
In a fourth aspect, the present application provides a GSLB or SLB, wherein the GSLB or SLB comprises at least a processor. And the processor is used for determining that the quantized value of the performance index corresponding to the service node is a preset quantized value if the value of the performance index corresponding to the service node is in a preset performance index value range, wherein the preset quantized value and the preset performance index value range have a corresponding relation. Respectively determining the service quality of each service node according to the quantized value of the performance index corresponding to each service node, and the service quality of each service node
Figure BDA0001831296780000022
Wherein per i The weight is the weight of the performance index i in all the performance indexes of the service node, and N is the number of the performance indexes corresponding to the service node.
In a fifth aspect, the present application provides a GSLB or SLB comprising: a processor, a transceiver, and a memory. Wherein the memory is used to store one or more programs. The one or more programs include computer executable instructions that, when executed by the processor, cause the GSLB to perform a method of accessing services in a content distribution network as described in any of the first aspect and its various alternative implementations, or to perform a method of accessing services in a content distribution network as described in any of the second aspect and its various alternative implementations. When the SLB is running, the processor executes the computer executable instructions stored by the memory to cause the SLB to perform the method of accessing services in a content distribution network as described in the second aspect and any of its various alternative implementations.
In a sixth aspect, the present application provides a computer-readable storage medium, where instructions are stored in the computer-readable storage medium, and when the instructions are executed by a GSLB, the GSLB performs the method for accessing a service in a content distribution network according to any one of the first aspect, the second aspect, and various optional implementations of the two aspects. When the SLB executes the instruction, the SLB performs the method for accessing services in a content distribution network as described in any one of the second aspect and its various alternative implementations above.
In a seventh aspect, the present application provides a communication system, where the communication system includes a terminal, a service node, a GSLB described in any of various optional implementations of the first aspect or the second aspect and both, and an SLB of any of the second aspect and various optional implementations thereof.
Compared with the prior art that the access speed of the terminal is low, the method and the device for accessing the service in the CDN provided by the application have the advantages that the preset information corresponding to each service node is stored in the GSLB node, so that after the GSLB node receives the access request of the terminal, the target service node can be determined according to the stored preset information of at least one service node, the address of the target service node is sent to the terminal, the terminal directly accesses the target service node according to the address of the target service node, the SLB nodes of all levels do not need to be accessed step by step, the time for accessing the SLB nodes step by step is shortened, and the speed for accessing the service by the terminal is improved.
Drawings
Fig. 1 is a schematic diagram of a CDN network architecture according to an embodiment of the present disclosure;
fig. 2 is a schematic flowchart of a GSLB node acquiring preset information of a service node according to an embodiment of the present disclosure;
fig. 3 is a schematic flowchart of a method for accessing a service in a CDN, provided in an embodiment of the present application;
fig. 4 is a first schematic structural diagram of a GSLB node according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of a GSLB node according to an embodiment of the present application.
Detailed Description
The method and apparatus for accessing a service in a CDN provided in the embodiments of the present application are described in detail below with reference to the accompanying drawings.
The term "and/or" herein is merely an association relationship describing an associated object, and means that there may be three relationships, for example, a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone.
Furthermore, the terms "including" and "having," and any variations thereof, as referred to in the description of the present application, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements but may alternatively include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
It should be noted that in the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or explanations. Any embodiment or design described herein as "exemplary" or "e.g.," is not necessarily to be construed as preferred or advantageous over other embodiments or designs. Rather, use of the word "exemplary" or "such as" is intended to present concepts related in a concrete fashion.
In the description of the present application, the meaning of "a plurality" means two or more unless otherwise specified.
The method for accessing the service in the content delivery network provided by the embodiment of the present application may be applied to the CDN network shown in fig. 1. As shown in fig. 1, the CDN network may include: GSLB node, SLB node, service node and terminal. The GSLB node is configured to manage multiple SLB nodes, receive preset information of each service node reported by each SLB node, and determine a target service node providing a service for a terminal according to the preset information of each service node, so that the terminal 1 shown in fig. 1 may directly initiate an access request to the target service node. The GSLB node may be software, a virtual machine, or a physical device. Fig. 1 shows a GSLB node in the form of a physical device.
It should be noted that the preset information is used to characterize the performance of the service node, and the preset information may be state information of the service node and quality information of the service node, where the state information includes, but is not limited to, a load rate of the service node, a concurrent access amount of the service node, an available bandwidth of the service node, a traffic type of the service node, and the like. The quality information of the serving node may be quantized state information. It can be understood that the embodiment of the present application further includes other forms of state information, and the type of the specific state information may be determined according to an actual implementation scenario, which is not limited in the embodiment of the present application.
And the SLB node is used for receiving the preset information sent by each service node and reporting the preset information of each service node to the GSLB node. The SLB node may be software, a virtual machine, or a physical device. Fig. 1 shows an SLB node in the form of a physical device.
And the service node is used for storing the content provided for the terminal in the CDN network and providing corresponding services for the terminal, reporting the preset information to the corresponding SLB node by the service node, and reporting the preset information to the GSLB node by the SLB node. Illustratively, video, audio, and web content may be stored in the service node for access by the terminal.
The service node may be software, a virtual machine, or a physical device. Figure 1 shows a service node in the form of a physical device.
It should be noted that fig. 1 describes the CDN network according to the embodiment of the present application by taking the GSLB node as an example to manage the SLB 1 and the SLB 2, and taking the SLB 1 as an example to manage the service node 1 and the service node 2, and taking the SLB 2 as an example to manage the service node 3. It is understood that, in the embodiment of the present application, multiple hierarchical SLB nodes may also be provided, and assuming that two hierarchical SLB nodes may be provided, a GSLB node manages multiple first hierarchical SLB nodes, and each first hierarchical SLB node manages multiple second hierarchical SLB nodes. Fig. 1 only illustrates the setting of a first-level SLB node as an example, and how many levels of SLB nodes are specifically set in the CDN network may be determined according to an actual implementation scenario, which is not limited in the embodiment of the present application.
It should be noted that fig. 1 is only an exemplary architecture diagram, and the network architecture may include other functional units besides the functional units shown in fig. 1, which is not limited in this application.
The terminal may be a User Equipment (UE), such as: cell phones, computers, and may also be cellular phones, cordless phones, session Initiation Protocol (SIP) phones, smart phones, wireless Local Loop (WLL) stations, personal Digital Assistants (PDAs), laptop computers, handheld communication devices, handheld computing devices, satellite radios, wireless modem cards, set Top Boxes (STBs), customer Premises Equipment (CPE), and/or other devices used to communicate over a wireless system.
Before a terminal initiates an access request to a GSLB node, preset information of each service node should be stored in the GSLB node, so that the GSLB node feeds back an address of a target service node to the terminal initiating the access request according to the preset information of each service node, based on which, referring to fig. 2, a process of the GSLB node acquiring the preset information of each service node includes:
s201, the service node sends preset information to the SLB node.
Correspondingly, the SLB node receives preset information sent by at least one service node, and the preset information represents the performance of the service node.
In one implementation, the preset information may be state information of the service node, where the state information includes, but is not limited to, a load rate of a single service node, a concurrent access amount of the single service node, and a traffic type of the single service node, and the concurrent access amount is a number of access requests for the single service node in the same time period.
For example, as shown in fig. 2, the first serving node acquires its own status information, and sends its own status information to the SLB node, where the status information includes the following performance indicators: the load rate of the first service node is 70%, the concurrent access amount of the first service node is 30000, and the service type of the first service node is a video service.
As a possible implementation manner, the service node receives an external signal through a set specific interface to determine current state information, and other manners of the service node acquiring the state information of the service node may refer to the prior art, which is not described in detail herein.
As a possible implementation manner, the manner in which the first serving node reports the state information to the SLB node may be implemented as follows: after being powered on, the first service node reports the state information to the SLB node periodically. Specifically, a timer is set in the first service node, the timing duration of the timer is set, and when the timing duration of the timer is reached, the timer triggers the first service node to report the state information to the SLB node. Taking the timing duration as 10 seconds as an example, the first serving node reports the state information to the SLB node every 10 seconds. The timing duration of the timer can be determined according to an actual implementation scenario, which is not limited in the embodiments of the present application.
Similarly, as shown in fig. 2, the second serving node also reports the status information to the SLB node.
It should be noted that, in fig. 2, the method in the embodiment of the present application is described by taking only two service nodes, namely, a first service node and a second service node, as an example, and the number of service nodes in the communication system is not limited in the embodiment of the present application.
In another implementation, the preset information may be a service quality of the service node. The quality of service is determined by the following equation:
Figure BDA0001831296780000061
wherein, qua _ ser is the service quality of the service node, i is the number of the performance index, per i Is the quantized value of the performance index i corresponding to the service node,
weight is the weight of the performance index i in all the performance indexes of the service node, N is the number of the performance indexes corresponding to the service node, and the quantized value is a corresponding preset quantized value when the value of the performance index i corresponding to the service node is within a preset performance index value range.
Alternatively, the quality of service is generated by the SLB node or the GSLB node.
In the first case, the process of generating the service quality of the service node by the SLB node, and processing the status information of the service node by the SLB node to generate the service quality of the service node includes: and if the value of the performance index corresponding to the service node is within the preset performance index value range, the SLB node determines that the quantized value of the performance index corresponding to the service node is a preset quantized value, wherein the preset quantized value and the preset performance index value range have a corresponding relation. Then, the SLB node respectively determines the service quality of each service node according to the quantized value of the performance index corresponding to each service node, and the service quality of each service node
Figure BDA0001831296780000071
Wherein per i The weight is the weight of the performance index i in all the performance indexes of the service node, and N is the number of the performance indexes corresponding to the service node.
It should be noted that, the SLB node is provided with a corresponding relationship between the value range of the performance index and the quantization value, and it is assumed that the corresponding relationship is shown in table 1:
TABLE 1
Figure BDA0001831296780000072
The concurrency ratio in table 1 is a ratio of the number of access requests initiated for a service node to the total number of access requests that the service node can respond to in a preset time period. For example, in 10
Figure BDA0001831296780000073
Assume that the performance indicators of the first service node and the second service node are as shown in table 2:
TABLE 2
Service node Rate of load Ratio of concurrency Type of service
First service node 80% 70% Video service
Second service node 40% 30% Video service
As can be seen, for the first service node in table 2, the value (80%) of the load rate of the performance index is within the range of values of the preset performance index (i.e., load > 70%), and since the range of values of the load rate (load > 70%) in table 1 has a corresponding relationship with the quantized value 1, the quantized value of the load rate (80%) is 1. If the performance index concurrency ratio (70%) of the first service node is within a preset performance index value range (namely 30% < current ≦ 70%), the quantization value of the concurrency ratio is 5.
Assume that the weight of each performance indicator is: the weight of the load rate is 0.7, and the weight of the concurrency ratio is 0.3, then the quality of service Qua _ ser =1 × 0.7+5 × 0.3=2.2 of the first service node.
Similarly, for the second service node in table 2, if the value of the performance index Load rate (40%) is within the preset performance index value range (30% < Load ≦ 70%), the quantization value of the Load rate is 5. And if the performance index concurrency ratio (30%) of the second service node is within a preset performance index value range (namely Concurrent is less than or equal to 30%), the quantization value of the concurrency ratio is 10.
As described above, the weight of the load rate is 0.7, and the weight of the concurrency ratio is 0.3, so that the quality of service Qua _ ser =5 × 0.7+10 × 0.3=6.5 of the second service node.
It should be noted that the setting manner of the performance index shown in table 1 is only an example, and different preset performance index value ranges may also be used and different index performance weights may be set in the embodiment of the present application, which is not limited in this embodiment of the present application.
It can be understood that after the SLB node processes the status information of the service nodes to obtain the service quality of each service node, the SLB node may send the service quality of at least one service node to the GSLB node.
In the second case, the GSLB node processes the state information to generate the qos of the service node, and the process is different from the process of generating the qos by the SLB node only in the execution subject, and those skilled in the art can execute the process of generating the qos by the GSLB node with reference to the above process.
Compared with the mode that the state information of at least one service node is directly sent to the GSLB node, the processed service quality is sent to the GSLB node, and the sent data volume can be reduced. For example, in a scenario where the SLB node sends the state information of the first service node to the GSLB node, the SLB node needs to send values of each performance index of the first service node, specifically including a load rate of 80%, a concurrency ratio of 70%, a service type of video service, and the like, and in a scenario where the SLB node processes the state information of the first service node to obtain the service quality of the first service node, the SLB node only sends the service quality of the first service node to the GSLB node, that is, the service quality obtained in S402 is 2.2. Therefore, through the processing of the service node state information by the SLB node, the data volume sent by the SLB node to the GSLB node is reduced, the bandwidth between the SLB node and the GSLB node is saved, the network congestion is relieved, and the data transmission efficiency between the SLB node and the GSLB node is further improved.
S202, the SLB node sends preset information of at least one service node to the GSLB node.
Accordingly, the GSLB node receives the status information or the quality information of the at least one serving node transmitted by the SLB node.
Corresponding to the first case, the service node sends its own status information to the SLB node, and the SLB generates the service quality of the service node according to the status information of the service node, and then the SLB node performs S202, that is, sends the service quality of the service node to the GSLB node.
Corresponding to the second case, the service node sends its own status information to the SLB node, and the SLB node generates the service quality of the service node according to the status information, and then the SLB node performs S202, that is, sends the status information of the service node to the GSLB node, and then the GSLB node generates the service quality according to the status information of the service node.
Or, in the third case, the service node sends its own status information to the SLB node, and the SLB node performs S202, that is, forwards the status information of the service node to the GSLB node.
It is to be understood that, corresponding to the first case and the second case, after the GSLB receives or generates the service quality of the service node, the service quality of each service node and the identity of each service node are stored, and, corresponding to the third case, after the status information of the service node is received, the status information of each service node and the identity of each service node are stored.
After the GSLB stores preset information of each service node, as shown in fig. 3, an embodiment of the present application provides a method for accessing a service in a CDN, where the method includes:
s301, the GSLB node receives an access request of the terminal, and the access request is used for requesting a preset type service.
For example, if the terminal requests access to a video service, the preset type service is a video type service.
S302, the GSLB node determines a target service node according to the stored preset information of at least one service node.
Optionally, the GSLB node determines, as the target service node, a service node, which has a lowest load rate and/or a lowest concurrent access amount in at least one service node and is matched with a preset type of service. Illustratively, it is assumed that GSLB stores state information of a first service node, a second service node and a third service node, where the state information of the first service node is: the load rate of the first service node is 70%, the concurrent access amount of the first service node is 30000, and the service type of the first service node is a video service. State information of the second serving node: the load rate of the second service node is 40%, the concurrent access amount of the second service node is 35000, and the service type of the second service node is video service. State information of the third serving node: the load rate of the third service node is 50%, the concurrent access amount of the third service node is 15000, and the service type of the third service node is a web service.
Assume that the scheduling policy set by the GSLB node is: and selecting the service node with the lowest load as a target service node. The GSLB selects a first service node and a second service node as candidate service nodes as a terminal requests to access the video type service, and then the GSLB determines that the second service node is a target service node as the load rate (40%) of the second service node is less than the load rate (70%) of the first service node according to a scheduling strategy and stored state information of the first service node and the second service node.
Or, in a preset time, the GSLB node determines, as the target service node, a service node that matches the preset type of traffic and has the highest service quality among unscheduled service nodes.
In one implementation manner, in the first service node, the second service node, and the third service node, if the quality of service of the third service node is the highest, the GSLB node determines that the third service node is the target service node.
In another implementation manner, the service qualities of the service nodes may also be sorted, and the service nodes are sequentially scheduled according to the sorting in a preset time period. For example, if the preset time period is 10 minutes, the service quality of the first service node is 2.2, the service quality of the second service node is 6.5, and the service quality of the third service node is 8.9, the service nodes are ranked as service node three, service node two, and service node one according to the service quality from high to low. In the implementation mode, when the first terminal has a first access request, the GSLB node selects a third service node with the highest service quality as a target service node, and the first terminal directly accesses the third service node; assuming that the preset time is 10 minutes, the second terminal initiates a second access request within 10 minutes, and since the service node three is scheduled, the service quality of the service node two in the service nodes which are not scheduled at present is highest, so that the GSLB node selects the service node two as a target service node, and the second terminal directly accesses the second service node; within 10 minutes, when a third terminal has a third access request, the GSLB node selects a first service node as a target service node, and the third terminal directly accesses the first service node; within 10 minutes, when the fourth terminal has a fourth access request, the GSLB node selects the third service node as a target service node, the fourth terminal directly accesses the third service node, and so on, and the GSLB node directs each access request to different service nodes within a preset time period, so that the problem that the load of the service nodes is large due to the fact that the access requests are directed to the same service node is avoided, and the load balance of each service node within the preset time period is realized.
S303, the GSLB node sends the address of the target service node to the terminal.
Illustratively, the GSLB node sends an Internetwork Protocol (IP) address of the target serving node to the terminal.
S304, the terminal accesses the preset type service provided by the target service node according to the address of the target service node.
With reference to the foregoing example, if the target service node is the second service node, the terminal directly initiates an access request to the second service node and obtains a service provided by the second service node.
Compared with the prior art that the access speed of the terminal is low, the method and the device for accessing the service in the CDN provided by the application have the advantages that the preset information corresponding to each service node is stored in the GSLB node, so that after the GSLB node receives the access request of the terminal, the target service node can be determined according to the stored preset information of at least one service node, the address of the target service node is sent to the terminal, the terminal directly accesses the target service node according to the address of the target service node, the SLB nodes of all levels do not need to be accessed step by step, the time for accessing the SLB nodes step by step is shortened, and the speed for accessing the service by the terminal is improved.
In the embodiment of the present application, functional modules or functional units may be divided according to the above method example, for example, each functional module or functional unit may be divided corresponding to each function, or two or more functions may be integrated into one processing module. The integrated module may be implemented in a form of hardware, or may be implemented in a form of a software functional module or a functional unit. The division of the modules or units in the embodiments of the present application is schematic, and is only a logic function division, and there may be another division manner in actual implementation
As shown in fig. 4, the embodiment of the present application provides a schematic diagram of a possible structure of a GSLB node. The GSLB node 400 comprises: a processing unit 401. Processing unit 401 is used to control and manage the actions of the GSLB node, e.g., perform S302, S304 in fig. 3, and/or other processes for performing the techniques described herein. The GSLB node may further comprise a storage unit 402 and a communication unit 403, the storage unit 402 is configured to store program codes and data of the GSLB node; the communication unit 403 is configured to support communication between the GSLB node and other network entities, for example, perform S201 and S202 in fig. 2 and 3, and S301 and S303 in fig. 3.
Referring to fig. 5, for another GSLB node 500 provided in the embodiment of the present application, the processing unit 401 may be a processor 501 or a controller in the GSLB node, and the processor 501 or the controller may implement or execute various exemplary logic blocks, modules, and circuits described in conjunction with the disclosure of the present application. The processor 501 or controller may be a central processing unit, general purpose processor, digital signal processor, application specific integrated circuit, field programmable gate array or other programmable logic device, transistor logic, hardware component, or any combination thereof. Which may implement or perform the various illustrative logical blocks, modules, and circuits described in connection with the disclosure. The processor may be a combination that implements a computing function, and may include, for example, a combination of one or more microprocessors, a combination of a Digital Signal Processing (DSP) and a microprocessor, or the like.
The storage unit 402 may be a memory 502 in the GSLB node or the like, and the memory 502 may include a volatile memory, such as a random access memory; the memory 502 may also include non-volatile memory, such as read-only memory, flash memory, a hard disk, or a solid state disk; the memory may also comprise a combination of memories of the kind described above.
The communication unit 403 may be a transceiver, a transceiving circuit or a communication interface 503 in the GSLB node, or the like.
The bus 504 may be an Extended Industry Standard Architecture (EISA) bus or the like. The bus 504 may be divided into an address bus, a data bus, a control bus, and the like. For ease of illustration, only one thick line is shown in FIG. 5, but this is not intended to represent only one bus or type of bus.
Through the above description of the embodiments, it is clear to those skilled in the art that, for convenience and simplicity of description, the foregoing division of the functional modules is merely used as an example, and in practical applications, the above function distribution may be completed by different functional modules according to needs, that is, the internal structure of the device may be divided into different functional modules to complete all or part of the above described functions. For the specific working processes of the system, the apparatus and the unit described above, reference may be made to the corresponding processes in the foregoing method embodiments, and details are not described here again.
The steps of a method or algorithm described in connection with the disclosure herein may be embodied in hardware or in software instructions executed by a processor. The software instructions may consist of corresponding software modules that may be stored in RAM, flash memory, ROM, erasable Programmable Read Only Memory (EPROM), electrically Erasable Programmable Read Only Memory (EEPROM), registers, a hard disk, a removable hard disk, a compact disc read only memory (CD-ROM), or any other form of storage medium known in the art. An exemplary storage medium is coupled to the processor such the processor can read information from, and write information to, the storage medium. Of course, the storage medium may also be integral to the processor. The processor and the storage medium may reside in an Application Specific Integrated Circuit (ASIC). Computer-readable media includes both computer storage media and communication media including any medium that facilitates transfer of a computer program from one place to another. A storage media may be any available media that can be accessed by a general purpose or special purpose computer. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a Read-Only Memory (ROM), an Erasable Programmable Read-Only Memory (EPROM), an optical fiber, a portable Compact Disc Read-Only Memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In embodiments of the present application, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
The above is only an embodiment of the present application, but the scope of the present application is not limited thereto, and any changes or substitutions within the technical scope of the present disclosure should be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (4)

1. A method for accessing services in a content distribution network is applied to a Global Server Load Balancing (GSLB) node, wherein the GSLB node stores an identifier of each service node in the content distribution network and preset information corresponding to each service node, and the preset information is used for representing the performance of the service nodes, and the method comprises the following steps:
the GSLB node receives an access request of a terminal, wherein the access request is used for requesting a preset type service;
the GSLB node determines a target service node according to the stored preset information of at least one service node;
the GSLB node sends the address of the target service node to the terminal, so that the terminal accesses the preset type service provided by the target service node according to the address of the target service node;
the preset information comprises the service quality of the service node;
before the GSLB node sends the address of the target serving node to the terminal, the method further comprises:
the GSLB node receives the service quality of at least one service node sent by the SLB node; the quality of service is determined by the following formula:
Figure FDA0003907439480000011
wherein, qua _ ser is the service quality of the service node, i is the number of the performance index, per i The quantized value of the performance index i corresponding to the service node, and weight is all the performance indexes of the service nodeThe weight of the performance index i is determined, N is the number of the performance indexes corresponding to the service node, and the quantized value is a corresponding preset quantized value when the value of the performance index i corresponding to the service node is within a preset performance index value range;
the GSLB node determining the target service node according to the stored preset information of at least one service node comprises:
in a preset time, the GSLB node determines a service node which is matched with the preset type service and has the highest service quality as the target service node in unscheduled service nodes;
within a preset time period, the GSLB node directs each access request to a different service node, comprising:
sequencing the service quality of each service node, and sequentially scheduling each service node according to the sequencing in a preset time period; according to the service quality from high to low, the service nodes are sorted into a service node three, a service node two and a service node one;
when the first terminal has a first access request, the GSLB node selects a third service node with the highest service quality as a target service node, and the first terminal directly accesses the third service node; in the preset time, when the second terminal initiates a second access request, the GSLB node selects a second service node as a target service node, and the second terminal directly accesses the second service node; within a preset time, when a third terminal has a third access request, the GSLB node selects a first service node as a target service node, and the third terminal directly accesses the first service node; and in the preset time, when the fourth terminal has a fourth access request, the GSLB node selects the third service node as a target service node, and the fourth terminal directly accesses the third service node.
2. The method of claim 1, wherein the preset information comprises status information of a serving node;
before the GSLB node sends the address of the target serving node to the terminal, the method further comprises:
the GSLB node receives the state information of at least one service node sent by a server load balancing SLB node, wherein the state information comprises at least one of the following performance indexes: the method comprises the steps of load rate of service nodes, concurrent access quantity of the service nodes and service types of the service nodes, wherein the concurrent access quantity is the number of access requests aiming at the service nodes in a preset time period.
3. A global server load balancing GSLB node is characterized in that the GSLB node stores an identifier of each service node in a content distribution network and preset information corresponding to each service node, the preset information is used for representing the performance of the service nodes, and the GSLB node comprises:
the system comprises a transceiver and a server, wherein the transceiver is used for receiving an access request of a terminal, and the access request is used for requesting a preset type service;
the processor is used for determining a target service node according to the stored preset information of at least one service node;
the transceiver is further configured to send the address of the target service node to the terminal, so that the terminal accesses the preset type service provided by the target service node according to the address of the target service node;
the preset information comprises the service quality of the service node;
the transceiver is further configured to receive a quality of service of at least one serving node sent by the SLB node; the quality of service is determined by the following formula:
Figure FDA0003907439480000021
wherein, qua _ ser is the service quality of the service node, i is the number of the performance index, per i The method comprises the steps that a quantized value of a performance index i corresponding to a service node is obtained, weight is the weight of the performance index i in all performance indexes of the service node, N is the number of the performance indexes corresponding to the service node, and the quantized value is a corresponding preset quantized value when the value of the performance index i corresponding to the service node is in a preset performance index value range;
the processor, configured to determine a target service node according to stored preset information of at least one service node, includes:
the service node which is matched with the preset type service and has the highest service quality is determined as the target service node in the service nodes which are not scheduled in a preset time;
in a preset time, the GSLB node determines a service node which is matched with the preset type service and has the highest service quality as the target service node in unscheduled service nodes;
within a preset time period, the GSLB node directs each access request to a different service node, comprising:
sequencing the service quality of each service node, and scheduling each service node in sequence according to the sequencing in a preset time period; according to the service quality from high to low, the service nodes are sorted into a service node three, a service node two and a service node one;
when the first terminal has a first access request, the GSLB node selects a third service node with the highest service quality as a target service node, and the first terminal directly accesses the third service node; in the preset time, when the second terminal initiates a second access request, the GSLB node selects a second service node as a target service node, and the second terminal directly accesses the second service node; within the preset time, when a third terminal has a third access request, the GSLB node selects a first service node as a target service node, and the third terminal directly accesses the first service node; and in the preset time, when the fourth terminal has a fourth access request, the GSLB node selects the third service node as a target service node, and the fourth terminal directly accesses the third service node.
4. The GSLB node of claim 3, wherein the preset information comprises status information of a serving node;
the transceiver is further configured to receive status information of at least one serving node sent by a server load balancing SLB node, where the status information includes at least one of the following performance indicators: the method comprises the steps of load rate of service nodes, concurrent access quantity of the service nodes and service types of the service nodes, wherein the concurrent access quantity is the number of access requests aiming at the service nodes in a preset time period.
CN201811208103.1A 2018-10-17 2018-10-17 Method and device for accessing service in content distribution network Active CN111064760B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811208103.1A CN111064760B (en) 2018-10-17 2018-10-17 Method and device for accessing service in content distribution network

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811208103.1A CN111064760B (en) 2018-10-17 2018-10-17 Method and device for accessing service in content distribution network

Publications (2)

Publication Number Publication Date
CN111064760A CN111064760A (en) 2020-04-24
CN111064760B true CN111064760B (en) 2023-02-17

Family

ID=70296975

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811208103.1A Active CN111064760B (en) 2018-10-17 2018-10-17 Method and device for accessing service in content distribution network

Country Status (1)

Country Link
CN (1) CN111064760B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113472888B (en) * 2021-07-07 2024-01-05 挂号网(杭州)科技有限公司 Webpage access method and device, server equipment and storage medium
CN113630457B (en) * 2021-08-02 2023-03-21 北京金山云网络技术有限公司 Task scheduling method and device, computer equipment and storage medium
CN113612841B (en) * 2021-08-02 2023-05-05 北京金山云网络技术有限公司 Task scheduling method, device, computer equipment and storage medium
CN113923216B (en) * 2021-09-29 2023-12-15 阿里巴巴(中国)有限公司 Distributed cluster current limiting system and method and distributed cluster node

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105050125A (en) * 2015-06-23 2015-11-11 武汉虹信通信技术有限责任公司 Method and device for evaluating mobile data service quality oriented to user experience
CN105554046A (en) * 2014-10-29 2016-05-04 中国移动通信集团公司 Scheduling method and apparatus of terminal request for content distribution system, and equipment
CN106101232A (en) * 2016-06-16 2016-11-09 北京思源置地科技有限公司 Load-balancing method and device
CN107613030A (en) * 2017-11-06 2018-01-19 网宿科技股份有限公司 A kind of method and system of processing business request

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101744743B1 (en) * 2010-12-23 2017-06-12 한국전자통신연구원 Method and apparatus for generating security label for scalable contents distribution
US9866623B2 (en) * 2012-08-03 2018-01-09 Beijing Blue I.T. Technologies Co., Ltd. System and method for optimizing inter-node communication in content distribution network
CN106936877B (en) * 2015-12-31 2019-10-25 华为软件技术有限公司 A kind of content distribution method, apparatus and system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105554046A (en) * 2014-10-29 2016-05-04 中国移动通信集团公司 Scheduling method and apparatus of terminal request for content distribution system, and equipment
CN105050125A (en) * 2015-06-23 2015-11-11 武汉虹信通信技术有限责任公司 Method and device for evaluating mobile data service quality oriented to user experience
CN106101232A (en) * 2016-06-16 2016-11-09 北京思源置地科技有限公司 Load-balancing method and device
CN107613030A (en) * 2017-11-06 2018-01-19 网宿科技股份有限公司 A kind of method and system of processing business request

Also Published As

Publication number Publication date
CN111064760A (en) 2020-04-24

Similar Documents

Publication Publication Date Title
CN111064760B (en) Method and device for accessing service in content distribution network
CN108121512B (en) Edge computing service caching method, system and device and readable storage medium
US11071092B2 (en) Response message transmission method and apparatus
CN109451002B (en) CDN node selection method and equipment
KR102382913B1 (en) Method and Apparatus for Wireless Resource Scheduling with Guaranteed QoS in Mobile Communication System
CN110830565B (en) Resource downloading method, device, system, electronic equipment and storage medium
EP3293969A1 (en) Method of terminal-based conference load-balancing, and device and system utilizing same
CN108683722B (en) Data transmission method, ESB platform and client
CN107734511B (en) Network capacity expansion method and access network equipment
CN104918288A (en) Flow sharing method, device and system
CN105791254A (en) Network request processing method, device and terminal
CN114095869B (en) Method, device and system for scheduling multi-access edge computing nodes for terminal
CN110392119B (en) Data transmission method and base station
CN114168351A (en) Resource scheduling method and device, electronic equipment and storage medium
CN113949741A (en) Scheduling method, scheduling device, electronic equipment and storage medium
US11930399B2 (en) Method, device and system for implementing edge computing
EP3932115A1 (en) Network slice selection in a wireless telecommunications network
US8862724B2 (en) Processing apparatus, processing method, and communication system
US8369352B1 (en) Scheduling access terminals via one or more wireless schedulers
KR101719724B1 (en) Resource management system and method, and method for deciding resource price by the same system
CN109246760B (en) Wireless local area network load balancing method based on power control, wireless access device and wireless access equipment
CN105306578A (en) Method and device for storing content
KR20150022385A (en) Method and Apparatus for Controlling Traffic for Reducing Completion Time of Transmitting Data
CN111224761A (en) Uplink scheduling method and device
US20230239727A1 (en) Method for predictively operating a communication network

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant