[go: up one dir, main page]

CN101594642B - Resource allocation method and resource allocation device used for communication network element device - Google Patents

Resource allocation method and resource allocation device used for communication network element device Download PDF

Info

Publication number
CN101594642B
CN101594642B CN 200910150201 CN200910150201A CN101594642B CN 101594642 B CN101594642 B CN 101594642B CN 200910150201 CN200910150201 CN 200910150201 CN 200910150201 A CN200910150201 A CN 200910150201A CN 101594642 B CN101594642 B CN 101594642B
Authority
CN
China
Prior art keywords
resource
processing unit
quota
allocated
current load
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.)
Expired - Fee Related
Application number
CN 200910150201
Other languages
Chinese (zh)
Other versions
CN101594642A (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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN 200910150201 priority Critical patent/CN101594642B/en
Publication of CN101594642A publication Critical patent/CN101594642A/en
Application granted granted Critical
Publication of CN101594642B publication Critical patent/CN101594642B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

本发明公开了一种用于通信网元设备的资源分配方法和装置,该方法包括:根据通信网元设备的各个处理单元的当前负荷量和待分配资源量,得到各个处理单元的资源配额数;为各个处理单元分配资源配额数的连续资源。本发明实现了在保证处理单元的负荷均衡的同时,最大程度地保证资源连续性,以达到提高转发效率的技术效果。

Figure 200910150201

The invention discloses a resource allocation method and device for communication network element equipment. The method includes: obtaining the resource quota of each processing unit according to the current load of each processing unit and the amount of resources to be allocated in the communication network element equipment ; Contiguous resources of the resource quota number are assigned to each processing unit. The invention achieves the technical effect of improving the forwarding efficiency while ensuring the load balance of the processing unit and at the same time ensuring the resource continuity to the greatest extent.

Figure 200910150201

Description

用于通信网元设备的资源分配方法及装置Resource allocation method and device for communication network element equipment

技术领域 technical field

本发明涉及通信领域,尤其涉及一种用于通信网元设备的资源分配方法及装置。The present invention relates to the communication field, in particular to a resource allocation method and device for communication network element equipment.

背景技术 Background technique

通信网元设备的处理单元通常采用分布式结构。为了实现从用户端到处理单元的数据转发,通常需要将网元设备的连续资源(如地址池)分配到网元的各个处理单元上。The processing units of the communication network element equipment usually adopt a distributed structure. In order to implement data forwarding from the user end to the processing unit, it is usually necessary to allocate continuous resources (such as an address pool) of the network element device to each processing unit of the network element.

目前,在将资源分配到各处理单元时,为保证各处理单元负荷均衡,通常采用的方法是依次将单位分配配额的资源分配到各处理单元,在所有的处理单元分配完毕后,再次依次将单位分配配额的资源分配到各处理单元,直到分配完毕为止。At present, when allocating resources to each processing unit, in order to ensure the load balance of each processing unit, the usual method is to allocate the resources allocated by the unit to each processing unit in turn, and after all the processing units are allocated, the The resources of the unit allocation quota are allocated to each processing unit until the allocation is completed.

相关技术中的用于通信网元设备的资源分配方法对资源的分配不连续,将导致系统转发效率低。The resource allocation method for communication network element equipment in the related art allocates resources discontinuously, which will lead to low system forwarding efficiency.

发明内容 Contents of the invention

本明的目的在于提供一种用于通信网元设备的资源分配方法和装置,能够解决相关技术中对资源分配不连续的技术问题。The purpose of the present invention is to provide a resource allocation method and device for communication network element equipment, which can solve the technical problem of discontinuous resource allocation in the related art.

根据本发明的一个方面,提供了一种用于通信网元设备的资源分配方法,包括:根据通信网元设备的各个处理单元的当前负荷量和待分配资源量,得到各个处理单元的资源配额数;为各个处理单元分配资源配额数的连续资源。According to one aspect of the present invention, a resource allocation method for communication network element equipment is provided, including: obtaining the resource quota of each processing unit according to the current load of each processing unit and the amount of resources to be allocated in the communication network element equipment Number; allocates a continuous resource of the resource quota number for each processing unit.

优选地,根据通信网元设备的各个处理单元的当前负荷量和待分配资源量,得到各个处理单元的资源配额数具体包括:根据待分配资源量和预定的单位配额,计算资源的待分配配额数;根据各个处理单元的当前负荷量和待分配配额数,得到各个处理单元的资源配额数。Preferably, according to the current load of each processing unit of the communication network element device and the amount of resources to be allocated, obtaining the resource quota of each processing unit specifically includes: calculating the resource to be allocated quota according to the amount of resources to be allocated and a predetermined unit quota The resource quota of each processing unit is obtained according to the current load of each processing unit and the quota to be allocated.

优选地,根据各个处理单元的当前负荷量和待分配配额数,得到各个处理单元的资源配额数具体包括:步骤一,将各个处理单元按当前负荷量从小到大排序;步骤二,为当前负荷量最小的处理单元分配1个单位配额的资源配额,并将处理单元的资源配额数加一,同时更新处理单元的当前负荷量,将资源的待分配配额数减一;步骤三,判断待分配配额数是否为0,如果不为0,则重复步骤一、步骤二和步骤三;如果为0,则保存各个处理单元的资源配额数。Preferably, according to the current load of each processing unit and the number of quotas to be allocated, obtaining the resource quota of each processing unit specifically includes: Step 1, sorting each processing unit according to the current load from small to large; Step 2, sorting the current load The processing unit with the smallest amount is allocated a resource quota of 1 unit quota, and the resource quota of the processing unit is increased by one, and the current load of the processing unit is updated at the same time, and the quota to be allocated of the resource is decreased by one; step 3, determine the resource quota to be allocated Whether the quota is 0, if it is not 0, repeat step 1, step 2 and step 3; if it is 0, save the resource quota of each processing unit.

优选地,为各个处理单元分配资源配额数的连续资源具体包括:根据各个处理单元的资源配额数,将资源配额数的资源相应地分配给各个处理单元。Preferably, allocating continuous resources of a resource quota to each processing unit specifically includes: correspondingly allocating resources of a resource quota to each processing unit according to the resource quota of each processing unit.

优选地,资源是地址池。Preferably, the resource is an address pool.

根据本发明的另一方面,还提供了一种用于通信网元设备的资源分配装置,包括:资源配额数计算模块,用于根据通信网元设备的各个处理单元的当前负荷量和待分配资源量,得到各个处理单元的资源配额数;分配模块,用于为各个处理单元分配资源配额数的连续资源。According to another aspect of the present invention, there is also provided a resource allocation device for communication network element equipment, including: a resource quota number calculation module, which is used to calculate the resource quota according to the current load of each processing unit of the communication network element equipment and to be allocated The amount of resources is to obtain the resource quota of each processing unit; the allocation module is used to allocate continuous resources of the resource quota to each processing unit.

优选地,资源配额数计算模块包括:设置单元,用于设置单位配额;待分配配额数计算单元,用于根据待分配资源量和单位配额,计算资源的待分配配额数;资源配额数计算单元,用于根据各个处理单元的当前负荷量和待分配配额数,得到各个处理单元的资源配额数。Preferably, the resource quota calculation module includes: a setting unit for setting unit quotas; a calculation unit for quotas to be allocated; a calculation unit for calculating the quotas to be allocated of resources according to the amount of resources to be allocated and the unit quota; the resource quota calculation unit , used to obtain the resource quota of each processing unit according to the current load of each processing unit and the quota to be allocated.

优选地,资源配额数计算单元包括:排序子单元,用于将各个处理单元按当前负荷量从小到大排序;分配子单元,用于为当前负荷量最小的处理单元分配1个单位配额的资源配额,并用于将处理单元的资源配额数加一,同时更新处理单元的当前负荷量,将资源的待分配配额数减一;判断子单元,用于判断待分配配额数是否为0;存储子单元,用于在判断子单元判断待分配配额数为0时,保存当前各个处理单元的资源配额数。Preferably, the resource quota number calculation unit includes: a sorting subunit for sorting each processing unit according to the current load in ascending order; an allocation subunit for allocating a unit quota of resources to the processing unit with the smallest current load Quota, which is used to increase the resource quota of the processing unit by one, and at the same time update the current load of the processing unit, and reduce the resource quota to be allocated by one; the judging sub-unit is used to judge whether the quota to be allocated is 0; the storage sub-unit A unit configured to store the current resource quotas of each processing unit when the judging subunit judges that the quotas to be allocated are 0.

优选地,资源是地址池。Preferably, the resource is an address pool.

借助于本发明的上述至少一个技术方案,通过根据各处理单元的当前负荷量和待分配资源量,得到各处理单元的资源配额数,然后再为各处理单元分配相应资源配额数的连续资源,从而实现了在保证处理单元的负荷均衡的同时,最大程度地保证资源连续性,从而达到提高转发效率的技术效果。With the help of at least one of the above technical solutions of the present invention, by obtaining the resource quotas of each processing unit according to the current load of each processing unit and the amount of resources to be allocated, and then assigning continuous resources corresponding to the resource quotas to each processing unit, Therefore, while ensuring the load balance of the processing units, resource continuity is guaranteed to the greatest extent, thereby achieving the technical effect of improving forwarding efficiency.

附图说明 Description of drawings

附图用来提供对本发明的进一步理解,并且构成说明书的一部分,与本发明的实施例一起用于解释本发明,并不构成对本发明的限制。在附图中:The accompanying drawings are used to provide a further understanding of the present invention, and constitute a part of the description, and are used together with the embodiments of the present invention to explain the present invention, and do not constitute a limitation to the present invention. In the attached picture:

图1是根据本发明第一实施例的用于通信网元设备的资源分配方法的流程图;FIG. 1 is a flowchart of a resource allocation method for a communication network element device according to a first embodiment of the present invention;

图2是根据本发明第二实施例的用于通信网元设备的资源分配装置的方框图;FIG. 2 is a block diagram of a resource allocation device for communication network element equipment according to a second embodiment of the present invention;

图3是根据本发明第三实施例的用于通信网元设备的地址池分配方法的流程图;3 is a flow chart of an address pool allocation method for communication network element devices according to a third embodiment of the present invention;

图4是根据本发明第三实施例的连续资源按照预分配配额分割示意图。Fig. 4 is a schematic diagram of dividing continuous resources according to a pre-allocated quota according to a third embodiment of the present invention.

具体实施方式 Detailed ways

以下结合附图对本发明的优选实施例进行说明,应当理解,此处所描述的优选实施例仅用于说明和解释本发明,并不用于限定本发明。The preferred embodiments of the present invention will be described below in conjunction with the accompanying drawings. It should be understood that the preferred embodiments described here are only used to illustrate and explain the present invention, and are not intended to limit the present invention.

在以下的描述中,为了解释的目的,描述了多个特定的细节,以提供对本发明的透彻理解。然而,很显然,在没有这些特定细节的情况下,也可以实现本发明,此外,在不冲突的情况下,即在不背离所附权利要求阐明的精神和范围的情况下,下述实施例以及实施例中的各个细节可以进行各种组合。In the following description, for purposes of explanation, numerous specific details are set forth in order to provide a thorough understanding of the present invention. It will be evident, however, that the invention may be practiced without these specific details, and furthermore, without conflicting, that is, without departing from the spirit and scope as set forth in the appended claims, the following embodiments And each detail in the embodiment can be combined in various ways.

第一实施例first embodiment

图1是根据本发明第一实施例的用于通信网元设备的资源分配方法的流程图。如图1所示,根据本发明第一实施例的用于通信网元设备的资源分配方法包括以下步骤:Fig. 1 is a flow chart of a resource allocation method for a communication network element device according to a first embodiment of the present invention. As shown in FIG. 1, the resource allocation method for communication network element equipment according to the first embodiment of the present invention includes the following steps:

步骤S 102,根据通信网元设备的各个处理单元的当前负荷量和待分配资源量,得到各个处理单元的资源配额数;Step S102, according to the current load of each processing unit of the communication network element equipment and the amount of resources to be allocated, obtain the resource quota number of each processing unit;

步骤S104,为各个处理单元分配资源配额数的连续资源。Step S104, allocate continuous resources of the resource quota to each processing unit.

根据本发明第一实施例的用于通信网元设备的资源分配方法通过根据各处理单元的当前负荷量和待分配资源量,得到各处理单元的资源配额数,然后再为各处理单元分配相应资源配额数的连续资源,从而实现了在保证处理单元的负荷均衡的同时,最大程度地保证资源连续性,从而达到提高转发效率的技术效果。The resource allocation method for communication network element equipment according to the first embodiment of the present invention obtains the resource quotas of each processing unit according to the current load of each processing unit and the amount of resources to be allocated, and then allocates a corresponding Continuous resources with the number of resource quotas, so as to ensure the load balance of the processing units, and at the same time ensure the continuity of resources to the greatest extent, thereby achieving the technical effect of improving forwarding efficiency.

优选地,根据通信网元设备的各个处理单元的当前负荷量和待分配资源量,得到各个处理单元的资源配额数具体包括:根据待分配资源量和预定的单位配额,计算资源的待分配配额数;根据各个处理单元的当前负荷量和待分配配额数,得到各个处理单元的资源配额数。为了加快分配速度,需要预定单位配额ΔQ,如果某一段连续资源Rx的可分配配额数为N,则可以表示为N=Rx/ΔQ。Preferably, according to the current load of each processing unit of the communication network element device and the amount of resources to be allocated, obtaining the resource quota of each processing unit specifically includes: calculating the resource to be allocated quota according to the amount of resources to be allocated and a predetermined unit quota The resource quota of each processing unit is obtained according to the current load of each processing unit and the quota to be allocated. In order to speed up the allocation, it is necessary to reserve a unit quota ΔQ. If the number of allocated quotas of a certain continuous resource R x is N, it can be expressed as N=R x /ΔQ.

优选地,根据各个处理单元的当前负荷量和待分配配额数,得到各个处理单元的资源配额数具体包括:步骤一,将各个处理单元按当前负荷量从小到大排序;步骤二,为当前负荷量最小的处理单元分配1个单位配额的资源配额,并将处理单元的资源配额数加一,同时更新处理单元的当前负荷量,将资源的待分配配额数减一;步骤三,判断待分配配额数是否为0,如果不为0,则重复步骤一、步骤二和步骤三;如果为0,则保存各个处理单元的资源配额数。本实施例中,迭代分配次数与可分配配额数N相关,ΔQ越大,则N越小,迭代次数越少,但如果考虑到资源Rx对ΔQ的非完整分割(Rx不能被ΔQ整除)的情况,则N越小时,当其引入的分配误差越大;反之,ΔQ越小,则N越大,迭代次数增多,同时分配误差减小。采用本实施例的方法,各个处理单元之间的分配误差最大不超过2倍ΔQ。考虑到在通信网元设备中,每个处理单元上的资源分配数量都在几万到几十万,引入的分配误差在可以接受的范围内。Preferably, according to the current load of each processing unit and the number of quotas to be allocated, obtaining the resource quota of each processing unit specifically includes: Step 1, sorting each processing unit according to the current load from small to large; Step 2, sorting the current load The processing unit with the smallest amount is allocated a resource quota of 1 unit quota, and the resource quota of the processing unit is increased by one, and the current load of the processing unit is updated at the same time, and the quota to be allocated of the resource is decreased by one; step 3, determine the resource quota to be allocated Whether the quota is 0, if it is not 0, repeat step 1, step 2 and step 3; if it is 0, save the resource quota of each processing unit. In this embodiment, the number of iterative allocations is related to the number of allocated quotas N. The larger ΔQ is , the smaller N is, and the number of iterations is less. ), the smaller N is, the larger the allocation error it introduces; on the contrary, the smaller ΔQ is, the larger N is, the number of iterations increases, and the allocation error decreases. With the method of this embodiment, the maximum distribution error among the various processing units does not exceed 2 times ΔQ. Considering that in the communication network element equipment, the number of resource allocations on each processing unit is tens of thousands to hundreds of thousands, the introduced allocation error is within an acceptable range.

