CN107454200A - Address resource allocation method, device and master control borad under a kind of distributed structure/architecture - Google Patents
Address resource allocation method, device and master control borad under a kind of distributed structure/architecture Download PDFInfo
- Publication number
- CN107454200A CN107454200A CN201610387638.4A CN201610387638A CN107454200A CN 107454200 A CN107454200 A CN 107454200A CN 201610387638 A CN201610387638 A CN 201610387638A CN 107454200 A CN107454200 A CN 107454200A
- Authority
- CN
- China
- Prior art keywords
- capacities
- business
- nat session
- address resource
- business board
- 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.)
- Granted
Links
- 238000013468 resource allocation Methods 0.000 title claims abstract description 30
- 238000000034 method Methods 0.000 title claims abstract description 27
- 238000013519 translation Methods 0.000 claims abstract description 12
- 238000001514 detection method Methods 0.000 claims description 12
- 238000007726 management method Methods 0.000 description 12
- 238000006243 chemical reaction Methods 0.000 description 10
- 230000007812 deficiency Effects 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 3
- 238000010586 diagram Methods 0.000 description 2
- 238000004891 communication Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L61/00—Network arrangements, protocols or services for addressing or naming
- H04L61/50—Address allocation
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L61/00—Network arrangements, protocols or services for addressing or naming
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L61/00—Network arrangements, protocols or services for addressing or naming
- H04L61/09—Mapping addresses
- H04L61/25—Mapping addresses of the same type
- H04L61/2503—Translation of Internet protocol [IP] addresses
- H04L61/256—NAT traversal
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/14—Session management
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The invention discloses address resource allocation method, device and master control borad under a kind of distributed structure/architecture, this method includes the network address translation NAT session capacities that master control borad collects one or more business plate reports;Address resource to be allocated is distributed to the one or more business boards for reporting NAT session capacities according to the NAT session capacities of collection by master control borad.By scheme of the embodiment of the present invention, the phenomenon that address resource distribution can be avoided uneven occurs, and improves the efficiency of address resource distribution and the reasonable utilization rate of resource.
Description
Technical field
The present invention relates to address resource distribution side under network communication field, more particularly to a kind of distributed structure/architecture
Method, device and master control borad.
Background technology
At present, with the fast development of Network, to the demand of Internet protocol fourth edition ipv4 addresses
It is increasing.NAT (network address translation, Network Address Translation) business is to solve at present
A kind of basic service that certainly ipv4 addresses lack.
Distributed system can provide higher NAT conversion performances, so as to meet higher and higher performance need
Ask.The concentration address resource management of integrated system is different from, distributed system NAT conversions have to solve
Matter of utmost importance certainly is exactly the distribution of public network address Pooled resources.It is existing to realize that technology uses business board to master control more
Plate dynamic application public network address resource, when subsequently Pooled resources exhaust soon in business board address, again to master control
Application.Business board resource space idle, master control is returned to by address resource.It is this master control and business board it
Between dynamic application, give back operation, itself can take business board cpu resource, to NAT conversion performances
It can cause necessarily to influence.The business board of first to file resource can seize more address resource outward, cause other
Business board can not apply to enough resources in time, NAT conversions occur due to lacking resource and convert failed.
The content of the invention
In order to solve the above-mentioned technical problem, the invention provides address resource under a kind of distributed structure/architecture to distribute
Method, apparatus and master control borad, the phenomenon that address resource distribution can be avoided uneven occur, and improve address money
The efficiency of source distribution and the reasonable utilization rate of resource.
In order to reach the object of the invention, the invention provides address resource distribution side under a kind of distributed structure/architecture
Method, this method include:
Master control borad collects the network address translation NAT session capacities of one or more business plate reports.
Address resource to be allocated is distributed to and reports NAT by master control borad according to the NAT session capacities of collection
One or more business boards of session capacity.
Alternatively, address resource to be allocated is distributed to by master control borad according to the NAT session capacities of collection
Reporting one or more business boards of NAT session capacities includes:
The NAT session capacities for each business board that master control borad arrives according to current collection calculate each business board
Ratio between NAT session capacities.
Master control borad will be treated point according to the ratio between the NAT session capacities of each business board calculated
The address resource matched somebody with somebody is distributed to the one or more business boards for reporting NAT session capacities.
Alternatively, this method also includes:
When having detected that new business plate reports NAT session capacities, the NAT of whole business boards is collected again
Session capacity.
The NAT meetings of each business board are recalculated according to the NAT session capacities for the business board collected again
Talk about the ratio between capacity.
According to the ratio between the NAT session capacities of each business board recalculated, by whole addresses
Resource dissemination gives the one or more business boards for reporting NAT session capacities.
Alternatively, will according to the ratio between the NAT session capacities of each business board recalculated
Whole address resource disseminations are reported one or more business boards of NAT session capacities to include:
Business board for having distributed address resource, by beyond the address of the NAT session capacities of the business board
Resource transfers are on the new business plate for reporting NAT session capacities.
Alternatively, this method also includes:
When detecting that the first business board for having distributed address resource is pulled out, calculating has distributed address resource
Whole business boards in other business boards in addition to the first business board NAT session capacities between ratio
Rate.
According to the ratio between the NAT session capacities of the other business boards calculated, described will be distributed to
The address resource of one business board is distributed to other business boards.
In order to reach the object of the invention, present invention also offers address resource under a kind of distributed structure/architecture to distribute
Device, the device include:Collection module and distribution module.
Collection module, the network address translation NAT sessions for collecting one or more business plate reports are held
Amount.
Distribution module, address resource to be allocated is distributed to for the NAT session capacities according to collection
Report one or more business boards of NAT session capacities.
Alternatively, distribution module includes computing unit and Dispatching Unit.
Computing unit, the NAT session capacities of each business board for being arrived according to current collection calculate each
Ratio between the NAT session capacities of business board.
Dispatching Unit, for according to the ratio between the NAT session capacities of each business board calculated,
Address resource to be allocated is distributed to the one or more business boards for reporting NAT session capacities.
Alternatively, the device also includes detection module.
Collection module, it is additionally operable to when detection module has detected that new business plate reports NAT session capacities,
Again the NAT session capacities of whole business boards are collected.
Computing unit, it is additionally operable to be recalculated according to the NAT session capacities of business board collected again each
Ratio between the NAT session capacities of business board.
Dispatching Unit, it is additionally operable between the NAT session capacities according to each business board recalculated
Ratio, whole address resource disseminations are given to the one or more business boards for reporting NAT session capacities.
Alternatively, between NAT session capacities of the Dispatching Unit according to each business board recalculated
Ratio, one or more business boards of NAT session capacities are reported to include whole address resource disseminations:
Business board for having distributed address resource, by beyond the address of the NAT session capacities of the business board
Resource transfers are on the new business plate for reporting NAT session capacities.
Alternatively,
Computing unit, it is additionally operable to when detection module detects that the first business board for having distributed address resource is pulled out
Except when, calculate the other business boards distributed in whole business boards of address resource in addition to the first business board
NAT session capacities between ratio.
Dispatching Unit, the ratio being additionally operable between the NAT session capacities according to the other business boards calculated,
The address resource for distributing to the first business board is distributed to other business boards.
A kind of master control borad, the master control borad include:Address resource distributor under described distributed structure/architecture.
Compared with prior art, the present invention includes the network that master control borad collects one or more business plate reports
Address conversion NAT session capacities;Master control borad is according to the NAT session capacities of collection by address to be allocated
Resource dissemination gives the one or more business boards for reporting NAT session capacities.Can be according to each by this programme
Business board NAT session capacity sizes, disposably distribute to address resource all business boards by ratio.Protect
The harmony of resource allocation has been demonstrate,proved, there is address resource deficiency in the business board for avoiding NAT session capacities more,
And the situation of the less business board distribution address resource excess of NAT session capacities, improve address resource point
The efficiency and the reasonable utilization rate of resource matched somebody with somebody.
Other features and advantages of the present invention will be illustrated in the following description, also, partly from froming the perspective of
Become apparent in bright book, or understood by implementing the present invention.The purpose of the present invention is excellent with other
Point can be realized and obtained by specifically noted structure in specification, claims and accompanying drawing.
Brief description of the drawings
Accompanying drawing is used for providing further understanding technical solution of the present invention, and one of constitution instruction
Point, it is used to explain technical scheme together with embodiments herein, does not form to the present invention
The limitation of technical scheme.
Fig. 1 is address resource allocation method flow chart under distributed structure/architecture of the embodiment of the present invention;
Fig. 2 is address resource distribution system configuration diagram under distributed structure/architecture of the embodiment of the present invention;
Fig. 3 is address resource allocation proportion schematic diagram under first embodiment of the invention distributed structure/architecture;
Fig. 4 is address resource distributor composition frame chart under distributed structure/architecture of the embodiment of the present invention;
Fig. 5 is master control borad composition frame chart of the embodiment of the present invention.
Embodiment
For the object, technical solutions and advantages of the present invention are more clearly understood, below in conjunction with accompanying drawing
Embodiments of the invention are described in detail.It should be noted that in the case where not conflicting, this Shen
Please in embodiment and embodiment in feature can mutually be combined.
Can be in the computer of such as one group computer executable instructions the flow of accompanying drawing illustrates the step of
Performed in system.Also, although logical order is shown in flow charts, in some cases,
Can be with the step shown or described by being performed different from order herein.
In order to reach the object of the invention, the invention provides address resource distribution side under a kind of distributed structure/architecture
Method, as shown in figure 1, the method comprising the steps of S101-S102:
S101, master control borad collect the network address translation NAT session capacities of one or more business plate reports.
In traditional address resource allocative decision, business board applies for public network address resource to master control borad dynamic,
When subsequently in business board address, Pooled resources exhaust soon, again to master control application;Business board resource space idle,
Address resource is returned into master control, in order to avoid business board existing for traditional address Resource Allocation Formula
Cpu resource consumption is excessive, influences NAT conversion performances and efficiency, and the business board meeting of first to file resource
More address resource is seized, causes other business boards can not apply in time to many drawbacks such as enough resources,
In embodiments of the present invention, master control board management is completely used for the address resource of network address translation NAT conversions,
The address resource is distributed unitedly by master control borad and distributes address resource to each business board, each business board
How much determined according to business board NAT session capacities, therefore, in embodiments of the present invention, when business board needs
When wanting address resource, respective NAT session capacities actively can be reported to master control borad, master control borad is in each industry
The NAT session capacities of instant collecting and reporting when business plate reports NAT session capacities, or according to default week
The NAT session capacities of phase timed collection one or more business plate report.
Address resource to be allocated is distributed to and reported by S102, master control borad according to the NAT session capacities of collection
One or more business boards of NAT session capacities.
In embodiments of the present invention, master control borad is according to each business board NAT session capacities of collection, by each
By all address resources, disposably distribution issues the ratio of business board NAT session capacities, i.e. NAT sessions
The big business board of capacity distributes more address resource, and the small business board distribution of NAT session capacities is less
Address resource.Specific embodiment is as described below.
Alternatively, address resource to be allocated is distributed to by master control borad according to the NAT session capacities of collection
Reporting one or more business boards of NAT session capacities includes step S1011-S1012:
The NAT session capacities for each business board that S1011, master control borad arrive according to current collection calculate each
Ratio between the NAT session capacities of business board.
In embodiments of the present invention, master control borad is in each business board for reporting NAT session capacities being collected into
After the NAT session capacities reported, the ratio between the NAT session capacities of each business board is calculated first
Rate, learn which business board needs to distribute more address resource by the ratio, which business board needs
Less address resource is distributed, foundation is distributed with the geological resource obtained for each business board.
Alternatively, in another embodiment, the NAT session capacities that can also calculate each business board exist
Accounting in collected all NAT session capacities reported, it should be assigned to obtain the business board
Address resource accounts for the accounting of whole address resources, further to be provided according to the accounting to the business board
Source is distributed.
S1012, master control borad, will according to the ratio between the NAT session capacities of each business board calculated
Address resource to be allocated is distributed to the one or more business boards for reporting NAT session capacities.
In embodiments of the present invention, the NAT session capacities of each business board are calculated by step S1011
Between ratio after, master control borad can be to be divided into more parts by whole address resources of management according to the ratio
Address resource, and more parts of address resources are distributed into corresponding business board according to above-mentioned division ratio, so that
Obtain the more business board of NAT session capacities and be assigned to more address resource, NAT session capacities are less
Business board is assigned to more address resource, has reached the equilibrium assignment of address resource, improves address money
Source allocative efficiency.
Scheme of the embodiment of the present invention is explained below by first embodiment:
In embodiments of the present invention, it is first simple to introduce before introducing the present invention program by specific embodiment
The implementation framework of scheme of the embodiment of the present invention, as shown in Fig. 2 including four realities in the embodiment framework
Apply part:
A, master control borad address resource management, all address moneys for NAT conversions in system are responsible for
Source.
B, NAT session capacities receive on master control borad, are responsible for receiving the NAT sessions of each business plate report
Capacity data, the foundation as address resource distribution.
C, address resource allocation on master control borad, it is responsible for the unified distribution of address resource in system.
D, business Slab element, it is responsible for reporting service plate NAT session capacities to master control, and receives master control borad
The address resource of distribution.
Based on above-mentioned implementation framework, first embodiment of the invention is provided, it is assumed that above-mentioned distributed structure/architecture
There are 2 pieces of business boards in system, the NAT session capacities that business A is reported are m, and business board B is reported
NAT session capacities are 2m, and whole address resources of the control in master control are altogether 12 parts, on master control borad
The NAT session capacities that resource allocation section branch reports according to business board A and business board B, according to m:
2m, i.e., 1:2 ratio distributes business board A and business board B 12 parts of address resources, that is, distributes to
Business board A address resource is 4 parts, and the address resource for distributing to business board B is 8 parts, allocation result
As shown in Figure 3.
In embodiments of the present invention, due to scheme according to embodiments of the present invention by master control board management fully
Location resource allocation is given after the business board for having reported NAT session capacities, if new business board adds simultaneously
NAT session capacities are reported to master control borad, or did not reported the business board of NAT session capacities to start originally
NAT session capacities are reported, these phenomenons are required for us to the address resource distributed away
Readjust, to avoid new business board from distributing the phenomenon generation less than address resource, implement in the present invention
In example scheme, readjusting for address resource is realized by following scheme.
Alternatively, this method also includes step S201-S203:
S201, when having detected that new business plate reports NAT session capacities, collect whole business boards again
NAT session capacities.
In embodiments of the present invention, when having detected that new business plate reports NAT session capacities, master control borad
The current session capacity of each business board can be actively collected again, or each business board of order reports again
Current NAT session capacities, to be held to master control borad according to the current NAT sessions of each business board
Measure reasonable distribution whole address resource.
The NAT session capacities for the business board that S202, basis are collected again recalculate each business board
Ratio between NAT session capacities.
In embodiments of the present invention, master control borad is collected into each business board for reporting NAT session capacities again
After the NAT session capacities reported, scheme step S1011 described above, need also exist for recalculating respectively
Ratio between the NAT session capacities of individual business board, learn which business board needs to distribute by the ratio
More address resource, which business board are needed to distribute less address resource, and each industry is directed to obtain
The geological resource distribution foundation of business plate.
Alternatively, in another embodiment, the NAT session capacities of each business board can equally be calculated
Accounting in collected all NAT session capacities reported, should be assigned to obtaining the business board
Address resource account for the accountings of whole address resources, further to be carried out according to the accounting to the business board
Resource allocation.
Ratio between the NAT session capacities for each business board that S203, basis recalculate, will be complete
Portion's address resource is distributed to the one or more business boards for reporting NAT session capacities.
In embodiments of the present invention, the NAT sessions of each business board are recalculated by step S202
After ratio between capacity, master control borad can be so that whole address resources of management to be divided into according to the ratio
More parts of address resources, and more parts of address resources are distributed into corresponding business board according to above-mentioned division ratio,
Be assigned to more address resource with the business board for causing NAT session capacities more, NAT session capacities compared with
Few business board is assigned to more address resource, has reached the equilibrium assignment of address resource, has improved ground
Location allocation efficiency of resource.
In embodiments of the present invention, because the address resource for being already allocated to business board may used
In, to cause the address resource when new business plate adds to redistribute scheme to the industry that is being currently used
The address resource being engaged on plate does not have an impact, or reduces the address to being used on current business plate
The influence of resource.Step S203 specific address resource distribution method can use following examples scheme.
Alternatively, will according to the ratio between the NAT session capacities of each business board recalculated
Whole address resource disseminations are reported one or more business boards of NAT session capacities to include:
Business board for having distributed address resource, by beyond the address of the NAT session capacities of the business board
Resource transfers are on the new business plate for reporting NAT session capacities.
In embodiments of the present invention, when there is the addition of new business plate, if the NAT handled on original business board
The reduction of session capacity, the address resource that can to distribute on original business board exceed its current NAT session
Address resource needed for capacity, if by beyond this partial address resource allocation on new business plate, remain
Remaining part point still remains allocated to original business board, address resource when just can solve to be added by new business plate point
With problem, and this partial address resource that the program only to exceed is changed, with entirety
Upper redistributing for whole address resources is compared, and reduces the influence of the address resource to being being currently used.
Scheme of the embodiment of the present invention is explained below by second embodiment:
In embodiments of the present invention, still illustrated by taking the address resource allocative decision shown in Fig. 3 as an example,
Assuming that in distributed structure/architecture system as described in Figure 2, original 2 pieces of business boards, i.e. business board A and business
The NAT session capacities that plate B, business A are reported are m, and the NAT session capacities that business board B is reported are
2m, whole address resources of the control in master control are 12 parts altogether.If now insert NAT sessions to hold
The new business plate C for m is measured, then 3 pieces of business board NAT session capacities ratios of A, B, C are m:2m:M,
I.e. 1:2:1, address resource should be distributed and distinguish 3 parts, 6 parts, 3 parts.However, it is being not inserted into new business plate C
Before, the address resource for distributing to business board A is 4 parts, and the address resource for distributing to business board B is 8
Part, then now only need by 2 parts of resource allocations in the 1 part of resource and business board B on business board A to
Business board C.Remaining 3 parts of resources do not have to change on business board A, and 6 on same business board B
Part resource does not have to change.
In embodiments of the present invention, in scheme according to embodiments of the present invention by whole addresses of master control board management
Resource allocation is given after the business board for having reported NAT session capacities, can also be existed and distributed address resource
Phenomenon that business board is pulled out occurs, this phenomenon, needs also exist for us to the address distributed away
Resource is readjusted, and redundancy occurs to avoid address resource, and address resource on the business board of work at present
The phenomenon of deficiency occurs, and in scheme of the embodiment of the present invention, the weight of address resource is realized by following scheme
New adjustment.
Alternatively, this method also includes step S301-S302:
S301, when detecting that the first business board for having distributed address resource is pulled out, calculate distributively
Between the NAT session capacities of other business boards in whole business boards of location resource in addition to the first business board
Ratio.
In embodiments of the present invention, when detecting that the first business board for having distributed address resource is pulled out,
Master control borad equally can actively collect the current session capacity of remaining each business board again, or order remains
Under each business board report current NAT session capacities again, so as to master control borad according to remaining every
The current NAT session capacity reasonable distribution whole address resources of individual business board.Here, first business
Plate can go up any one or more business boards in the current each business board for having distributed address resource.
Master control borad is collected into what remaining each business board for reporting NAT session capacities was reported again
After NAT session capacities, scheme step S1011 and S202 described above, need also exist for recalculating each
Ratio between the NAT session capacities of business board, by the ratio learn which business board need to distribute compared with
More address resources, which business board are needed to distribute less address resource, and each business is directed to obtain
The geological resource distribution foundation of plate.Alternatively, in another embodiment, can equally calculate remaining
Accounting of the NAT session capacities of each business board in collected all NAT session capacities reported,
The address resource that should be assigned to obtaining the business board accounts for the accounting of whole address resources, so as to further
Resource allocation is carried out to the business board according to the accounting.
Ratio between the NAT session capacities for other business boards that S302, basis calculate, will be distributed to
The address resource of first business board is distributed to other business boards.
In embodiments of the present invention, in embodiments of the present invention, recalculated by step S301 remaining
Each business board NAT session capacities between ratio after, master control borad can with will be pulled out first
The address resource of business board is divided into more parts of address resources according to the ratio, and will according to above-mentioned division ratio
More parts of address resources distribute to remaining corresponding business board, to cause the more business of NAT session capacities
Plate is assigned to more address resource, and the less business board of NAT session capacities is assigned to more address money
Source, reach the equilibrium assignment of address resource, improve address resource allocative efficiency.Also, the program
The resource of business board only to being pulled out is redistributed, and further reduces the adjustment pair of address resource
The influence for the address resource being being currently used.
In order to reach the object of the invention, present invention also offers address resource under a kind of distributed structure/architecture to distribute
Device 10, as shown in figure 4, the device includes:Collection module 11 and distribution module 12.The device can
With applied in master control borad.
Collection module 11, for collecting the network address translation NAT sessions of one or more business plate reports
Capacity.
In traditional address resource allocative decision, business board applies for public network address resource to master control borad dynamic,
When subsequently in business board address, Pooled resources exhaust soon, again to master control application;Business board resource space idle,
Address resource is returned into master control, in order to avoid business board existing for traditional address Resource Allocation Formula
Cpu resource consumption is excessive, influences NAT conversion performances and efficiency, and the business board meeting of first to file resource
More address resource is seized, causes other business boards can not apply in time to many drawbacks such as enough resources,
In embodiments of the present invention, master control board management is completely used for the address resource of network address translation NAT conversions,
The address resource is distributed unitedly by master control borad and distributes address resource to each business board, each business board
How much determined according to business board NAT session capacities, therefore, in embodiments of the present invention, when business board needs
When wanting address resource, respective NAT session capacities actively can be reported to master control borad, collection module 11 exists
The NAT session capacities of instant collecting and reporting during each business plate report NAT session capacities, or according to
The NAT session capacities of predetermined period timed collection one or more business plate report.
Distribution module 12, address resource to be allocated is distributed to for the NAT session capacities according to collection
Report one or more business boards of NAT session capacities.
In embodiments of the present invention, distribution module 12 is according to each business board NAT session capacities of collection,
By the ratio of each business board NAT session capacities, by all address resources, disposably distribution issues, i.e. NAT
The big business board of session capacity distributes more address resource, the small business board distribution of NAT session capacities compared with
Few address resource.Specific embodiment is as described below.
Alternatively, distribution module 12 includes computing unit 121 and Dispatching Unit 122.Distribution module 12
According to the NAT session capacities of collection, address resource to be allocated is distributed to and reports NAT session capacities
One or more business boards include:
The NAT session capacities for each business board that computing unit 121 arrives according to current collection calculate each industry
Ratio between the NAT session capacities of business plate.
In embodiments of the present invention, collection module 11 each reports NAT session capacities what is be collected into
After the NAT session capacities that business board is reported, computing unit 121 calculates the NAT of each business board first
Ratio between session capacity, learn which business board needs to distribute more address resource by the ratio,
Which business board needs to distribute less address resource, to obtain the geological resource point for each business board
With foundation.Alternatively, in another embodiment, the NAT sessions that can also calculate each business board are held
The accounting in collected all NAT session capacities reported is measured, should be distributed with obtaining the business board
To address resource account for the accountings of whole address resources, further to be entered according to the accounting to the business board
Row resource allocation.
Dispatching Unit 122, will according to the ratio between the NAT session capacities of each business board calculated
Address resource to be allocated is distributed to the one or more business boards for reporting NAT session capacities.
In embodiments of the present invention, the NAT sessions for each business board being calculated by computing unit 121 are held
After ratio between amount, Dispatching Unit 122 can with by whole address resources of management according to the ratio draw
It is divided into more parts of address resources, and more parts of address resources is distributed into corresponding business according to above-mentioned division ratio
Plate, more address resource is assigned to the business board for causing NAT session capacities more, and NAT sessions are held
Measure less business board and be assigned to more address resource, reached the equilibrium assignment of address resource, improve
Address resource allocative efficiency.
In embodiments of the present invention, because scheme Dispatching Unit 122 according to embodiments of the present invention is by master control borad
Whole address resource allocations of management are given after the business board for having reported NAT session capacities, if new
Business board adds and reports NAT session capacities to master control borad, or does not report NAT session capacities originally
Business board start to report NAT session capacities, these phenomenons are required for us to having distributed
The address resource gone is readjusted, to avoid new business board from distributing the phenomenon generation less than address resource,
In scheme of the embodiment of the present invention, readjusting for address resource is realized by following scheme.
Alternatively, the device also includes detection module 13.The detection module 13 is used for the change for detecting business board
More situation, include the increase and reduction of business board.
Collection module 11, it is additionally operable to when detection module 13 has detected that new business plate reports NAT sessions to hold
During amount, the NAT session capacities of whole business boards are collected again.
In embodiments of the present invention, when detection module 13 has detected that new business plate reports NAT sessions to hold
During amount, collection module 11 can actively collect the current session capacity of each business board again, or order is respectively
Individual business board reports current NAT session capacities again, so as to distribution module 12 according to each business
The current NAT session capacity reasonable distribution whole address resources of plate.
Computing unit 121, it is additionally operable to be recalculated according to the NAT session capacities for the business board collected again
Ratio between the NAT session capacities of each business board.
In embodiments of the present invention, master control borad is collected into each business board for reporting NAT session capacities again
After the NAT session capacities reported, computing unit 121 needs also exist for recalculating each business board
Ratio between NAT session capacities, learn which business board needs to distribute more address by the ratio
Resource, which business board need to distribute less address resource, to obtain the geology for each business board
Resource allocation foundation.Alternatively, in another embodiment, the NAT of each business board can equally be calculated
Accounting of the session capacity in collected all NAT session capacities reported, should to obtain the business board
The address resource being assigned to accounts for the accounting of whole address resources, so as to further according to the accounting to the industry
Business plate carries out resource allocation.
Dispatching Unit 122, be additionally operable to according to the NAT session capacities of each business board recalculated it
Between ratio, whole address resource disseminations are given and report one or more business boards of NAT session capacities.
In embodiments of the present invention, the NAT meetings of each business board are recalculated by computing unit 121
Talk about capacity between ratio after, Dispatching Unit 122 can with by whole address resources of management according to the ratio
Rate is divided into more parts of address resources, and distributes to more parts of address resources accordingly according to above-mentioned division ratio
Business board, more address resource, NAT are assigned to the business board for causing NAT session capacities more
The less business board of session capacity is assigned to more address resource, has reached the equilibrium assignment of address resource,
Improve address resource allocative efficiency.
In embodiments of the present invention, because the address resource for being already allocated to business board may used
In, to cause the address resource when new business plate adds to redistribute scheme to the industry that is being currently used
The address resource being engaged on plate does not have an impact, or reduces the address to being used on current business plate
The influence of resource.The specific address resource distribution method of the Dispatching Unit 122 can use following examples
Scheme.
Alternatively, Dispatching Unit 122 according to the NAT session capacities of each business board recalculated it
Between ratio, whole address resource disseminations are given and report one or more business board bags of NAT session capacities
Include:
Business board for having distributed address resource, by beyond the address of the NAT session capacities of the business board
Resource transfers are on the new business plate for reporting NAT session capacities.
In embodiments of the present invention, when there is the addition of new business plate, if the NAT handled on original business board
The reduction of session capacity, the address resource that can to distribute on original business board exceed its current NAT session
Address resource needed for capacity, if by beyond this partial address resource allocation on new business plate, remain
Remaining part point still remains allocated to original business board, address resource when just can solve to be added by new business plate point
With problem, and this partial address resource that the program only to exceed is changed, with entirety
Upper redistributing for whole address resources is compared, and reduces the influence of the address resource to being being currently used.
In embodiments of the present invention, in scheme according to embodiments of the present invention by whole addresses of master control board management
Resource allocation is given after the business board for having reported NAT session capacities, can also be existed and distributed address resource
Phenomenon that business board is pulled out occurs, this phenomenon, needs also exist for us to the address distributed away
Resource is readjusted, and redundancy occurs to avoid address resource, and address resource on the business board of work at present
The phenomenon of deficiency occurs, and in scheme of the embodiment of the present invention, the weight of address resource is realized by following scheme
New adjustment.
Alternatively,
Computing unit 121, it is additionally operable to when detection module 13 detects the first business for having distributed address resource
When plate is pulled out, calculate other in addition to the first business board in the whole business boards for having distributed address resource
Ratio between the NAT session capacities of business board.
In embodiments of the present invention, the first business board of address resource has been distributed when detection module 13 detects
When being pulled out, collection module 11, which equally can actively collect the current session of remaining each business board again, to be held
Amount, or the remaining each business board of order report current NAT session capacities again, so as to master control
Plate is according to the current NAT session capacity reasonable distribution whole address resources of remaining each business board.This
In, first business board can go up in the current each business board for having distributed address resource any one or
Multiple business boards.
Collection module 11 is collected into again remaining each reports the business board of NAT session capacities to be reported
NAT session capacities after, computing unit 121 needs also exist for recalculating the NAT meetings of each business board
The ratio between capacity is talked about, learns which business board needs to distribute more address resource by the ratio,
Which business board needs to distribute less address resource, to obtain the geological resource point for each business board
With foundation.Alternatively, in another embodiment, the NAT of remaining each business board can equally be calculated
Accounting of the session capacity in collected all NAT session capacities reported, should to obtain the business board
The address resource being assigned to accounts for the accounting of whole address resources, so as to further according to the accounting to the industry
Business plate carries out resource allocation.
Dispatching Unit 122, it is additionally operable between the NAT session capacities according to the other business boards calculated
Ratio, the address resource for distributing to the first business board is distributed to other business boards.
In embodiments of the present invention, in embodiments of the present invention, recalculated by computing unit 121
After ratio between the NAT session capacities of remaining each business board, Dispatching Unit 122 can be with will be by
The address resource for the first business board pulled out is divided into more parts of address resources according to the ratio, and according to above-mentioned
More parts of address resources are distributed to remaining corresponding business board by division ratio, to cause NAT session capacities
More business board is assigned to more address resource, the less business board of NAT session capacities be assigned to compared with
More address resources, reach the equilibrium assignment of address resource, improve address resource allocative efficiency.And
And the resource of business board of the program only to being pulled out is redistributed, address money is further reduced
The adjustment in source is to the influence for the address resource being being currently used.
A kind of master control borad 20, as shown in figure 5, the master control borad includes:Address under described distributed structure/architecture
Resource allocation device 10.
Compared with prior art, the present invention includes address resource allocation method under a kind of distributed structure/architecture, dress
Put and master control borad, this method include the network address translation that master control borad collects one or more business plate reports
NAT session capacities;Address resource to be allocated is distributed to by master control borad according to the NAT session capacities of collection
Report one or more business boards of NAT session capacities.By scheme of the embodiment of the present invention, can avoid
The uneven phenomenon of address resource distribution occurs, and improves the efficiency of address resource distribution and the reasonable profit of resource
With rate.
Although disclosed herein embodiment as above, described content be only readily appreciate the present invention
And the embodiment used, it is not limited to the present invention.Technology people in any art of the present invention
Member, do not depart from disclosed herein spirit and scope on the premise of, can be in the form of implementation and thin
Any modification and change, but the scope of patent protection of the present invention are carried out on section, still must be with appended right
The scope that claim is defined is defined.
Claims (11)
1. address resource allocation method under a kind of distributed structure/architecture, it is characterised in that methods described includes:
Master control borad collects the network address translation NAT session capacities of one or more business plate reports;
Address resource to be allocated is distributed to by the master control borad according to the NAT session capacities of collection
Report one or more business boards of the NAT session capacities.
2. address resource allocation method under distributed structure/architecture according to claim 1, it is characterised in that
Address resource to be allocated is distributed to and reported according to the NAT session capacities of collection by the master control borad
One or more business boards of the NAT session capacities include:
The NAT session capacities for each business board that the master control borad arrives according to current collection calculate each business
Ratio between the NAT session capacities of plate;
The master control borad, will according to the ratio between the NAT session capacities of each business board calculated
Address resource to be allocated is distributed to the one or more business boards for reporting the NAT session capacities.
3. address resource allocation method under distributed structure/architecture according to claim 2, it is characterised in that
Methods described also includes:
When having detected that new business plate reports NAT session capacities, whole business boards are collected again
NAT session capacities;
Each business board is recalculated according to the NAT session capacities for the business board collected again
Ratio between NAT session capacities;
According to the ratio between the NAT session capacities of each business board recalculated, by whole addresses
Resource dissemination gives the one or more business boards for reporting the NAT session capacities.
4. address resource allocation method under distributed structure/architecture according to claim 3, it is characterised in that
Ratio between the NAT session capacities for each business board that the basis recalculates, by whole addresses
Resource dissemination is reported one or more business boards of the NAT session capacities to include:
Business board for having distributed address resource, by beyond the address of the NAT session capacities of the business board
Resource transfers are on the new business plate for reporting NAT session capacities.
5. address resource allocation method under distributed structure/architecture according to claim 2, it is characterised in that
Methods described also includes:
When detecting that the first business board for having distributed address resource is pulled out, calculating has distributed address resource
Whole business boards in other business boards in addition to first business board NAT session capacities between
Ratio;
According to the ratio between the NAT session capacities of the other business boards calculated, described will be distributed to
The address resource of one business board is distributed to other business boards.
6. address resource distributor under a kind of distributed structure/architecture, it is characterised in that described device includes:
Collection module and distribution module;
The collection module, for collecting the network address translation NAT meetings of one or more business plate reports
Talk about capacity;
The distribution module, for the NAT session capacities according to collection by address resource to be allocated
It is distributed to the one or more business boards for reporting the NAT session capacities.
7. address resource distributor under distributed structure/architecture according to claim 6, it is characterised in that
The distribution module includes computing unit and Dispatching Unit;
The computing unit, the NAT session capacities of each business board for being arrived according to current collection calculate
Ratio between the NAT session capacities of each business board;
The Dispatching Unit, for the ratio between the NAT session capacities according to each business board calculated
Rate, address resource to be allocated is distributed to described in the one or more for reporting the NAT session capacities
Business board.
8. address resource distributor under distributed structure/architecture according to claim 7, it is characterised in that
Described device also includes detection module;
The collection module, it is additionally operable to when the detection module has detected that new business plate reports NAT sessions
During capacity, the NAT session capacities of all business boards are collected again;
The computing unit, it is additionally operable to the NAT session capacities for the business board that basis is collected again again
Calculate the ratio between the NAT session capacities of each business board;
The Dispatching Unit, be additionally operable to according to the NAT session capacities of each business board recalculated it
Between ratio, by whole address resource disseminations to being reported described in the one or more of the NAT session capacities
Business board.
9. address resource distributor under distributed structure/architecture according to claim 8, it is characterised in that
The Dispatching Unit, will according to the ratio between the NAT session capacities of each business board recalculated
Whole address resource disseminations are reported one or more business boards of the NAT session capacities to include:
Business board for having distributed address resource, by beyond the address of the NAT session capacities of the business board
Resource transfers are on the new business plate for reporting NAT session capacities.
10. address resource distributor under distributed structure/architecture according to claim 7, its feature exist
In,
The computing unit, it is additionally operable to when the detection module detects the first industry for having distributed address resource
When business plate is pulled out, calculate in the whole business boards for having distributed address resource in addition to first business board
Other business boards NAT session capacities between ratio;
The Dispatching Unit, it is additionally operable between the NAT session capacities according to the other business boards calculated
Ratio, the address resource for distributing to first business board is distributed to other business boards.
11. a kind of master control borad, it is characterised in that the master control borad includes:As claim 6-10 is any
Address resource distributor under distributed structure/architecture described in one.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610387638.4A CN107454200B (en) | 2016-06-01 | 2016-06-01 | Address resource allocation method and device under distributed architecture and main control board |
PCT/CN2017/079678 WO2017206590A1 (en) | 2016-06-01 | 2017-04-07 | Address resource allocation method for distributed architecture, device, and master control board |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610387638.4A CN107454200B (en) | 2016-06-01 | 2016-06-01 | Address resource allocation method and device under distributed architecture and main control board |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107454200A true CN107454200A (en) | 2017-12-08 |
CN107454200B CN107454200B (en) | 2022-03-18 |
Family
ID=60479724
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610387638.4A Active CN107454200B (en) | 2016-06-01 | 2016-06-01 | Address resource allocation method and device under distributed architecture and main control board |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN107454200B (en) |
WO (1) | WO2017206590A1 (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114039951A (en) * | 2021-11-08 | 2022-02-11 | 北京天融信网络安全技术有限公司 | Method, device and system for dynamically allocating address pool |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101247421A (en) * | 2008-03-28 | 2008-08-20 | 杭州华三通信技术有限公司 | Self-adapting distribution method and system of NAT address pool under distributed structure |
CN101262506A (en) * | 2008-04-21 | 2008-09-10 | 杭州华三通信技术有限公司 | Allocation method and system for network address conversion port resource under distributed architecture |
US20110047256A1 (en) * | 2009-08-21 | 2011-02-24 | Babu Prakash | Port chunk allocation in network address translation |
CN102932281A (en) * | 2012-10-31 | 2013-02-13 | 华为技术有限公司 | Method and equipment for dynamic allocation of resources |
US9112919B1 (en) * | 2012-04-30 | 2015-08-18 | Juniper Networks, Inc. | Secure network address translation (NAT) port block allocation |
CN105391968A (en) * | 2015-11-03 | 2016-03-09 | 浙江大华技术股份有限公司 | Video session allocation method and device |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104954239B (en) * | 2014-03-26 | 2019-04-05 | 中国电信股份有限公司 | A kind of broad access network gate and its implementation of built-in CGN |
CN105429823B (en) * | 2015-12-17 | 2018-06-01 | 迈普通信技术股份有限公司 | Flux of multicast detection method and device in distributed communication equipment |
-
2016
- 2016-06-01 CN CN201610387638.4A patent/CN107454200B/en active Active
-
2017
- 2017-04-07 WO PCT/CN2017/079678 patent/WO2017206590A1/en active Application Filing
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101247421A (en) * | 2008-03-28 | 2008-08-20 | 杭州华三通信技术有限公司 | Self-adapting distribution method and system of NAT address pool under distributed structure |
CN101262506A (en) * | 2008-04-21 | 2008-09-10 | 杭州华三通信技术有限公司 | Allocation method and system for network address conversion port resource under distributed architecture |
US20110047256A1 (en) * | 2009-08-21 | 2011-02-24 | Babu Prakash | Port chunk allocation in network address translation |
US9112919B1 (en) * | 2012-04-30 | 2015-08-18 | Juniper Networks, Inc. | Secure network address translation (NAT) port block allocation |
CN102932281A (en) * | 2012-10-31 | 2013-02-13 | 华为技术有限公司 | Method and equipment for dynamic allocation of resources |
CN105391968A (en) * | 2015-11-03 | 2016-03-09 | 浙江大华技术股份有限公司 | Video session allocation method and device |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114039951A (en) * | 2021-11-08 | 2022-02-11 | 北京天融信网络安全技术有限公司 | Method, device and system for dynamically allocating address pool |
Also Published As
Publication number | Publication date |
---|---|
CN107454200B (en) | 2022-03-18 |
WO2017206590A1 (en) | 2017-12-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN113037869B (en) | Method and apparatus for back-sourcing of content distribution network system | |
WO2021012663A1 (en) | Access log processing method and device | |
CN104850450A (en) | Load balancing method and system facing mixed cloud application | |
CN105007337A (en) | Cluster system load balancing method and system thereof | |
CN104834722A (en) | CDN (Content Delivery Network)-based content management system | |
CN105978950A (en) | Server resource distribution method, apparatus and system thereof | |
CN107465765A (en) | A kind of intelligent use gateway realization method based on container cloud | |
CN105450716B (en) | Dynamic service distribution method and system | |
CN103713955B (en) | Method and device for managing resource dynamic allocation | |
CN101547150A (en) | Method and device for scheduling data communication input port | |
CN101533362A (en) | Inter-process CPU resource balance scheduling method | |
Setty et al. | Cost-effective resource allocation for deploying pub/sub on cloud | |
CN102638457B (en) | Method and system for automatically allocating server resource | |
CN104038525A (en) | Load balancing method of server system and apparatus | |
CN104536832A (en) | Virtual machine deployment method | |
CN104301241B (en) | A kind of SOA dynamic load distributing methods and system | |
CN103607731B (en) | A kind of processing method and processing device of measurement report | |
CN107454200A (en) | Address resource allocation method, device and master control borad under a kind of distributed structure/architecture | |
CN107861820A (en) | A kind of resources of virtual machine distribution method and system | |
CN104899097A (en) | Thread allocation quantity calculating method and apparatus | |
CN103841186B (en) | The group technology and system of a kind of private clound | |
CN103246497B (en) | A kind of real time data method for parallel processing based on Data Placement | |
CN106027304B (en) | A kind of information processing method and electronic equipment | |
CN111061697B (en) | Log data processing method and device, electronic equipment and storage medium | |
CN107239341A (en) | A kind of resource translation method, system and resources of virtual machine scheduling system |
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 | ||
TR01 | Transfer of patent right |
Effective date of registration: 20221008 Address after: 518057 1st floor, B2 workshop, Zhongxing communication building, Keji South Road, high tech Industrial Park, Nanshan District, Shenzhen City, Guangdong Province Patentee after: SHENZHEN ZTE SOFTWARE Co.,Ltd. Address before: 518057 Ministry of justice, Zhongxing building, South Science and technology road, Nanshan District hi tech Industrial Park, Shenzhen, Guangdong Patentee before: ZTE Corp. |
|
TR01 | Transfer of patent right |