CN113660726A - Resource allocation method and device - Google Patents

Resource allocation method and device Download PDF

Info

Publication number
CN113660726A
CN113660726A CN202010397086.1A CN202010397086A CN113660726A CN 113660726 A CN113660726 A CN 113660726A CN 202010397086 A CN202010397086 A CN 202010397086A CN 113660726 A CN113660726 A CN 113660726A
Authority
CN
China
Prior art keywords
network
resource
network device
service
processed
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010397086.1A
Other languages
Chinese (zh)
Inventor
李大鲲
黄正全
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN202010397086.1A priority Critical patent/CN113660726A/en
Publication of CN113660726A publication Critical patent/CN113660726A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W72/00Local resource management
    • H04W72/20Control channels or signalling for resource management
    • H04W72/21Control channels or signalling for resource management in the uplink direction of a wireless link, i.e. towards the network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W72/00Local resource management
    • H04W72/20Control channels or signalling for resource management
    • H04W72/23Control channels or signalling for resource management in the downlink direction of a wireless link, i.e. towards a terminal
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W72/00Local resource management
    • H04W72/50Allocation or scheduling criteria for wireless resources
    • H04W72/53Allocation or scheduling criteria for wireless resources based on regulatory allocation policies

Landscapes

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

Abstract

The embodiment of the application provides a resource allocation method and device, relates to the technical field of communication, and is beneficial to reducing the resource consumption of network equipment and improving the network use experience of a user. The method is performed by a network controller, the method comprising: receiving a request message from a first network device, wherein the request message is used for requesting available resources for a service to be processed; determining a second network device from one or more network devices except the first network device according to the request message, wherein the second network device has a first available resource capable of processing the service to be processed; and sending the first identification information of the second network equipment to the first network equipment.

Description

