CN101018193A - Load distribution method and system and device for allocating the backup packet and virtual IP address - Google Patents
Load distribution method and system and device for allocating the backup packet and virtual IP address Download PDFInfo
- Publication number
- CN101018193A CN101018193A CNA2007100003902A CN200710000390A CN101018193A CN 101018193 A CN101018193 A CN 101018193A CN A2007100003902 A CNA2007100003902 A CN A2007100003902A CN 200710000390 A CN200710000390 A CN 200710000390A CN 101018193 A CN101018193 A CN 101018193A
- Authority
- CN
- China
- Prior art keywords
- address
- virtual
- backup group
- dhcp
- dhcp client
- 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.)
- Pending
Links
Images
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The invention discloses method and system for shunting load and allocating virtual IP address for backup group. Wherein, storing all virtual IP addresses of backup group composed by DHCP relay device; when detecting trigger affair to allocate virtual IP address, allocating the selected virtual IP address of backup group to DHCP client, and transmitting business flow by the client. The system comprises: a DHCP server, multiple backup groups every with some DHCP relay devices, an access layer device, a DHCP client, and an allocation device. This invention can improve the QoS.
Description
Technical field
The present invention relates to the network communications technology, particularly relate to the method and system of load bridging and the device of distribution backup group virtual IP address.
Background technology
In DHCP (DHCP) technology, Dynamic Host Configuration Protocol server can comprise the configuration parameter that dynamic IP addressing is relevant with other automatically for dhcp client distributes the required network configuration parameters of its online.As seen, the DHCP technology has been avoided because of the mistake that the IP address is produced is set by hand, also avoided giving the address conflict that multiple host caused an IP address assignment, reduced IP address management person's the burden that is provided with, shorten the configuration time that client spent, improved the performance of system widely.
In addition, at present,, reliable service protection, IETF formulated Virtual Router Redundancy Protocol (VRRP) technology for being provided to client.In the VRRP technology, can utilize a plurality of equipment to form a plurality of backup groups, each backup group can utilize other backup groups to back up, simultaneously, different clients can be set uses the virtual IP address of different backup groups as gateway, thereby further realize load balancing, improved the performance of system widely.
Because DHCP technology and VRRP technology all can improve the performance of system, therefore, use the DHCP technology simultaneously and the VRRP technology is carried out networking, become networks development trend.
Fig. 1 is a kind of schematic diagram that application DHCP technology and VRRP technology are carried out networking.Referring to Fig. 1, when using DHCP technology and VRRP technology simultaneously and carry out networking, if the client of Dynamic Host Configuration Protocol server and DHCP not in same network, so, the client of Dynamic Host Configuration Protocol server and DHCP is connected with DHCP relay equipment by access layer equipment.And, in order to realize VRRP simultaneously, a plurality of DHCP relay equipment are set in the system, and should be arranged to a plurality of backup groups by a plurality of DHCP relay equipment, backup mutually between the different backup groups.Such as, referring to Fig. 1, backup group 1 and backup group 2 can all be set on DHCP relay equipment 1 and DHCP relay equipment 2, backup group 1 is main with (Master) on DHCP relay equipment 1, backup group 2 is standby (Slave), and backup group 1 is Slave on DHCP relay equipment 2, and backup group 2 is Master.
Fig. 2 is in the prior art for the flow chart of dhcp client distribution network configuration parameter.Referring to Fig. 1 and Fig. 2, when using DHCP technology and VRRP technology simultaneously and carry out networking, for the basic process of the dhcp client distribution network configuration parameter of access network may further comprise the steps:
Step 201: each dhcp client is finished the process of initial distribution network configuration parameter by finding (Discover) message with Dynamic Host Configuration Protocol server alternately and (Offer) being provided message.
Here, the specific implementation process of this step comprises: each dhcp client will find that by access layer equipment message is sent to each DHCP relay equipment; Each DHCP relay equipment is carried at the main virtual IP address with backup group in place respectively to be found to be sent to Dynamic Host Configuration Protocol server in the message; Dynamic Host Configuration Protocol server is according to the client-side information that carries in each discovery message that receives and the virtual IP address of backup group, be each client distribution network configuration parameter, comprise that dynamic IP addressing and gateway address are the backup group virtual IP address that client is used, then the network configuration parameters that is distributed being carried at each respectively provides and is sent to DHCP relay equipment in the message; DHCP relay equipment will receive each provide message to be sent to each dhcp client by access layer equipment; Each dhcp client is retrieved as the network configuration parameters of its distribution from message is provided.
Step 202: each dhcp client is finished the process of the network configuration parameters of confirming distribution by ask (Request) message and affirmation (ACK) message alternately with Dynamic Host Configuration Protocol server.
Here, the specific implementation process of this step is identical with the implementation procedure of above-mentioned steps 201, just the discovery message in the step 201 specific implementation process need be replaced with request message, and will provide message to replace with confirmation message.And in this step 202, the network configuration parameters that Dynamic Host Configuration Protocol server distributes can be identical or different with the network configuration parameters of step 201 original allocation.
Step 203: each dhcp client is according to the network configuration parameters that carries in the confirmation message, and access network sends Business Stream.
At present, in the VRRP technology, require the real ip address of equipment in each backup group and the virtual IP address of backup group must be arranged on the same network segment.Like this, referring to Fig. 1, when using DHCP technology and VRRP technology simultaneously and carry out networking, the virtual IP address of the real ip address of each DHCP relay equipment and each backup group of setting then can be arranged on the same network segment.Referring to Fig. 1 and Fig. 2, when different clients needs access network, though Dynamic Host Configuration Protocol server has received the discovery message and the request message of different clients from different DHCP relay equipment, but because the virtual IP address of each backup group that carries in each discovery message and the request message belongs to the same network segment, according to the DHCP agreement, it is identical backup group virtual IP address that Dynamic Host Configuration Protocol server can distribute identical gateway address for different clients.Like this, in the process of follow-up transmission Business Stream, different clients then can be sent to Business Stream the virtual IP address of same backup group, such as, each dhcp client all is sent to Business Stream the virtual IP address of backup group 1 among Fig. 2, cause having only in the system Business Stream of a DHCP relay device processes dhcp client, other DHCP relay equipment then are in idle state, thereby can't on DHCP relay equipment, realize the load balancing of flow, reduce the forward efficiency of Business Stream, reduced QoS.
Summary of the invention
In view of this, main purpose of the present invention is to provide a kind of method and system of realizing load bridging, another object of the present invention is to provide a kind of device that distributes the backup group virtual IP address, so that use at the same time in the system of DHCP technology and VRRP technology, can on DHCP relay equipment, realize the load balancing of flow.
In order to achieve the above object, technical scheme of the present invention is achieved in that
A kind of method that realizes load bridging, this method comprises:
The virtual IP address of all backup groups that network side preservation dynamic host configuration protocol DHCP trunking is formed, network side is behind the trigger event that monitors to dhcp client distribution backup group virtual IP address, select the virtual IP address of a backup group, and the virtual IP address of the backup group selected distributed to dhcp client, dhcp client sends Business Stream according to the backup group virtual IP address that distributes.
Carry out the step of described monitoring, selection and distribution by the Dynamic Host Configuration Protocol server of network side;
Described monitoring to dhcp client distributes the step of the trigger event of backup group virtual IP address comprises: Dynamic Host Configuration Protocol server monitors described dhcp client and sends request message.
Carry out the step of described monitoring, selection and distribution by the DHCP relay equipment of network side;
Described monitoring to dhcp client distributes the step of the trigger event of backup group virtual IP address comprises: the DHCP relay monitoring of equipment is sent affirmation message to described dhcp client to Dynamic Host Configuration Protocol server.
This method further comprises: the function that the DHCP message was monitored and handled in the access layer equipment support that connects DHCP relay equipment and dhcp client is set;
Carry out the step of described monitoring, selection and distribution by the described access layer equipment of network side;
Described monitoring to dhcp client distributes the step of the trigger event of backup group virtual IP address comprises: described access layer equipment monitors DHCP relay equipment and sends affirmation message to described dhcp client.
The step of the virtual IP address of a backup group of described selection comprises:
From the virtual IP address of all backup groups of preserving, select a not virtual IP address of the backup group of selected mistake;
Perhaps, the virtual IP address for each backup group of preserving is provided with corresponding array index respectively; Quantity with the backup group virtual IP address of the MAC Address of described dhcp client and preservation is carried out Hash operation, searches the identical array index of index value that obtains with Hash operation, selects the virtual IP address of the backup group corresponding with the array index that is found.
The step of the virtual IP address of a backup group of described selection comprises: the port information of determining described dhcp client, according to the corresponding relation between this port information and client port that sets in advance and the backup group virtual IP address, from the virtual IP address of all backup groups of preserving, select the virtual IP address of a backup group.
The step of determining the port information of described dhcp client comprises: when receiving the request message that described dhcp client sends, the corresponding relation of the medium access control MAC address of carrying in the port of this request message of foundation reception and this request message, after monitoring described confirmation message, according to MAC Address of carrying in this confirmation message and the corresponding relation of being set up, determine the port information of described dhcp client.
The step that described virtual IP address with the backup group selected is distributed to dhcp client comprises: be carried at the virtual IP address of the backup group selected in the confirmation message or be carried in the message of redetermination, be sent to described dhcp client.
When the virtual IP address of the backup group of selecting was carried in the confirmation message, this step of carrying comprised: the virtual IP address of the backup group selected is carried in the Option3 territory of confirmation message.
A kind of device that distributes the backup group virtual IP address, this device comprises memory cell, selected cell and transmission unit, wherein,
Memory cell is used to preserve the virtual IP address of all backup groups that DHCP relay equipment forms;
Selected cell, be used for behind the trigger event that monitors to dhcp client distribution backup group virtual IP address, select the virtual IP address of a backup group the virtual IP address of all backup groups of preserving from memory cell, and the virtual IP address of the backup group selected is sent to transmission unit;
Transmission unit is used to receive the virtual IP address of the backup group that selected cell sends, and the virtual IP address of this backup group is sent to dhcp client.
This device is arranged in the Dynamic Host Configuration Protocol server, or is arranged in the DHCP relay equipment, or is arranged in the access layer equipment of supporting monitoring and processing DHCP message function.
A kind of system that realizes load bridging comprises: a plurality of backup groups, access layer equipment and dhcp client that Dynamic Host Configuration Protocol server, a plurality of DHCP relay equipment are formed, and this system also comprises: distribute the device of backup group virtual IP address, wherein,
The device that distributes the backup group virtual IP address, be used to preserve the virtual IP address of all backup groups that DHCP relay equipment forms, behind the trigger event that monitors to dhcp client distribution backup group virtual IP address, select the virtual IP address of a backup group, and the virtual IP address of the backup group selected is sent to dhcp client;
Dhcp client is used for sending Business Stream according to the backup group virtual IP address that receives.
The device of described distribution backup group virtual IP address is arranged in the Dynamic Host Configuration Protocol server, or is arranged in the DHCP relay equipment, or is arranged in the access layer equipment of supporting monitoring and processing DHCP message function.
This shows, in the present invention, because when distributing gateway address to be the backup group virtual IP address for any one dhcp client, all can from all backup group virtual IP address, select one, like this, then can guarantee to distribute different backup group virtual IP address into each dhcp client, thereby avoided having only in the prior art Business Stream of a DHCP relay device processes dhcp client, and other DHCP relay equipment are in the shortcoming of idle state, on DHCP relay equipment, realized the load balancing of flow, improve the forward efficiency of Business Stream, improved the flexibility and the QoS of business realizing.
Description of drawings
Fig. 1 is a kind of schematic diagram that application DHCP technology and VRRP technology are carried out networking.
Fig. 2 is in the prior art for the flow chart of dhcp client distribution network configuration parameter.
Fig. 3 is the structural representation that distributes the device of backup group virtual IP address in the present invention.
Fig. 4 is a flow chart of realizing load bridging in the embodiment of the invention 1.
Fig. 5 is a flow chart of realizing load bridging in the embodiment of the invention 2.
Fig. 6 is a flow chart of realizing load bridging in the embodiment of the invention 3.
Embodiment
For making the purpose, technical solutions and advantages of the present invention clearer, the present invention is described in further detail below in conjunction with drawings and the specific embodiments.
The present invention proposes a kind of method that realizes load bridging, this method comprises: the virtual IP address of all backup groups that network side preservation DHCP relay equipment is formed, network side is behind the trigger event that monitors to dhcp client distribution backup group virtual IP address, select the virtual IP address of a backup group, and the virtual IP address of the backup group selected distributed to this dhcp client, dhcp client sends Business Stream according to the backup group virtual IP address that distributes.
In the invention described above method, described network side is meant can receive the also network entity of information that processing terminal sends in the network, preferably, it can be the Dynamic Host Configuration Protocol server in the network, or DHCP relay equipment, or support the access layer equipment of monitoring and processing DHCP message function to carry out the process of monitoring, selection and distribution in the inventive method.
Correspondingly, the invention allows for the system that realizes load bridging.This system comprises: a plurality of backup groups that Dynamic Host Configuration Protocol server, a plurality of DHCP relay equipment are formed, access layer equipment, dhcp client and the device that distributes the backup group virtual IP address, wherein,
The device that distributes the backup group virtual IP address, be used to preserve the virtual IP address of all backup groups that DHCP relay equipment forms, behind the trigger event that monitors to dhcp client distribution backup group virtual IP address, select the virtual IP address of a backup group, and the virtual IP address of the backup group selected is sent to dhcp client;
Dhcp client is used for sending Business Stream according to the backup group virtual IP address that receives.
In system of the present invention, the device of described distribution backup group virtual IP address can be arranged in the Dynamic Host Configuration Protocol server, or is arranged in the DHCP relay equipment, or is arranged in the access layer equipment of supporting monitoring and processing DHCP message function.
Correspondingly, the invention allows for a kind of device that distributes the backup group virtual IP address.Fig. 3 is the structural representation that distributes the device of backup group virtual IP address in the present invention.Referring to Fig. 3, the device of distribution backup group virtual IP address proposed by the invention mainly comprises: memory cell, selected cell and transmission unit, wherein,
Memory cell is used to preserve the virtual IP address of all backup groups that DHCP relay equipment forms;
Selected cell, be used for behind the trigger event that monitors to dhcp client distribution backup group virtual IP address, select the virtual IP address of a backup group the virtual IP address of all backup groups of preserving from memory cell, and the virtual IP address of the backup group selected is sent to transmission unit;
Transmission unit is used to receive the virtual IP address of the backup group that selected cell sends, and the virtual IP address of this backup group is sent to dhcp client.
Referring to Fig. 3, particularly, the triggering message of the distribution backup group virtual IP address that selected cell can receive transmission unit is as monitoring the trigger event that distributes the backup group virtual IP address for dhcp client.
The device of described distribution backup group virtual IP address can be arranged in the Dynamic Host Configuration Protocol server, or is arranged in the DHCP relay equipment, or is arranged in the access layer equipment of supporting monitoring and processing DHCP message function.
As seen, in concrete application of the present invention, mainly comprise following three kinds of business realizing modes the most basic:
Mode one, be controlled to be the virtual IP address that each dhcp client distributes different backup groups, realize the load bridging of each DHCP relay equipment by Dynamic Host Configuration Protocol server.
Mode two, by the DHCP relay Equipment Control for each dhcp client distributes the virtual IP address of different backup groups, realize the load bridging of each DHCP relay equipment.
Mode three, be controlled to be the virtual IP address that each dhcp client distributes different backup groups, realize the load bridging of each DHCP relay equipment by access layer equipment.
Below in conjunction with specific embodiment above-mentioned three kinds of business realizing modes are elaborated respectively.
Embodiment 1:
In the present embodiment, describe at the mode one in the above-mentioned business realizing mode.
Fig. 4 is a flow chart of realizing load bridging in the embodiment of the invention 1.Referring to shown in Figure 4, realize that the detailed process of load bridging may further comprise the steps:
Step 401: the virtual IP address of on Dynamic Host Configuration Protocol server, preserving all backup groups of DHCP relay equipment composition in advance.
Step 402: each dhcp client is finished the process of initial distribution network configuration parameter by finding message alternately and message is provided with Dynamic Host Configuration Protocol server.
Here, the specific implementation process of this step comprises: each dhcp client will find that by access layer equipment message is sent to each DHCP relay equipment; Each DHCP relay equipment is carried at the main virtual IP address with backup group in place and finds to be sent to Dynamic Host Configuration Protocol server in the message; Dynamic Host Configuration Protocol server is according to the client-side information that carries in each discovery message that receives and the virtual IP address of backup group, be each dhcp client distribution network configuration parameter, comprise that dynamic IP addressing and gateway address are the backup group virtual IP address that dhcp client uses, then the network configuration parameters that is distributed being carried at each respectively provides and is sent to DHCP relay equipment in the message; DHCP relay equipment will receive each provide message to be sent to each dhcp client by access layer equipment; Each dhcp client is retrieved as the network configuration parameters of its distribution from message is provided.
Step 403: each dhcp client will ask (Request) message to be sent to each DHCP relay equipment by access layer equipment.
Step 404: each DHCP relay equipment is carried at the main virtual IP address with backup group in place and is sent to Dynamic Host Configuration Protocol server in the request message.
Step 405:DHCP server is selected the virtual IP address of a backup group respectively according to the client-side information that carries in each request message that receives for each dhcp client.
Here, when Dynamic Host Configuration Protocol server receives request message, think to monitor the trigger event that distributes the backup group virtual IP address into dhcp client, then determine to carry out the follow-up processing that each dhcp client distributes different backup group virtual IP address that is controlled to be.
In this step, when Dynamic Host Configuration Protocol server was selected the backup group virtual IP address for any one dhcp client, concrete implementation procedure comprised following dual mode:
Mode one, from the virtual IP address of all backup groups of preserving, select a not virtual IP address of the backup group of selected mistake.
Mode two, the virtual IP address for each backup group of preserving is provided with corresponding array index respectively in advance; Quantity with the backup group virtual IP address of the MAC Address of the dhcp client that carries in the request message and preservation is carried out Hash operation, search the identical array index of index value that obtains with Hash operation, select the virtual IP address of the backup group corresponding with the array index that is found.
The virtual IP address of the backup group that step 406:DHCP server will be selected for each dhcp client and other network configuration parameters of distribution are carried at respectively and are sent to DHCP relay equipment in each confirmation message.
Each confirmation message that step 407:DHCP trunking will receive is sent to each dhcp client by access layer equipment.
Step 408: each dhcp client is retrieved as the network configuration parameters of its distribution from confirmation message, comprises that gateway address is the virtual IP address of backup group.
Step 409: each dhcp client sends Business Stream according to the backup group virtual IP address that carries in the confirmation message.
Need to prove, in the specific implementation process of step 402, Dynamic Host Configuration Protocol server can be according to processing mode of the prior art, for each dhcp client distributes same backup group virtual IP address when distributing the backup group virtual IP address of its use for each dhcp client.Perhaps, preferably, also can adopt the dual mode described in the step 405 to come to distribute the backup group virtual IP address of its use for each client.
Embodiment 2:
In the present embodiment, describe at the mode two in the above-mentioned business realizing mode.
Fig. 5 is a flow chart of realizing load bridging in the embodiment of the invention 2.Referring to shown in Figure 5, realize that the detailed process of load bridging may further comprise the steps:
Step 501: the virtual IP address of on DHCP relay equipment, preserving all backup groups of DHCP relay equipment composition in advance.
Step 502: each dhcp client is finished the process of initial distribution network configuration parameter by finding message alternately and message is provided with Dynamic Host Configuration Protocol server.
Here, the specific implementation process of this step comprises: each dhcp client will find that by access layer equipment message is sent to each DHCP relay equipment; Each DHCP relay equipment is carried at the main virtual IP address with backup group in place and finds to be sent to Dynamic Host Configuration Protocol server in the message; Dynamic Host Configuration Protocol server is according to the client-side information that carries in each discovery message that receives and the virtual IP address of backup group, be each client distribution network configuration parameter, comprise that dynamic IP addressing and gateway address are the backup group virtual IP address that dhcp client uses, then the network configuration parameters that is distributed being carried at each respectively provides and is sent to DHCP relay equipment in the message; DHCP relay equipment will receive each provide message to be sent to each dhcp client by access layer equipment; Each dhcp client is retrieved as the network configuration parameters of its distribution from message is provided.
Step 503: each dhcp client is sent to each DHCP relay equipment by access layer equipment with request message.
Step 504: each DHCP relay equipment is carried at the main virtual IP address with backup group in place and is sent to Dynamic Host Configuration Protocol server in the request message.
Step 505:DHCP server is each dhcp client distribution network configuration parameter according to the client-side information that carries in each request message that receives and the virtual IP address of backup group, comprises that gateway address is the virtual IP address of backup group.
In above-mentioned steps 502 and step 505, Dynamic Host Configuration Protocol server distributes the specific implementation process of backup group virtual IP address identical with respective process of the prior art for each dhcp client, promptly the virtual IP address according to the backup group that carries in each request message belongs to the same network segment, for each dhcp client distributes same backup group virtual IP address.
Step 506:DHCP server will be carried at for the network configuration parameters that each dhcp client distributes and be sent to DHCP relay equipment in the confirmation message.
After step 507:DHCP trunking receives each confirmation message,, select the virtual IP address of a backup group respectively for each dhcp client according to the client-side information that carries in each confirmation message.
Here, when DHCP relay equipment receives the affirmation message that Dynamic Host Configuration Protocol server sends, think to monitor the trigger event that distributes the backup group virtual IP address into dhcp client, then determine to carry out the follow-up processing that each dhcp client distributes different backup group virtual IP address that is controlled to be.
In this step, when DHCP relay equipment was selected the backup group virtual IP address of use for any one dhcp client, concrete implementation procedure comprised following three kinds of modes:
Mode A, from the virtual IP address of all backup groups of preserving, select a not virtual IP address of the backup group of selected mistake.
Mode B, the virtual IP address for each backup group of preserving is provided with corresponding array index respectively in advance; Quantity with the backup group virtual IP address of the MAC Address of the dhcp client that carries in the confirmation message and preservation is carried out Hash operation, search the identical array index of index value that obtains with Hash operation, select the virtual IP address of the backup group corresponding with the array index that is found.
Mode C, determine the port information of dhcp client,, from the virtual IP address of all backup groups of preserving, select the virtual IP address of a backup group according to the corresponding relation between this port information and dhcp client port that sets in advance and the backup group virtual IP address.
When this mode of employing C, when DHCP relay equipment receives the request message that dhcp client sends in step 503, can set up the corresponding relation of medium access control (MAC) address of carrying in the port that receives this request message and this request message, like this, the specific implementation process of determining the port information of dhcp client can comprise: after this step receives the confirmation message, according to the MAC Address of carrying in this confirmation message and the port set up and the corresponding relation of MAC Address, determine and confirmation message in the information of the MAC Address corresponding port of carrying.
Step 508:DHCP trunking will be carried in the affirmation message of dhcp client for the backup group virtual IP address that each dhcp client is selected respectively.
Step 509:DHCP trunking is sent to each dhcp client with each confirmation message by access layer equipment.
Step 510: each dhcp client is retrieved as the network configuration parameters of its distribution from confirmation message, comprises that gateway address is the virtual IP address of backup group.
Step 511: each dhcp client sends Business Stream according to the backup group virtual IP address that carries in the confirmation message.
Embodiment 3:
In the present embodiment, describe at the mode three in the above-mentioned business realizing mode.
Fig. 6 is a flow chart of realizing load bridging in the embodiment of the invention 3.Referring to shown in Figure 6, realize that the detailed process of load bridging may further comprise the steps:
Step 601: set in advance the function that the DHCP message was monitored and handled in the access layer equipment support.
Here, can support DHCP Snooping agreement, realize that the access layer equipment support is monitored and the function of processing DHCP message by access layer equipment is set.
Step 602: the virtual IP address of on access layer equipment, preserving all backup groups of DHCP relay equipment composition in advance.
Step 603: each dhcp client is finished the process of initial distribution network configuration parameter by finding message alternately and message is provided with Dynamic Host Configuration Protocol server.
The specific implementation process of step 502 is identical in the specific implementation process of this step and the foregoing description 2.
Step 604: each dhcp client is sent to each DHCP relay equipment by access layer equipment with request message.
Step 605: each DHCP relay equipment is carried at the main virtual IP address with backup group in place and is sent to Dynamic Host Configuration Protocol server in the request message.
Step 606:DHCP server is each dhcp client distribution network configuration parameter according to the client-side information that carries in each request message that receives and the virtual IP address of backup group, comprises that gateway address is the virtual IP address of backup group.
In above-mentioned steps 603 and step 606, Dynamic Host Configuration Protocol server distributes the specific implementation process of backup group virtual IP address of its use identical with respective process of the prior art for each client, promptly the virtual IP address according to the backup group that carries in each message belongs to the same network segment, for each dhcp client distributes same backup group virtual IP address.
Step 607:DHCP server will be carried at for the network configuration parameters that each dhcp client distributes and be sent to DHCP relay equipment in the confirmation message.
After step 608:DHCP trunking receives each confirmation message, this each confirmation message is sent to access layer equipment.
Step 609: access layer equipment is selected the virtual IP address of a backup group respectively according to the client-side information that carries in each confirmation message for each dhcp client.
Here, owing to set in advance the function that the DHCP message was monitored and handled in the access layer equipment support, therefore, in this step, the affirmation message that receives can be discerned and be handled to access layer equipment.
And, when access layer equipment receives the affirmation message that DHCP relay equipment sends, think to monitor the trigger event that distributes the backup group virtual IP address into dhcp client, then determine to carry out the follow-up processing that each dhcp client distributes different backup group virtual IP address that is controlled to be.
In this step, access layer equipment selects three kinds of implementations of step 507 in the mode of the backup group virtual IP address that uses and the foregoing description 2 identical for any one dhcp client, just, when the mode C in adopting above-mentioned steps 507 in this step realizes, access layer equipment is when step 604 receives the request message that dhcp client sends, the corresponding relation of the MAC Address of carrying in the port of this request message of foundation reception and this request message, other describe identical.
Step 610: access layer equipment will be carried in the affirmation message of dhcp client for the backup group virtual IP address that each dhcp client is selected respectively, is sent to each dhcp client.
Step 611: each dhcp client is retrieved as the network configuration parameters of its distribution from confirmation message, comprises that gateway address is the virtual IP address of backup group.
Step 612: each dhcp client sends Business Stream according to the backup group virtual IP address that carries in the confirmation message.
Need to prove, because the Option3 territory of confirmation message is to be used for carrying the backup group virtual IP address that distributes into dhcp client, therefore, in each above-mentioned embodiment, when the backup group virtual IP address that will select for dhcp client is carried in the affirmation message of dhcp client, specifically can be that the backup group virtual IP address that will select is carried in the Option3 territory of confirmation message.
Also need to prove, in above-mentioned each embodiment, be to be sent to dhcp client for the backup group virtual IP address that each dhcp client is selected, thereby make dhcp client can utilize different DHCP relay device transmission Business Streams by confirmation message.In other embodiments of the invention, also can the redetermination a piece of news, and the message by redetermination will be sent to dhcp client for the backup group virtual IP address that each dhcp client is selected, and dhcp client is according to the backup group virtual IP address transmitting business stream that carries in this redetermination message.
In a word, the above is preferred embodiment of the present invention only, is not to be used to limit protection scope of the present invention.Within the spirit and principles in the present invention all, any modification of being done, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.
Claims (13)
1, a kind of method that realizes load bridging is characterized in that, this method comprises:
The virtual IP address of all backup groups that network side preservation dynamic host configuration protocol DHCP trunking is formed, network side is behind the trigger event that monitors to dhcp client distribution backup group virtual IP address, select the virtual IP address of a backup group, and the virtual IP address of the backup group selected distributed to dhcp client, dhcp client sends Business Stream according to the backup group virtual IP address that distributes.
2, method according to claim 1 is characterized in that, is carried out the step of described monitoring, selection and distribution by the Dynamic Host Configuration Protocol server of network side;
Described monitoring to dhcp client distributes the step of the trigger event of backup group virtual IP address comprises: Dynamic Host Configuration Protocol server monitors described dhcp client and sends request message.
3, method according to claim 1 is characterized in that, is carried out the step of described monitoring, selection and distribution by the DHCP relay equipment of network side;
Described monitoring to dhcp client distributes the step of the trigger event of backup group virtual IP address comprises: the DHCP relay monitoring of equipment is sent affirmation message to described dhcp client to Dynamic Host Configuration Protocol server.
4, method according to claim 1 is characterized in that, this method further comprises: the function that the DHCP message was monitored and handled in the access layer equipment support that connects DHCP relay equipment and dhcp client is set;
Carry out the step of described monitoring, selection and distribution by the described access layer equipment of network side;
Described monitoring to dhcp client distributes the step of the trigger event of backup group virtual IP address comprises: described access layer equipment monitors DHCP relay equipment and sends affirmation message to described dhcp client.
According to claim 1,2,3 or 4 described methods, it is characterized in that 5, the step of the virtual IP address of a backup group of described selection comprises:
From the virtual IP address of all backup groups of preserving, select a not virtual IP address of the backup group of selected mistake;
Perhaps, the virtual IP address for each backup group of preserving is provided with corresponding array index respectively; Quantity with the backup group virtual IP address of the MAC Address of described dhcp client and preservation is carried out Hash operation, searches the identical array index of index value that obtains with Hash operation, selects the virtual IP address of the backup group corresponding with the array index that is found.
6, according to claim 3 or 4 described methods, it is characterized in that, the step of the virtual IP address of a backup group of described selection comprises: the port information of determining described dhcp client, according to the corresponding relation between this port information and client port that sets in advance and the backup group virtual IP address, from the virtual IP address of all backup groups of preserving, select the virtual IP address of a backup group.
7, method according to claim 6, it is characterized in that, the step of determining the port information of described dhcp client comprises: when receiving the request message that described dhcp client sends, the corresponding relation of the medium access control MAC address of carrying in the port of this request message of foundation reception and this request message, after monitoring described confirmation message, according to MAC Address of carrying in this confirmation message and the corresponding relation of being set up, determine the port information of described dhcp client.
8, according to any described method in the claim 1 to 4, it is characterized in that, the step that described virtual IP address with the backup group selected is distributed to dhcp client comprises: be carried at the virtual IP address of the backup group selected in the confirmation message or be carried in the message of redetermination, be sent to described dhcp client.
9, method according to claim 8 is characterized in that, when the virtual IP address of the backup group of selecting was carried in the confirmation message, this step of carrying comprised: the virtual IP address of the backup group selected is carried in the Option3 territory of confirmation message.
10, a kind of device that distributes the backup group virtual IP address is characterized in that, this device comprises memory cell, selected cell and transmission unit, wherein,
Memory cell is used to preserve the virtual IP address of all backup groups that DHCP relay equipment forms;
Selected cell, be used for behind the trigger event that monitors to dhcp client distribution backup group virtual IP address, select the virtual IP address of a backup group the virtual IP address of all backup groups of preserving from memory cell, and the virtual IP address of the backup group selected is sent to transmission unit;
Transmission unit is used to receive the virtual IP address of the backup group that selected cell sends, and the virtual IP address of this backup group is sent to dhcp client.
11, device according to claim 10 is characterized in that, this device is arranged in the Dynamic Host Configuration Protocol server, or is arranged in the DHCP relay equipment, or is arranged in the access layer equipment of supporting monitoring and processing DHCP message function.
12, a kind of system that realizes load bridging comprises: a plurality of backup groups, access layer equipment and dhcp client that Dynamic Host Configuration Protocol server, a plurality of DHCP relay equipment are formed is characterized in that this system also comprises: distribute the device of backup group virtual IP address, wherein,
The device that distributes the backup group virtual IP address, be used to preserve the virtual IP address of all backup groups that DHCP relay equipment forms, behind the trigger event that monitors to dhcp client distribution backup group virtual IP address, select the virtual IP address of a backup group, and the virtual IP address of the backup group selected is sent to dhcp client;
Dhcp client is used for sending Business Stream according to the backup group virtual IP address that receives.
13, system according to claim 12, it is characterized in that, the device of described distribution backup group virtual IP address is arranged in the Dynamic Host Configuration Protocol server, or is arranged in the DHCP relay equipment, or is arranged in the access layer equipment of supporting monitoring and processing DHCP message function.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNA2007100003902A CN101018193A (en) | 2007-01-25 | 2007-01-25 | Load distribution method and system and device for allocating the backup packet and virtual IP address |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNA2007100003902A CN101018193A (en) | 2007-01-25 | 2007-01-25 | Load distribution method and system and device for allocating the backup packet and virtual IP address |
Publications (1)
Publication Number | Publication Date |
---|---|
CN101018193A true CN101018193A (en) | 2007-08-15 |
Family
ID=38726955
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CNA2007100003902A Pending CN101018193A (en) | 2007-01-25 | 2007-01-25 | Load distribution method and system and device for allocating the backup packet and virtual IP address |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101018193A (en) |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2011054247A1 (en) * | 2009-11-05 | 2011-05-12 | 中兴通讯股份有限公司 | Method and device for managing network protocol distributary connection |
CN102638396A (en) * | 2012-03-21 | 2012-08-15 | 华为技术有限公司 | Load balancing method and device |
CN103124240A (en) * | 2013-02-07 | 2013-05-29 | 北京华为数字技术有限公司 | Gateway configuration method, gateway devices and network system |
CN103532687A (en) * | 2013-10-18 | 2014-01-22 | 上海斐讯数据通信技术有限公司 | Method and system for realizing redundant backup of dynamic host configuration protocol server |
CN106603739A (en) * | 2016-11-30 | 2017-04-26 | 瑞斯康达科技发展股份有限公司 | Configuration method, apparatus and system thereof |
CN107659952A (en) * | 2017-08-29 | 2018-02-02 | 深圳市盛路物联通讯技术有限公司 | repeater backup method and access point |
CN110855809A (en) * | 2014-06-25 | 2020-02-28 | 华为技术有限公司 | Message processing method and device |
CN113395718A (en) * | 2020-03-13 | 2021-09-14 | 烽火通信科技股份有限公司 | Network performance optimization method and system under condition that main/standby convergence layer equipment transmits back network scene |
-
2007
- 2007-01-25 CN CNA2007100003902A patent/CN101018193A/en active Pending
Cited By (16)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2011054247A1 (en) * | 2009-11-05 | 2011-05-12 | 中兴通讯股份有限公司 | Method and device for managing network protocol distributary connection |
US8842636B2 (en) | 2009-11-05 | 2014-09-23 | Zte Corporation | Method and device for managing Internet Protocol offload connection |
CN102638396A (en) * | 2012-03-21 | 2012-08-15 | 华为技术有限公司 | Load balancing method and device |
CN102638396B (en) * | 2012-03-21 | 2014-12-24 | 华为技术有限公司 | Load balancing method and device |
CN103124240A (en) * | 2013-02-07 | 2013-05-29 | 北京华为数字技术有限公司 | Gateway configuration method, gateway devices and network system |
CN103124240B (en) * | 2013-02-07 | 2016-03-30 | 北京华为数字技术有限公司 | Gateway configuration method, gateway device and network system |
CN103532687A (en) * | 2013-10-18 | 2014-01-22 | 上海斐讯数据通信技术有限公司 | Method and system for realizing redundant backup of dynamic host configuration protocol server |
CN110855809B (en) * | 2014-06-25 | 2021-10-26 | 华为技术有限公司 | Message processing method and device |
CN110855809A (en) * | 2014-06-25 | 2020-02-28 | 华为技术有限公司 | Message processing method and device |
US11405314B2 (en) | 2014-06-25 | 2022-08-02 | Huawei Technologies Co., Ltd. | Packet processing method and apparatus |
US11855891B2 (en) | 2014-06-25 | 2023-12-26 | Huawei Technologies Co., Ltd. | Packet processing method and apparatus |
CN106603739B (en) * | 2016-11-30 | 2019-07-02 | 瑞斯康达科技发展股份有限公司 | A kind of configuration method, apparatus and system |
CN106603739A (en) * | 2016-11-30 | 2017-04-26 | 瑞斯康达科技发展股份有限公司 | Configuration method, apparatus and system thereof |
CN107659952A (en) * | 2017-08-29 | 2018-02-02 | 深圳市盛路物联通讯技术有限公司 | repeater backup method and access point |
CN113395718A (en) * | 2020-03-13 | 2021-09-14 | 烽火通信科技股份有限公司 | Network performance optimization method and system under condition that main/standby convergence layer equipment transmits back network scene |
CN113395718B (en) * | 2020-03-13 | 2023-04-07 | 烽火通信科技股份有限公司 | Network performance optimization method and system under condition that main/standby convergence layer equipment transmits back network scene |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP2608491B1 (en) | Method, apparatus and system for allocating public IP address | |
CN101534329B (en) | IP address allocation method and system | |
JP5331163B2 (en) | IP address assignment system, DHCP server, and IP address assignment method | |
US9167612B2 (en) | Minimal synchronized network operations | |
CN101316236B (en) | Vrrp backup group load sharing method and router | |
CN101018193A (en) | Load distribution method and system and device for allocating the backup packet and virtual IP address | |
CN102025630A (en) | Load balancing method and load balancing system | |
JP2010504668A (en) | Resource delivery method, system, and edge server | |
CN102404418B (en) | Method, device and system for distributing IP (internet protocol) address for user terminal | |
CN102215158A (en) | Method for realizing VRRP (Virtual Router Redundancy Protocol) flow transmission and routing equipment | |
US11343224B2 (en) | Method for renewing IP address and apparatus | |
KR20060115876A (en) | Dhcp pool sharing mechanism in mobile environment | |
CN102413203A (en) | IP (Internet Protocol) address allocation method and device | |
CN101018159A (en) | Load balance method under the multi-gateway environment and DHCP server | |
CN105245629A (en) | DHCP-based host communication method and device | |
WO2009071009A1 (en) | Method for discovering network element devices automatically, device and system | |
CN106506724B (en) | Method and device for distributing port blocks | |
CN102333027A (en) | Traffic load sharing realization method based on virtual router redundancy protocol extend (VRRPE) backup group and realization apparatus thereof | |
WO2021008591A1 (en) | Data transmission method, device, and system | |
CN101217477B (en) | A method, device and router to realize DHCP lease smoothing switching in VRRP backup group | |
CN105743781B (en) | A kind of VRRP load-balancing method and device | |
CN102752413A (en) | Method for selecting DHCP (dynamic host configuration protocol) server and network equipment | |
CN106878481B (en) | Method, device and system for acquiring Internet Protocol (IP) address | |
EP2566139B1 (en) | Method and device for obtaining remote ip address | |
US20130086259A1 (en) | Method for acquiring an ip address and network access device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C02 | Deemed withdrawal of patent application after publication (patent law 2001) | ||
WD01 | Invention patent application deemed withdrawn after publication |
Open date: 20070815 |