优选地,为各个处理单元分配资源配额数的连续资源具体包括:根据各个处理单元的资源配额数,将资源配额数的资源相应地分配给各个处理单元。当前资源的可分配配额被分配完毕后,会形成一个预分配配额列表Qn,,n=1,2,......,m,然后系统根据各处理单元的预分配配额列表,顺序分配连续的资源子段到对应处理单元,完成对该连续资源的最终分配。Preferably, allocating continuous resources of a resource quota to each processing unit specifically includes: correspondingly allocating resources of a resource quota to each processing unit according to the resource quota of each processing unit. After the allocatable quota of the current resource is allocated, a pre-allocation quota list Q n, , n=1, 2,..., m will be formed, and then the system will, according to the pre-allocation quota list of each processing unit, order Allocating continuous resource sub-segments to corresponding processing units to complete the final allocation of the continuous resources.

优选地,资源是地址池。Preferably, the resource is an address pool.

由于本方法根据各处理单元的当前负荷量对后续资源进行再分配,所以后续分配不会改变已有的分配关系。同时,对于每一个连续资源Rx,各处理单元首先获取相应的配额,配额分配完成后,再根据每个处理单元获得的配置数量,分割连续的资源到每个处理单元,所以对于一个连续资源Rx来说,其在各个处理单元上的分割最多只有一次,从而保证了对资源分割次数最少,达到局部最优化效果。Since the method reallocates the subsequent resources according to the current load of each processing unit, the subsequent allocation will not change the existing allocation relationship. At the same time, for each continuous resource R x , each processing unit first obtains the corresponding quota. After the quota allocation is completed, the continuous resource is divided into each processing unit according to the configuration quantity obtained by each processing unit. Therefore, for a continuous resource For R x , its division on each processing unit is only once at most, thus ensuring the least number of resource divisions and achieving local optimization.