Resource allocation method and device
Technical Field
The present application relates to the field of communications technologies, and in particular, to a resource allocation method and apparatus.
Background
Currently, services supported by network devices (such as an access switch, a convergence switch, a wireless local area network access point (WLAN AP) or a Wireless Access Controller (WAC)) in a communication network include basic telecommunication services and other services. Wherein, the basic telecommunication service comprises: access of user equipment or message forwarding, etc. Other services include user identity verification, intelligent application control (SAC), Deep Packet Inspection (DPI), or Artificial Intelligence (AI) big data analysis.
When the number of basic telecommunication services of the network device is large, the resource (such as processor, cache, memory or disk bandwidth) of the network device is consumed too much by starting other services. Therefore, the method can influence the normal access of the user equipment of the network equipment, the basic telecommunication service such as message forwarding and the like, and further influence the network use experience of the user.
Disclosure of Invention
Embodiments of the present application provide a resource allocation method and apparatus, which are helpful for reducing resource consumption of network devices and improving network use experience of users.
In order to achieve the above purpose, the embodiment of the present application adopts the following technical solutions:
in a first aspect, a resource allocation method is provided, the method being performed by a network controller, the method comprising: receiving a request message from a first network device, wherein the request message is used for requesting available resources for a service to be processed; and determining a second network device from one or more network devices except the first network device according to the request message, wherein the second network device has a first available resource capable of processing the service to be processed. And sending the first identification information of the second network equipment to the first network equipment. The service to be processed is any one of the other services described in the background art. In this way, the network controller determines that the second network device has the first available resource capable of processing the service to be processed according to the request message of the first network device, and the network controller may send the first identification information of the second network device to the first network device, so as to instruct the first network device to transfer the service to be processed of the first network device to the second network device for processing, which is beneficial to reducing resource consumption of the first network device and improving network usage experience (i.e., improving user usage experience) of the user device connected to the first network device. Meanwhile, idle resources of the second network equipment can be utilized, and the resource utilization efficiency is improved. It can be understood that, when there are more basic telecommunication services of the first network device, the pending service of the first network device (i.e. other services described in the background) may cause the resource consumption of the first network device to be too high, and at this time, the first network device may request the resource from the network controller and send the pending service to the second network device capable of providing the resource for processing, so as to reduce the resource consumption of the first network device and improve the network usage experience of the user equipment accessing the first network device.
According to the first aspect, in a first possible implementation manner, the request message includes resource information required by the service to be processed, where the resource information includes a resource type and a resource number; or, the request message includes the type of the service to be processed and the number of the service to be processed. The type of the service to be processed comprises user identity verification, SAC, DPI or AI big data analysis and the like, so that when the request message comprises the resource information required by the service to be processed, the network controller can determine the second network equipment according to the resource information required by the service to be processed, the resource information required by the service to be processed does not need to be acquired according to the type of the service to be processed and the number of the services to be processed, and the efficiency of the network controller for determining the second network equipment is improved.
According to the first aspect or the first possible implementation manner of the first aspect, in a second possible implementation manner, when the request message includes resource information required by the service to be processed, the resource type includes at least one of a computing resource type or a storage resource type.
According to any one of the first aspect to the second possible implementation manner of the first aspect, in a third possible implementation manner, when the request message includes a type of the to-be-processed service and a number of the to-be-processed services, the method further includes: and acquiring resource information required by the service to be processed according to the type of the service to be processed and the number of the service to be processed. Therefore, the first network equipment does not need to acquire the resource information required by the service to be processed according to the type of the service to be processed and the number of the service to be processed, and the resource consumption of the first network equipment is reduced.
In a fourth possible implementation manner, according to any one of the first to third possible implementation manners of the first aspect, the determining, according to the request message, the second network device from one or more network devices other than the first network device includes: determining, from the request message, a second network device from the one or more network devices using a predictive model based on historical data, wherein the historical data includes historical resource usage information for the one or more network devices. In this way, the second network device determined by the prediction model based on the historical data refers to the resource usage information of each network device in the past, and the situation that the traffic of the second network device determined by the network controller is increased, so that the resource consumption of the second network device is overlarge, is caused.
In a fifth possible implementation form of any one of the first to fourth possible implementation forms of the first aspect, the prediction model is configured to predict a resource utilization trend of the one or more network devices based on historical resource usage information of the one or more network devices. In this way, the second network device determined according to the trend of the resource utilization rate of one or more network devices can reduce the probability that the second network device determined by the network controller will increase in traffic in a short future time period, thereby causing excessive resource consumption of the second network device.
In a sixth possible implementation manner, according to any one of the first to fifth possible implementation manners of the first aspect, the determining, according to the request message, the second network device from one or more network devices other than the first network device includes: and determining the second network equipment from the one or more network equipment according to the request message and the stored available resource information of the one or more network equipment. In this way, the second network device is determined according to the currently stored available resource information of one or more network devices, and the second network device whose currently available resource information can satisfy the resource use request of the first network device can be selected.
In a seventh possible implementation manner, according to any one of the first to sixth possible implementation manners of the first aspect, the determining, according to the request message, the second network device from one or more network devices other than the first network device includes: and determining a plurality of candidate network devices from the plurality of network devices except the first network device according to the request message, wherein the plurality of candidate network devices all have available resources capable of processing the service to be processed. And determining second network equipment according to the network topology, wherein the second network equipment is the network equipment meeting the preset topology condition in the candidate network equipment. In this way, the network controller may select, as the second network device, a network device that is in the same local area network as the first network device, is located under the same network device as the first network device, or meets a preset condition, according to a topology structure of the network. The first network device can conveniently send the service to be processed to the second network device for processing.
According to any one of the first aspect to the seventh possible implementation manner of the first aspect, in an eighth possible implementation manner, the method further includes: and receiving own resource utilization information sent by one or more network devices, wherein the resource utilization information comprises available resource information, or the resource utilization information comprises used resource information. The determining the second network device from one or more network devices except the first network device according to the request message includes: the second network device is determined from the one or more network devices based on the request message and resource usage information of the one or more network devices. In this way, the network controller may train the predictive model based on the received own resource usage information sent by the one or more network devices, or may determine the second network device directly based on the received own resource usage information sent by the one or more network devices.
According to any one of the first aspect to the eighth possible implementation manner of the first aspect, in a ninth possible implementation manner, the method further includes: determining a third network device from the one or more network devices according to the request message, the third network device having a second available resource capable of handling the pending traffic. And sending the first identification information and the information of the first available resource of the second network equipment, and the second identification information and the information of the second available resource of the third network equipment to the first network equipment. In this way, when any one of the one or more network devices cannot completely process the pending service, the network controller may determine that the two network devices are used to process the pending service of the first network device.
In a second aspect, a resource allocation method is provided, where the method is performed by a first network device, and the first network device is any one of network devices connected to a network controller, and the method includes: and sending a request message to the network controller, wherein the request message is used for requesting available resources for the service to be processed. And receiving first identification information of second network equipment sent by the network controller, wherein the second network equipment has a first available resource capable of processing the service to be processed. The service to be processed is any one of the other services described in the background art. And sending a first sub-service to the second network equipment according to the first identification information, wherein the first sub-service belongs to the service to be processed. In this way, the first network device may request the available resource from the network controller, and send the pending service to the network device providing the available resource for processing according to the requested available resource, which is beneficial to reducing resource consumption of the first network device and improving network usage experience (i.e. improving user usage experience) of the user equipment connected to the first network device.
According to the second aspect, in a first possible implementation manner of the second aspect, the request message includes resource information required by the service to be processed, and the resource information includes a resource type and a resource quantity. Or, the request message includes the type of the service to be processed and the number of the service to be processed. The types of the service to be processed include user identity verification, SAC, DPI or AI big data analysis, and the like. Thus, when the request message includes the type of the service to be processed and the number of the service to be processed, the first network device does not need to acquire the resource information required by the service to be processed according to the type of the service to be processed and the number of the service to be processed.
According to the second aspect or the first possible implementation manner of the second aspect, in a second possible implementation manner of the second aspect, when the request message includes resource information required by the service to be processed, the resource type includes at least one of a computing resource type or a storage resource type.
In a third possible implementation form of the second aspect, according to any one of the second to the second possible implementation forms of the second aspect, the method further comprises: information of a first available resource of a second network device is obtained from a network controller. The sending the first sub-service to the second network device according to the first identifier information includes: and sending the first sub-service to the second network equipment according to the information of the first available resource and the first identification information. Thus, the information of the first available resource characterizes available resource information provided by the second network device for the first network device. The first network device sends the first sub-service which can be processed by the second network device to the second network device according to the available resource information, so that the situation that the second network device cannot process or process too much pressure due to the fact that the number of the to-be-processed services sent by the first network device is too large is avoided.
According to any one of the second aspect to the third possible implementation manner of the second aspect, in a fourth possible implementation manner of the second aspect, the method further includes: second identification information of a third network device is obtained from the network controller, the third network device having a second available resource capable of processing the pending traffic. And sending a second sub-service to the third network equipment according to the second identification information, wherein the second sub-service belongs to the service to be processed. Therefore, the first network device can not only send the first sub-service in the service to be processed to the second network device for processing, but also send the second sub-service of the service to be processed to the third network device for processing. The situation that all the services to be processed are sent to the same network equipment for processing is avoided, so that the resource consumption of the network equipment is greatly increased.
In a fifth possible implementation form of the second aspect, according to any one of the second to fourth possible implementation forms of the second aspect, before sending the request message to the network controller, the method further comprises: resource usage information of the first network device is obtained, and the resource usage information comprises at least one of available resource information or used resource information. The sending the request message to the network controller includes: and when the resource usage information of the first network equipment meets a condition, sending a request message to a network controller, wherein the condition comprises that a used resource value in the used resource information is greater than or equal to a first threshold value if the resource usage information comprises the used resource information, and the condition comprises that an available resource value in the available resource information is less than or equal to a second threshold value if the resource usage information comprises the available resource information. Therefore, when the first network device acquires that the current resource use information meets a certain condition, namely the current available resource is insufficient, the first network device can request the network controller for the available resource, and the first network device is prevented from being excessively consumed.
In a sixth possible implementation form of the second aspect, according to any one of the second to fifth possible implementation forms of the second aspect, the method further comprises: and receiving a third service to be processed sent by the fourth network device. And acquiring a processing result of the third service to be processed. And sending the processing result of the third service to be processed to the fourth network equipment, and releasing the resource for processing the third service to be processed. Therefore, the first network device can also help to process the third to-be-processed service of the fourth network device when the first network device is idle, so that the resource consumption of the fourth network device is reduced.
In a third aspect, a network controller is provided, which is operable to perform any of the methods provided in any of the possible implementations of the first aspect to the first aspect.
According to the third aspect, in a first possible implementation manner of the third aspect, the network controller includes several functional modules, and the several functional modules are respectively configured to execute corresponding steps in any one of the methods provided by the first aspect.
According to a third aspect, in a second possible implementation manner of the third aspect, the network controller may include a processor configured to perform any one of the methods provided in any one of the possible implementation manners of the first aspect to the first aspect. The network controller may further comprise a memory for storing a computer program for enabling the processor to invoke the computer program for performing any of the methods provided in any of the possible implementations of the first aspect to the first aspect described above.
In a fourth aspect, a network device is provided that is operable to perform any of the methods provided in any of the possible implementations of the second aspect described above. Illustratively, the network device may be any one of a wireless access point, a wireless access controller, a core switch, an aggregation switch, an access switch, or the like.
According to a fourth aspect, in a first possible implementation manner of the fourth aspect, the network device includes several functional modules, and the several functional modules are respectively configured to execute corresponding steps in any one of the methods provided by the second aspect. The several functional modules may be implemented in hardware or software.
According to a fourth aspect, in a second possible implementation manner of the fourth aspect, the network device may include a processor configured to execute any one of the methods provided in any one of the possible implementation manners of the second aspect to the second aspect. The network device may further comprise a memory for storing a computer program for enabling the processor to invoke the computer program for performing any of the methods provided in any of the possible implementations of the second aspect to the second aspect described above.
In a fifth aspect, a computer-readable storage medium, such as a computer-non-transitory readable storage medium, is provided. Having stored thereon a computer program (or instructions) which, when run on a computer, causes the computer to perform any of the methods provided by the first aspect or any of the possible implementations of the first aspect.
In a sixth aspect, a computer-readable storage medium, such as a computer-non-transitory readable storage medium, is provided. Having stored thereon a computer program (or instructions) which, when run on a computer, causes the computer to perform any of the methods provided by the second aspect or any of the possible implementations of the second aspect.
In a seventh aspect, a computer program product is provided, which when run on a computer causes the performance of any one of the methods provided in the first aspect or any one of the possible implementations of the first aspect.
In an eighth aspect, there is provided a computer program product which, when run on a computer, causes any of the methods provided by any of the possible implementations of the second aspect to be performed.
In a ninth aspect, there is provided a chip comprising: a processor, configured to invoke and run a computer program stored in the memory from the memory, and execute any method provided by the first aspect or any possible implementation manner of the first aspect.
In a tenth aspect, there is provided a chip comprising: a processor for calling and running the computer program stored in the memory from the memory, and executing any method provided by the second aspect or any possible implementation manner of the second aspect.
It is understood that any of the network controllers, network devices, computer-readable storage media, computer program products or chips provided above can be applied to the corresponding methods provided above, and therefore, the beneficial effects achieved by the methods can refer to the beneficial effects in the corresponding methods, which are not described herein again.
Drawings
Fig. 1 is a schematic diagram of a network architecture suitable for use in the embodiments of the present application;
fig. 2 is a schematic diagram of a network structure suitable for use in the embodiment of the present application;
fig. 3 is a schematic structural diagram of a communication device to which the embodiment of the present application is applied;
fig. 4 is a schematic flowchart of an initialization phase of a resource allocation method according to an embodiment of the present application;
fig. 5 is a schematic flowchart of a resource allocation phase of a resource allocation method according to an embodiment of the present application;
fig. 6 is a schematic flowchart of a resource allocation phase of another resource allocation method according to an embodiment of the present application;
fig. 7 is a schematic structural diagram of a network controller according to an embodiment of the present application;
fig. 8 is a schematic structural diagram of a network device according to an embodiment of the present application.
Detailed Description
In the embodiments of the present application, words such as "exemplary" or "for example" are used to mean serving as an example, instance, or illustration. Any embodiment or design described herein as "exemplary" or "e.g.," is not necessarily to be construed as preferred or advantageous over other embodiments or designs. Rather, use of the word "exemplary" or "such as" is intended to present concepts related in a concrete fashion.
In the embodiments of the present application, "at least one" means one or more. "plurality" means two or more.
In the embodiment of the present application, "and/or" is only one kind of association relationship describing an association object, and indicates that three relationships may exist, for example, a and/or B may indicate: a exists alone, A and B exist simultaneously, and B exists alone. In addition, the character "/" herein generally indicates that the former and latter related objects are in an "or" relationship.
In an embodiment of the application, a combination comprises one or more objects.
In the embodiment of the present application, the basic telecommunication service refers to: a service providing a public network infrastructure, public data transfer and basic voice communication services. For example: access of user equipment or message forwarding, etc.
Other services refer to authentication of user identity, SAC, DPI or AI big data analysis, etc.
The pending service mentioned in the present application refers to other services.
Before describing the resource allocation method provided by the embodiment of the present application in detail, the application scenario and the implementation environment related to the embodiment of the present application are briefly described here.
The network of the embodiment of the application can be a campus network, and the campus network generally refers to a university campus network and an enterprise intranet. A major feature of campus networks is that the routing fabric is managed entirely by one authority. The network mentioned in the embodiments of the present application is not limited to a campus network. The application scenario of the embodiment of the application includes that when the basic telecommunication service of the first network device in the network is too much and other services are started, the problem that the resource consumption of the first network device is too high occurs. The first network device is any one of network devices connected to the network controller. Therefore, the method can affect the access or message forwarding of the normal user equipment of the first network equipment to the basic telecommunication service, and further affect the network use of the user equipment accessed to the first network equipment.
In the embodiment of the application, the network controller receives the request message of the first network device, and determines, according to the available resource requested by the request message, the second network device capable of providing the first available resource capable of processing the pending service of the first network device for the first network device, so that the network controller can instruct the first network device to transfer the pending service of the first network device to the second network device for processing by sending the first identification information of the second network device to the first network device. The resource consumption of the first network equipment is reduced, and the network use experience of a user is improved. Meanwhile, idle resources of the second network equipment can be utilized, and the resource utilization efficiency is improved.
Fig. 1 is a schematic diagram of a network architecture suitable for the embodiment of the present application. The network architecture shown in fig. 1 may include a network controller 101 and a plurality of network devices 102. Two network devices 102 are illustrated in fig. 1 as an example. The network controller 101 and each network device 102 are connected via a network. The connection manner between the network controller 101 and the network device 102 is not limited in the embodiment of the present application, and in one possible implementation manner, the network controller 101 is directly connected to the network device 102, and in another possible implementation manner, the network controller 101 is indirectly connected to the network device 102.
The network controller 101 is responsible for registration of the network devices 102 in the network, collection of available resources of each network device 102, trend prediction of resource usage information of each network device 102, centralized scheduling of resources in the network devices 102, and the like.
The network device 102 feeds back resource usage information to the network controller 101 and responds to the scheduling of the network controller 101.
It should be noted that the network structure of the network controller 101 and the network device 102 shown in fig. 1 in an actual network may be the network structure shown in fig. 2. As shown in fig. 2, in the schematic diagram of the network structure to which the embodiment of the present application is applied, the network device 102 may be any one of a wireless Access Point (AP), a Wireless Access Controller (WAC), a core switch, an aggregation switch, or an access switch. The "core switch and WAC" are directly connected to the network controller 101, and the aggregation switch, the access switch and the wireless access point are indirectly connected to the network controller 101.
The network controller 101 and the network device 102 may be implemented by the communication device 30 shown in fig. 3. The communication device 30 may include at least one processor 301, communication lines 302, memory 303, and at least one communication interface 304.
The processor 301 may be a general-purpose Central Processing Unit (CPU), a microprocessor, an application-specific integrated circuit (ASIC), or one or more ics for controlling the execution of programs in accordance with the present disclosure.
The communication link 302 may include a path for communicating information between the aforementioned components (e.g., the at least one processor 301, the communication link 302, the memory 303, and the at least one communication interface 304).
The communication interface 304 may be any device, such as a transceiver, for communicating with other devices or communication networks, such as Wide Area Networks (WAN), Local Area Networks (LAN), etc.
The memory 303 may be, but is not limited to, a read-only memory (ROM) or other type of static storage device that may store static information and instructions, a Random Access Memory (RAM) or other type of dynamic storage device that may store information and instructions, an electrically erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM) or other optical disk storage, optical disk storage (including compact disc, laser disc, optical disc, digital versatile disc, blu-ray disc, etc.), magnetic disk storage media or other magnetic storage devices, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer. The memory 303, which may be separate, is coupled to the processor 301 via the communication line 302. The memory 303 may also be integrated with the processor 301. The memory 303 provided by the embodiments of the present application may generally have a nonvolatile property. The memory 303 is used for storing computer instructions for executing the present application, and is controlled by the processor 301. The processor 301 is configured to execute computer instructions stored in the memory 303, thereby implementing the methods provided by the embodiments described below.
Optionally, the computer instructions in the embodiments of the present application may also be referred to as application program codes, which are not specifically limited in the embodiments of the present application.
In one embodiment, the communication device 30 may include a plurality of processors, and each of the processors may be a single-core (single-CPU) processor or a multi-core (multi-CPU) processor. A processor herein may refer to one or more devices, circuits, and/or processing cores for processing data (e.g., computer program instructions).
In particular implementations, communication device 30 may also include an output device 305 and/or an input device 306, as one embodiment. The output device 305 is in communication with the processor 301 and may display information in a variety of ways. For example, the output device 305 may be a Liquid Crystal Display (LCD), a Light Emitting Diode (LED) display device, a Cathode Ray Tube (CRT) display device, a projector (projector), or the like. The input device 306 is in communication with the processor 301 and may receive user input in a variety of ways. For example, the input device 306 may be a mouse, a keyboard, a touch screen device, or a sensing device, among others.
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments.
The technical scheme provided by the embodiment of the application comprises the following steps: an initialization phase and a resource allocation phase. These two stages are explained below:
initialization phase
Fig. 4 is a schematic flowchart of an initialization phase of a resource allocation method according to an embodiment of the present application. For example, the present embodiment may be applied to the network architecture shown in fig. 1, that is, the network device described below may be the network device 102, and the network controller may be the network controller 101. The method shown in fig. 4 may comprise the steps of:
s100: the network device sends a registration message to the network controller. The network device is any one of the network devices connected with the network controller. The registration message may include total resource information for the network device.
It should be noted that, after the network device is powered on, each network device that establishes a connection with the network controller may send a registration message to the network controller, or a request message for establishing a connection that is sent by the network device to the network controller carries the registration message, where the registration message is used to inform the network controller that resources of the network device that sends the registration message may be shared with other network devices in the network.
When the registration message includes the total resource information of the network device, for example, the total resource information of the network device may include: the computing capacity of a processor of the network equipment is 800MHZ x 3700, the memory of the network equipment is 5G, the flash storage space of the network equipment is 5G, and the total bandwidth of the network equipment is 1000 Mbps.
S101: the network device sends resource usage information to the network controller.
The network device that sent the registration message may periodically send resource usage information to the network controller. Wherein the resource usage information includes available resource information, or the resource usage information includes used resource information. The resource allocation method provided by the embodiment of the application is not influenced by the trigger condition that the network equipment sends the resource use information to the network controller. Therefore, the network device may actively send the resource usage information to the network controller, or may send the resource usage information to the network controller after receiving a request message sent by the network controller to request to obtain the resource usage information.
When the resource usage information of the network device includes available resource information, the available resource information of the network device illustratively includes: the available computing power of the processor of the network device is 800MHZ x 3700 x 70%, the remaining memory of the network device is 5G x 75%, the remaining flash storage space of the network device is 5G x 60%, and the remaining bandwidth of the network device is 600 Mbps. As another example, since the network controller may have already obtained the total resource information of the network device in the registration phase, the available resource information sent by the network device may also be a resource occupancy ratio, instead of a specific value of the available resource, for example, the available resource information sent by the network device to the network controller may be 70% of the available computing capacity of the processor, 75% of the remaining memory of the network device, 60% of the remaining flash storage space of the network device, and 60% of the remaining bandwidth of the network device.
Fig. 4 illustrates one network device as an example, and it is understood that all network devices that can share resources with other network devices and are connected to the network controller may perform S100 to S101. It is also understood that S100 may not be executed, and S101 is directly executed.
S102: the network controller stores the available resource information of each network device according to the received resource usage information of each network device, or the network controller may train the prediction model according to the received resource usage information of each network device in different historical periods.
In one case, when the resource usage information transmitted by the network device includes available resource information, the network device stores the available resource information of the respective network devices.
In another case, when the resource usage information sent by the network device includes used resource information, the network device obtains and stores available resource information of each network device according to the used resource information and the total resource information.
The network controller may train the predictive model based on the received resource usage information for each network device over different historical periods. The prediction model may be configured to predict a resource utilization trend of one or more network devices based on historical resource usage information of the one or more network devices, and obtain a resource list of each network device. The method for predicting the resource utilization rate trend of one or more network devices by the prediction model based on the historical resource utilization information of the one or more network devices is not limited uniquely. For example, the prediction model predicts a resource utilization trend of one or more network devices based on historical resource utilization information of the one or more network devices using a gaussian regression algorithm, a neural network algorithm, or the like, and determines network devices that can provide corresponding resources at corresponding time periods when the resources are needed according to the resource utilization trend of the one or more network devices.
Resource allocation phase
The following describes the resource allocation method provided in the embodiment of the present application with an angle that the first network device is a resource requester and the second network device is a resource provider as an example, and fig. 5 is a schematic flow diagram of a resource allocation stage of the resource allocation method provided in the embodiment of the present application. Illustratively, the present embodiment may be applied to the network architecture shown in fig. 1. The method shown in fig. 5 may comprise the steps of:
s200: the first network device sends a request message to the network controller, the request message being used to request available resources for the pending service. The service to be processed may include authentication of user identity, SAC, DPI, or AI big data analysis, and other types of services.
Optionally, the request message includes resource information required by the service to be processed, where the resource information includes a resource type and a resource quantity; or, the request message includes the type of the service to be processed and the number of the service to be processed. When the request message includes resource information required by the service to be processed, the resource type includes at least one of a computing resource type or a storage resource type.
Illustratively, the computing resource type includes a processor, and the storage resource type includes a memory, an external memory (e.g., a flash memory space, a cache, etc.). The resource information may include the size of the computing power of the processor, the size of the memory, the size of the bandwidth, the size of the external memory, and the like.
Optionally, the first network device obtains resource usage information of the first network device, where the resource usage information includes at least one of available resource information or used resource information. When the resource usage information of the first network device satisfies a condition, a request message is sent to a network controller. If the resource usage information includes used resource information, the condition includes that a used resource value in the used resource information is greater than or equal to a first threshold value, and if the resource usage information includes available resource information, the condition includes that an available resource value in the available resource information is less than or equal to a second threshold value.
For example, when the resource usage information includes used resource information, the condition may include at least one of a processor utilization rate of the first network device being greater than or equal to 80%, a memory utilization rate of the first network device being greater than or equal to 85%, a flash storage space utilization rate of the first network device being greater than or equal to 75%, a bandwidth utilization rate of the first network device being greater than or equal to 90%, and the like.
S201: the network controller determines a second network device from one or more network devices other than the first network device according to the request message, the second network device having a first available resource capable of processing the pending traffic.
When the request message comprises the resource information required by the service to be processed:
according to different possible situations, the network controller may determine the second network device from one or more network devices other than the first network device according to the required resource information in different ways as follows:
the first method is as follows: when the network controller stores a prediction model based on the historical data, the network controller determines a second network device from the one or more network devices according to the required resource information by using the prediction model based on the historical data, wherein the second network device is the network device which can provide the resource indicated by the required resource information and is determined according to the prediction model. Wherein the historical data includes historical resource usage information for the one or more network devices.
Illustratively, the network controller may obtain historical resource usage for network device a over the past week, and obtain historical resource usage for network device B on the same time segment, for example. The network controller may analyze resource utilization trends of the network device a and the network device B by using prediction models such as a gaussian regression algorithm or a neural network algorithm based on the acquired historical resource usage of each of the network device a and the network device B. If network device C sends a resource request message requesting available resources from 12 am to 1 pm of the day, the network controller may determine a network device capable of providing the available resources based on the prediction of the resource utilization trend. Specifically, for example, the network controller receives the request message from network device C, the resource information requested by the request message includes a processor computing power of 800MHZ × 3700 × 20%, whereas it is predicted that the processor computing power of network device a is about 800MHZ × 3700 × 10% from 12 am to 1 pm, and the processor computing power of network device B is about 800MHZ × 3700 × 80% from 12 am to 1 pm. It is thus known that network device a cannot satisfy the resource requested by network device C, and that network device B can satisfy the resource requested by network device C. Thus, the network controller determines network device B as the second network device, and may transmit the identification information of network device B to network device C.
In this way, the second network device determined according to the trend of the resource utilization rate of the network device can reduce the probability that the determined second network device has increased traffic in a short future time period, thereby causing excessive resource consumption of the second network device.
The second method comprises the following steps: when the network controller stores available resource information of each network device, the network controller determines a second network device from the one or more network devices according to the required resource information and the stored available resource information of the one or more network devices.
Illustratively, the current available resource information of the network device a is: the computing power of the processor is 800MHZ x 3700 x 10%, and the available resource information of the network device B is: the processor computing power is 800MHZ x 3700 x 80%. The network controller receives a request message from network device C, the resource information requested by the request message includes the processor computing capacity of 800MHZ × 3700 × 20%. Network device a has a current processor computing power less than the processor computing power requested by network device C, and network device B has a current processor computing power greater than the processor computing power requested by network device C. Then the network controller may determine network device B as the second network device based on the resource usage information for network device a and network device B.
In some cases, the network controller may determine a plurality of network devices, including the second network device, as the network device that handles pending traffic for the first network device. That is, the network controller may determine, in addition to the second network device, other one or more network devices from among the one or more network devices as the resource provider according to the required resource information. For example, when the second network device has a first available resource capable of processing the pending traffic and the third network device has a second available resource capable of processing the pending traffic, the network controller may select the second network device and the third network device together as the network device providing the available resources to the first network device.
The network controller may determine a second network device and a third network device from the one or more network devices according to the required resource information and the stored available resource information of the one or more network devices; the network controller may also determine the second network device and the third network device using a predictive model based on historical data.
When the network controller cannot independently process the service to be processed of the first network device according to the currently known available resource information of each network device, it may be determined that the plurality of network devices are simultaneously used as resource providers of the service to be processed. That is, the network controller determines that the third network device is used for processing the second sub-service of the pending service, in addition to determining that the second network device is used for processing the first sub-service of the pending service.
It can be understood that the to-be-processed service of the first network device may be divided into a plurality of sub-services, and each sub-service may correspond to one processing result. For example, the pending service of the first network device is the verification of 100 user identities. Then, the first sub-service may be 40 user identities and the second sub-service may be 60 user identities, in which case the processing results of the first sub-service and the second sub-service are relatively independent. It is to be understood that, in other possible cases, the processing results of the first sub-service and the second sub-service may also be in a certain relationship, for example, the first network device may continue to perform subsequent processing based on the processing results of the first sub-service and the second sub-service after the processing results of the first sub-service and the second sub-service are returned respectively, and the like.
Illustratively, the current available resource information of the network device a is: the computing power of the processor is 800MHZ x 3700 x 10%, and the available resource information of the network device B is: the processor computing power is 800MHZ x 3700 x 80%. The network controller receives a request message from network device C, the resource information requested by the request message includes the processor computing capacity of 800MHZ × 3700 × 85%. Thus, the respective processor computing capabilities of network device a and network device B may not satisfy the processor computing capabilities requested by the request message of network device C. The network controller may determine that network device a provides 800MHZ x 3700 x 5% of the processor computing power. Network device B provides a processor computing power of 800MHZ x 3700 x 80%.
In other possible cases, even if the network controller determines that at least one available resource of the network device is sufficient to process the pending service of the first network device alone, the network controller may still determine that the pending service of the first network device is completed by using multiple network devices together, for example, determine that a second network device is used for processing a first sub-service of the pending service, and determine that a third network device is used for processing a second sub-service of the pending service. Therefore, the resource consumption of the second network equipment can be avoided from being too large after the first network equipment sends the service to be processed to the second network equipment for processing.
When determining the network device for processing the service to be processed of the first network device, the network controller may further refer to the network topology relationship to determine the network device finally used for processing the service to be processed. For example, the network controller determines a plurality of candidate network devices from the plurality of network devices according to the required resource information, the plurality of candidate network devices each having available resources capable of processing the pending traffic. At this time, the network controller determines a second network device according to the network topology, where the second network device is a network device that meets a preset topology condition among the plurality of candidate network devices. The preset topology condition may include that the first network device and the second network device are mounted under one network device, the first network device and the second network device are in the same local area network, or the length of a topology path between the first network device and the second network device is smaller than a threshold, and the like. The network controller stores topology paths between network devices in the network.
The network controller determines a plurality of candidate network devices from the plurality of network devices according to the stored available resource information of the one or more network devices, or determines the plurality of candidate network devices from the plurality of network devices by using a prediction model based on historical data. The resource of each candidate network device in the plurality of candidate network devices determined by the network controller satisfies processing of the service to be processed of the first network device, or the plurality of candidate network devices determined by the network controller all need to be used for processing of the service to be processed of the first network device. The embodiments of the present application are not limited to this.
Illustratively, the current available resource information of the network device a is: the computing power of the processor is 800MHZ x 3700 x 50%, and the resource use information of the network device B is as follows: the processor computing power is 800MHZ x 3700 x 80%. The network controller receives a request message from network device C, the resource information requested by the request message includes the processor computing capacity of 800MHZ × 3700 × 20%. In this way, the respective processor computing capabilities of network device a and network device B may satisfy the processor computing capabilities requested by the request message of network device C. At this time, the network device a and the network device C are connected to the network device D at the same time, and can perform mutual communication through the network device D, and then the network controller determines that the network device a provides available resources for the network device C.
When the request message includes the type of the service to be processed and the number of the service to be processed, wherein the type of the service to be processed includes user identity verification, SAC, DPI or AI big data analysis, and the like. For example, when the type of the service to be processed is the authentication of the user identity, the number of the service to be processed is the number of the user identity to be authenticated, and when the type of the service to be processed is the SAC, DPI, or AI big data analysis, the number of the service to be processed may be the number of the packets forwarded by the network device.
Firstly, the network controller obtains the resource information required by the service to be processed according to the type of the service to be processed and the number of the service to be processed.
The network controller may pre-store a correspondence between the "type of service to be processed and the number of services to be processed" and the "resource information required by the service to be processed", or the correspondence may be pre-stored in any one of the network devices connected to the network controller. The network controller may obtain "the resource information required by the service to be processed" corresponding to the "type of the service to be processed and the number of the service to be processed" according to the correspondence.
For example, it is assumed that the "type of pending service" in the request message is user authentication, and the number of pending services is 100. The pre-stored correspondence between the type of the service to be processed and the number of the service to be processed and the resource information required by the service to be processed is that the calculation capacity of a processor required for user identity authentication is 800MHZ x 3700 x 0.05%, and the size of the memory required for equipment is 1M. The computing power required for the request message according to the correspondence is 800MHZ × 3700 × 0.05% × 100, and the required device memory size is 1M × 100.
Second, the network controller determines a second network device from the one or more network devices based on the required resource information. Specifically, reference is made to the above various possible implementation manners, which are not described in detail.
S202: the network controller sends first identification information of the second network device to the first network device.
In one case, when the network controller determines that the second network device is capable of providing all of the required resource information requested by the first network device, the network controller sends first identification information of the second network device to the first network device. Or, the network controller sends the first identification information of the second network device and the available resource information of the second network device to the first network device.
In another case, when the network controller determines that the second network device is capable of providing the first available resource information and the third network device is capable of providing the second available resource information, the network controller transmits the first identification information of the second network device and the information of the first available resource, and the second identification information of the third network device and the information of the second available resource to the first network device.
It can be understood that the first identification information may be an Internet Protocol (IP) address of the second network device, or a Media Access Control (MAC) address of the second network device, or a device identifier that can be identified by each network device within a certain network range, or any other possible identifier type, and the like, as long as the first network device can determine, according to the identifier information, the second network device that can receive the service to be processed after receiving the identifier information sent by the network controller.
Subsequently, when the first network device only receives the first identification information of the second network device, the first network device sends the service to be processed to the second network device, and after the second network device finishes processing the service to be processed, the first network device receives the processing result sent by the second network device.
When the first network device receives the first identification information and the first available resource information of the second network device, and the second identification information and the second available resource information of the third network device, the first network device divides the service to be processed into a first sub-service and a second sub-service according to the first available resource information and the second available resource information. Wherein the first available resource is used for processing the first sub-service, and the second available resource is used for processing the second sub-service. And the first network equipment sends the first sub-service to the second network equipment and sends the second sub-service to the third network equipment. And then, the first network device receives a first processing result of the first sub-service sent by the second network device and a second processing result of the second sub-service sent by the third network device respectively. It can be understood that the first network device may only save after receiving one or more of the first processing result and the second processing result according to the actual service requirement; or, after receiving one or more of the first processing result and the second processing result, continuing to perform subsequent service processing.
In the embodiment of the application, the network controller determines, for the first network device, a second network device capable of providing available resources for processing a service to be processed by the first network device, according to a request message sent by the first network device. Therefore, on one hand, the first network device can send the service to be processed to the second network device for processing, so that the resource consumption of the first network device is reduced, and the network use experience of the user equipment accessing the first network device is improved. On the other hand, due to the scheduling of the network controller to the resources, the idle resources of the second network device are utilized, and the utilization efficiency of the resources in the network is improved.
The following describes the resource allocation method provided in the embodiment of the present application by taking the fourth network device as a resource requester and the first network device as a resource provider as an example, and fig. 6 is a schematic flow chart of a resource allocation phase of another resource allocation method provided in the embodiment of the present application. Illustratively, the present embodiment may be applied to the network architecture shown in fig. 1. The method may be described, for example, when the first network device further has certain available resources and thus does not need to execute the method shown in fig. 5, or when the first network device has available resources for other network devices due to releasing its resources after completing one or more services using the resources of other network devices. The method shown in fig. 6 may include the steps of:
s300 to S302, referring to the execution steps in S200 to S202 specifically, the first network device is replaced with a fourth network device, and the second network device is replaced with the first network device, which is not described again.
S303: and the fourth network equipment sends the second service to be processed to the first network equipment according to the received identification information of the first network equipment. And the second service to be processed is the service to be processed in the fourth network device. The second pending service includes the authentication of the user identity, SAC, DPI or AI big data analysis, etc. In one case, when the fourth network device receives the third identification information of the first network device sent by the network controller, the fourth network device sends the second to-be-processed service to the first network device.
In another case, when the fourth network device receives the third identification information and the information of the third available resource of the first network device, the fourth network device sends the third sub-service to the first network device according to the third identification information and the information of the third available resource of the first network device. And the third sub-service belongs to the second service to be processed. The third available resource may be used to process a third sub-service.
It should be noted that the to-be-processed service of the fourth network device may be divided into a plurality of sub-services, and each sub-service has a corresponding processing result. For example, the pending service of the first network device is the verification of 100 user identities. Then, the third sub-service may be the authentication of 40 user identities, and the fourth sub-service may be the authentication of 60 user identities.
S304: and the first network equipment acquires the processing result of the second service to be processed.
Illustratively, the first network device receives 100 user authentication services sent by the fourth network device. The first network device obtains the verification result of the 100 user identity verifications.
S305: and the first network equipment sends the processing result to the fourth network equipment.
Based on the example in S304, the first network device sends the verification result of the 100 user authentications to the fourth network device.
S306: and the first network equipment releases the resources for processing the second service to be processed.
Subsequently, after the first network device releases the resource, it may acquire its own resource usage information and send the latest resource usage information to the network controller. The resource usage information is used by the network controller to update the maintained available resource information of the first network device.
In this embodiment, the network controller determines, for the fourth network device, the first network device capable of providing the available resource for processing the service to be processed by the fourth network device according to the request message sent by the fourth network device. Therefore, on one hand, the fourth network device can send the service to be processed to the first network device for processing, so that the resource consumption of the fourth network device is reduced, and the network experience of the user equipment accessing the fourth network device is improved. On the other hand, due to the scheduling of the network controller to the resources, the idle resources of the first network device are utilized, and the utilization efficiency of the resources in the network is improved.
As can be seen from the embodiments shown in fig. 5 and fig. 6, the same network device may send its own pending service to another network device capable of providing processing resources for processing, and may also process the pending service sent by another network device when the available resources of the network device are relatively large. Therefore, the problem that the network use of the user equipment accessed to the network equipment is influenced due to overlarge resource consumption of individual network equipment caused by unbalanced resource utilization in the network is effectively solved, meanwhile, idle resources in the network can be utilized, and the resource utilization efficiency in the network is improved.
It is understood that the order of executing steps in the above method embodiments is only one possible example, and in practical applications, the order of executing steps may be adjusted as needed.
The scheme provided by the embodiment of the application is mainly introduced from the perspective of a method. To implement the above functions, it includes hardware structures and/or software modules for performing the respective functions. Those of skill in the art will readily appreciate that the present application is capable of hardware or a combination of hardware and computer software implementing the exemplary method steps described in connection with the embodiments disclosed herein. Whether a function is performed as hardware or computer software drives hardware depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiment of the present application, the network device and the network controller may be divided into functional modules according to the above method example, for example, each functional module may be divided corresponding to each function, or two or more functions may be integrated into one processing module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. It should be noted that, in the embodiment of the present application, the division of the module is schematic, and is only one logic function division, and there may be another division manner in actual implementation.
Fig. 7 is a schematic structural diagram of a network controller according to an embodiment of the present application. The network controller 50 may be used to perform the functions performed by the network controller in any of the above embodiments (such as the embodiments shown in fig. 4, 5, or 6). The network controller 50 includes: a receiving unit 501, a determining unit 502 and a transmitting unit 503. The receiving unit 501 is configured to receive a request message from a first network device, where the request message is used to request an available resource for a pending service. The determination unit 502: the method includes determining a second network device from one or more network devices other than the first network device according to the request message, the second network device having a first available resource capable of processing the pending traffic. The transmission unit 503: the first identification information of the second network device is sent to the first network device. For example, in conjunction with fig. 4, the receiving unit 501 may be configured to perform the receiving step in S100, and the determining unit 502 may be configured to perform S102. With reference to fig. 5, the receiving unit 501 may be configured to perform the receiving step in S200, the determining unit may be configured to perform S201, and the transmitting unit 503 may be configured to perform the transmitting step in S202. With reference to fig. 6, the receiving unit 501 may be configured to perform the receiving step in S300, the determining unit 502 may be configured to perform S301, and the transmitting unit 503 may be configured to perform the transmitting step in S302.
Optionally, the request message includes resource information required by the service to be processed, and the resource information includes a resource type and a resource quantity. Or, the request message includes the type of the service to be processed and the number of the service to be processed.
Optionally, when the request message includes resource information required by the service to be processed, the resource type includes at least one of a computing resource type or a storage resource type.
Optionally, when the request message includes the type of the pending service and the number of the pending services, the network controller 50 further includes: an obtaining unit 504, configured to obtain resource information required by the service to be processed according to the type of the service to be processed and the number of the service to be processed.
Optionally, the determining unit 502 is specifically configured to: determining, from the request message, a second network device from the one or more network devices using a predictive model based on historical data, wherein the historical data includes historical resource usage information for the one or more network devices.
Optionally, the prediction model is used for predicting resource utilization trends of the one or more network devices based on historical resource usage information of the one or more network devices.
Optionally, the determining unit 502 is specifically configured to: and determining the second network equipment from the one or more network equipment according to the request message and the stored available resource information of the one or more network equipment.
Optionally, the determining unit 502 is specifically configured to: determining a plurality of candidate network devices from the plurality of network devices except the first network device according to the request message, wherein the plurality of candidate network devices all have available resources capable of processing the service to be processed; and determining second network equipment according to the network topology, wherein the second network equipment is the network equipment meeting the preset topology condition in the candidate network equipment.
Optionally, the receiving unit 501 is further configured to: receiving own resource use information sent by one or more network devices, wherein the resource use information comprises available resource information, or the resource use information comprises used resource information; the determining unit 502 is specifically configured to: the second network device is determined from the one or more network devices based on the request message and resource usage information of the one or more network devices.
Optionally, the determining unit 502 is further configured to: determining a third network device from the one or more network devices according to the request message, the third network device having a second available resource capable of handling the pending traffic. The sending unit 503 is further configured to: and sending the first identification information and the information of the first available resource of the second network equipment, and the second identification information and the information of the second available resource of the third network equipment to the first network equipment.
In one example, referring to fig. 3, the receiving function of the receiving unit 501 and the sending function of the sending unit 503 may be implemented by the communication interface 304 in fig. 3. The determining unit 502 and the obtaining unit 504 can be implemented by the processor 301 in fig. 3 calling a computer program stored in the memory 303.
For the detailed description of the above alternative modes, reference is made to the foregoing method embodiments, which are not described herein again. In addition, for any explanation and beneficial effect description of the network controller 50 provided above, reference may be made to the corresponding method embodiment described above, and details are not repeated.
It should be noted that the actions performed by the above units are only specific examples, and the actions actually performed by the above units refer to the actions or steps mentioned in the description of the embodiments based on fig. 4, fig. 5, or fig. 6.
Fig. 8 is a schematic structural diagram of a network device according to an embodiment of the present application. The network device 60 may be configured to perform the functions performed by the first network device in any of the above embodiments (such as the embodiments shown in fig. 5 or fig. 6). The network device 60 includes: a transmitting unit 601 and a receiving unit 602. The sending unit 601 is configured to send a request message to a network controller, where the request message is used to request available resources for a service to be processed. A receiving unit 602, configured to receive first identification information of a second network device sent by a network controller, where the second network device has a first available resource capable of processing a service to be processed. The sending unit 601 is further configured to: and sending a first sub-service to the second network equipment according to the first identification information, wherein the first sub-service belongs to the service to be processed.
Optionally, the network device further includes: an obtaining unit 603 configured to obtain information of a first available resource of a second network device from the network controller. The sending unit 601 is specifically configured to send the first sub service to the second network device according to the information of the first available resource and the first identifier information.
Optionally, the obtaining unit 603 is further configured to: acquiring second identification information of third network equipment from the network controller, wherein the third network equipment has a second available resource capable of processing the service to be processed; the sending unit 601 is further configured to send a second sub-service to the third network device according to the second identifier information, where the second sub-service belongs to a service to be processed.
Optionally, the obtaining unit 603 is further configured to: before the sending unit 601 sends the request message to the network controller, resource usage information of the network device 60 is acquired, and the resource usage information includes at least one of available resource information or used resource information. The sending unit 601 is specifically configured to: and when the resource usage information of the network equipment meets a condition, sending a request message to a network controller, wherein the condition comprises that a used resource value in the used resource information is greater than or equal to a first threshold value if the resource usage information comprises the used resource information, and the condition comprises that an available resource value in the available resource information is less than or equal to a second threshold value if the resource usage information comprises the available resource information.
Optionally, the receiving unit 602 is further configured to: and receiving a second service to be processed sent by the fourth network device. The obtaining unit 603 is further configured to: and acquiring a processing result of the second service to be processed. The sending unit 601 is further configured to: and sending the processing result of the second service to be processed to the fourth network equipment, and releasing the resource for processing the second service to be processed.
Optionally, the request message includes resource information required by the service to be processed, and the resource information includes a resource type and a resource quantity. Or, the request message includes the type of the service to be processed and the number of the service to be processed.
Optionally, when the request message includes resource information required by the service to be processed, the resource type includes at least one of a computing resource type or a storage resource type.
In one example, referring to fig. 3, the receiving functions of the sending unit 601, the receiving unit 602, and the obtaining unit 603 may be implemented by the communication interface 304 in fig. 3. The processing functions of the above-described acquisition unit 603 can be realized by the processor 301 in fig. 3 calling a computer program stored in the memory 303.
For the detailed description of the above alternative modes, reference is made to the foregoing method embodiments, which are not described herein again. In addition, for any explanation and beneficial effect description of the network device 60 provided above, reference may be made to the corresponding method embodiment described above, and details are not repeated.
It should be noted that the actions performed by the above units are only specific examples, and the actions actually performed by the above units refer to the actions or steps mentioned in the description of the embodiment based on fig. 5 or fig. 6.
An embodiment of the present application further provides a communication device, including: a memory and a processor; the memory is for storing a computer program, and the processor is for invoking the computer program to perform the actions or steps mentioned in any of the embodiments provided above.
Embodiments of the present application also provide a computer-readable storage medium, which stores a computer program, and when the computer program runs on a computer, the computer program causes the computer to execute the actions or steps mentioned in any of the embodiments provided above.
The embodiment of the application also provides a chip. The chip has integrated therein circuitry and one or more interfaces for implementing the functionality of the network controller or network device described above. Optionally, the functions supported by the chip may include processing actions in the method embodiments described based on fig. 4 to fig. 6, which are not described herein again. Those skilled in the art will appreciate that all or part of the steps for implementing the above embodiments may be implemented by a program instructing the associated hardware to perform the steps. The program may be stored in a computer-readable storage medium. The above-mentioned storage medium may be a read-only memory, a random access memory, or the like. The processing unit or processor may be a central processing unit, a general purpose processor, an Application Specific Integrated Circuit (ASIC), a microprocessor (DSP), a Field Programmable Gate Array (FPGA) or other programmable logic device, a transistor logic device, a hardware component, or any combination thereof.
The embodiments of the present application also provide a computer program product containing instructions, which when executed on a computer, cause the computer to execute any one of the methods in the above embodiments. The computer program product includes one or more computer instructions. The procedures or functions described in accordance with the embodiments of the present application are all or partially generated upon loading and execution of computer program instructions on a computer. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored on a computer readable storage medium or transmitted from one computer readable storage medium to another computer readable storage medium, for example, the computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via wire (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). Computer-readable storage media can be any available media that can be accessed by a computer or can comprise one or more data storage devices, such as servers, data centers, and the like, that can be integrated with the media. The usable medium may be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., Solid State Disk (SSD)), among others.
It should be noted that the above devices for storing computer instructions or computer programs provided in the embodiments of the present application, such as, but not limited to, the above memories, computer readable storage media, communication chips, and the like, are all nonvolatile (non-volatile).
Other variations to the disclosed embodiments can be understood and effected by those skilled in the art in practicing the claimed application, from a review of the drawings, the disclosure, and the appended claims. In the claims, the word "comprising" does not exclude other elements or steps, and the word "a" or "an" does not exclude a plurality. A single processor or other unit may fulfill the functions of several items recited in the claims. The mere fact that certain measures are recited in mutually different dependent claims does not indicate that a combination of these measures cannot be used to advantage.
Although the present application has been described in conjunction with specific features and embodiments thereof, various modifications and combinations can be made thereto without departing from the spirit and scope of the application. Accordingly, the specification and figures are merely exemplary of the present application as defined in the appended claims and are intended to cover any and all modifications, variations, combinations, or equivalents within the scope of the present application.

