WO2022183899A1 - Scheduling method, apparatus and system - Google Patents

Scheduling method, apparatus and system Download PDF

Info

Publication number
WO2022183899A1
WO2022183899A1 PCT/CN2022/076174 CN2022076174W WO2022183899A1 WO 2022183899 A1 WO2022183899 A1 WO 2022183899A1 CN 2022076174 W CN2022076174 W CN 2022076174W WO 2022183899 A1 WO2022183899 A1 WO 2022183899A1
Authority
WO
WIPO (PCT)
Prior art keywords
terminal
bandwidth resources
data
server
service
Prior art date
Application number
PCT/CN2022/076174
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 WO2022183899A1 publication Critical patent/WO2022183899A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/12Avoiding congestion; Recovering from congestion
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/50Circuit switching systems, i.e. systems in which the path is physically permanent during the communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0896Bandwidth or capacity management, i.e. automatically increasing or decreasing capacities

Definitions

  • the present application relates to the field of communication technologies, and in particular, to a scheduling method, apparatus, and system.
  • the content delivery network (CDN) system can redirect the user's request to the service node closest to the user, so that the user can obtain the required content nearby, so as to solve the network congestion and improve the response speed of the user's visit to the website .
  • CDN content delivery network
  • the CDN system may include at least two nodes and servers. Wherein, each node of the at least two nodes can inform the server of its own storage capability when it registers with the server.
  • the server can perform resource scheduling according to the storage capacity of each node. Taking node 1 and node 2 as examples, the server stores data 1 in node 1 according to the storage capacity of node 1; node 2 sends a request message to the server to obtain data 1; the server determines that the node closest to node 2 is node 1, and Data 1 is stored in node 1, and the server determines that node 1 is a source node that provides data 1; and, the server obtains data 1 by interacting with node 1, and sends the data 1 to node 2.
  • the source node supports not only the CDN service but also the Internet service.
  • the CDN service of the source node and the Internet service share the upstream bandwidth resources of the source node. The more bandwidth resources the CDN service occupies, the less bandwidth resources the Internet service can use. This will cause network congestion and affect the Internet service of the source node.
  • the present application provides a scheduling method, device and system to avoid network congestion caused by CDN services.
  • an embodiment of the present application provides a scheduling method, and the method may be executed by a first terminal or by a component (such as a processor, a chip, etc.) of the first terminal.
  • the first terminal determines uplink bandwidth resources and bandwidth resources occupied by Internet access services
  • the first terminal stores the first data requested by the second terminal to obtain; and the first terminal sends a first message to the server, the first message It includes information about the bandwidth resource of the CDN service.
  • the bandwidth resource of the CDN service is the difference between the uplink bandwidth resource and the bandwidth resource occupied by the Internet service.
  • the bandwidth resource of the CDN service is used by the server to determine whether to request the first terminal. the first data.
  • the first terminal sends information about the bandwidth resources of the CDN service to the server by determining the uplink bandwidth resources and the bandwidth resources occupied by the Internet access service, where the bandwidth resources of the CDN service are the uplink bandwidth resources and the bandwidth occupied by the Internet access service.
  • the difference between the resources so that the server can determine whether to request the first data from the first terminal according to the bandwidth resources of the CDN service.
  • the server determines whether to use the first terminal as the source node of the first data according to the bandwidth resources of the CDN service, so as to avoid occupation by the CDN service.
  • the more bandwidth resources available for the first terminal, the less bandwidth resources available for the Internet service, and the resulting network congestion can ensure the normal Internet service of the first terminal.
  • the information about the bandwidth resources of the CDN service may include uplink bandwidth resources and bandwidth resources occupied by the Internet access service.
  • the information about the bandwidth resources of the CDN service may only include the bandwidth resources of the CDN service.
  • the first terminal can send the upstream bandwidth resources and the bandwidth resources occupied by the Internet service to the server, and can also perform a difference calculation between the upstream bandwidth resources and the bandwidth resources occupied by the Internet service to obtain the bandwidth resources of the CDN service, and only The bandwidth resources of the CDN service are sent to the server, which can improve flexibility.
  • the first terminal may be an optical network terminal, and the CDN service and the Internet access service may be borne in the same wide area network WAN.
  • the first terminal determines the uplink bandwidth resource, and may perform a bandwidth test for the first terminal to obtain the uplink bandwidth resource.
  • the first terminal may also be an optical line terminal, and the CDN service and the Internet service may share the same uplink port.
  • the determination of the uplink bandwidth resource by the first terminal may be that the first terminal obtains the uplink bandwidth resource by reading the bandwidth resource of the uplink port.
  • an embodiment of the present application provides a scheduling method, and the method may be executed by a server or by a component of the server (such as a processor, a chip, etc.).
  • the server may receive a first message from the first terminal, the first terminal stores the first data, and the first message includes information about the bandwidth resources of the CDN service, and the bandwidth resources of the CDN service may be the first The difference between the uplink bandwidth resources of the terminal and the bandwidth resources occupied by the Internet service of the first terminal, and receiving the first request message from the second terminal, the first request message is used to request to obtain the first data; Information about the bandwidth resources of the CDN service determines whether to request the first data from the first terminal.
  • the information about the bandwidth resources of the CDN service may include the uplink bandwidth resources and the bandwidth resources occupied by the Internet service; or, the information about the bandwidth resources of the CDN service may only include the bandwidth resources of the CDN service.
  • the first terminal may be an optical network terminal, and the CDN service and the Internet service may be carried in the same wide area network WAN.
  • the uplink bandwidth resource may be obtained by performing a bandwidth test on the first terminal.
  • the first terminal may also be an optical line terminal, and the CDN service and the Internet service may share the same uplink port.
  • the uplink bandwidth resource may be obtained by the first terminal by reading the bandwidth resource of the uplink port.
  • the method may further include: determining the bandwidth resource of the CDN service according to the information about the bandwidth resource of the CDN service.
  • the server determines whether to request the first data from the first terminal according to the information about the bandwidth resources of the CDN service.
  • the server determines to request the first data from the first terminal; or, when the bandwidth resources required for transmitting the first data are greater than the bandwidth resources of the CDN service, the server determines not to request the first data from the first terminal.
  • the server can determine whether to use the first terminal as a source node for providing the first data according to the bandwidth resources available for the CDN service of the first terminal. For example, the bandwidth resources required for transmitting the first data are less than or equal to the bandwidth resources of the CDN service, indicating that the bandwidth resources available for the CDN service of the first terminal are sufficient to support the transmission of the first data, and it will not affect the normal operation of the first terminal. Therefore, the server can use the first terminal as a source node for providing the first data. For another example, the bandwidth resources required to transmit the first data are greater than the bandwidth resources of the CDN service, indicating that the bandwidth resources available for the CDN service of the first terminal are insufficient to support the transmission of the first data.
  • the server may not use the first terminal as the source node for providing the first data, but further select other terminals to provide the first data, so as to ensure that the first terminal can provide the first data. normal online business.
  • the method may further include: the server receives the first data from the first terminal; and the server sends a first response message to the second terminal, the The first response message includes first data.
  • an embodiment of the present application provides a scheduling method, and the method may be executed by the first terminal or by a component (such as a processor, or a chip, etc.) of the first terminal.
  • the first terminal can determine the bandwidth resource of the CDN service, and the first terminal stores the first data requested by the second terminal, wherein the CDN service of the first terminal and the Internet service of the first terminal are carried in different In the wide area network WAN; and the first terminal sends a first message to the server, where the first message includes bandwidth resources of the CDN service, and the bandwidth resources of the CDN service can be used by the server to determine whether to request the first data from the first terminal.
  • the CDN service of the first terminal and the Internet service of the first terminal are carried in different WANs, which means that the CDN service of the first terminal is configured with independent bandwidth resources, that is, the bandwidth resources occupied by the CDN service The amount has no impact on the bandwidth resources available for the Internet service of the first terminal.
  • the first terminal can send the available bandwidth resources of the CDN service to the server, so that the server can determine whether to use the first terminal as the first terminal based on the actual available bandwidth resources of the CDN service of the first terminal. source node, thereby avoiding network congestion caused by less bandwidth resources available for CDN services and more bandwidth resources required for transmitting the first data.
  • the first terminal determines the bandwidth resource of the CDN service, and can perform a bandwidth test for the first terminal to obtain the bandwidth resource of the CDN service.
  • an embodiment of the present application provides a communication device, and the communication device can implement the function of the first terminal in the foregoing method design.
  • These functions can be implemented by hardware or by executing corresponding software by hardware.
  • the hardware or software includes one or more units corresponding to the above functions.
  • the communication apparatus may include a processing unit and a communication unit.
  • the processing unit and the communication unit may perform the method provided in any one of the possible designs of the first aspect or the third aspect.
  • an embodiment of the present application provides a communication device, and the communication device can implement the function of the server in the foregoing method design.
  • These functions can be implemented by hardware or by executing corresponding software by hardware.
  • the hardware or software includes one or more units corresponding to the above functions.
  • the communication apparatus may include a processing unit and a communication unit.
  • the processing unit and the communication unit may perform the method provided in any of the possible designs of the second aspect above.
  • an embodiment of the present application provides a communication device, where the device may be a processor.
  • the processor is coupled to a memory for storing programs or instructions that, when executed by the processor, cause the apparatus to perform any one of the first or third aspects described above. method provided in the design.
  • an embodiment of the present application provides a communication apparatus, where the apparatus may be a processor.
  • the processor is coupled to a memory for storing programs or instructions that, when executed by the processor, cause the apparatus to perform any of the possible designs of the second aspect above. provided method.
  • an embodiment of the present application provides a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, and when the computer program runs on a computer, the computer is made to execute the above-mentioned first aspect or the method provided in any possible design of the third aspect.
  • an embodiment of the present application provides a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, and when the computer program runs on a computer, the computer is made to execute the second aspect above methods provided in any of the possible designs.
  • an embodiment of the present application provides a computer program product, which, when the computer program product runs on a computer, enables the computer to execute the design provided in any one of the possible designs of the first aspect or the third aspect.
  • an embodiment of the present application provides a computer program product, which, when the computer program product runs on a computer, causes the computer to execute the method provided in any possible design of the second aspect above.
  • an embodiment of the present application provides a communication system, including a communication device for implementing the method provided in any possible design of the first aspect or the third aspect, and a communication device for implementing the second A communication apparatus of the method provided in any of the possible designs of the aspect.
  • FIG. 1 is a schematic diagram of a CDN system to which an embodiment of the application is applicable;
  • FIG. 2 is a schematic diagram of a transmission process of a CDN service in an embodiment of the present application
  • FIG. 3 is a schematic flowchart of a scheduling method provided by an embodiment of the present application.
  • FIG. 4 is a schematic flowchart of another scheduling method provided by an embodiment of the present application.
  • FIG. 5 is a schematic flowchart of still another scheduling method provided by an embodiment of the present application.
  • FIG. 6 is a schematic flowchart of still another scheduling method provided by an embodiment of the present application.
  • FIG. 7 is a schematic structural diagram of a communication device according to an embodiment of the present application.
  • FIG. 8 is a schematic structural diagram of another communication device provided by an embodiment of the present application.
  • FIG. 9 is a schematic structural diagram of still another communication device provided by an embodiment of the present application.
  • FIG. 10 is a schematic structural diagram of still another communication apparatus provided by an embodiment of the present application.
  • the present application provides a scheduling method, device and system, aiming to avoid the problem of network congestion caused by the more bandwidth resources occupied by CDN services and less bandwidth resources occupied by Internet services, and to ensure normal Internet access services of source nodes.
  • the method and the device are based on the same technical concept. Since the principles of the method and the device for solving problems are similar, the embodiments of the device and the method can be referred to each other, and repeated descriptions will not be repeated here.
  • references in this specification to "one embodiment” or “some embodiments” and the like mean that a particular feature, structure, or characteristic described in connection with the embodiment is included in one or more embodiments of the present application.
  • appearances of the phrases “in one embodiment,” “in some embodiments,” “in other embodiments,” “in other embodiments,” etc. in various places in this specification are not necessarily All refer to the same embodiment, but mean “one or more but not all embodiments” unless specifically emphasized otherwise.
  • the terms “including”, “including”, “having” and their variations mean “including but not limited to” unless specifically emphasized otherwise.
  • the CDN system is a strategically deployed system, which can solve the problem of slow response speed for users accessing websites due to small network bandwidth, large user visits, and uneven distribution of network points.
  • the purpose of the CDN system is to add a new network architecture to the existing Internet, and to publish the content of the website to the "edge" of the network closest to the user, so that the user can obtain the desired content nearby and improve the user experience. The responsiveness of visiting websites.
  • FIG. 1 shows a schematic diagram of a CDN system to which this embodiment of the present application is applicable.
  • the CDN system may include a server 110 and at least two nodes.
  • the at least two nodes in FIG. 1 take an optical line terminal (OLT) 121, an OLT 122, an optical network terminal (ONT) 131, an ONT 132, an ONT 133, and an ONT 134 as examples.
  • the ONT may communicate with the server 110 through the OLT.
  • the OLT may act as an intermediary between the server 110 and the ONT. For example, the OLT may forward data received from the server 110 to the ONT as downstream data, and forward data received from the ONT to the server 110 as upstream data.
  • the server 110 may be a cloud server, a global server load balance (GSLB) server, or a global scheduling server, etc.
  • the specific implementation form of the server 110 is not limited in this embodiment of the present application.
  • the server 110 can be used to realize resource allocation between different nodes, so as to ensure that the best node is used to serve the users closest to it, so as to ensure the quality of access.
  • the ONT or OLT
  • the ONT can support Internet services and CDN services.
  • the OLT can also support Internet services and CDN services.
  • the server 110 can pre-store the data 1 in the ONT 131 according to the storage capability of the ONT 131.
  • the server can send a request message to the ONT 131 for obtaining the data 1, and the ONT 131 After receiving the request message, data 1 can be sent to the other node.
  • FIG. 1 is an example and does not limit the CDN system to which the embodiments of the present application are applicable.
  • the CDN system may also include more OLTs or ONTs.
  • the CDN system can be applied not only to the optical communication technical field shown in FIG. 1 , but also to the wireless communication technical field and the like. To facilitate understanding of the embodiments of the present application, the following description takes the CDN system shown in FIG. 1 as an example.
  • ONT 131 and ONT 133 are examples, and briefly introduces the current CDN service transmission process in conjunction with FIG. 2 .
  • the server 110 sends the data 1 to the ONT 131 through the OLT 121.
  • ONT 131 stores data 1.
  • ONT 131 may store data 1 locally.
  • the ONT 133 sends a request message for acquiring the data 1 to the server 110 through the OLT 122.
  • the server 110 receives the request message for obtaining the data 1 from the ONT 133 through the OLT 122, and determines that the ONT 131 is the source node that provides the data 1.
  • the server 110 may determine that the ONT 131 is the node closest to the ONT 133 and storing the data 1 according to a load balancing algorithm or the like. Further, the server 110 can determine that the ONT 131 is the source node that provides the data 1.
  • the source node in the embodiment of the present application may be understood as a node that provides services for other nodes in the CDN system.
  • ONT 131 stores data 1
  • ONT 131 can be the source node that provides data 1 for other nodes
  • OLT 122 stores data 2
  • OLT 122 can also be the source node that provides data 2 for other nodes .
  • S207-S208 The server 110 sends a request message for acquiring the data 1 to the ONT 131 through the OLT 121.
  • the ONT 131 receives the request message for obtaining data 1 from the server 110 through the OLT 121, and sends the data 1 to the ONT 133 through the OLT 121, the server 110, and the OLT 122. So far, the transmission process of the CDN service ends.
  • the server 110 can select the ONT 131 closest to the ONT 133 as the source node, so that the ONT 133 can obtain the required data nearby, which can improve the response speed of the user accessing the website.
  • the source node not only supports CDN services, but may also support other services such as Internet services, and CDN services share uplink bandwidth resources with other services such as Internet services.
  • CDN services share uplink bandwidth resources with other services such as Internet services.
  • the more bandwidth resources the CDN service occupies the less bandwidth resources the Internet service can use, which affects the normal Internet access service of the source node and causes network congestion.
  • the bandwidth resources available for the CDN service of the source node are relatively tight, but the actual bandwidth resources required by the CDN service are more, which will also cause network congestion.
  • an embodiment of the present application provides a scheduling method.
  • the first terminal may send information about the bandwidth resources of the CDN service to the server.
  • the information about the bandwidth resources of the CDN service may include the uplink bandwidth resources and the bandwidth resources occupied by the Internet service, or may also include the CDN service. Service bandwidth resources.
  • the server can determine the actual available bandwidth resources of the CDN service of the first terminal, and determine whether to use the first terminal as the source node for providing data according to the actual available bandwidth resources of the CDN service of the first terminal, so as to avoid the The more bandwidth resources occupied by the CDN service, the less bandwidth resources available for the Internet access service, which causes the problem of network congestion in the Internet access service of the first terminal, thereby ensuring the normal Internet access service of the first terminal.
  • the steps performed by the terminal may also be specifically performed by a module or component inside the terminal (eg, the first terminal or the second terminal), such as It can be executed by a chip or a chip system in the terminal (such as the first terminal or the second terminal); the steps executed by the server can also be executed by a module or component inside the server, for example, it can be executed by a chip or chip in the server.
  • System execution this is not limited in this embodiment of the present application.
  • FIG. 3 shows a schematic flowchart of a scheduling method provided by an embodiment of the present application. This method can be applied to the CDN system shown in FIG. 1 .
  • the first terminal may be the ONT or OLT in FIG. 1
  • the second terminal may be the ONT or OLT in FIG. 1 other than the first terminal
  • the server may be the server 110 in FIG. 1 .
  • the flow of the method can be as follows.
  • S301 The first terminal determines uplink bandwidth resources and bandwidth resources occupied by Internet access services.
  • the first terminal stores the first data requested to be acquired by the second terminal.
  • the first data may be video data, audio data, or pictures, etc.
  • the specific form of the first data is not limited in this embodiment of the present application.
  • the first terminal may register information such as its own internet protocol (IP) address and storage capability to the server, so that the server can manage the storage capability of the first terminal.
  • IP internet protocol
  • the first terminal may acquire and store the first data by sending a request message for acquiring the first data to the server; or, the first terminal may receive and store the first data actively pushed from the server.
  • the server may push the video data of the hot program to the first terminal according to the storage capability of the first terminal.
  • the first terminal may be an ONT or an OLT.
  • the second terminal may be an ONT or an OLT.
  • the first terminal and the second terminal may be two ONTs under the same OLT, for example, the first terminal is ONT 131, and the second terminal is ONT 132;
  • the second terminal may also be two ONTs under different OLTs, for example, the first terminal is ONT 131, and the second terminal is ONT 134; or, both the first terminal and the second terminal may be OLTs, such as the first terminal is OLT 121 , the second terminal is OLT 122; or, the first terminal may be an ONT, and the second terminal may be an OLT, for example, the first terminal is ONT 131, and the second terminal is OLT 121;
  • the terminal may be an ONT, for example, the first terminal is the OLT 121, the second terminal is the ONT 131, and the like.
  • the first terminal may support multiple services such as Internet access services and CDN services.
  • the following description is made by taking the first terminal supporting the Internet access service and the CDN service as an example.
  • the Internet service of the first terminal and the CDN service of the first terminal may be carried in the same wide area network (WAN), or the Internet service of the first terminal and the CDN of the first terminal may be carried in the same wide area network (WAN). Services can also be carried in different WANs.
  • the first terminal is an OLT
  • the Internet access service of the first terminal and the CDN service of the first terminal share the same uplink port or the same uplink port group.
  • the Internet service of the first terminal and the CDN service of the first terminal are carried in the same WAN, which can be understood as the Internet service of the first terminal and the CDN service of the first terminal share the uplink bandwidth resources available to the first terminal (may be It is referred to as the uplink bandwidth resource or uplink bandwidth resource of the first terminal for short).
  • the Internet service of the first terminal and the CDN service of the first terminal are carried in different WANs. It can be understood that the Internet service of the first terminal and the CDN service of the first terminal are respectively configured with independent uplink bandwidth resources. The amount of bandwidth resources occupied by the CDN service of the terminal has no effect on the bandwidth resources available for the Internet service of the first terminal.
  • the operator can configure uplink bandwidth resources for the Internet service and the CDN service respectively.
  • the Internet service of the first terminal and the CDN service of the first terminal share the same uplink port, which can be understood as the Internet service of the first terminal and the CDN service of the first terminal sending uplink data to the server through the same uplink port.
  • the Internet service of the first terminal and the CDN service of the first terminal share the same uplink port group, which can be understood as the Internet service of the first terminal and the CDN service of the first terminal are sent to the server through two uplink ports in the same uplink port group.
  • Send upstream data For example, uplink port group 1 includes uplink port 1, uplink port 2, and uplink port 3.
  • the Internet service of the first terminal sends uplink data to the server through uplink port 1, and the CDN service of the first terminal sends uplink data to the server through uplink port 3.
  • the Internet access service of the first terminal and the CDN service of the first terminal share the same uplink port group.
  • the first terminal may periodically or aperiodically determine its own uplink bandwidth resources and bandwidth resources occupied by Internet access services. For example, the first terminal may determine its own uplink bandwidth resources and bandwidth resources occupied by Internet access services every 10 seconds or every 5 seconds. In this way, the first terminal can send the actual usage of its own bandwidth resources to the server, so that the server determines whether to use the first terminal as a source node for providing the first data according to the actual usage of bandwidth resources of the first terminal.
  • the first terminal is an ONT
  • the Internet service of the first terminal and the CDN service are carried in the same WAN
  • the first terminal can perform a bandwidth test to obtain the uplink bandwidth resources of the first terminal, and use a statistical counter to determine the first terminal's uplink bandwidth resources.
  • the bandwidth resources occupied by the Internet access service of the terminal are counted to obtain the bandwidth resources occupied by the Internet access service of the first terminal.
  • the first terminal may test the communication speed of the first terminal by using a speed testing website such as a speed test (speed test) during idle time, so as to obtain the uplink bandwidth resources of the first terminal.
  • the first terminal is an OLT
  • the Internet service of the first terminal and the CDN service share the same uplink port
  • the first terminal can obtain the uplink bandwidth resources of the first terminal by reading the bandwidth resources of the uplink port, and
  • the bandwidth resources occupied by the Internet access service of the first terminal are counted by the statistical counter, so as to obtain the bandwidth resources occupied by the Internet access service of the first terminal.
  • the first terminal is an ONT, and the Internet access service of the first terminal and the CDN service are carried in different WANs.
  • the first terminal may directly determine the bandwidth resources of the CDN service of the first terminal. Since the Internet service of the first terminal and the CDN service are carried in different WANs, they are configured with independent bandwidth resources, which means that the amount of bandwidth resources occupied by the CDN service of the first terminal has no effect on the Internet service of the first terminal. , therefore, the first terminal may only determine the bandwidth resources of the CDN service of the first terminal. For example, the first terminal may test the communication speed of the first terminal through a speed testing website such as a speed test during idle time to obtain the bandwidth resources of the CDN service of the first terminal.
  • the embodiment of the present application does not limit the sequence in which the first terminal determines the uplink bandwidth resources and determines the bandwidth resources occupied by the Internet access service.
  • the first terminal may simultaneously determine the uplink bandwidth resource and the bandwidth resource occupied by the Internet access service.
  • the first terminal may first determine the uplink bandwidth resource and then determine the bandwidth resource occupied by the Internet access service; for another example, the first terminal may first determine the bandwidth resource occupied by the Internet access service and then determine the uplink bandwidth resource.
  • S302 The first terminal sends a first message to the server. Accordingly, the server receives the first message.
  • the first message may include information about bandwidth resources of the CDN service.
  • the information about the bandwidth resources of the CDN service may include the uplink bandwidth resources of the first terminal and the bandwidth resources occupied by the Internet service of the first terminal; or, the information about the bandwidth resources of the CDN service may only include the CDN service. bandwidth resources.
  • the bandwidth resource of the CDN service can be used by the server to determine whether to request the first data from the first terminal.
  • the bandwidth resource of the CDN service may be the difference between the uplink bandwidth resource of the first terminal and the bandwidth resource occupied by the Internet service of the first terminal. For example, after determining the uplink bandwidth resources and the bandwidth resources occupied by the Internet service, the first terminal may perform a difference calculation on the uplink bandwidth resources and the bandwidth resources occupied by the Internet service to obtain the bandwidth resources of the CDN service.
  • the first terminal can use the uplink bandwidth resources to subtract the bandwidth resources occupied by the Internet service, and then subtract the set threshold to obtain the bandwidth resources of the CDN service, so as to obtain the bandwidth resources of the CDN service. It is ensured that the first terminal can perform the Internet access service and the CDN service in parallel.
  • the set threshold may be specified by a protocol or configured by a server, which is not limited in this embodiment of the present application.
  • the first terminal may periodically or aperiodically send the first message to the server.
  • the first terminal sends the first message to the server every 5 seconds or every 10 seconds.
  • the server can acquire the actual usage of the bandwidth resources of the first terminal, and determine whether to request the first data from the first terminal according to the actual usage of the bandwidth resources of the first terminal, thereby improving the accuracy of resource scheduling.
  • the first terminal when the first terminal is an ONT, and the Internet service of the first terminal and the CDN service are carried in different WANs, in step S302, the first terminal may send the first message to the server, The first message may only include the bandwidth resources of the CDN service.
  • S303 The second terminal sends a first request message to the server.
  • the server receives the first request message.
  • the first request message is used to obtain the first data.
  • the second terminal may be an ONT or an OLT, and the specific form of the second terminal is not limited in this embodiment of the present application.
  • the first terminal may send the first request message to the server through the OLT connected thereto.
  • S304 The server determines whether to request the first terminal for the first data according to the information about the bandwidth resources of the CDN service.
  • the server determines to request the first data from the first terminal according to the information about the bandwidth resources of the CDN service, the content shown in steps S305 to S307 is executed; otherwise, the process ends.
  • the server may determine that the first terminal is the source node that provides the first data according to an algorithm such as load balancing. For example, the server determines that the first terminal is the node that is closest to the second terminal and stores the first data. Further, the server may determine whether to request the first data from the first terminal according to the information about the bandwidth resources of the CDN service, that is, determine whether to use the first terminal as a source node for providing the first data.
  • an algorithm such as load balancing. For example, the server determines that the first terminal is the node that is closest to the second terminal and stores the first data. Further, the server may determine whether to request the first data from the first terminal according to the information about the bandwidth resources of the CDN service, that is, determine whether to use the first terminal as a source node for providing the first data.
  • the server may determine at least one node that stores the first data according to information such as the identifier of the first data, and the at least one node includes the first terminal; the server may use an algorithm such as load balancing to determine the highest priority from the at least one node The node, that is, the first terminal; furthermore, the server may determine whether to request the first data from the first terminal according to the information about the bandwidth resources of the CDN service.
  • the highest priority may refer to the closest distance to the second terminal, etc., which is not limited in this embodiment of the present application.
  • the server may determine the bandwidth resources of the CDN service according to the information about the bandwidth resources of the CDN service.
  • the information about the bandwidth resources of the CDN service includes the uplink bandwidth resources of the first terminal and the bandwidth resources of the Internet service of the first terminal.
  • the information about the bandwidth resources of the CDN service includes the uplink bandwidth resources and the bandwidth resources occupied by the Internet service.
  • the bandwidth resource of the CDN service can be obtained by subtracting the bandwidth resource occupied by the Internet service from the uplink bandwidth resource, and then subtracting the set threshold.
  • the server may determine whether to request the first data from the first terminal according to the information about the bandwidth resources of the CDN service. For example, the server may determine whether to request the first data from the first terminal according to the bandwidth resources of the CDN service. For example, if the bandwidth resources required to transmit the first data are less than or equal to the bandwidth resources of the CDN service, it means that the bandwidth resources available for the CDN service of the first terminal are sufficient to support the transmission of the first data, that is, the first terminal performs the CDN service.
  • the server may determine to request the first data from the first terminal; or, if the transmission of the first data requires The bandwidth resources of the first terminal are larger than the bandwidth resources of the CDN service, which means that the bandwidth resources available for the CDN service of the first terminal are not enough to support the transmission of the first data, that is, when the first terminal performs the CDN service, the first terminal will not be able to access the Internet. If the service affects the service or the configured bandwidth resources of the CDN service cannot support the transmission of the first data, resulting in network congestion, the server may determine not to request the first data from the first terminal.
  • the server may determine other nodes whose priorities (such as distance priority, load priority, etc.) are lower than those of the first terminal and store the first data as The source node that provides the first data, then obtains the first data from the other node, and sends the first data to the second terminal; or, the server can also obtain the first data through the network and send the first data to the second terminal Two terminals.
  • priorities such as distance priority, load priority, etc.
  • S305 The server sends a second request message to the first terminal.
  • the first terminal receives the second request message.
  • the second request message is used to obtain the first data.
  • the server may send the second request message to the first terminal through the OLT connected to the first terminal.
  • S306 The first terminal sends a second response message to the server.
  • the server receives the second response message.
  • the second response message includes the first data.
  • the first terminal may send the second response message to the server through the OLT connected thereto.
  • S307 The server sends a first response message to the second terminal.
  • the second terminal receives the first response message.
  • the first response message includes first data.
  • the server may send the first response message to the second terminal through the OLT connected to the second terminal.
  • the first terminal sends information about the bandwidth resources of the CDN service to the server by determining the uplink bandwidth resources and the bandwidth resources occupied by the Internet access service, where the bandwidth resources of the CDN service are the uplink bandwidth resources and the bandwidth occupied by the Internet access service.
  • the difference between the resources so that the server can determine whether to request the first data from the first terminal according to the bandwidth resources of the CDN service.
  • the server determines whether to use the first terminal as the source node of the first data according to the bandwidth resources of the CDN service, so as to avoid occupation by the CDN service.
  • the more bandwidth resources available for the first terminal, the less bandwidth resources available for the Internet service, and the resulting network congestion can ensure the normal Internet service of the first terminal.
  • FIG. 3 The content shown in FIG. 3 will be described in more detail below with reference to FIG. 1 .
  • FIG. 4 shows a schematic flowchart of a scheduling method provided by an embodiment of the present application.
  • the first terminal may be an ONT, and the CDN service of the first terminal and the Internet service of the first terminal are carried in the same WAN.
  • the method may include the following.
  • the ONT 131 needs to register when connecting to the server 110.
  • the ONT 131 registers with the server 110, the ONT 131 can register its own IP address, storage capability and other information to the server, so that the server can manage the storage capability of the first terminal.
  • the ONT 131 stores the first data, wherein, for the specific implementation process of the ONT 131 acquiring the first data, reference may be made to the relevant content of step S301, which will not be repeated here.
  • the CDN service of the ONT 131 and the Internet service of the ONT 131 are carried in the same WAN, that is, the CDN service of the ONT 131 and the Internet service of the ONT 131 share the upstream bandwidth resources of the ONT 131.
  • the ONT 131 determines uplink bandwidth resources and bandwidth resources occupied by Internet access services.
  • step S402 For the specific implementation process of step S402, reference may be made to the relevant content of step S301, which will not be repeated here.
  • the ONT 131 sends the first message to the server 110 through the OLT 121.
  • the server 110 receives the first message from the ONT 131 through the OLT 121.
  • the first message includes information about bandwidth resources of the CDN service.
  • the information about bandwidth resources of CDN services may include uplink bandwidth resources and bandwidth resources occupied by Internet access services; or, the information about bandwidth resources of CDN services may only include bandwidth resources of CDN services.
  • the ONT 133 sends the first request message to the server 110 through the OLT 122.
  • the server 110 receives the first request message from the ONT 133 through the OLT 122.
  • the first request message is used to request the first data.
  • S405 The server 110 determines that the ONT 131 is the source node that provides the first data.
  • the server 110 determines whether to request the ONT 131 for the first data according to the information about the bandwidth resources of the CDN service.
  • the server 110 may determine to request the first data from the ONT 131, and execute the content shown in steps S407 to S409; otherwise , the server can determine not to request the first data from the ONT 131, and the process ends.
  • step S405 and step S406 reference may be made to the relevant content of step S304, which will not be repeated here.
  • the server 110 sends the second request message to the ONT 131 through the OLT 121.
  • the ONT 131 receives the second request message from the server 110 through the OLT 121.
  • the second request message is used to request the first data.
  • the ONT 131 sends the second response message to the server 110 through the OLT 121.
  • the server 110 receives the second response message from the ONT 131 through the OLT 121.
  • the second response message includes the first data.
  • the server sends a first response message to the ONT 133 through the OLT 122. Accordingly, the ONT 133 receives the first response message from the server 110 through the OLT 122.
  • the first response message includes first data.
  • the CDN service of the ONT 131 and the Internet service of the ONT 131 share the upstream bandwidth resources of the ONT 131, and the ONT 131 sends the information about the bandwidth resources of the CDN service to the server 110, so that the server 110 can
  • the actual available bandwidth resources of the CDN service determine whether to use the ONT 131 as the source node for providing the first data, so as to avoid the fact that the CDN service occupies more bandwidth resources, resulting in less available bandwidth resources for the Internet service, and makes the network congested. problem, it can ensure the normal Internet service of ONT 131.
  • FIG. 5 shows a schematic flowchart of a scheduling method provided by an embodiment of the present application.
  • the first terminal may be an ONT, and the CDN service of the first terminal and the Internet service of the first terminal are carried in different WANs.
  • the method may include the following.
  • S501 The ONT 131 registers with the server 110.
  • the ONT 131 needs to register when connecting to the server 110.
  • the ONT 131 registers with the server 110, it can register its own IP address, storage capability and other information with the server, so that the server can manage the storage capability of the first terminal.
  • the ONT 131 stores the first data, wherein, for the specific implementation process of the ONT 131 acquiring the first data, reference may be made to the relevant content of step S301, which will not be repeated here.
  • the CDN service of the ONT 131 and the Internet service of the ONT 131 are carried in different WANs, that is, the CDN service of the ONT 131 is configured with independent upstream bandwidth resources.
  • the ONT 131 determines the bandwidth resources of the CDN service.
  • step S502 For the specific implementation process of step S502, reference may be made to the relevant content of step S301, which will not be repeated here.
  • the ONT 131 sends the first message to the server 110 through the OLT 121.
  • the server 110 receives the first message from the ONT 131 through the OLT 121.
  • the first message includes bandwidth resources of the CDN service.
  • the ONT 133 sends the first request message to the server 110 through the OLT 122.
  • the server 110 receives the first request message from the ONT 133 through the OLT 122.
  • the first request message is used to request the first data.
  • the server 110 determines that the ONT 131 is the source node that provides the first data.
  • the server 110 determines whether to request the ONT 131 for the first data according to the bandwidth resources of the CDN service.
  • the server 110 may determine to request the first data from the ONT 131, and execute the content shown in steps S507 to S509; Otherwise, the server may determine not to request the first data from the ONT 131, and the process ends.
  • step S505 and step S506 reference may be made to the relevant content of step S304, which will not be repeated here.
  • the server 110 sends a second request message to the ONT 131 through the OLT 121.
  • the ONT 131 receives the second request message from the server 110 through the OLT 121.
  • the second request message is used to request the first data.
  • the ONT 131 sends the second response message to the server 110 through the OLT 121.
  • the server 110 receives the second response message from the ONT 131 through the OLT 121.
  • the second response message includes the first data.
  • the server sends a first response message to the ONT 133 through the OLT 122. Accordingly, the ONT 133 receives the first response message from the server 110 through the OLT 122.
  • the first response message includes first data.
  • the CDN service of the ONT 131 and the Internet service of the ONT 131 are carried in different WANs, that is, the CDN service of the ONT 131 is configured with independent upstream bandwidth resources, and the ONT 131 sends the bandwidth resources of the CDN service to the server 110, so that the server 110 can determine whether to use the ONT 131 as the source node for providing the first data according to the available bandwidth resources of the CDN service of the ONT 131, so as to avoid that the bandwidth resources required by the CDN service are greater than the available bandwidth resources of the CDN service. , causing network congestion.
  • FIG. 6 shows a schematic flowchart of a scheduling method provided by an embodiment of the present application.
  • the first terminal may be an OLT
  • the CDN service of the first terminal and the Internet service of the first terminal share the same uplink port.
  • the method may include the following.
  • the OLT 121 needs to register when connecting to the server 110.
  • information such as its own IP address and storage capability can be registered with the server, so that the server can manage the storage capability of the OLT 121.
  • the OLT 121 stores the first data, wherein, for the specific implementation process of the OLT 121 acquiring the first data, reference may be made to the relevant content of step S301, which will not be repeated here.
  • the CDN service of the OLT 121 and the Internet service of the OLT 121 share the same upstream port, that is, the CDN service of the OLT 121 and the Internet service share the bandwidth resources of the same upstream port.
  • the OLT 121 determines uplink bandwidth resources and bandwidth resources occupied by Internet access services.
  • step S502 For the specific implementation process of step S502, reference may be made to the relevant content of step S301, which will not be repeated here.
  • the OLT 121 sends the first message to the server 110. Accordingly, the server 110 receives the first message from.
  • the first message includes information about bandwidth resources of the CDN service.
  • the information about bandwidth resources of CDN services may include uplink bandwidth resources and bandwidth resources occupied by Internet services; or, the information about bandwidth resources of CDN services may include bandwidth resources of CDN services.
  • the ONT 133 sends the first request message to the server 110 through the OLT 122.
  • the server 110 receives the first request message from the ONT 133 through the OLT 122.
  • the first request message is used to request the first data.
  • the server 110 determines that the OLT 121 is the source node that provides the first data.
  • the server 110 determines whether to request the OLT 121 for the first data according to the information about the bandwidth resources of the CDN service.
  • the server 110 may determine to request the first data from the OLT 121, and execute the content shown in steps S607 to S609; Otherwise, the server may determine not to request the first data from the OLT 121, and the process ends.
  • step S605 and step S606 reference may be made to the relevant content of step S304, which will not be repeated here.
  • the server 110 sends a second request message to the OLT 121. Accordingly, the OLT 121 receives the second request message from the server 110. Wherein, the second request message is used to request the first data.
  • S608 The second response message sent by the OLT 121 to the server 110. Accordingly, the server 110 receives the second response message from the OLT 121. Wherein, the second response message includes the first data.
  • the server sends a first response message to the ONT 133 through the OLT 122. Accordingly, the ONT 133 receives the first response message from the server 110 through the OLT 122.
  • the first response message includes first data.
  • the CDN service of the OLT 121 and the Internet service of the OLT 121 share the upstream bandwidth resources of the same upstream port, and the OLT 121 sends the information about the bandwidth resources of the CDN service to the server 110, so that the server 110 can according to the OLT
  • the actual available bandwidth resources of the CDN service of 121 determine whether to use the OLT 121 as the source node for providing the first data, so as to avoid that the CDN service occupies more bandwidth resources, resulting in less available bandwidth resources for the Internet service, making the network
  • the problem of congestion can ensure the normal Internet service of the OLT 121.
  • the methods provided by the embodiments of the present application are respectively introduced from the perspective of interaction between the first terminal and the server.
  • the first terminal and the server may include hardware structures and/or software modules, and implement the above functions in the form of hardware structures, software modules, or hardware structures plus software modules . Whether one of the above functions is performed in the form of a hardware structure, a software module, or a hardware structure plus a software module depends on the specific application and design constraints of the technical solution.
  • FIG. 7 shows a schematic structural diagram of a communication apparatus 700 .
  • the communication apparatus 700 may be the first terminal in any of the embodiments shown in FIG. 3 to FIG. 6 above, and can implement the function of the first terminal in the method provided by the embodiment of the present application; the communication apparatus 700 may also be capable of An apparatus for enabling a first terminal to implement the function of the first terminal in the method provided by the embodiment of the present application.
  • the communication apparatus 700 may be a hardware structure, a software module, or a hardware structure plus a software module.
  • the communication apparatus 700 may be implemented by a chip system. In this embodiment of the present application, the chip system may be composed of chips, or may include chips and other discrete devices.
  • the communication apparatus 700 may include a processing unit 701 and a communication unit 702 .
  • the communication unit 702 is used for the communication device 700 to communicate with other modules, and it can be a circuit, a device, an interface, a bus, a software module, a transceiver or any other device that can realize communication.
  • the processing unit 701 may be configured to determine uplink bandwidth resources and bandwidth resources occupied by Internet access services, and the communication device 700 stores the first data requested by the second terminal.
  • the communication unit 702 may be configured to send a first message to the server, where the first message includes information about the bandwidth resources of the CDN service, where the bandwidth resources of the CDN service are the difference between the uplink bandwidth resources and the bandwidth resources occupied by the Internet access service , the bandwidth resource of the CDN service is used by the server to determine whether to request the communication device 700 for the first data.
  • the information about the bandwidth resources of the CDN service may include uplink bandwidth resources and bandwidth resources occupied by the Internet access service.
  • the information about the bandwidth resources of the CDN service may only include the bandwidth resources of the CDN service.
  • the communication apparatus 700 may be an optical network terminal, and the CDN service and the Internet access service may be carried in the same wide area network WAN.
  • the processing unit 701 may be specifically configured to perform a bandwidth test to obtain the uplink bandwidth resource.
  • the communication apparatus 700 may be an optical line terminal, and the CDN service and the Internet service may share the same uplink port.
  • the processing unit 701 may be specifically configured to obtain the uplink bandwidth resource by reading the bandwidth resource of the uplink port.
  • the processing unit 701 may be configured to determine the bandwidth resource of the CDN service, and the communication apparatus 700 stores the first data requested to be acquired by the second terminal.
  • the communication unit 702 may be configured to send a first message to the server, where the first message includes bandwidth resources of the CDN service, and the bandwidth resources of the CDN service may be used by the server to determine whether to request the communication apparatus 700 for the first data.
  • the CDN service and the Internet service can be carried in different WANs.
  • the processing unit 701 is specifically configured to perform a bandwidth test to obtain the bandwidth resources of the CDN service.
  • the division of modules in the embodiments of the present application is schematic, and is only a logical function division. In actual implementation, there may be other division methods.
  • the functional modules in the various embodiments of the present application may be integrated into one processing unit. In the device, it can also exist physically alone, or two or more modules can be integrated into one module.
  • the above-mentioned integrated modules can be implemented in the form of hardware, and can also be implemented in the form of software function modules.
  • FIG. 8 shows a communication apparatus 800 provided in an embodiment of the present application, where the communication apparatus 800 may be the first terminal in any of the embodiments shown in FIG. 3 to FIG. The function of the first terminal in the method; the communication apparatus 800 may also be a device capable of supporting the first terminal to implement the function of the first terminal in the method provided by the embodiment of the present application.
  • the communication apparatus 800 may be a chip system.
  • the chip system may be composed of chips, or may include chips and other discrete devices.
  • the above-mentioned communication unit 702 may be a transceiver, and the transceiver may be integrated into the communication interface 810 in the communication device 800 .
  • the communication apparatus 800 may include at least one processor 820, configured to implement or support the communication apparatus 800 to implement the function of the first terminal in the method provided by the embodiment of the present application.
  • the processor 820 may determine the uplink bandwidth resource and the bandwidth resource occupied by the Internet access service. For details, refer to the detailed description in the method example, which will not be repeated here.
  • the processor 820 may determine the bandwidth resource of the CDN service, for details, please refer to the detailed description in the method example, which will not be repeated here.
  • the communication apparatus 800 may further include at least one memory 830 for storing program instructions and/or data.
  • Memory 830 is coupled to processor 820 .
  • the coupling in the embodiments of the present application is an indirect coupling or communication connection between devices, units or modules, which may be in electrical, mechanical or other forms, and is used for information exchange between devices, units or modules.
  • Processor 820 may cooperate with memory 830 .
  • Processor 820 may execute program instructions stored in memory 830 . At least one of the at least one memory may be included in the processor.
  • the communication apparatus 800 may also include a communication interface 810 for communicating with other devices through a transmission medium, so that the devices used in the communication apparatus 800 may communicate with other devices.
  • the communication apparatus 800 is a first terminal, and the other device may be a server.
  • the processor 820 may utilize the communication interface 810 to send and receive data.
  • the communication interface 810 may specifically be a transceiver.
  • the specific connection medium between the communication interface 810 , the processor 820 , and the memory 830 is not limited in the embodiments of the present application.
  • the memory 830, the processor 820, and the communication interface 810 are connected through a bus 840 in FIG. 8.
  • the bus is represented by a thick line in FIG. 8, and the connection between other components is only for schematic illustration. , is not limited.
  • the bus can be divided into an address bus, a data bus, a control bus, and the like. For ease of presentation, only one thick line is used in FIG. 8, but it does not mean that there is only one bus or one type of bus.
  • the processor 820 may be a general-purpose processor, a digital signal processor, an application-specific integrated circuit, a field programmable gate array or other programmable logic device, a discrete gate or transistor logic device, or a discrete hardware component, which can implement Alternatively, each method, step, and logic block diagram disclosed in the embodiments of the present application are executed.
  • a general purpose processor may be a microprocessor or any conventional processor or the like. The steps of the methods disclosed in conjunction with the embodiments of the present application may be directly embodied as executed by a hardware processor, or executed by a combination of hardware and software modules in the processor.
  • the memory 830 may be a non-volatile memory, such as a hard disk drive (HDD) or a solid-state drive (SSD), etc., or a volatile memory (volatile memory), Such as random-access memory (random-access memory, RAM).
  • Memory is, but is not limited to, any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer.
  • the memory in this embodiment of the present application may also be a circuit or any other device capable of implementing a storage function, for storing program instructions and/or data.
  • FIG. 9 shows a schematic structural diagram of a communication apparatus 900 .
  • the communication device 900 may be a server in any one of the embodiments shown in FIG. 3 to FIG. 6 above, and can implement the function of the server in the method provided by the embodiments of the present application; the communication device 900 may also be a server capable of supporting the implementation of this An apparatus for the function of a server in the method provided by the application embodiment.
  • the communication apparatus 900 may be a hardware structure, a software module, or a hardware structure plus a software module.
  • the communication apparatus 900 may be implemented by a chip system. In this embodiment of the present application, the chip system may be composed of chips, or may include chips and other discrete devices.
  • the communication apparatus 900 may include a processing unit 901 and a communication unit 902 .
  • the communication unit 902 is used for the communication device 900 to communicate with other modules, and it can be a circuit, a device, an interface, a bus, a software module, a transceiver or any other device that can realize communication.
  • the communication unit 902 may be configured to receive a first message from a first terminal, where the first terminal stores the first data, and the first message includes information about bandwidth resources of a CDN service, the CDN
  • the bandwidth resource of the service may be the difference between the uplink bandwidth resource of the first terminal and the bandwidth resource occupied by the Internet service of the first terminal, and the first request message from the second terminal is received, where the first request message is used to request Get the first data.
  • the processing unit 901 may be configured to determine whether to request the first terminal for the first data according to the information about the bandwidth resources of the CDN service.
  • the information about the bandwidth resources of the CDN service may include the uplink bandwidth resources and the bandwidth resources occupied by the Internet access service; or, the information about the bandwidth resources of the CDN service may only include the bandwidth resources of the CDN service.
  • the first terminal may be an optical network terminal, and the CDN service and the Internet access service may be carried in the same wide area network WAN.
  • the uplink bandwidth resource may be obtained by performing a bandwidth test on the first terminal.
  • the first terminal may be an optical line terminal, and the CDN service and the Internet service may share the same uplink port.
  • the uplink bandwidth resource may be obtained by the first terminal by reading the bandwidth resource of the uplink port.
  • the processing unit 901 is specifically configured to determine the bandwidth resource of the CDN service according to the information about the bandwidth resource of the CDN service, and in the case that the bandwidth resource required for transmitting the first data is less than or equal to the bandwidth resource of the CDN service, Determine to request the first data from the first terminal; or, determine not to request the first data from the first terminal when the bandwidth resources required for transmitting the first data are greater than the bandwidth resources of the CDN service.
  • the communication unit 902 is further configured to receive the first data from the first terminal; and send a first response message to the second terminal, the first response The message includes first data.
  • the communication unit 902 may be configured to receive a first message from the first terminal, the first terminal stores the first data, the first message includes the bandwidth resources of the CDN service, and receives the first message from the first terminal.
  • the first request message of the second terminal where the first request message is used to request to obtain the first data.
  • the processing unit 901 may be configured to determine whether to request the first data from the first terminal according to the bandwidth resources of the CDN service.
  • the first terminal may be an optical network terminal, and the CDN service and the Internet access service of the first terminal may be carried in different wide area networks WAN.
  • the bandwidth resource of the CDN service is obtained by the bandwidth test performed by the first terminal.
  • the processing unit 901 is specifically configured to determine to request the first data from the first terminal when the bandwidth resource required for transmitting the first data is less than or equal to the bandwidth resource of the CDN service; In the case that the required bandwidth resources are greater than the bandwidth resources of the CDN service, the first data is indeed not requested from the first terminal.
  • the communication unit 902 is further configured to: receive the first data from the first terminal; and send a first response message to the second terminal , the first response message includes the first data.
  • the division of modules in the embodiments of the present application is schematic, and is only a logical function division. In actual implementation, there may be other division methods.
  • the functional modules in the various embodiments of the present application may be integrated into one processing unit. In the device, it can also exist physically alone, or two or more modules can be integrated into one module.
  • the above-mentioned integrated modules can be implemented in the form of hardware or in the form of software function modules.
  • FIG. 10 shows a communication apparatus 1000 provided in an embodiment of the present application, where the communication apparatus 1000 may be a server in any of the embodiments shown in FIG. 3 to FIG. 6 , and can implement the methods provided in the embodiments of the present application.
  • the function of the server; the communication device 1000 may also be a device capable of supporting the server to implement the function of the server in the method provided by the embodiment of the present application.
  • the communication apparatus 1000 may be a chip system.
  • the chip system may be composed of chips, or may include chips and other discrete devices.
  • the above-mentioned communication unit 902 may be a transceiver, and the transceiver may be integrated into the communication interface 1010 in the communication device 1000 .
  • the communication apparatus 1000 may include at least one processor 1020, which is configured to implement or support the communication apparatus 1000 to implement the function of the server in the method provided by the embodiment of this application.
  • the processor 1020 may determine whether to request the first data from the first terminal according to the information about the bandwidth resources of the CDN service. For details, refer to the detailed description in the method example, which will not be repeated here.
  • the processor 1020 may determine whether to request the first data from the first terminal according to the bandwidth resource of the CDN service. For details, refer to the detailed description in the method example, which will not be repeated here.
  • the communication apparatus 1000 may further include at least one memory 1030 for storing program instructions and/or data.
  • Memory 1030 is coupled to processor 1020 .
  • the coupling in the embodiments of the present application is an indirect coupling or communication connection between devices, units or modules, which may be in electrical, mechanical or other forms, and is used for information exchange between devices, units or modules.
  • the processor 1020 may cooperate with the memory 1030 .
  • Processor 1020 may execute program instructions stored in memory 1030 . At least one of the at least one memory may be included in the processor.
  • the communication apparatus 1000 may further include a communication interface 1010 for communicating with other devices through a transmission medium, so that the devices used in the communication apparatus 1000 may communicate with other devices.
  • the communication apparatus 1000 is a server, and the other device may be a first terminal or a second terminal.
  • the processor 1020 may utilize the communication interface 1010 to send and receive data.
  • the communication interface 1010 may specifically be a transceiver.
  • the specific connection medium between the communication interface 1010 , the processor 1020 , and the memory 1030 is not limited in this embodiment of the present application.
  • the memory 1030, the processor 1020, and the communication interface 1010 are connected through a bus 1040 in FIG. 10.
  • the bus is represented by a thick line in FIG. 10, and the connection between other components is only for schematic illustration. , is not limited.
  • the bus can be divided into an address bus, a data bus, a control bus, and the like. For ease of presentation, only one thick line is used in FIG. 10, but it does not mean that there is only one bus or one type of bus.
  • the processor 1020 may be a general-purpose processor, a digital signal processor, an application-specific integrated circuit, a field programmable gate array or other programmable logic device, a discrete gate or transistor logic device, or a discrete hardware component, which can implement Alternatively, each method, step, and logic block diagram disclosed in the embodiments of the present application are executed.
  • a general purpose processor may be a microprocessor or any conventional processor or the like. The steps of the methods disclosed in conjunction with the embodiments of the present application may be directly embodied as executed by a hardware processor, or executed by a combination of hardware and software modules in the processor.
  • the memory 1030 may be a non-volatile memory, such as a hard disk drive (HDD) or a solid-state drive (SSD), etc., or a volatile memory (volatile memory), Such as random-access memory (random-access memory, RAM).
  • Memory is, but is not limited to, any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer.
  • the memory in this embodiment of the present application may also be a circuit or any other device capable of implementing a storage function, for storing program instructions and/or data.
  • Embodiments of the present application further provide a computer-readable storage medium, including instructions, which, when executed on a computer, cause the computer to execute the method executed by the first terminal in the foregoing embodiments.
  • Embodiments of the present application also provide a computer-readable storage medium, including instructions, which, when executed on a computer, cause the computer to execute the method executed by the server in the foregoing embodiments.
  • Embodiments of the present application further provide a computer program product, including instructions, which, when run on a computer, cause the computer to execute the method executed by the first terminal in the foregoing embodiments.
  • Embodiments of the present application also provide a computer program product, including instructions, which, when executed on a computer, cause the computer to execute the method executed by the server in the foregoing embodiments.
  • An embodiment of the present application provides a chip system, where the chip system includes a processor, and may further include a memory, for implementing the function of the first terminal in the foregoing method.
  • the chip system can be composed of chips, and can also include chips and other discrete devices.
  • An embodiment of the present application provides a chip system, where the chip system includes a processor, and may also include a memory, for implementing the function of the server in the foregoing method.
  • the chip system can be composed of chips, and can also include chips and other discrete devices.
  • An embodiment of the present application provides a communication system, where the communication system includes the first terminal and the server in the foregoing embodiments.
  • the methods provided in the embodiments of the present application may be implemented in whole or in part by software, hardware, firmware, or any combination thereof.
  • software When implemented in software, it can be implemented in whole or in part in the form of a computer program product.
  • the computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of the present invention are generated.
  • the computer may be a general purpose computer, a special purpose computer, a computer network, network equipment, user equipment, or other programmable apparatus.
  • the computer instructions may be stored in or transmitted from one computer readable storage medium to another computer readable storage medium, for example, the computer instructions may be downloaded from a website site, computer, server or data center Transmission to another website site, computer, server or data center by means of wired (such as coaxial cable, optical fiber, digital subscriber line, DSL for short) or wireless (such as infrared, wireless, microwave, etc.)
  • a computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. that contains an integration of one or more available media.
  • the available media can be magnetic media (eg, floppy disks, hard disks, magnetic tape), optical media (eg, digital video disc (DVD) for short), or semiconductor media (eg, SSD), and the like.