另外,相关技术中的资源分配方法适用于对全局资源进行统一分配,如果删除其中一部分资源,在不改变原有分配关系的情况下,后续新增资源按照取模方式,无法达到资源平均分配的目的,而如果在原有资源分配的基础上,采用根据本发明实施例的技术方案,则仍然能够实现新增资源的平均分配,后续分配对已有资源分布不产生影响。In addition, the resource allocation method in the related art is applicable to the unified allocation of global resources. If some of the resources are deleted, without changing the original allocation relationship, the subsequent new resources will not be able to achieve the average allocation of resources according to the modulo method. However, if the technical solution according to the embodiment of the present invention is adopted on the basis of the original resource allocation, the average allocation of newly added resources can still be realized, and the subsequent allocation will not affect the existing resource distribution.

在网元运行、维护过程中,需要对资源进行删除时,仅需要在各处理单元上删除该资源对应的分配资源,其它资源的分布不受影响,不会导致资源的重新分配,从而保证资源在线调整不影响用户对资源的使用。During the operation and maintenance of network elements, when resources need to be deleted, only the allocated resources corresponding to the resources need to be deleted on each processing unit. Online adjustment does not affect the user's use of resources.

因此,本发明不仅解决了连续资源的负荷分配问题,而且在保持已有分配数据不变的情况下,能够对新增资源实现自动负荷分配。对于通讯网元设备安装和运行维护过程中类似资源的配置、增量扩容和资源删减,具有广泛的应用场景和重要的应用价值,适用范围包括但不限于具有地址资源、虚拟链路资源等连续资源管理功能的网元,如HA、PDSN、PDN GW、GGSN等网元。Therefore, the present invention not only solves the problem of load distribution of continuous resources, but also realizes automatic load distribution of newly added resources under the condition of keeping existing distribution data unchanged. For the configuration, incremental expansion and resource deletion of similar resources in the installation and operation and maintenance of communication network element equipment, it has a wide range of application scenarios and important application value. The scope of application includes but is not limited to continuous resources such as address resources and virtual link resources. Network elements with resource management functions, such as HA, PDSN, PDN GW, GGSN and other network elements.