Claims (36)

1. A method of resource allocation, the method being performed by a network controller, the method comprising:
receiving a request message from a first network device, wherein the request message is used for requesting available resources for a service to be processed;
determining a second network device from one or more network devices except the first network device according to the request message, wherein the second network device has a first available resource capable of processing the service to be processed;
and sending the first identification information of the second network equipment to the first network equipment.
2. The method of claim 1,
the request message comprises resource information required by the service to be processed, and the resource information comprises a resource type and a resource quantity; alternatively, the first and second electrodes may be,
the request message includes the type of the service to be processed and the number of the service to be processed.
3. The method of claim 2, wherein when the request message includes resource information required by the pending service, the resource type comprises at least one of a computing resource type or a storage resource type.
4. The method of claim 2, wherein when the request message includes the type of the pending service and the number of the pending services, the method further comprises:
and acquiring the resource information required by the service to be processed according to the type of the service to be processed and the number of the service to be processed.
5. The method according to any of claims 1-4, wherein the determining a second network device from one or more network devices other than the first network device according to the request message comprises:
determining the second network device from the one or more network devices using a predictive model based on historical data in accordance with the request message, wherein the historical data includes historical resource usage information for the one or more network devices.
6. The method of claim 5, wherein the predictive model is configured to predict a trend in resource utilization of the one or more network devices based on historical resource usage information of the one or more network devices.
7. The method according to any of claims 1-4, wherein the determining a second network device from one or more network devices other than the first network device according to the request message comprises:
determining the second network device from the one or more network devices according to the request message and the stored available resource information of the one or more network devices.
8. The method according to any of claims 1-4, wherein the determining a second network device from one or more network devices other than the first network device according to the request message comprises:
determining a plurality of candidate network devices from a plurality of network devices except the first network device according to the request message, wherein the candidate network devices all have available resources capable of processing the service to be processed;
and determining the second network equipment according to the network topology, wherein the second network equipment is the network equipment meeting the preset topology condition in the candidate network equipment.
9. The method according to any one of claims 1-4, further comprising:
receiving own resource usage information sent by the one or more network devices, wherein the resource usage information includes available resource information, or the resource usage information includes used resource information;
the determining a second network device from one or more network devices other than the first network device according to the request message includes:
determining the second network device from the one or more network devices based on the request message and resource usage information of the one or more network devices.
10. The method according to any one of claims 1-9, further comprising:
determining a third network device from the one or more network devices according to the request message, wherein the third network device has a second available resource capable of processing the service to be processed;
and sending the first identification information of the second network device and the information of the first available resource, and the second identification information of the third network device and the information of the second available resource to the first network device.
11. A method for resource allocation, the method being performed by a first network device, the first network device being any one of network devices connected to a network controller, the method comprising:
sending a request message to the network controller, wherein the request message is used for requesting available resources for the service to be processed;
receiving first identification information of second network equipment sent by the network controller, wherein the second network equipment has a first available resource capable of processing the service to be processed;
and sending a first sub-service to the second network equipment according to the first identification information, wherein the first sub-service belongs to the service to be processed.
12. The method of claim 11,
the request message comprises resource information required by the service to be processed, and the resource information comprises a resource type and a resource quantity; alternatively, the first and second electrodes may be,
the request message includes the type of the service to be processed and the number of the service to be processed.
13. The method of claim 12, wherein when the request message includes resource information required by the pending service, the resource type comprises at least one of a computing resource type or a storage resource type.
14. The method according to any one of claims 11-13, further comprising:
obtaining information of a first available resource of the second network device from the network controller;
the sending the first sub-service to the second network device according to the first identification information includes:
and sending the first sub service to the second network equipment according to the information of the first available resource and the first identification information.
15. The method according to any one of claims 11-14, further comprising:
acquiring second identification information of third network equipment from the network controller, wherein the third network equipment has a second available resource capable of processing the service to be processed;
and sending a second sub-service to the third network equipment according to the second identification information, wherein the second sub-service belongs to the service to be processed.
16. The method according to any of claims 11-15, wherein prior to said sending a request message to said network controller, said method further comprises:
acquiring resource use information of the first network equipment, wherein the resource use information comprises at least one of available resource information or used resource information;
the sending the request message to the network controller includes:
when the resource usage information of the first network device satisfies a condition, the request message is sent to the network controller, where the condition includes that a used resource value in the used resource information is greater than or equal to a first threshold if the resource usage information includes the used resource information, and the condition includes that an available resource value in the available resource information is less than or equal to a second threshold if the resource usage information includes the available resource information.
17. The method according to any of claims 11-16, wherein prior to said sending a request message to said network controller, said method further comprises:
receiving a second service to be processed sent by fourth network equipment;
acquiring a processing result of the second service to be processed;
and sending the processing result of the second service to be processed to the fourth network equipment, and releasing the resource for processing the second service to be processed.
18. A network controller, characterized in that the network controller comprises:
a receiving unit: the system comprises a first network device and a second network device, wherein the first network device is used for receiving a request message from the first network device, and the request message is used for requesting available resources for a service to be processed;
a determination unit: the network device is used for determining a second network device from one or more network devices except the first network device according to the request message, and the second network device is provided with a first available resource capable of processing the service to be processed;
a transmission unit: the first identification information of the second network device is sent to the first network device.
19. The network controller of claim 18,
the request message comprises resource information required by the service to be processed, and the resource information comprises a resource type and a resource quantity; alternatively, the first and second electrodes may be,
the request message includes the type of the service to be processed and the number of the service to be processed.
20. The network controller of claim 19, wherein when the request message includes resource information required by the pending service, the resource type comprises at least one of a computing resource type or a storage resource type.
21. The network controller according to claim 19, wherein when the request message includes the type of the pending traffic and the number of the pending traffic, the network controller further comprises:
and the acquisition unit is used for acquiring the resource information required by the service to be processed according to the type of the service to be processed and the number of the service to be processed.
22. The network controller according to any of claims 18 to 21, wherein the determining unit is specifically configured to:
determining the second network device from the one or more network devices using a predictive model based on historical data in accordance with the request message, wherein the historical data includes historical resource usage information for the one or more network devices.
23. The network controller of claim 22, wherein the predictive model is configured to predict a trend in resource utilization of the one or more network devices based on historical resource usage information of the one or more network devices.
24. The network controller according to any of claims 18 to 21, wherein the determining unit is specifically configured to:
determining the second network device from the one or more network devices according to the request message and the stored available resource information of the one or more network devices.
25. The network controller according to any of claims 18 to 21, wherein the determining unit is specifically configured to:
determining a plurality of candidate network devices from a plurality of network devices except the first network device according to the request message, wherein the candidate network devices all have available resources capable of processing the service to be processed;
and determining the second network equipment according to the network topology, wherein the second network equipment is the network equipment meeting the preset topology condition in the candidate network equipment.
26. The network controller according to any of claims 18-21, wherein the receiving unit is further configured to:
receiving own resource usage information sent by the one or more network devices, wherein the resource usage information includes available resource information, or the resource usage information includes used resource information;
the determining unit is specifically configured to: determining the second network device from the one or more network devices based on the request message and resource usage information of the one or more network devices.
27. The network controller according to any of claims 18-26, wherein the determining unit is further configured to:
determining a third network device from the one or more network devices according to the request message, wherein the third network device has a second available resource capable of processing the service to be processed;
the sending unit is further configured to: and sending the first identification information of the second network device and the information of the first available resource, and the second identification information of the third network device and the information of the second available resource to the first network device.
28. A network device, wherein the network device is connected to a network controller, the network device comprising:
a sending unit, configured to send a request message to the network controller, where the request message is used to request available resources for a service to be processed;
a receiving unit, configured to receive first identification information of a second network device sent by the network controller, where the second network device has a first available resource capable of processing the service to be processed;
the sending unit is further configured to: and sending a first sub-service to the second network equipment according to the first identification information, wherein the first sub-service belongs to the service to be processed.
29. The network device of claim 28, wherein the network device further comprises:
an acquisition unit configured to acquire information of a first available resource of the second network device from the network controller;
the sending unit is specifically configured to send the first sub-service to the second network device according to the information of the first available resource and the first identifier information.
30. The network device of claim 29, wherein the obtaining unit is further configured to:
acquiring second identification information of third network equipment from the network controller, wherein the third network equipment has a second available resource capable of processing the service to be processed;
the sending unit is further configured to send a second sub-service to the third network device according to the second identification information, where the second sub-service belongs to the service to be processed.
31. The network device of claim 29 or 30,
the acquisition unit is further configured to: before the sending unit sends a request message to the network controller, resource use information of the network equipment is obtained, wherein the resource use information comprises at least one of available resource information or used resource information;
the sending unit is specifically configured to: when the resource usage information of the network device satisfies a condition, the request message is sent to the network controller, where the condition includes that a used resource value in the used resource information is greater than or equal to a first threshold if the resource usage information includes the used resource information, and the condition includes that an available resource value in the available resource information is less than or equal to a second threshold if the resource usage information includes the available resource information.
32. The network device of any one of claims 29-31,
the receiving unit is further configured to: receiving a second service to be processed sent by fourth network equipment;
the acquisition unit is further configured to: acquiring a processing result of the second service to be processed;
the sending unit is further configured to: and sending the processing result of the second service to be processed to the fourth network equipment, and releasing the resource for processing the second service to be processed.
33. The network device of any one of claims 28-32,
the request message comprises resource information required by the service to be processed, and the resource information comprises a resource type and a resource quantity; alternatively, the first and second electrodes may be,
the request message includes the type of the service to be processed and the number of the service to be processed.
34. The network device of claim 33, wherein when the request message includes resource information required by the pending service, the resource type comprises at least one of a computing resource type or a storage resource type.
35. A communication device, comprising: a memory for storing a computer program and a processor for executing the computer program to perform the method of any one of claims 1-10 or to perform the method of any one of claims 11-17.
36. A computer-readable storage medium, having stored thereon a computer program which, when run on a computer, causes the computer to perform the method of any one of claims 1-10 or the method of any one of claims 11-17.
CN202010397086.1A 2020-05-12 2020-05-12 Resource allocation method and device Pending CN113660726A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010397086.1A CN113660726A (en) 2020-05-12 2020-05-12 Resource allocation method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010397086.1A CN113660726A (en) 2020-05-12 2020-05-12 Resource allocation method and device