Landscapes

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

Abstract

Disclosed in the present application are a scheduling method, apparatus and system. In the method, a first terminal determines an uplink bandwidth resource and a bandwidth resource which is occupied by an Internet access service, wherein first data is stored in the first terminal; and the first terminal sends, to a server, information regarding a bandwidth resource for a CDN service, wherein the bandwidth resource for the CDN service is a difference value between the uplink bandwidth resource and the bandwidth resource which is occupied by the Internet access service. In this way, the server can determine, according to the bandwidth resource for the CDN service, whether to request the first data from the first terminal, such that it is possible to prevent the problem of a normal Internet access service of the first terminal being affected by network congestion due to the fact that the more bandwidth resources which are occupied by the CDN service, the fewer the bandwidth resources that the Internet access service can use.

Description

一种调度方法、装置以及系统A scheduling method, device and system
相关申请的交叉引用CROSS-REFERENCE TO RELATED APPLICATIONS
本申请要求在2021年3月4日提交中国专利局、申请号202110241220.3、申请名称为“一种调度方法、装置以及系统”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application filed on March 4, 2021 with the Chinese Patent Office, application number 202110241220.3, and the application title is "a scheduling method, device and system", the entire contents of which are incorporated in this application by reference .
技术领域technical field
本申请涉及通信技术领域,尤其涉及一种调度方法、装置以及系统。The present application relates to the field of communication technologies, and in particular, to a scheduling method, apparatus, and system.
背景技术Background technique
内容分发网络(content delivery network,CDN)系统可以将用户的请求重新导向到离用户最近的服务节点上,以使得用户可以就近获取所需内容,以解决网络拥塞状况,提高用户访问网站的响应速度。The content delivery network (CDN) system can redirect the user's request to the service node closest to the user, so that the user can obtain the required content nearby, so as to solve the network congestion and improve the response speed of the user's visit to the website .
CDN系统中可以包括至少两个节点和服务器。其中,至少两个节点中每个节点在注册到服务器时,可以将自身的存储能力告知给服务器。服务器可以根据每个节点的存储能力进行资源调度。以节点1和节点2为例,服务器根据节点1的存储能力将数据1存储在节点1中;节点2向服务器发送获取数据1的请求消息;服务器确定距离节点2最近的节点为节点1、且节点1中存储数据1,服务器确定节点1为提供数据1的源节点;以及,服务器通过与节点1交互获取数据1,并将该数据1发送给节点2。The CDN system may include at least two nodes and servers. Wherein, each node of the at least two nodes can inform the server of its own storage capability when it registers with the server. The server can perform resource scheduling according to the storage capacity of each node. Taking node 1 and node 2 as examples, the server stores data 1 in node 1 according to the storage capacity of node 1; node 2 sends a request message to the server to obtain data 1; the server determines that the node closest to node 2 is node 1, and Data 1 is stored in node 1, and the server determines that node 1 is a source node that provides data 1; and, the server obtains data 1 by interacting with node 1, and sends the data 1 to node 2.
然而,源节点不仅支持CDN业务还支持上网业务,源节点的CDN业务和上网业务共享该将源节点的上行带宽资源,CDN业务占用的带宽资源越多,上网业务可使用的带宽资源越少,这样就会导致网络拥塞,影响源节点的上网业务。However, the source node supports not only the CDN service but also the Internet service. The CDN service of the source node and the Internet service share the upstream bandwidth resources of the source node. The more bandwidth resources the CDN service occupies, the less bandwidth resources the Internet service can use. This will cause network congestion and affect the Internet service of the source node.
发明内容SUMMARY OF THE INVENTION
本申请提供一种调度方法、装置以及系统,用以避免因CDN业务导致的网络拥塞。The present application provides a scheduling method, device and system to avoid network congestion caused by CDN services.
第一方面,本申请实施例提供一种调度方法,该方法可以由第一终端执行或者由第一终端的部件(如处理器、芯片等)执行。在该方法中,第一终端确定上行带宽资源和上网业务占用的带宽资源,第一终端存储有第二终端请求获取的第一数据;以及第一终端向服务器发送第一消息,该第一消息中包括有关CDN业务的带宽资源的信息,该CDN业务的带宽资源为上行带宽资源与上网业务占用的带宽资源之间的差值,该CDN业务的带宽资源用于服务器确定是否向第一终端请求所述第一数据。In a first aspect, an embodiment of the present application provides a scheduling method, and the method may be executed by a first terminal or by a component (such as a processor, a chip, etc.) of the first terminal. In this method, the first terminal determines uplink bandwidth resources and bandwidth resources occupied by Internet access services, the first terminal stores the first data requested by the second terminal to obtain; and the first terminal sends a first message to the server, the first message It includes information about the bandwidth resource of the CDN service. The bandwidth resource of the CDN service is the difference between the uplink bandwidth resource and the bandwidth resource occupied by the Internet service. The bandwidth resource of the CDN service is used by the server to determine whether to request the first terminal. the first data.
在上述实施例中,第一终端通过确定上行带宽资源和上网业务占用的带宽资源,向服务器发送有关CDN业务的带宽资源的信息,该CDN业务的带宽资源为上行带宽资源与上网业务占用的带宽资源之间的差值,从而服务器可以根据CDN业务的带宽资源确定是否向第一终端请求第一数据。例如,当CDN业务的带宽资源与上网业务共享第一终端的上行带宽资源时,服务器根据该CDN业务的带宽资源确定是否将第一终端作为第一数据的源节点,这样可以避免因CDN业务占用的带宽资源越多,上网业务可使用的带宽资源越少,导致的网络拥塞,能够确保第一终端正常的上网业务。In the above embodiment, the first terminal sends information about the bandwidth resources of the CDN service to the server by determining the uplink bandwidth resources and the bandwidth resources occupied by the Internet access service, where the bandwidth resources of the CDN service are the uplink bandwidth resources and the bandwidth occupied by the Internet access service. The difference between the resources, so that the server can determine whether to request the first data from the first terminal according to the bandwidth resources of the CDN service. For example, when the bandwidth resources of the CDN service and the Internet service share the uplink bandwidth resources of the first terminal, the server determines whether to use the first terminal as the source node of the first data according to the bandwidth resources of the CDN service, so as to avoid occupation by the CDN service. The more bandwidth resources available for the first terminal, the less bandwidth resources available for the Internet service, and the resulting network congestion can ensure the normal Internet service of the first terminal.
在一种可能的设计中,有关CDN业务的带宽资源的信息可以包括上行带宽资源和上 网业务占用的带宽资源。或者,该有关CDN业务的带宽资源的信息可以仅包括CDN业务的带宽资源。In a possible design, the information about the bandwidth resources of the CDN service may include uplink bandwidth resources and bandwidth resources occupied by the Internet access service. Alternatively, the information about the bandwidth resources of the CDN service may only include the bandwidth resources of the CDN service.
通过上述设计,第一终端可以向服务器发送上行带宽资源和上网业务占用的带宽资源,也可以在对上行带宽资源和上网业务占用的带宽资源进行差值运算,得到CDN业务的带宽资源后,仅将该CDN业务的带宽资源发送给服务器,这样可以提高灵活性。Through the above design, the first terminal can send the upstream bandwidth resources and the bandwidth resources occupied by the Internet service to the server, and can also perform a difference calculation between the upstream bandwidth resources and the bandwidth resources occupied by the Internet service to obtain the bandwidth resources of the CDN service, and only The bandwidth resources of the CDN service are sent to the server, which can improve flexibility.
在一种可能的设计中,第一终端可以是光网络终端,CDN业务与上网业务可以承载于同一个广域网WAN中。相应的,第一终端确定上行带宽资源,可以为第一终端进行带宽测试,得到该上行带宽资源。In a possible design, the first terminal may be an optical network terminal, and the CDN service and the Internet access service may be borne in the same wide area network WAN. Correspondingly, the first terminal determines the uplink bandwidth resource, and may perform a bandwidth test for the first terminal to obtain the uplink bandwidth resource.
在另一种可能的设计中,第一终端也可以是光线路终端,CDN业务与上网业务可以共享同一个上行口。相应的,第一终端确定上行带宽资源,可以为第一终端通过读取上行口的带宽资源,得到该上行带宽资源。In another possible design, the first terminal may also be an optical line terminal, and the CDN service and the Internet service may share the same uplink port. Correspondingly, the determination of the uplink bandwidth resource by the first terminal may be that the first terminal obtains the uplink bandwidth resource by reading the bandwidth resource of the uplink port.
第二方面,本申请实施例提供一种调度方法,该方法可以由服务器执行或者由服务器的部件(如处理器、芯片等)执行。在该方法中,服务器可以接收来自第一终端的第一消息,第一终端存储有第一数据,第一消息中包括有关CDN业务的带宽资源的信息,该CDN业务的带宽资源可以为第一终端的上行带宽资源与第一终端的上网业务占用的带宽资源之间的差值,以及接收来自第二终端的第一请求消息,该第一请求消息用于请求获取第一数据;服务器可以根据有关CDN业务的带宽资源的信息,确定是否向第一终端请求第一数据。In a second aspect, an embodiment of the present application provides a scheduling method, and the method may be executed by a server or by a component of the server (such as a processor, a chip, etc.). In this method, the server may receive a first message from the first terminal, the first terminal stores the first data, and the first message includes information about the bandwidth resources of the CDN service, and the bandwidth resources of the CDN service may be the first The difference between the uplink bandwidth resources of the terminal and the bandwidth resources occupied by the Internet service of the first terminal, and receiving the first request message from the second terminal, the first request message is used to request to obtain the first data; Information about the bandwidth resources of the CDN service determines whether to request the first data from the first terminal.
在一种可能的设计中,有关CDN业务的带宽资源的信息可以包括上行带宽资源和上网业务占用的带宽资源;或者,有关CDN业务的带宽资源的信息可以仅包括CDN业务的带宽资源。In a possible design, the information about the bandwidth resources of the CDN service may include the uplink bandwidth resources and the bandwidth resources occupied by the Internet service; or, the information about the bandwidth resources of the CDN service may only include the bandwidth resources of the CDN service.
在一种可能的设计中,第一终端可以为光网络终端,CDN业务与上网业务可以承载于同一个广域网WAN中。相应的,上行带宽资源可以由第一终端进行带宽测试得到的。In a possible design, the first terminal may be an optical network terminal, and the CDN service and the Internet service may be carried in the same wide area network WAN. Correspondingly, the uplink bandwidth resource may be obtained by performing a bandwidth test on the first terminal.
在另一种可能的设计中,第一终端还可以为光线路终端,CDN业务与上网业务可以共享同一个上行口。相应的,上行带宽资源可以是由第一终端通过读取上行口的带宽资源得到的。In another possible design, the first terminal may also be an optical line terminal, and the CDN service and the Internet service may share the same uplink port. Correspondingly, the uplink bandwidth resource may be obtained by the first terminal by reading the bandwidth resource of the uplink port.
在一种可能的设计中,该方法还可以包括:根据有关CDN业务的带宽资源的信息确定CDN业务的带宽资源。相应的,服务器根据有关CDN业务的带宽资源的信息,确定是否向第一终端请求第一数据,可以为:在传输第一数据所需的带宽资源小于或等于CDN业务的带宽资源的情况下,服务器确定向第一终端请求第一数据;或者,在传输第一数据所需的带宽资源大于CDN业务的带宽资源的情况下,服务器确定不向第一终端请求第一数据。In a possible design, the method may further include: determining the bandwidth resource of the CDN service according to the information about the bandwidth resource of the CDN service. Correspondingly, the server determines whether to request the first data from the first terminal according to the information about the bandwidth resources of the CDN service. The server determines to request the first data from the first terminal; or, when the bandwidth resources required for transmitting the first data are greater than the bandwidth resources of the CDN service, the server determines not to request the first data from the first terminal.
通过上述设计,服务器可以根据第一终端的CDN业务可使用的带宽资源确定是否将第一终端作为提供第一数据的源节点。例如,传输第一数据所需的带宽资源小于或等于CDN业务的带宽资源,说明第一终端的CDN业务可使用的带宽资源足以支持第一数据的传输,也就不会影响第一终端正常的上网业务,所以,服务器可以将第一终端作为提供第一数据的源节点。再例如,传输第一数据所需的带宽资源大于CDN业务的带宽资源,说明第一终端的CDN业务可使用的带宽资源不足以支持第一数据的传输,若坚持第一终端传输第一数据,那么就会影响第一终端正常的上网业务,导致网络拥塞,所以,服务器可以不将第一终端作为提供第一数据的源节点,而是进而选择其他终端提供第一数据,以确 保第一终端正常的上网业务。Through the above design, the server can determine whether to use the first terminal as a source node for providing the first data according to the bandwidth resources available for the CDN service of the first terminal. For example, the bandwidth resources required for transmitting the first data are less than or equal to the bandwidth resources of the CDN service, indicating that the bandwidth resources available for the CDN service of the first terminal are sufficient to support the transmission of the first data, and it will not affect the normal operation of the first terminal. Therefore, the server can use the first terminal as a source node for providing the first data. For another example, the bandwidth resources required to transmit the first data are greater than the bandwidth resources of the CDN service, indicating that the bandwidth resources available for the CDN service of the first terminal are insufficient to support the transmission of the first data. If the first terminal insists on transmitting the first data, Then, the normal Internet access service of the first terminal will be affected, resulting in network congestion. Therefore, the server may not use the first terminal as the source node for providing the first data, but further select other terminals to provide the first data, so as to ensure that the first terminal can provide the first data. normal online business.
在一种可能的设计中,在服务器向第一终端请求第一数据之后,该方法还可以包括:服务器接收来自第一终端的第一数据;以及服务器向第二终端发送第一响应消息,该第一响应消息包括第一数据。In a possible design, after the server requests the first data from the first terminal, the method may further include: the server receives the first data from the first terminal; and the server sends a first response message to the second terminal, the The first response message includes first data.
第三方面,本申请实施例提供一种调度方法,该方法可以由第一终端执行或由第一终端的部件(如处理器、或芯片等)执行。在该方法中,第一终端可以确定CDN业务的带宽资源,第一终端存储有第二终端请求获取的第一数据,其中,第一终端的CDN业务与第一终端的上网业务承载于不同的广域网WAN中;以及第一终端向服务器发送第一消息,该第一消息中包括CDN业务的带宽资源,CDN业务的带宽资源可以用于服务器确定是否向第一终端请求第一数据。In a third aspect, an embodiment of the present application provides a scheduling method, and the method may be executed by the first terminal or by a component (such as a processor, or a chip, etc.) of the first terminal. In this method, the first terminal can determine the bandwidth resource of the CDN service, and the first terminal stores the first data requested by the second terminal, wherein the CDN service of the first terminal and the Internet service of the first terminal are carried in different In the wide area network WAN; and the first terminal sends a first message to the server, where the first message includes bandwidth resources of the CDN service, and the bandwidth resources of the CDN service can be used by the server to determine whether to request the first data from the first terminal.
在上述实施例中,第一终端的CDN业务与第一终端的上网业务承载于不同的WAN中,意味着第一终端的CDN业务配置有独立的带宽资源,也即是CDN业务占用的带宽资源的多少对第一终端的上网业务可使用的带宽资源没有影响。在此情况下,第一终端可以将可使用的CDN业务的带宽资源发送给服务器,这样服务器可以根据第一终端的CDN业务实际可使用的带宽资源确定是否将第一终端作为提供第一数据的源节点,从而可以避免CDN业务可使用的带宽资源较少,而传输第一数据所需的带宽资源较多导致的网络拥塞。In the above embodiment, the CDN service of the first terminal and the Internet service of the first terminal are carried in different WANs, which means that the CDN service of the first terminal is configured with independent bandwidth resources, that is, the bandwidth resources occupied by the CDN service The amount has no impact on the bandwidth resources available for the Internet service of the first terminal. In this case, the first terminal can send the available bandwidth resources of the CDN service to the server, so that the server can determine whether to use the first terminal as the first terminal based on the actual available bandwidth resources of the CDN service of the first terminal. source node, thereby avoiding network congestion caused by less bandwidth resources available for CDN services and more bandwidth resources required for transmitting the first data.
在一种可能的设计中,第一终端确定CDN业务的带宽资源,可以为第一终端进行带宽测试,得到该CDN业务的带宽资源。In a possible design, the first terminal determines the bandwidth resource of the CDN service, and can perform a bandwidth test for the first terminal to obtain the bandwidth resource of the CDN service.
第四方面,本申请实施例提供一种通信装置,该通信装置可以实现上述方法设计中第一终端的功能。这些功能可以通过硬件实现,也可以通过硬件执行相应的软件实现。所述硬件或软件包括一个或多个与上述功能相对应的单元。例如,该通信装置可以包括处理单元和通信单元。处理单元和通信单元可执行上述第一方面或第三方面中任一种可能的设计中所提供的方法。In a fourth aspect, an embodiment of the present application provides a communication device, and the communication device can implement the function of the first terminal in the foregoing method design. These functions can be implemented by hardware or by executing corresponding software by hardware. The hardware or software includes one or more units corresponding to the above functions. For example, the communication apparatus may include a processing unit and a communication unit. The processing unit and the communication unit may perform the method provided in any one of the possible designs of the first aspect or the third aspect.
第五方面,本申请实施例提供一种通信装置,该通信装置可以实现上述方法设计中服务器的功能。这些功能可以通过硬件实现,也可以通过硬件执行相应的软件实现。所述硬件或软件包括一个或多个与上述功能相对应的单元。例如,该通信装置可以包括处理单元和通信单元。处理单元和通信单元可执行上述第二方面中任一种可能的设计中所提供的方法。In a fifth aspect, an embodiment of the present application provides a communication device, and the communication device can implement the function of the server in the foregoing method design. These functions can be implemented by hardware or by executing corresponding software by hardware. The hardware or software includes one or more units corresponding to the above functions. For example, the communication apparatus may include a processing unit and a communication unit. The processing unit and the communication unit may perform the method provided in any of the possible designs of the second aspect above.
第六方面,本申请实施例提供一种通信装置,该装置可以处理器。所述处理器与存储器耦合,所述存储器用于存储程序或指令,当所述程序或指令被所述处理器执行时,使得所述装置执行上述第一方面或第三方面中任一种可能的设计中所提供的方法。In a sixth aspect, an embodiment of the present application provides a communication device, where the device may be a processor. The processor is coupled to a memory for storing programs or instructions that, when executed by the processor, cause the apparatus to perform any one of the first or third aspects described above. method provided in the design.
第七方面,本申请实施例提供一种通信装置,该装置可以处理器。所述处理器与存储器耦合,所述存储器用于存储程序或指令,当所述程序或指令被所述处理器执行时,使得所述装置执行上述第二方面中任一种可能的设计中所提供的方法。In a seventh aspect, an embodiment of the present application provides a communication apparatus, where the apparatus may be a processor. The processor is coupled to a memory for storing programs or instructions that, when executed by the processor, cause the apparatus to perform any of the possible designs of the second aspect above. provided method.
第八方面,本申请实施例提供一种计算机可读存储介质,所述计算机可读存储介质中存储有计算机程序,当所述计算机程序在计算机上运行时,使得所述计算机执行上述第一方面或第三方面中任一种可能的设计中所提供的方法。In an eighth aspect, an embodiment of the present application provides a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, and when the computer program runs on a computer, the computer is made to execute the above-mentioned first aspect or the method provided in any possible design of the third aspect.
第九方面,本申请实施例提供一种计算机可读存储介质,所述计算机可读存储介质中存储有计算机程序,当所述计算机程序在计算机上运行时,使得所述计算机执行上述第二方面中任一种可能的设计中所提供的方法。In a ninth aspect, an embodiment of the present application provides a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, and when the computer program runs on a computer, the computer is made to execute the second aspect above methods provided in any of the possible designs.
第十方面,本申请实施例提供一种计算机程序产品,当所述计算机程序产品在计算机上运行时,使得所述计算机执行上述第一方面或第三方面中任一种可能的设计中所提供的方法。In a tenth aspect, an embodiment of the present application provides a computer program product, which, when the computer program product runs on a computer, enables the computer to execute the design provided in any one of the possible designs of the first aspect or the third aspect. Methods.
第十一方面,本申请实施例提供一种计算机程序产品,当所述计算机程序产品在计算机上运行时,使得所述计算机执行上述第二方面中任一种可能的设计中所提供的方法。In an eleventh aspect, an embodiment of the present application provides a computer program product, which, when the computer program product runs on a computer, causes the computer to execute the method provided in any possible design of the second aspect above.
第十二方面,本申请实施例提供一种通信系统,包括用于实现上述第一方面或第三方面中任一种可能的设计中所提供的方法的通信装置,以及用于实现上述第二方面中任一种可能的设计中所提供的方法的通信装置。In a twelfth aspect, an embodiment of the present application provides a communication system, including a communication device for implementing the method provided in any possible design of the first aspect or the third aspect, and a communication device for implementing the second A communication apparatus of the method provided in any of the possible designs of the aspect.
上述第四方面至第十二方面中任一方面可以达到的技术说明,请参照上述第一方面至第三方面中任一方面中任意可能设计可以达到的效果说明,这里不再重复赘述。For the technical description that can be achieved by any one of the above-mentioned fourth aspect to the twelfth aspect, please refer to the description of the effect that can be achieved by any possible design in any one of the above-mentioned first aspect to the third aspect, which will not be repeated here.
附图说明Description of drawings
图1为本申请实施例适用的一种CDN系统的示意图;FIG. 1 is a schematic diagram of a CDN system to which an embodiment of the application is applicable;
图2为本申请实施例中CDN业务的传输流程示意图;FIG. 2 is a schematic diagram of a transmission process of a CDN service in an embodiment of the present application;
图3为本申请实施例提供的一种调度方法的流程示意图;FIG. 3 is a schematic flowchart of a scheduling method provided by an embodiment of the present application;
图4为本申请实施例提供的另一种调度方法的流程示意图;FIG. 4 is a schematic flowchart of another scheduling method provided by an embodiment of the present application;
图5为本申请实施例提供的再一种调度方法的流程示意图;FIG. 5 is a schematic flowchart of still another scheduling method provided by an embodiment of the present application;
图6为本申请实施例提供的再一种调度方法的流程示意图;FIG. 6 is a schematic flowchart of still another scheduling method provided by an embodiment of the present application;
图7为本申请实施例提供的一种通信装置的结构示意图;FIG. 7 is a schematic structural diagram of a communication device according to an embodiment of the present application;
图8为本申请实施例提供的另一种通信装置的结构示意图;FIG. 8 is a schematic structural diagram of another communication device provided by an embodiment of the present application;
图9为本申请实施例提供的再一种通信装置的结构示意图;FIG. 9 is a schematic structural diagram of still another communication device provided by an embodiment of the present application;
图10为本申请实施例提供的再一种通信装置的结构示意图。FIG. 10 is a schematic structural diagram of still another communication apparatus provided by an embodiment of the present application.
具体实施方式Detailed ways
本申请提供一种调度方法、装置以及系统,旨在避免因CDN业务占用的带宽资源越多,上网业务占用的带宽资源越少,而导致网络拥塞的问题,可以确保源节点的正常上网业务。其中,方法和装置是基于同一技术构思的,由于方法及装置解决问题的原理相似,因此装置与方法的实施例可以相互参见,重复之处不再赘述。The present application provides a scheduling method, device and system, aiming to avoid the problem of network congestion caused by the more bandwidth resources occupied by CDN services and less bandwidth resources occupied by Internet services, and to ensure normal Internet access services of source nodes. The method and the device are based on the same technical concept. Since the principles of the method and the device for solving problems are similar, the embodiments of the device and the method can be referred to each other, and repeated descriptions will not be repeated here.
以下实施例中所使用的术语只是为了描述特定实施例的目的,而并非旨在作为对本申请的限制。如在本申请的说明书和所附权利要求书中所使用的那样,单数表达形式“一个”、“一种”、“所述”、“上述”、“该”和“这一”旨在也包括例如“一个或多个”这种表达形式,除非其上下文中明确地有相反指示。还应当理解,在本申请实施例中,“一个或多个”是指一个、两个或两个以上;“和/或”,描述关联对象的关联关系,表示可以存在三种关系;例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B的情况,其中A、B可以是单数或者复数。字符“/”一般表示前后关联对象是一种“或”的关系。The terms used in the following embodiments are for the purpose of describing particular embodiments only, and are not intended to be limitations of the present application. As used in the specification of this application and the appended claims, the singular expressions "a," "an," "the," "above," "the," and "the" are intended to also Expressions such as "one or more" are included unless the context clearly dictates otherwise. It should also be understood that, in this embodiment of the present application, "one or more" refers to one, two or more; "and/or", which describes the association relationship of associated objects, indicates that there may be three kinds of relationships; for example, A and/or B can mean that A exists alone, A and B exist simultaneously, and B exists independently, wherein A and B can be singular or plural. The character "/" generally indicates that the associated objects are an "or" relationship.
在本说明书中描述的参考“一个实施例”或“一些实施例”等意味着在本申请的一个或多个实施例中包括结合该实施例描述的特定特征、结构或特点。由此,在本说明书中的不同之处出现的语句“在一个实施例中”、“在一些实施例中”、“在其他一些实施例中”、“在另外一些实施例中”等不是必然都参考相同的实施例,而是意味着“一个或多个但不是所有的实施例”,除非是以其他方式另外特别强调。术语“包括”、“包含”、“具有”及它们 的变形都意味着“包括但不限于”,除非是以其他方式另外特别强调。References in this specification to "one embodiment" or "some embodiments" and the like mean that a particular feature, structure, or characteristic described in connection with the embodiment is included in one or more embodiments of the present application. Thus, appearances of the phrases "in one embodiment," "in some embodiments," "in other embodiments," "in other embodiments," etc. in various places in this specification are not necessarily All refer to the same embodiment, but mean "one or more but not all embodiments" unless specifically emphasized otherwise. The terms "including", "including", "having" and their variations mean "including but not limited to" unless specifically emphasized otherwise.
另外,需要理解的是,在本申请的描述中,“第一”、“第二”等词汇,仅用于区分描述的目的,而不能理解为指示或暗示相对重要性,也不能理解为指示或暗示顺序。In addition, it should be understood that in the description of this application, words such as "first" and "second" are only used for the purpose of distinguishing the description, and should not be understood as indicating or implying relative importance, nor should it be understood as indicating or implied order.
下面将结合本申请以下实施例中的附图,对本申请实施例中的技术方案进行详尽描述。The technical solutions in the embodiments of the present application will be described in detail below with reference to the accompanying drawings in the following embodiments of the present application.
CDN系统是一个经过策略性部署后的系统,可以解决因网络带宽小、用户访问量大、网点分布不均而产生的用户访问网站响应速度慢的问题。CDN系统的目的是通过在现有的因特网(internet)中增加一层新的网络架构,将网站的内容发布到最接近用户的网络“边缘”,使用户可以就近取得所需的内容,提高用户访问网站的响应速度。The CDN system is a strategically deployed system, which can solve the problem of slow response speed for users accessing websites due to small network bandwidth, large user visits, and uneven distribution of network points. The purpose of the CDN system is to add a new network architecture to the existing Internet, and to publish the content of the website to the "edge" of the network closest to the user, so that the user can obtain the desired content nearby and improve the user experience. The responsiveness of visiting websites.
图1示出了本申请实施例可以适用的一种CDN系统的示意图。如图1所示,该CDN系统中可以包括服务器110,以及至少两个节点。图1中的至少两个节点以光线路终端(optical line terminal,OLT)121、OLT 122、光网络终端(optical network terminal,ONT)131、ONT 132、ONT 133以及ONT 134为例。其中,ONT可以通过OLT与服务器110进行通信。OLT可以充当服务器110与ONT之间的媒介。例如,OLT可以将从服务器110接收到的数据作为下行数据转发给ONT,以及将从ONT接收到的数据作为上行数据转发给服务器110。FIG. 1 shows a schematic diagram of a CDN system to which this embodiment of the present application is applicable. As shown in FIG. 1 , the CDN system may include a server 110 and at least two nodes. The at least two nodes in FIG. 1 take an optical line terminal (OLT) 121, an OLT 122, an optical network terminal (ONT) 131, an ONT 132, an ONT 133, and an ONT 134 as examples. The ONT may communicate with the server 110 through the OLT. The OLT may act as an intermediary between the server 110 and the ONT. For example, the OLT may forward data received from the server 110 to the ONT as downstream data, and forward data received from the ONT to the server 110 as upstream data.
示例性的,服务器110可以为云端服务器、全局负载均衡(global server load balance,GSLB)服务器或全局调度服务器等,本申请实施例对服务器110的具体实现形式并不限定。服务器110可以用于实现不同节点间的资源调配,保证使用最佳的节点服务离自己最近的用户,从而确保访问质量。例如,ONT(或OLT)将自身的存储能力告知给服务器110,进而服务器110可以对ONT(或OLT)的存储能力进行管理。ONT可以支持上网业务、以及CDN业务等。OLT也可以支持上网业务、以及CDN业务等。例如,服务器110可以根据ONT 131的存储能力将数据1预先存储在ONT 131中,当有其它节点向服务器110请求获取数据1时,服务器可以向ONT 131发送请求获取数据1的请求消息,ONT 131接收到请求消息后可以将数据1发送给该其它节点。Exemplarily, the server 110 may be a cloud server, a global server load balance (GSLB) server, or a global scheduling server, etc. The specific implementation form of the server 110 is not limited in this embodiment of the present application. The server 110 can be used to realize resource allocation between different nodes, so as to ensure that the best node is used to serve the users closest to it, so as to ensure the quality of access. For example, the ONT (or OLT) informs the server 110 of its own storage capability, and then the server 110 can manage the storage capability of the ONT (or OLT). The ONT can support Internet services and CDN services. The OLT can also support Internet services and CDN services. For example, the server 110 can pre-store the data 1 in the ONT 131 according to the storage capability of the ONT 131. When another node requests the server 110 to obtain the data 1, the server can send a request message to the ONT 131 for obtaining the data 1, and the ONT 131 After receiving the request message, data 1 can be sent to the other node.
可以理解的是,图1作为一个示例并不对本申请实施例适用的CDN系统进行限定。例如,CDN系统还可以包括更多的OLT或ONT。再例如,CDN系统不仅可以应用于图1所示的光通信技术领域中,还可以应用于无线通信技术领域等。为了便于理解本申请实施例,下文以图1所示的CDN系统为例进行描述。It can be understood that, FIG. 1 is an example and does not limit the CDN system to which the embodiments of the present application are applicable. For example, the CDN system may also include more OLTs or ONTs. For another example, the CDN system can be applied not only to the optical communication technical field shown in FIG. 1 , but also to the wireless communication technical field and the like. To facilitate understanding of the embodiments of the present application, the following description takes the CDN system shown in FIG. 1 as an example.
下面以ONT 131、ONT 133为例,结合图2对目前CDN业务的传输流程进行简单介绍。The following takes ONT 131 and ONT 133 as examples, and briefly introduces the current CDN service transmission process in conjunction with FIG. 2 .
S201~S202:服务器110通过OLT 121向ONT 131发送数据1。S201-S202: The server 110 sends the data 1 to the ONT 131 through the OLT 121.
S203:ONT 131存储数据1。例如ONT 131可以将数据1存储在本地。S203: ONT 131 stores data 1. For example ONT 131 may store data 1 locally.
S204~S205:ONT 133通过OLT 122向服务器110发送获取数据1的请求消息。S204-S205: The ONT 133 sends a request message for acquiring the data 1 to the server 110 through the OLT 122.
S206:服务器110通过OLT 122接收来自ONT 133的获取数据1的请求消息,确定ONT 131为提供数据1的源节点。S206: The server 110 receives the request message for obtaining the data 1 from the ONT 133 through the OLT 122, and determines that the ONT 131 is the source node that provides the data 1.
示例性的,服务器110可以根据负载均衡算法等,确定ONT 131为距离ONT 133最近的、且存储有数据1的节点。进而服务器110可以确定该ONT 131为提供数据1的源节点。Exemplarily, the server 110 may determine that the ONT 131 is the node closest to the ONT 133 and storing the data 1 according to a load balancing algorithm or the like. Further, the server 110 can determine that the ONT 131 is the source node that provides the data 1.
需要说明的是,本申请实施例中的源节点可以理解为CDN系统中为其它节点提供服务的节点。以图1为例,ONT 131存储有数据1,则ONT 131可以是为其它节点提供数据 1的源节点;OLT 122存储有数据2,则OLT 122也可以是为其它节点提供数据2的源节点。It should be noted that the source node in the embodiment of the present application may be understood as a node that provides services for other nodes in the CDN system. Taking Fig. 1 as an example, ONT 131 stores data 1, then ONT 131 can be the source node that provides data 1 for other nodes; OLT 122 stores data 2, then OLT 122 can also be the source node that provides data 2 for other nodes .
S207~S208:服务器110通过OLT 121向ONT 131发送获取数据1的请求消息。S207-S208: The server 110 sends a request message for acquiring the data 1 to the ONT 131 through the OLT 121.
S209~S212:ONT 131通过OLT 121接收到来自服务器110的获取数据1的请求消息,通过OLT 121、服务器110、以及OLT 122向ONT 133发送数据1。至此,CDN业务的传输流程结束。S209-S212: The ONT 131 receives the request message for obtaining data 1 from the server 110 through the OLT 121, and sends the data 1 to the ONT 133 through the OLT 121, the server 110, and the OLT 122. So far, the transmission process of the CDN service ends.
在图2所示的流程中,服务器110可以选择与ONT 133距离最近的ONT 131作为源节点,使得ONT 133可以就近获取所需的数据,这样可以提高用户访问网站的响应速度。然而,源节点不仅支持CDN业务,还可能支持上网业务等其他业务,CDN业务与上网业务等其他业务共享上行带宽资源。例如,CDN业务占用的带宽资源越多,上网业务可使用的带宽资源就越少,从而会影响源节点的正常上网业务,导致网络拥塞。再例如,源节点的CDN业务可使用的带宽资源本身就比较紧张,而CDN业务实际所需的带宽资源较多,这也会导致网络拥塞。In the process shown in FIG. 2, the server 110 can select the ONT 131 closest to the ONT 133 as the source node, so that the ONT 133 can obtain the required data nearby, which can improve the response speed of the user accessing the website. However, the source node not only supports CDN services, but may also support other services such as Internet services, and CDN services share uplink bandwidth resources with other services such as Internet services. For example, the more bandwidth resources the CDN service occupies, the less bandwidth resources the Internet service can use, which affects the normal Internet access service of the source node and causes network congestion. For another example, the bandwidth resources available for the CDN service of the source node are relatively tight, but the actual bandwidth resources required by the CDN service are more, which will also cause network congestion.
鉴于此,本申请实施例提供一种调度方法。在该方法中,第一终端可以将有关CDN业务的带宽资源的信息发送给服务器,如该有关CDN业务的带宽资源的信息可以包括上行带宽资源和上网业务占用的带宽资源,或者也可以包括CDN业务的带宽资源。这样,服务器就可以确定第一终端的CDN业务实际可使用的带宽资源,以及根据第一终端的CDN业务实际可使用的带宽资源确定是否将第一终端作为提供数据的源节点,从而可以避免因CDN业务占用的带宽资源越多,上网业务可使用的带宽资源越少而导致的第一终端上网业务出现网络拥塞的问题,进而确保第一终端的正常上网业务。In view of this, an embodiment of the present application provides a scheduling method. In this method, the first terminal may send information about the bandwidth resources of the CDN service to the server. For example, the information about the bandwidth resources of the CDN service may include the uplink bandwidth resources and the bandwidth resources occupied by the Internet service, or may also include the CDN service. Service bandwidth resources. In this way, the server can determine the actual available bandwidth resources of the CDN service of the first terminal, and determine whether to use the first terminal as the source node for providing data according to the actual available bandwidth resources of the CDN service of the first terminal, so as to avoid the The more bandwidth resources occupied by the CDN service, the less bandwidth resources available for the Internet access service, which causes the problem of network congestion in the Internet access service of the first terminal, thereby ensuring the normal Internet access service of the first terminal.
需要说明的是,以下各个实施例中,由终端(如第一终端或第二终端)执行的步骤也可以具体由终端(如第一终端或第二终端)内部的一个模块或部件执行,如可以由该终端(如第一终端或第二终端)中的芯片或芯片系统执行;由服务器执行的步骤也可以具体由服务器内部的一个模块或部件执行,如可以由该服务器中的芯片或芯片系统执行;本申请实施例对此并不限定。It should be noted that, in the following embodiments, the steps performed by the terminal (eg, the first terminal or the second terminal) may also be specifically performed by a module or component inside the terminal (eg, the first terminal or the second terminal), such as It can be executed by a chip or a chip system in the terminal (such as the first terminal or the second terminal); the steps executed by the server can also be executed by a module or component inside the server, for example, it can be executed by a chip or chip in the server. System execution; this is not limited in this embodiment of the present application.
图3示出了本申请实施例提供的一种调度方法的流程示意图。该方法可以应用于图1所示的CDN系统中。其中,第一终端可以为图1中的ONT或OLT,第二终端可以为图1中除所述第一终端之外的ONT或OLT,服务器可以为图1中的服务器110。如图3所示,该方法的流程可以如下所示。FIG. 3 shows a schematic flowchart of a scheduling method provided by an embodiment of the present application. This method can be applied to the CDN system shown in FIG. 1 . The first terminal may be the ONT or OLT in FIG. 1 , the second terminal may be the ONT or OLT in FIG. 1 other than the first terminal, and the server may be the server 110 in FIG. 1 . As shown in FIG. 3 , the flow of the method can be as follows.
S301:第一终端确定上行带宽资源和上网业务占用的带宽资源。S301: The first terminal determines uplink bandwidth resources and bandwidth resources occupied by Internet access services.
示例性的,第一终端中存储有第二终端请求获取的第一数据。该第一数据可以是视频数据、音频数据或图片等,本申请实施例对第一数据的具体形式不作限定。例如,第一终端在注册到服务器时,可以将自身的网际互连协议(internet protocol,IP)地址、以及存储能力等信息注册到服务器,以便服务器对第一终端的存储能力进行管理。进一步,第一终端可以通过向服务器发送获取第一数据的请求消息的方式来获取第一数据,并存储;或者,第一终端可以接收来自服务器主动推送的第一数据,并存储。例如,服务器可以根据第一终端的存储能力将热点节目的视频数据推送到第一终端中。Exemplarily, the first terminal stores the first data requested to be acquired by the second terminal. The first data may be video data, audio data, or pictures, etc. The specific form of the first data is not limited in this embodiment of the present application. For example, when the first terminal registers with the server, it may register information such as its own internet protocol (IP) address and storage capability to the server, so that the server can manage the storage capability of the first terminal. Further, the first terminal may acquire and store the first data by sending a request message for acquiring the first data to the server; or, the first terminal may receive and store the first data actively pushed from the server. For example, the server may push the video data of the hot program to the first terminal according to the storage capability of the first terminal.
其中,第一终端可以为ONT,也可以为OLT。第二终端可以为ONT,也可以为OLT。以图1所示的CDN系统为例,第一终端和第二终端可以为同一个OLT下的两个ONT,如第一终端为ONT 131,第二终端为ONT 132;或者,第一终端和第二终端也可以为不同OLT下的两个ONT,如第一终端为ONT 131,第二终端为ONT 134;或者,第一终端和 第二终端可以皆为OLT,如第一终端为OLT 121,第二终端为OLT 122;或者,第一终端可以为ONT,第二终端可以为OLT,如第一终端为ONT 131,第二终端为OLT 121;或者,第一终端可以为OLT,第二终端可以为ONT,如第一终端为OLT 121,第二终端为ONT 131等。The first terminal may be an ONT or an OLT. The second terminal may be an ONT or an OLT. Taking the CDN system shown in FIG. 1 as an example, the first terminal and the second terminal may be two ONTs under the same OLT, for example, the first terminal is ONT 131, and the second terminal is ONT 132; The second terminal may also be two ONTs under different OLTs, for example, the first terminal is ONT 131, and the second terminal is ONT 134; or, both the first terminal and the second terminal may be OLTs, such as the first terminal is OLT 121 , the second terminal is OLT 122; or, the first terminal may be an ONT, and the second terminal may be an OLT, for example, the first terminal is ONT 131, and the second terminal is OLT 121; The terminal may be an ONT, for example, the first terminal is the OLT 121, the second terminal is the ONT 131, and the like.
示例性的,第一终端可以支持上网业务、以及CDN业务等多种业务。为了便于理解本申请实施例,在下文中以第一终端支持上网业务和CDN业务为例进行描述。例如,第一终端为ONT时,第一终端的上网业务和第一终端的CDN业务可以承载于同一个广域网(wide area network,WAN)中,或者第一终端的上网业务和第一终端的CDN业务也可以承载于不同的WAN中。再例如,第一终端为OLT时,第一终端的上网业务和第一终端的CDN业务共享同一个上行口或同一个上行口组。Exemplarily, the first terminal may support multiple services such as Internet access services and CDN services. In order to facilitate understanding of the embodiments of the present application, the following description is made by taking the first terminal supporting the Internet access service and the CDN service as an example. For example, when the first terminal is an ONT, the Internet service of the first terminal and the CDN service of the first terminal may be carried in the same wide area network (WAN), or the Internet service of the first terminal and the CDN of the first terminal may be carried in the same wide area network (WAN). Services can also be carried in different WANs. For another example, when the first terminal is an OLT, the Internet access service of the first terminal and the CDN service of the first terminal share the same uplink port or the same uplink port group.
其中,第一终端的上网业务和第一终端的CDN业务承载于同一个WAN中,可以理解为第一终端的上网业务和第一终端的CDN业务共享第一终端可使用的上行带宽资源(可简称为第一终端的上行带宽资源或上行带宽资源)。第一终端的上网业务和第一终端的CDN业务承载于不同的WAN中,可以理解为第一终端的上网业务和第一终端的CDN业务分别配置有独立的上行带宽资源,也即是第一终端的CDN业务占用的带宽资源的多少对第一终端的上网业务可使用的带宽资源没有影响,如运营商可以为上网业务和CDN业务分别配置上行带宽资源。第一终端的上网业务和第一终端的CDN业务共享同一个上行口,可以理解为第一终端的上网业务和第一终端的CDN业务通过同一个上行口向服务器发送上行数据。第一终端的上网业务和第一终端的CDN业务共享同一个上行口组,可以理解为第一终端的上网业务和第一终端的CDN业务通过同一个上行口组中的两个上行口向服务器发送上行数据。例如,上行口组1包括上行口1、上行口2、上行口3,第一终端的上网业务通过上行口1向服务器发送上行数据,第一终端的CDN业务通过上行口3向服务器发送上行数据,则第一终端的上网业务与第一终端的CDN业务共享同一个上行口组。Wherein, the Internet service of the first terminal and the CDN service of the first terminal are carried in the same WAN, which can be understood as the Internet service of the first terminal and the CDN service of the first terminal share the uplink bandwidth resources available to the first terminal (may be It is referred to as the uplink bandwidth resource or uplink bandwidth resource of the first terminal for short). The Internet service of the first terminal and the CDN service of the first terminal are carried in different WANs. It can be understood that the Internet service of the first terminal and the CDN service of the first terminal are respectively configured with independent uplink bandwidth resources. The amount of bandwidth resources occupied by the CDN service of the terminal has no effect on the bandwidth resources available for the Internet service of the first terminal. For example, the operator can configure uplink bandwidth resources for the Internet service and the CDN service respectively. The Internet service of the first terminal and the CDN service of the first terminal share the same uplink port, which can be understood as the Internet service of the first terminal and the CDN service of the first terminal sending uplink data to the server through the same uplink port. The Internet service of the first terminal and the CDN service of the first terminal share the same uplink port group, which can be understood as the Internet service of the first terminal and the CDN service of the first terminal are sent to the server through two uplink ports in the same uplink port group. Send upstream data. For example, uplink port group 1 includes uplink port 1, uplink port 2, and uplink port 3. The Internet service of the first terminal sends uplink data to the server through uplink port 1, and the CDN service of the first terminal sends uplink data to the server through uplink port 3. , the Internet access service of the first terminal and the CDN service of the first terminal share the same uplink port group.
示例性的,第一终端可以周期性或非周期性的确定自身的上行带宽资源和上网业务占用的带宽资源。例如,第一终端可以每10秒或每5秒等确定自身的上行带宽资源和上网业务占用的带宽资源。这样,第一终端可以将自身的带宽资源实际使用情况发送给服务器,以使得服务器根据第一终端的带宽资源实际使用情况确定是否将第一终端作为提供第一数据的源节点。Exemplarily, the first terminal may periodically or aperiodically determine its own uplink bandwidth resources and bandwidth resources occupied by Internet access services. For example, the first terminal may determine its own uplink bandwidth resources and bandwidth resources occupied by Internet access services every 10 seconds or every 5 seconds. In this way, the first terminal can send the actual usage of its own bandwidth resources to the server, so that the server determines whether to use the first terminal as a source node for providing the first data according to the actual usage of bandwidth resources of the first terminal.
作为一个示例,第一终端为ONT,且第一终端的上网业务与CDN业务承载于同一个WAN中,第一终端可以进行带宽测试得到第一终端的上行带宽资源,以及通过统计计数器对第一终端的上网业务占用的带宽资源进行计数,得到第一终端的上网业务占用的带宽资源。例如,第一终端可以在空闲时间通过速度测试(speed test)等测速网站对第一终端的通信速度进行测试可以得到第一终端的上行带宽资源。As an example, the first terminal is an ONT, and the Internet service of the first terminal and the CDN service are carried in the same WAN, the first terminal can perform a bandwidth test to obtain the uplink bandwidth resources of the first terminal, and use a statistical counter to determine the first terminal's uplink bandwidth resources. The bandwidth resources occupied by the Internet access service of the terminal are counted to obtain the bandwidth resources occupied by the Internet access service of the first terminal. For example, the first terminal may test the communication speed of the first terminal by using a speed testing website such as a speed test (speed test) during idle time, so as to obtain the uplink bandwidth resources of the first terminal.
作为另一个示例,第一终端为OLT,且第一终端的上网业务与CDN业务共享同一个上行口,第一终端可以通过读取该上行口的带宽资源得到第一终端的上行带宽资源,以及通过统计计数器对第一终端的上网业务占用的带宽资源进行计数,得到获取第一终端的上网业务占用的带宽资源。As another example, the first terminal is an OLT, and the Internet service of the first terminal and the CDN service share the same uplink port, the first terminal can obtain the uplink bandwidth resources of the first terminal by reading the bandwidth resources of the uplink port, and The bandwidth resources occupied by the Internet access service of the first terminal are counted by the statistical counter, so as to obtain the bandwidth resources occupied by the Internet access service of the first terminal.
在另一种可能的实现方式中,第一终端为ONT,且第一终端的上网业务与CDN业务承载于不同的WAN中。在步骤S301中,第一终端可以直接确定第一终端的CDN业务的 带宽资源。由于第一终端的上网业务与CDN业务承载于不同的WAN中,两者被配置了独立的带宽资源,意味着第一终端的CDN业务占用的带宽资源的多少对第一终端的上网业务没有影响,所以,第一终端可以仅确定第一终端的CDN业务的带宽资源。例如,第一终端可以在空闲时间通过速度测试等测速网站对第一终端的通信速度进行测试得到第一终端的CDN业务的带宽资源。In another possible implementation manner, the first terminal is an ONT, and the Internet access service of the first terminal and the CDN service are carried in different WANs. In step S301, the first terminal may directly determine the bandwidth resources of the CDN service of the first terminal. Since the Internet service of the first terminal and the CDN service are carried in different WANs, they are configured with independent bandwidth resources, which means that the amount of bandwidth resources occupied by the CDN service of the first terminal has no effect on the Internet service of the first terminal. , therefore, the first terminal may only determine the bandwidth resources of the CDN service of the first terminal. For example, the first terminal may test the communication speed of the first terminal through a speed testing website such as a speed test during idle time to obtain the bandwidth resources of the CDN service of the first terminal.
可以理解的是,本申请实施例对第一终端确定上行带宽资源以及确定上网业务占用的带宽资源的先后顺序并不限定。例如,第一终端可以同时确定上行带宽资源和上网业务占用的带宽资源。例如,第一终端可以先确定上行带宽资源再确定上网业务占用的带宽资源;再例如,第一终端可以先确定上网业务占用的带宽资源再确定上行带宽资源。It can be understood that, the embodiment of the present application does not limit the sequence in which the first terminal determines the uplink bandwidth resources and determines the bandwidth resources occupied by the Internet access service. For example, the first terminal may simultaneously determine the uplink bandwidth resource and the bandwidth resource occupied by the Internet access service. For example, the first terminal may first determine the uplink bandwidth resource and then determine the bandwidth resource occupied by the Internet access service; for another example, the first terminal may first determine the bandwidth resource occupied by the Internet access service and then determine the uplink bandwidth resource.
S302:第一终端向服务器发送第一消息。相应的,服务器接收第一消息。S302: The first terminal sends a first message to the server. Accordingly, the server receives the first message.
其中,第一消息中可以包括有关CDN业务的带宽资源的信息。The first message may include information about bandwidth resources of the CDN service.
示例性的,有关CDN业务的带宽资源的信息中可以包括第一终端的上行带宽资源和第一终端的上网业务占用的带宽资源;或者,有关CDN业务的带宽资源的信息中可以仅包括CDN业务的带宽资源。该CDN业务的带宽资源可以用于服务器确定是否向第一终端请求第一数据。其中,CDN业务的带宽资源可以是第一终端的上行带宽资源与第一终端的上网业务占用的带宽资源的差值。例如,第一终端在确定出上行带宽资源和上网业务占用的带宽资源后,可以对上行带宽资源和上网业务占用的带宽资源进行差值运算,得到该CDN业务的带宽资源。再例如,第一终端在确定出上行带宽资源和上网业务占用的带宽资源后,可以使用上行带宽资源减去上网业务占用的带宽资源,再减去设定阈值得到该CDN业务的带宽资源,以确保第一终端能够并行进行上网业务和CDN业务。其中,设定阈值可以是协议规定的,或服务器配置的等,本申请实施例并不限定。Exemplarily, the information about the bandwidth resources of the CDN service may include the uplink bandwidth resources of the first terminal and the bandwidth resources occupied by the Internet service of the first terminal; or, the information about the bandwidth resources of the CDN service may only include the CDN service. bandwidth resources. The bandwidth resource of the CDN service can be used by the server to determine whether to request the first data from the first terminal. The bandwidth resource of the CDN service may be the difference between the uplink bandwidth resource of the first terminal and the bandwidth resource occupied by the Internet service of the first terminal. For example, after determining the uplink bandwidth resources and the bandwidth resources occupied by the Internet service, the first terminal may perform a difference calculation on the uplink bandwidth resources and the bandwidth resources occupied by the Internet service to obtain the bandwidth resources of the CDN service. For another example, after determining the uplink bandwidth resources and the bandwidth resources occupied by the Internet service, the first terminal can use the uplink bandwidth resources to subtract the bandwidth resources occupied by the Internet service, and then subtract the set threshold to obtain the bandwidth resources of the CDN service, so as to obtain the bandwidth resources of the CDN service. It is ensured that the first terminal can perform the Internet access service and the CDN service in parallel. The set threshold may be specified by a protocol or configured by a server, which is not limited in this embodiment of the present application.
示例性的,第一终端可以周期性或非周期性的向服务器发送第一消息。例如,第一终端每5秒或每10秒向服务器发送第一消息。这样,服务器可以获取第一终端的带宽资源的实际使用情况,并根据第一终端的带宽资源的实际使用情况确定是否向第一终端请求第一数据,提高资源调度的准确性。Exemplarily, the first terminal may periodically or aperiodically send the first message to the server. For example, the first terminal sends the first message to the server every 5 seconds or every 10 seconds. In this way, the server can acquire the actual usage of the bandwidth resources of the first terminal, and determine whether to request the first data from the first terminal according to the actual usage of the bandwidth resources of the first terminal, thereby improving the accuracy of resource scheduling.
在另一种可能的实施方式中,第一终端为ONT,且第一终端的上网业务与CDN业务承载于不同的WAN中时,在步骤S302中,第一终端可以向服务器发送第一消息,该第一消息中可以仅包括CDN业务的带宽资源。In another possible implementation manner, when the first terminal is an ONT, and the Internet service of the first terminal and the CDN service are carried in different WANs, in step S302, the first terminal may send the first message to the server, The first message may only include the bandwidth resources of the CDN service.
S303:第二终端向服务器发送第一请求消息。相应的,服务器接收第一请求消息。S303: The second terminal sends a first request message to the server. Correspondingly, the server receives the first request message.
其中,第一请求消息用于获取第一数据。第二终端可以是ONT,也可以是OLT,本申请实施例对第二终端的具体形式并不限定。例如,第二终端为ONT时,第一终端可以通过与其连接的OLT向服务器发送第一请求消息。Wherein, the first request message is used to obtain the first data. The second terminal may be an ONT or an OLT, and the specific form of the second terminal is not limited in this embodiment of the present application. For example, when the second terminal is an ONT, the first terminal may send the first request message to the server through the OLT connected thereto.
S304:服务器根据有关CDN业务的带宽资源的信息确定是否向第一终端请求第一数据。S304: The server determines whether to request the first terminal for the first data according to the information about the bandwidth resources of the CDN service.
其中,服务器根据有关CDN业务的带宽资源的信息确定向第一终端请求第一数据,则执行步骤S305至步骤S307所示的内容;否则,流程结束。Wherein, if the server determines to request the first data from the first terminal according to the information about the bandwidth resources of the CDN service, the content shown in steps S305 to S307 is executed; otherwise, the process ends.
示例性的,服务器可以根据负载均衡等算法确定第一终端为提供第一数据的源节点,如服务器确定第一终端为与第二终端距离最近、且第一终端存储有第一数据的节点,进而服务器可以根据有关CDN业务的带宽资源的信息确定是否向第一终端请求第一数据,即确定是否将第一终端作为提供第一数据的源节点。例如,服务器可以根据第一数据的标识 等信息确定存储有第一数据的至少一个节点,该至少一个节点中包括第一终端;服务器可以采用负载均衡等算法从该至少一个节点中确定优先级最高的节点,即第一终端;进而服务器可以根据有关CDN业务的带宽资源的信息确定是否向该第一终端请求第一数据。其中,优先级最高可以指与第二终端之间的距离最近等,本申请实施例对此并不限定。Exemplarily, the server may determine that the first terminal is the source node that provides the first data according to an algorithm such as load balancing. For example, the server determines that the first terminal is the node that is closest to the second terminal and stores the first data. Further, the server may determine whether to request the first data from the first terminal according to the information about the bandwidth resources of the CDN service, that is, determine whether to use the first terminal as a source node for providing the first data. For example, the server may determine at least one node that stores the first data according to information such as the identifier of the first data, and the at least one node includes the first terminal; the server may use an algorithm such as load balancing to determine the highest priority from the at least one node The node, that is, the first terminal; furthermore, the server may determine whether to request the first data from the first terminal according to the information about the bandwidth resources of the CDN service. The highest priority may refer to the closest distance to the second terminal, etc., which is not limited in this embodiment of the present application.
示例性的,服务器可以根据有关CDN业务的带宽资源的信息确定CDN业务的带宽资源,如有关CDN业务的带宽资源的信息包括第一终端的上行带宽资源和第一终端的上网业务的带宽资源。例如,有关CDN业务的带宽资源的信息中包括上行带宽资源和上网业务占用的带宽资源,服务器可以对上行带宽资源和上网业务占用的带宽资源进行差值运算得到CDN业务的带宽资;或者,服务器可以将上行带宽资源减去上网业务占用的带宽资源,再减去设定阈值得到该CDN业务的带宽资源。Exemplarily, the server may determine the bandwidth resources of the CDN service according to the information about the bandwidth resources of the CDN service. For example, the information about the bandwidth resources of the CDN service includes the uplink bandwidth resources of the first terminal and the bandwidth resources of the Internet service of the first terminal. For example, the information about the bandwidth resources of the CDN service includes the uplink bandwidth resources and the bandwidth resources occupied by the Internet service. The bandwidth resource of the CDN service can be obtained by subtracting the bandwidth resource occupied by the Internet service from the uplink bandwidth resource, and then subtracting the set threshold.
示例性的,服务器可以根据有关CDN业务的带宽资源的信息确定是否向第一终端请求第一数据。例如,服务器可以根据CDN业务的带宽资源确定是否向第一终端请求第一数据。例如,若传输第一数据需要的带宽资源小于或等于CDN业务的带宽资源,意味着,第一终端的CDN业务可使用的带宽资源足以支持第一数据的传输,也即是第一终端进行CDN业务时不会对第一终端的上网业务造成影响或者配置的CDN业务的带宽资源能够支持第一数据的传输,则服务器可以确定向第一终端请求第一数据;或者,若传输第一数据需要的带宽资源大于CDN业务的带宽资源,意味着,第一终端的CDN业务可使用的带宽资源不足以支持第一数据的传输,也即是第一终端进行CDN业务时会对第一终端的上网业务造成影响或者配置的CDN业务的带宽资源不能够支持第一数据的传输,导致网络拥塞,则服务器可以确定不向第一终端请求第一数据。Exemplarily, the server may determine whether to request the first data from the first terminal according to the information about the bandwidth resources of the CDN service. For example, the server may determine whether to request the first data from the first terminal according to the bandwidth resources of the CDN service. For example, if the bandwidth resources required to transmit the first data are less than or equal to the bandwidth resources of the CDN service, it means that the bandwidth resources available for the CDN service of the first terminal are sufficient to support the transmission of the first data, that is, the first terminal performs the CDN service. When the service does not affect the Internet service of the first terminal or the configured bandwidth resources of the CDN service can support the transmission of the first data, the server may determine to request the first data from the first terminal; or, if the transmission of the first data requires The bandwidth resources of the first terminal are larger than the bandwidth resources of the CDN service, which means that the bandwidth resources available for the CDN service of the first terminal are not enough to support the transmission of the first data, that is, when the first terminal performs the CDN service, the first terminal will not be able to access the Internet. If the service affects the service or the configured bandwidth resources of the CDN service cannot support the transmission of the first data, resulting in network congestion, the server may determine not to request the first data from the first terminal.
作为一个示例,在服务器确定不向第一终端请求第一数据后,服务器可以确定优先级(如距离优先级、负载优先级等)低于第一终端、且存储有第一数据的其他节点作为提供第一数据的源节点,然后从该其它节点中获取第一数据,并将第一数据发送给第二终端;或者,服务器也可以通过网络获取第一数据,并将第一数据发送给第二终端。As an example, after the server determines not to request the first data from the first terminal, the server may determine other nodes whose priorities (such as distance priority, load priority, etc.) are lower than those of the first terminal and store the first data as The source node that provides the first data, then obtains the first data from the other node, and sends the first data to the second terminal; or, the server can also obtain the first data through the network and send the first data to the second terminal Two terminals.
S305:服务器向第一终端发送第二请求消息。相应的,第一终端接收第二请求消息。S305: The server sends a second request message to the first terminal. Correspondingly, the first terminal receives the second request message.
其中,第二请求消息用于获取第一数据。例如,第一终端为ONT时,服务器可以通过与第一终端连接的OLT向第一终端发送第二请求消息。Wherein, the second request message is used to obtain the first data. For example, when the first terminal is an ONT, the server may send the second request message to the first terminal through the OLT connected to the first terminal.
S306:第一终端向服务器发送第二响应消息。相应的,服务器接收第二响应消息。S306: The first terminal sends a second response message to the server. Correspondingly, the server receives the second response message.
其中,第二响应消息中包括第一数据。例如,第一终端为ONT时,第一终端可以通过与其连接的OLT向服务器发送第二响应消息。Wherein, the second response message includes the first data. For example, when the first terminal is an ONT, the first terminal may send the second response message to the server through the OLT connected thereto.
S307:服务器向第二终端发送第一响应消息。相应的,第二终端接收第一响应消息。S307: The server sends a first response message to the second terminal. Correspondingly, the second terminal receives the first response message.
其中,第一响应消息中包括第一数据。例如,第二终端为ONT时,服务器可以通过与第二终端连接的OLT向第二终端发送第一响应消息。The first response message includes first data. For example, when the second terminal is an ONT, the server may send the first response message to the second terminal through the OLT connected to the second terminal.
在上述实施例中,第一终端通过确定上行带宽资源和上网业务占用的带宽资源,向服务器发送有关CDN业务的带宽资源的信息,该CDN业务的带宽资源为上行带宽资源与上网业务占用的带宽资源之间的差值,从而服务器可以根据CDN业务的带宽资源确定是否向第一终端请求第一数据。例如,当CDN业务的带宽资源与上网业务共享第一终端的上行带宽资源时,服务器根据该CDN业务的带宽资源确定是否将第一终端作为第一数据的源节点,这样可以避免因CDN业务占用的带宽资源越多,上网业务可使用的带宽资源越少,导致的网络拥塞,能够确保第一终端正常的上网业务。In the above embodiment, the first terminal sends information about the bandwidth resources of the CDN service to the server by determining the uplink bandwidth resources and the bandwidth resources occupied by the Internet access service, where the bandwidth resources of the CDN service are the uplink bandwidth resources and the bandwidth occupied by the Internet access service. The difference between the resources, so that the server can determine whether to request the first data from the first terminal according to the bandwidth resources of the CDN service. For example, when the bandwidth resources of the CDN service and the Internet service share the uplink bandwidth resources of the first terminal, the server determines whether to use the first terminal as the source node of the first data according to the bandwidth resources of the CDN service, so as to avoid occupation by the CDN service. The more bandwidth resources available for the first terminal, the less bandwidth resources available for the Internet service, and the resulting network congestion can ensure the normal Internet service of the first terminal.
下面结合图1对图3所示的内容进行更为详尽的描述。The content shown in FIG. 3 will be described in more detail below with reference to FIG. 1 .
实施例一Example 1
图4示出了本申请实施例提供的一种调度方法的流程示意图。在图4所示的方法中,第一终端可以为ONT,并且第一终端的CDN业务和第一终端的上网业务承载于同一个WAN中。如图4所示,该方法可以包括如下内容。FIG. 4 shows a schematic flowchart of a scheduling method provided by an embodiment of the present application. In the method shown in FIG. 4 , the first terminal may be an ONT, and the CDN service of the first terminal and the Internet service of the first terminal are carried in the same WAN. As shown in Figure 4, the method may include the following.
S401:ONT 131注册到服务器110。S401: The ONT 131 registers with the server 110.
示例性,ONT 131在连接到服务器110时,需要进行注册。在ONT 131注册到服务器110时,ONT 131可以将自身的IP地址、以及存储能力等信息注册到服务器,以便服务器对第一终端的存储能力进行管理。ONT 131存储有第一数据,其中,ONT 131获取第一数据的具体实施过程可以参考步骤S301的相关内容,在此不再赘述。在本申请实施例中,ONT 131的CDN业务与ONT 131的上网业务承载于同一个WAN中,即ONT 131的CDN业务与ONT 131的上网业务共享ONT 131的上行带宽资源。Illustratively, the ONT 131 needs to register when connecting to the server 110. When the ONT 131 registers with the server 110, the ONT 131 can register its own IP address, storage capability and other information to the server, so that the server can manage the storage capability of the first terminal. The ONT 131 stores the first data, wherein, for the specific implementation process of the ONT 131 acquiring the first data, reference may be made to the relevant content of step S301, which will not be repeated here. In the embodiment of this application, the CDN service of the ONT 131 and the Internet service of the ONT 131 are carried in the same WAN, that is, the CDN service of the ONT 131 and the Internet service of the ONT 131 share the upstream bandwidth resources of the ONT 131.
S402:ONT 131确定上行带宽资源和上网业务占用的带宽资源。S402: The ONT 131 determines uplink bandwidth resources and bandwidth resources occupied by Internet access services.
步骤S402的具体实现过程可以参考步骤S301的相关内容,在此不再赘述。For the specific implementation process of step S402, reference may be made to the relevant content of step S301, which will not be repeated here.
S403:ONT 131通过OLT 121向服务器110发送第一消息。相应的,服务器110通过OLT 121接收来自ONT 131的第一消息。S403: The ONT 131 sends the first message to the server 110 through the OLT 121. Correspondingly, the server 110 receives the first message from the ONT 131 through the OLT 121.
其中,第一消息中包括有关CDN业务的带宽资源的信息。例如,有关CDN业务的带宽资源的信息可以包括上行带宽资源和上网业务占用的带宽资源;或者,该有关CDN业务的带宽资源的信息可以仅包括CDN业务的带宽资源。The first message includes information about bandwidth resources of the CDN service. For example, the information about bandwidth resources of CDN services may include uplink bandwidth resources and bandwidth resources occupied by Internet access services; or, the information about bandwidth resources of CDN services may only include bandwidth resources of CDN services.
S404:ONT 133通过OLT 122向服务器110发送第一请求消息。相应的,服务器110通过OLT 122接收来自ONT 133的第一请求消息。其中,第一请求消息用于请求第一数据。S404: The ONT 133 sends the first request message to the server 110 through the OLT 122. Correspondingly, the server 110 receives the first request message from the ONT 133 through the OLT 122. The first request message is used to request the first data.
S405:服务器110确定ONT 131为提供第一数据的源节点。S405: The server 110 determines that the ONT 131 is the source node that provides the first data.
S406:服务器110根据有关CDN业务的带宽资源的信息确定是否向ONT 131请求第一数据。S406: The server 110 determines whether to request the ONT 131 for the first data according to the information about the bandwidth resources of the CDN service.
示例性的,在传输第一数据需要的带宽资源小于或等于CDN业务的带宽资源的情况下,服务器110可以确定向ONT 131请求第一数据,并执行步骤S407至步骤S409所示的内容;否则,服务器可以确定不向ONT 131请求第一数据,流程结束。Exemplarily, in the case that the bandwidth resource required for transmitting the first data is less than or equal to the bandwidth resource of the CDN service, the server 110 may determine to request the first data from the ONT 131, and execute the content shown in steps S407 to S409; otherwise , the server can determine not to request the first data from the ONT 131, and the process ends.
其中,步骤S405和步骤S406的具体实现过程可参考步骤S304的相关内容,在此不再赘述。For the specific implementation process of step S405 and step S406, reference may be made to the relevant content of step S304, which will not be repeated here.
S407:服务器110通过OLT 121向ONT 131发送第二请求消息。相应的,ONT 131通过OLT 121接收来自服务器110的第二请求消息。其中,第二请求消息用于请求第一数据。S407: The server 110 sends the second request message to the ONT 131 through the OLT 121. Correspondingly, the ONT 131 receives the second request message from the server 110 through the OLT 121. Wherein, the second request message is used to request the first data.
S408:ONT 131通过OLT 121向服务器110发的第二响应消息。相应的,服务器110通过OLT 121接收来自ONT 131的第二响应消息。其中,第二响应消息中包括第一数据。S408: The ONT 131 sends the second response message to the server 110 through the OLT 121. Correspondingly, the server 110 receives the second response message from the ONT 131 through the OLT 121. Wherein, the second response message includes the first data.
S409:服务器通过OLT 122向ONT 133发送第一响应消息。相应的,ONT 133通过OLT 122接收来自服务器110的第一响应消息。其中,第一响应消息中包括第一数据。S409: The server sends a first response message to the ONT 133 through the OLT 122. Accordingly, the ONT 133 receives the first response message from the server 110 through the OLT 122. The first response message includes first data.
在上述实施例一中,ONT 131的CDN业务和ONT 131的上网业务共享ONT 131的上行带宽资源,ONT 131将有关CDN业务的带宽资源的信息发送给服务器110,这样服务器110可以根据ONT 131的CDN业务实际可使用的带宽资源确定是否将ONT 131作为提供第一数据的源节点,从而可以避免因CDN业务占用的带宽资源较多,导致上网业务可使 用的带宽资源较少,使得网络拥塞的问题,可以确保ONT 131正常的上网业务。In the first embodiment, the CDN service of the ONT 131 and the Internet service of the ONT 131 share the upstream bandwidth resources of the ONT 131, and the ONT 131 sends the information about the bandwidth resources of the CDN service to the server 110, so that the server 110 can The actual available bandwidth resources of the CDN service determine whether to use the ONT 131 as the source node for providing the first data, so as to avoid the fact that the CDN service occupies more bandwidth resources, resulting in less available bandwidth resources for the Internet service, and makes the network congested. problem, it can ensure the normal Internet service of ONT 131.
实施例二Embodiment 2
图5示出了本申请实施例提供的一种调度方法的流程示意图。在图5所示的方法中,第一终端可以为ONT,并且第一终端的CDN业务与第一终端的上网业务承载于不同的WAN中。如图5所示,该方法可以包括如下内容。FIG. 5 shows a schematic flowchart of a scheduling method provided by an embodiment of the present application. In the method shown in FIG. 5 , the first terminal may be an ONT, and the CDN service of the first terminal and the Internet service of the first terminal are carried in different WANs. As shown in Figure 5, the method may include the following.
S501:ONT 131注册到服务器110。S501: The ONT 131 registers with the server 110.
示例性,ONT 131在连接到服务器110时,需要进行注册。在ONT 131注册到服务器110时,可以将自身的IP地址、以及存储能力等信息注册到服务器,以便服务器对第一终端的存储能力进行管理。ONT 131存储有第一数据,其中,ONT 131获取第一数据的具体实施过程可以参考步骤S301的相关内容,在此不再赘述。在本申请实施例中,ONT 131的CDN业务与ONT 131的上网业务承载于不同的WAN中,即ONT 131的CDN业务被配置有独立的上行带宽资源。Illustratively, the ONT 131 needs to register when connecting to the server 110. When the ONT 131 registers with the server 110, it can register its own IP address, storage capability and other information with the server, so that the server can manage the storage capability of the first terminal. The ONT 131 stores the first data, wherein, for the specific implementation process of the ONT 131 acquiring the first data, reference may be made to the relevant content of step S301, which will not be repeated here. In the embodiment of the present application, the CDN service of the ONT 131 and the Internet service of the ONT 131 are carried in different WANs, that is, the CDN service of the ONT 131 is configured with independent upstream bandwidth resources.
S502:ONT 131确定CDN业务的带宽资源。S502: The ONT 131 determines the bandwidth resources of the CDN service.
步骤S502的具体实现过程可以参考步骤S301的相关内容,在此不再赘述。For the specific implementation process of step S502, reference may be made to the relevant content of step S301, which will not be repeated here.
S503:ONT 131通过OLT 121向服务器110发送第一消息。相应的,服务器110通过OLT 121接收来自ONT 131的第一消息。其中,第一消息中包括CDN业务的带宽资源。S503: The ONT 131 sends the first message to the server 110 through the OLT 121. Correspondingly, the server 110 receives the first message from the ONT 131 through the OLT 121. The first message includes bandwidth resources of the CDN service.
S504:ONT 133通过OLT 122向服务器110发送第一请求消息。相应的,服务器110通过OLT 122接收来自ONT 133的第一请求消息。其中,第一请求消息用于请求第一数据。S504: The ONT 133 sends the first request message to the server 110 through the OLT 122. Correspondingly, the server 110 receives the first request message from the ONT 133 through the OLT 122. The first request message is used to request the first data.
S505:服务器110确定ONT 131为提供第一数据的源节点。S505: The server 110 determines that the ONT 131 is the source node that provides the first data.
S506:服务器110根据CDN业务的带宽资源确定是否向ONT 131请求第一数据。S506: The server 110 determines whether to request the ONT 131 for the first data according to the bandwidth resources of the CDN service.
示例性的,在传输第一数据所需的带宽资源小于或等于CDN业务的带宽资源的情况下,服务器110可以确定向ONT 131请求第一数据,并执行步骤S507至步骤S509所示的内容;否则,服务器可以确定不向ONT 131请求第一数据,流程结束。Exemplarily, in the case that the bandwidth resource required for transmitting the first data is less than or equal to the bandwidth resource of the CDN service, the server 110 may determine to request the first data from the ONT 131, and execute the content shown in steps S507 to S509; Otherwise, the server may determine not to request the first data from the ONT 131, and the process ends.
其中,步骤S505和步骤S506的具体实现过程可参考步骤S304的相关内容,在此不再赘述。For the specific implementation process of step S505 and step S506, reference may be made to the relevant content of step S304, which will not be repeated here.
S507:服务器110通过OLT 121向ONT 131发送第二请求消息。相应的,ONT 131通过OLT 121接收来自服务器110的第二请求消息。其中,第二请求消息用于请求第一数据。S507: The server 110 sends a second request message to the ONT 131 through the OLT 121. Correspondingly, the ONT 131 receives the second request message from the server 110 through the OLT 121. Wherein, the second request message is used to request the first data.
S508:ONT 131通过OLT 121向服务器110发的第二响应消息。相应的,服务器110通过OLT 121接收来自ONT 131的第二响应消息。其中,第二响应消息中包括第一数据。S508: The ONT 131 sends the second response message to the server 110 through the OLT 121. Correspondingly, the server 110 receives the second response message from the ONT 131 through the OLT 121. Wherein, the second response message includes the first data.
S509:服务器通过OLT 122向ONT 133发送第一响应消息。相应的,ONT 133通过OLT 122接收来自服务器110的第一响应消息。其中,第一响应消息中包括第一数据。S509: The server sends a first response message to the ONT 133 through the OLT 122. Accordingly, the ONT 133 receives the first response message from the server 110 through the OLT 122. The first response message includes first data.
在上述实施例二中,ONT 131的CDN业务和ONT 131的上网业务承载于不同的WAN中,即ONT 131的CDN业务配置有独立的上行带宽资源,ONT 131将CDN业务的带宽资源发送给服务器110,这样服务器110可以根据ONT 131的CDN业务可使用的带宽资源确定是否将ONT 131作为提供第一数据的源节点,从而可以避免因CDN业务所需的带宽资源大于CDN业务可使用的带宽资源,导致网络拥塞的问题。In the second embodiment above, the CDN service of the ONT 131 and the Internet service of the ONT 131 are carried in different WANs, that is, the CDN service of the ONT 131 is configured with independent upstream bandwidth resources, and the ONT 131 sends the bandwidth resources of the CDN service to the server 110, so that the server 110 can determine whether to use the ONT 131 as the source node for providing the first data according to the available bandwidth resources of the CDN service of the ONT 131, so as to avoid that the bandwidth resources required by the CDN service are greater than the available bandwidth resources of the CDN service. , causing network congestion.
实施例三Embodiment 3
图6示出了本申请实施例提供的一种调度方法的流程示意图。在图6所示的方法中,第一终端可以为OLT,并且第一终端的CDN业务与第一终端的上网业务共享同一个上行口。如图6所示,该方法可以包括如下内容。FIG. 6 shows a schematic flowchart of a scheduling method provided by an embodiment of the present application. In the method shown in FIG. 6 , the first terminal may be an OLT, and the CDN service of the first terminal and the Internet service of the first terminal share the same uplink port. As shown in Figure 6, the method may include the following.
S601:OLT 121注册到服务器110。S601: The OLT 121 is registered with the server 110.
示例性,OLT 121在连接到服务器110时,需要进行注册。在OLT 121注册到服务器110时,可以将自身的IP地址、以及存储能力等信息注册到服务器,以便服务器对OLT 121的存储能力进行管理。OLT 121存储有第一数据,其中,OLT 121获取第一数据的具体实施过程可以参考步骤S301的相关内容,在此不再赘述。在本申请实施例中,OLT 121的CDN业务与OLT 121的上网业务共享同一个上行口,即OLT 121的CDN业务与上网业务共享同一个上行口的带宽资源。Illustratively, the OLT 121 needs to register when connecting to the server 110. When the OLT 121 is registered with the server 110, information such as its own IP address and storage capability can be registered with the server, so that the server can manage the storage capability of the OLT 121. The OLT 121 stores the first data, wherein, for the specific implementation process of the OLT 121 acquiring the first data, reference may be made to the relevant content of step S301, which will not be repeated here. In the embodiment of the present application, the CDN service of the OLT 121 and the Internet service of the OLT 121 share the same upstream port, that is, the CDN service of the OLT 121 and the Internet service share the bandwidth resources of the same upstream port.
S602:OLT 121确定上行带宽资源和上网业务占用的带宽资源。S602: The OLT 121 determines uplink bandwidth resources and bandwidth resources occupied by Internet access services.
步骤S502的具体实现过程可以参考步骤S301的相关内容,在此不再赘述。For the specific implementation process of step S502, reference may be made to the relevant content of step S301, which will not be repeated here.
S603:OLT 121向服务器110发送第一消息。相应的,服务器110接收来自的第一消息。S603: The OLT 121 sends the first message to the server 110. Accordingly, the server 110 receives the first message from.
其中,第一消息中包括有关CDN业务的带宽资源的信息。例如,有关CDN业务的带宽资源的信息可以包括上行带宽资源和上网业务占用的带宽资源;或者,该有关CDN业务的带宽资源的信息可以包括CDN业务的带宽资源。The first message includes information about bandwidth resources of the CDN service. For example, the information about bandwidth resources of CDN services may include uplink bandwidth resources and bandwidth resources occupied by Internet services; or, the information about bandwidth resources of CDN services may include bandwidth resources of CDN services.
S604:ONT 133通过OLT 122向服务器110发送第一请求消息。相应的,服务器110通过OLT 122接收来自ONT 133的第一请求消息。其中,第一请求消息用于请求第一数据。S604: The ONT 133 sends the first request message to the server 110 through the OLT 122. Correspondingly, the server 110 receives the first request message from the ONT 133 through the OLT 122. The first request message is used to request the first data.
S605:服务器110确定OLT 121为提供第一数据的源节点。S605: The server 110 determines that the OLT 121 is the source node that provides the first data.
S606:服务器110根据有关CDN业务的带宽资源的信息确定是否向OLT 121请求第一数据。S606: The server 110 determines whether to request the OLT 121 for the first data according to the information about the bandwidth resources of the CDN service.
示例性的,在传输第一数据所需的带宽资源小于或等于CDN业务的带宽资源的情况下,服务器110可以确定向OLT 121请求第一数据,并执行步骤S607至步骤S609所示的内容;否则,服务器可以确定不向OLT 121请求第一数据,流程结束。Exemplarily, in the case that the bandwidth resource required for transmitting the first data is less than or equal to the bandwidth resource of the CDN service, the server 110 may determine to request the first data from the OLT 121, and execute the content shown in steps S607 to S609; Otherwise, the server may determine not to request the first data from the OLT 121, and the process ends.
其中,步骤S605和步骤S606的具体实现过程可参考步骤S304的相关内容,在此不再赘述。For the specific implementation process of step S605 and step S606, reference may be made to the relevant content of step S304, which will not be repeated here.
S607:服务器110向OLT 121发送第二请求消息。相应的,OLT 121接收来自服务器110的第二请求消息。其中,第二请求消息用于请求第一数据。S607: The server 110 sends a second request message to the OLT 121. Accordingly, the OLT 121 receives the second request message from the server 110. Wherein, the second request message is used to request the first data.
S608:OLT 121向服务器110发的第二响应消息。相应的,服务器110接收来自OLT 121的第二响应消息。其中,第二响应消息中包括第一数据。S608: The second response message sent by the OLT 121 to the server 110. Accordingly, the server 110 receives the second response message from the OLT 121. Wherein, the second response message includes the first data.
S609:服务器通过OLT 122向ONT 133发送第一响应消息。相应的,ONT 133通过OLT 122接收来自服务器110的第一响应消息。其中,第一响应消息中包括第一数据。S609: The server sends a first response message to the ONT 133 through the OLT 122. Accordingly, the ONT 133 receives the first response message from the server 110 through the OLT 122. The first response message includes first data.
在上述实施例三中,OLT 121的CDN业务和OLT 121的上网业务共享同一个上行口的上行带宽资源,OLT 121将有关CDN业务的带宽资源的信息发送给服务器110,这样服务器110可以根据OLT 121的CDN业务实际可使用的带宽资源确定是否将OLT 121作为提供第一数据的源节点,从而可以避免因CDN业务占用的带宽资源较多,导致上网业务可使用的带宽资源较少,使得网络拥塞的问题,可以确保OLT 121正常的上网业务。In the above-mentioned third embodiment, the CDN service of the OLT 121 and the Internet service of the OLT 121 share the upstream bandwidth resources of the same upstream port, and the OLT 121 sends the information about the bandwidth resources of the CDN service to the server 110, so that the server 110 can according to the OLT The actual available bandwidth resources of the CDN service of 121 determine whether to use the OLT 121 as the source node for providing the first data, so as to avoid that the CDN service occupies more bandwidth resources, resulting in less available bandwidth resources for the Internet service, making the network The problem of congestion can ensure the normal Internet service of the OLT 121.
上述本申请提供的实施例中,分别从第一终端以及服务器两者之间交互的角度对本申 请实施例提供的方法进行了介绍。为了实现上述本申请实施例提供的方法中的各功能,第一终端、服务器可以包括硬件结构和/或软件模块,以硬件结构、软件模块、或硬件结构加软件模块的形式来实现上述各功能。上述各功能中的某个功能以硬件结构、软件模块、还是硬件结构加软件模块的方式来执行,取决于技术方案的特定应用和设计约束条件。In the above embodiments provided by the present application, the methods provided by the embodiments of the present application are respectively introduced from the perspective of interaction between the first terminal and the server. In order to implement the functions in the methods provided by the above embodiments of the present application, the first terminal and the server may include hardware structures and/or software modules, and implement the above functions in the form of hardware structures, software modules, or hardware structures plus software modules . Whether one of the above functions is performed in the form of a hardware structure, a software module, or a hardware structure plus a software module depends on the specific application and design constraints of the technical solution.
图7示出了一种通信装置700的结构示意图。其中,通信装置700可以是上述图3~图6中任一个所示的实施例中的第一终端,能够实现本申请实施例提供的方法中第一终端的功能;通信装置700也可以是能够支持第一终端实现本申请实施例提供的方法中第一终端的功能的装置。通信装置700可以是硬件结构、软件模块、或硬件结构加软件模块。通信装置700可以由芯片系统实现。本申请实施例中,芯片系统可以由芯片构成,也可以包含芯片和其他分立器件。FIG. 7 shows a schematic structural diagram of a communication apparatus 700 . The communication apparatus 700 may be the first terminal in any of the embodiments shown in FIG. 3 to FIG. 6 above, and can implement the function of the first terminal in the method provided by the embodiment of the present application; the communication apparatus 700 may also be capable of An apparatus for enabling a first terminal to implement the function of the first terminal in the method provided by the embodiment of the present application. The communication apparatus 700 may be a hardware structure, a software module, or a hardware structure plus a software module. The communication apparatus 700 may be implemented by a chip system. In this embodiment of the present application, the chip system may be composed of chips, or may include chips and other discrete devices.
通信装置700可以包括处理单元701和通信单元702。通信单元702用于通信装置700和其它模块进行通信,其可以是电路、器件、接口、总线、软件模块、收发器或者其它任意可以实现通信的装置。The communication apparatus 700 may include a processing unit 701 and a communication unit 702 . The communication unit 702 is used for the communication device 700 to communicate with other modules, and it can be a circuit, a device, an interface, a bus, a software module, a transceiver or any other device that can realize communication.
在一种可能的实现方式中,处理单元701可以用于确定上行带宽资源和上网业务占用的带宽资源,通信装置700存储有第二终端请求获取的第一数据。通信单元702可以用于向服务器发送第一消息,该第一消息中包括有关CDN业务的带宽资源的信息,该CDN业务的带宽资源为上行带宽资源与上网业务占用的带宽资源之间的差值,该CDN业务的带宽资源用于服务器确定是否向通信装置700请求所述第一数据。In a possible implementation manner, the processing unit 701 may be configured to determine uplink bandwidth resources and bandwidth resources occupied by Internet access services, and the communication device 700 stores the first data requested by the second terminal. The communication unit 702 may be configured to send a first message to the server, where the first message includes information about the bandwidth resources of the CDN service, where the bandwidth resources of the CDN service are the difference between the uplink bandwidth resources and the bandwidth resources occupied by the Internet access service , the bandwidth resource of the CDN service is used by the server to determine whether to request the communication device 700 for the first data.
作为一个示例,有关CDN业务的带宽资源的信息可以包括上行带宽资源和上网业务占用的带宽资源。或者,该有关CDN业务的带宽资源的信息可以仅包括CDN业务的带宽资源。As an example, the information about the bandwidth resources of the CDN service may include uplink bandwidth resources and bandwidth resources occupied by the Internet access service. Alternatively, the information about the bandwidth resources of the CDN service may only include the bandwidth resources of the CDN service.
作为一个示例,通信装置700可以是光网络终端,CDN业务与上网业务可以承载于同一个广域网WAN中。处理单元701具体可以用于进行带宽测试,得到该上行带宽资源。As an example, the communication apparatus 700 may be an optical network terminal, and the CDN service and the Internet access service may be carried in the same wide area network WAN. The processing unit 701 may be specifically configured to perform a bandwidth test to obtain the uplink bandwidth resource.
作为另一个示例,通信装置700可以是光线路终端,CDN业务与上网业务可以共享同一个上行口。处理单元701具体可以用于通过读取上行口的带宽资源,得到该上行带宽资源。As another example, the communication apparatus 700 may be an optical line terminal, and the CDN service and the Internet service may share the same uplink port. The processing unit 701 may be specifically configured to obtain the uplink bandwidth resource by reading the bandwidth resource of the uplink port.
在另一种可能的实现方式中,处理单元701可以用于确定CDN业务的带宽资源,通信装置700存储有第二终端请求获取的第一数据。通信单元702可以用于向服务器发送第一消息,该第一消息中包括CDN业务的带宽资源,CDN业务的带宽资源可以用于服务器确定是否向通信装置700请求第一数据。其中,CDN业务与上网业务可以承载于不同的广域网WAN中。处理单元701具体用于进行带宽测试,得到该CDN业务的带宽资源。In another possible implementation manner, the processing unit 701 may be configured to determine the bandwidth resource of the CDN service, and the communication apparatus 700 stores the first data requested to be acquired by the second terminal. The communication unit 702 may be configured to send a first message to the server, where the first message includes bandwidth resources of the CDN service, and the bandwidth resources of the CDN service may be used by the server to determine whether to request the communication apparatus 700 for the first data. Among them, the CDN service and the Internet service can be carried in different WANs. The processing unit 701 is specifically configured to perform a bandwidth test to obtain the bandwidth resources of the CDN service.
其中,上述方法实施例涉及的各步骤的所有相关内容均可以援引到对应功能模块的功能描述,在此不再赘述。Wherein, all relevant contents of the steps involved in the above method embodiments can be cited in the functional descriptions of the corresponding functional modules, which will not be repeated here.
本申请实施例中对模块的划分是示意性的,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,另外,在本申请各个实施例中的各功能模块可以集成在一个处理器中,也可以是单独物理存在,也可以两个或两个以上模块集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。The division of modules in the embodiments of the present application is schematic, and is only a logical function division. In actual implementation, there may be other division methods. In addition, the functional modules in the various embodiments of the present application may be integrated into one processing unit. In the device, it can also exist physically alone, or two or more modules can be integrated into one module. The above-mentioned integrated modules can be implemented in the form of hardware, and can also be implemented in the form of software function modules.
如图8所示为本申请实施例提供的通信装置800,其中,通信装置800可以是图3~图6中任一个所示的实施例中的第一终端,能够实现本申请实施例提供的方法中第一终端的功能;通信装置800也可以是能够支持第一终端实现本申请实施例提供的方法中第一终端 的功能的装置。其中,该通信装置800可以为芯片系统。本申请实施例中,芯片系统可以由芯片构成,也可以包含芯片和其他分立器件。FIG. 8 shows a communication apparatus 800 provided in an embodiment of the present application, where the communication apparatus 800 may be the first terminal in any of the embodiments shown in FIG. 3 to FIG. The function of the first terminal in the method; the communication apparatus 800 may also be a device capable of supporting the first terminal to implement the function of the first terminal in the method provided by the embodiment of the present application. Wherein, the communication apparatus 800 may be a chip system. In this embodiment of the present application, the chip system may be composed of chips, or may include chips and other discrete devices.
在硬件实现上,上述通信单元702可以为收发器,收发器可以集成在通信装置800中的通信接口810中。In terms of hardware implementation, the above-mentioned communication unit 702 may be a transceiver, and the transceiver may be integrated into the communication interface 810 in the communication device 800 .
通信装置800可以包括至少一个处理器820,用于实现或用于支持通信装置800实现本申请实施例提供的方法中第一终端的功能。例如,处理器820可以确定上行带宽资源和上网业务占用的带宽资源,具体参见方法示例中的详细描述,此处不做赘述。再例如,处理器820可以确定CDN业务的带宽资源,具体参见方法示例中的详细描述,此处不做赘述。The communication apparatus 800 may include at least one processor 820, configured to implement or support the communication apparatus 800 to implement the function of the first terminal in the method provided by the embodiment of the present application. For example, the processor 820 may determine the uplink bandwidth resource and the bandwidth resource occupied by the Internet access service. For details, refer to the detailed description in the method example, which will not be repeated here. For another example, the processor 820 may determine the bandwidth resource of the CDN service, for details, please refer to the detailed description in the method example, which will not be repeated here.
可选的,通信装置800还可以包括至少一个存储器830,用于存储程序指令和/或数据。存储器830和处理器820耦合。本申请实施例中的耦合是装置、单元或模块之间的间接耦合或通信连接,可以是电性,机械或其它的形式,用于装置、单元或模块之间的信息交互。处理器820可能和存储器830协同操作。处理器820可能执行存储器830中存储的程序指令。所述至少一个存储器中的至少一个可以包括于处理器中。Optionally, the communication apparatus 800 may further include at least one memory 830 for storing program instructions and/or data. Memory 830 is coupled to processor 820 . The coupling in the embodiments of the present application is an indirect coupling or communication connection between devices, units or modules, which may be in electrical, mechanical or other forms, and is used for information exchange between devices, units or modules. Processor 820 may cooperate with memory 830 . Processor 820 may execute program instructions stored in memory 830 . At least one of the at least one memory may be included in the processor.
通信装置800还可以包括通信接口810,用于通过传输介质和其它设备进行通信,从而用于通信装置800中的装置可以和其它设备进行通信。示例性地,通信装置800为第一终端,该其它设备可以是服务器。处理器820可以利用通信接口810收发数据。通信接口810具体可以是收发器。The communication apparatus 800 may also include a communication interface 810 for communicating with other devices through a transmission medium, so that the devices used in the communication apparatus 800 may communicate with other devices. Exemplarily, the communication apparatus 800 is a first terminal, and the other device may be a server. The processor 820 may utilize the communication interface 810 to send and receive data. The communication interface 810 may specifically be a transceiver.
本申请实施例中不限定上述通信接口810、处理器820以及存储器830之间的具体连接介质。本申请实施例在图8中以存储器830、处理器820以及通信接口810之间通过总线840连接,总线在图8中以粗线表示,其它部件之间的连接方式,仅是进行示意性说明,并不引以为限。所述总线可以分为地址总线、数据总线、控制总线等。为便于表示,图8中仅用一条粗线表示,但并不表示仅有一根总线或一种类型的总线。The specific connection medium between the communication interface 810 , the processor 820 , and the memory 830 is not limited in the embodiments of the present application. In the embodiment of the present application, the memory 830, the processor 820, and the communication interface 810 are connected through a bus 840 in FIG. 8. The bus is represented by a thick line in FIG. 8, and the connection between other components is only for schematic illustration. , is not limited. The bus can be divided into an address bus, a data bus, a control bus, and the like. For ease of presentation, only one thick line is used in FIG. 8, but it does not mean that there is only one bus or one type of bus.
在本申请实施例中,处理器820可以是通用处理器、数字信号处理器、专用集成电路、现场可编程门阵列或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件,可以实现或者执行本申请实施例中的公开的各方法、步骤及逻辑框图。通用处理器可以是微处理器或者任何常规的处理器等。结合本申请实施例所公开的方法的步骤可以直接体现为硬件处理器执行完成,或者用处理器中的硬件及软件模块组合执行完成。In this embodiment of the present application, the processor 820 may be a general-purpose processor, a digital signal processor, an application-specific integrated circuit, a field programmable gate array or other programmable logic device, a discrete gate or transistor logic device, or a discrete hardware component, which can implement Alternatively, each method, step, and logic block diagram disclosed in the embodiments of the present application are executed. A general purpose processor may be a microprocessor or any conventional processor or the like. The steps of the methods disclosed in conjunction with the embodiments of the present application may be directly embodied as executed by a hardware processor, or executed by a combination of hardware and software modules in the processor.
在本申请实施例中,存储器830可以是非易失性存储器,比如硬盘(hard disk drive,HDD)或固态硬盘(solid-state drive,SSD)等,还可以是易失性存储器(volatile memory),例如随机存取存储器(random-access memory,RAM)。存储器是能够用于携带或存储具有指令或数据结构形式的期望的程序代码并能够由计算机存取的任何其他介质,但不限于此。本申请实施例中的存储器还可以是电路或者其它任意能够实现存储功能的装置,用于存储程序指令和/或数据。In this embodiment of the present application, the memory 830 may be a non-volatile memory, such as a hard disk drive (HDD) or a solid-state drive (SSD), etc., or a volatile memory (volatile memory), Such as random-access memory (random-access memory, RAM). Memory is, but is not limited to, any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer. The memory in this embodiment of the present application may also be a circuit or any other device capable of implementing a storage function, for storing program instructions and/or data.
图9示出了一种通信装置900的结构示意图。其中,通信装置900可以是上述图3~图6中任一个所示的实施例中的服务器,能够实现本申请实施例提供的方法中服务器的功能;通信装置900也可以是能够支持服务器实现本申请实施例提供的方法中服务器的功能的装置。通信装置900可以是硬件结构、软件模块、或硬件结构加软件模块。通信装置900可以由芯片系统实现。本申请实施例中,芯片系统可以由芯片构成,也可以包含芯片和其他分立器件。FIG. 9 shows a schematic structural diagram of a communication apparatus 900 . The communication device 900 may be a server in any one of the embodiments shown in FIG. 3 to FIG. 6 above, and can implement the function of the server in the method provided by the embodiments of the present application; the communication device 900 may also be a server capable of supporting the implementation of this An apparatus for the function of a server in the method provided by the application embodiment. The communication apparatus 900 may be a hardware structure, a software module, or a hardware structure plus a software module. The communication apparatus 900 may be implemented by a chip system. In this embodiment of the present application, the chip system may be composed of chips, or may include chips and other discrete devices.
通信装置900可以包括处理单元901和通信单元902。通信单元902用于通信装置900和其它模块进行通信,其可以是电路、器件、接口、总线、软件模块、收发器或者其它任意可以实现通信的装置。The communication apparatus 900 may include a processing unit 901 and a communication unit 902 . The communication unit 902 is used for the communication device 900 to communicate with other modules, and it can be a circuit, a device, an interface, a bus, a software module, a transceiver or any other device that can realize communication.
在一种可能的实现方式中,通信单元902可以用于接收来自第一终端的第一消息,第一终端存储有第一数据,第一消息中包括有关CDN业务的带宽资源的信息,该CDN业务的带宽资源可以为第一终端的上行带宽资源与第一终端的上网业务占用的带宽资源之间的差值,以及接收来自第二终端的第一请求消息,该第一请求消息用于请求获取第一数据。处理单元901可以用于根据有关CDN业务的带宽资源的信息,确定是否向第一终端请求第一数据。In a possible implementation manner, the communication unit 902 may be configured to receive a first message from a first terminal, where the first terminal stores the first data, and the first message includes information about bandwidth resources of a CDN service, the CDN The bandwidth resource of the service may be the difference between the uplink bandwidth resource of the first terminal and the bandwidth resource occupied by the Internet service of the first terminal, and the first request message from the second terminal is received, where the first request message is used to request Get the first data. The processing unit 901 may be configured to determine whether to request the first terminal for the first data according to the information about the bandwidth resources of the CDN service.
作为一个示例,有关CDN业务的带宽资源的信息可以包括上行带宽资源和上网业务占用的带宽资源;或者,有关CDN业务的带宽资源的信息可以仅包括CDN业务的带宽资源。As an example, the information about the bandwidth resources of the CDN service may include the uplink bandwidth resources and the bandwidth resources occupied by the Internet access service; or, the information about the bandwidth resources of the CDN service may only include the bandwidth resources of the CDN service.
作为一个示例,第一终端可以为光网络终端,CDN业务与上网业务可以承载于同一个广域网WAN中。上行带宽资源可以由第一终端进行带宽测试得到的。As an example, the first terminal may be an optical network terminal, and the CDN service and the Internet access service may be carried in the same wide area network WAN. The uplink bandwidth resource may be obtained by performing a bandwidth test on the first terminal.
作为另一个示例,第一终端可以为光线路终端,CDN业务与上网业务可以共享同一个上行口。上行带宽资源可以是由第一终端通过读取上行口的带宽资源得到的。As another example, the first terminal may be an optical line terminal, and the CDN service and the Internet service may share the same uplink port. The uplink bandwidth resource may be obtained by the first terminal by reading the bandwidth resource of the uplink port.
作为另一个示例,处理单元901具体用于根据有关CDN业务的带宽资源的信息确定CDN业务的带宽资源,以及在传输第一数据所需的带宽资源小于或等于CDN业务的带宽资源的情况下,确定向第一终端请求第一数据;或者,在传输第一数据所需的带宽资源大于CDN业务的带宽资源的情况下,确定不向第一终端请求第一数据。As another example, the processing unit 901 is specifically configured to determine the bandwidth resource of the CDN service according to the information about the bandwidth resource of the CDN service, and in the case that the bandwidth resource required for transmitting the first data is less than or equal to the bandwidth resource of the CDN service, Determine to request the first data from the first terminal; or, determine not to request the first data from the first terminal when the bandwidth resources required for transmitting the first data are greater than the bandwidth resources of the CDN service.
作为另一个示例,在通信装置900向第一终端请求第一数据之后,通信单元902进一步用于接收来自第一终端的第一数据;以及向第二终端发送第一响应消息,该第一响应消息包括第一数据。As another example, after the communication apparatus 900 requests the first data from the first terminal, the communication unit 902 is further configured to receive the first data from the first terminal; and send a first response message to the second terminal, the first response The message includes first data.
在另一种可能的实现方式中,通信单元902可以用于接收来自第一终端的第一消息,第一终端存储有第一数据,第一消息中包括CDN业务的带宽资源,以及接收来自第二终端的第一请求消息,第一请求消息用于请求获取第一数据。处理单元901可以用于根据CDN业务的带宽资源,确定是否向第一终端请求所述第一数据。In another possible implementation manner, the communication unit 902 may be configured to receive a first message from the first terminal, the first terminal stores the first data, the first message includes the bandwidth resources of the CDN service, and receives the first message from the first terminal. The first request message of the second terminal, where the first request message is used to request to obtain the first data. The processing unit 901 may be configured to determine whether to request the first data from the first terminal according to the bandwidth resources of the CDN service.
作为一个示例,第一终端可以为光网络终端,CDN业务与第一终端的上网业务可以承载于不同的广域网WAN中。CDN业务的带宽资源是由第一终端进行带宽测试得到的。As an example, the first terminal may be an optical network terminal, and the CDN service and the Internet access service of the first terminal may be carried in different wide area networks WAN. The bandwidth resource of the CDN service is obtained by the bandwidth test performed by the first terminal.
作为一个示例,处理单元901具体用于在传输第一数据所需的带宽资源小于或等于CDN业务的带宽资源的情况下,确定向第一终端请求第一数据;或者,在传输第一数据所需的带宽资源大于CDN业务的带宽资源的情况下,确实不向第一终端请求第一数据。As an example, the processing unit 901 is specifically configured to determine to request the first data from the first terminal when the bandwidth resource required for transmitting the first data is less than or equal to the bandwidth resource of the CDN service; In the case that the required bandwidth resources are greater than the bandwidth resources of the CDN service, the first data is indeed not requested from the first terminal.
作为另一个示例,在通信装置900向第一终端请求第一数据之后,通信单元902进一步用于:接收来自所述第一终端的第一数据;以及向所述第二终端发送第一响应消息,所述第一响应消息包括所述第一数据。As another example, after the communication apparatus 900 requests the first data from the first terminal, the communication unit 902 is further configured to: receive the first data from the first terminal; and send a first response message to the second terminal , the first response message includes the first data.
其中,上述方法实施例涉及的各步骤的所有相关内容均可以援引到对应功能模块的功能描述,在此不再赘述。Wherein, all relevant contents of the steps involved in the above method embodiments can be cited in the functional descriptions of the corresponding functional modules, which will not be repeated here.
本申请实施例中对模块的划分是示意性的,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,另外,在本申请各个实施例中的各功能模块可以集成在一个处理器中,也可以是单独物理存在,也可以两个或两个以上模块集成在一个模块中。上述集成的 模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。The division of modules in the embodiments of the present application is schematic, and is only a logical function division. In actual implementation, there may be other division methods. In addition, the functional modules in the various embodiments of the present application may be integrated into one processing unit. In the device, it can also exist physically alone, or two or more modules can be integrated into one module. The above-mentioned integrated modules can be implemented in the form of hardware or in the form of software function modules.
如图10所示为本申请实施例提供的通信装置1000,其中,通信装置1000可以是图3~图6中任一个所示的实施例中的服务器,能够实现本申请实施例提供的方法中服务器的功能;通信装置1000也可以是能够支持服务器实现本申请实施例提供的方法中服务器的功能的装置。其中,该通信装置1000可以为芯片系统。本申请实施例中,芯片系统可以由芯片构成,也可以包含芯片和其他分立器件。FIG. 10 shows a communication apparatus 1000 provided in an embodiment of the present application, where the communication apparatus 1000 may be a server in any of the embodiments shown in FIG. 3 to FIG. 6 , and can implement the methods provided in the embodiments of the present application. The function of the server; the communication device 1000 may also be a device capable of supporting the server to implement the function of the server in the method provided by the embodiment of the present application. Wherein, the communication apparatus 1000 may be a chip system. In this embodiment of the present application, the chip system may be composed of chips, or may include chips and other discrete devices.
在硬件实现上,上述通信单元902可以为收发器,收发器可以集成在通信装置1000中的通信接口1010中。In terms of hardware implementation, the above-mentioned communication unit 902 may be a transceiver, and the transceiver may be integrated into the communication interface 1010 in the communication device 1000 .
通信装置1000可以包括至少一个处理器1020,用于实现或用于支持通信装置1000实现本申请实施例提供的方法中服务器的功能。例如,处理器1020可以根据有关CDN业务的带宽资源的信息确定是否向第一终端请求第一数据,具体参见方法示例中的详细描述,此处不做赘述。再例如,处理器1020可以根据CDN业务的带宽资源确定是否向第一终端请求第一数据,具体参见方法示例中的详细描述,此处不做赘述。The communication apparatus 1000 may include at least one processor 1020, which is configured to implement or support the communication apparatus 1000 to implement the function of the server in the method provided by the embodiment of this application. For example, the processor 1020 may determine whether to request the first data from the first terminal according to the information about the bandwidth resources of the CDN service. For details, refer to the detailed description in the method example, which will not be repeated here. For another example, the processor 1020 may determine whether to request the first data from the first terminal according to the bandwidth resource of the CDN service. For details, refer to the detailed description in the method example, which will not be repeated here.
可选的,通信装置1000还可以包括至少一个存储器1030,用于存储程序指令和/或数据。存储器1030和处理器1020耦合。本申请实施例中的耦合是装置、单元或模块之间的间接耦合或通信连接,可以是电性,机械或其它的形式,用于装置、单元或模块之间的信息交互。处理器1020可能和存储器1030协同操作。处理器1020可能执行存储器1030中存储的程序指令。所述至少一个存储器中的至少一个可以包括于处理器中。Optionally, the communication apparatus 1000 may further include at least one memory 1030 for storing program instructions and/or data. Memory 1030 is coupled to processor 1020 . The coupling in the embodiments of the present application is an indirect coupling or communication connection between devices, units or modules, which may be in electrical, mechanical or other forms, and is used for information exchange between devices, units or modules. The processor 1020 may cooperate with the memory 1030 . Processor 1020 may execute program instructions stored in memory 1030 . At least one of the at least one memory may be included in the processor.
通信装置1000还可以包括通信接口1010,用于通过传输介质和其它设备进行通信,从而用于通信装置1000中的装置可以和其它设备进行通信。示例性地,通信装置1000为服务器,该其它设备可以是第一终端或第二终端。处理器1020可以利用通信接口1010收发数据。通信接口1010具体可以是收发器。The communication apparatus 1000 may further include a communication interface 1010 for communicating with other devices through a transmission medium, so that the devices used in the communication apparatus 1000 may communicate with other devices. Exemplarily, the communication apparatus 1000 is a server, and the other device may be a first terminal or a second terminal. The processor 1020 may utilize the communication interface 1010 to send and receive data. The communication interface 1010 may specifically be a transceiver.
本申请实施例中不限定上述通信接口1010、处理器1020以及存储器1030之间的具体连接介质。本申请实施例在图10中以存储器1030、处理器1020以及通信接口1010之间通过总线1040连接,总线在图10中以粗线表示,其它部件之间的连接方式,仅是进行示意性说明,并不引以为限。所述总线可以分为地址总线、数据总线、控制总线等。为便于表示,图10中仅用一条粗线表示,但并不表示仅有一根总线或一种类型的总线。The specific connection medium between the communication interface 1010 , the processor 1020 , and the memory 1030 is not limited in this embodiment of the present application. In the embodiment of the present application, the memory 1030, the processor 1020, and the communication interface 1010 are connected through a bus 1040 in FIG. 10. The bus is represented by a thick line in FIG. 10, and the connection between other components is only for schematic illustration. , is not limited. The bus can be divided into an address bus, a data bus, a control bus, and the like. For ease of presentation, only one thick line is used in FIG. 10, but it does not mean that there is only one bus or one type of bus.
在本申请实施例中,处理器1020可以是通用处理器、数字信号处理器、专用集成电路、现场可编程门阵列或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件,可以实现或者执行本申请实施例中的公开的各方法、步骤及逻辑框图。通用处理器可以是微处理器或者任何常规的处理器等。结合本申请实施例所公开的方法的步骤可以直接体现为硬件处理器执行完成,或者用处理器中的硬件及软件模块组合执行完成。In this embodiment of the present application, the processor 1020 may be a general-purpose processor, a digital signal processor, an application-specific integrated circuit, a field programmable gate array or other programmable logic device, a discrete gate or transistor logic device, or a discrete hardware component, which can implement Alternatively, each method, step, and logic block diagram disclosed in the embodiments of the present application are executed. A general purpose processor may be a microprocessor or any conventional processor or the like. The steps of the methods disclosed in conjunction with the embodiments of the present application may be directly embodied as executed by a hardware processor, or executed by a combination of hardware and software modules in the processor.
在本申请实施例中,存储器1030可以是非易失性存储器,比如硬盘(hard disk drive,HDD)或固态硬盘(solid-state drive,SSD)等,还可以是易失性存储器(volatile memory),例如随机存取存储器(random-access memory,RAM)。存储器是能够用于携带或存储具有指令或数据结构形式的期望的程序代码并能够由计算机存取的任何其他介质,但不限于此。本申请实施例中的存储器还可以是电路或者其它任意能够实现存储功能的装置,用于存储程序指令和/或数据。In this embodiment of the present application, the memory 1030 may be a non-volatile memory, such as a hard disk drive (HDD) or a solid-state drive (SSD), etc., or a volatile memory (volatile memory), Such as random-access memory (random-access memory, RAM). Memory is, but is not limited to, any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer. The memory in this embodiment of the present application may also be a circuit or any other device capable of implementing a storage function, for storing program instructions and/or data.
本申请实施例中还提供一种计算机可读存储介质,包括指令,当其在计算机上运行时, 使得计算机执行前述实施例中第一终端执行的方法。Embodiments of the present application further provide a computer-readable storage medium, including instructions, which, when executed on a computer, cause the computer to execute the method executed by the first terminal in the foregoing embodiments.
本申请实施例中还提供一种计算机可读存储介质,包括指令,当其在计算机上运行时,使得计算机执行前述实施例中服务器执行的方法。Embodiments of the present application also provide a computer-readable storage medium, including instructions, which, when executed on a computer, cause the computer to execute the method executed by the server in the foregoing embodiments.
本申请实施例中还提供一种计算机程序产品,包括指令,当其在计算机上运行时,使得计算机执行前述实施例中第一终端执行的方法。Embodiments of the present application further provide a computer program product, including instructions, which, when run on a computer, cause the computer to execute the method executed by the first terminal in the foregoing embodiments.
本申请实施例中还提供一种计算机程序产品,包括指令,当其在计算机上运行时,使得计算机执行前述实施例中服务器执行的方法。Embodiments of the present application also provide a computer program product, including instructions, which, when executed on a computer, cause the computer to execute the method executed by the server in the foregoing embodiments.
本申请实施例提供了一种芯片系统,该芯片系统包括处理器,还可以包括存储器,用于实现前述方法中第一终端的功能。该芯片系统可以由芯片构成,也可以包含芯片和其他分立器件。An embodiment of the present application provides a chip system, where the chip system includes a processor, and may further include a memory, for implementing the function of the first terminal in the foregoing method. The chip system can be composed of chips, and can also include chips and other discrete devices.
本申请实施例提供了一种芯片系统,该芯片系统包括处理器,还可以包括存储器,用于实现前述方法中服务器的功能。该芯片系统可以由芯片构成,也可以包含芯片和其他分立器件。An embodiment of the present application provides a chip system, where the chip system includes a processor, and may also include a memory, for implementing the function of the server in the foregoing method. The chip system can be composed of chips, and can also include chips and other discrete devices.
本申请实施例提供了一种通信系统,所述通信系统包括前述实施例中的第一终端和服务器。An embodiment of the present application provides a communication system, where the communication system includes the first terminal and the server in the foregoing embodiments.
本申请实施例提供的方法中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。所述计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行所述计算机程序指令时,全部或部分地产生按照本发明实施例所述的流程或功能。所述计算机可以是通用计算机、专用计算机、计算机网络、网络设备、用户设备或者其他可编程装置。所述计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,所述计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线(digital subscriber line,简称DSL)或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。所述计算机可读存储介质可以是计算机可以存取的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。所述可用介质可以是磁性介质(例如,软盘、硬盘、磁带)、光介质(例如,数字视频光盘(digital video disc,简称DVD))、或者半导体介质(例如,SSD)等。The methods provided in the embodiments of the present application may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented in software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of the present invention are generated. The computer may be a general purpose computer, a special purpose computer, a computer network, network equipment, user equipment, or other programmable apparatus. The computer instructions may be stored in or transmitted from one computer readable storage medium to another computer readable storage medium, for example, the computer instructions may be downloaded from a website site, computer, server or data center Transmission to another website site, computer, server or data center by means of wired (such as coaxial cable, optical fiber, digital subscriber line, DSL for short) or wireless (such as infrared, wireless, microwave, etc.) A computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. that contains an integration of one or more available media. The available media can be magnetic media (eg, floppy disks, hard disks, magnetic tape), optical media (eg, digital video disc (DVD) for short), or semiconductor media (eg, SSD), and the like.
显然,本领域的技术人员可以对本申请进行各种改动和变型而不脱离本申请的范围。这样,倘若本申请的这些修改和变型属于本申请权利要求及其等同技术的范围之内,则本申请也意图包含这些改动和变型在内。Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.