第二实施例second embodiment

图2是根据本发明第二实施例的用于通信网元设备的资源分配装置的方框图。如图2所示,本发明第二实施例的用于通信网元设备的资源分配装置包括:资源配额数计算模块202,用于根据通信网元设备的各个处理单元的当前负荷量和待分配资源量,得到各个处理单元的资源配额数;分配模块204,用于为各个处理单元分配资源配额数的连续资源。Fig. 2 is a block diagram of a resource allocation device for communication network element equipment according to a second embodiment of the present invention. As shown in FIG. 2, the resource allocation device for communication network element equipment according to the second embodiment of the present invention includes: a resource quota number calculation module 202, which The amount of resources is to obtain the resource quota of each processing unit; the allocation module 204 is configured to allocate continuous resources of the resource quota to each processing unit.

根据本发明第二实施例的用于通信网元设备的资源分配装置通过资源配额数计算模块得到各处理单元的资源配额数,然后利用分配模块为各处理单元分配相应资源配额数的连续资源,从而实现了在保证处理单元的负荷均衡的同时,最大程度地保证资源连续性,从而达到提高转发效率的技术效果。According to the resource allocation device for communication network element equipment according to the second embodiment of the present invention, the resource quota number of each processing unit is obtained through the resource quota number calculation module, and then the allocation module is used to allocate continuous resources corresponding to the resource quota number for each processing unit, Therefore, while ensuring the load balance of the processing units, resource continuity is guaranteed to the greatest extent, thereby achieving the technical effect of improving forwarding efficiency.

优选地,资源配额数计算模块包括:设置单元,用于设置单位配额;待分配配额数计算单元,用于根据待分配资源量和单位配额,计算资源的待分配配额数;资源配额数计算单元,用于根据各个处理单元的当前负荷量和待分配配额数,得到各个处理单元的资源配额数。为了加快分配速度,需要预定单位配额ΔQ,如果某一段连续资源Rx的可分配配额数为N,则可以表示为N=Rx/ΔQ。Preferably, the resource quota calculation module includes: a setting unit for setting unit quotas; a calculation unit for quotas to be allocated; a calculation unit for calculating the quotas to be allocated of resources according to the amount of resources to be allocated and the unit quota; the resource quota calculation unit , used to obtain the resource quota of each processing unit according to the current load of each processing unit and the quota to be allocated. In order to speed up the allocation, it is necessary to reserve a unit quota ΔQ. If the number of allocatable quotas of a certain continuous resource R x is N, it can be expressed as N=R x /ΔQ.

