Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the technical solutions of the present application will be described in detail and completely with reference to the following specific embodiments of the present application and the accompanying drawings. It should be apparent that the described embodiments are only some of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The existing terminal equipment has limited resources, so that background computing efficiency is low, and even a terminal equipment system is crashed. In view of the technical problem, in some embodiments of the present application, a terminal device may send a computation request to a management and control node when there is a computation demand. The management and control node can select target resources from the edge cloud nodes according to the computing demand information carried by the computing request and the address information of the terminal equipment, and construct a virtual equipment carrier by using the target resources; and then initializing the virtual equipment carrier according to the calculation requirement information to obtain edge virtual equipment corresponding to the terminal equipment. The edge virtual device can provide computing service aiming at computing demand information for the terminal device, cloud-loading of the terminal is achieved, computing tasks of the terminal device are processed by the edge virtual device on the edge cloud side, and computing efficiency is improved.
The technical solutions provided by the embodiments of the present application are described in detail below with reference to the accompanying drawings.
It should be noted that: like reference numerals refer to like objects in the following figures and embodiments, and thus, once an object is defined in one figure or embodiment, further discussion thereof is not required in subsequent figures and embodiments.
Fig. 1 is a schematic structural diagram of a network system according to an embodiment of the present application. As shown in fig. 1, the network system S10 includes: the system comprises a management and control node 10, a plurality of edge cloud nodes 20 and a terminal device 30. Plural means 2 or more.
In this embodiment, the management and control node 10 refers to a device, a software function module, or a software system having resource scheduling and management and control functions. The number of the management nodes 10 may be one or more. The plurality of management nodes 10 may be deployed in the same physical machine or in different physical machines. The management and control node 10 may be deployed in a central cloud, and form a "cloud edge three-body cooperation" network architecture in combination with the edge cloud node 20 and the terminal device 30. In the network architecture, tasks such as network forwarding, storage, computation, and intelligent data analysis may be handled in each edge cloud node 20 in the network system S10. Because each edge cloud node 20 is closer to the terminal, the response time delay can be reduced, the pressure of the central cloud or the traditional cloud computing platform is reduced, and the bandwidth cost is reduced.
The management and control node 10 and the terminal device 30 may be connected wirelessly or by wire. Optionally, the terminal device 30 may be in communication connection with the management and control node 10 through a mobile network, and accordingly, the network format of the mobile network may be any one of 2G (gsm), 2.5G (gprs), 3G (WCDMA, TD-SCDMA, CDMA2000, UTMS), 4G (LTE), 4G + (LTE +), 5G, WiMax, and the like. Of course, the management and control node 10 and the edge cloud node 20 may also be connected wirelessly or by wire, and the communication connection manner may refer to the communication connection manner between the management and control node 10 and the terminal device 30.
The edge cloud is a cloud computing platform constructed on an edge infrastructure based on cloud computing technology and edge computing capability, and is a cloud platform with computing, network, storage, security and other capabilities at an edge position. The edge cloud is a relative concept, the edge cloud refers to a cloud computing platform relatively close to the terminal, or is different from a control node or a traditional cloud computing platform, the central cloud or the traditional cloud computing platform may include a data center or a machine room with large-scale resources and concentrated positions, the edge cloud is composed of a plurality of edge cloud nodes 20, the resource scale of a single edge cloud node is small, but the number of the edge cloud nodes is large, so that the coverage range of the edge cloud is wider.
In other words, the network system S10 of the present embodiment is also a cloud computing platform constructed on an edge infrastructure based on cloud computing technology and edge computing capability, is a cloud platform having computing, networking, storage, security, and other capabilities at an edge location, is a cloud computing platform relatively close to a terminal, and is also a network system constructed based on a central cloud or an infrastructure between a conventional cloud computing system and a terminal. The terminal related to this embodiment refers to a demand end of the cloud computing service, and may be, for example, a terminal or a user end in the internet, such as a mobile phone, a computer, and the like; or a terminal or a user end in the internet of things, such as an internet of things (IoT) device.
The network system S10 of the present embodiment includes a plurality of edge cloud nodes 20, each edge cloud node 20 including a series of edge infrastructures including, but not limited to: a distributed Data Center (DC), a wireless room or a cluster, an operator's communication network, a core network device, a base station, a Mobile Edge Cloud (MEC) node, an Edge gateway, a home gateway, a computing device or a storage device, and other Edge devices and corresponding network environments, and so on. It is noted that the location, capabilities, and infrastructure involved of different edge cloud nodes 20 may or may not be the same. For an edge cloud node 20, various resources, such as computing resources like CPU and GPU, storage resources like memory and hard disk, and network resources like bandwidth, may be provided externally.
With the development of mobile communication networks (such as 5G mobile communication), energy with wide connection, low latency and large bandwidth is provided on the edge cloud infrastructure, so that it is possible to computationally move the terminal device 30 to the edge cloud. On the one hand, the terminal device 30 has a lower cost; on the other hand, the computing power of the edge cloud is stronger than that of the terminal device, and the computing efficiency is improved.
In the present embodiment, in order to improve the calculation efficiency, the terminal device 30 may send a calculation request to the management and control node 10 when there is a calculation demand. The computation request may include: and calculating the demand information and the address information of the terminal equipment. Among them, the calculation requirements of the terminal device 30 are various. The computing requirements may be cloud application requirements, cloud desktop requirements, cloud device requirements, and the like. The calculation requirement information refers to information describing the calculation requirement of the terminal device 30, and may include: device system information, associated information of the type of computation, etc. The device system information refers to description information of an operating system required by the terminal device 30. The terminal device 30 is different, and the operating system is also different. Alternatively, the operating system may be a Windows system, an android system, an IOS system, or an IOT device system, such as an RTOS system.
The computing requirements are different and the computing types are also different. The computing requirements are cloud application requirements, and correspondingly, the computing type is application computing. The correlation information calculated by the application may include: device application or program name, application version information, etc. The computing requirements are cloud desktop requirements, and correspondingly, the computing type is desktop computing. The associated information of the desktop computing can include: desktop program name, desktop version information, etc. The computing requirements are cloud device requirements, and correspondingly, the computing type is device computing. The association information computed by the device may include: device system information, device brand, model information, etc.
The address information of the terminal device 30 refers to information that can reflect the geographical position of the terminal device 30. The address information of the terminal device 30 may include: one or more of geographical location information of the terminal device 30, IP address information of the terminal device 30, and the like, and domain name information of the terminal device 30, and the like; the plurality means 2 or more than 2.
For the governing node 10, a calculation request of the terminal device 30 may be received. Optionally, in this embodiment, in order to improve information security, before the management and control node 10 responds to the computation request, authority verification may be further performed on the terminal device 30 to determine whether the terminal device 30 has authority to access the management and control node 10. Optionally, the management and control node 10 may analyze identity information of the terminal device from the calculation request, such as a device identifier, public key information, a user identifier, password information, and the like of the terminal device; further, the management and control node 10 may perform authority verification on the terminal device 30 by using the identification information of the terminal device. If the terminal device 30 passes the permission verification, whether an edge virtual device corresponding to the device identifier exists in the edge cloud node 20 can be judged according to the device identifier of the terminal device; and if the judgment result is negative, executing virtual equipment creating operation. Accordingly, if the determination result is that the edge virtual device corresponding to the device identifier already exists in the edge cloud node 20, the edge virtual device may be reinitialized according to the calculation requirement information in the calculation request. In the embodiment of the present application, it is important to protect how to create and use the relevant content of the edge virtual device when the edge virtual device corresponding to the device identifier does not exist in the edge cloud node 20, and therefore, the following description is focused on how to create and use the edge virtual device.
As shown in fig. 1, the management and control node 10 may parse the computation requirement information and the address information of the terminal device from the computation request. Since the calculation demand information may reflect the calculation demand of the terminal device 30, and the address information of the terminal device 30 may reflect the geographic location of the terminal device 30, in this embodiment, in order to reduce the response delay to the calculation request while satisfying the calculation demand of the terminal device 30, the management and control node 10 may select a target resource from the plurality of edge cloud nodes 20 according to the calculation demand information and the address information of the terminal device 30; and constructing a virtual device carrier by using the target resource.
Optionally, the management and control node 10 may determine resource information required by the terminal device 30 according to the calculation requirement information. Wherein, the resource information may include: resource type and resource amount. Among them, resource types may include but are not limited to: computing resources such as a CPU and a GPU, storage resources such as a memory and a hard disk, and resource types such as bandwidth resources. Taking the CPU resource as an example, the resource amount may be 12 CPUs, 24 CPUs, etc. For example, the amount of resources may be 16GB memory, 32GB memory, etc. Taking bandwidth resources as an example, the amount of resources may be 1Mbps bandwidth, 10Mbps bandwidth, etc.
The embodiment of the present application does not limit the specific implementation of the management and control node 10 determining the resource information required by the terminal device 30. The following embodiments are given as examples and are not intended to limit the scope of the invention.
Embodiment 1: the management and control node 10 is preset with a resource decision model. The resource decision model can determine the required resource information according to the calculation demand information. Based on this, the calculation requirement information can be input into the resource decision model; in the resource decision model, the resource information required by the terminal device 30 may be determined according to the calculation requirement information.
Embodiment 2: the management and control node 10 is preset with a resource allocation policy. Different computing types correspond to different resource allocation strategies. Based on this, the management node 10 may set in advance a correspondence relationship between the calculation type and the resource allocation policy. The management and control node 10 may parse the calculation type requested by the terminal device from the calculation requirement information. Further, the management and control node 10 may match the calculation type requested by the terminal device with a corresponding relationship between a preset calculation type and a resource allocation policy, so as to determine a resource allocation policy corresponding to the calculation type requested by the terminal device; then, the resource information required by the terminal device 30 may be determined according to the resource allocation policy corresponding to the calculation type requested by the terminal device.
Embodiment 3: the management and control node 10 is preset with resource information. Different computing types correspond to different resource allocation information. Based on this, the management and control node 10 can analyze the calculation type requested by the terminal device from the calculation requirement information; and matching is performed in the correspondence between the preset calculation type and the resource information by using the calculation type requested by the terminal device to determine the resource information corresponding to the calculation type requested by the terminal device as the resource information required by the terminal device 30.
Embodiment 4: the management and control node 10 may provide a resource configuration interface to a user; the user may configure the resource information for the terminal device 30 through the resource configuration interface. Accordingly, the management and control node 10 may obtain the user configuration data; the resource information configured for the terminal device 30 is parsed from the user configuration data. Further, it may be determined whether the resource information configured for the terminal device is adapted to the calculation requirement information. Optionally, the management and control node 10 may obtain resource information that the user has a usage right; judging whether the resource information configured for the terminal equipment exceeds the resource information of which the user has the use authority; and if the judgment result is negative, determining that the resource information configured by the terminal equipment is adaptive to the calculation requirement. And if the resource information configured for the terminal equipment exceeds the resource information of which the user has the use permission, determining that the resource information configured for the terminal equipment is not adaptive to the calculation requirement.
Further, if the judgment result is that the resource information configured for the terminal equipment is not matched with the calculation requirement, returning the adjustment prompt information. For the user, the user configuration data can be adjusted based on the adjustment prompt information until the resource information configured for the terminal equipment is matched with the calculation requirement information. Further, the management and control node 10 may use the resource information adapted to the calculation requirement information as the resource information required by the terminal device 30.
The above embodiments 1 to 4 are merely illustrative and not restrictive. In practical use, the management node 10 may be implemented alternatively to the above embodiments 1 to 4, or may be implemented by using various combinations thereof.
Further, after determining the resource information required by the terminal device 30, the management and control node 10 may select a target resource from the plurality of edge cloud nodes 20 according to the resource information required by the terminal device 30 and the address information of the terminal device 30. Wherein the target resource can satisfy the requirement of the resource information required by the terminal device 30.
Optionally, the management and control node 10 may determine, from the plurality of edge cloud nodes 20, a first edge cloud node whose remaining resource amount satisfies a requirement of the resource information; and according to the address information of the terminal device 30 and the address information of the first edge cloud node, selecting a second edge cloud node, the distance of which from the terminal device 30 meets the set distance condition, from the first edge node. For example, the management node 10 may select a second edge cloud node closest to the terminal device 30 from the first edge nodes. Further, a target resource that satisfies a requirement of the resource information required by the terminal device 30 may be selected from the second edge cloud node. For example, the resource information required by the terminal device 30 includes: x CPUs, Y GPUs, XX MB memory and YY Mbps bandwidth. Correspondingly, the management and control node 10 may select X CPUs, Y GPUs, XX MB memories, and YY Mbps bandwidths from the second edge cloud node; these target resources are allocated to the terminal device 30.
The second edge cloud node, the distance between which and the terminal device 30 meets the set distance condition, is selected from the first edge nodes, so that the constructed edge virtual device can be as close to the terminal device 30 as possible, and reduction of access delay is facilitated.
Further, the management node 10 may create a virtual device carrier using the target resource. The virtual device carrier may be a container, a Virtual Machine (VM), a group of containers (e.g., pod, etc.), or the like, but is not limited thereto. The virtual device carrier is a stateless device. In this embodiment, in order for the virtual device to provide the computing service to the terminal device 30, the stateless device needs to be converted into a stateful device. Based on this, the management and control node 10 may initialize the virtual device carrier according to the calculation requirement information, so as to obtain the edge virtual device. The edge virtual device is a stateful device.
Optionally, the management and control node 10 may obtain device data of the virtual device carrier from the edge cloud node 20 according to the calculation requirement information; and initializing the virtual device carrier based on the device data to obtain the stateful edge virtual device.
Optionally, the management and control node 10 may parse the device system information from the calculation requirement information; operating system data corresponding to the device system information is acquired from the edge cloud node 20 and is used as operating system data of the virtual device carrier. Accordingly, the managing node 10 may run operating system data on the virtual device carrier to perform operating system initialization on the virtual device carrier.
And/or the management and control node 10 may parse the correlation information of the computation type requested by the terminal device 30 from the computation requirement information; and acquiring computing data corresponding to the correlation information of the computing type from the edge cloud node as computing data of the virtual equipment carrier. For example, the type of computation is an application. The association information of the application includes application identification information. Such as application name and application version number, etc. Accordingly, the management and control node 10 may obtain the application data corresponding to the application identification information from the edge cloud node. The application data may include resources such as programs, executable files, and pictures corresponding to the application, but is not limited thereto.
Further, the management and control node 10 may mount the calculation data on the virtual device carrier to perform data initialization on the virtual device carrier.
And/or, in some embodiments, the computing request further includes a device identification of the terminal device. The device identifier is information that can uniquely identify a terminal device. For example, the device identification may be a device ID, etc. Based on this, the management and control node 10 may further parse the device identifier of the terminal device 30 from the computing request, and obtain the network configuration data corresponding to the device identifier from the edge cloud node 20, as the network configuration data of the virtual device carrier. Wherein the network configuration data may include: network operator information, network resource information, network ports, etc. Further, network configuration is carried out on the virtual equipment carrier according to the network configuration data so as to carry out network initialization on the virtual equipment carrier.
After initializing the virtual device carrier, the virtual device carrier is implemented as a stateful edge virtual device. In this way, the stateful edge virtual device corresponds to the terminal device 30, and the terminal device 30 can be provided with the calculation service for the calculation demand information. For example, if the computing requirement information is associated with an application, the edge virtual device may provide computing services for the application to the terminal device 30. For another example, if the computing requirement information is the association information of the device, the edge virtual device may provide the computing service for the device to the terminal device 30. For another example, if the computing requirement information is associated with a cloud desktop, the edge virtual device may provide a computing service for the desktop to the terminal device 30.
In order for the edge virtual device to provide the computing service to the terminal device 30, the management node 10 may provide the address information of the edge virtual device to the terminal device 30. The address information of the edge virtual device may include: IP address, port number, etc. of the edge virtual device. The IP address may be an IPv4 address or an IPv6 address. For the terminal device 30, a calculation service for the calculation demand information may be requested from the edge virtual device based on the address information of the edge virtual device.
Alternatively, the terminal device 30 may provide the computing task for the computing type to the edge virtual device based on the address information of the edge virtual device in response to the computing trigger event for the computing type in the computing requirement information; the edge virtual device can execute the computing task; and provides the terminal device 30 with the calculation result obtained by executing the calculation task. The terminal device 30 may output the calculation result.
Optionally, the terminal device 30 may use the IP address of the edge virtual device as a destination IP address, use the port number of the edge virtual device as a destination port number, use the task description information of the computation task as the data segment content, and encapsulate the request packet corresponding to the computation task; and sending the request message to the edge virtual equipment pointed by the destination IP address and the destination port number. The edge virtual device can receive the request message; analyzing task description information from the request message; and executing the calculation task according to the task description information to obtain a calculation result corresponding to the calculation task.
Taking the calculation request of the terminal device 30 as an example of a calculation request initiated for an application, an exemplary description is given below of a process in which the terminal device 30 requests a calculation service for calculation demand information from an edge virtual device based on address information of the edge virtual device.
Assuming that the computing trigger event for the application by the user is to start the application, the terminal device 30 may provide the computing task for starting the application to the edge virtual device based on the address information of the edge virtual device in response to the start event for the application. The edge virtual device can acquire the computing task and request the page data of the application from the server side of the application; and provides the acquired application page data to the terminal device 30; terminal device 30 may render the application page data on a display screen.
Further, assuming that the application is a video-class application, the computation trigger event for the application may be implemented as a trigger event for a certain video. The terminal device 30 may provide, to the edge virtual device, a calculation task of acquiring video data of the target video based on the address information of the edge virtual device in response to a play trigger event for the target video. The edge virtual device can acquire the computing task and request the video data corresponding to the target video from the application server; and provides the video data corresponding to the acquired target video to the terminal device 30; the terminal device 30 can play the video data.
In the network system provided in this embodiment, the terminal device may send a computation request to the management and control node when there is a computation demand. The management and control node 10 may select a target resource from the edge cloud node according to the computing demand information carried by the computing request and the address information of the terminal device, and construct a virtual device carrier using the target resource; and then initializing the virtual equipment carrier according to the calculation requirement information to obtain edge virtual equipment corresponding to the terminal equipment. The edge virtual device can provide computing service aiming at computing demand information for the terminal device, cloud-loading of the terminal is achieved, computing tasks of the terminal device are processed by the edge virtual device on the edge cloud side, and computing efficiency is improved.
On the other hand, when the resources for constructing the edge virtual device are selected, the address information of the terminal device is considered, the edge virtual device can be made to be close to the terminal device as much as possible, and the interaction delay between the terminal device and the edge virtual device is favorably reduced.
The above embodiment exemplarily illustrates the implementation of cloud on a terminal from the perspective of a management and control node of a network system. In some embodiments, a software system module may be further deployed in the management and control node, and the creation and the use of the edge virtual device are realized through cooperation between the software modules. The following is an exemplary description of the specific embodiments shown in fig. 2 and 3.
As shown in fig. 2 and fig. 3, the management and control node 10 is deployed with a service management and control system, a virtual device management system, a cloud-edge coordination system, a central resource scheduling system, and an edge resource scheduling system. The edge cloud node 20 is deployed with an edge infrastructure system. The virtual device management and control system is used for managing the whole life cycle of the edge virtual device and managing and controlling the edge virtual device. And the cloud edge coordination system is used for managing and controlling the management and data coordination between the management and control node and the edge equipment (the edge virtual equipment and the edge entity equipment). And the central resource scheduling system is used for being responsible for the overall production scheduling process of the edge virtual equipment. The edge resource scheduling system is used for scheduling resources of the edge cloud nodes. And the edge infrastructure system is used for fusing edge computing resources, storage resources and network resources and is responsible for the production of edge virtual equipment in an edge cloud.
As shown in fig. 2 and 3, the terminal device 30 may send a calculation request to the service management and control system in the case of a calculation demand. The computation request may include: and calculating the demand information and the address information of the terminal equipment.
In this embodiment, in order to improve information security, the service management and control system may perform authority verification, i.e., device authentication in fig. 3, on the terminal device 30. For a specific implementation of the right verification for the terminal device 30, reference may be made to relevant contents of the foregoing embodiments, and details are not described here.
Further, the service management system may provide the computation request to the virtual device management system. The virtual device management and control system may start a virtual device production process, i.e., the device production shown in fig. 3. The method specifically comprises the following steps: the virtual device management and control system may determine, according to the device identifier of the terminal device, whether an edge virtual device corresponding to the device identifier exists in the edge cloud node, that is, the device call flow of fig. 3; and if the judgment result is negative, executing the edge virtual equipment creating operation.
Specifically, the virtual device management and control system may invoke a central resource scheduling system, an edge resource scheduling system, and an edge infrastructure system, and select a target resource from the plurality of edge cloud nodes 20 according to the calculation demand information and the address information of the terminal device 30; and constructing a virtual device carrier, namely stateless equipment, by using the target resources. For specific implementation of selecting a target resource from a plurality of edge cloud nodes 20, reference may be made to relevant contents of the foregoing embodiments, and details are not described herein again.
The virtual device carrier is a stateless device. In this embodiment, in order for the edge virtual device to provide the computing service to the terminal device 30, the stateless device needs to be converted into a stateful device. Based on this, the virtual device management and control system can initialize the virtual device carrier through the cloud edge coordination system according to the calculation requirement information to obtain the edge virtual device, and the binding of the edge virtual device and the terminal device is realized. The edge virtual device is a stateful device. Wherein initializing the virtual device carrier may include: device data initialization, device system initialization, and device network initialization. For specific implementation of device data initialization, device system initialization, and device network initialization for the virtual device carrier, reference may be made to relevant contents of the above system embodiments, and details are not described herein again.
In order for the edge virtual device to provide the computing service to the terminal device 30, the virtual device management and control system may provide the address information of the edge virtual device to the terminal device 30. Optionally, the virtual device management and control system may provide the address information of the edge virtual device to the service management and control system; the address information of the edge virtual device is provided to the terminal device 30 by the service management system. The service management and control system may perform device network management and control on the terminal device 30 and the edge virtual device, and establish network connection between the terminal device 30 and the edge virtual device. The terminal device 30 performs device binding with the edge virtual device through the service management and control system.
For the terminal device 30, a calculation service for the calculation demand information may be requested from the edge virtual device based on the address information of the edge virtual device. For a specific implementation of the terminal device 30 requesting the edge virtual device for the computing service of the computing requirement information, reference may be made to relevant contents of the above system embodiment, and details are not described herein again.
In this embodiment, through the virtual device management and control system, the cloud-edge coordination system, the central resource scheduling system, and the edge infrastructure system, production of edge virtual devices is realized, that is, cloud implementation on the terminal is realized, so that the computing task of the terminal can be moved up to the edge virtual devices in the edge cloud for processing, and the computing acceleration can be realized by using the strong computing power and performance of the edge cloud, thereby improving the computing efficiency.
On the other hand, elastic expansion and scheduling of the edge virtual equipment in the edge cloud are realized through the central resource scheduling system and the edge infrastructure system. When selecting the resources for constructing the edge virtual device, the address information of the terminal device is considered, so that the edge virtual device can be close to the terminal device as much as possible, and the interaction delay between the terminal device and the edge virtual device is favorably reduced.
Moreover, a unified virtual device management and control interface can be provided through the virtual device management and control system, and the management of the whole life cycle of the edge virtual device is realized.
In addition to the system embodiments described above, the embodiments of the present application also provide a resource processing method, and the following describes an exemplary resource processing method provided by the embodiments of the present application from the perspective of a management and control node.
Fig. 4 is a flowchart illustrating a resource processing method according to an embodiment of the present application. As shown in fig. 4, the resource processing method includes:
401. acquiring a calculation request sent by terminal equipment; the calculation request includes: and calculating the demand information and the address information of the terminal equipment.
402. And selecting target resources from the plurality of edge cloud nodes according to the calculation demand information and the address information of the terminal equipment.
403. And constructing a virtual equipment carrier by using the target resource.
404. And initializing the virtual equipment carrier according to the calculation requirement information to obtain the edge virtual equipment.
405. And providing the address information of the edge virtual device to the terminal device, so that the terminal device requests the edge virtual device for computing service aiming at the computing demand information based on the address information.
In this embodiment, in order to improve the calculation efficiency, the terminal device may send a calculation request to the management and control node when there is a calculation demand. The computation request may include: and calculating the demand information and the address information of the terminal equipment. For the description of the calculation requirement information and the address information of the terminal device, reference may be made to the related contents of the above system embodiments, and details are not described herein again.
For the policing node, in step 401, a computation request provided by the terminal device may be obtained. Optionally, in this embodiment, in order to improve information security, before the management and control node responds to the computation request, authority verification may be further performed on the terminal device to determine whether the terminal device has an authority to access the management and control node. Optionally, before step 402, identity information of the terminal device, such as device identifier, public key information, user identifier, password information, etc., of the terminal device may be parsed from the calculation request; further, the authority of the terminal equipment can be verified by utilizing the identity identification information of the terminal equipment. If the terminal equipment passes the authority verification, whether edge virtual equipment corresponding to the equipment identification exists in the edge cloud node or not can be judged according to the equipment identification of the terminal equipment; and if the judgment result is negative, executing virtual equipment creating operation. Correspondingly, if the judgment result is that the edge virtual device corresponding to the device identifier already exists in the edge cloud node, the edge virtual device can be reinitialized according to the calculation requirement information in the calculation request. In the embodiment of the present application, under the condition that an edge virtual device corresponding to a device identifier does not exist in an edge cloud node, how to create and use the edge virtual device is mainly protected, and therefore, the following description focuses on how to create and use the edge virtual device.
And analyzing the calculation demand information and the address information of the terminal equipment from the calculation request under the condition that the edge virtual equipment corresponding to the equipment identification does not exist in the edge cloud node. Since the computing requirement information may reflect the computing requirement of the terminal device, and the address information of the terminal device may reflect the geographic location of the terminal device, in this embodiment, in order to meet the computing requirement of the terminal device and reduce the response delay to the computing request, in step 402, a target resource may be selected from the plurality of edge cloud nodes according to the computing requirement information and the address information of the terminal device; and in step 403, the virtual device carrier is constructed using the target resource.
Optionally, the resource information required by the terminal device may be determined according to the calculation requirement information. Wherein, the resource information may include: resource type and resource amount. The embodiment of the present application does not limit the specific implementation manner of determining the resource information required by the terminal device. The following embodiments are given as examples and are not intended to limit the scope of the invention.
Embodiment 1: the control node is provided with a resource decision model in advance. The resource decision model can determine the required resource information according to the calculation demand information. Based on this, the calculation requirement information can be input into the resource decision model; in the resource decision model, the resource information required by the terminal device can be determined according to the calculation requirement information.
Embodiment 2: the control node is preset with a resource allocation strategy. Different computing types correspond to different resource allocation strategies. Based on this, the management and control node may preset a correspondence relationship between the calculation type and the resource allocation policy. The management and control node can analyze the calculation type requested by the terminal equipment from the calculation requirement information. Further, the calculation type requested by the terminal device may be matched in the correspondence between the preset calculation type and the resource allocation policy to determine the resource allocation policy corresponding to the calculation type requested by the terminal device; and then, determining the resource information required by the terminal equipment according to the resource allocation strategy corresponding to the calculation type requested by the terminal equipment.
Embodiment 3: the control node is preset with resource information. Different computing types correspond to different resource allocation information. Based on the method, the management and control node can analyze the calculation type requested by the terminal equipment from the calculation requirement information; and matching in the corresponding relation between the preset calculation type and the resource information by using the calculation type requested by the terminal equipment to determine the resource information corresponding to the calculation type requested by the terminal equipment as the resource information required by the terminal equipment.
Embodiment 4: the management and control node can provide a resource configuration interface for a user; the user can configure the resource information for the terminal equipment through the resource configuration interface. Correspondingly, the management and control node can acquire user configuration data; and analyzing the resource information configured for the terminal equipment from the user configuration data. Further, it may be determined whether the resource information configured for the terminal device is adapted to the calculation requirement information. Further, if the judgment result is that the resource information configured for the terminal equipment is not matched with the calculation requirement, returning the adjustment prompt information. For the user, the user configuration data can be adjusted based on the adjustment prompt information until the resource information configured for the terminal equipment is matched with the calculation requirement information. Further, the resource information adapted to the calculation requirement information may be used as the resource information required by the terminal device.
The above embodiments 1 to 4 are merely illustrative and not restrictive. In practical applications, the policing node may be implemented alternatively to the above embodiments 1-4, or may be implemented by using a combination of the above embodiments.
Further, after the resource information required by the terminal device is determined, the target resource can be selected from the edge cloud nodes according to the resource information required by the terminal device and the address information of the terminal device. The target resource can meet the requirement of resource information required by the terminal equipment.
Optionally, a first edge cloud node whose remaining resource amount meets the requirement of the resource information may be determined from the plurality of edge cloud nodes; and selecting a second edge cloud node, the distance between which and the terminal equipment meets the set distance condition, from the first edge nodes according to the address information of the terminal equipment and the address information of the first edge cloud node. And selecting a second edge cloud node with a distance between the second edge cloud node and the terminal equipment meeting a set distance condition from the first edge node, so that the constructed edge virtual equipment can be close to the terminal equipment as much as possible, and the access delay can be reduced.
Further, a virtual device carrier may be created with the target resource. The virtual device carrier may be a container, a Virtual Machine (VM), a group of containers (e.g., pod, etc.), or the like, but is not limited thereto. The virtual device carrier is a stateless device. In this embodiment, in order for the virtual device to provide the computing service to the terminal device, the stateless device needs to be converted into a stateful device. Based on this, in step 404, the virtual device carrier may be initialized according to the calculation requirement information, so as to obtain the edge virtual device. The edge virtual device is a stateful device.
Optionally, device data of the virtual device carrier may be acquired from the edge cloud node according to the computing requirement information; and initializing the virtual device carrier based on the device data to obtain the stateful edge virtual device.
Optionally, the equipment system information can be analyzed from the calculation requirement information; and acquiring operating system data corresponding to the equipment system information from the edge cloud node, wherein the operating system data is used as operating system data of the virtual equipment carrier. Accordingly, operating system data may be run on the virtual device carrier to perform operating system initialization on the virtual device carrier.
And/or the correlation information of the calculation type requested by the terminal equipment can be analyzed from the calculation requirement information; and acquiring computing data corresponding to the correlation information of the computing type from the edge cloud node as computing data of the virtual equipment carrier. Further, the computing data may be mounted on a virtual device carrier to perform data initialization on the virtual device carrier.
And/or, in some embodiments, the computing request further includes a device identification of the terminal device. Based on this, the device identifier of the terminal device in the computing request can be analyzed, and the network configuration data corresponding to the device identifier can be obtained from the edge cloud node and used as the network configuration data of the virtual device carrier. Wherein the network configuration data may include: network operator information, network resource information, network ports, etc. Further, network configuration can be performed for the virtual device carrier according to the network configuration data, so as to perform network initialization for the virtual device carrier.
After initializing the virtual device carrier, the virtual device carrier is implemented as a stateful edge virtual device. In this way, the stateful edge virtual device corresponds to the terminal device, and the terminal device can be provided with the computing service for computing the demand information. In order for the edge virtual device to provide computing services to the terminal device, address information of the edge virtual device may be provided to the terminal device in step 405. For the terminal device, a computing service for computing demand information may be requested from the edge virtual device based on the address information of the edge virtual device. For a specific implementation of the terminal device requesting, based on the address information based on the edge virtual device, a computing service for computing demand information from the edge virtual device, reference may be made to relevant contents of the above system embodiment, and details are not described here again.
In this embodiment, the terminal device may send a computation request to the management and control node when there is a computation demand. The management and control node can select target resources from the edge cloud nodes according to the computing demand information carried by the computing request and the address information of the terminal equipment, and construct a virtual equipment carrier by using the target resources; and then initializing the virtual equipment carrier according to the calculation requirement information to obtain edge virtual equipment corresponding to the terminal equipment. The edge virtual device can provide computing service aiming at computing demand information for the terminal device, cloud-loading of the terminal is achieved, computing tasks of the terminal device are processed by the edge virtual device on the edge cloud side, and computing efficiency is improved.
On the other hand, when the resources for constructing the edge virtual device are selected, the address information of the terminal device is considered, the edge virtual device can be made to be close to the terminal device as much as possible, and the interaction delay between the terminal device and the edge virtual device is favorably reduced.
It should be noted that the execution subjects of the steps of the methods provided in the above embodiments may be the same device, or different devices may be used as the execution subjects of the methods. For example, the execution subject of steps 401 and 402 may be device a; for another example, the execution subject of step 401 may be device a, and the execution subject of step 402 may be device B; and so on.
In addition, in some of the flows described in the above embodiments and the drawings, a plurality of operations are included in a specific order, but it should be clearly understood that the operations may be executed out of the order presented herein or in parallel, and the sequence numbers of the operations, such as 401, 402, etc., are merely used to distinguish various operations, and the sequence numbers themselves do not represent any execution order. Additionally, the flows may include more or fewer operations, and the operations may be performed sequentially or in parallel.
Accordingly, embodiments of the present application also provide a computer-readable storage medium storing computer instructions, which, when executed by one or more processors, cause the one or more processors to perform the steps of the above-mentioned resource scheduling method.
An embodiment of the present application further provides a computer program product, including: a computer program; the computer program executed by one or more processors may implement the resource scheduling method described above.
Fig. 5 is a schematic structural diagram of a computer device according to an embodiment of the present application. The computer equipment can be realized as server-side equipment and is deployed in a central cloud. The server device 10a may be a single server device, a cloud server array, or a Virtual Machine (VM) running in the cloud server array. In addition, the server device may also refer to other computing devices with corresponding service capabilities, such as a terminal device (running a service program) such as a computer.
As shown in fig. 5, the server device may include: a memory 50a, a processor 50b and a communication component 50 c. A memory 50a for storing a computer program.
The processor 50b is coupled to the memory 50a and the communication component 50c for executing computer programs for: acquiring a calculation request sent by the terminal equipment through the communication component 50 c; the calculation request includes: calculating demand information and address information of the terminal equipment; selecting target resources from a plurality of edge cloud nodes according to the calculation demand information and the address information of the terminal equipment; constructing a virtual equipment carrier by using the target resource; initializing a virtual equipment carrier according to the calculation requirement information to obtain edge virtual equipment; and providing, by the communication component 50c, the address information of the edge virtual device to the terminal device for the terminal device to request a computing service for the computing demand information from the edge virtual device based on the address information.
Optionally, when the processor 50b selects the target resource from the plurality of edge cloud nodes, it is specifically configured to: determining resource information required by the terminal equipment according to the calculation requirement information; and selecting target resources from the plurality of edge cloud nodes according to the address information and the resource information of the terminal equipment.
Further, when determining the resource information required by the terminal device, the processor 50b is specifically configured to:
inputting the calculation demand information into a resource decision model; in the resource decision model, determining resource information required by the terminal equipment according to the calculation requirement information;
and/or the presence of a gas in the gas,
matching the calculation demand information in a corresponding relation between preset calculation demand information and a resource allocation strategy to determine the resource allocation strategy corresponding to the calculation demand information; determining resource information required by the terminal equipment according to a resource allocation strategy corresponding to the calculation demand information;
and/or the presence of a gas in the gas,
analyzing the calculation type from the calculation requirement information; matching the calculation type in the corresponding relation between the preset calculation type and the resource information by using the calculation type to determine the resource information corresponding to the calculation type requested by the terminal equipment as the resource information required by the terminal equipment;
and/or the presence of a gas in the gas,
acquiring user configuration data; analyzing resource information configured for the terminal equipment from the user configuration data; judging whether the resource information configured for the terminal equipment is matched with the calculation demand information or not, if not, returning adjustment prompt information for a user to adjust user configuration data based on the adjustment prompt information until the resource information configured for the terminal equipment is matched with the calculation demand information; and taking the resource information matched with the calculation requirement information as the resource information required by the terminal equipment.
Optionally, when the processor 50b selects the target resource from the plurality of edge cloud nodes, it is specifically configured to: determining a first edge cloud node with the residual resource information meeting the resource information requirement from a plurality of edge cloud nodes; selecting a second edge cloud node, the distance between which and the terminal equipment meets a set distance condition, according to the position information of the terminal equipment and the position information of the first edge cloud node; and selecting target resources meeting the resource information requirements from the second edge cloud nodes.
In some embodiments, the processor 50b is specifically configured to, when initializing the virtual device carrier: acquiring equipment data of the virtual equipment carrier from the edge cloud node according to the computing demand information; and initializing the virtual device carrier based on the device data to obtain the stateful edge virtual device.
Optionally, the processor 50b is configured to obtain the device data of the virtual device carrier from the edge cloud node, and specifically to perform at least one of the following operations:
analyzing equipment system information from the calculation requirement information; acquiring operating system data corresponding to equipment system information from the edge cloud node, and using the operating system data as operating system data of a virtual equipment carrier;
analyzing the calculation type from the calculation requirement information; acquiring computing data required by computing types from the edge cloud nodes, and using the computing data as computing data of a virtual equipment carrier;
analyzing the equipment identification from the calculation requirement information; and acquiring network configuration data corresponding to the equipment identification from the edge cloud node. As network configuration data for the virtual device carrier.
Accordingly, the processor 50b is specifically configured to perform at least one of the following initialization operations when initializing the virtual device carrier based on the device data:
operating system data on the virtual equipment carrier to perform operating system initialization on the virtual equipment carrier;
mounting the calculation data on the edge virtual equipment to perform data initialization on a virtual equipment carrier;
and performing network configuration for the virtual equipment carrier by using the network configuration information so as to perform network initialization on the virtual equipment carrier.
In some embodiments, computing the request further comprises: the device identification of the terminal device. The processor 50b is further configured to: judging whether edge virtual equipment corresponding to the equipment identification exists in the edge cloud node or not according to the equipment identification; and if the judgment result is negative, executing the operation of selecting the target resource from the plurality of edge cloud nodes according to the calculation demand type and the position information of the terminal equipment.
Optionally, the processor 50b is further configured to: analyzing the identity identification information of the terminal equipment from the calculation request; carrying out authority verification on the terminal equipment by using the identity identification information; and if the authority passes the verification, executing a step of judging whether the edge virtual equipment corresponding to the equipment identification exists in the edge cloud node according to the equipment identification.
In some optional embodiments, as shown in fig. 5, the computer device may further include: power supply assembly 50d, etc. Only some of the components shown in fig. 5 are schematically depicted, and it is not meant that the computer device must include all of the components shown in fig. 5, nor that the computer device only includes the components shown in fig. 5.
The computer device provided by this embodiment can select target resources from edge cloud nodes according to the computing demand information carried by the computing request sent by the terminal device and the address information of the terminal device, and construct a virtual device carrier by using the target resources; and then initializing the virtual equipment carrier according to the calculation requirement information to obtain edge virtual equipment corresponding to the terminal equipment. The edge virtual device can provide computing service aiming at computing demand information for the terminal device, cloud-loading of the terminal is achieved, computing tasks of the terminal device are processed by the edge virtual device on the edge cloud side, and computing efficiency is improved.
In embodiments of the present application, the memory is used to store computer programs and may be configured to store other various data to support operations on the device on which it is located. Wherein the processor may execute a computer program stored in the memory to implement the corresponding control logic. The memory may be implemented by any type or combination of volatile or non-volatile memory devices, such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
In the embodiments of the present application, the processor may be any hardware processing device that can execute the above described method logic. Alternatively, the processor may be a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), or a Micro Controller Unit (MCU); programmable devices such as Field-Programmable Gate arrays (FPGAs), Programmable Array Logic devices (PALs), General Array Logic devices (GAL), Complex Programmable Logic Devices (CPLDs), etc. may also be used; or Advanced Reduced Instruction Set (RISC) processors (ARM), or System On Chips (SOC), etc., but is not limited thereto.
In embodiments of the present application, the communication component is configured to facilitate wired or wireless communication between the device in which it is located and other devices. The device in which the communication component is located can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, 4G, 5G or a combination thereof. In an exemplary embodiment, the communication component receives a broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component may also be implemented based on Near Field Communication (NFC) technology, Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, or other technologies.
In embodiments of the present application, a power supply component is configured to provide power to various components of the device in which it is located. The power components may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the device in which the power component is located.
It should be noted that, the descriptions of "first", "second", etc. in this document are used for distinguishing different messages, devices, modules, etc., and do not represent a sequential order, nor limit the types of "first" and "second" to be different.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The above description is only an example of the present application and is not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.