CN112559185B - Chip resource allocation method, device, network equipment and computer storage medium - Google Patents

Chip resource allocation method, device, network equipment and computer storage medium Download PDF

Info

Publication number
CN112559185B
CN112559185B CN202011515612.6A CN202011515612A CN112559185B CN 112559185 B CN112559185 B CN 112559185B CN 202011515612 A CN202011515612 A CN 202011515612A CN 112559185 B CN112559185 B CN 112559185B
Authority
CN
China
Prior art keywords
capability set
service
service board
global chip
optimal
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.)
Active
Application number
CN202011515612.6A
Other languages
Chinese (zh)
Other versions
CN112559185A (en
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.)
Maipu Communication Technology Co Ltd
Original Assignee
Maipu Communication Technology 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 Maipu Communication Technology Co Ltd filed Critical Maipu Communication Technology Co Ltd
Priority to CN202011515612.6A priority Critical patent/CN112559185B/en
Publication of CN112559185A publication Critical patent/CN112559185A/en
Application granted granted Critical
Publication of CN112559185B publication Critical patent/CN112559185B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5027Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F15/00Digital computers in general; Data processing equipment in general
    • G06F15/76Architectures of general purpose stored program computers
    • G06F15/78Architectures of general purpose stored program computers comprising a single central processing unit
    • G06F15/7803System on board, i.e. computer system on one or more PCB, e.g. motherboards, daughterboards or blades

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computing Systems (AREA)
  • Stored Programmes (AREA)

Abstract

The invention relates to a chip resource allocation method, a device, network equipment and a computer storage medium, wherein the method comprises the following steps: acquiring the service of the chip resources to be allocated and the global chip resources required to be allocated; acquiring a capability set which can be issued by the global chip resource on each service board card respectively; determining an optimal capability set and an available service board card according to each capability set, wherein the capability set of the available service board card is not less than the optimal capability set, and the optimal capability set is not zero; and applying for the same global chip resources from each available service board card to be allocated to the service. The method can ensure the normal operation of the service on the premise of not replacing the service board card which does not support the global chip resource, thereby avoiding the waste of the resource on the replaced service board card.

Description