优选地,资源配额数计算单元包括:排序子单元,用于将各个处理单元按当前负荷量从小到大排序;分配子单元,用于为当前负荷量最小的处理单元分配1个单位配额的资源配额,并用于将处理单元的资源配额数加一,同时更新处理单元的当前负荷量,将资源的待分配配额数减一;判断子单元,用于判断待分配配额数是否为0;存储子单元,用于在判断子单元判断待分配配额数为0时,保存当前各个处理单元的资源配额数。本实施例中,迭代分配次数与可分配配额数N相关,ΔQ越大,则N越小,迭代次数越少,但如果考虑到资源Rx对ΔQ的非完整分割(Rx不能被ΔQ整除)的情况,则N越小时,当其引入的分配误差越大;反之,ΔQ越小,则N越大,迭代次数增多,同时分配误差减小。采用本实施例的方法,各个处理单元之间的分配误差最大不超过2倍ΔQ。考虑到在通信网元设备中,每个处理单元上的资源分配数量都在几万到几十万,引入的分配误差在可以接受的范围内。Preferably, the resource quota number calculation unit includes: a sorting subunit for sorting each processing unit according to the current load in ascending order; an allocation subunit for allocating a unit quota of resources to the processing unit with the smallest current load Quota, which is used to increase the resource quota of the processing unit by one, and at the same time update the current load of the processing unit, and reduce the resource quota to be allocated by one; the judging sub-unit is used to judge whether the quota to be allocated is 0; the storage sub-unit A unit configured to store the current resource quotas of each processing unit when the judging subunit judges that the quotas to be allocated are 0. In this embodiment, the number of iterative allocations is related to the number of allocated quotas N. The larger ΔQ is , the smaller N is, and the number of iterations is less. ), the smaller N is, the larger the allocation error it introduces; on the contrary, the smaller ΔQ is, the larger N is, the number of iterations increases, and the allocation error decreases. With the method of this embodiment, the maximum distribution error among the various processing units does not exceed 2 times ΔQ. Considering that in the communication network element equipment, the number of resource allocations on each processing unit is tens of thousands to hundreds of thousands, the allocation error introduced is within an acceptable range.

优选地,资源是地址池。Preferably, the resource is an address pool.

由于根据本实施例的用于通信网元设备的资源分配装置根据各处理单元的当前负荷量对后续资源进行再分配,所以后续分配不会改变已有的分配关系。同时,对于每一个连续资源Rx,各处理单元首先获取相应的配额,配额分配完成后,再根据每个处理单元获得的配置数量,分割连续的资源到每个处理单元,所以对于一个连续资源Rx来说,其在各个处理单元上的分割最多只有一次,从而保证了对资源分割次数最少,达到局部最优化效果。Since the resource allocation apparatus for communication network element equipment according to this embodiment reallocates subsequent resources according to the current load of each processing unit, the subsequent allocation will not change the existing allocation relationship. At the same time, for each continuous resource R x , each processing unit first obtains the corresponding quota. After the quota allocation is completed, the continuous resource is divided into each processing unit according to the configuration quantity obtained by each processing unit. Therefore, for a continuous resource For R x , its division on each processing unit is only once at most, thus ensuring the least number of resource divisions and achieving local optimization.

另外,相关技术中的资源分配装置适用于对全局资源进行统一分配,如果删除其中一部分资源,在不改变原有分配关系的情况下,后续新增资源按照取模方式,无法达到资源平均分配的目的,而如果在原有资源分配的基础上,采用根据本发明实施例的技术方案,则仍然能够实现新增资源的平均分配,后续分配对已有资源分布不产生影响。In addition, the resource allocation device in the related art is suitable for uniform allocation of global resources. If some of the resources are deleted, without changing the original allocation relationship, the subsequent new resources will not be able to achieve the average allocation of resources according to the modulo method. However, if the technical solution according to the embodiment of the present invention is adopted on the basis of the original resource allocation, the average allocation of newly added resources can still be realized, and the subsequent allocation will not affect the existing resource distribution.

在网元运行、维护过程中,需要对资源进行删除时,仅需要在各处理单元上删除该资源对应的分配资源,其它资源的分布不受影响,不会导致资源的重新分配,从而保证资源在线调整不影响用户对资源的使用。During the operation and maintenance of network elements, when resources need to be deleted, only the allocated resources corresponding to the resources need to be deleted on each processing unit. Online adjustment does not affect the user's use of resources.

因此,本发明不仅解决了连续资源的负荷分配问题,而且在保持已有分配数据不变的情况下,能够对新增资源实现自动负荷分配。对于通讯网元设备安装和运行维护过程中类似资源的配置、增量扩容和资源删减,具有广泛的应用场景和重要的应用价值,适用范围包括但不限于具有地址资源、虚拟链路资源等连续资源管理功能的网元,如HA、PDSN、PDN GW、GGSN等网元。Therefore, the present invention not only solves the problem of load distribution of continuous resources, but also realizes automatic load distribution of newly added resources under the condition of keeping existing distribution data unchanged. For the configuration, incremental expansion and resource deletion of similar resources in the installation and operation and maintenance of communication network element equipment, it has a wide range of application scenarios and important application value. The scope of application includes but is not limited to continuous resources such as address resources and virtual link resources. Network elements with resource management functions, such as HA, PDSN, PDN GW, GGSN and other network elements.

第三实施例third embodiment

图3是根据本发明第三实施例的用于通信网元设备的地址池分配方法的流程图。Fig. 3 is a flow chart of a method for allocating an address pool for a communication network element device according to a third embodiment of the present invention.