Publications (1)

Publication Number Publication Date
CN113660726A true CN113660726A (en) 2021-11-16

Family

ID=78488689

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010397086.1A Pending CN113660726A (en) 2020-05-12 2020-05-12 Resource allocation method and device

Country Status (1)

Country Link
CN (1) CN113660726A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2024012235A1 (en) * 2022-07-11 2024-01-18 维沃移动通信有限公司 Method, apparatus and device for analyzing artificial intelligence request

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120254280A1 (en) * 2011-04-04 2012-10-04 Parker Ii Lansing Arthur Method and system for distributed computing using mobile devices
EP3035721A1 (en) * 2014-12-15 2016-06-22 Alcatel Lucent Resource sharing between devices in a wireless network
CN105959354A (en) * 2016-04-25 2016-09-21 乐视控股(北京)有限公司 Load scheduling method and load scheduling system of streaming media service
CN107295110A (en) * 2017-08-16 2017-10-24 网宿科技股份有限公司 Processing method, fringe node, service server and the system of calculating task
CN109495929A (en) * 2017-09-12 2019-03-19 华为技术有限公司 A kind of method for processing business, mobile edge calculations equipment and the network equipment
CN109992387A (en) * 2019-04-01 2019-07-09 北京邮电大学 A kind of task processing method, device and the electronic equipment of terminal collaboration
CN110785984A (en) * 2019-09-17 2020-02-11 北京小米移动软件有限公司 Information acquisition method, information acquisition device and electronic equipment

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120254280A1 (en) * 2011-04-04 2012-10-04 Parker Ii Lansing Arthur Method and system for distributed computing using mobile devices
EP3035721A1 (en) * 2014-12-15 2016-06-22 Alcatel Lucent Resource sharing between devices in a wireless network
CN105959354A (en) * 2016-04-25 2016-09-21 乐视控股(北京)有限公司 Load scheduling method and load scheduling system of streaming media service
CN107295110A (en) * 2017-08-16 2017-10-24 网宿科技股份有限公司 Processing method, fringe node, service server and the system of calculating task
CN109495929A (en) * 2017-09-12 2019-03-19 华为技术有限公司 A kind of method for processing business, mobile edge calculations equipment and the network equipment
CN109992387A (en) * 2019-04-01 2019-07-09 北京邮电大学 A kind of task processing method, device and the electronic equipment of terminal collaboration
CN110785984A (en) * 2019-09-17 2020-02-11 北京小米移动软件有限公司 Information acquisition method, information acquisition device and electronic equipment

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2024012235A1 (en) * 2022-07-11 2024-01-18 维沃移动通信有限公司 Method, apparatus and device for analyzing artificial intelligence request

Similar Documents

Publication Publication Date Title
US10958525B2 (en) Network slice management method and apparatus
CN112118617B (en) Base station energy saving method, device and storage medium
US10680928B2 (en) Multi-stream transmission method and device in SDN network
CN111200878B (en) Information transmission method and device
CN113364850B (en) Software-defined cloud-edge collaborative network energy consumption optimization method and system
US10993127B2 (en) Network slice instance management method, apparatus, and system
CN113115272A (en) Service redirection method and device
CN109391498B (en) Management method of network component and network equipment
CN114125924B (en) TSN service processing method and device and computer readable storage medium
WO2018201856A1 (en) System and method for self organizing data center
WO2019072162A1 (en) Virtual network mapping method, device and storage medium
CN112019363B (en) Method, device and system for determining service transmission requirement
EP3203686B1 (en) Virtualized network function interworking
WO2016095524A1 (en) Resource allocation method and apparatus
Kliazovich et al. CA-DAG: Communication-aware directed acyclic graphs for modeling cloud computing applications
WO2015149491A1 (en) Network resource processing device, method and system
US20170251428A1 (en) Methods and Nodes for M2M Communication
CN108063653B (en) Time delay control method, device and system
WO2020147081A1 (en) Data transmission method, related device, and computer storage medium
CN113660726A (en) Resource allocation method and device
Laroui et al. Virtual mobile edge computing based on IoT devices resources in smart cities
CN115460659B (en) Wireless communication data analysis system for bandwidth adjustment
CN109526032B (en) Method and device for modifying network slice example
CN113852554B (en) Data transmission method, device and equipment
WO2021022947A1 (en) Method for deploying virtual machine and related device

Legal Events

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