Claims (22)

  1. 一种调度方法,其特征在于,包括:A scheduling method, comprising:
    第一终端确定上行带宽资源和上网业务占用的带宽资源,所述第一终端存储有第二终端请求获取的第一数据;The first terminal determines the uplink bandwidth resources and the bandwidth resources occupied by the Internet service, and the first terminal stores the first data requested by the second terminal;
    所述第一终端向服务器发送第一消息,所述第一消息中包括有关内容分发网络CDN业务的带宽资源的信息,所述CDN业务的带宽资源为所述上行带宽资源与所述上网业务占用的带宽资源之间的差值,所述CDN业务的带宽资源用于所述服务器确定是否向所述第一终端请求所述第一数据。The first terminal sends a first message to the server, where the first message includes information about the bandwidth resources of the CDN service of the content distribution network, where the bandwidth resources of the CDN service are the uplink bandwidth resources and the occupied by the Internet access service The difference between the bandwidth resources of the CDN service is used for the server to determine whether to request the first data from the first terminal.
  2. 如权利要求1所述的方法,其特征在于,所述有关所述CDN业务的带宽资源的信息包括所述上行带宽资源和所述上网业务占用的带宽资源;或者,The method according to claim 1, wherein the information about the bandwidth resources of the CDN service includes the uplink bandwidth resources and the bandwidth resources occupied by the Internet access service; or,
    所述有关所述CDN业务的带宽资源的信息包括所述CDN业务的带宽资源。The information about the bandwidth resources of the CDN service includes the bandwidth resources of the CDN service.
  3. 如权利要求1或2所述的方法,其特征在于,所述第一终端为光网络终端,所述CDN业务与所述上网业务承载于同一个广域网WAN中。The method according to claim 1 or 2, wherein the first terminal is an optical network terminal, and the CDN service and the Internet access service are carried in the same wide area network WAN.
  4. 如权利要求3所述的方法,其特征在于,所述第一终端确定上行带宽资源,包括:The method according to claim 3, wherein the determining of the uplink bandwidth resource by the first terminal comprises:
    所述第一终端进行带宽测试,得到所述上行带宽资源。The first terminal performs a bandwidth test to obtain the uplink bandwidth resource.
  5. 如权利要求1或2所述的方法,其特征在于,所述第一终端为光线路终端,所述CDN业务与所述上网业务共享同一个上行口。The method according to claim 1 or 2, wherein the first terminal is an optical line terminal, and the CDN service and the Internet service share the same uplink port.
  6. 如权利要求5所述的方法,其特征在于,所述第一终端确定上行带宽资源,包括:The method of claim 5, wherein the determining of the uplink bandwidth resource by the first terminal comprises:
    所述第一终端通过读取所述上行口的带宽资源,得到所述上行带宽资源。The first terminal obtains the uplink bandwidth resource by reading the bandwidth resource of the uplink port.
  7. 一种调度方法,其特征在于,包括:A scheduling method, comprising:
    服务器接收来自第一终端的第一消息,所述第一终端存储有第一数据,所述第一消息中包括有关内容分发网络CDN业务的带宽资源的信息,所述CDN业务的带宽资源为所述第一终端的上行带宽资源与所述第一终端的上网业务占用的带宽资源之间的差值;The server receives a first message from a first terminal, the first terminal stores the first data, and the first message includes information about the bandwidth resources of the CDN service of the content distribution network, and the bandwidth resources of the CDN service are all the difference between the uplink bandwidth resources of the first terminal and the bandwidth resources occupied by the Internet service of the first terminal;
    所述服务器接收来自第二终端的第一请求消息,所述第一请求消息用于请求获取所述第一数据;receiving, by the server, a first request message from the second terminal, where the first request message is used to request to acquire the first data;
    所述服务器根据所述有关CDN业务的带宽资源的信息,确定是否向所述第一终端请求所述第一数据。The server determines whether to request the first data from the first terminal according to the information about the bandwidth resources of the CDN service.
  8. 如权利要求7所述的方法,其特征在于,所述有关CDN业务的带宽资源的信息包括所述上行带宽资源和所述上网业务占用的带宽资源;或者,The method according to claim 7, wherein the information about the bandwidth resources of the CDN service includes the uplink bandwidth resources and the bandwidth resources occupied by the Internet access service; or,
    所述有关CDN业务的带宽资源的信息包括CDN业务的带宽资源。The information about the bandwidth resources of the CDN service includes the bandwidth resources of the CDN service.
  9. 如权利要求7或8所述的方法,其特征在于,所述第一终端为光网络终端,所述CDN业务与所述上网业务承载于同一个广域网WAN中。The method according to claim 7 or 8, wherein the first terminal is an optical network terminal, and the CDN service and the Internet access service are carried in the same wide area network WAN.
  10. 如权利要求9所述的方法,其特征在于,所述上行带宽资源为所述第一终端进行带宽测试得到的。The method of claim 9, wherein the uplink bandwidth resource is obtained by performing a bandwidth test on the first terminal.
  11. 如权利要求7或8所述的方法,其特征在于,所述第一终端为光线路终端,所述CDN业务与所述上网业务共享同一个上行口。The method according to claim 7 or 8, wherein the first terminal is an optical line terminal, and the CDN service and the Internet service share the same uplink port.
  12. 如权利要求11所述的方法,其特征在于,所述上行带宽资源是所述第一终端通过读取所述上行口的带宽资源得到的。The method of claim 11, wherein the uplink bandwidth resource is obtained by the first terminal by reading the bandwidth resource of the uplink port.
  13. 如权利要求7至12中任一项所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 7 to 12, wherein the method further comprises:
    所述服务器根据所述有关CDN业务的带宽资源的信息,确定所述CDN业务的带宽资源。The server determines the bandwidth resource of the CDN service according to the information about the bandwidth resource of the CDN service.
  14. 如权利要求13所述的方法,其特征在于,所述服务器根据所述有关CDN业务的带宽资源的信息,确定是否向所述第一终端请求所述第一数据,包括:The method according to claim 13, wherein the server, according to the information about the bandwidth resources of the CDN service, determines whether to request the first data from the first terminal, comprising:
    在传输所述第一数据所需的带宽资源小于或等于所述CDN业务的带宽资源的情况下,所述服务器确定向所述第一终端请求所述第一数据;或者,In the case that the bandwidth resource required for transmitting the first data is less than or equal to the bandwidth resource of the CDN service, the server determines to request the first data from the first terminal; or,
    在传输所述第一数据所需的带宽资源大于所述CDN业务的带宽资源的情况下,所述服务器确定不向所述第一终端请求所述第一数据。In the case that the bandwidth resource required for transmitting the first data is greater than the bandwidth resource of the CDN service, the server determines not to request the first data from the first terminal.
  15. 如权利要求14所述的方法,其特征在于,在所述服务器确定向所述第一终端请求所述第一数据之后,所述方法还包括:The method of claim 14, wherein after the server determines to request the first data from the first terminal, the method further comprises:
    所述服务器接收来自所述第一终端的第一数据;the server receives the first data from the first terminal;
    所述服务器向所述第二终端发送第一响应消息,所述第一响应消息包括所述第一数据。The server sends a first response message to the second terminal, where the first response message includes the first data.
  16. 一种通信装置,其特征在于,包括处理单元和通信单元;A communication device, comprising a processing unit and a communication unit;
    所述通信单元,用于所述装置和其他装置进行数据传输;the communication unit for data transmission between the device and other devices;
    所述处理单元,用于通过所述通信单元执行如权利要求1至6任一项所述的方法。The processing unit is configured to execute the method according to any one of claims 1 to 6 through the communication unit.
  17. 一种通信装置,其特征在于,包括处理单元和通信单元;A communication device, comprising a processing unit and a communication unit;
    所述通信单元,用于所述装置和其他装置进行数据传输;the communication unit for data transmission between the device and other devices;
    所述处理单元,用于通过所述通信单元执行如权利要求7至15任一项所述的方法。The processing unit is configured to execute the method according to any one of claims 7 to 15 through the communication unit.
  18. 一种通信装置,其特征在于,包括:处理器,所述处理器与存储器耦合,所述存储器用于存储程序或指令,当所述程序或指令被所述处理器执行时,使得所述装置执行如权利要求1至6中任一项所述的方法。A communication device, characterized in that it comprises: a processor coupled with a memory, the memory is used to store a program or an instruction, when the program or instruction is executed by the processor, the device causes the device A method as claimed in any one of claims 1 to 6 is performed.
  19. 一种通信装置,其特征在于,包括:处理器,所述处理器与存储器耦合,所述存储器用于存储程序或指令,当所述程序或指令被所述处理器执行时,使得所述装置执行如权利要求7至15中任一项所述的方法。A communication device, characterized in that it comprises: a processor coupled with a memory, the memory is used to store a program or an instruction, when the program or instruction is executed by the processor, the device causes the device A method as claimed in any one of claims 7 to 15 is performed.
  20. 一种通信系统,其特征在于,包括如权利要求16所述的通信装置和如权利要求17所述的通信装置;或者A communication system, characterized by comprising the communication device as claimed in claim 16 and the communication device as claimed in claim 17; or
    包括如权利要求18所述的通信装置和如权利要求19所述的通信装置。The communication device of claim 18 and the communication device of claim 19 are included.
  21. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质中存储有计算机程序,当所述计算机程序在计算机上运行时,使得所述计算机执行权利要求1至15中任一项所述的方法。A computer-readable storage medium, characterized in that a computer program is stored in the computer-readable storage medium, and when the computer program runs on a computer, the computer is made to execute any one of claims 1 to 15 the method described.
  22. 一种计算机程序产品,其特征在于,当所述计算机程序产品在计算机上运行时,使得所述计算机执行权利要求1至15中任一项所述的方法。A computer program product, characterized in that, when the computer program product is run on a computer, the computer is caused to execute the method of any one of claims 1 to 15.