在移动通信网元设备中,地址池通常由一个或多个连续的地址段组成,这些连续的地址段资源,需要负荷均分到系统的各个业务处理单元。当终端用户激活申请地址资源时,业务负载均衡处理单元,根据各单元的负荷分配策略,将用户终端分配到某一业务处理单元。终端用户的下行报文,由该处理单元通过接口处理板转发出去。终端用户的上行报文,接口处理单元通过用户的地址,查询资源分配分布数据,确定对应的业务处理单元,将报文转发到用户所在的业务处理单元,完成终端用户上行报文的转发。In the mobile communication network element equipment, the address pool usually consists of one or more continuous address segments, and these continuous address segment resources need to be load evenly distributed to each service processing unit of the system. When a terminal user activates to apply for an address resource, the service load balancing processing unit allocates the user terminal to a certain service processing unit according to the load distribution strategy of each unit. The downlink message of the end user is forwarded by the processing unit through the interface processing board. For the uplink message of the terminal user, the interface processing unit queries the resource allocation distribution data through the user's address, determines the corresponding service processing unit, forwards the message to the service processing unit where the user is located, and completes the forwarding of the terminal user's uplink message.

地址池资源的配置,通常由配置管理员在本地网管客户端进行配置,本地网管服务器负责完成所配置资源的负荷分配处理,网管服务器根据系统配置的业务处理单元数量和资源情况,通过图3所时的资源分配流程,生成相应的资源分配分布,并传送给网元的各业务处理单元和接口处理板。The configuration of address pool resources is usually configured by the configuration administrator on the local network management client, and the local network management server is responsible for completing the load distribution processing of the configured resources. According to the resource allocation process at the time, the corresponding resource allocation distribution is generated and sent to each service processing unit and interface processing board of the network element.

假设网元设备配置了5块业务处理单元,各业务处理单元初始负荷均为0,配置管理元为网元配置了4段连续的地址池资源,单位配额为C类子段(256个IP地址)。则如图3所示,根据本发明第三实施例的用于通信网元设备的地址池分配方法包括以下步骤:地址池资源分配过程如下:Assuming that the network element device is configured with 5 service processing units, the initial load of each service processing unit is 0, and the configuration management unit configures 4 consecutive address pool resources for the network element, and the unit quota is C-class sub-segment (256 IP addresses ). Then, as shown in FIG. 3, the address pool allocation method for communication network element equipment according to the third embodiment of the present invention includes the following steps: the address pool resource allocation process is as follows:

步骤S301,获取当前各处理单元的当前负荷量,并初始化各处理单元的对应配额Q;Step S301, obtaining the current load of each processing unit, and initializing the corresponding quota Q of each processing unit;

步骤S302,计算地址段可分配配额数,地址池资源及可分配配额如下表所示:Step S302, calculate the number of quotas that can be allocated for the address segment, and the resources of the address pool and the quotas that can be allocated are shown in the following table:

  地址段 address segment   起始地址 initial address   终止地址 Termination address   地址掩码 address mask   可分配配额数 The number of quotas that can be allocated   1 1   10.32.2.4 10.32.2.4   10.32.112.255 10.32.112.255   255.255.0.0 255.255.0.0   111 111   2 2   10.21.0.3 10.21.0.3   10.21.0.255 10.21.0.255   255.255.248.0 255.255.248.0   1 1   3 3   10.25.0.6 10.25.0.6   10.25.233.355 10.25.233.355   255.255.0.0 255.255.0.0   234 234   4 4   10.44.0.9 10.44.0.9   10.44.55.255 10.44.55.255   255.255.192.0 255.255.192.0   18 18

步骤S303,获取各处理单元负荷信息,并将各处理单元负荷情况进行排序;Step S303, obtaining the load information of each processing unit, and sorting the load status of each processing unit;

步骤S304,分配一份配额到最小负荷处理单元,并更新该处理单元负荷状态和可分配配额数;Step S304, allocating a quota to the minimum load processing unit, and updating the load status of the processing unit and the number of allocable quotas;

步骤S305,判断当前地址段可分配配额是否分配完毕,如果没有分配完毕,则执行步骤S303,如果当前地址段分配完毕,则执行步骤S306;Step S305, judging whether the current address segment can be allocated quota is completed, if not, then execute step S303, if the current address segment is allocated, then execute step S306;

步骤S306,如图4所示,根据各处理单元获取的配额,分割地址字段到对应处理单元;各处理单元分配配额如下表所示:Step S306, as shown in Figure 4, according to the quota obtained by each processing unit, divide the address field into the corresponding processing unit; the allocation quota of each processing unit is shown in the following table:

 地址段 address segment  处理单元1 processing unit 1  处理单元2 processing unit 2   处理单元3 processing unit 3  处理单元4 processing unit 4  处理单元5 processing unit 5  1 1  23 twenty three  22 twenty two   22 twenty two  22 twenty two  22 twenty two  2 2  0 0  1 1   0 0  0 0  0 0  3 3  47 47  46 46   47 47  47 47  47 47  4 4  11 11  12 12   11 11  11 11  11 11

