WO2021078058A1 - 资源调度方法、装置、设备及计算机可读存储介质 - Google Patents

资源调度方法、装置、设备及计算机可读存储介质 Download PDF

Info

Publication number
WO2021078058A1
WO2021078058A1 PCT/CN2020/121152 CN2020121152W WO2021078058A1 WO 2021078058 A1 WO2021078058 A1 WO 2021078058A1 CN 2020121152 W CN2020121152 W CN 2020121152W WO 2021078058 A1 WO2021078058 A1 WO 2021078058A1
Authority
WO
WIPO (PCT)
Prior art keywords
resource
information
request
node device
node
Prior art date
Application number
PCT/CN2020/121152
Other languages
English (en)
French (fr)
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 WO2021078058A1 publication Critical patent/WO2021078058A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
    • H04L67/63Routing a service request depending on the request content or context
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W28/00Network traffic management; Network resource management
    • H04W28/16Central resource management; Negotiation of resources or communication parameters, e.g. negotiating bandwidth or QoS [Quality of Service]

Definitions

  • the present disclosure relates to the field of communication technologies, and in particular, to a resource scheduling method, device, device, and computer-readable storage medium.
  • the network in the related technology only provides a channel for data communication, which is based on connection and is subject to a fixed network addressing mechanism. Therefore, it cannot meet the higher and more demanding QoE (Quality of Experience, quality of experience) requirements.
  • QoE Quality of Experience, quality of experience
  • computing resources in the network are integrated into all corners of the network, so that every node device can become a resource provider.
  • the user's request can be satisfied by calling the nearest node resource, and is no longer limited to a specific node, thereby avoiding the waste of connection and network scheduling resources. Therefore, this requires the ability of interactive scheduling between computing resource nodes, or the ability to dynamically route computing tasks. In this way, not only can the traditional high-load, long-connection tasks be completed, but also lightweight, short-life-cycle computing tasks can be processed in time.
  • the embodiments of the present disclosure provide a resource scheduling method, device, equipment, and computer-readable storage medium to improve resource utilization.
  • embodiments of the present disclosure provide a resource scheduling method applied to a first node device, including:
  • resource information of other node devices includes: information about the first resource and information about the second resource;
  • the information of the first resource and the information of the second resource are sent by the other node device through a routing table
  • the first resource includes at least one of the following: the number of task connections, the capability of supplying CPU, memory, and resource deployment location.
  • the obtaining resource information of other node devices includes:
  • BGP Border Gateway Protocol
  • the first request is a service request; after receiving the first request of the terminal, the method further includes:
  • the determining, according to the first request and the resource information, a second node device used to provide a service for the terminal from the other node devices includes:
  • the sending the first request to the second node device includes:
  • the method further includes:
  • embodiments of the present disclosure provide a resource scheduling method applied to a second node device, including:
  • resource information includes: information about the first resource and information about the second resource;
  • the sending resource information to other node devices includes:
  • the sending resource information to other node devices through the routing table includes:
  • the resource information is sent to other node devices through a BGP update message, where the information of the first resource and the information of the second resource are carried in the TLV format of the path attribute field of the update message.
  • the first request is a service request; receiving the first request of the first node device among the other node devices, the method further includes:
  • the executing corresponding processing according to the first request includes:
  • the method further includes:
  • the embodiments of the present disclosure provide a resource scheduling method applied to a terminal, including:
  • the first node device determines from the other node devices a resource used to provide services for the terminal according to the first request and the resource information obtained from other node devices
  • the second node device wherein the resource information includes information about the first resource and information about the second resource
  • the information of the first resource and the information of the second resource are sent by the other node device through a routing table.
  • the first request is a business request
  • the method further includes:
  • the sending the first request to the first node device includes:
  • embodiments of the present disclosure provide a resource scheduling device, which is applied to a first node device, and includes:
  • the obtaining module is used to obtain resource information of other node devices, where the resource information includes: information about the first resource and information about the second resource;
  • the first receiving module is configured to receive the first request of the terminal
  • a determining module configured to determine, from the other node devices, a second node device used to provide services for the terminal according to the first request and the resource information;
  • the first sending module is configured to send the first request to the second node device.
  • the information of the first resource and the information of the second resource are sent by the other node device through a routing table
  • the first resource includes at least one of the following: the number of task connections, the capability of supplying CPU, memory, and resource deployment location.
  • the acquiring module is specifically configured to acquire resource information sent by the other node equipment through a Border Gateway Protocol BGP update message, wherein the information of the first resource and the information of the second resource are carried in the update
  • the label length content of the path attribute field of the message is in the TLV format.
  • the device further includes: a mapping module, configured to map the service request to a resource request; the determining module is specifically configured to determine from the other node devices according to the resource request and the resource information A second node device used to provide a service for the terminal; the first sending module is specifically configured to send the resource request to the second node device.
  • a mapping module configured to map the service request to a resource request
  • the determining module is specifically configured to determine from the other node devices according to the resource request and the resource information
  • a second node device used to provide a service for the terminal the first sending module is specifically configured to send the resource request to the second node device.
  • the apparatus further includes: a second receiving module, configured to receive the first response of the second node device; and a second sending module, configured to send the first response to the terminal.
  • embodiments of the present disclosure provide a resource scheduling device, which is applied to a second node device, and includes:
  • the first sending module is configured to send resource information to other node devices, where the resource information includes: information about the first resource and information about the second resource;
  • a first receiving module configured to receive a first request from a first node device among the other node devices
  • the processing module is configured to perform corresponding processing according to the first request.
  • the first sending module is specifically configured to send resource information to other node devices through a routing table.
  • the first sending module is specifically configured to send the resource information to other node devices through a BGP update message, where the information about the first resource and the information about the second resource are carried in the update message.
  • the TLV format of the path attribute field In the TLV format of the path attribute field.
  • the device further includes: a mapping module, configured to map the service request to a resource request; the processing module is specifically configured to perform corresponding processing according to the resource request.
  • a mapping module configured to map the service request to a resource request
  • the processing module is specifically configured to perform corresponding processing according to the resource request.
  • embodiments of the present disclosure provide a resource scheduling device applied to a terminal, including:
  • the sending module is configured to send a first request to a first node device, so that the first node device determines from the other node device that the first node device is used to provide information based on the first request and the resource information obtained from other node devices.
  • the second node device provided by the terminal, wherein the resource information includes information about the first resource and information about the second resource;
  • the receiving module is configured to receive the first response sent by the first node device.
  • the information of the first resource and the information of the second resource are sent by the other node device through a routing table.
  • the apparatus further includes: a mapping module, configured to map the service request to a resource request; and the sending module is specifically configured to send the resource request to the first node device.
  • embodiments of the present disclosure provide a resource scheduling device, which is applied to a first node device, and includes: a processor and a transceiver;
  • the transceiver is used to obtain resource information of other node devices, where the resource information includes: information about a first resource and information about a second resource; receiving a first request from a terminal;
  • the processor is configured to determine, from the other node devices, a second node device used to provide services for the terminal according to the first request and the resource information;
  • the transceiver is also configured to send the first request to the second node device.
  • the information of the first resource and the information of the second resource are sent by the other node device through a routing table
  • the first resource includes at least one of the following: the number of task connections, the capability of supplying CPU, memory, and resource deployment location.
  • the transceiver is further configured to obtain resource information sent by the other node equipment through a Border Gateway Protocol BGP update message, wherein the information of the first resource and the information of the second resource are carried in the update
  • the label length content of the path attribute field of the message is in the TLV format.
  • the processor is further configured to map the service request to a resource request; according to the resource request and the resource information, determine from the other node devices a second node used to provide services for the terminal Node device; the transceiver is also used to send the resource request to the second node device.
  • the transceiver is further configured to receive the first response of the second node device; and send the first response to the terminal.
  • embodiments of the present disclosure provide a resource scheduling device, which is applied to a second node device, and includes: a processor and a transceiver;
  • the transceiver is configured to send resource information to other node devices, where the resource information includes: information about a first resource and information about a second resource; receiving the first node device of the other node devices request;
  • the processor is configured to execute corresponding processing according to the first request.
  • the transceiver is also used to send resource information to other node devices through the routing table.
  • the transceiver is further configured to send the resource information to other node devices through a BGP update message, wherein the information of the first resource and the information of the second resource are carried in the path attribute of the update message Field in the TLV format.
  • the processor is further configured to map the service request to a resource request; and execute corresponding processing according to the resource request.
  • the transceiver is further configured to send a first response to the first node device.
  • embodiments of the present disclosure provide a resource scheduling device, which is applied to a terminal and includes a processor and a transceiver;
  • the transceiver is configured to send a first request to a first node device, so that the first node device determines from the other node device the resource information obtained from the other node device according to the first request and the resource information obtained from the other node device
  • a second node device that provides a service for the terminal, wherein the resource information includes information about a first resource and information about a second resource; and a first response sent by the first node device is received.
  • the processor is further configured to map the service request to a resource request; the transceiver is further configured to send the resource request to the first node device.
  • the information of the first resource and the information of the second resource are sent by the other node device through a routing table.
  • an embodiment of the present disclosure provides a communication device, including: a transceiver, a memory, a processor, and a computer program stored on the memory and running on the processor;
  • the processor is configured to read the program in the memory to implement the steps in the method described in the first aspect; or implement the steps in the method described in the second aspect; or implement the method described in the third aspect Steps in.
  • an embodiment of the present disclosure provides a computer-readable storage medium for storing a computer program that, when executed by a processor, implements the steps in the method described in the first aspect; or The steps in the method described in the second aspect; or the steps in the method described in the third aspect are implemented.
  • the first node device may obtain resource information sent by other node devices.
  • the first node device may select a node device that can provide services for the terminal from other node devices according to the obtained information. Therefore, by using the solution of the embodiment of the present disclosure, the first node device can schedule resources from other node devices to serve the terminal, thereby improving the utilization rate of resources.
  • FIG. 1 is one of the flowcharts of the flowchart of the resource scheduling method provided by the embodiment of the present disclosure
  • FIG. 3 is the third flowchart of the flowchart of the resource scheduling method provided by the embodiment of the present disclosure.
  • FIG. 5 is the fifth flowchart of the flowchart of the resource scheduling method provided by the embodiment of the present disclosure.
  • Figure 6 is one of the structural diagrams of a resource scheduling device provided by an embodiment of the present disclosure.
  • FIG. 7 is the second structural diagram of a resource scheduling device provided by an embodiment of the present disclosure.
  • FIG. 8 is the third structural diagram of the resource scheduling device provided by an embodiment of the present disclosure.
  • FIG. 9 is the fourth structural diagram of the resource scheduling device provided by an embodiment of the present disclosure.
  • FIG. 10 is the fifth structural diagram of the resource scheduling device provided by an embodiment of the present disclosure.
  • FIG. 11 is a sixth structural diagram of a resource scheduling device provided by an embodiment of the present disclosure.
  • FIG. 12 is one of the structural diagrams of a communication device provided by an embodiment of the present disclosure.
  • FIG. 13 is the second structural diagram of a communication device provided by an embodiment of the present disclosure.
  • Fig. 14 is the third structural diagram of a communication device provided by an embodiment of the present disclosure.
  • Fig. 1 is a flowchart of a resource scheduling method provided by an embodiment of the present disclosure, which is applied to a first node device, as shown in Fig. 1, and includes the following steps:
  • Step 101 Obtain resource information of other node devices.
  • the resource information includes: information of the first resource and information of the second resource.
  • the information of the first resource and the information of the second resource are sent by the other node device through a routing table.
  • the resource information sent by the other node device through the BGP (Border Gateway Protocol) update message is acquired, where the information of the first resource and the information of the second resource
  • the information is carried in the TLV format of the path attributes (path attributes) field of the update message.
  • the TLV format may also carry service ID (service identification).
  • the information of the first resource may also be referred to as computing resource information, and the computing resource may include: the number of task connections, CPU, memory, resource form (physical or virtual) deployment location and other provisioning capabilities.
  • the information of the second resource may also be referred to as the information of the network resource, and the network resource may include network topology, bandwidth, delay, jitter, and other requirements.
  • Step 102 Receive a first request from the terminal.
  • the first request may be a service request or a resource request
  • the resource request is used to request computing resources and network resources.
  • the service request may be a computing resource request for bandwidth, time delay, and task.
  • the first node device needs to map the service request to a resource request.
  • the service request message may include: content ID (identification), storage resource requirements, computing resource requirements, delay requirements and other information.
  • Step 103 According to the first request and the resource information, determine a second node device used to provide a service for the terminal from the other node devices.
  • the first node device when determining the second node device, may comprehensively consider the service request and the calculation, storage, and network resources of each node device.
  • step 103 it is determined from the other node devices according to the resource mapping request and the resource information. For a second node device that provides services for the terminal.
  • Step 104 Send the first request to the second node device.
  • step 104 the resource request is sent to the second node device.
  • the first node device can obtain resource information sent by other node devices through the routing table.
  • the first node device may select a node device that can provide services for the terminal from other node devices according to the obtained information. Therefore, by using the solution of the embodiment of the present disclosure, the first node device can schedule resources from other node devices to serve the terminal, thereby improving resource utilization and improving user experience.
  • the second node device may also send a first response to the first node device.
  • the first node device receives the first response of the second node device, and sends the first response to the terminal.
  • Figure 2 is a flowchart of a resource scheduling method provided by an embodiment of the present disclosure, which is applied to a second node device, as shown in Figure 2, and includes the following steps:
  • Step 201 Send resource information to other node devices, where the resource information includes: information about the first resource and information about the second resource.
  • the resource information is sent to other node devices through the routing table.
  • the resource information that the second node device can send through a BGP update (update) message wherein the information of the first resource and the information of the second resource are carried in the TLV format of the path attribute field of the update message.
  • the TLV format may also carry service ID (service identification).
  • the information of the first resource may include the number of task connections, CPU/GPU (Graphics Processing Unit, graphics processing unit) information, memory, hard disk, and other information.
  • CPU/GPU Graphics Processing Unit, graphics processing unit
  • the second node device in addition to sending its own resource information to other node devices, it can also send the resource information of other node devices it has received.
  • Step 202 Receive a first request from a first node device among the other node devices.
  • the first request may be a service request or a resource request
  • the resource request is used to request computing resources and network resources.
  • the second node device needs to map the service request to a resource request.
  • the service request message may include: content ID (identification), storage resource requirements, computing resource requirements, delay requirements and other information.
  • Step 203 Perform corresponding processing according to the first request.
  • the response processing is executed according to the resource request.
  • corresponding computing resources or network resources may be prepared for the terminal according to the first request.
  • the first node device can obtain resource information sent by other node devices through the routing table.
  • the first node device may select a node device that can provide services for the terminal from other node devices according to the obtained information. Therefore, by using the solution of the embodiment of the present disclosure, the first node device can schedule resources from other node devices to serve the terminal, thereby improving resource utilization and improving user experience.
  • the second node device may also send a first response to the first node device.
  • FIG. 3 is a flowchart of a resource scheduling method provided by an embodiment of the present disclosure, which is applied to a terminal, as shown in FIG. 3, including the following steps:
  • Step 301 Send a first request to a first node device, so that the first node device determines from the other node device that it is used for serving the terminal according to the first request and the resource information obtained from other node devices.
  • the information of the first resource and the information of the second resource are sent by the other node device through a routing table.
  • the first request is a service request
  • the first request may also be mapped to a resource request.
  • a resource mapping request is sent to the first node device.
  • Step 302 Receive a first response sent by the first node device.
  • the first node device can obtain resource information sent by other node devices through the routing table.
  • the first node device may select a node device that can provide services for the terminal from other node devices according to the obtained information. Therefore, by using the solution of the embodiment of the present disclosure, the first node device can schedule resources from other node devices to serve the terminal, thereby improving resource utilization and improving user experience.
  • FIG. 4 is a flowchart of a resource scheduling method provided by an embodiment of the present disclosure. As shown in Figure 4, it includes the following steps:
  • Step 401 The terminal sends a request message to the first access device.
  • the terminal selects the first access device as the access node, and is responsible for obtaining the available computing and network resources of each node device.
  • the terminal may choose to access the first hop router as the first access device.
  • each node device actively updates its own or acquired computing resources and network resources of other node devices to surrounding nodes through broadcasting.
  • the computing resources can be sent by adding or subtracting computing resource template information in the routing table.
  • Network resources can also be sent in the form of routing tables.
  • the calculation template information includes: task connection number, CPU/GPU, memory, hard disk and other information.
  • the request message may be a service request message or a resource request message.
  • the service request message of the terminal needs to be mapped to a resource request message.
  • the terminal, the first access device, and the subsequent access device selected by the first access device to provide services for the terminal can all perform the operation of mapping the service request message to the resource request message.
  • Step 402 After the first access device receives the service request message, the computing network resource function module in the first access device schedules the request message to the corresponding node device for execution according to the request message.
  • the request message may include: content ID, storage resource requirements, computing resource requirements, delay requirements and other information.
  • Step 403 The second node device executes corresponding processing.
  • Step 404 The second node device sends a response message to the first access device.
  • Step 405 The first access device sends a response message to the terminal.
  • FIG. 5 is a flowchart of a resource scheduling method provided by an embodiment of the present disclosure. As shown in Figure 5, it includes the following steps:
  • Step 501 Each node device sends an update message to other node devices, and broadcasts computing resources and network resources.
  • the node device can send resource information through a BGP update (update) message, including: information about the first resource and information about the second resource, wherein the information about the first resource and the second resource
  • the information of is carried in the TLV format of the path attribute field of the update message.
  • the TLV format may also carry service ID (service identification).
  • node device in addition to sending its own resource information to other node devices, it can also send the resource information of other node devices that it has received.
  • node devices only four node devices are used as examples to describe the process of broadcasting computing resources and network resources. In practical applications, the number of node devices can be set as needed, and the process of broadcasting computing resources and network resources is similar to the figure. Moreover, in FIG. 5, the first access device can also broadcast computing resources and network resources to other node devices, and the process is the same as that of other node devices.
  • Step 502 The terminal sends a request message to the first access device.
  • Step 503 After the first access device receives the service request message, the computing network resource function module in the first access device schedules the request message to the corresponding node device for execution according to the request message.
  • Step 504 The second node device executes corresponding processing.
  • Step 505 The second node device sends a response message to the first access device.
  • Step 506 The first access device sends a response message to the terminal.
  • steps 502-506 can refer to the description of the aforementioned steps 401-405.
  • the node device publishes the current computing capability status and network status as routing information to the network, and the network routes the computing task message to the corresponding computing node, thereby improving user experience and computing resource utilization. And network efficiency.
  • the second to fourth node devices can all be used as the first access device.
  • the embodiment of the present disclosure also provides a resource scheduling device, which is applied to the first node device.
  • a resource scheduling device which is applied to the first node device.
  • FIG. 6 is a structural diagram of a resource scheduling apparatus provided by an embodiment of the present disclosure. As shown in FIG. 6, the resource scheduling device includes:
  • the obtaining module 601 is used to obtain resource information of other node devices, where the resource information includes: information of the first resource and information of the second resource; the first receiving module 602 is used to receive the first request of the terminal; determine The module 603 is configured to determine, from the other node devices, a second node device used to provide services for the terminal according to the first request and the resource information; the first sending module 604 is configured to send The second node device sends the first request.
  • the information of the first resource and the information of the second resource are sent by the other node device through a routing table
  • the first resource includes at least one of the following: the number of task connections, the capability of supplying CPU, memory, and resource deployment location.
  • the obtaining module 601 is specifically configured to obtain resource information sent by the other node device through a BGP update message, wherein the information of the first resource and the information of the second resource are carried in the update message
  • the path attribute field is in the TLV format.
  • the device further includes: a mapping module, configured to map the service request to a resource request; the determining module 603 is specifically configured to, according to the resource request and the resource information, send data from the other node A second node device used to provide a service for the terminal is determined in the device; the first sending module 604 is specifically configured to send the resource request to the second node device.
  • a mapping module configured to map the service request to a resource request
  • the determining module 603 is specifically configured to, according to the resource request and the resource information, send data from the other node
  • the first sending module 604 is specifically configured to send the resource request to the second node device.
  • the apparatus further includes: a second receiving module, configured to receive the first response of the second node device; and a second sending module, configured to send the first response to the terminal.
  • the resource scheduling device provided in the embodiment of the present disclosure can execute the foregoing method embodiment, and its implementation principles and technical effects are similar, and details are not described herein again in this embodiment.
  • the embodiment of the present disclosure also provides a resource scheduling device, which is applied to a second node device.
  • a resource scheduling device which is applied to a second node device.
  • FIG. 7 is a structural diagram of a resource scheduling apparatus provided by an embodiment of the present disclosure. As shown in Figure 7, the resource scheduling device includes:
  • the first sending module 701 is configured to send resource information to other node devices through the routing table, where the resource information includes: information about the first resource and information about the second resource; the first receiving module 702 is configured to receive the The first request of the first node device among the other node devices; the processing module 703 is configured to perform corresponding processing according to the first request.
  • the first sending module 701 is specifically configured to send resource information to other node devices through a routing table.
  • the first sending module 701 is specifically configured to send the resource information to other node devices through a BGP update message, where the information about the first resource and the information about the second resource are carried in the In the TLV format of the path attribute field of the update message.
  • the device further includes: a mapping module configured to map the service request to a resource request; the processing module 703 is specifically configured to perform corresponding processing according to the resource request.
  • a mapping module configured to map the service request to a resource request
  • the processing module 703 is specifically configured to perform corresponding processing according to the resource request.
  • the resource scheduling device provided in the embodiment of the present disclosure can execute the foregoing method embodiment, and its implementation principles and technical effects are similar, and details are not described herein again in this embodiment.
  • FIG. 8 is a structural diagram of a resource scheduling apparatus provided by an embodiment of the present disclosure. As shown in Figure 8, the resource scheduling device includes:
  • the sending module 801 is configured to send a first request to a first node device, so that the first node device determines from the other node device that it is used for The second node device that the terminal provides services, wherein the resource information includes information about the first resource and information about the second resource; the receiving module 802 is configured to receive the first response sent by the first node device.
  • the information of the first resource and the information of the second resource are sent by the other node device through a routing table.
  • the apparatus further includes: a mapping module, configured to map the service request to a resource request; the sending module 801 is specifically configured to send the resource request to the first node device.
  • a mapping module configured to map the service request to a resource request
  • the sending module 801 is specifically configured to send the resource request to the first node device.
  • the resource scheduling device provided in the embodiment of the present disclosure can execute the foregoing method embodiment, and its implementation principles and technical effects are similar, and details are not described herein again in this embodiment.
  • the embodiment of the present disclosure also provides a resource scheduling device, which is applied to the first node device.
  • a resource scheduling apparatus includes: a processor 901 and a transceiver 902.
  • the transceiver 902 is configured to obtain resource information of other node devices, where the resource information includes: information about a first resource and information about a second resource; receiving a first request from a terminal;
  • the processor 901 is configured to determine, from the other node devices, a second node device used to provide services for the terminal according to the first request and the resource information;
  • the transceiver 902 is further configured to send the first request to the second node device.
  • the information of the first resource and the information of the second resource are sent by the other node device through a routing table
  • the first resource includes at least one of the following: the number of task connections, the capability of supplying CPU, memory, and resource deployment location.
  • the transceiver 902 is further configured to obtain resource information sent by the other node equipment through a Border Gateway Protocol BGP update message, wherein the information of the first resource and the information of the second resource are carried in the The tag length content of the path attribute field of the update message is in the TLV format.
  • the processor 901 is further configured to map the service request to a resource request; according to the resource request and the resource information, determine from the other node devices a second node used to provide services for the terminal Two-node device; the transceiver is also used to send the resource request to the second node device.
  • the transceiver 902 is further configured to receive the first response of the second node device; and send the first response to the terminal.
  • the resource scheduling device provided in the embodiment of the present disclosure can execute the foregoing method embodiment, and its implementation principles and technical effects are similar, and details are not described herein again in this embodiment.
  • the embodiment of the present disclosure also provides a resource scheduling device, which is applied to a second node device.
  • a resource scheduling apparatus includes: a processor 1001 and a transceiver 1002.
  • the transceiver 1002 is configured to send resource information to other node devices through a routing table, where the resource information includes: information about a first resource and information about a second resource; receiving the first node in the other node devices The first request of the device;
  • the processor 1001 is configured to execute corresponding processing according to the first request.
  • the transceiver 1002 is also used to send resource information to other node devices through the routing table.
  • the transceiver 1002 is further configured to send the resource information to other node devices through a BGP update message, wherein the information of the first resource and the information of the second resource are carried in the path of the update message In the TLV format of the attribute field.
  • the processor 1001 is further configured to map the service request to a resource request; and execute corresponding processing according to the resource request.
  • the transceiver 1002 is further configured to send a first response to the first node device.
  • the resource scheduling device provided in the embodiment of the present disclosure can execute the foregoing method embodiment, and its implementation principles and technical effects are similar, and details are not described herein again in this embodiment.
  • the embodiment of the present disclosure also provides a resource scheduling device, which is applied to a terminal.
  • a resource scheduling device which is applied to a terminal.
  • FIG. 11 is a structural diagram of a resource scheduling apparatus provided by an embodiment of the present disclosure.
  • the resource scheduling apparatus includes: a processor 1101 and a transceiver 1102.
  • the transceiver 1102 is configured to send a first request to a first node device, so that the first node device determines from the other node device according to the first request and the resource information obtained from the other node device In a second node device that provides a service for the terminal, wherein the resource information includes information about a first resource and information about a second resource; and a first response sent by the first node device is received.
  • the information of the first resource and the information of the second resource are sent by the other node device through a routing table.
  • the processor 1101 is further configured to map the service request to a resource request; the transceiver is further configured to send the resource request to the first node device.
  • the resource scheduling device provided in the embodiment of the present disclosure can execute the foregoing method embodiment, and its implementation principles and technical effects are similar, and details are not described herein again in this embodiment.
  • the communication device of the embodiment of the present disclosure, applied to the first node device includes:
  • the processor 1200 is configured to read a program in the memory 1220 and perform the following process: obtain resource information of other node devices through the transceiver 1210, where the resource information includes: information about the first resource and information about the second resource; Receiving a first request from a terminal; according to the first request and the resource information, determining from the other node devices a second node device used to provide services for the terminal; sending all the nodes to the second node device The first request.
  • the transceiver 1210 is configured to receive and send data under the control of the processor 1200.
  • the bus architecture may include any number of interconnected buses and bridges. Specifically, one or more processors represented by the processor 1200 and various circuits of the memory represented by the memory 1220 are linked together.
  • the bus architecture can also link various other circuits such as peripherals, voltage regulators, power management circuits, etc., which are all known in the art, and therefore, will not be further described herein.
  • the bus interface provides the interface.
  • the transceiver 1210 may be a plurality of components, including a transmitter and a transceiver, and provide a unit for communicating with various other devices on a transmission medium.
  • the processor 1200 is responsible for managing the bus architecture and general processing, and the memory 1220 can store data used by the processor 1200 when performing operations.
  • the processor 1200 is responsible for managing the bus architecture and general processing, and the memory 1220 can store data used by the processor 1200 when performing operations.
  • the information of the first resource and the information of the second resource are sent by the other node device through a routing table
  • the first resource includes at least one of the following: the number of task connections, the capability of supplying CPU, memory, and resource deployment location.
  • the processor 1200 is further configured to read the computer program, and perform the following steps: obtain the resource information sent by the other node device through the Border Gateway Protocol BGP update message, where the information of the first resource and the second resource The information of is carried in the tag length content TLV format of the path attribute field of the update message.
  • the processor 1200 is further configured to read the computer program, and perform the following steps: map the service request to a resource request; according to the resource request and the resource information, determine from the other node devices to perform the The second node device provided by the terminal; sending the resource request to the second node device.
  • the processor 1200 is further configured to read the computer program and perform the following steps: receiving the first response of the second node device; sending the first response to the terminal.
  • the communication device of the embodiment of the present disclosure, applied to the second node device includes:
  • the processor 1300 is configured to read a program in the memory 1320 and execute the following process: send resource information to other node devices through a routing table through the transceiver 1310, where the resource information includes: information about the first resource and the second resource ⁇ ; Receive the first request of the first node device among the other node devices; Perform corresponding processing according to the first request.
  • the transceiver 1310 is configured to receive and send data under the control of the processor 1300.
  • the bus architecture may include any number of interconnected buses and bridges. Specifically, one or more processors represented by the processor 1300 and various circuits of the memory represented by the memory 1320 are linked together.
  • the bus architecture can also link various other circuits such as peripherals, voltage regulators, power management circuits, etc., which are all known in the art, and therefore, will not be further described herein.
  • the bus interface provides the interface.
  • the transceiver 1310 may be a plurality of elements, including a transmitter and a transceiver, and provide a unit for communicating with various other devices on the transmission medium.
  • the processor 1300 is responsible for managing the bus architecture and general processing, and the memory 1320 can store data used by the processor 1300 when performing operations.
  • the processor 1300 is responsible for managing the bus architecture and general processing, and the memory 1320 can store data used by the processor 1300 when performing operations.
  • the processor 1300 is further configured to read the computer program and execute the following steps:
  • the processor 1300 is further configured to read the computer program and execute the following steps:
  • the resource information is sent to other node devices through a BGP update message, where the information of the first resource and the information of the second resource are carried in the TLV format of the path attribute field of the update message.
  • the processor 1300 is further configured to read the computer program, and perform the following steps: map the service request to a resource request; and perform corresponding processing according to the resource request.
  • the processor 1300 is further configured to read the computer program, and perform the following steps: send a first response to the first node device.
  • the communication device of the embodiment of the present disclosure, applied to a terminal includes:
  • the processor 1400 is configured to read a program in the memory 1420 and execute the following process:
  • the first request is sent to the first node device through the transceiver 1410, so that the first node device determines from the other node device that it is used for the The second node device provided by the terminal, wherein the resource information includes information about the first resource and information about the second resource; and the first response sent by the first node device is received.
  • the transceiver 1410 is configured to receive and send data under the control of the processor 1400.
  • the information of the first resource and the information of the second resource are sent by the other node device through a routing table.
  • the bus architecture may include any number of interconnected buses and bridges. Specifically, one or more processors represented by the processor 1400 and various circuits of the memory represented by the memory 1420 are linked together.
  • the bus architecture can also link various other circuits such as peripherals, voltage regulators, power management circuits, etc., which are all known in the art, and therefore, will not be further described herein.
  • the bus interface provides the interface.
  • the transceiver 1410 may be a plurality of elements, including a transmitter and a receiver, and provide a unit for communicating with various other devices on the transmission medium.
  • the user interface 1430 may also be an interface capable of connecting externally and internally with the required equipment.
  • the connected equipment includes but not limited to a keypad, a display, a speaker, a microphone, a joystick, and the like.
  • the processor 1400 is responsible for managing the bus architecture and general processing, and the memory 1420 can store data used by the processor 1400 when performing operations.
  • the processor 1400 is further configured to read the computer program, and perform the following steps: map the service request to a resource request; and send the resource request to the first node device.
  • the computer-readable storage medium of the embodiment of the present disclosure is used to store a computer program, and the computer program can be executed by a processor to implement the following steps:
  • resource information of other node devices includes: information about the first resource and information about the second resource;
  • the information of the first resource and the information of the second resource are sent by the other node device through a routing table
  • the first resource includes at least one of the following: the number of task connections, the capability of supplying CPU, memory, and resource deployment location.
  • the obtaining resource information of other node devices includes:
  • the first request is a service request; after receiving the first request for resource information of the terminal, the method further includes:
  • the determining, according to the first request and the resource information, a second node device used to provide a service for the terminal from the other node devices includes:
  • the sending the first request to the second node device includes:
  • the method further includes:
  • the computer-readable storage medium of the embodiment of the present disclosure is used to store a computer program, and the computer program can be executed by a processor to implement the following steps:
  • resource information includes: information about the first resource and information about the second resource;
  • the sending resource information to other node devices includes:
  • the sending resource information to other node devices through the routing table includes:
  • the resource information is sent to other node devices through a BGP update message, where the information of the first resource and the information of the second resource are carried in the TLV format of the path attribute field of the update message.
  • the first request is a service request; receiving the first request of the first node device among the other node devices, the method further includes:
  • the executing corresponding processing according to the first request includes:
  • the method further includes:
  • the computer-readable storage medium of the embodiment of the present disclosure is used to store a computer program, and the computer program can be executed by a processor to implement the following steps:
  • the first node device determines from the other node devices a resource used to provide services for the terminal according to the first request and the resource information obtained from other node devices
  • the second node device wherein the resource information includes information about the first resource and information about the second resource
  • the information of the first resource and the information of the second resource are sent by the other node device through a routing table.
  • the first request is a business request
  • the method further includes:
  • the sending the first request to the first node device includes:
  • the disclosed method and device can be implemented in other ways.
  • the device embodiments described above are merely illustrative, for example, the division of the units is only a logical function division, and there may be other divisions in actual implementation, for example, multiple units or components may be combined or It can be integrated into another system, or some features can be ignored or not implemented.
  • the displayed or discussed mutual coupling or direct coupling or communication connection may be indirect coupling or communication connection through some interfaces, devices or units, and may be in electrical, mechanical or other forms.
  • the functional units in the various embodiments of the present disclosure may be integrated into one processing unit, or each unit may be separately physically included, or two or more units may be integrated into one unit.
  • the above-mentioned integrated unit can be realized in the form of hardware, or in the form of hardware plus software functional unit.
  • the above-mentioned integrated unit implemented in the form of a software functional unit may be stored in a computer readable storage medium.
  • the above-mentioned software function unit is stored in a storage medium and includes several instructions to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute some steps of the transceiver method described in each embodiment of the present disclosure.
  • the aforementioned storage media include: U disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disk or optical disk and other media that can store program code .
  • the division of the above network equipment and the various modules of the terminal is only a division of logical functions, and may be fully or partially integrated into a physical entity in actual implementation, or may be physically separated.
  • these modules can all be implemented in the form of software called by processing elements; they can also be implemented in the form of hardware; some modules can be implemented in the form of calling software by processing elements, and some of the modules can be implemented in the form of hardware.
  • the determining module may be a separately established processing element, or it may be integrated in a certain chip of the above-mentioned device for implementation.
  • each step of the above method or each of the above modules may be completed by an integrated logic circuit of hardware in the processor element or instructions in the form of software.
  • each module, unit, sub-unit or sub-module may be one or more integrated circuits configured to implement the above method, for example: one or more application specific integrated circuits (ASIC), or, one or Multiple microprocessors (digital signal processor, DSP), or one or more field programmable gate arrays (Field Programmable Gate Array, FPGA), etc.
  • ASIC application specific integrated circuit
  • DSP digital signal processor
  • FPGA Field Programmable Gate Array
  • the processing element may be a general-purpose processor, such as a central processing unit (CPU) or other processors that can call program codes.
  • these modules can be integrated together and implemented in the form of a system-on-a-chip (SOC).
  • SOC system-on-a-chip

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Quality & Reliability (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

本公开公开了一种资源调度方法、装置、设备及计算机可读存储介质。该方法包括:获取其他节点设备的资源信息,其中,所述资源信息包括:第一资源的信息和第二资源的信息;接收终端的第一请求;根据所述第一请求和所述资源信息,从所述其他节点设备中确定用于为所述终端提供服务的第二节点设备;向所述第二节点设备发送所述第一请求。

Description

资源调度方法、装置、设备及计算机可读存储介质
相关申请的交叉引用
本申请主张在2019年10月25日在中国提交的中国专利申请号No.201911029924.3的优先权,其全部内容通过引用包含于此。
技术领域
本公开涉及通信技术领域,尤其涉及一种资源调度方法、装置、设备及计算机可读存储介质。
背景技术
相关技术中的网络只是提供数据通信的管道,以连接为基础,受制于固定的网络寻址机制。因此,无法满足更高更苛刻的QoE(Quality of Experience,体验质量)要求。
随着云计算及边缘计算的大力发展,网络中的计算资源融入到网络的各个角落,使每一个节点设备都可以成为资源的提供者。用户的请求可以通过调用最近的节点资源来满足,不再局限于某一特定节点,从而可避免造成连接和网络调度资源的浪费。因此,这就要求计算资源节点之间具备互动调度的能力,或者计算任务动态路由的能力。从而不仅能够完成传统的高负载、长连接的任务,也能够及时处理轻量级、短生命周期的计算任务。
因此,需要提出一种资源调度方法,以提高资源的利用率。
发明内容
本公开实施例提供一种资源调度方法、装置、设备及计算机可读存储介质,以提高资源利用率。
第一方面,本公开实施例提供了一种资源调度方法,应用于第一节点设备,包括:
获取其他节点设备的资源信息,其中,所述资源信息包括:第一资源的信息和第二资源的信息;
接收终端的第一请求;
根据所述第一请求和所述资源信息,从所述其他节点设备中确定用于为所述终端提供服务的第二节点设备;
向所述第二节点设备发送所述第一请求。
其中,所述第一资源的信息和所述第二资源的信息是所述其他节点设备通过路由表发送的;
所述第一资源包括以下至少一项:任务连接数,CPU、内存、资源形态部署位置的供应的能力。
其中,所述获取其他节点设备的资源信息,包括:
获取所述其他节点设备通过BGP(Border Gateway Protocol,边界网关协议)更新消息发送的资源信息,其中,所述第一资源的信息和所述第二资源的信息携带在所述更新消息的路径属性字段的TLV(Tag,Length,Value,标签长度内容)格式中。
其中,所述第一请求为业务请求;在所述接收终端的第一请求之后,所述方法还包括:
将所述业务请求映射为资源请求;
所述根据所述第一请求和所述资源信息,从所述其他节点设备中确定用于为所述终端提供服务的第二节点设备,包括:
根据所述资源请求和所述资源信息,从所述其他节点设备中确定用于为所述终端提供服务的第二节点设备;
所述向所述第二节点设备发送所述第一请求,包括:
向所述第二节点设备发送所述资源请求。
其中,在所述向所述第二节点设备发送所述第一请求之后,所述方法还包括:
接收所述第二节点设备的第一响应;
向所述终端发送所述第一响应。
第二方面,本公开实施例提供了一种资源调度方法,应用于第二节点设备,包括:
向其他节点设备发送资源信息,其中,所述资源信息包括:第一资源的 信息和第二资源的信息;
接收所述其他节点设备中的第一节点设备的第一请求;
根据所述第一请求,执行相应的处理。
其中,所述向其他节点设备发送资源信息,包括:
通过路由表向其他节点设备发送资源信息。
其中,所述通过路由表向其他节点设备发送资源信息,包括:
通过BGP更新消息向其他节点设备发送所述资源信息,其中,所述第一资源的信息和所述第二资源的信息携带在所述更新消息的路径属性字段的TLV格式中。
其中,所述第一请求为业务请求;接收所述其他节点设备中的第一节点设备的第一请求,所述方法还包括:
将所述业务请求映射为资源请求;
所述根据所述第一请求,执行相应的处理,包括:
根据所述资源请求,执行相应的处理。
其中,在所述根据所述第一请求,执行相应的处理之后,所述方法还包括:
向所述第一节点设备发送第一响应。
第三方面,本公开实施例提供了一种资源调度方法,应用于终端,包括:
向第一节点设备发送第一请求,使得所述第一节点设备根据所述第一请求以及从其他节点设备获取的资源信息,从所述其他节点设备中确定用于为所述终端提供服务的第二节点设备,其中,所述资源信息包括第一资源的信息和第二资源的信息;
接收所述第一节点设备发送的第一响应。
其中,所述第一资源的信息和所述第二资源的信息是所述其他节点设备通过路由表发送的。
其中,所述第一请求为业务请求;
在所述向第一节点设备发送第一请求之前,所述方法还包括:
将所述业务请求映射为资源请求;
所述向第一节点设备发送第一请求,包括:
向所述第一节点设备发送所述资源请求。
第四方面,本公开实施例提供了一种资源调度装置,应用于第一节点设备,包括:
获取模块,用于获取其他节点设备的资源信息,其中,所述资源信息包括:第一资源的信息和第二资源的信息;
第一接收模块,用于接收终端的第一请求;
确定模块,用于根据所述第一请求和所述资源信息,从所述其他节点设备中确定用于为所述终端提供服务的第二节点设备;
第一发送模块,用于向所述第二节点设备发送所述第一请求。
其中,所述第一资源的信息和所述第二资源的信息是所述其他节点设备通过路由表发送的;
所述第一资源包括以下至少一项:任务连接数,CPU、内存、资源形态部署位置的供应的能力。
其中,所述获取模块具体用于,获取所述其他节点设备通过边界网关协议BGP更新消息发送的资源信息,其中,所述第一资源的信息和所述第二资源的信息携带在所述更新消息的路径属性字段的标签长度内容TLV格式中。
其中,所述装置还包括:映射模块,用于将所述业务请求映射为资源请求;所述确定模块具体用于,根据所述资源请求和所述资源信息,从所述其他节点设备中确定用于为所述终端提供服务的第二节点设备;所述第一发送模块具体用于,向所述第二节点设备发送所述资源请求。
其中,所述装置还包括:第二接收模块,用于接收所述第二节点设备的第一响应;第二发送模块,用于向所述终端发送所述第一响应。
第五方面,本公开实施例提供了一种资源调度装置,应用于第二节点设备,包括:
第一发送模块,用于向其他节点设备发送资源信息,其中,所述资源信息包括:第一资源的信息和第二资源的信息;
第一接收模块,用于接收所述其他节点设备中的第一节点设备的第一请求;
处理模块,用于根据所述第一请求,执行相应的处理。
其中,所述第一发送模块具体用于,通过路由表向其他节点设备发送资源信息。
其中,所述第一发送模块具体用于,通过BGP更新消息向其他节点设备发送所述资源信息,其中,所述第一资源的信息和所述第二资源的信息携带在所述更新消息的路径属性字段的TLV格式中。
其中,所述装置还包括:映射模块,用于将所述业务请求映射为资源请求;所述处理模块具体用于,根据所述资源请求,执行相应的处理。
第六方面,本公开实施例提供了一种资源调度装置,应用于终端,包括:
发送模块,用于向第一节点设备发送第一请求,使得所述第一节点设备根据所述第一请求以及从其他节点设备获取的资源信息,从所述其他节点设备中确定用于为所述终端提供服务的第二节点设备,其中,所述资源信息包括第一资源的信息和第二资源的信息;
接收模块,用于接收所述第一节点设备发送的第一响应。
其中,所述第一资源的信息和所述第二资源的信息是所述其他节点设备通过路由表发送的。
其中,所述装置还包括:映射模块,用于将所述业务请求映射为资源请求;所述发送模块具体用于,向所述第一节点设备发送所述资源请求。
第七方面,本公开实施例提供了一种资源调度装置,应用于第一节点设备,包括:处理器和收发器;
所述收发器,用于获取其他节点设备的资源信息,其中,所述资源信息包括:第一资源的信息和第二资源的信息;接收终端的第一请求;
所述处理器,用于根据所述第一请求和所述资源信息,从所述其他节点设备中确定用于为所述终端提供服务的第二节点设备;
所述收发器,还用于向所述第二节点设备发送所述第一请求。
其中,所述第一资源的信息和所述第二资源的信息是所述其他节点设备通过路由表发送的;
所述第一资源包括以下至少一项:任务连接数,CPU、内存、资源形态部署位置的供应的能力。
其中,所述收发器还用于,获取所述其他节点设备通过边界网关协议BGP 更新消息发送的资源信息,其中,所述第一资源的信息和所述第二资源的信息携带在所述更新消息的路径属性字段的标签长度内容TLV格式中。
其中,所述处理器还用于,将所述业务请求映射为资源请求;根据所述资源请求和所述资源信息,从所述其他节点设备中确定用于为所述终端提供服务的第二节点设备;所述收发器还用于,向所述第二节点设备发送所述资源请求。
其中,所述收发器还用于,接收所述第二节点设备的第一响应;向所述终端发送所述第一响应。
第八方面,本公开实施例提供了一种资源调度装置,应用于第二节点设备,包括:处理器和收发器;
所述收发器,用于向其他节点设备发送资源信息,其中,所述资源信息包括:第一资源的信息和第二资源的信息;接收所述其他节点设备中的第一节点设备的第一请求;
所述处理器,用于根据所述第一请求,执行相应的处理。
其中,所述收发器还用于,通过路由表向其他节点设备发送资源信息。
其中,所述收发器还用于,通过BGP更新消息向其他节点设备发送所述资源信息,其中,所述第一资源的信息和所述第二资源的信息携带在所述更新消息的路径属性字段的TLV格式中。
其中,所述处理器还用于,将所述业务请求映射为资源请求;根据所述资源请求,执行相应的处理。
其中,所述收发器还用于,向所述第一节点设备发送第一响应。
第九方面,本公开实施例提供了一种资源调度装置,应用于终端,包括:处理器和收发器;
所述收发器,用于向第一节点设备发送第一请求,使得所述第一节点设备根据所述第一请求以及从其他节点设备获取的资源信息,从所述其他节点设备中确定用于为所述终端提供服务的第二节点设备,其中,所述资源信息包括第一资源的信息和第二资源的信息;接收所述第一节点设备发送的第一响应。
其中,所述处理器还用于,将所述业务请求映射为资源请求;所述收发 器还用于,向所述第一节点设备发送所述资源请求。
其中,所述第一资源的信息和所述第二资源的信息是所述其他节点设备通过路由表发送的。
第十方面,本公开实施例提供了一种通信设备,包括:收发器、存储器、处理器及存储在所述存储器上并可在所述处理器上运行的计算机程序;
所述处理器,用于读取存储器中的程序实现如第一方面所述的方法中的步骤;或者实现如第二方面所述的方法中的步骤;或者实现如第三方面所述的方法中的步骤。
第十一方面,本公开实施例提供了一种计算机可读存储介质,用于存储计算机程序,所述计算机程序被处理器执行时实现如第一方面所述的方法中的步骤;或者实现如第二方面所述的方法中的步骤;或者实现如第三方面所述的方法中的步骤。
在本公开实施例中,第一节点设备可获取其他节点设备发送的资源信息。当接收到终端的请求时,第一节点设备可根据获得的信息从其他节点设备中为终端选择可为其提供服务的节点设备。因此,利用本公开实施例的方案,第一节点设备可从其他节点设备调度资源为终端服务,从而提高了资源的利用率。
附图说明
为了更清楚地说明本公开实施例的技术方案,下面将对本公开实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本公开的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。
图1是本公开实施例提供的资源调度方法的流程图的流程图之一;
图2是本公开实施例提供的资源调度方法的流程图的流程图之二;
图3是本公开实施例提供的资源调度方法的流程图的流程图之三;
图4是本公开实施例提供的资源调度方法的流程图的流程图之四;
图5是本公开实施例提供的资源调度方法的流程图的流程图之五;
图6是本公开实施例提供的资源调度装置的结构图之一;
图7是本公开实施例提供的资源调度装置的结构图之二;
图8是本公开实施例提供的资源调度装置的结构图之三;
图9是本公开实施例提供的资源调度装置的结构图之四;
图10是本公开实施例提供的资源调度装置的结构图之五;
图11是本公开实施例提供的资源调度装置的结构图之六;
图12是本公开实施例提供的通信设备的结构图之一;
图13是本公开实施例提供的通信设备的结构图之二;
图14是本公开实施例提供的通信设备的结构图之三。
具体实施方式
下面将结合本公开实施例中的附图,对本公开实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本公开一部分实施例,而不是全部的实施例。基于本公开中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本公开保护的范围。
参见图1,图1是本公开实施例提供的资源调度方法的流程图,应用于第一节点设备,如图1所示,包括以下步骤:
步骤101、获取其他节点设备的资源信息。
其中,所述资源信息包括:第一资源的信息和第二资源的信息。所述第一资源的信息和所述第二资源的信息是所述其他节点设备通过路由表发送的。
在本公开实施例中,获取所述其他节点设备通过BGP(Border Gateway Protocol,边界网关协议)更新(update)消息发送的资源信息,其中,所述第一资源的信息和所述第二资源的信息携带在所述更新消息的路径属性(path attributes)字段的TLV格式中。其中,该TLV格式中还可携带service ID(服务标识)。
在此,所述第一资源的信息也可称为计算资源的信息,计算资源可包括:任务连接数,CPU、内存、资源形态(物理还是虚拟的)部署位置等供应的能力。所述第二资源的信息也可称为网络资源的信息,网络资源可包括网络拓扑,带宽、时延、抖动等需求等。
步骤102、接收终端的第一请求。
其中,所述第一请求可以是业务请求,也可以是资源请求,所述资源请求用于请求计算资源和网络资源。所述业务请求可以是对带宽、时延、任务的计算资源请求。
如果是业务请求,那么第一节点设备需要将该业务请求映射为资源请求。其中,业务请求消息中可包括:内容ID(标识),存储资源需求,计算资源需求,时延需求等信息。
步骤103、根据所述第一请求和所述资源信息,从所述其他节点设备中确定用于为所述终端提供服务的第二节点设备。
在本公开实施例中,第一节点设备在确定第二节点设备时,可综合考虑业务请求以及各个节点设备的计算、存储和网络资源等。
如果终端发送的是资源请求或者第一节点设备将终端的业务请求映射为了资源请求,那么,在步骤103中,则是根据资源映射请求和所述资源信息,从所述其他节点设备中确定用于为所述终端提供服务的第二节点设备。
步骤104、向所述第二节点设备发送所述第一请求。
如果终端发送的是资源请求或者第一节点设备将终端的业务请求映射为了资源请求,那么,在步骤104中,则是向第二节点设备发送资源请求。
由以上可以看出,在本公开实施例中,第一节点设备可获取其他节点设备通过路由表发送的资源信息。当接收到终端的请求时,第一节点设备可根据获得的信息从其他节点设备中为终端选择可为其提供服务的节点设备。因此,利用本公开实施例的方案,第一节点设备可从其他节点设备调度资源为终端服务,从而提高了资源的利用率,提高了用户体验。
在上述实施例的基础上,当第二节点设备执行完相应的操作之后,还可向第一节点设备发送第一响应。相应的,第一节点设备接收第二节点设备的第一响应,并向所述终端发送所述第一响应。
参见图2,图2是本公开实施例提供的资源调度方法的流程图,应用于第二节点设备,如图2所示,包括以下步骤:
步骤201、向其他节点设备发送资源信息,其中,所述资源信息包括:第一资源的信息和第二资源的信息。
在本公开实施例中,通过路由表向其他节点设备发送资源信息。
第二节点设备可通过BGP更新(update)消息发送的资源信息,其中,所述第一资源的信息和所述第二资源的信息携带在所述更新消息的路径属性字段的TLV格式中。其中,该TLV格式中还可携带service ID(服务标识)。
其中,所述第一资源的信息可包括任务连接数、CPU/GPU(Graphics Processing Unit,图形处理单元)的信息、内存、硬盘等信息。
对于第二节点设备来说,它除了可向其他节点设备发送它自身的资源信息之外,还可将它收到的其他节点设备的资源信息也一起发送。
步骤202、接收所述其他节点设备中的第一节点设备的第一请求。
其中,所述第一请求可以是业务请求,也可以是资源请求,所述资源请求用于请求计算资源和网络资源。
如果是业务请求,那么第二节点设备需要将该业务请求映射为资源请求。其中,业务请求消息中可包括:内容ID(标识),存储资源需求,计算资源需求,时延需求等信息。
步骤203、根据所述第一请求,执行相应的处理。
如果所述第一请求为资源请求,那么,在此步骤中,则根据资源请求执行响应的处理。在执行处理的过程中,可根据第一请求为终端准备相应的计算资源或者网络资源。
由以上可以看出,在本公开实施例中,第一节点设备可获取其他节点设备通过路由表发送的资源信息。当接收到终端的请求时,第一节点设备可根据获得的信息从其他节点设备中为终端选择可为其提供服务的节点设备。因此,利用本公开实施例的方案,第一节点设备可从其他节点设备调度资源为终端服务,从而提高了资源的利用率,提高了用户体验。
在上述实施例的基础上,当第二节点设备执行完相应的操作之后,还可向第一节点设备发送第一响应。
参见图3,图3是本公开实施例提供的资源调度方法的流程图,应用于终端,如图3所示,包括以下步骤:
步骤301、向第一节点设备发送第一请求,使得所述第一节点设备根据所述第一请求以及从其他节点设备获取的资源信息,从所述其他节点设备中确定用于为所述终端提供服务的第二节点设备,其中,所述资源信息包括第一 资源的信息和第二资源的信息。所述第一资源的信息和所述第二资源的信息是所述其他节点设备通过路由表发送的。
如果所述第一请求为业务请求,那么,在步骤301之前还可将第一请求映射为资源请求。在此步骤中,则是向第一节点设备发送资源映射请求。
步骤302、接收所述第一节点设备发送的第一响应。
由以上可以看出,在本公开实施例中,第一节点设备可获取其他节点设备通过路由表发送的资源信息。当接收到终端的请求时,第一节点设备可根据获得的信息从其他节点设备中为终端选择可为其提供服务的节点设备。因此,利用本公开实施例的方案,第一节点设备可从其他节点设备调度资源为终端服务,从而提高了资源的利用率,提高了用户体验。
参见图4,图4是本公开实施例提供的资源调度方法的流程图。如图4所示,包括以下步骤:
步骤401、终端向第一接入设备发送请求消息。
在此,终端选择第一接入设备作为接入节点,负责获取各个节点设备的可用的计算和网络资源。其中,第一接入设备的选择可以有多种方式。例如,终端可以选择接入第一跳路由器作为第一接入设备。
其中,各个节点设备通过广播的方式主动地将自身的或者获取的其他节点设备计算资源和网络资源向周围的节点更新。其中,计算资源可通过在路由表中增减加计算资源模板信息发送。网络资源也可通过路由表的形式发送。其中,计算模板信息包括:任务连接数、CPU/GPU、内存、硬盘等信息。
其中,该请求消息可以是业务请求消息,也可以是资源请求消息。也就是说,终端的业务请求消息需要被映射为资源请求消息。而终端、第一接入设备以及后续第一接入设备选择的为终端提供服务的接入设备均可执行将业务请求消息映射为资源请求消息的操作。在本公开实施例中,并不对由哪个设备执行上述映射操作进行限定。
步骤402、第一接入设备接收到业请求消息后,第一接入设备中的计算网络资源功能模块根据请求消息,将请求消息调度到相应的节点设备中执行。
其中,第一接入设备的具体的调度机制需要综合考虑请求消息以及各个节点设备的计算、存储和网络资源等。其中请求消息中可包括:内容ID,存 储资源需求,计算资源需求,时延需求等信息。
步骤403、第二节点设备执行相应的处理。
步骤404、第二节点设备向第一接入设备发送响应消息。
步骤405、第一接入设备向终端发送响应消息。
参见图5,图5是本公开实施例提供的资源调度方法的流程图。如图5所示,包括以下步骤:
步骤501、各节点设备向其他节点设备发送更新消息,广播计算资源和网络资源。
在本公开实施例中,节点设备可通过BGP更新(update)消息发送资源信息,包括:第一资源的信息和第二资源的信息,其中,所述第一资源的信息和所述第二资源的信息携带在所述更新消息的路径属性字段的TLV格式中。其中,该TLV格式中还可携带service ID(服务标识)。
对于某个节点设备来说,它除了可向其他节点设备发送它自身的资源信息之外,还可将它收到的其他节点设备的资源信息也一起发送。
在图5中仅以四个节点设备为例描述的广播计算资源和网络资源的过程。在实际应用中,节点设备的个数可以根据需要设置,且广播计算资源和网络资源的过程和图中类似。而且,在图5中,第一接入设备也可向其他节点设备广播计算资源和网络资源,过程和其他节点设备的相同。
步骤502、终端向第一接入设备发送请求消息。
步骤503、第一接入设备接收到业请求消息后,第一接入设备中的计算网络资源功能模块根据请求消息,将请求消息调度到相应的节点设备中执行。
步骤504、第二节点设备执行相应的处理。
步骤505、第二节点设备向第一接入设备发送响应消息。
步骤506、第一接入设备向终端发送响应消息。
其中,步骤502-506的描述可参照前述步骤401-405的描述。
在本公开实施例中,节点设备将当前的计算能力状况和网络状况作为路由信息发布到网络,网络将计算任务报文路由到相应的计算节点,从而提高了用户体验,提高了计算资源利用率以及网络效率。而且,第二-第四节点设备均可作为第一接入设备。
本公开实施例还提供了一种资源调度装置,应用于第一节点设备。参见图6,图6是本公开实施例提供的资源调度装置的结构图。如图6所示,所述资源调度装置包括:
获取模块601,用于获取其他节点设备的资源信息,其中,所述资源信息包括:第一资源的信息和第二资源的信息;第一接收模块602,用于接收终端的第一请求;确定模块603,用于根据所述第一请求和所述资源信息,从所述其他节点设备中确定用于为所述终端提供服务的第二节点设备;第一发送模块604,用于向所述第二节点设备发送所述第一请求。
其中,所述第一资源的信息和所述第二资源的信息是所述其他节点设备通过路由表发送的;
所述第一资源包括以下至少一项:任务连接数,CPU、内存、资源形态部署位置的供应的能力。
可选的,所述获取模块601具体用于,获取所述其他节点设备通过BGP更新消息发送的资源信息,其中所述第一资源的信息和所述第二资源的信息携带在所述更新消息的路径属性字段的TLV格式中。
可选的,所述装置还包括:映射模块,用于将所述业务请求映射为资源请求;所述确定模块603具体用于,根据所述资源请求和所述资源信息,从所述其他节点设备中确定用于为所述终端提供服务的第二节点设备;所述第一发送模块604具体用于,向所述第二节点设备发送所述资源请求。
可选的,所述装置还包括:第二接收模块,用于接收所述第二节点设备的第一响应;第二发送模块,用于向所述终端发送所述第一响应。
本公开实施例提供的资源调度装置,可以执行上述方法实施例,其实现原理和技术效果类似,本实施例此处不再赘述。
本公开实施例还提供了一种资源调度装置,应用于第二节点设备。参见图7,图7是本公开实施例提供的资源调度装置的结构图。如图7所示,所述资源调度装置包括:
第一发送模块701,用于通过路由表向其他节点设备发送资源信息,其中,所述资源信息包括:第一资源的信息和第二资源的信息;第一接收模块702,用于接收所述其他节点设备中的第一节点设备的第一请求;处理模块703, 用于根据所述第一请求,执行相应的处理。
其中,所述第一发送模块701具体用于,通过路由表向其他节点设备发送资源信息。
可选的,所述第一发送模块701具体用于,通过BGP更新消息向其他节点设备发送所述资源信息,其中,所述第一资源的信息和所述第二资源的信息携带在所述更新消息的路径属性字段的TLV格式中。
可选的,所述装置还包括:映射模块,用于将所述业务请求映射为资源请求;所述处理模块703具体用于,根据所述资源请求,执行相应的处理。
本公开实施例提供的资源调度装置,可以执行上述方法实施例,其实现原理和技术效果类似,本实施例此处不再赘述。
本公开实施例还提供了一种资源调度装置,应用于终端。参见图8,图8是本公开实施例提供的资源调度装置的结构图。如图8所示,所述资源调度装置包括:
发送模块801,用于向第一节点设备发送第一请求,使得所述第一节点设备根据所述第一请求以及从其他节点设备获取的资源信息,从所述其他节点设备中确定用于为所述终端提供服务的第二节点设备,其中,所述资源信息包括第一资源的信息和第二资源的信息;接收模块802,用于接收所述第一节点设备发送的第一响应。
其中,所述第一资源的信息和所述第二资源的信息是所述其他节点设备通过路由表发送的。
可选的,所述装置还包括:映射模块,用于将所述业务请求映射为资源请求;所述发送模块801具体用于,向所述第一节点设备发送所述资源请求。
本公开实施例提供的资源调度装置,可以执行上述方法实施例,其实现原理和技术效果类似,本实施例此处不再赘述。
本公开实施例还提供了一种资源调度装置,应用于第一节点设备。参见图9,图9是本公开实施例提供的资源调度装置的结构图。如图9所示,所述资源调度装置包括:处理器901和收发器902。
所述收发器902,用于获取其他节点设备的资源信息,其中,所述资源信息包括:第一资源的信息和第二资源的信息;接收终端的第一请求;
所述处理器901,用于根据所述第一请求和所述资源信息,从所述其他节点设备中确定用于为所述终端提供服务的第二节点设备;
所述收发器902,还用于向所述第二节点设备发送所述第一请求。
其中,所述第一资源的信息和所述第二资源的信息是所述其他节点设备通过路由表发送的;
所述第一资源包括以下至少一项:任务连接数,CPU、内存、资源形态部署位置的供应的能力。
其中,所述收发器902还用于,获取所述其他节点设备通过边界网关协议BGP更新消息发送的资源信息,其中,所述第一资源的信息和所述第二资源的信息携带在所述更新消息的路径属性字段的标签长度内容TLV格式中。
其中,所述处理器901还用于,将所述业务请求映射为资源请求;根据所述资源请求和所述资源信息,从所述其他节点设备中确定用于为所述终端提供服务的第二节点设备;所述收发器还用于,向所述第二节点设备发送所述资源请求。
其中,所述收发器902还用于,接收所述第二节点设备的第一响应;向所述终端发送所述第一响应。
本公开实施例提供的资源调度装置,可以执行上述方法实施例,其实现原理和技术效果类似,本实施例此处不再赘述。
本公开实施例还提供了一种资源调度装置,应用于第二节点设备。参见图10,图10是本公开实施例提供的资源调度装置的结构图。如图10所示,所述资源调度装置包括:处理器1001和收发器1002。
所述收发器1002,用于通过路由表向其他节点设备发送资源信息,其中,所述资源信息包括:第一资源的信息和第二资源的信息;接收所述其他节点设备中的第一节点设备的第一请求;
所述处理器1001,用于根据所述第一请求,执行相应的处理。
其中,所述收发器1002还用于,通过路由表向其他节点设备发送资源信息。
其中,所述收发器1002还用于,通过BGP更新消息向其他节点设备发送所述资源信息,其中,所述第一资源的信息和所述第二资源的信息携带在 所述更新消息的路径属性字段的TLV格式中。
其中,所述处理器1001还用于,将所述业务请求映射为资源请求;根据所述资源请求,执行相应的处理。
其中,所述收发器1002还用于,向所述第一节点设备发送第一响应。
本公开实施例提供的资源调度装置,可以执行上述方法实施例,其实现原理和技术效果类似,本实施例此处不再赘述。
本公开实施例还提供了一种资源调度装置,应用于终端。参见图11,图11是本公开实施例提供的资源调度装置的结构图。如图11所示,所述资源调度装置包括:处理器1101和收发器1102。
所述收发器1102,用于向第一节点设备发送第一请求,使得所述第一节点设备根据所述第一请求以及从其他节点设备获取的资源信息,从所述其他节点设备中确定用于为所述终端提供服务的第二节点设备,其中,所述资源信息包括第一资源的信息和第二资源的信息;接收所述第一节点设备发送的第一响应。
其中,所述第一资源的信息和所述第二资源的信息是所述其他节点设备通过路由表发送的。
其中,所述处理器1101还用于,将所述业务请求映射为资源请求;所述收发器还用于,向所述第一节点设备发送所述资源请求。
本公开实施例提供的资源调度装置,可以执行上述方法实施例,其实现原理和技术效果类似,本实施例此处不再赘述。
如图12所示,本公开实施例的通信设备,应用于第一节点设备,包括:
处理器1200,用于读取存储器1220中的程序,执行下列过程:通过收发器1210获取其他节点设备的资源信息,其中,所述资源信息包括:第一资源的信息和第二资源的信息;接收终端的第一请求;根据所述第一请求和所述资源信息,从所述其他节点设备中确定用于为所述终端提供服务的第二节点设备;向所述第二节点设备发送所述第一请求。
收发器1210,用于在处理器1200的控制下接收和发送数据。
其中,在图12中,总线架构可以包括任意数量的互联的总线和桥,具体由处理器1200代表的一个或多个处理器和存储器1220代表的存储器的各种 电路链接在一起。总线架构还可以将诸如外围设备、稳压器和功率管理电路等之类的各种其他电路链接在一起,这些都是本领域所公知的,因此,本文不再对其进行进一步描述。总线接口提供接口。收发器1210可以是多个元件,即包括发送机和收发器,提供用于在传输介质上与各种其他装置通信的单元。处理器1200负责管理总线架构和通常的处理,存储器1220可以存储处理器1200在执行操作时所使用的数据。
处理器1200负责管理总线架构和通常的处理,存储器1220可以存储处理器1200在执行操作时所使用的数据。
其中,所述第一资源的信息和所述第二资源的信息是所述其他节点设备通过路由表发送的;
所述第一资源包括以下至少一项:任务连接数,CPU、内存、资源形态部署位置的供应的能力。
处理器1200还用于读取所述计算机程序,执行如下步骤:获取所述其他节点设备通过边界网关协议BGP更新消息发送的资源信息,其中,所述第一资源的信息和所述第二资源的信息携带在所述更新消息的路径属性字段的标签长度内容TLV格式中。
处理器1200还用于读取所述计算机程序,执行如下步骤:将所述业务请求映射为资源请求;根据所述资源请求和所述资源信息,从所述其他节点设备中确定用于为所述终端提供服务的第二节点设备;向所述第二节点设备发送所述资源请求。
处理器1200还用于读取所述计算机程序,执行如下步骤:接收所述第二节点设备的第一响应;向所述终端发送所述第一响应。
如图13所示,本公开实施例的通信设备,应用于第二节点设备,包括:
处理器1300,用于读取存储器1320中的程序,执行下列过程:通过收发器1310通过路由表向其他节点设备发送资源信息,其中,所述资源信息包括:第一资源的信息和第二资源的信息;接收所述其他节点设备中的第一节点设备的第一请求;根据所述第一请求,执行相应的处理。
收发器1310,用于在处理器1300的控制下接收和发送数据。
其中,在图13中,总线架构可以包括任意数量的互联的总线和桥,具体 由处理器1300代表的一个或多个处理器和存储器1320代表的存储器的各种电路链接在一起。总线架构还可以将诸如外围设备、稳压器和功率管理电路等之类的各种其他电路链接在一起,这些都是本领域所公知的,因此,本文不再对其进行进一步描述。总线接口提供接口。收发器1310可以是多个元件,即包括发送机和收发器,提供用于在传输介质上与各种其他装置通信的单元。处理器1300负责管理总线架构和通常的处理,存储器1320可以存储处理器1300在执行操作时所使用的数据。
处理器1300负责管理总线架构和通常的处理,存储器1320可以存储处理器1300在执行操作时所使用的数据。
处理器1300还用于读取所述计算机程序,执行如下步骤:
通过路由表向其他节点设备发送资源信息。
处理器1300还用于读取所述计算机程序,执行如下步骤:
通过BGP更新消息向其他节点设备发送所述资源信息,其中,所述第一资源的信息和所述第二资源的信息携带在所述更新消息的路径属性字段的TLV格式中。
处理器1300还用于读取所述计算机程序,执行如下步骤:将所述业务请求映射为资源请求;根据所述资源请求,执行相应的处理。
处理器1300还用于读取所述计算机程序,执行如下步骤:向所述第一节点设备发送第一响应。
如图14所示,本公开实施例的通信设备,应用于终端,包括:
处理器1400,用于读取存储器1420中的程序,执行下列过程:
通过收发器1410向第一节点设备发送第一请求,使得所述第一节点设备根据所述第一请求以及从其他节点设备获取的资源信息,从所述其他节点设备中确定用于为所述终端提供服务的第二节点设备,其中,所述资源信息包括第一资源的信息和第二资源的信息;接收所述第一节点设备发送的第一响应。
收发器1410,用于在处理器1400的控制下接收和发送数据。
其中,所述第一资源的信息和所述第二资源的信息是所述其他节点设备通过路由表发送的。
其中,在图14中,总线架构可以包括任意数量的互联的总线和桥,具体由处理器1400代表的一个或多个处理器和存储器1420代表的存储器的各种电路链接在一起。总线架构还可以将诸如外围设备、稳压器和功率管理电路等之类的各种其他电路链接在一起,这些都是本领域所公知的,因此,本文不再对其进行进一步描述。总线接口提供接口。收发器1410可以是多个元件,即包括发送机和接收机,提供用于在传输介质上与各种其他装置通信的单元。针对不同的用户设备,用户接口1430还可以是能够外接内接需要设备的接口,连接的设备包括但不限于小键盘、显示器、扬声器、麦克风、操纵杆等。
处理器1400负责管理总线架构和通常的处理,存储器1420可以存储处理器1400在执行操作时所使用的数据。
处理器1400还用于读取所述计算机程序,执行如下步骤:将所述业务请求映射为资源请求;向所述第一节点设备发送所述资源请求。
此外,本公开实施例的计算机可读存储介质,用于存储计算机程序,所述计算机程序可被处理器执行实现以下步骤:
获取其他节点设备的资源信息,其中,所述资源信息包括:第一资源的信息和第二资源的信息;
接收终端的第一请求;
根据所述第一请求和所述资源信息,从所述其他节点设备中确定用于为所述终端提供服务的第二节点设备;
向所述第二节点设备发送所述第一请求。
其中,所述第一资源的信息和所述第二资源的信息是所述其他节点设备通过路由表发送的;
所述第一资源包括以下至少一项:任务连接数,CPU、内存、资源形态部署位置的供应的能力。
其中,所述获取其他节点设备的资源信息,包括:
获取所述其他节点设备通过边界网关协议BGP更新消息发送的资源信息,其中,所述第一资源的信息和所述第二资源的信息携带在所述更新消息的路径属性字段的标签长度内容TLV格式中。
其中,所述第一请求为业务请求;在所述接收终端的资源信息第一请求 之后,所述方法还包括:
将所述业务请求映射为资源请求;
所述根据所述第一请求和所述资源信息,从所述其他节点设备中确定用于为所述终端提供服务的第二节点设备,包括:
根据所述资源请求和所述资源信息,从所述其他节点设备中确定用于为所述终端提供服务的第二节点设备;
所述向所述第二节点设备发送所述第一请求,包括:
向所述第二节点设备发送所述资源请求。
其中,在所述向所述第二节点设备发送所述第一请求之后,所述方法还包括:
接收所述第二节点设备的第一响应;
向所述终端发送所述第一响应。
此外,本公开实施例的计算机可读存储介质,用于存储计算机程序,所述计算机程序可被处理器执行实现以下步骤:
向其他节点设备发送资源信息,其中,所述资源信息包括:第一资源的信息和第二资源的信息;
接收所述其他节点设备中的第一节点设备的第一请求;
根据所述第一请求,执行相应的处理。
其中,所述向其他节点设备发送资源信息,包括:
通过路由表向其他节点设备发送资源信息。
其中,所述通过路由表向其他节点设备发送资源信息,包括:
通过BGP更新消息向其他节点设备发送所述资源信息,其中,所述第一资源的信息和所述第二资源的信息携带在所述更新消息的路径属性字段的TLV格式中。
其中,所述第一请求为业务请求;接收所述其他节点设备中的第一节点设备的第一请求,所述方法还包括:
将所述业务请求映射为资源请求;
所述根据所述第一请求,执行相应的处理,包括:
根据所述资源请求,执行相应的处理。
其中,在所述根据所述第一请求,执行相应的处理之后,所述方法还包括:
向所述第一节点设备发送第一响应。
此外,本公开实施例的计算机可读存储介质,用于存储计算机程序,所述计算机程序可被处理器执行实现以下步骤:
向第一节点设备发送第一请求,使得所述第一节点设备根据所述第一请求以及从其他节点设备获取的资源信息,从所述其他节点设备中确定用于为所述终端提供服务的第二节点设备,其中,所述资源信息包括第一资源的信息和第二资源的信息;
接收所述第一节点设备发送的第一响应。
其中,所述第一资源的信息和所述第二资源的信息是所述其他节点设备通过路由表发送的。
其中,所述第一请求为业务请求;
在所述向第一节点设备发送第一请求之前,所述方法还包括:
将所述业务请求映射为资源请求;
所述向第一节点设备发送第一请求,包括:
向所述第一节点设备发送所述资源请求。
在本申请所提供的几个实施例中,应该理解到,所揭露方法和装置,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。
另外,在本公开各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理包括,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用硬件加软件功能单元的形式实现。
上述以软件功能单元的形式实现的集成的单元,可以存储在一个计算机 可读取存储介质中。上述软件功能单元存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本公开各个实施例所述收发方法的部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。
需要说明的是,应理解以上网络设备和终端的各个模块的划分仅仅是一种逻辑功能的划分,实际实现时可以全部或部分集成到一个物理实体上,也可以物理上分开。且这些模块可以全部以软件通过处理元件调用的形式实现;也可以全部以硬件的形式实现;还可以部分模块通过处理元件调用软件的形式实现,部分模块通过硬件的形式实现。例如,确定模块可以为单独设立的处理元件,也可以集成在上述装置的某一个芯片中实现,此外,也可以以程序代码的形式存储于上述装置的存储器中,由上述装置的某一个处理元件调用并执行以上确定模块的功能。其它模块的实现与之类似。此外这些模块全部或部分可以集成在一起,也可以独立实现。这里所述的处理元件可以是一种集成电路,具有信号的处理能力。在实现过程中,上述方法的各步骤或以上各个模块可以通过处理器元件中的硬件的集成逻辑电路或者软件形式的指令完成。
例如,各个模块、单元、子单元或子模块可以是被配置成实施以上方法的一个或多个集成电路,例如:一个或多个特定集成电路(Application Specific Integrated Circuit,ASIC),或,一个或多个微处理器(digital signal processor,DSP),或,一个或者多个现场可编程门阵列(Field Programmable Gate Array,FPGA)等。再如,当以上某个模块通过处理元件调度程序代码的形式实现时,该处理元件可以是通用处理器,例如中央处理器(Central Processing Unit,CPU)或其它可以调用程序代码的处理器。再如,这些模块可以集成在一起,以片上系统(system-on-a-chip,SOC)的形式实现。
本申请的说明书和权利要求书中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的本申请的实施例,例如除了 在这里图示或描述的那些以外的顺序实施。此外,术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤或单元的过程、方法、系统、产品或设备不必限于清楚地列出的那些步骤或单元,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它步骤或单元。此外,说明书以及权利要求中使用“和/或”表示所连接对象的至少其中之一,例如A和/或B和/或C,表示包含单独A,单独B,单独C,以及A和B都存在,B和C都存在,A和C都存在,以及A、B和C都存在的7种情况。类似地,本说明书以及权利要求中使用“A和B中的至少一个”应理解为“单独A,单独B,或A和B都存在”。
以上所述是本公开的可选实施方式,应当指出,对于本技术领域的普通技术人员来说,在不脱离本公开所述原理的前提下,还可以作出若干改进和润饰,这些改进和润饰也应视为本公开的保护范围。

Claims (21)

  1. 一种资源调度方法,应用于第一节点设备,包括:
    获取其他节点设备的资源信息,其中,所述资源信息包括:第一资源的信息和第二资源的信息;
    接收终端的第一请求;
    根据所述第一请求和所述资源信息,从所述其他节点设备中确定用于为所述终端提供服务的第二节点设备;
    向所述第二节点设备发送所述第一请求。
  2. 根据权利要求1所述的方法,其中,所述第一资源的信息和所述第二资源的信息是所述其他节点设备通过路由表发送的;
    所述第一资源包括以下至少一项:任务连接数,CPU、内存、资源形态部署位置的供应的能力。
  3. 根据权利要求1所述的方法,其中,所述获取其他节点设备的资源信息,包括:
    获取所述其他节点设备通过边界网关协议BGP更新消息发送的资源信息,其中,所述第一资源的信息和所述第二资源的信息携带在所述更新消息的路径属性字段的标签长度内容TLV格式中。
  4. 根据权利要求1所述的方法,其中,所述第一请求为业务请求;在所述接收终端的资源信息第一请求之后,所述方法还包括:
    将所述业务请求映射为资源请求;
    所述根据所述第一请求和所述资源信息,从所述其他节点设备中确定用于为所述终端提供服务的第二节点设备,包括:
    根据所述资源请求和所述资源信息,从所述其他节点设备中确定用于为所述终端提供服务的第二节点设备;
    所述向所述第二节点设备发送所述第一请求,包括:
    向所述第二节点设备发送所述资源请求。
  5. 根据权利要求1所述的方法,其中,在所述向所述第二节点设备发送所述第一请求之后,所述方法还包括:
    接收所述第二节点设备的第一响应;
    向所述终端发送所述第一响应。
  6. 一种资源调度方法,应用于第二节点设备,包括:
    向其他节点设备发送资源信息,其中,所述资源信息包括:第一资源的信息和第二资源的信息;
    接收所述其他节点设备中的第一节点设备的第一请求;
    根据所述第一请求,执行相应的处理。
  7. 根据权利要求6所述的方法,其中,所述向其他节点设备发送资源信息,包括:
    通过路由表向其他节点设备发送资源信息。
  8. 根据权利要求7所述的方法,其中,所述通过路由表向其他节点设备发送资源信息,包括:
    通过BGP更新消息向其他节点设备发送所述资源信息,其中,所述第一资源的信息和所述第二资源的信息携带在所述更新消息的路径属性字段的TLV格式中。
  9. 根据权利要求6所述的方法,其中,所述第一请求为业务请求;在所述接收所述其他节点设备中的第一节点设备的第一请求之后,所述方法还包括:
    将所述业务请求映射为资源请求;
    所述根据所述第一请求,执行相应的处理,包括:
    根据所述资源请求,执行相应的处理。
  10. 根据权利要求6所述的方法,其中,在所述根据所述第一请求,执行相应的处理之后,所述方法还包括:
    向所述第一节点设备发送第一响应。
  11. 一种资源调度方法,应用于终端,包括:
    向第一节点设备发送第一请求,使得所述第一节点设备根据所述第一请求以及从其他节点设备获取的资源信息,从所述其他节点设备中确定用于为所述终端提供服务的第二节点设备,其中,所述资源信息包括第一资源的信息和第二资源的信息;
    接收所述第一节点设备发送的第一响应。
  12. 根据权利要求11所述的方法,其中,所述第一资源的信息和所述第二资源的信息是所述其他节点设备通过路由表发送的。
  13. 根据权利要求11所述的方法,其中,所述第一请求为业务请求;
    在所述向第一节点设备发送第一请求之前,所述方法还包括:
    将所述业务请求映射为资源请求;
    所述向第一节点设备发送第一请求,包括:
    向所述第一节点设备发送所述资源请求。
  14. 一种资源调度装置,应用于第一节点设备,包括:
    获取模块,用于获取其他节点设备的资源信息,其中,所述资源信息包括:第一资源的信息和第二资源的信息;
    第一接收模块,用于接收终端的第一请求;
    确定模块,用于根据所述第一请求和所述资源信息,从所述其他节点设备中确定用于为所述终端提供服务的第二节点设备;
    第一发送模块,用于向所述第二节点设备发送所述第一请求。
  15. 一种资源调度装置,应用于第二节点设备,包括:
    第一发送模块,用于向其他节点设备发送资源信息,其中所述资源信息包括:第一资源的信息和第二资源的信息;
    第一接收模块,用于接收所述其他节点设备中的第一节点设备的第一请求;
    处理模块,用于根据所述第一请求,执行相应的处理。
  16. 一种资源调度装置,应用于终端,包括:
    发送模块,用于向第一节点设备发送第一请求,使得所述第一节点设备根据所述第一请求以及从其他节点设备获取的资源信息,从所述其他节点设备中确定用于为所述终端提供服务的第二节点设备,其中,所述资源信息包括第一资源的信息和第二资源的信息;
    接收模块,用于接收所述第一节点设备发送的第一响应。
  17. 一种资源调度装置,应用于第一节点设备,包括:处理器和收发器;
    所述收发器,用于获取其他节点设备的资源信息,其中,所述资源信息 包括:第一资源的信息和第二资源的信息;接收终端的第一请求;
    所述处理器,用于根据所述第一请求和所述资源信息,从所述其他节点设备中确定用于为所述终端提供服务的第二节点设备;
    所述收发器,还用于向所述第二节点设备发送所述第一请求。
  18. 一种资源调度装置,应用于第二节点设备,包括:处理器和收发器;
    所述收发器,用于向其他节点设备发送资源信息,其中,所述资源信息包括:第一资源的信息和第二资源的信息;接收所述其他节点设备中的第一节点设备的第一请求;
    所述处理器,用于根据所述第一请求,执行相应的处理。
  19. 一种资源调度装置,应用于终端,包括:处理器和收发器;
    所述收发器,用于向第一节点设备发送第一请求,使得所述第一节点设备根据所述第一请求以及从其他节点设备获取的资源信息,从所述其他节点设备中确定用于为所述终端提供服务的第二节点设备,其中,所述资源信息包括第一资源的信息和第二资源的信息;接收所述第一节点设备发送的第一响应。
  20. 一种通信设备,包括:收发器、存储器、处理器及存储在所述存储器上并可在所述处理器上运行的计算机程序;
    所述处理器,用于读取存储器中的程序实现如权利要求1至5中任一项所述的方法中的步骤;或者实现如权利要求6至10中任一项所述的方法中的步骤;或者实现如权利要求11至13中任一项所述的方法中的步骤。
  21. 一种计算机可读存储介质,用于存储计算机程序,所述计算机程序被处理器执行时实现如权利要求1至5中任一项所述的方法中的步骤;或者实现如权利要求6至10中任一项所述的方法中的步骤;或者实现如权利要求11至13中任一项所述的方法中的步骤。
PCT/CN2020/121152 2019-10-25 2020-10-15 资源调度方法、装置、设备及计算机可读存储介质 WO2021078058A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201911029924.3A CN112714146B (zh) 2019-10-25 2019-10-25 一种资源调度方法、装置、设备及计算机可读存储介质
CN201911029924.3 2019-10-25

Publications (1)

Publication Number Publication Date
WO2021078058A1 true WO2021078058A1 (zh) 2021-04-29

Family

ID=75541082

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/121152 WO2021078058A1 (zh) 2019-10-25 2020-10-15 资源调度方法、装置、设备及计算机可读存储介质

Country Status (2)

Country Link
CN (1) CN112714146B (zh)
WO (1) WO2021078058A1 (zh)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114338692A (zh) * 2022-02-17 2022-04-12 上海玄翎科技有限公司 一种基于分片集群扩容的数据平衡方法与设备
CN114363402A (zh) * 2021-12-16 2022-04-15 绿盟科技集团股份有限公司 一种靶场互联方法、系统及电子设备

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107371151A (zh) * 2016-05-12 2017-11-21 中兴通讯股份有限公司 数据传输方法及装置
CN108616600A (zh) * 2018-05-11 2018-10-02 深圳市网心科技有限公司 资源调度方法、客户服务器、节点设备、网络系统和介质
US20190268393A1 (en) * 2018-02-26 2019-08-29 Charter Communciations Operating, LLC Apparatus and methods for packetized content routing and delivery
CN110247699A (zh) * 2019-06-24 2019-09-17 中国空间技术研究院 一种在天地一体化网络中实现天地间资源协同调度的方法
US10419328B1 (en) * 2017-04-11 2019-09-17 Juniper Networks, Inc Apparatus, system, and method for improved memory consumption in network devices via efficient route management

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10481821B2 (en) * 2016-06-28 2019-11-19 Vmware, Inc. Replication protocol with consensus for a decentralized control plane in a computer system
EP4199579B1 (en) * 2016-07-07 2024-06-05 Huawei Technologies Co., Ltd. Network resource management method, apparatus, and system
CN108632321A (zh) * 2017-03-23 2018-10-09 中国联合网络通信集团有限公司 基于大数据平台下资源调度的处理方法和装置
CN109358965B (zh) * 2018-09-25 2022-01-11 杭州朗和科技有限公司 云计算集群资源调度方法、介质、装置和计算设备

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107371151A (zh) * 2016-05-12 2017-11-21 中兴通讯股份有限公司 数据传输方法及装置
US10419328B1 (en) * 2017-04-11 2019-09-17 Juniper Networks, Inc Apparatus, system, and method for improved memory consumption in network devices via efficient route management
US20190268393A1 (en) * 2018-02-26 2019-08-29 Charter Communciations Operating, LLC Apparatus and methods for packetized content routing and delivery
CN108616600A (zh) * 2018-05-11 2018-10-02 深圳市网心科技有限公司 资源调度方法、客户服务器、节点设备、网络系统和介质
CN110247699A (zh) * 2019-06-24 2019-09-17 中国空间技术研究院 一种在天地一体化网络中实现天地间资源协同调度的方法

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114363402A (zh) * 2021-12-16 2022-04-15 绿盟科技集团股份有限公司 一种靶场互联方法、系统及电子设备
CN114363402B (zh) * 2021-12-16 2023-12-26 绿盟科技集团股份有限公司 一种靶场互联方法、系统及电子设备
CN114338692A (zh) * 2022-02-17 2022-04-12 上海玄翎科技有限公司 一种基于分片集群扩容的数据平衡方法与设备
CN114338692B (zh) * 2022-02-17 2023-11-10 上海玄翎科技有限公司 一种基于分片集群扩容的数据平衡方法与设备

Also Published As

Publication number Publication date
CN112714146B (zh) 2023-01-13
CN112714146A (zh) 2021-04-27

Similar Documents

Publication Publication Date Title
US11563669B2 (en) Method for implementing network virtualization and related apparatus and communications system
EP4258598A1 (en) Computing power application traffic forwarding method and apparatus
WO2019062836A1 (zh) 网络切片管理方法及其装置
JP6494150B2 (ja) ルーティング規則取得方法、デバイス、およびシステム
CN111224821B (zh) 安全服务部署系统、方法及装置
WO2019042186A1 (zh) 一种网络管理方法及相关设备
US10924966B2 (en) Management method, management unit, and system
CN114095577A (zh) 资源请求方法、装置、算力网元节点及算力应用设备
WO2021249432A1 (zh) 网络自动化编排管理方法、实体、控制器及电子设备
CN108768692A (zh) 一种网络创建方法、相关设备及系统
WO2021078058A1 (zh) 资源调度方法、装置、设备及计算机可读存储介质
US11088869B2 (en) Virtual private network interworking
WO2020156110A1 (zh) 一种路由计算方法以及相关设备
CN110730478A (zh) 切片关联方法、装置、端到端切片编排器及存储介质
EP3091712B1 (en) Smart device for realizing multiple-device collaboration and working method for multiple-device collaboration
WO2018068588A1 (zh) 提供组播业务的方法和软件定义网络控制器
CN113810205A (zh) 服务算力信息的上报、接收方法、服务器及数据中心网关
US20220263765A1 (en) Service Traffic Adjustment Method and Apparatus
US20230269164A1 (en) Method and apparatus for sending route calculation information, device, and storage medium
WO2023179457A1 (zh) 业务连接的标识方法、装置、系统及存储介质
CN116455817A (zh) 一种软件定义云网融合架构及路由实现方法
US11743180B2 (en) System and method for routing traffic onto an MPLS network
EP4250103A1 (en) Method and device for establishing network connection
WO2023274094A1 (zh) 一种处理视频会议中媒体流的方法及相关产品
US20240056703A1 (en) Data Transmission Method, Apparatus, and System

Legal Events

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

Ref document number: 20878565

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205 DATED 26/08/2022)

122 Ep: pct application non-entry in european phase

Ref document number: 20878565

Country of ref document: EP

Kind code of ref document: A1