Summary of the invention
In view of this, the embodiment of the invention provides a kind of address distribution method, Apparatus and system, and the manual address pool management that can solve prior art is cumbersome, and address assignment and the lower problem of service efficiency.
For realizing above-mentioned purpose, the embodiment of the invention provides a kind of address distribution method, comprising:
Address pool management server receives the address request that the BRAS in the Broadband Remote Access Server BRAS cluster sends, and comprises the current idle address information of each BRAS in the said BRAS cluster in the said address pool management server;
According to the current idle address information of each BRAS in the said BRAS cluster, the idle address of the 2nd BRAS in the said BRAS cluster is sent to a said BRAS, the idle address of said the 2nd BRAS is distributed to the terminal equipment that is connected with a said BRAS.
The embodiment of the invention also provides a kind of address distribution method, comprising:
The address request that the first Broadband Remote Access Server BRAS receiving terminal apparatus sends;
According to the idle address information that comprises among the said BRAS,, then said address request is sent to address pool management server if confirm that there is not idle address in a said BRAS;
Receiver address pond management server sends the idle address of the 2nd BRAS, and a said BRAS and the 2nd BRAS all belong to the BRAS cluster;
The idle address of said the 2nd BRAS is sent to said terminal equipment.
The embodiment of the invention also provides a kind of address pool management server, comprising:
Receiver module is used for receiving the address request that a BRAS of Broadband Remote Access Server BRAS cluster sends, and comprises the current idle address information of each BRAS in the said BRAS cluster in the said address pool management server;
First distribution module; Be used for current idle address information according to said each BRAS of BRAS cluster; The idle address of the 2nd BRAS in the said BRAS cluster is sent to a said BRAS, the idle address of said the 2nd BRAS is distributed to the terminal equipment that is connected with a said BRAS.
The embodiment of the invention also provides a kind of Broadband Remote Access Server, comprising:
First receiver module is used for the address request that receiving terminal apparatus sends;
Determination module is used for the idle address information that comprises according to said Broadband Remote Access Server BRAS, if confirm that there is not idle address in said BRAS, then said address request is sent to address pool management server;
Second receiver module is used for the idle address of other BRAS that receiver address pond management server sends, and said BRAS and said other BRAS all belong to the BRAS cluster;
Second distribution module is used for the idle address of said other BRAS is sent to said terminal equipment.
The embodiment of the invention also provides a kind of address allocation system, comprising:
Broadband Remote Access Server BRAS cluster, said BRAS cluster comprises above-mentioned a plurality of Broadband Remote Access Server;
With the address pool management server that each BRAS in the said BRAS cluster communicates by letter, said address pool management server adopts above-mentioned address pool management server.
The embodiment of the invention also provides a kind of address allocation system; Comprise: Broadband Remote Access Server BRAS cluster; Said BRAS cluster comprises a plurality of above-mentioned Broadband Remote Access Server, and a BRAS in the said BRAS cluster adopts above-mentioned address pool management server.
The embodiment of the invention adopts address pool management server that the address pool of each BRAS in the BRAS cluster is carried out unified management; When certain BRAS in the BRAS cluster need distribute address and this locality not to have idle address for terminal equipment; This BRAS can send address request to this address pool management server, and Address Management Server can be given the terminal equipment of needs address according to the idle address among other BRAS of address pool information distribution of its unified management then.Therefore, the method that present embodiment provides can be carried out unified management to the address pool in the BRAS cluster automatically, and can improve the distribution and the service efficiency of address.
Embodiment
The address distribution method schematic flow sheet that Fig. 1 provides for the embodiment of the invention one, said method comprises:
Step 101, address pool management server receive the address request that the BRAS in the Broadband Remote Access Server BRAS cluster sends, and comprise the current idle address information of each BRAS in the said BRAS cluster in the said address pool management server.
The one BRAS of present embodiment can be any BRAS that sends Address requests in the BRAS cluster.
Wherein, The one BRAS comprises the idle address information in the BRAS address pool, when address request that a BRAS receiving terminal apparatus sends, determines whether to exist idle address according to the idle address information in the BRAS address pool; If exist; Then directly idle address is sent to terminal equipment, otherwise the address request that terminal equipment is sent sends to address pool management server.
Step 102, according to the current idle address information of each BRAS in the said BRAS cluster; The idle address of the 2nd BRAS in the said BRAS cluster is sent to a said BRAS, the idle address of said the 2nd BRAS is distributed to the terminal equipment that is connected with a said BRAS.
Comprise the idle address information in the current address pool of each BRAS in the BRAS cluster in the address pool management server in the present embodiment; Address pool management server is according to the idle address information in the current address pool of each BRAS; Confirm to exist the 2nd BRAS of idle address; Wherein, the 2nd BRAS is any BRAS that has idle address in the BRAS cluster, and the terminal equipment that is connected with a BRAS is distributed in the idle address of the 2nd BRAS; Be specially: address pool management server sends address assignment message and gives a BRAS; The one BRAS gives terminal equipment with the address assignment forwards, wherein, comprises the idle address information of the 2nd BRAS that is assigned with in the address assignment message.
Therefore; The embodiment of the invention adopts address pool management server that the address pool of each BRAS in the BRAS cluster is carried out unified management; When certain BRAS in the BRAS cluster need distribute address and this locality not to have idle address for terminal equipment; This BRAS can send address request to this address pool management server, and Address Management Server can be given the terminal equipment of needs address according to the idle address among other BRAS of address pool information distribution of its unified management then.Therefore, the method that present embodiment provides can be carried out unified management to the address pool in the BRAS cluster automatically, and can improve the distribution and the service efficiency of address.
The address distribution method schematic flow sheet that Fig. 2 provides for the embodiment of the invention two; Fig. 3 is the applied SNA figure of method embodiment shown in Figure 2; As shown in Figures 2 and 3; Server of configuration is used to carry out the work of above-mentioned address pool management server outside the BRAS cluster, uses address pool management server as main, outside the BRAS cluster, disposes another server as standby address pond management server; When the master can not work with address pool management server, carry out main work with address pool management server; Have 6 BRAS in this BRAS cluster; Wherein, When No. 1 BRAS need distribute address for its terminal equipment and the local no idle address of this No. 1 BRAS; This No. 1 BRAS sends address request to main with address pool management server, and this main method with the distribution of address pool management server executive address is as shown in Figure 2:
Step 201, the main address request that receives No. 1 BRAS transmission with address pool management server.
Step 202, according to the main current address pool information of each BRAS with the local storage of address pool management server, confirm to have idle address in the address pool of No. 2 BRAS, and distribute the idle address among the BRAS according to the order of sequence No. 2.
In the present embodiment; Main with the address pool management server address pool information that each BRAS sends respectively in (as every at a distance from 5 seconds) reception BRAS cluster at intervals; Wherein, Address pool information comprises address list and the idle address information in the address pool, and the master confirms idle address with address pool management server according to the current address pool information of each BRAS, and the tabulation of location, base area, idle address is arranged according to the order of sequence; Afterwards, the idle address after arranging is according to the order of sequence bound and is stored in the address pool information database with each affiliated BRAS respectively.
In the present embodiment; Main other 2~No. 5 current address pool information of BRAS that store in the information database of inquire address pond according to the order of sequence with address pool management server; If there is idle address in No. 2 BRAS, then distribute the idle address among the BRAS according to the order of sequence No. 2, be specially: the master sends address assignment message with address pool management server and gives No. 1 BRAS; This address assignment message comprises the idle address information that is assigned with among the BRAS No. 2, and No. 1 BRAS sends to connected terminal equipment with this address assignment message.
In the present embodiment; If there is not idle address in No. 2 BRAS; The main address pool information that continues inquire address pond other BRAS of information database with address pool management server; Confirm to exist other BRAS of idle address, afterwards the idle address among other BRAS is distributed to the terminal equipment that is connected with No. 1 BRAS according to the order of sequence.
As shown in Figure 3, the standby address pond management server of present embodiment is a BRAS cluster server outward, when leading with the address pool management server cisco unity malfunction, can carry out main work with address pool management server.In the present embodiment; The standby address pond management server address pool information that each BRAS sends respectively in (as every at a distance from 5 seconds) reception BRAS cluster also at intervals; Wherein, Address pool information comprises address list and the idle address information in the address pool, and standby address pond management server is confirmed idle address according to the current address pool information of each BRAS, and the tabulation of location, base area, idle address is arranged according to the order of sequence; Afterwards, the idle address after arranging is according to the order of sequence bound and is stored in the address pool information database of standby address pond management server with each affiliated BRAS respectively.
Therefore, the embodiment of the invention adopts the master with address pool management server the address pool of each BRAS in the BRAS cluster to be carried out unified management, and distributes the idle address in the BRAS cluster in an orderly manner, has improved the distribution and the service efficiency of address.
Simultaneously, the embodiment of the invention adopts the method for standby address pond management server, guarantees when the master breaks down with address pool management server, carries out main work with address pool management server, the safeguards system safe operation.
Because main address pool management server and the subsequent use main address pool management server that uses of using is the outer server of BRAS cluster, can alleviate the network burden of BRAS cluster.
The address distribution method schematic flow sheet that Fig. 4 provides for the embodiment of the invention three; Fig. 5 is the applied SNA figure of method embodiment shown in Figure 4, has 6 BRAS in this BRAS cluster, wherein; In the BRAS cluster, select a BRAS as the main address pool management server of using; Hereinafter to be referred as the main BRAS that uses, another BRAS is as standby address pond management server, hereinafter to be referred as subsequent use BRAS in the selection BRAS cluster; The method that this system's executive address distributes is as shown in Figure 4:
Step 401, the main address request that receives No. 2 BRAS transmissions in the BRAS cluster with BRAS.
As shown in Figure 5; The I P address pond of supposing No. 1 BRAS is maximum; Through similar ospf (Open Shortest Path First; Hereinafter to be referred as OSPF) the unique identification ospf domain in router ID of trace route path (ROUTE ID) conduct an election, electing No. 1 BRAS is the main BRAS that use, is responsible for carrying out the work of leading in the foregoing description two with address pool management server.
No. 2 BRAS confirm that according to the idle address information of this locality No. 2 BRAS do not exist after the idle address, and the address request that terminal equipment is sent sends to the main BRAS that uses.
Step 402, each BRAS address pool information current according to this locality are confirmed to have idle address in the address pool of No. 3 BRAS, distribute the idle address among the BRAS according to the order of sequence No. 3.
Before this step; Main address pool information of sending with each BRAS of BRAS interval property reception; This address pool information comprises the address list of each BRAS address pool, idle address information, and main address pool information of sending according to each BRAS with BRAS is upgraded local each current BRAS address pool information, is specially the idle address information among each BRAS is arranged according to address list according to the order of sequence; And the idle address that will arrange according to the order of sequence and each BRAS binding; Each BRAS address pool information after will binding afterwards deposits in the main address pool information database with BRAS, and is main with the BRAS address pool information of other each BRAS in the information database of inquire address pond according to the order of sequence, if there is idle address in definite No. 3 BRAS; Then send No. 3 idle addresses among the BRAS according to the order of sequence and give No. 2 BRAS, No. 2 BRAS distributes to terminal equipment with the idle address of No. 3 BRAS.
If there is not idle address in No. 3 BRAS, then continue inquire address pond information database, confirm to exist other BRAS of idle address, and distribute the idle address of other BRAS according to the order of sequence.
As shown in Figure 5; Subsequent use BRAS is another BRAS in the BRAS cluster; Also can conducting an election through the unique identification ROUTE ID of similar OSPF, is subsequent use BRAS as electing IP address pool time No. 6 big BRAS, is responsible for carrying out the work of standby address pond management server in the foregoing description two; When leading, launch, carry out main work with BRAS with the BRAS cisco unity malfunction.
Therefore; The embodiment of the invention is employed in selects the master with BRAS and subsequent use BRAS the address pool of each BRAS in the cluster to be carried out unified management in the BRAS cluster; And distribute the idle address among each BRAS in order; Also can realize the address pool of each BRAS in the BRAS cluster is carried out unified management, and can improve the distribution and the service efficiency of address.
Need to prove; Main in the foregoing description with address pool management server and standby address pond management server except being the server the cluster BRAS; Also can be that the main address pool management server that uses is the outer server of cluster BRAS server, standby address pond management server be one of them BRAS in the BRAS cluster; Or lead and use address pool management server to be one of them BRAS in the BRAS cluster, standby address pond management server is the outer server of cluster BRAS server.
The address distribution method schematic flow sheet that Fig. 6 provides for the embodiment of the invention four, this method comprises:
The address request that step 601, the first Broadband Remote Access Server BRAS receiving terminal apparatus send.
Step 602, if confirm that according to the idle address information that comprises among the said BRAS there is not idle address in a said BRAS, then sends to address pool management server with said address request.
Comprise local pool information among the one BRAS of present embodiment, this address pool information comprises idle address information.
If confirm that according to the idle address information that comprises among the said BRAS there is idle address in a said BRAS, then distribute the idle address of a said BRAS to give said terminal equipment.
The idle address that step 603, receiver address pond management server send the 2nd BRAS, a said BRAS and the 2nd BRAS all belong to the BRAS cluster.
Wherein, a BRAS is any BRAS that sends address request in the BRAS cluster, and the 2nd BRAS is any BRAS that has idle address in the BRAS cluster.
Address pool management server in the present embodiment adopts address pool management server embodiment illustrated in fig. 1, and its function and operation principle repeat no more as stated.
Step 604, the idle address of said the 2nd BRAS is sent to said terminal equipment.
In the embodiment of the invention; When certain BRAS in the BRAS cluster need distribute address and this locality not to have idle address for terminal equipment; This BRAS can send address request to this address pool management server, and Address Management Server can be given the terminal equipment of needs address according to the idle address among other BRAS of address pool information distribution of its unified management then.Therefore, the method that provides of present embodiment can improve the distribution and the service efficiency of address.
The address pool management server structural representation that Fig. 7 provides for the embodiment of the invention five, this server comprises: receiver module 11, the first distribution module 12, wherein,
Receiver module 11 is used for receiving the address request that a BRAS of Broadband Remote Access Server BRAS cluster sends, and comprises the current idle address information of each BRAS in the said BRAS cluster in the said address pool management server;
First distribution module 12; Be used for current idle address information according to said each BRAS of BRAS cluster; The idle address of the 2nd BRAS in the said BRAS cluster is sent to a said BRAS, the idle address of said the 2nd BRAS is distributed to the terminal equipment that is connected with a said BRAS.
The address pool management server of present embodiment can specifically be used to carry out the method for method embodiment shown in Figure 1, and its realization principle and technique effect are similar, repeat no more here.
The address pool management server structural representation that Fig. 8 provides for the embodiment of the invention six; As shown in Figure 8; Present embodiment is on the basis of server shown in Figure 7; Receiver module 11 also is used for receiving the address pool information of said each BRAS that said each BRAS of BRAS cluster sends respectively, and the address pool information of said each BRAS comprises the address list in said each BRAS address pool, the idle address information in said each BRAS address pool.
Said server also comprises:
Memory module 13 deposits the address pool information database of said address pool management server in after being used for the address pool information of said each BRAS bound with said each BRAS respectively.
Enquiry module 14 is used to inquire about said address pool information database, confirms whether to have idle address in the address pool of said the 2nd BRAS.
The address pool management server of present embodiment can specifically be used to carry out the method for method embodiment shown in Figure 2; It specifically can be applied in the system shown in Figure 3 structure chart as leading with address pool management server or standby address pond management server; Its realization principle and technique effect are similar, repeat no more here.
The Broadband Remote Access Server structural representation that Fig. 9 provides for the embodiment of the invention seven, as shown in Figure 9, this server comprises:
First receiver module 31 is used for the address request that receiving terminal apparatus sends;
Determination module 32 is used for the idle address information that comprises according to said Broadband Remote Access Server BRAS, if confirm that there is not idle address in said BRAS, then said address request is sent to address pool management server;
Second receiver module 33 is used for the idle address of other BRAS that receiver address pond management server sends, and said BRAS and said other BRAS all belong to the BRAS cluster;
Second distribution module 34 is used for the idle address of said other BRAS is sent to said terminal equipment.
The server of present embodiment can specifically be used to carry out the method for method embodiment shown in Figure 6; It specifically can be applied in Fig. 3 and the system shown in Figure 5 structure chart as any BRAS in the BRAS cluster; Its realization principle and technique effect are similar, repeat no more here.Wherein, determination module 32 also is used for the idle address information that comprises according to said BRAS, confirms that there is idle address in said BRAS; Second distribution module 34 also is used for said terminal equipment is distributed in the idle address of said BRAS.
The address allocation system sketch map that Figure 10 provides for the embodiment of the invention eight; Shown in figure 10; This system comprises: Broadband Remote Access Server BRAS cluster 21, BRAS cluster 21 outer with said BRAS cluster 21 in each BRAS address pool management server 22 of communicating by letter, wherein
Address pool management server 22 adopts address pool management server embodiment illustrated in fig. 7; Be used for receiving the address request that a BRAS of BRAS cluster 21 sends, comprise the current idle address information of each BRAS in the said BRAS cluster 21 in the said address pool management server 22; The current idle address information of each BRAS in the said BRAS cluster sends to a said BRAS with the idle address of the 2nd BRAS in the said BRAS cluster, the idle address of said the 2nd BRAS is distributed to the terminal equipment that is connected with a said BRAS.
BRAS cluster 21 comprises a plurality of Broadband Remote Access Server BRAS embodiment illustrated in fig. 9.
The address allocation system of present embodiment can specifically be used to carry out the method for method embodiment shown in Figure 1, and its realization principle and technique effect are similar, repeat no more here.
The address allocation system sketch map that Figure 11 provides for the embodiment of the invention nine; Shown in figure 11; This system further comprises on the basis of system shown in Figure 10: BRAS cluster 21 outer with said BRAS cluster 21 in each BRAS standby address pond management server 23 of communicating by letter, wherein
Address pool management server 22 adopts address pool management server embodiment illustrated in fig. 8, as the main address pool management server of using of method embodiment shown in Figure 2;
Standby address pond management server 23 adopts address pool management server embodiment illustrated in fig. 8; Standby address pond management server as method embodiment shown in Figure 2; When leading, can carry out main work with address pool management server with the address pool management server cisco unity malfunction.
The address allocation system of present embodiment can specifically be used to carry out the method for method embodiment shown in Figure 2, and the system of present embodiment can adopt system architecture shown in Figure 3 when concrete the realization, and its realization principle and technique effect are similar, repeat no more here.
The address allocation system sketch map that Figure 12 provides for the embodiment of the invention ten; Shown in figure 12; This system comprises: BRAS cluster 21, and wherein, BRAS cluster 21 comprises a plurality of Broadband Remote Access Server BRAS embodiment illustrated in fig. 9; BRAS in the BRAS cluster 21 adopts address pool management server embodiment illustrated in fig. 7, carries out the work of address pool management server of the embodiment of method shown in Figure 1.
The address allocation system of present embodiment can specifically be used to carry out the method for method embodiment shown in Figure 1, and its realization principle and technique effect are similar, repeat no more here.
The address allocation system sketch map that Figure 13 provides for the embodiment of the invention 11; Shown in figure 13; This system is on the basis of system shown in Figure 12; A BRAS in the BRAS cluster 21 adopts address pool management server embodiment illustrated in fig. 8, carries out the main work with BRAS of the embodiment of method shown in Figure 4; Another BRAS in the BRAS cluster 21 adopts address pool management server embodiment illustrated in fig. 8, carries out the work of subsequent use BRAS of the embodiment of method shown in Figure 4.
The address allocation system of present embodiment can specifically be used to carry out the method for method embodiment shown in Figure 4, and the system of present embodiment can adopt system architecture shown in Figure 5 when concrete the realization, and its realization principle and technique effect are similar, repeat no more here.
What should explain at last is: above embodiment is only in order to explaining technical scheme of the present invention, but not to its restriction; Although with reference to previous embodiment the present invention has been carried out detailed explanation, those of ordinary skill in the art is to be understood that: it still can be made amendment to the technical scheme that aforementioned each embodiment put down in writing, and perhaps part technical characterictic wherein is equal to replacement; And these are revised or replacement, do not make the spirit and the scope of the essence disengaging various embodiments of the present invention technical scheme of relevant art scheme.