步骤S307:判断所有地址段是否分配完毕,如果没有分配完毕,则执行步骤S301,如果分配完毕,则结束流程。最终分配结果如下表所示:Step S307: Determine whether all address segments have been allocated. If not, execute step S301. If all address segments have been allocated, end the process. The final distribution results are shown in the table below:

       处理单元:1            负荷:20717 Processing Units: 1 Load: 20717        分配地址子段 `` Assign address subsection        SegID=1,10.32. 2. 4- 10.32. 24.255/255.255. 0.0,total=5884SegID=3,10.25. 0. 6- 10.25. 46.255/255.255. 0.0,total=12026SegID=4,10.44. 0. 9- 10.44.10.255/255.255.192.0,total=2807 SegID=1, 10.32.2.4- 10.32.24.255/255.255.0.0, total=5884SegID=3, 10.25.0.6- 10.25.46.255/255.255.0.0, total=12026SegID=4, 10.44.0.9- 10.44.10.255/255.255.192.0, total=2807        处理单元:2            负荷:20733 Processing Units: 2 Load: 20733        分配地址子段 `` Assign address subsection        SegID=1,10.32.25. 0- 10.32. 46.255/255.255. 0.0,total=5632SegID=2,10.21. 0. 3- 10.21. 0.255/255.255.248.0,total=253SegID=3,10.25.47. 0- 10.25.92.255/255.255. 0.0,total=11776SegID=4,10.44.11. 0- 10.44.22.255/255.255.192.0,total=3072 SegID=1, 10.32.25.0- 10.32.46.255/255.255.0.0, total=5632SegID=2, 10.21.0.3- 10.21.0.255/255.255.248.0, total=253 10.25.92.255/255.255.0.0, total=11776 SegID=4, 10.44.11.0- 10.44.22.255/255.255.192.0, total=3072        处理单元:3            负荷:20480 Processing Units: 3 Load: 20480        分配地址子段 `` Assign address subsection        SegID=1,10.32.47. 0- 10.32.68.255/255.255.  0.0,total=5632SegID=3,10.25.93. 0- 10.25.139.255/255.255. 0.0,total=12032SegID=4,10.44.23. 0- 10.44.33.255/255.255.192.0,total=2816 SegID=1, 10.32.47.0- 10.32.68.255/255.255.0.0, total=5632 10.44.33.255/255.255.192.0, total=2816        处理单元:4           负荷:20480 Processing Units: 4 Load: 20480        分配地址子段 `` Assign address subsection        SegID=1,10.32.69. 0- 10.32.90.255/255.255. 0.0,total=5632 SegID=1, 10.32.69.0- 10.32.90.255/255.255.0.0, total=5632

        SegID=3,10.25.140. 0- 10.25.186.255/255.255. 0.0,total=12032SegID=4,10.44.34.  0-10.44.44.255/255.255.192.0,total=2816 SegID=3, 10.25.140.0-10.25.186.255/255.255.0.0, total=12032SegID=4, 10.44.34.0-10.44.44.255/255.255.192.0, total=2816         处理单元:5          负荷:20480 Processing Units: 5 Load: 20480         分配地址子段 `` Assign address subsection         SegID=1,10.32.91.  0- 10.32.112.255/255.255. 0.0,total=5632SegID=3,10.25.187. 0-10.25.233.255/255.255.  0.0,total=12032SegID=4,10.44.45.  0-10.44.55.255/255.255.192.0,total=2816 SegID=1, 10.32.91.0-10.32.112.255/255.255.0.0, total=5632SegID=3, 10.25.187.0-10.25.233.255/255.255.0.0, total=12032SegID=4, 10.44.45.0. 10.44.55.255/255.255.192.0, total=2816

从上表可以看出,由于地址段2地址范围比较小,其可分配配额为1,被分配到处理单元2,其余3个地址段,被分配到5个处理单元,各处理单元负荷基本保持均衡(误差小于2倍单位配额)。It can be seen from the above table that because the address range of address segment 2 is relatively small, its allocable quota is 1, which is allocated to processing unit 2, and the remaining 3 address segments are allocated to 5 processing units, and the load of each processing unit basically remains Balanced (error less than 2 times unit quota).

如上所述,借助于本发明的上述技术方案,通过根据各处理单元的当前负荷量和待分配资源量,得到各处理单元的资源配额数,然后再为各处理单元分配相应资源配额数的连续资源,从而实现了在保证处理单元的负荷均衡的同时,最大程度地保证资源连续性,从而达到提高转发效率的技术效果。As mentioned above, with the help of the above technical solution of the present invention, the resource quotas of each processing unit are obtained according to the current load of each processing unit and the amount of resources to be allocated, and then each processing unit is assigned a continuous sequence of corresponding resource quotas. Resources, so as to realize the load balance of the processing unit and at the same time ensure the continuity of resources to the greatest extent, thereby achieving the technical effect of improving forwarding efficiency.

以上所述仅为本发明的优选实施例而已,并不用于限制本发明,对于本领域的技术人员来说,本发明可以有各种更改和变化。凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。The above descriptions are only preferred embodiments of the present invention, and are not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and changes. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present invention shall be included within the protection scope of the present invention.

Claims (5)