Chip resource allocation method, device, network equipment and computer storage medium
Technical Field
The present application belongs to the field of communications, and in particular, to a method, an apparatus, a network device, and a computer storage medium for allocating chip resources.
Background
The capability set characterizes the size of the range that the chip resources can be issued on the service board card. The capability sets of the same type of chip resources on different service board cards are different, and the capability sets of the same type of chip resources on the same service board card are fixed. The normal operation of the service depends on the chip resources on the service board card, and accordingly, the service board card supports various different services by supporting different chip resources.
A service (assumed to be service a) that needs to use a global chip resource (assumed to be global chip resource a) exists, the global chip resource a is required to exist on all service boards included in the network device, and the range of the global chip resource a used by the service a on each service board is required to be consistent, for example, the range of the global chip resource a used by the service a on each service board is 0 to 2K. If the global chip resource a does not exist on a certain service board card, or the range of the global chip resource a used by the service a on a certain service board card is inconsistent with other service board cards, the service a corresponding to the service board cards cannot work normally.
In order to prevent the above problem, in the prior art, when a service board card that does not support the global chip resource a exists in an original service board card, the problem that the service a cannot normally operate can be avoided only by replacing an old service board card that does not support the global chip resource a with a new service board card that supports the global chip resource a.
However, for the network device, the old service board that does not support the global chip resource a may support other resources, that is, the old service board may still support other services to work normally, and therefore, replacing the old service board that does not support the global chip resource a will cause the resources on the old service board to be completely wasted.
Disclosure of Invention
In view of this, an object of the present application is to provide a chip resource allocation method, an apparatus, a network device, and a computer storage medium, which can ensure normal operation of a service without replacing a service board that does not support global chip resources when a service board that does not support global chip resources exists in the network device, thereby avoiding waste of resources on the replaced service board.
The embodiment of the application is realized as follows:
in a first aspect, an embodiment of the present application provides a method for allocating chip resources, where a service of a chip resource to be allocated and a global chip resource to be allocated are obtained; acquiring a capability set which can be issued by the global chip resource on each service board card respectively; determining an optimal capability set and an available service board card according to each capability set, wherein the capability set of the available service board card is not less than the optimal capability set, and the optimal capability set is not zero; and applying for the same global chip resources from each available service board card to be allocated to the service. If the service board card which does not support the global chip resource exists in the network device, after the operation, the normal operation of the service can be ensured on the premise that the service board card which does not support the global chip resource is not replaced, so that the waste of the resource on the replaced service board card is avoided. In addition, the process of replacing the service board card may cause the interruption of the original service, so that when the scheme is adopted, the interruption of the original service can be prevented.
With reference to the embodiment of the first aspect, in a possible implementation manner, the applying for the same global chip resource from each available service board to allocate to the service includes: and taking the minimum capacity set in the available service board cards as the application upper limit of the global chip resources, and applying the same global chip resources from each available service board card to distribute the global chip resources to the services.
With reference to the embodiment of the first aspect, in a possible implementation manner, the applying for the same global chip resource from each available service board to allocate to the service includes: and for each available service board card, according to the sequence from the upper limit to the lower limit, applying for the global chip resources from the application upper limit of the global chip resources to allocate to the services. The global chip resource is applied from the upper limit of application to the lower limit of application, so that resource preemption can be avoided from other services using the same chip resource.
With reference to the embodiment of the first aspect, in a possible implementation manner, the determining an optimal capability set according to each capability set includes: determining an average of each non-zero capability set as the optimal capability set; or determining the capability set with the minimum value in each capability set as the optimal capability set; or a specified value configured by a user is determined as the optimal capability set. When the average number of the non-zero capability sets is taken as the optimal capability set, the waste of global chip resources on the service board card capable of issuing the global chip resources is reduced; when each capacity set with the minimum value in the non-zero capacity sets is taken as the optimal capacity set, the waste of other chip resources on the service board card which does not support issuing of the global chip resources is reduced.
With reference to the first aspect, in a possible implementation manner, the obtaining a capability set that the global chip resource can issue on each service board includes: and acquiring the capability sets of the global chip resources which can be respectively issued on the currently on-site service board cards.
In a second aspect, an embodiment of the present application provides an apparatus for allocating chip resources, where the apparatus includes: the device comprises an acquisition module, a determination module and a distribution module. The acquisition module is used for acquiring the service of the chip resources to be allocated and the global chip resources required to be allocated; the obtaining module is further configured to obtain a capability set that the global chip resource can be issued on each service board respectively; the determining module is used for determining an optimal capability set and available service board cards according to each capability set, wherein the capability set of the available service board cards is not smaller than the optimal capability set, and the optimal capability set is not zero; and the distribution module is used for applying the same global chip resources from each available service board card to distribute the global chip resources to the services.
With reference to the second aspect, in a possible implementation manner, the determining module is configured to apply for the same global chip resource from each available service board to allocate to the service, with a minimum capability set in the available service boards as an application upper limit of the global chip resource.
With reference to the second aspect embodiment, in a possible implementation manner, the allocating module is configured to, for each available service board, in order from an upper limit to a lower limit, apply for the global chip resource from an upper limit of the global chip resource to allocate to the service.
With reference to the second aspect, in a possible implementation manner, the determining module is configured to determine an average of each non-zero capability set as the optimal capability set; or determining the capability set with the minimum value in each capability set as the optimal capability set; or a specified value configured by a user is determined as the optimal capability set.
With reference to the second aspect, in a possible implementation manner, the obtaining module is configured to obtain a capability set that the global chip resource can be issued on each currently-in-place service board respectively.
With reference to the second aspect, in a possible implementation manner, the determining module is specifically configured to determine an average of each non-zero capability set as the optimal capability set; or determining the capability set with the minimum value in each capability set as the optimal capability set; or a specified value configured by a user is determined as the optimal capability set.
In a third aspect, an embodiment of the present application further provides a network device, including: a memory and a processor, the memory and the processor connected; the memory is used for storing programs; the processor calls a program stored in the memory to perform the method of the first aspect embodiment and/or any possible implementation manner of the first aspect embodiment.
In a fourth aspect, the present application further provides a non-transitory computer-readable storage medium (hereinafter referred to as a computer storage medium), on which a computer program is stored, where the computer program is executed by a computer to perform the method in the foregoing first aspect and/or any possible implementation manner of the first aspect.
Additional features and advantages of the application will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by the practice of the embodiments of the application. The objectives and other advantages of the application may be realized and attained by the structure particularly pointed out in the written description and drawings.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings without creative efforts. The foregoing and other objects, features and advantages of the application will be apparent from the accompanying drawings. Like reference numerals refer to like parts throughout the drawings. The drawings are not intended to be to scale as practical, emphasis instead being placed upon illustrating the subject matter of the present application.
Fig. 1 shows a flowchart of a chip resource allocation method according to an embodiment of the present application.
Fig. 2 shows a distribution diagram of chip resources provided in an embodiment of the present application.
Fig. 3 shows a block diagram of a chip resource allocation apparatus according to an embodiment of the present application.
Fig. 4 shows a schematic structural diagram of a network device according to an embodiment of the present application.
Icon: 100-a network device; 110-a processor; 120-a memory; 130-service board card; 400-chip resource allocation means; 410-an obtaining module; 420-a determination module; 430-allocation module.
Detailed Description
The technical solutions in the embodiments of the present application will be described below with reference to the drawings in the embodiments of the present application.
It should be noted that: the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
In addition, the defects (excessive waste of chip resources) existing in the chip resource allocation scheme adopted in the prior art in the face of the business using global chip resources are the results obtained after the applicant has conducted practice and careful study, and therefore, the discovery process of the above defects and the solutions proposed by the embodiments of the present application in the following for the above defects should be considered as contributions of the applicant to the present application.
In order to solve the above problem, embodiments of the present application provide a method, an apparatus, a network device, and a computer storage medium for allocating chip resources, so that when the network device faces a service using global chip resources, it is beneficial to reduce waste of resources.
The technology can be realized by adopting corresponding software, hardware and a combination of software and hardware. The following describes embodiments of the present application in detail.
The following will describe a chip resource allocation method provided in the present application.
Referring to fig. 1, an embodiment of the present application provides a chip resource allocation method applied to a network device 100, where the network device includes a plurality of service boards.
The steps involved will be described below with reference to fig. 1.
Step S110: and acquiring the service of the chip resources to be allocated and the global chip resources required to be allocated.
When the network device acquires the service a to which the global chip resource 1 needs to be allocated, the service a may be a new service that has never been supported before, or may be a service that has been supported before.
Assuming that the service a is a VXLAN (virtual extensible local area network) service, the global chip resource 1 to be used may be a VFI (virtual forwarding domain) resource.
When the service A of the chip resource to be allocated is a service which has been supported in the past, it is described that all service boards included in the network equipment support issuing of the global chip resource 1 required by the service A; when the service a to be allocated with the chip resource is a new service that has never been supported before, among all the service boards included in the network device, there may be a case where an individual service board does not support issuing the global chip resource 1 required for the service a.
As shown in fig. 2, it is assumed that the network device includes four traffic boards, which are LPU1, LPU2, LPU3, and LPU 4. For the acquired new service a, LPU4 does not support the VFI resource required for issuing the service a.
Step S120: and acquiring the capability sets of the global chip resources which can be respectively issued on each service board card.
After determining the global chip resources 1 required by the service a, the network device obtains the range of the capability sets that the global chip resources 1 can respectively issue on each service board included in the network device, and obtains a plurality of capability sets corresponding to the number of the service boards.
The content of each capability set is used for representing the range of the global chip resource which can be issued on the service board card corresponding to the capability set.
As shown in fig. 2, for the four service boards, the capability set of the VFI resource on the LPU1 is 2K, and the distributable range of the VFI resource on the LPU1 is represented as 0-2K; the capacity set of the VFI resources on the LPU2 is 6K, and the distributable range of the VFI resources on the LPU2 is represented to be 0-6K; the capacity set of the VFI resources on the LPU3 is 8K, and the distributable range of the VFI resources on the LPU3 is represented to be 0-8K; the capability set of VFI resources on LPU4 is 0, indicating that VFI resources are not present on LPU 4.
In some embodiments, the number of the service boards on the network device may be increased or deleted along with the change of the service or the upgrade of the network device, and accordingly, when the network device acquires the capability set of a certain chip resource, the capability set that the chip resource can be respectively issued on each service board currently in place in the network device is acquired.
Of course, in some embodiments, after the capability sets that can be respectively issued on each service board are obtained, the minimum management granularity of the chip resources on each service board may also be calculated, for example, the minimum common divisor of the capability sets of each service board is taken, and the capability sets on each service board are divided into multiple segments according to the minimum common divisor, so as to facilitate centralized management. For example, in the four service boards shown in fig. 2, the least common divisor of the capability set is 2K, and accordingly, the capability set of each service board is divided, where each segment is 2K.
Step S130: and determining the optimal capability set and the available service board card according to each capability set.
After the capability sets of the global chip resources 1 on the service board cards are obtained, the optimal capability set which is not zero can be determined according to the obtained capability sets.
In an alternative embodiment, the average of the various non-zero capability sets may be determined as the optimal capability set. Taking the individual capability sets shown in fig. 2 as an example, if the average of the non-zero capability sets is taken as the optimal capability set, the optimal capability set is (2K +6K +8K)/3 ═ 5.3K.
In another alternative embodiment, the capability set with the smallest value and not zero in each capability set may be determined as the optimal capability set. Taking the respective capability sets shown in fig. 2 as an example, if the capability set with the smallest value and not zero in the capability set is taken as the optimal capability set, the optimal capability set is 2K.
In another alternative embodiment, the specified value configured by the user can also be directly determined as the optimal capability set. For example, if the user-configured specified value is 6K, then the best capability set is 6K.
After the optimal capability set is determined, the service board whose capability set is not less than the optimal capability set can be determined as an available service board from all the service boards included in the network device.
Of course, the number of available service boards may be multiple, for example, for each capability set shown in fig. 2, if the average number of the capability sets is used as the optimal capability set (5.3K), the corresponding available service boards are LPU2 and LPU 3; if the capacity set with the minimum value and not zero is taken as the best capacity set (2K), the available service boards are LPUs 1, LPUs 2 and LPUs 3, and if the assigned value configured by the user is taken as the best capacity set (6K), the corresponding available service boards are LPUs 2 and LPUs 3.
Step S140: and applying for the same global chip resources from each available service board card to be allocated to the service.
In this embodiment, when the network device needs to allocate the global chip resource 1 to the service a, instead of using all the service boards included in the network device as a global entity as in the prior art, the available service boards having the global chip resource 1 in all the service boards are used as a local global entity, and the global chip resource 1 is applied for the service a from each service board in the local global entity (i.e., the available service boards), so that the service a can also normally operate in a local global scope configured by the available service boards.
Assuming that a service board (e.g., LPU4 in fig. 2) that does not support global chip resource 1 exists in the network device, after such operation, normal operation of service a can be ensured without replacing LPU4, thereby avoiding waste of original chip resources on LPU 4.
In addition, the process of replacing the service board may cause the original service to be interrupted, so that when the above scheme is adopted, the interruption of the original service on the LPU4 can be avoided.
In an optional implementation manner, when the network device applies for the global chip resource 1 for the service a, the minimum capability set in the available service boards is used as the application upper limit of the global chip resource 1, and then the global chip resource 1 in the same range is applied from each available service board and allocated to the service a.
Continuing with the example of the various capability sets shown in FIG. 2.
If the average number of the capability sets is used as the best capability set (5.3K), the corresponding available service boards are LPU2 and LPU3, and the minimum capability set of the available service boards is 6K. When applying for the VFI resource for the service a, the network device applies for the VFI resource in the same range from the LPU2 and the LPU3 to allocate to the service a, and the upper limit of the applied VFI resource is 6K, that is, the applied VFI resource may be any segment of resource from 0 to 6K.
If the capacity set with the smallest value and not zero is used as the best capacity set (2K), the available service boards are LPU1, LPU2 and LPU3, and the smallest capacity set 2K in the available service boards is used. When applying for the VFI resource for the service a, the network device applies for the VFI resource in the same range from LPU1, LPU2, and LPU3 to allocate to the service a, and the upper limit of the applied VFI resource is 2K, that is, the applied VFI resource may be any segment of size among 0-2K.
Further, when the capacity set (2K) with the smallest value and not zero is used as the optimal capacity set, it can be seen from the above example that the application upper limit of the VFI resource is limited to 2K. For LPU2 and LPU3, there are still a lot of VFI resources, i.e. VFI resources in LPU2 in 2K-6K portion and VFI resources in LPU3 in 2K-8K portion cannot be used by service a, resulting in a lot of waste of resources.
When the average number of capability sets (5.3K) is used as the optimal capability set, it can be seen from the above example that the application upper limit of VFI resources is increased from minimum 2K to 6K, and for LPU2 and LPU3, VFI resources that cannot be used by service a are greatly reduced, thereby being more beneficial to less waste of resources.
In addition, in an optional implementation manner, if the minimum capability set in the available service boards is used as the application upper limit of the global chip resource, when the network device applies for the VFI resource for the service a, for each available service board, the network device may apply for the VFI resource from the application range upper limit of the VFI resource to the range lower limit in order from the range upper limit to the range lower limit, and allocate the VFI resource to the service a, so that resource preemption of other services that also use the same global chip resource is avoided.
For example, for the embodiment that the available traffic boards are LPU2 and LPU3, and the application limit of the VFI resources is 6K, if the traffic a needs 2K of VFI resources, the network device may start applying for the VFI resources from 6K to a range smaller than 6K, and finally allocate the VFI resources that have applied for 2K in LPU2 and LPU3 to the traffic a.
According to the chip resource allocation method provided by the embodiment of the application, when the network equipment needs to allocate the global chip resources to the services, all service boards included in the network equipment are not taken as the global state as in the prior art, but the available service boards with the global chip resources in all the service boards are taken as the local global state, and the global chip resources are applied for the services from each service board in the local global state (namely the available service boards), so that the services can normally run in the local global range constructed by the available service boards. If the service board card which does not support the global chip resource exists in the network device, after the operation, the normal operation of the service can be ensured on the premise that the service board card which does not support the global chip resource is not replaced, so that the waste of the resource on the replaced service board card is avoided. In addition, the process of replacing the service board card may cause the interruption of the original service, so that when the scheme is adopted, the interruption of the original service can be prevented.
As shown in fig. 3, an embodiment of the present application further provides a chip resource allocation apparatus 400, where the chip resource allocation apparatus 400 may include: an acquisition module 410, a determination module 420, and an assignment module 430.
An obtaining module 410, configured to obtain a service of a chip resource to be allocated and a global chip resource that needs to be allocated;
the obtaining module 410 is further configured to obtain a capability set that the global chip resource can be issued on each service board respectively;
a determining module 420, configured to determine an optimal capability set and an available service board according to each capability set, where the capability set of the available service board is not less than the optimal capability set, and the optimal capability set is not zero;
an allocating module 430, configured to apply for the same global chip resource from each of the available service boards to allocate to the service.
In a possible implementation manner, the determining module 420 is configured to apply for the same global chip resource from each of the available service boards to be allocated to the service, with a minimum capability set in the available service boards as an application upper limit of the global chip resource.
In a possible implementation manner, the allocating module 430 is configured to, for each available service board, in order from an upper limit to a lower limit, apply for the global chip resource to allocate to the service starting from the upper limit of the global chip resource.
In a possible implementation, the determining module 420 is configured to determine an average of the respective non-zero capability sets as the optimal capability set; or determining the capability set with the minimum value in each capability set as the optimal capability set; or a specified value configured by a user is determined as the optimal capability set.
In a possible implementation manner, the obtaining module 410 is configured to obtain a capability set that the global chip resource can be issued on each currently-in-place service board respectively.
The chip resource allocation apparatus 400 provided in the embodiment of the present application has the same implementation principle and the same technical effect as those of the foregoing method embodiments, and for the sake of brief description, reference may be made to the corresponding contents in the foregoing method embodiments for the parts of the apparatus embodiments that are not mentioned.
In addition, an embodiment of the present application further provides a computer storage medium, where a computer program is stored on the computer storage medium, and when the computer program is executed by a computer, the steps included in the chip resource allocation method described above are executed.
In addition, referring to fig. 4, an embodiment of the present application further provides a network device 100 for implementing the chip resource allocation method and apparatus of the embodiment of the present application.
Optionally, the network device 100 may be, but is not limited to, a switch, a router, a repeater, and the like.
The network device 100 may have a distributed structure or a centralized structure. However, no matter which structure is adopted, a plurality of card slots are arranged on the network device 100, so that the network device can support the insertion of a plurality of service boards of the same or different types.
Among them, the network device 100 may include: a processor 110, a memory 120, and a service board 130.
It should be noted that the components and configuration of network device 100 shown in fig. 4 are exemplary only, and not limiting, and that network device 100 may have other components and configurations as desired.
Processor 110, memory 120, service card 130, and other components that may be present in network device 100 are electrically connected to each other, directly or indirectly, to enable the transfer or interaction of data. For example, the processor 110, the memory 120, and other components that may be present may be electrically coupled to each other via one or more communication buses or signal lines.
The memory 120 is used for storing programs, such as the programs corresponding to the chip resource allocation methods mentioned above or the chip resource allocation devices mentioned above. Optionally, when the chip resource allocation device is stored in the memory 120, the chip resource allocation device includes at least one software functional module that can be stored in the memory 120 in the form of software or firmware (firmware).
Optionally, the software functional module included in the chip resource allocation apparatus may also be solidified in an Operating System (OS) of the network device 100.
The processor 110 is used to execute executable modules stored in the memory 120, such as software functional modules or computer programs included in the chip resource allocation apparatus. When the processor 110 receives the execution instruction, it may execute the computer program, for example, to perform: acquiring the service of the chip resources to be allocated and the global chip resources required to be allocated; acquiring a capability set which can be issued by the global chip resource on each service board card respectively; determining an optimal capability set and an available service board card according to each capability set, wherein the capability set of the available service board card is not less than the optimal capability set, and the optimal capability set is not zero; and applying for the same global chip resources from each available service board card to be allocated to the service.
Of course, the method disclosed in any of the embodiments of the present application can be applied to the processor 110, or implemented by the processor 110.
In summary, according to the chip resource allocation method, the device, the network device and the computer storage medium provided in the embodiments of the present invention, when the network device needs to allocate global chip resources to services, instead of using all service boards included in the network device as a global entity as in the prior art, an available service board having global chip resources in all service boards is used as a local global entity, and global chip resources are applied for services from each service board in the local global entity (i.e., available service boards), so that services can normally run in a local global scope constructed by the available service boards. If the service board card which does not support the global chip resource exists in the network device, after the operation, the normal operation of the service can be ensured on the premise that the service board card which does not support the global chip resource is not replaced, so that the waste of the resource on the replaced service board card is avoided. In addition, the process of replacing the service board card may cause the interruption of the original service, so that when the scheme is adopted, the interruption of the original service can be prevented.
It should be noted that, in the present specification, the embodiments are all described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments may be referred to each other.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method can be implemented in other ways. The apparatus embodiments described above are merely illustrative, and for example, the flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In addition, functional modules in the embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
The functions, if implemented in the form of software functional modules and sold or used as a stand-alone product, may be stored in a computer storage medium. Based on such understanding, the technical solution of the present application or portions thereof that substantially contribute to the prior art may be embodied in the form of a software product stored in a storage medium and including instructions for causing a computer device (which may be a personal computer, a notebook computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The above description is only for the specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present application, and shall be covered by the scope of the present application.

Claims (10)

1. A chip resource allocation method is applied to network equipment comprising a plurality of service boards, and the method comprises the following steps:
acquiring the service of the chip resources to be allocated and the global chip resources required to be allocated;
acquiring a capability set which can be issued by the global chip resource on each service board card respectively;
determining an optimal capability set and an available service board card according to each capability set, wherein the capability set of the available service board card is not less than the optimal capability set, and the optimal capability set is not zero;
and applying for the same global chip resources from each available service board card to be allocated to the service.
2. The method of claim 1, wherein said applying for the same global chip resource allocation to the service from each of the available service cards comprises: and taking the minimum capacity set in the available service board cards as the application upper limit of the global chip resources, and applying the same global chip resources from each available service board card to distribute the global chip resources to the services.
3. The method of claim 2, wherein said applying for the same global chip resource allocation to the service from each of the available service cards comprises:
and for each available service board card, according to the sequence from the upper limit to the lower limit, applying for the global chip resources from the application upper limit of the global chip resources to allocate to the services.
4. The method of claim 1 or 2, wherein determining an optimal capability set from the respective capability sets comprises:
determining an average of each non-zero capability set as the optimal capability set; or
Determining the capability set with the minimum value in each capability set as the optimal capability set; or
Determining a specified value of a user configuration as the optimal capability set.
5. The method according to claim 1 or 2, wherein the obtaining of the capability sets that the global chip resource can issue on each service board respectively comprises:
and acquiring the capability sets of the global chip resources which can be respectively issued on the currently on-site service board cards.
6. An apparatus for allocating chip resources, the apparatus comprising:
the acquisition module is used for acquiring the service of the chip resources to be allocated and the global chip resources required to be allocated;
the obtaining module is further configured to obtain a capability set that the global chip resource can be issued on each service board respectively;
the determining module is used for determining an optimal capability set and available service board cards according to each capability set, wherein the capability set of the available service board cards is not smaller than the optimal capability set, and the optimal capability set is not zero;
and the distribution module is used for applying the same global chip resources from each available service board card to distribute the global chip resources to the services.
7. The apparatus of claim 6, wherein the determining module is configured to apply for the same global chip resource from each of the available service boards to allocate to the service by using a minimum capability set in the available service boards as an application upper limit of the global chip resource.
8. The apparatus according to claim 6 or 7, wherein the determining module is specifically configured to determine an average of the respective non-zero capability sets as the optimal capability set; or determining the capability set with the minimum value in each capability set as the optimal capability set; or a specified value configured by a user is determined as the optimal capability set.
9. A network device, comprising: a memory and a processor, the memory and the processor connected;
the memory is used for storing programs;
the processor calls a program stored in the memory to perform the method of any of claims 1-5.
10. A computer storage medium, having stored thereon a computer program which, when executed by a computer, performs the method of any one of claims 1-5.
CN202011515612.6A 2020-12-18 2020-12-18 Chip resource allocation method, device, network equipment and computer storage medium Active CN112559185B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011515612.6A CN112559185B (en) 2020-12-18 2020-12-18 Chip resource allocation method, device, network equipment and computer storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011515612.6A CN112559185B (en) 2020-12-18 2020-12-18 Chip resource allocation method, device, network equipment and computer storage medium

Publications (2)

Publication Number Publication Date
CN112559185A CN112559185A (en) 2021-03-26
CN112559185B true CN112559185B (en) 2021-12-17

Family

ID=75030632

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011515612.6A Active CN112559185B (en) 2020-12-18 2020-12-18 Chip resource allocation method, device, network equipment and computer storage medium

Country Status (1)

Country Link
CN (1) CN112559185B (en)

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6769097B2 (en) * 2002-06-27 2004-07-27 Lsi Logic Corporation Scale-invariant topology and traffic allocation in multi-node system-on-chip switching fabrics
CN101262506B (en) * 2008-04-21 2012-05-23 杭州华三通信技术有限公司 Allocation method and system for network address conversion port resource under distributed architecture
CN102130786B (en) * 2011-02-21 2014-08-20 华为技术有限公司 Method and device for updating characteristics of single board
CN102724100B (en) * 2011-03-29 2015-10-07 中国科学院声学研究所 A kind of board resource allocation system for composite services and method
CN103077283B (en) * 2013-01-16 2016-05-18 清华大学 The C-to-RTL integrated approach of optimizing based on VFI
CN110908943A (en) * 2019-12-09 2020-03-24 迈普通信技术股份有限公司 Board card automatic adapting method, device, network equipment and storage medium

Also Published As

Publication number Publication date
CN112559185A (en) 2021-03-26

Similar Documents

Publication Publication Date Title
US11586673B2 (en) Data writing and reading method and apparatus, and cloud storage system
JP5510556B2 (en) Method and system for managing virtual machine storage space and physical hosts
WO2019137320A1 (en) Resource scheduling method, apparatus, device and system
CN107959582B (en) Slice instance management method and device
US11693686B2 (en) Enhanced management of storage repository availability in a virtual environment
EP3304294A1 (en) Method and system for allocating resources for virtual hosts
CN111694658A (en) CPU resource allocation method, device, electronic equipment and storage medium
CN110825704A (en) Data reading method, data writing method and server
CN110633130A (en) Virtual memory management method and device based on memory hot plug technology
CN112035244A (en) Deployment of virtual node clusters in a multi-tenant environment
CN112559185B (en) Chip resource allocation method, device, network equipment and computer storage medium
WO2018010603A1 (en) Storage mode upgrade method, apparatus and system based on video cloud storage system
CN114745757B (en) Cluster switching method, device, equipment and medium
CN115665231A (en) Service creation method, device and computer-readable storage medium
CN110839068B (en) Service request processing method and device, electronic equipment and readable storage medium
CN114995762A (en) Thick backup roll capacity expansion method, device, equipment and storage medium
CN113687908A (en) PMEM virtual machine creation method, device, equipment and readable storage medium
US10929166B2 (en) Enhanced data storage of virtual nodes in a data processing environment
EP3648423B1 (en) Resource allocation method and system
CN108092790B (en) Management method and device
CN111142880B (en) Partition allocation method and device in message system and electronic equipment
CN112702728B (en) User profile management method and device, smart card and readable storage medium
CN115794305B (en) Method and device for adjusting memory of virtual machine, storage medium and electronic device
US11221799B2 (en) Techniques for clustering compute nodes in distributed storage
CN116686264A (en) Elastic expansion method and 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
GR01 Patent grant
GR01 Patent grant