PCT/CN2022/076174 2021-03-04 2022-02-14 Scheduling method, apparatus and system WO2022183899A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110241220.3 2021-03-04
CN202110241220.3A CN115102904B (en) 2021-03-04 2021-03-04 Scheduling method, device and system

Publications (1)

Publication Number Publication Date
WO2022183899A1 true WO2022183899A1 (en) 2022-09-09

Family

ID=83155002

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/076174 WO2022183899A1 (en) 2021-03-04 2022-02-14 Scheduling method, apparatus and system

Country Status (2)

Country Link
CN (1) CN115102904B (en)
WO (1) WO2022183899A1 (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090177772A1 (en) * 2006-09-14 2009-07-09 Huawei Technologies Co., Ltd. Method, system and device for establishing a peer to peer connection in a p2p network
CN101640699A (en) * 2009-08-21 2010-02-03 深圳创维数字技术股份有限公司 P2P streaming media system and streaming media downloading method thereof
CN101800621A (en) * 2010-01-12 2010-08-11 腾讯科技(深圳)有限公司 Method and device for limiting uploading speed
CN103036790A (en) * 2012-12-31 2013-04-10 乐视网信息技术(北京)股份有限公司 P2P (peer-to-peer) node selection method introducing node bandwidth condition constrain
CN104038442A (en) * 2014-06-11 2014-09-10 普联技术有限公司 Bandwidth allocation method and router
CN107396204A (en) * 2017-06-12 2017-11-24 江苏大学 A kind of P2P video request program node selecting methods based on linear programming and intensified learning

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090177772A1 (en) * 2006-09-14 2009-07-09 Huawei Technologies Co., Ltd. Method, system and device for establishing a peer to peer connection in a p2p network
CN101640699A (en) * 2009-08-21 2010-02-03 深圳创维数字技术股份有限公司 P2P streaming media system and streaming media downloading method thereof
CN101800621A (en) * 2010-01-12 2010-08-11 腾讯科技(深圳)有限公司 Method and device for limiting uploading speed
CN103036790A (en) * 2012-12-31 2013-04-10 乐视网信息技术(北京)股份有限公司 P2P (peer-to-peer) node selection method introducing node bandwidth condition constrain
CN104038442A (en) * 2014-06-11 2014-09-10 普联技术有限公司 Bandwidth allocation method and router
CN107396204A (en) * 2017-06-12 2017-11-24 江苏大学 A kind of P2P video request program node selecting methods based on linear programming and intensified learning

Also Published As

Publication number Publication date
CN115102904B (en) 2024-05-17
CN115102904A (en) 2022-09-23

Similar Documents

Publication Publication Date Title
US10680928B2 (en) Multi-stream transmission method and device in SDN network
US9619292B2 (en) Resource placement in networked cloud based on resource constraints
US8879431B2 (en) Method for load balancing of requests' processing of diameter servers
CN102281190B (en) Networking method for load balancing apparatus, server and client access method
US20210400445A1 (en) Method and system for performing charging processing on network slice customer, and related device
US9420513B1 (en) Clustering approach to estimating a network metric for nodes
US10230644B2 (en) Distributed API proxy system and apparatus and method for managing traffic in such system
US20220263768A1 (en) Method and Apparatus for Node Speed Limiting, Electronic Device and Storage Medium
CN110830565B (en) Resource downloading method, device, system, electronic equipment and storage medium
US20140188801A1 (en) Method and system for intelligent load balancing
US11025738B2 (en) Systems and methods for determining a destination location for transmission of packetized data in a network system based on an application server attribute
US20140226660A1 (en) Reducing the maximum latency of reserved streams
WO2021204299A1 (en) Policy determination method and device, and system
US11632431B2 (en) Policy-based connection provisioning using domain name system (DNS) requests
WO2022183899A1 (en) Scheduling method, apparatus and system
WO2021159314A1 (en) Service processing method, device and system
WO2020134753A1 (en) Request message processing method, apparatus and system, and server and storage medium
CN112087382B (en) Service routing method and device
CN115190062B (en) Service processing method and device, electronic equipment and computer readable storage medium
CN111490997B (en) Task processing method, proxy system, service system and electronic equipment
CN113810461A (en) Bandwidth control method, device, equipment and readable storage medium
KR20120111626A (en) System and method for providing push service
JP2011048504A (en) Method, apparatus, and program for load distribution between authentication servers
JP7253104B1 (en) Message delivery device, message delivery method, and message delivery program
US9110721B2 (en) Job homing

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: 22762365

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: 22762365

Country of ref document: EP

Kind code of ref document: A1