1. a resource allocation methods that is used for communication network element equipment, is characterized in that, comprising:
According to current load and the stock number to be allocated of each processing unit of communication network element equipment, obtain the resource quota number of each described processing unit;
The continuous resource that distributes described resource quota number for described each processing unit;
Current load and stock number to be allocated according to each processing unit of communication network element equipment, the resource quota number that obtains each described processing unit specifically comprises: according to described stock number to be allocated and predetermined flat allocation quota, calculate the quota number to be allocated of described resource; According to current load and the described quota number to be allocated of each described processing unit, obtain the resource quota number of each described processing unit;
According to current load and the described quota number to be allocated of each described processing unit, the resource quota number that obtains each described processing unit specifically comprises:
Step 1 sorts each described processing unit from small to large by current load;
Step 2 is distributed the resource quota of 1 flat allocation quota, and the resource quota number of described processing unit is added one for the described processing unit of current load minimum, upgrade simultaneously the current load of described processing unit, and the quota number to be allocated of described resource is subtracted one;
Step 3 judges whether described quota number to be allocated is 0, if be not 0, and repeating step one, step 2 and step 3; If be 0, preserve the resource quota number of each described processing unit.
2. resource allocation methods according to claim 1, is characterized in that, specifically comprises for described each processing unit distributes the continuous resource of described resource quota number:
According to the resource quota number of each described processing unit, the described resource of described resource quota number is correspondingly distributed to each described processing unit.
3. resource allocation methods according to claim 1 and 2, is characterized in that, described resource is address pool.
4. a resource allocation device that is used for communication network element equipment, is characterized in that, comprising:
The resource quota is counted computing module, is used for current load and stock number to be allocated according to each processing unit of communication network element equipment, obtains the resource quota number of each described processing unit;
Distribution module is used to described each processing unit to distribute the continuous resource of described resource quota number;
Described resource quota is counted computing module and comprised: setting unit is used for the setting unit quota; Quota to be allocated is counted computing unit, is used for according to described stock number to be allocated and described flat allocation quota, calculates the quota number to be allocated of described resource; The resource quota is counted computing unit, is used for current load and described quota number to be allocated according to each described processing unit, obtains the resource quota number of each described processing unit;
The resource quota is counted computing unit and is comprised:
The sequence subelement is used for each described processing unit is sorted from small to large by current load;
Distribute subelement, be used to the resource quota of 1 flat allocation quota of described processing unit distribution of current load minimum, and be used for the resource quota number of described processing unit is added one, upgrade simultaneously the current load of described processing unit, the quota number to be allocated of described resource is subtracted one;
Judgment sub-unit is used for judging whether described quota number to be allocated is 0;
Storing sub-units, being used at the described quota number to be allocated of described judgment sub-unit judgement is 0 o'clock, preserves the resource quota number of current each described processing unit.
5. resource allocation device according to claim 4, is characterized in that, described resource is address pool.
CN 200910150201 2009-06-18 2009-06-18 Resource allocation method and resource allocation device used for communication network element device Expired - Fee Related CN101594642B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 200910150201 CN101594642B (en) 2009-06-18 2009-06-18 Resource allocation method and resource allocation device used for communication network element device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 200910150201 CN101594642B (en) 2009-06-18 2009-06-18 Resource allocation method and resource allocation device used for communication network element device

Publications (2)

Publication Number Publication Date
CN101594642A CN101594642A (en) 2009-12-02
CN101594642B true CN101594642B (en) 2013-05-08

Family

ID=41409015

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 200910150201 Expired - Fee Related CN101594642B (en) 2009-06-18 2009-06-18 Resource allocation method and resource allocation device used for communication network element device

Country Status (1)

Country Link
CN (1) CN101594642B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2011110021A1 (en) * 2010-09-29 2011-09-15 华为技术有限公司 Policy control method, system and policy controller
CN103329494B (en) * 2010-12-01 2017-05-24 骁阳网络有限公司 Method and device for service provisioning in communication network
WO2012162965A1 (en) * 2011-08-26 2012-12-06 华为技术有限公司 Method, system and network element for pushing application information
CN102932281B (en) * 2012-10-31 2015-08-26 华为技术有限公司 A kind of dynamic allocation method of resource and equipment
CN108287746B (en) * 2017-01-09 2021-04-16 大唐移动通信设备有限公司 Method and device for expanding or contracting virtual resources of EPC network element
CN106888170B (en) * 2017-02-21 2019-11-01 中国联合网络通信集团有限公司 Message forwarding method and system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1509009A (en) * 2002-12-19 2004-06-30 华为技术有限公司 A method for allocating business resources
EP1919245A2 (en) * 2006-11-01 2008-05-07 Samsung Electronics Co., Ltd Apparatus and method for renewal-based resource allocation in a broadband wireless access communication system
CN101447939A (en) * 2008-12-16 2009-06-03 中国移动通信集团北京有限公司 Service distribution method and load balancer

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1509009A (en) * 2002-12-19 2004-06-30 华为技术有限公司 A method for allocating business resources
EP1919245A2 (en) * 2006-11-01 2008-05-07 Samsung Electronics Co., Ltd Apparatus and method for renewal-based resource allocation in a broadband wireless access communication system
CN101447939A (en) * 2008-12-16 2009-06-03 中国移动通信集团北京有限公司 Service distribution method and load balancer

Also Published As

Publication number Publication date
CN101594642A (en) 2009-12-02

Similar Documents

Publication Publication Date Title
CN109660376B (en) Virtual network mapping method, equipment and storage medium
CN101594642B (en) Resource allocation method and resource allocation device used for communication network element device
CN104601680B (en) A kind of method for managing resource and device
CN106936739B (en) Message forwarding method and device
CN104104551B (en) Cloud resource need assessment method and device
CN103078965A (en) IP (Internet Protocol) address management method of virtual machines
WO2017096842A1 (en) Content delivery task submission method and system
CN103841126B (en) The concocting method and device of a kind of shared resource
CN103414657A (en) Cross-data-center resource scheduling method, super scheduling center and system
CN110445884A (en) A kind of container IP address management method and device
CN109471725A (en) Resource allocation methods, device and server
CN104506669B (en) The IP address distribution system and method for a kind of Based on Distributed network simulation platform
CN103619068A (en) Method for distributing access bandwidth and network equipment
CN110290228B (en) Internet protocol IP address allocation method and device
CN105530202A (en) Bandwidth allocation method and server
CN102932271A (en) Method and device for realizing load balancing
CN107547658A (en) A method for automatically allocating and connecting cloud disks on a centralized cloud storage platform
CN110048882A (en) A kind of method and apparatus of the resource allocation based on edge calculations
CN107770296B (en) Method and device for allocating addresses
CN116777127A (en) Resource allocation method, electronic equipment and storage medium
CN103260196A (en) Method, device and system of controlling of transmission bandwidth
CN105227616A (en) A kind of method of remote sensing satellite Ground Processing System task dynamic creation and distribution
CN108200185B (en) Method and device for realizing load balance
CN105187483B (en) Distribute the method and device of cloud computing resources
CN105357599B (en) A kind of method and device of resource allocation

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20130508