













技术领域technical field
本发明涉及通信技术领域,尤其涉及一种资源调度方法、装置、设备及计算机可读存储介质。The present invention relates to the field of communication technology, and in particular to a resource scheduling method, device, equipment and computer-readable storage medium.
背景技术Background technique
传统的网络只是提供数据通信的管道,以连接为基础,受制于固定的网络寻址机制。因此,无法满足更高更苛刻的QoE(Quality of Experience,体验质量)要求。The traditional network is only a pipeline for data communication, which is based on connections and is subject to a fixed network addressing mechanism. Therefore, higher and more stringent QoE (Quality of Experience, quality of experience) requirements cannot be met.
随着云计算及边缘计算的大力发展,网络中的计算资源融入到网络的各个角落,使每一个节点设备都可以成为资源的提供者。用户的请求可以通过调用最近的节点资源来满足,不再局限于某一特定节点,从而可避免造成连接和网络调度资源的浪费。因此,这就要求计算资源节点之间具备互动调度的能力,或者计算任务动态路由的能力。从而不仅能够完成传统的高负载、长连接的任务,也能够及时处理轻量级、短生命周期的计算任务。With the vigorous development of cloud computing and edge computing, computing resources in the network are integrated into every corner of the network, so that every node device can become a resource provider. The user's request can be satisfied by invoking the nearest node resource, which is no longer limited to a specific node, thus avoiding the waste of connection and network scheduling resources. Therefore, this requires the ability of interactive scheduling between computing resource nodes, or the ability of dynamic routing of computing tasks. In this way, it can not only complete traditional high-load and long-connection tasks, but also handle lightweight and short-lifetime computing tasks in a timely manner.
因此,需要提出一种资源调度方法,以提高资源的利用率。Therefore, it is necessary to propose a resource scheduling method to improve resource utilization.
发明内容Contents of the invention
本发明实施例提供一种资源调度方法、装置、设备及计算机可读存储介质,以提高资源利用率。Embodiments of the present invention provide a resource scheduling method, device, device, and computer-readable storage medium, so as to improve resource utilization.
第一方面,本发明实施例提供了一种资源调度方法,应用于第一节点设备,包括:In a first aspect, an embodiment of the present invention provides a resource scheduling method, which is applied to a first node device, including:
获取其他节点设备的资源信息,其中,所述资源信息包括:第一资源的信息和第二资源的信息;Acquiring resource information of other node devices, where the resource information includes: information of the first resource and information of the second resource;
接收终端的第一请求;receiving a first request from a terminal;
根据所述第一请求和所述资源信息,从所述其他节点设备中确定用于为所述终端提供服务的第二节点设备;determining a second node device for providing services for the terminal from the other node devices according to the first request and the resource information;
向所述第二节点设备发送所述第一请求。Send the first request to the second node device.
其中,所述第一资源的信息和所述第二资源的信息是所述其他节点设备通过路由表发送的;Wherein, the information of the first resource and the information of the second resource are sent by the other node device through a routing table;
所述第一资源包括以下至少一项:任务连接数,CPU、内存、资源形态部署位置的供应的能力。The first resource includes at least one of the following: the number of task connections, CPU, memory, and provisioning capabilities of resource form deployment locations.
其中,所述获取其他节点设备的资源信息,包括:Wherein, the acquisition of resource information of other node devices includes:
获取所述其他节点设备通过BGP(Border Gateway Protocol,边界网关协议)更新消息发送的资源信息,其中,所述第一资源的信息和所述第二资源的信息携带在所述更新消息的路径属性字段的TLV(Tag,Length,Value,标签长度内容)格式中。Obtain resource information sent by the other node device through a BGP (Border Gateway Protocol, Border Gateway Protocol) update message, where the information of the first resource and the information of the second resource are carried in the path attribute of the update message The TLV (Tag, Length, Value, tag length content) format of the field.
其中,所述第一请求为业务请求;在所述接收终端的第一请求之后,所述方法还包括:Wherein, the first request is a service request; after receiving the first request from the terminal, the method further includes:
将所述业务请求映射为资源请求;mapping the service request to a resource request;
所述根据所述第一请求和所述资源信息,从所述其他节点设备中确定用于为所述终端提供服务的第二节点设备,包括:The determining, from the other node devices, a second node device for providing services for the terminal according to the first request and the resource information includes:
根据所述资源请求和所述资源信息,从所述其他节点设备中确定用于为所述终端提供服务的第二节点设备;determining, from the other node devices, a second node device for providing services for the terminal according to the resource request and the resource information;
所述向所述第二节点设备发送所述第一请求,包括:The sending the first request to the second node device includes:
向所述第二节点设备发送所述资源请求。Send the resource request to the second node device.
其中,在所述向所述第二节点设备发送所述第一请求之后,所述方法还包括:Wherein, after the first request is sent to the second node device, the method further includes:
接收所述第二节点设备的第一响应;receiving a first response from the second node device;
向所述终端发送所述第一响应。sending the first response to the terminal.
第二方面,本发明实施例提供了一种资源调度方法,应用于第二节点设备,包括:In a second aspect, an embodiment of the present invention provides a resource scheduling method applied to a second node device, including:
向其他节点设备发送资源信息,其中,所述资源信息包括:第一资源的信息和第二资源的信息;sending resource information to other node devices, where the resource information includes: information about the first resource and information about the second resource;
接收所述其他节点设备中的第一节点设备的第一请求;receiving a first request from a first node device among the other node devices;
根据所述第一请求,执行相应的处理。According to the first request, corresponding processing is performed.
其中,所述向其他节点设备发送资源信息,包括:Wherein, the sending resource information to other node devices includes:
通过路由表向其他节点设备发送资源信息。Send resource information to other node devices through the routing table.
其中,所述通过路由表向其他节点设备发送资源信息,包括:Wherein, the sending resource information to other node devices through the routing table includes:
通过BGP更新消息向其他节点设备发送所述资源信息,其中,所述第一资源的信息和所述第二资源的信息携带在所述更新消息的路径属性字段的TLV格式中。The resource information is sent 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 TLV format of the path attribute field of the update message.
其中,所述第一请求为业务请求;接收所述其他节点设备中的第一节点设备的第一请求,所述方法还包括:Wherein, 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:
将所述业务请求映射为资源请求;mapping the service request to a resource request;
所述根据所述第一请求,执行相应的处理,包括:The performing corresponding processing according to the first request, including:
根据所述资源请求,执行相应的处理。Perform corresponding processing according to the resource request.
其中,在所述根据所述第一请求,执行相应的处理之后,所述方法还包括:Wherein, after performing corresponding processing according to the first request, the method further includes:
向所述第一节点设备发送第一响应。Send a first response to the first node device.
第三方面,本发明实施例提供了一种资源调度方法,应用于终端,包括:In a third aspect, an embodiment of the present invention provides a resource scheduling method applied to a terminal, including:
向第一节点设备发送第一请求,使得所述第一节点设备根据所述第一请求以及从其他节点设备获取的资源信息,从所述其他节点设备中确定用于为所述终端提供服务的第二节点设备,其中,所述资源信息包括第一资源的信息和第二资源的信息;sending a first request to the first node device, so that the first node device determines from the other node devices according to the first request and the resource information obtained from other node devices, the The second node device, wherein the resource information includes information about the first resource and information about the second resource;
接收所述第一节点设备发送的第一响应。Receive the first response sent by the first node device.
其中,所述第一资源的信息和所述第二资源的信息是所述其他节点设备通过路由表发送的。Wherein, the information of the first resource and the information of the second resource are sent by the other node device through a routing table.
其中,所述第一请求为业务请求;Wherein, the first request is a service request;
在所述向第一节点设备发送第一请求之前,所述方法还包括:Before sending the first request to the first node device, the method further includes:
将所述业务请求映射为资源请求;mapping the service request to a resource request;
所述向第一节点设备发送第一请求,包括:The sending the first request to the first node device includes:
向所述第一节点设备发送所述资源请求。Send the resource request to the first node device.
第四方面,本发明实施例提供了一种资源调度装置,应用于第一节点设备,包括:In a fourth aspect, an embodiment of the present invention provides a resource scheduling device, which is applied to a first node device, including:
获取模块,用于用于获取其他节点设备的资源信息,其中,所述资源信息包括:第一资源的信息和第二资源的信息;An obtaining module, configured to obtain resource information of other node devices, wherein the resource information includes: information of a first resource and information of a second resource;
第一接收模块,用于接收终端的第一请求;a first receiving module, configured to receive a first request from a terminal;
确定模块,用于根用于根据所述第一请求和所述资源信息,从所述其他节点设备中确定用于为所述终端提供服务的第二节点设备;a determining module, configured to determine a second node device for providing services for the terminal from the other node devices according to the first request and the resource information;
第一发送模块,用于向所述第二节点设备发送所述第一请求。A first sending module, configured to send the first request to the second node device.
其中,所述第一资源的信息和所述第二资源的信息是所述其他节点设备通过路由表发送的;Wherein, the information of the first resource and the information of the second resource are sent by the other node device through a routing table;
所述第一资源包括以下至少一项:任务连接数,CPU、内存、资源形态部署位置的供应的能力。The first resource includes at least one of the following: the number of task connections, CPU, memory, and provisioning capabilities of resource form deployment locations.
其中,所述获取模块具体用于,获取所述其他节点设备通过边界网关协议BGP更新消息发送的资源信息,其中,所述第一资源的信息和所述第二资源的信息携带在所述更新消息的路径属性字段的标签长度内容TLV格式中。Wherein, the obtaining module is specifically configured to obtain resource information sent by the other node device 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 tag length content of the path attribute field of the message is in TLV format.
其中,所述装置还包括:映射模块,用于将所述业务请求映射为资源请求;所述确定模块具体用于,根据所述资源请求和所述资源信息,从所述其他节点设备中确定用于为所述终端提供服务的第二节点设备;所述第一发送模块具体用于,向所述第二节点设备发送所述资源请求。Wherein, the apparatus further includes: a mapping module, configured to map the service request into 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 configured to provide services for the terminal; the first sending module is specifically configured to send the resource request to the second node device.
其中,所述装置还包括:第二接收模块,用于接收所述第二节点设备的第一响应;第二发送模块,用于向所述终端发送所述第一响应。Wherein, the apparatus further includes: a second receiving module, configured to receive the first response from the second node device; and a second sending module, configured to send the first response to the terminal.
第五方面,本发明实施例提供了一种资源调度装置,应用于第二节点设备,包括:In a fifth aspect, an embodiment of the present invention provides a resource scheduling device, which is applied to a second node device, including:
第一发送模块,用于向其他节点设备发送资源信息,其中,所述资源信息包括:第一资源的信息和第二资源的信息;A first sending module, 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;
处理模块,用于根据所述第一请求,执行相应的处理。A processing module, configured to perform corresponding processing according to the first request.
其中,所述第一发送模块具体用于,通过路由表向其他节点设备发送资源信息。Wherein, the first sending module is specifically configured to send resource information to other node devices through a routing table.
其中,所述第一发送模块具体用于,通过BGP更新消息向其他节点设备发送所述资源信息,其中,所述第一资源的信息和所述第二资源的信息携带在所述更新消息的路径属性字段的TLV格式中。Wherein, the first sending module is specifically configured to send the resource information 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 update message in TLV format for the path attribute field.
其中,所述装置还包括:映射模块,用于将所述业务请求映射为资源请求;所述处理模块具体用于,根据所述资源请求,执行相应的处理。Wherein, the device further includes: a mapping module, configured to map the service request into a resource request; and the processing module is specifically configured to perform corresponding processing according to the resource request.
第六方面,本发明实施例提供了一种资源调度装置,应用于终端,包括:In a sixth aspect, an embodiment of the present invention provides a resource scheduling device, which is applied to a terminal, including:
发送模块,用于向第一节点设备发送第一请求,使得所述第一节点设备根据所述第一请求以及从其他节点设备获取的资源信息,从所述其他节点设备中确定用于为所述终端提供服务的第二节点设备,其中,所述资源信息包括第一资源的信息和第二资源的信息;a sending module, configured to send a first request to the first node device, so that the first node device determines from the other node devices the resource information used for the A second node device for providing services to the terminal, wherein the resource information includes information about a first resource and information about a second resource;
接收模块,用于接收所述第一节点设备发送的第一响应。A receiving module, configured to receive the first response sent by the first node device.
其中,所述第一资源的信息和所述第二资源的信息是所述其他节点设备通过路由表发送的。Wherein, the information of the first resource and the information of the second resource are sent by the other node device through a routing table.
其中,所述装置还包括:映射模块,用于将所述业务请求映射为资源请求;所述发送模块具体用于,向所述第一节点设备发送所述资源请求。Wherein, the apparatus further includes: a mapping module, configured to map the service request into a resource request; the sending module is specifically configured to send the resource request to the first node device.
第七方面,本发明实施例提供了一种资源调度装置,应用于第一节点设备,包括:处理器和收发器;In a seventh aspect, the embodiment of the present invention provides a resource scheduling apparatus, which is applied to a first node device, and includes: a processor and a transceiver;
所述收发器,用于获取其他节点设备的资源信息,其中,所述资源信息包括:第一资源的信息和第二资源的信息;接收终端的第一请求;The transceiver is configured to acquire resource information of other node devices, wherein the resource information includes: information of a first resource and information of 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 for providing services for the terminal according to the first request and the resource information;
所述收发器,还用于向所述第二节点设备发送所述第一请求。The transceiver is further configured to send the first request to the second node device.
其中,所述第一资源的信息和所述第二资源的信息是所述其他节点设备通过路由表发送的;Wherein, the information of the first resource and the information of the second resource are sent by the other node device through a routing table;
所述第一资源包括以下至少一项:任务连接数,CPU、内存、资源形态部署位置的供应的能力。The first resource includes at least one of the following: the number of task connections, CPU, memory, and provisioning capabilities of resource form deployment locations.
其中,所述收发器还用于,获取所述其他节点设备通过边界网关协议BGP更新消息发送的资源信息,其中,所述第一资源的信息和所述第二资源的信息携带在所述更新消息的路径属性字段的标签长度内容TLV格式中。Wherein, the transceiver is further configured to obtain the resource information sent by the other node device through the 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 tag length content of the path attribute field of the message is in TLV format.
其中,所述处理器还用于,将所述业务请求映射为资源请求;根据所述资源请求和所述资源信息,从所述其他节点设备中确定用于为所述终端提供服务的第二节点设备;所述收发器还用于,向所述第二节点设备发送所述资源请求。Wherein, the processor is further configured to map the service request into a resource request; determine from the other node devices the second node for providing services for the terminal according to the resource request and the resource information A node device; the transceiver is further configured to send the resource request to the second node device.
其中,所述收发器还用于,接收所述第二节点设备的第一响应;向所述终端发送所述第一响应。Wherein, the transceiver is further configured to receive a first response from the second node device; and send the first response to the terminal.
第八方面,本发明实施例提供了一种资源调度装置,应用于第二节点设备,包括:处理器和收发器;In an eighth aspect, an embodiment of the present invention provides a resource scheduling apparatus, 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: first resource information and second resource information; receiving the first resource information of the first node device among the other node devices ask;
所述处理器,用于根据所述第一请求,执行相应的处理。The processor is configured to execute corresponding processing according to the first request.
其中,所述收发器还用于,通过路由表向其他节点设备发送资源信息。Wherein, the transceiver is further configured to send resource information to other node devices through a routing table.
其中,所述收发器还用于,通过BGP更新消息向其他节点设备发送所述资源信息,其中,所述第一资源的信息和所述第二资源的信息携带在所述更新消息的路径属性字段的TLV格式中。Wherein, 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 TLV format.
其中,所述处理器还用于,将所述业务请求映射为资源请求;根据所述资源请求,执行相应的处理。Wherein, the processor is further configured to map the service request into a resource request; and execute corresponding processing according to the resource request.
其中,所述收发器还用于,向所述第一节点设备发送第一响应。Wherein, the transceiver is further configured to send a first response to the first node device.
第九方面,本发明实施例提供了一种资源调度装置,应用于终端,包括:处理器和收发器;In a ninth aspect, an embodiment of the present invention provides 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 the first node device, so that the first node device determines from the other node devices according to the first request and resource information obtained from other node devices A second node device that provides services for the terminal, wherein the resource information includes first resource information and second resource information; and receives a first response sent by the first node device.
其中,所述处理器还用于,将所述业务请求映射为资源请求;所述收发器还用于,向所述第一节点设备发送所述资源请求。Wherein, the processor is further configured to map the service request into a resource request; the transceiver is further configured to send the resource request to the first node device.
其中,所述第一资源的信息和所述第二资源的信息是所述其他节点设备通过路由表发送的。Wherein, the information of the first resource and the information of the second resource are sent by the other node device through a routing table.
第十方面,本发明实施例提供了一种通信设备,包括:收发器、存储器、处理器及存储在所述存储器上并可在所述处理器上运行的计算机程序;In a tenth aspect, an embodiment of the present invention provides a communication device, including: a transceiver, a memory, a processor, and a computer program stored in the memory and operable on the processor;
所述处理器,用于读取存储器中的程序实现如第一方面所述的方法中的步骤;或者实现如第二方面所述的方法中的步骤;或者实现如第三方面所述的方法中的步骤。The processor is configured to read the program in the memory to implement the steps in the method as described in the first aspect; or implement the steps in the method as described in the second aspect; or implement the method as described in the third aspect in the steps.
第十一方面,本发明实施例提供了一种计算机可读存储介质,用于存储计算机程序,所述计算机程序被处理器执行时实现如第一方面所述的方法中的步骤;或者实现如第二方面所述的方法中的步骤;或者实现如第三方面所述的方法中的步骤。In an eleventh aspect, an embodiment of the present invention provides a computer-readable storage medium for storing a computer program, and when the computer program is executed by a processor, the steps in the method described in the first aspect are realized; or the steps in the method described in the first aspect are realized; The steps in the method described in the second aspect; or implement the steps in the method described in the third aspect.
在本发明实施例中,第一节点设备可获取其他节点设备发送的资源信息。当接收到终端的请求时,第一节点设备可根据获得的信息从其他节点设备中为终端选择可为其提供服务的节点设备。因此,利用本发明实施例的方案,第一节点设备可从其他节点设备调度资源为终端服务,从而提高了资源的利用率。In this embodiment of the present invention, the first node device may acquire resource information sent by other node devices. When receiving a request from a terminal, 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, using the solution of the embodiment of the present invention, the first node device can schedule resources from other node devices to serve the terminal, thereby improving resource utilization.
附图说明Description of drawings
为了更清楚地说明本发明实施例的技术方案,下面将对本发明实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following will briefly introduce the accompanying drawings that need to be used in the description of the embodiments of the present invention. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. For those skilled in the art, other drawings can also be obtained based on these drawings without any creative effort.
图1是本发明实施例提供的资源调度方法的流程图的流程图之一;FIG. 1 is one of the flow charts of the flow chart of the resource scheduling method provided by the embodiment of the present invention;
图2是本发明实施例提供的资源调度方法的流程图的流程图之二;FIG. 2 is the second flowchart of the resource scheduling method provided by the embodiment of the present invention;
图3是本发明实施例提供的资源调度方法的流程图的流程图之三;FIG. 3 is the third flowchart of the resource scheduling method provided by the embodiment of the present invention;
图4是本发明实施例提供的资源调度方法的流程图的流程图之四;FIG. 4 is the fourth flowchart of the resource scheduling method provided by the embodiment of the present invention;
图5是本发明实施例提供的资源调度方法的流程图的流程图之五;FIG. 5 is the fifth flowchart of the resource scheduling method provided by the embodiment of the present invention;
图6是本发明实施例提供的资源调度装置的结构图之一;FIG. 6 is one of the structural diagrams of a resource scheduling device provided by an embodiment of the present invention;
图7是本发明实施例提供的资源调度装置的结构图之二;Fig. 7 is the second structural diagram of the resource scheduling device provided by the embodiment of the present invention;
图8是本发明实施例提供的资源调度装置的结构图之三;Fig. 8 is the third structural diagram of the resource scheduling device provided by the embodiment of the present invention;
图9是本发明实施例提供的资源调度装置的结构图之四;FIG. 9 is a fourth structural diagram of a resource scheduling device provided by an embodiment of the present invention;
图10是本发明实施例提供的资源调度装置的结构图之五;Fig. 10 is the fifth structural diagram of the resource scheduling device provided by the embodiment of the present invention;
图11是本发明实施例提供的资源调度装置的结构图之六;Fig. 11 is the sixth structural diagram of the resource scheduling device provided by the embodiment of the present invention;
图12是本发明实施例提供的通信设备的结构图之一;FIG. 12 is one of the structural diagrams of a communication device provided by an embodiment of the present invention;
图13是本发明实施例提供的通信设备的结构图之二;Fig. 13 is the second structural diagram of the communication device provided by the embodiment of the present invention;
图14是本发明实施例提供的通信设备的结构图之三。FIG. 14 is a third structural diagram of a communication device provided by an embodiment of the present invention.
具体实施方式detailed description
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are some of the embodiments of the present invention, but not all of them. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.
参见图1,图1是本发明实施例提供的资源调度方法的流程图,应用于第一节点设备,如图1所示,包括以下步骤:Referring to FIG. 1, FIG. 1 is a flowchart of a resource scheduling method provided by an embodiment of the present invention, which is applied to a first node device, as shown in FIG. 1, and includes the following steps:
步骤101、获取其他节点设备的资源信息。
其中,所述资源信息包括:第一资源的信息和第二资源的信息。所述第一资源的信息和所述第二资源的信息是所述其他节点设备通过路由表发送的。Wherein, the resource information includes: information of the first resource and information of the second resource. The information about the first resource and the information about the second resource are sent by the other node device through a routing table.
在本发明实施例中,获取所述其他节点设备通过BGP(Border Gateway Protocol,边界网关协议)更新(update)消息发送的资源信息,其中,所述第一资源的信息和所述第二资源的信息携带在所述更新消息的路径属性(path attributes)字段的TLV格式中。其中,该TLV格式中还可携带service ID(服务标识)。In the embodiment of the present invention, the resource information sent by the other node device through a BGP (Border Gateway Protocol, Border Gateway Protocol) update (update) message, wherein, 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. Wherein, the TLV format may also carry a service ID (service identification).
在此,所述第一资源的信息也可称为计算资源的信息,计算资源可包括:任务连接数,CPU、内存、资源形态(物理还是虚拟的)部署位置等供应的能力。所述第二资源的信息也可称为网络资源的信息,网络资源可包括网络拓扑,带宽、时延、抖动等需求等。Here, the information of the first resource may also be referred to as the information of the computing resource, and the computing resource may include: the number of task connections, CPU, memory, resource form (physical or virtual) deployment location, and other supply capabilities. The information of the second resource may also be referred to as information of network resources, and the network resources may include network topology, bandwidth, delay, jitter and other requirements.
步骤102、接收终端的第一请求。
其中,所述第一请求可以是业务请求,也可以是资源请求,所述资源请求用于请求计算资源和网络资源。所述业务请求可以是对带宽、时延、任务的计算资源请求。Wherein, the first request may be a service request or a resource request, and 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, or task.
如果是业务请求,那么第一节点设备需要将该业务请求映射为资源请求。其中,业务请求消息中可包括:内容ID(标识),存储资源需求,计算资源需求,时延需求等信息。If it is a service request, the first node device needs to map the service request into a resource request. Wherein, the service request message may include information such as content ID (identification), storage resource requirements, computing resource requirements, and delay requirements.
步骤103、根据所述第一请求和所述资源信息,从所述其他节点设备中确定用于为所述终端提供服务的第二节点设备。
在本发明实施例中,第一节点设备在确定第二节点设备时,可综合考虑业务请求以及各个节点设备的计算、存储和网络资源等。In the embodiment of the present invention, when the first node device determines the second node device, it may comprehensively consider the service request and computing, storage and network resources of each node device.
如果终端发送的是资源请求或者第一节点设备将终端的业务请求映射为了资源请求,那么,在步骤103中,则是根据资源映射请求和所述资源信息,从所述其他节点设备中确定用于为所述终端提供服务的第二节点设备。If the terminal sends a resource request or the first node device maps the terminal's service request to a resource request, then, in
步骤104、向所述第二节点设备发送所述第一请求。
如果终端发送的是资源请求或者第一节点设备将终端的业务请求映射为了资源请求,那么,在步骤104中,则是向第二节点设备发送资源请求。If the terminal sends a resource request or the first node device maps the terminal's service request to a resource request, then in
由以上可以看出,在本发明实施例中,第一节点设备可获取其他节点设备通过路由表发送的资源信息。当接收到终端的请求时,第一节点设备可根据获得的信息从其他节点设备中为终端选择可为其提供服务的节点设备。因此,利用本发明实施例的方案,第一节点设备可从其他节点设备调度资源为终端服务,从而提高了资源的利用率,提高了用户体验。It can be seen from the above that, in the embodiment of the present invention, the first node device may obtain resource information sent by other node devices through the routing table. When receiving a request from a terminal, 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, using the solution of the embodiment of the present invention, the first node device can schedule resources from other node devices to serve the terminal, thereby improving resource utilization and improving user experience.
在上述实施例的基础上,当第二节点设备执行完相应的操作之后,还可向On the basis of the above embodiments, after the second node device performs corresponding operations, it can also send
第一节点设备发送第一响应。相应的,第一节点设备接收第二节点设备的第一响应,并向所述终端发送所述第一响应。The first node device sends a first response. Correspondingly, the first node device receives the first response from the second node device, and sends the first response to the terminal.
参见图2,图2是本发明实施例提供的资源调度方法的流程图,应用于第二节点设备,如图2所示,包括以下步骤:Referring to FIG. 2, FIG. 2 is a flowchart of a resource scheduling method provided in an embodiment of the present invention, which is applied to a second node device, as shown in FIG. 2, and includes the following steps:
步骤201、向其他节点设备发送资源信息,其中,所述资源信息包括:第一资源的信息和第二资源的信息。
在本发明实施例中,通过路由表向其他节点设备发送资源信息。In the embodiment of the present invention, the resource information is sent to other node devices through the routing table.
第二节点设备可通过BGP更新(update)消息发送的资源信息,其中,所述第一资源的信息和所述第二资源的信息携带在所述更新消息的路径属性字段的TLV格式中。其中,该TLV格式中还可携带service ID(服务标识)。The resource information sent by the second node device 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. Wherein, the TLV format may also carry a service ID (service identification).
其中,所述第一资源的信息可包括任务连接数、CPU/GPU(Graphics ProcessingUnit,图形处理单元)的信息、内存、硬盘等信息。Wherein, 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.
对于第二节点设备来说,它除了可向其他节点设备发送它自身的资源信息之外,还可将它收到的其他节点设备的资源信息也一起发送。For the second node device, in addition to sending its own resource information to other node devices, it can also send the received resource information of other node devices together.
步骤202、接收所述其他节点设备中的第一节点设备的第一请求。
其中,所述第一请求可以是业务请求,也可以是资源请求,所述资源请求用于请求计算资源和网络资源。Wherein, the first request may be a service request or a resource request, and the resource request is used to request computing resources and network resources.
如果是业务请求,那么第二节点设备需要将该业务请求映射为资源请求。其中,业务请求消息中可包括:内容ID(标识),存储资源需求,计算资源需求,时延需求等信息。If it is a service request, the second node device needs to map the service request into a resource request. Wherein, the service request message may include information such as content ID (identification), storage resource requirements, computing resource requirements, and delay requirements.
步骤203、根据所述第一请求,执行相应的处理。Step 203: Execute corresponding processing according to the first request.
如果所述第一请求为资源请求,那么,在此步骤中,则根据资源请求执行响应的处理。在执行处理的过程中,可根据第一请求为终端准备相应的计算资源或者网络资源。If the first request is a resource request, then, in this step, perform response processing according to the resource request. During the processing, corresponding computing resources or network resources may be prepared for the terminal according to the first request.
由以上可以看出,在本发明实施例中,第一节点设备可获取其他节点设备通过路由表发送的资源信息。当接收到终端的请求时,第一节点设备可根据获得的信息从其他节点设备中为终端选择可为其提供服务的节点设备。因此,利用本发明实施例的方案,第一节点设备可从其他节点设备调度资源为终端服务,从而提高了资源的利用率,提高了用户体验。It can be seen from the above that, in the embodiment of the present invention, the first node device may obtain resource information sent by other node devices through the routing table. When receiving a request from a terminal, 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, using the solution of the embodiment of the present invention, the first node device can schedule resources from other node devices to serve the terminal, thereby improving resource utilization and improving user experience.
在上述实施例的基础上,当第二节点设备执行完相应的操作之后,还可向第一节点设备发送第一响应。On the basis of the foregoing embodiments, after the second node device performs corresponding operations, it may further send a first response to the first node device.
参见图3,图3是本发明实施例提供的资源调度方法的流程图,应用于终端,如图3所示,包括以下步骤:Referring to FIG. 3, FIG. 3 is a flowchart of a resource scheduling method provided by an embodiment of the present invention, which is applied to a terminal, as shown in FIG. 3, and includes the following steps:
步骤301、向第一节点设备发送第一请求,使得所述第一节点设备根据所述第一请求以及从其他节点设备获取的资源信息,从所述其他节点设备中确定用于为所述终端提供服务的第二节点设备,其中,所述资源信息包括第一资源的信息和第二资源的信息。所述第一资源的信息和所述第二资源的信息是所述其他节点设备通过路由表发送的。Step 301: Send a first request to the first node device, so that the first node device determines from the other node devices the resource information used for the terminal according to the first request and the resource information obtained from other node devices The second node device that provides the service, wherein the resource information includes information about the first resource and information about the second resource. The information about the first resource and the information about the second resource are sent by the other node device through a routing table.
如果所述第一请求为业务请求,那么,在步骤301之前还可将第一请求映射为资源请求。在此步骤中,则是向第一节点设备发送资源映射请求。If the first request is a service request, before
步骤302、接收所述第一节点设备发送的第一响应。
由以上可以看出,在本发明实施例中,第一节点设备可获取其他节点设备通过路由表发送的资源信息。当接收到终端的请求时,第一节点设备可根据获得的信息从其他节点设备中为终端选择可为其提供服务的节点设备。因此,利用本发明实施例的方案,第一节点设备可从其他节点设备调度资源为终端服务,从而提高了资源的利用率,提高了用户体验。It can be seen from the above that, in the embodiment of the present invention, the first node device may obtain resource information sent by other node devices through the routing table. When receiving a request from a terminal, 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, using the solution of the embodiment of the present invention, the first node device can schedule resources from other node devices to serve the terminal, thereby improving resource utilization and improving user experience.
参见图4,图4是本发明实施例提供的资源调度方法的流程图。如图4所示,包括以下步骤:Referring to FIG. 4, FIG. 4 is a flowchart of a resource scheduling method provided by an embodiment of the present invention. As shown in Figure 4, the following steps are included:
步骤401、终端向第一接入设备发送请求消息。
在此,终端选择第一接入设备作为接入节点,负责获取各个节点设备的可用的计算和网络资源。其中,第一接入设备的选择可以有多种方式。例如,终端可以选择接入第一跳路由器作为第一接入设备。Here, the terminal selects the first access device as an access node, and is responsible for acquiring available computing and network resources of each node device. There may be multiple ways to select the first access device. For example, the terminal may choose to access the first-hop router as the first access device.
其中,各个节点设备通过广播的方式主动地将自身的或者获取的其他节点设备计算资源和网络资源向周围的节点更新。其中,计算资源可通过在路由表中增减加计算资源模板信息发送。网络资源也可通过路由表的形式发送。其中,计算模板信息包括:任务连接数、CPU/GPU、内存、硬盘等信息。Wherein, each node device actively updates its own or acquired computing resources and network resources of other node devices to surrounding nodes by way of broadcasting. Wherein, computing resources can be sent by adding or subtracting computing resource template information in the routing table. Network resources can also be routed through routing tables. Among them, the calculation template information includes: the number of task connections, CPU/GPU, memory, hard disk and other information.
其中,该请求消息可以是业务请求消息,也可以是资源请求消息。也就是说,终端的业务请求消息需要被映射为资源请求消息。而终端、第一接入设备以及后续第一接入设备选择的为终端提供服务的接入设备均可执行将业务请求消息映射为资源请求消息的操作。在本发明实施例中,并不对由哪个设备执行上述映射操作进行限定。Wherein, the request message may be a service request message or a resource request message. That is to say, the service request message of the terminal needs to be mapped into a resource request message. However, the terminal, the first access device, and subsequent access devices 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. In this embodiment of the present invention, there is no limitation on which device performs the foregoing mapping operation.
步骤402、第一接入设备接收到业请求消息后,第一接入设备中的计算网络资源功能模块根据请求消息,将请求消息调度到相应的节点设备中执行。Step 402: After the first access device receives the service request message, the computing network resource function module in the first access device dispatches the request message to the corresponding node device for execution according to the request message.
其中,第一接入设备的具体的调度机制需要综合考虑请求消息以及各个节点设备的计算、存储和网络资源等。其中请求消息中可包括:内容ID,存储资源需求,计算资源需求,时延需求等信息。Wherein, the specific scheduling mechanism of the first access device needs to comprehensively consider the request message and computing, storage and network resources of each node device. The request message may include information such as content ID, storage resource requirements, computing resource requirements, and delay requirements.
步骤403、第二节点设备执行相应的处理。Step 403, the second node device executes corresponding processing.
步骤404、第二节点设备向第一接入设备发送响应消息。Step 404, the second node device sends a response message to the first access device.
步骤405、第一接入设备向终端发送响应消息。Step 405, the first access device sends a response message to the terminal.
参见图5,图5是本发明实施例提供的资源调度方法的流程图。如图5所示,包括以下步骤:Referring to FIG. 5, FIG. 5 is a flowchart of a resource scheduling method provided by an embodiment of the present invention. As shown in Figure 5, it includes the following steps:
步骤501、各节点设备向其他节点设备发送更新消息,广播计算资源和网络资源。Step 501, each node device sends an update message to other node devices, and broadcasts computing resources and network resources.
在本发明实施例中,节点设备可通过BGP更新(update)消息发送资源信息,包括:第一资源的信息和第二资源的信息,其中,所述第一资源的信息和所述第二资源的信息携带在所述更新消息的路径属性字段的TLV格式中。其中,该TLV格式中还可携带service ID(服务标识)。In this embodiment of the present invention, 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. Wherein, the TLV format may also carry a service ID (service identification).
对于某个节点设备来说,它除了可向其他节点设备发送它自身的资源信息之外,还可将它收到的其他节点设备的资源信息也一起发送。For a certain node device, in addition to sending its own resource information to other node devices, it can also send the received resource information of other node devices together.
在图5中仅以四个节点设备为例描述的广播计算资源和网络资源的过程。在实际应用中,节点设备的个数可以根据需要设置,且广播计算资源和网络资源的过程和图中类似。而且,在图5中,第一接入设备也可向其他节点设备广播计算资源和网络资源,过程和其他节点设备的相同。In FIG. 5 , only four node devices are taken as an example to describe the process of broadcasting computing resources and network resources. In practical applications, the number of node devices can be set as required, and the process of broadcasting computing resources and network resources is similar to that in the figure. Moreover, in FIG. 5, the first access device may also broadcast computing resources and network resources to other node devices, and the process is the same as that of other node devices.
步骤502、终端向第一接入设备发送请求消息。Step 502, the terminal sends a request message to the first access device.
步骤503、第一接入设备接收到业请求消息后,第一接入设备中的计算网络资源功能模块根据请求消息,将请求消息调度到相应的节点设备中执行。Step 503: After the first access device receives the service request message, the computing network resource function module in the first access device dispatches the request message to the corresponding node device for execution according to the request message.
步骤504、第二节点设备执行相应的处理。Step 504, the second node device executes corresponding processing.
步骤505、第二节点设备向第一接入设备发送响应消息。Step 505, the second node device sends a response message to the first access device.
步骤506、第一接入设备向终端发送响应消息。Step 506, the first access device sends a response message to the terminal.
其中,步骤502-506的描述可参照前述步骤401-405的描述。Wherein, the description of steps 502-506 may refer to the description of the aforementioned steps 401-405.
在本发明实施例中,节点设备将当前的计算能力状况和网络状况作为路由信息发布到网络,网络将计算任务报文路由到相应的计算节点,从而提高了用户体验,提高了计算资源利用率以及网络效率。而且,第二-第四节点设备均可作为第一接入设备。In the embodiment of the present invention, the node device publishes the current computing capability status and network status to the network as routing information, and the network routes the computing task message to the corresponding computing node, thereby improving user experience and computing resource utilization and network efficiency. Moreover, both the second-fourth node devices can be used as the first access device.
本发明实施例还提供了一种资源调度装置,应用于第一节点设备。参见图6,图6是本发明实施例提供的资源调度装置的结构图。如图6所示,所述资源调度装置包括:The embodiment of the present invention also provides a resource scheduling device, which is applied to the first node device. Referring to FIG. 6, FIG. 6 is a structural diagram of a resource scheduling device provided by an embodiment of the present invention. As shown in Figure 6, the resource scheduling device includes:
获取模块601,用于获取其他节点设备的资源信息,其中,所述资源信息包括:第一资源的信息和第二资源的信息;第一接收模块602,用于接收终端的第一请求;确定模块603,用于根据所述第一请求和所述资源信息,从所述其他节点设备中确定用于为所述终端提供服务的第二节点设备;第一发送模块604,用于向所述第二节点设备发送所述第一请求。The acquiring
其中,所述第一资源的信息和所述第二资源的信息是所述其他节点设备通过路由表发送的;Wherein, the information of the first resource and the information of the second resource are sent by the other node device through a routing table;
所述第一资源包括以下至少一项:任务连接数,CPU、内存、资源形态部署位置的供应的能力。The first resource includes at least one of the following: the number of task connections, CPU, memory, and provisioning capabilities of resource form deployment locations.
可选的,所述获取模块601具体用于,获取所述其他节点设备通过BGP更新消息发送的资源信息,其中所述第一资源的信息和所述第二资源的信息携带在所述更新消息的路径属性字段的TLV格式中。Optionally, the obtaining
可选的,所述装置还包括:映射模块,用于将所述业务请求映射为资源请求;所述确定模块603具体用于,根据所述资源请求和所述资源信息,从所述其他节点设备中确定用于为所述终端提供服务的第二节点设备;所述第一发送模块604具体用于,向所述第二节点设备发送所述资源请求。Optionally, the apparatus further includes: a mapping module, configured to map the service request into a resource request; the determining
可选的,所述装置还包括:第二接收模块,用于接收所述第二节点设备的第一响应;第二发送模块,用于向所述终端发送所述第一响应。Optionally, the apparatus further includes: a second receiving module, configured to receive a first response from the second node device; and a second sending module, configured to send the first response to the terminal.
本发明实施例提供的资源调度装置,可以执行上述方法实施例,其实现原理和技术效果类似,本实施例此处不再赘述。The resource scheduling device provided by the embodiment of the present invention can execute the above method embodiment, and its implementation principle and technical effect are similar, so this embodiment will not repeat them here.
本发明实施例还提供了一种资源调度装置,应用于第二节点设备。参见图7,图7是本发明实施例提供的资源调度装置的结构图。如图7所示,所述资源调度装置包括:The embodiment of the present invention also provides a resource scheduling device, which is applied to the second node device. Referring to FIG. 7, FIG. 7 is a structural diagram of a resource scheduling device provided by an embodiment of the present invention. As shown in Figure 7, the resource scheduling device includes:
第一发送模块701,用于通过路由表向其他节点设备发送资源信息,其中,所述资源信息包括:第一资源的信息和第二资源的信息;第一接收模块702,用于接收所述其他节点设备中的第一节点设备的第一请求;处理模块703,用于根据所述第一请求,执行相应的处理。The
其中,所述第一发送模块701具体用于,通过路由表向其他节点设备发送资源信息。Wherein, the
可选的,所述第一发送模块701具体用于,通过BGP更新消息向其他节点设备发送所述资源信息,其中,所述第一资源的信息和所述第二资源的信息携带在所述更新消息的路径属性字段的TLV格式中。Optionally, the
可选的,所述装置还包括:映射模块,用于将所述业务请求映射为资源请求;所述处理模块703具体用于,根据所述资源请求,执行相应的处理。Optionally, the device further includes: a mapping module, configured to map the service request into a resource request; the
本发明实施例提供的资源调度装置,可以执行上述方法实施例,其实现原理和技术效果类似,本实施例此处不再赘述。The resource scheduling device provided by the embodiment of the present invention can execute the above method embodiment, and its implementation principle and technical effect are similar, so this embodiment will not repeat them here.
本发明实施例还提供了一种资源调度装置,应用于终端。参见图8,图8是本发明实施例提供的资源调度装置的结构图。如图8所示,所述资源调度装置包括:The embodiment of the present invention also provides a resource scheduling device, which is applied to a terminal. Referring to FIG. 8, FIG. 8 is a structural diagram of a resource scheduling device provided by an embodiment of the present invention. As shown in Figure 8, the resource scheduling device includes:
发送模块801,用于向第一节点设备发送第一请求,使得所述第一节点设备根据所述第一请求以及从其他节点设备获取的资源信息,从所述其他节点设备中确定用于为所述终端提供服务的第二节点设备,其中,所述资源信息包括第一资源的信息和第二资源的信息;接收模块802,用于接收所述第一节点设备发送的第一响应。The sending
其中,所述第一资源的信息和所述第二资源的信息是所述其他节点设备通过路由表发送的。Wherein, the information of the first resource and the information of the second resource are sent by the other node device through a routing table.
可选的,所述装置还包括:映射模块,用于将所述业务请求映射为资源请求;所述发送模块801具体用于,向所述第一节点设备发送所述资源请求。Optionally, the apparatus further includes: a mapping module, configured to map the service request into a resource request; the sending
本发明实施例提供的资源调度装置,可以执行上述方法实施例,其实现原理和技术效果类似,本实施例此处不再赘述。The resource scheduling device provided by the embodiment of the present invention can execute the above method embodiment, and its implementation principle and technical effect are similar, so this embodiment will not repeat them here.
本发明实施例还提供了一种资源调度装置,应用于第一节点设备。参见图9,图9是本发明实施例提供的资源调度装置的结构图。如图9所示,所述资源调度装置包括:处理器901和收发器902。The embodiment of the present invention also provides a resource scheduling device, which is applied to the first node device. Referring to FIG. 9, FIG. 9 is a structural diagram of a resource scheduling device provided by an embodiment of the present invention. As shown in FIG. 9 , the resource scheduling apparatus includes: a
所述收发器902,用于获取其他节点设备的资源信息,其中,所述资源信息包括:第一资源的信息和第二资源的信息;接收终端的第一请求;The
所述处理器901,用于根据所述第一请求和所述资源信息,从所述其他节点设备中确定用于为所述终端提供服务的第二节点设备;The
所述收发器902,还用于向所述第二节点设备发送所述第一请求。The
其中,所述第一资源的信息和所述第二资源的信息是所述其他节点设备通过路由表发送的;Wherein, the information of the first resource and the information of the second resource are sent by the other node device through a routing table;
所述第一资源包括以下至少一项:任务连接数,CPU、内存、资源形态部署位置的供应的能力。The first resource includes at least one of the following: the number of task connections, CPU, memory, and provisioning capabilities of resource form deployment locations.
其中,所述收发器902还用于,获取所述其他节点设备通过边界网关协议BGP更新消息发送的资源信息,其中,所述第一资源的信息和所述第二资源的信息携带在所述更新消息的路径属性字段的标签长度内容TLV格式中。Wherein, the
其中,所述处理器901还用于,将所述业务请求映射为资源请求;根据所述资源请求和所述资源信息,从所述其他节点设备中确定用于为所述终端提供服务的第二节点设备;所述收发器还用于,向所述第二节点设备发送所述资源请求。Wherein, the
其中,所述收发器902还用于,接收所述第二节点设备的第一响应;向所述终端发送所述第一响应。Wherein, the
本发明实施例提供的资源调度装置,可以执行上述方法实施例,其实现原理和技术效果类似,本实施例此处不再赘述。The resource scheduling device provided by the embodiment of the present invention can execute the above method embodiment, and its implementation principle and technical effect are similar, so this embodiment will not repeat them here.
本发明实施例还提供了一种资源调度装置,应用于第二节点设备。参见图10,图10是本发明实施例提供的资源调度装置的结构图。如图10所示,所述资源调度装置包括:处理器1001和收发器1002。The embodiment of the present invention also provides a resource scheduling device, which is applied to the second node device. Referring to FIG. 10 , FIG. 10 is a structural diagram of a resource scheduling device provided by an embodiment of the present invention. As shown in FIG. 10 , the resource scheduling apparatus includes: a
所述收发器1002,用于通过路由表向其他节点设备发送资源信息,其中,所述资源信息包括:第一资源的信息和第二资源的信息;接收所述其他节点设备中的第一节点设备的第一请求;The
所述处理器1001,用于根据所述第一请求,执行相应的处理。The
其中,所述收发器1002还用于,通过路由表向其他节点设备发送资源信息。Wherein, the
其中,所述收发器1002还用于,通过BGP更新消息向其他节点设备发送所述资源信息,其中,所述第一资源的信息和所述第二资源的信息携带在所述更新消息的路径属性字段的TLV格式中。Wherein, the
其中,所述处理器1001还用于,将所述业务请求映射为资源请求;根据所述资源请求,执行相应的处理。Wherein, the
其中,所述收发器1002还用于,向所述第一节点设备发送第一响应。Wherein, the
本发明实施例提供的资源调度装置,可以执行上述方法实施例,其实现原理和技术效果类似,本实施例此处不再赘述。The resource scheduling device provided by the embodiment of the present invention can execute the above method embodiment, and its implementation principle and technical effect are similar, so this embodiment will not repeat them here.
本发明实施例还提供了一种资源调度装置,应用于终端。参见图11,图11是本发明实施例提供的资源调度装置的结构图。如图11所示,所述资源调度装置包括:处理器1101和收发器1102。The embodiment of the present invention also provides a resource scheduling device, which is applied to a terminal. Referring to FIG. 11 , FIG. 11 is a structural diagram of a resource scheduling device provided by an embodiment of the present invention. As shown in FIG. 11 , the resource scheduling apparatus includes: a
所述收发器1102,用于向第一节点设备发送第一请求,使得所述第一节点设备根据所述第一请求以及从其他节点设备获取的资源信息,从所述其他节点设备中确定用于为所述终端提供服务的第二节点设备,其中,所述资源信息包括第一资源的信息和第二资源的信息;接收所述第一节点设备发送的第一响应。The
其中,所述第一资源的信息和所述第二资源的信息是所述其他节点设备通过路由表发送的。Wherein, the information of the first resource and the information of the second resource are sent by the other node device through a routing table.
其中,所述处理器1101还用于,将所述业务请求映射为资源请求;所述收发器还用于,向所述第一节点设备发送所述资源请求。Wherein, the
本发明实施例提供的资源调度装置,可以执行上述方法实施例,其实现原理和技术效果类似,本实施例此处不再赘述。The resource scheduling device provided by the embodiment of the present invention can execute the above method embodiment, and its implementation principle and technical effect are similar, so this embodiment will not repeat them here.
如图12所示,本发明实施例的通信设备,应用于第一节点设备,包括:As shown in FIG. 12, the communication device in the embodiment of the present invention is applied to the first node device, including:
处理器1200,用于读取存储器1220中的程序,执行下列过程:通过收发器1210获取其他节点设备的资源信息,其中,所述资源信息包括:第一资源的信息和第二资源的信息;接收终端的第一请求;根据所述第一请求和所述资源信息,从所述其他节点设备中确定用于为所述终端提供服务的第二节点设备;向所述第二节点设备发送所述第一请求。The
收发器1210,用于在处理器1200的控制下接收和发送数据。The
其中,在图12中,总线架构可以包括任意数量的互联的总线和桥,具体由处理器1200代表的一个或多个处理器和存储器1220代表的存储器的各种电路链接在一起。总线架构还可以将诸如外围设备、稳压器和功率管理电路等之类的各种其他电路链接在一起,这些都是本领域所公知的,因此,本文不再对其进行进一步描述。总线接口提供接口。收发器1210可以是多个元件,即包括发送机和收发器,提供用于在传输介质上与各种其他装置通信的单元。处理器1200负责管理总线架构和通常的处理,存储器1220可以存储处理器1200在执行操作时所使用的数据。Wherein, in FIG. 12 , the bus architecture may include any number of interconnected buses and bridges, specifically one or more processors represented by the
处理器1200负责管理总线架构和通常的处理,存储器1220可以存储处理器1200在执行操作时所使用的数据。The
其中,所述第一资源的信息和所述第二资源的信息是所述其他节点设备通过路由表发送的;Wherein, the information of the first resource and the information of the second resource are sent by the other node device through a routing table;
所述第一资源包括以下至少一项:任务连接数,CPU、内存、资源形态部署位置的供应的能力。The first resource includes at least one of the following: the number of task connections, CPU, memory, and provisioning capabilities of resource form deployment locations.
处理器1200还用于读取所述计算机程序,执行如下步骤:获取所述其他节点设备通过边界网关协议BGP更新消息发送的资源信息,其中,所述第一资源的信息和所述第二资源的信息携带在所述更新消息的路径属性字段的标签长度内容TLV格式中。The
处理器1200还用于读取所述计算机程序,执行如下步骤:将所述业务请求映射为资源请求;根据所述资源请求和所述资源信息,从所述其他节点设备中确定用于为所述终端提供服务的第二节点设备;向所述第二节点设备发送所述资源请求。The
处理器1200还用于读取所述计算机程序,执行如下步骤:接收所述第二节点设备的第一响应;向所述终端发送所述第一响应。The
如图13所示,本发明实施例的通信设备,应用于第二节点设备,包括:As shown in FIG. 13, the communication device in the embodiment of the present invention is applied to the second node device, including:
处理器1300,用于读取存储器1320中的程序,执行下列过程:通过收发器1310通过路由表向其他节点设备发送资源信息,其中,所述资源信息包括:第一资源的信息和第二资源的信息;接收所述其他节点设备中的第一节点设备的第一请求;根据所述第一请求,执行相应的处理。The
收发器1310,用于在处理器1300的控制下接收和发送数据。The
其中,在图13中,总线架构可以包括任意数量的互联的总线和桥,具体由处理器1300代表的一个或多个处理器和存储器1320代表的存储器的各种电路链接在一起。总线架构还可以将诸如外围设备、稳压器和功率管理电路等之类的各种其他电路链接在一起,这些都是本领域所公知的,因此,本文不再对其进行进一步描述。总线接口提供接口。收发器1310可以是多个元件,即包括发送机和收发器,提供用于在传输介质上与各种其他装置通信的单元。处理器1300负责管理总线架构和通常的处理,存储器1320可以存储处理器1300在执行操作时所使用的数据。Wherein, in FIG. 13 , the bus architecture may include any number of interconnected buses and bridges, specifically one or more processors represented by the
处理器1300负责管理总线架构和通常的处理,存储器1320可以存储处理器1300在执行操作时所使用的数据。The
处理器1300还用于读取所述计算机程序,执行如下步骤:The
通过路由表向其他节点设备发送资源信息。Send resource information to other node devices through the routing table.
处理器1300还用于读取所述计算机程序,执行如下步骤:The
通过BGP更新消息向其他节点设备发送所述资源信息,其中,所述第一资源的信息和所述第二资源的信息携带在所述更新消息的路径属性字段的TLV格式中。The resource information is sent 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 TLV format of the path attribute field of the update message.
处理器1300还用于读取所述计算机程序,执行如下步骤:将所述业务请求映射为资源请求;根据所述资源请求,执行相应的处理。The
处理器1300还用于读取所述计算机程序,执行如下步骤:向所述第一节点设备发送第一响应。The
如图14所示,本发明实施例的通信设备,应用于终端,包括:As shown in Figure 14, the communication device in the embodiment of the present invention is applied to a terminal, including:
处理器1400,用于读取存储器1420中的程序,执行下列过程:The
通过收发器1410向第一节点设备发送第一请求,使得所述第一节点设备根据所述第一请求以及从其他节点设备获取的资源信息,从所述其他节点设备中确定用于为所述终端提供服务的第二节点设备,其中,所述资源信息包括第一资源的信息和第二资源的信息;接收所述第一节点设备发送的第一响应。Send a first request to the first node device through the
收发器1410,用于在处理器1400的控制下接收和发送数据。The
其中,所述第一资源的信息和所述第二资源的信息是所述其他节点设备通过路由表发送的。Wherein, the information of the first resource and the information of the second resource are sent by the other node device through a routing table.
其中,在图14中,总线架构可以包括任意数量的互联的总线和桥,具体由处理器1400代表的一个或多个处理器和存储器1420代表的存储器的各种电路链接在一起。总线架构还可以将诸如外围设备、稳压器和功率管理电路等之类的各种其他电路链接在一起,这些都是本领域所公知的,因此,本文不再对其进行进一步描述。总线接口提供接口。收发器1410可以是多个元件,即包括发送机和接收机,提供用于在传输介质上与各种其他装置通信的单元。针对不同的用户设备,用户接口1430还可以是能够外接内接需要设备的接口,连接的设备包括但不限于小键盘、显示器、扬声器、麦克风、操纵杆等。Wherein, in FIG. 14 , the bus architecture may include any number of interconnected buses and bridges, specifically one or more processors represented by the
处理器1400负责管理总线架构和通常的处理,存储器1420可以存储处理器1400在执行操作时所使用的数据。The
处理器1400还用于读取所述计算机程序,执行如下步骤:将所述业务请求映射为资源请求;向所述第一节点设备发送所述资源请求。The
此外,本发明实施例的计算机可读存储介质,用于存储计算机程序,所述计算机程序可被处理器执行实现以下步骤:In addition, the computer-readable storage medium in the embodiment of the present invention is used to store a computer program, and the computer program can be executed by a processor to implement the following steps:
获取其他节点设备的资源信息,其中,所述资源信息包括:第一资源的信息和第二资源的信息;Acquiring resource information of other node devices, where the resource information includes: information of the first resource and information of the second resource;
接收终端的第一请求;receiving a first request from a terminal;
根据所述第一请求和所述资源信息,从所述其他节点设备中确定用于为所述终端提供服务的第二节点设备;determining a second node device for providing services for the terminal from the other node devices according to the first request and the resource information;
向所述第二节点设备发送所述第一请求。Send the first request to the second node device.
其中,所述第一资源的信息和所述第二资源的信息是所述其他节点设备通过路由表发送的;Wherein, the information of the first resource and the information of the second resource are sent by the other node device through a routing table;
所述第一资源包括以下至少一项:任务连接数,CPU、内存、资源形态部署位置的供应的能力。The first resource includes at least one of the following: the number of task connections, CPU, memory, and provisioning capabilities of resource form deployment locations.
其中,所述获取其他节点设备的资源信息,包括:Wherein, the acquisition of resource information of other node devices includes:
获取所述其他节点设备通过边界网关协议BGP更新消息发送的资源信息,其中,所述第一资源的信息和所述第二资源的信息携带在所述更新消息的路径属性字段的标签长度内容TLV格式中。Obtain resource information sent by the other node device through a Border Gateway Protocol BGP update message, wherein the information of the first resource and the information of the second resource carry the label length content TLV in the path attribute field of the update message format.
其中,所述第一请求为业务请求;在所述接收终端的资源信息第一请求之后,所述方法还包括:Wherein, the first request is a service request; after receiving the first resource information request of the terminal, the method further includes:
将所述业务请求映射为资源请求;mapping the service request to a resource request;
所述根据所述第一请求和所述资源信息,从所述其他节点设备中确定用于为所述终端提供服务的第二节点设备,包括:The determining, from the other node devices, a second node device for providing services for the terminal according to the first request and the resource information includes:
根据所述资源请求和所述资源信息,从所述其他节点设备中确定用于为所述终端提供服务的第二节点设备;determining, from the other node devices, a second node device for providing services for the terminal according to the resource request and the resource information;
所述向所述第二节点设备发送所述第一请求,包括:The sending the first request to the second node device includes:
向所述第二节点设备发送所述资源请求。Send the resource request to the second node device.
其中,在所述向所述第二节点设备发送所述第一请求之后,所述方法还包括:Wherein, after the first request is sent to the second node device, the method further includes:
接收所述第二节点设备的第一响应;receiving a first response from the second node device;
向所述终端发送所述第一响应。sending the first response to the terminal.
此外,本发明实施例的计算机可读存储介质,用于存储计算机程序,所述计算机程序可被处理器执行实现以下步骤:In addition, the computer-readable storage medium in the embodiment of the present invention is used to store a computer program, and the computer program can be executed by a processor to implement the following steps:
向其他节点设备发送资源信息,其中,所述资源信息包括:第一资源的信息和第二资源的信息;sending resource information to other node devices, where the resource information includes: information about the first resource and information about the second resource;
接收所述其他节点设备中的第一节点设备的第一请求;receiving a first request from a first node device among the other node devices;
根据所述第一请求,执行相应的处理。According to the first request, corresponding processing is performed.
其中,所述向其他节点设备发送资源信息,包括:Wherein, the sending resource information to other node devices includes:
通过路由表向其他节点设备发送资源信息。Send resource information to other node devices through the routing table.
其中,所述通过路由表向其他节点设备发送资源信息,包括:Wherein, the sending resource information to other node devices through the routing table includes:
通过BGP更新消息向其他节点设备发送所述资源信息,其中,所述第一资源的信息和所述第二资源的信息携带在所述更新消息的路径属性字段的TLV格式中。The resource information is sent 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 TLV format of the path attribute field of the update message.
其中,所述第一请求为业务请求;接收所述其他节点设备中的第一节点设备的第一请求,所述方法还包括:Wherein, 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:
将所述业务请求映射为资源请求;mapping the service request to a resource request;
所述根据所述第一请求,执行相应的处理,包括:The performing corresponding processing according to the first request, including:
根据所述资源请求,执行相应的处理。Perform corresponding processing according to the resource request.
其中,在所述根据所述第一请求,执行相应的处理之后,所述方法还包括:Wherein, after performing corresponding processing according to the first request, the method further includes:
向所述第一节点设备发送第一响应。Send a first response to the first node device.
此外,本发明实施例的计算机可读存储介质,用于存储计算机程序,所述计算机程序可被处理器执行实现以下步骤:In addition, the computer-readable storage medium in the embodiment of the present invention is used to store a computer program, and the computer program can be executed by a processor to implement the following steps:
向第一节点设备发送第一请求,使得所述第一节点设备根据所述第一请求以及从其他节点设备获取的资源信息,从所述其他节点设备中确定用于为所述终端提供服务的第二节点设备,其中,所述资源信息包括第一资源的信息和第二资源的信息;sending a first request to the first node device, so that the first node device determines from the other node devices according to the first request and the resource information obtained from other node devices, the The second node device, wherein the resource information includes information about the first resource and information about the second resource;
接收所述第一节点设备发送的第一响应。Receive the first response sent by the first node device.
其中,所述第一资源的信息和所述第二资源的信息是所述其他节点设备通过路由表发送的。Wherein, the information of the first resource and the information of the second resource are sent by the other node device through a routing table.
其中,所述第一请求为业务请求;Wherein, the first request is a service request;
在所述向第一节点设备发送第一请求之前,所述方法还包括:Before sending the first request to the first node device, the method further includes:
将所述业务请求映射为资源请求;mapping the service request to a resource request;
所述向第一节点设备发送第一请求,包括:The sending the first request to the first node device includes:
向所述第一节点设备发送所述资源请求。Send the resource request to the first node device.
在本申请所提供的几个实施例中,应该理解到,所揭露方法和装置,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed methods and devices may be implemented in other ways. For example, the device embodiments described above are only illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be combined or May be integrated into another system, or some features may be ignored, or not implemented. In another point, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be in electrical, mechanical or other forms.
另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理包括,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用硬件加软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, each unit may be physically included separately, or two or more units may be integrated into one unit. The above-mentioned integrated units can be implemented in the form of hardware, or in the form of hardware plus software functional units.
上述以软件功能单元的形式实现的集成的单元,可以存储在一个计算机可读取存储介质中。上述软件功能单元存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例所述收发方法的部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(Read-Only Memory,简称ROM)、随机存取存储器(Random Access Memory,简称RAM)、磁碟或者光盘等各种可以存储程序代码的介质。The above-mentioned integrated units implemented in the form of software functional units may be stored in a computer-readable storage medium. The above-mentioned software functional units are stored in a storage medium, and include several instructions to enable a computer device (which may be a personal computer, server, or network device, etc.) to execute some steps of the sending and receiving methods described in various embodiments of the present invention. The aforementioned storage media include: U disk, mobile hard disk, read-only memory (Read-Only Memory, ROM for short), random access memory (Random Access Memory, RAM for short), magnetic disk or optical disk, etc., which can store program codes. medium.
以上所述是本发明的优选实施方式,应当指出,对于本技术领域的普通技术人员来说,在不脱离本发明所述原理的前提下,还可以作出若干改进和润饰,这些改进和润饰也应视为本发明的保护范围。The above description is a preferred embodiment of the present invention, it should be pointed out that for those of ordinary skill in the art, without departing from the principle of the present invention, some improvements and modifications can also be made, and these improvements and modifications can also be made. It should be regarded as the protection scope of the present invention.
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201911029924.3ACN112714146B (en) | 2019-10-25 | 2019-10-25 | Resource scheduling method, device, equipment and computer readable storage medium |
| PCT/CN2020/121152WO2021078058A1 (en) | 2019-10-25 | 2020-10-15 | Resource scheduling method, apparatus and device, and computer-readable storage medium |
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201911029924.3ACN112714146B (en) | 2019-10-25 | 2019-10-25 | Resource scheduling method, device, equipment and computer readable storage medium |
| Publication Number | Publication Date |
|---|---|
| CN112714146A CN112714146A (en) | 2021-04-27 |
| CN112714146Btrue CN112714146B (en) | 2023-01-13 |
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201911029924.3AActiveCN112714146B (en) | 2019-10-25 | 2019-10-25 | Resource scheduling method, device, equipment and computer readable storage medium |
| Country | Link |
|---|---|
| CN (1) | CN112714146B (en) |
| WO (1) | WO2021078058A1 (en) |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN114363402B (en)* | 2021-12-16 | 2023-12-26 | 绿盟科技集团股份有限公司 | Shooting range interconnection method, shooting range interconnection system and electronic equipment |
| CN114338692B (en)* | 2022-02-17 | 2023-11-10 | 上海玄翎科技有限公司 | Data balancing method and device based on partitioned cluster expansion |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN108616600A (en)* | 2018-05-11 | 2018-10-02 | 深圳市网心科技有限公司 | Resource regulating method, client server, node device, network system and medium |
| CN108632321A (en)* | 2017-03-23 | 2018-10-09 | 中国联合网络通信集团有限公司 | Treating method and apparatus based on scheduling of resource under big data platform |
| CN109358965A (en)* | 2018-09-25 | 2019-02-19 | 杭州朗和科技有限公司 | Cloud computing cluster resource dispatching method, medium, device and calculating equipment |
| CN109417719A (en)* | 2016-07-07 | 2019-03-01 | 华为技术有限公司 | A kind of management method of Internet resources, apparatus and system |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN107371151A (en)* | 2016-05-12 | 2017-11-21 | 中兴通讯股份有限公司 | Data transmission method and device |
| US9921775B2 (en)* | 2016-06-28 | 2018-03-20 | Vmware, Inc. | Memory management in a decentralized control plane of a computing system |
| 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 |
| WO2019165468A1 (en)* | 2018-02-26 | 2019-08-29 | Charter Communications Operating, Llc | Apparatus and methods for packetized content routing and delivery |
| CN110247699B (en)* | 2019-06-24 | 2021-07-09 | 中国空间技术研究院 | A method for realizing coordinated scheduling of resources between heaven and earth in an integrated network of heaven and earth |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN109417719A (en)* | 2016-07-07 | 2019-03-01 | 华为技术有限公司 | A kind of management method of Internet resources, apparatus and system |
| CN108632321A (en)* | 2017-03-23 | 2018-10-09 | 中国联合网络通信集团有限公司 | Treating method and apparatus based on scheduling of resource under big data platform |
| CN108616600A (en)* | 2018-05-11 | 2018-10-02 | 深圳市网心科技有限公司 | Resource regulating method, client server, node device, network system and medium |
| CN109358965A (en)* | 2018-09-25 | 2019-02-19 | 杭州朗和科技有限公司 | Cloud computing cluster resource dispatching method, medium, device and calculating equipment |
| Publication number | Publication date |
|---|---|
| CN112714146A (en) | 2021-04-27 |
| WO2021078058A1 (en) | 2021-04-29 |
| Publication | Publication Date | Title |
|---|---|---|
| US11563669B2 (en) | Method for implementing network virtualization and related apparatus and communications system | |
| CN109600246B (en) | Network slice management method and device | |
| US10698717B2 (en) | Accelerator virtualization method and apparatus, and centralized resource manager | |
| CN111770535B (en) | Intent-based network configuration method, device and system | |
| CN114095577A (en) | Resource request method, device, computing power network element node and computing power application device | |
| CN113709048A (en) | Routing information sending and receiving method, network element and node equipment | |
| CN114039858B (en) | A computing network resource fusion method, device, equipment and storage medium | |
| CN113810206B (en) | A network automation orchestration management method, entity, controller and electronic equipment | |
| CN113810205A (en) | Method for reporting and receiving service computing power information, server and data center gateway | |
| CN105979007A (en) | Acceleration resource processing method and device and network function virtualization system | |
| CN110730478B (en) | Slice association method, device, end-to-end slice organizer and storage medium | |
| CN112714146B (en) | Resource scheduling method, device, equipment and computer readable storage medium | |
| CN116760704A (en) | Method, device, equipment and storage medium for updating computing power network state | |
| WO2020249080A1 (en) | Virtual network function (vnf) deployment method and apparatus | |
| CN114301980A (en) | Method, device and system for scheduling container cluster and computer readable medium | |
| CN112953739B (en) | K8S platform-based method, system and storage medium for nanotube SDN | |
| CN113342456B (en) | A connection method, device, equipment and storage medium | |
| WO2024250629A1 (en) | Node autonomy-based data transmission method and system in hybrid cloud | |
| CN116719644A (en) | Computing power dispatching method, computing power dispatching device, electronic equipment and computer readable storage medium | |
| CN116708440A (en) | Communication method, system and related equipment for distributed training | |
| CN116455817A (en) | Software-defined cloud network fusion architecture and route implementation method | |
| CN115834290A (en) | Method, device, equipment and medium for dynamically establishing tunnel | |
| CN116418724A (en) | Service access method, device and load balancing system | |
| CN115242754B (en) | Information return method, request response method, message sending method and device | |
| CN111565207B (en) | Content distribution network control method, device and computer-readable storage medium |
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |