# US 10,374,907 B2 · Fine-granularity resource control method and apparatus

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 10,374,907 B2
- Document ID: US10374907B2
- Status: Granted
- Kind: B2
- Application number: 15/527,329
- Filed: 2015-08-19
- Published: 2017-11-23
- Granted: 2019-08-06
- Earliest claimed: 2014-11-18
- Assignees: Zte Corporation
- Applicants: Zte Corporation
- Inventors: Longbin Hu
- Web page: https://patentgrep.com/patent/US10374907B2

## CPC

- H04L 41/50: Network service management, e.g. ensuring proper service fulfilment according to agreements
- G06F 9/50: Allocation of resources, e.g. of the central processing unit [CPU]
- G06F 9/5011: {the resources being hardware resources other than CPUs, Servers and Terminals}
- G06F 21/10: Protecting distributed programs or content, e.g. vending or licensing of copyrighted material (protection in video systems or pay television H04N7/16) {; Digital rights management [DRM]}
- G06F 21/629: {to features or functions of an application}
- H04L 47/808: {User-type aware}
- H04L 49/254: {Centralised controller, i.e. arbitration or scheduling}
- H04L 49/00: Packet switching elements
- H04L 63/10: {for controlling access to devices or network resources}
- H04L 2463/103: applying security measure for protecting copyright
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Disclosed are a fine-grained resource control method and apparatus. The method includes: defining, for a function of which resource usage is needed to be restricted, a license item in a license file, wherein the license item is used for representing a resource restriction number for supporting the function; and judging whether a preferential support command is preset for resources of the function, if presetting, controlling the resources of the function according to the preferential support command, a value of the license item and an actual resource number for supporting the function, otherwise, controlling the resources of the function directly according to the value of the license item and the actual resource number for supporting the function.

## Claims

### Claim 1

A fine-grained resource control method, comprising the following steps:
defining, for a function of which resource usage is needed to be restricted, a license item in a license file, wherein the license item is used for representing a resource restriction number for supporting the function; and
judging whether a preferential support command is preset for resources of the function, if presetting, controlling the resources of the function according to the preferential support command, a value of the license item and an actual resource number for supporting the function, otherwise, controlling the resources of the function directly according to the value of the license item and the actual resource number for supporting the function,
wherein the preferential support command specifies P resources for preferentially supporting the function, assuming the value of the license item is N and the actual resource number for supporting the function is M,
the step of controlling the resources of the function according to the preferential support command, the value of the license item and the actual resource number for supporting the function comprises:
B. if N≥P, controlling the P resources to preferentially support the function, and the number of the occupied resources is not released even if the resources are not initiated or are damaged; and then, selecting N−P resources that come online first, to serve as the resources for supporting the function, from the remaining M−P resources according to the online sequence, wherein, when N−P≥M−P, all the M−P resources support the function, and when N−P<M−P, the N−P resources that come online first are selected to serve as the resources for supporting the function.

### Claim 2 (depends on 1)

The fine-grained resource control method according to claim 1, wherein the step of controlling the resources of the function according to the preferential support command, the value of the license item and the actual resource number for supporting the function or controlling the resources of the function directly according to the value of the license item and the actual resource number for supporting the function is executed by a controller, wherein the controller is a router or another external controller equipment other than the router.

### Claim 3 (depends on 2)

The fine-grained resource control method according to claim 2, wherein the license file is stored in the controller or stored in a controlled equipment.

### Claim 4 (depends on 1)

The fine-grained resource control method according to claim 1, wherein
the step of controlling the resources of the function according to the preferential support command, the value of the license item and the actual resource number for supporting the function further comprises:
A. if P≤M, controlling all the P resources to necessarily support the function no matter what an online sequence is;
C. if N<P, controlling the N resources, that come online first and are preferentially selected from the P resources according to the online sequence, to support the function, and controlling the remaining M−N resources not to support the function.

### Claim 5 (depends on 1)

The fine-grained resource control method according to claim 1, wherein
the step of controlling the resources of the function directly according to the value of the license item and the actual resource number for supporting the function comprises:
D. if N≥M, controlling the M resources to support the function, and if N<M, selecting the N resources that come online first to serve as the resources for supporting the function according to an online sequence of resources.

### Claim 6 (depends on 4)

The fine-grained resource control method according to claim 4, wherein
when the function is a value-added service function, the license item is used for representing the number of single boards for supporting the value-added service function;
the preferential support command specifies that the number of single boards for preferentially supporting the value-added service function is P; and
the steps A, B and C comprise the following steps A′, B′ and C′ respectively:
A′. if P≤M, controlling all the P single boards to necessarily support the value-added service function no matter what an online sequence is;
B′. if N≥P, controlling the P single boards to preferentially support the value-added service function; and then, selecting N−P single boards that come online first, to serve as the single boards for supporting the value-added service function, from the remaining M−P single boards according to the online sequence, wherein, when N−P≥M−P, all the M−P single boards support the value-added service function, and when N−P<M−P, the N−P single boards that come online first are selected to serve as the resources for supporting the value-added service function;
C′. if N<P, controlling the N single boards, that come online first and are preferentially selected from the P single boards according to the online sequence, to support the value-added service function, and controlling the remaining M−N single boards not to support the value-added service function.

### Claim 7 (depends on 5)

The fine-grained resource control method according to claim 5, wherein
when the function is a value-added service function, the license item is used for representing the number of single boards for supporting the value-added service function;
the preferential support command specifies that the number of single boards for preferentially supporting the value-added service function is P; and
the step D comprises:
if N≥M, controlling all the M single boards to support the value-added service function, and if N<M, selecting the N single boards that come online first to serve as the single boards for supporting the value-added service function according to the online sequence of resources.

### Claim 8 (depends on 4)

The fine-grained resource control method according to claim 4, wherein
when the function is that ports are able to be used, the license item is used for representing the number of ports able to be used; and
the steps A, B and C comprise the following steps A′, B′ and C′ respectively:
A′. if P≤M, controlling all the P ports to be able to be used necessarily no matter what an online sequence is;
B′. if N≥P, controlling the P ports to be preferentially usable; and then, selecting N−P ports that come online first, to serve as the ports able to be used, from the remaining M−P ports according to the online sequence, wherein when N−P≥M−P, all the M−P ports are able to be used, and when N−P<M−P, the N−P ports that come online first are selected to serve as the ports able to be used;
C′. if N<P, controlling the N ports, that come online first and are preferentially selected from the P ports according to the online sequence, to be able to be used, and controlling the remaining M−N ports to be not able to be used.

### Claim 9 (depends on 5)

The fine-grained resource control method according to claim 5, wherein
when the function is that ports are able to be used, the license item is used for representing the number of ports able to be used; and
the step D comprises: if N≥M, controlling all the M ports to be able to be used, and when N<M, selecting the N ports that come online first to be able to be used according to an online sequence of ports.

### Claim 10

A fine-grained resource control apparatus, comprising a processor and a memory, wherein the memory stores processor-executable programs, and the programs comprise: a configuration module, a judgment module and a control module,
wherein
the configuration module is arranged to: define, for a function of which resource usage is needed to be restricted, a license item in a license file, wherein the license item is used for representing a resource restriction number for supporting the function;
the judgment module is arranged to: judge whether a preferential support command is preset for resources of the function; and
the control module is arranged to: control the resources of the function according to the preferential support command, a value of the license item and an actual resource number for supporting the function if the judgment module determines that the preferential support command is preset for the resources of the function, or control the resources of the function directly according to the value of the license item and the actual resource number for supporting the function if the judgment module determines that the preferential support command is not preset for the resources of the function,
wherein the preferential support command specifies P resources for preferentially supporting the function, assuming the value of the license item is N and the actual resource number for supporting the function is M,
the control module is arranged to control the resources of the function according to the preferential support command, the value of the license item and the actual resource number for supporting the function in the following manners:
B. if N≥P, the control module controls the P resources to preferentially support the function, and the number of the occupied resources is not released even if the resources are not initiated or are damaged; and then, the control module selects N−P resources that come online first, to serve as the resources for supporting the function, from the remaining M−P resources according to the online sequence, wherein, when N−P≥M−P, all the M−P resources support the function, and when N−P<M−P, the N−P resources that come online first are selected to serve as the resources for supporting the function.

### Claim 11 (depends on 10)

The fine-grained resource control apparatus according to claim 10, wherein
the control module is further arranged to control the resources of the function according to the preferential support command, the value of the license item and the actual resource number for supporting the function in the following manners:
A. if P≤M, the control module controls all the P resources to necessarily support the function no matter what an online sequence is;
C. if N<P, the control module controls the N resources, that come online first and are preferentially selected from the P resources according to the online sequence, to support the function, and controls the remaining M−N resources not to support the function.

### Claim 12 (depends on 10)

The fine-grained resource control apparatus according to claim 10, wherein the control module is arranged to control the resources of the function directly according to the value of the license item and the actual resource number for supporting the function in the following manner:
D. if N≥M, controlling the M resources to support the function, and if N<M, selecting the N resources that come online first to serve as the resources for supporting the function according to an online sequence of resources.

### Claim 13 (depends on 11)

The fine-grained resource control apparatus according to claim 11, wherein
when the function is a value-added service function, the license item is used for representing the number of single boards for supporting the value-added service function;
the preferential support command specifies that the number of single boards for preferentially supporting the value-added service function is P; and
the control module is arranged to execute the steps A, B and C respectively in the following manners:
if P≤M, controlling all the P single boards to necessarily support the value-added service function no matter what an online sequence is;
if N≥P, controlling the P single boards to preferentially support the value-added service function; and then, selecting N−P single boards that come online first, to serve as the single boards for supporting the value-added service function, from the remaining M−P single boards according to the online sequence, wherein, when N−P≥M−P, all the M−P single boards support the value-added service function, and when N−P<M−P, the N−P single boards that come online first are selected to serve as the resources for supporting the value-added service function;
if N<P, controlling the N single boards, that come online first and are preferentially selected from the P single boards according to the online sequence, to support the value-added service function, and controlling the remaining M−N single boards not to support the value-added service function.

### Claim 14 (depends on 12)

The fine-grained resource control apparatus according to claim 12, wherein
when the function is a value-added service function, the license item is used for representing the number of single boards for supporting the value-added service function;
the preferential support command specifies that the number of single boards for preferentially supporting the value-added service function is P;
the control module is arranged to execute the step D in the following manners: if N≥M, controlling all the M single boards to support the value-added service function, and if N<M, selecting the N single boards that come online first to serve as the single boards for supporting the value-added service function according to the online sequence of resources.

### Claim 15 (depends on 11)

The fine-grained resource control apparatus according to claim 11, wherein
when the function is that ports are able to be used, the license item is used for representing the number of ports able to be used; and
the control module is arranged to execute the step A, B and C respectively in the following manners:
if P≤M, controlling all the P ports to be able to be used necessarily no matter what an online sequence is;
if N≥P, controlling the P ports to be preferentially usable; and then, selecting N−P ports that come online first, to serve as the ports able to be used, from the remaining M−P ports according to the online sequence, wherein when N−P≥M−P, all the M−P ports are able to be used, and when N−P<M−P, the N−P ports that come online first are selected to serve as the ports able to be used;
if N<P, controlling the N ports, that come online first and are preferentially selected from the P ports according to the online sequence, to be able to be used, and controlling the remaining M−N ports to be not able to be used.

### Claim 16 (depends on 12)

The fine-grained resource control apparatus according to claim 12, wherein
when the function is that ports are able to be used, the license item is used for representing the number of ports able to be used; and
the control module is arranged to execute the step D in the following manner: if N≥M, controlling all the M ports to be able to be used, and when N<M, selecting the N ports that come online first to be able to be used according to an online sequence of ports.

### Claim 17 (depends on 2)

The fine-grained resource control method according to claim 2, wherein
the method further comprises:
the step of controlling the resources of the function according to the preferential support command, the value of the license item and the actual resource number for supporting the function further comprises:
A. if P≤M, controlling all the P resources to necessarily support the function no matter what an online sequence is;
C. if N<P, controlling the N resources, that come online first and are preferentially selected from the P resources according to the online sequence, to support the function, and controlling the remaining M−N resources not to support the function.

### Claim 18 (depends on 17)

The fine-grained resource control method according to claim 17, wherein
when the function is a value-added service function, the license item is used for representing the number of single boards for supporting the value-added service function;
the preferential support command specifies that the number of single boards for preferentially supporting the value-added service function is P; and
the steps A, B and C comprise the following steps A′, B′ and C′ respectively:
A′. if P≤M, controlling all the P single boards to necessarily support the value-added service function no matter what an online sequence is;
B′. if N≥P, controlling the P single boards to preferentially support the value-added service function; and then, selecting N−P single boards that come online first, to serve as the single boards for supporting the value-added service function, from the remaining M−P single boards according to the online sequence, wherein, when N−P≥M−P, all the M−P single boards support the value-added service function, and when N−P<M−P, the N−P single boards that come online first are selected to serve as the resources for supporting the value-added service function;
C′. if N<P, controlling the N single boards, that come online first and are preferentially selected from the P single boards according to the online sequence, to support the value-added service function, and controlling the remaining M−N single boards not to support the value-added service function.

### Claim 19 (depends on 3)

The fine-grained resource control method according to claim 3, wherein
the method further comprises:
the step of controlling the resources of the function according to the preferential support command, the value of the license item and the actual resource number for supporting the function further comprises:
A. if P≤M, controlling all the P resources to necessarily support the function no matter what an online sequence is;
C. if N<P, controlling the N resources, that come online first and are preferentially selected from the P resources according to the online sequence, to support the function, and controlling the remaining M−N resources not to support the function.

### Claim 20 (depends on 1)

A computer-readable storage medium storing computer-executable instructions used for executing the method according to claim 1.
