CN103124240A - Gateway configuration method, gateway devices and network system - Google Patents

Gateway configuration method, gateway devices and network system Download PDF

Info

Publication number
CN103124240A
CN103124240A CN2013100499354A CN201310049935A CN103124240A CN 103124240 A CN103124240 A CN 103124240A CN 2013100499354 A CN2013100499354 A CN 2013100499354A CN 201310049935 A CN201310049935 A CN 201310049935A CN 103124240 A CN103124240 A CN 103124240A
Authority
CN
China
Prior art keywords
gateway
gateway device
dhcp
management
backup group
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
Application number
CN2013100499354A
Other languages
Chinese (zh)
Other versions
CN103124240B (en
Inventor
陈卫
张强
章成松
李文辉
宋真庆
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Huawei Digital Technologies Co Ltd
Original Assignee
Beijing Huawei Digital Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Huawei Digital Technologies Co Ltd filed Critical Beijing Huawei Digital Technologies Co Ltd
Priority to CN201310049935.4A priority Critical patent/CN103124240B/en
Publication of CN103124240A publication Critical patent/CN103124240A/en
Application granted granted Critical
Publication of CN103124240B publication Critical patent/CN103124240B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention provides a gateway configuration method, gateway devices and a network system. The method, the devices and the system are applied to the occasion in which a host is communicated with a Dynamic Host Configuration Protocol (DHCP) server through a plurality of gateway devices which belong to the same network segment. The method comprises steps of arranging a management backup group on a plurality of gateway devices, and determining main/backup management gateways in accordance with the priority level; arranging at least business backup groups which are provided with virtual internet protocol (IP) addresses on gateway devices, and determining respective main/backup business gateways in accordance with the priority level; and regarding main management gateways as the DHCP replay between the host and the DHCF server under the condition that the host transmits a DHCP Discover message , filling gateway fields of corresponding DHCP Offer messages and a DHCP acknowledgement character (ACK) in virtual IP addresses of appointed business backup groups, and enabling the host to configure the appointed business backup groups to default gateways. Even though the number of hosts is large, the fault gateway address of the load distribution and mutual backup is achieved based on the automatic DHCP configuration.

Description

Gateway configuration method, gateway device and network system
Technical field
The present invention relates to networking technology area, relate in particular to a kind of gateway configuration method, gateway device and network system.
Background technology
Along with quick popularize and use day by day deep of network, various value-added services have obtained widespread deployment on network, and the interruption of network short time just may affect a large number of services, causes heavy losses.Therefore, the reliability of network becomes the focus of growing interest.
For example: as shown in Figure 1, under normal conditions, the All hosts in the same network segment, Figure 1 shows that host A, host B, host C, the capital arranges an identical default route and points to gateway, is router-A shown in Fig. 1, to realize communicating by letter of each main frame and external network.When breaking down, main frame will interrupt with communicating by letter of external network when gateway (being also router-A).
VRRP(Virtual Router Redundancy Protocol, Virtual Router Redundancy Protocol) be a kind of protocol for error tolerance, can still provide highly reliable default link by VRRP when certain router breaks down, effectively avoid the network after single link occurs fault to interrupt.Create backup group based on VRRP on the set of router that can bear gateway function, namely jointly form a virtual router by a plurality of routers, different routers have different priorities in this backup group, the router that priority is the highest will become active router and bear the gateway forwards task, and the main frame in the same network segment only needs that virtual router is configured to default gateway and gets final product.
For example, as shown in Figure 2, router-A, router B and router C configure the common VRRP backup group that forms by VRRP, this VRRP backup group is a virtual router, has virtual IP(Internet Protocol, procotol) address, this virtual IP address are namely as the IP address of the set default gateway of host A, host B and host C.Wherein, router-A is the active router of this VRRP backup group, and router B and router C are the standby router of this VRRP backup group.Under normal circumstances, router-A is born business as active router, and router B and router C all can when the router-A fault, take over router-A and bear business as active router.
For the service traffics that make the user are born by different routers, thereby realize load balancing, can create a plurality of VRRP backup groups on a plurality of routers, make each router can be as active router in a VRRP backup group, in another VRRP backup group as standby router.Like this, many routers will form a plurality of VRRP backup groups simultaneously, each VRRP backup group comprises an active router and several standby routers, the active router of each VRRP backup group is different, to be also same router in the priority of each VRRP backup group different and at its VRRP backup group with limit priority as active router.
As shown in Figure 3, have three VRRP backup groups to exist:
VRRP backup group 1: corresponding virtual router 1, have virtual ip address 10.1.1.111, router-A is as active router, and router B and router C are as standby router.
VRRP backup group 2: corresponding virtual router 2, have virtual ip address 10.1.1.112, router B is as active router, and router-A and router C are as standby router.
VRRP backup group 3: corresponding virtual router 3, have virtual ip address 10.1.1.113, router C is as active router, and router-A and router B are as standby router.
Under this scene, be set to respectively virtual router 1,2 and 3 virtual address by the default gateway with the main frame in local area network (LAN), can reach and share service traffics and the purpose of backup mutually.
But under the larger scene of host number, the workload of manual configuration gateway address is too large, can't easily not only realize load balancing but also mutually back up.
Summary of the invention
In view of this, problem to be solved by this invention is to provide a kind of gateway configuration method, gateway device and network system, can under the larger scene of terminal equipment (main frame) quantity, easily carry out gateway configuration so that a plurality of gateway had both been realized load balancing and backup mutually.
In order to address the above problem, according to one embodiment of the invention, a kind of gateway configuration method is provided, it is applied to the scene that main frame is communicated by letter with Dynamic Host Configuration Protocol server by a plurality of gateway devices that belong to a network segment, and comprise: at management backup group of described a plurality of gateway device deploy, so that described management backup group comprises at least two gateway devices and determines main management gateway and standby management gateway by the priority of the gateway device that comprises; In at least two service backup groups of described a plurality of gateway device deploy, so that described service backup group is assigned separately a virtual ip address, comprises at least two gateway devices and determines main business gateway and standby Service Gateway by the priority of the gateway device that comprises; The DHCP Discover message that described a plurality of gateway device Receiving Host sends, and only as the gateway device of described main management gateway with described DHCP Discover message repeating to Dynamic Host Configuration Protocol server; Gateway device as described main management gateway receives the DHCP Offer message that described dhcp server response sends in described DHCP Discover message, gateway field in described DHCP Offer message is extended this as the virtual ip address of the specified services backup group in described at least two service backup groups, and the DHCP Offer message repeating that will fill in after gateway field is given described main frame; Gateway device as described main management gateway receives the DHCP Request message that described response of host sends in described DHCP Offer message, and forwards it to described Dynamic Host Configuration Protocol server; Gateway device as described main management gateway receives the DHCP ACK message that described dhcp server response sends in described DHCP Request message, gateway field in described DHCP ACK message is extended this as the virtual ip address of described specified services backup group, and the DHCP ACK message repeating after filling in is configured to its default gateway with the described main frame of instruction with described specified services backup group to described main frame.
For above-mentioned gateway configuration method, in a kind of possible implementation, in the step of one of described a plurality of gateway device deploy management backup group, described a plurality of gateway devices are consulted priority in each comfortable described management backup group by the VRRP protocol massages.
For above-mentioned gateway configuration method, in a kind of possible implementation, in the step of at least two service backup groups of described a plurality of gateway device deploy, described a plurality of gateway devices are set priority in each comfortable each described service backup group according to operator's manual configuration.
For above-mentioned gateway configuration method, in a kind of possible implementation, in the step of the virtual ip address of the specified services backup group in the gateway device as described main management gateway extends this as described at least two service backup groups with the gateway field in described DHCP Offer message, select one of described at least two service backup groups as described specified services backup group as the gateway device of described main management gateway based on predetermined algorithm.Wherein, described predetermined algorithm can be hash algorithm.
For above-mentioned gateway configuration method, in a kind of possible implementation, also comprise: when the ARP request that receives described main frame, only as the described ARP request of the gateway device response of main business gateway in described specified services backup group, so that the follow-up business flow of described main frame is forwarded by this gateway device.
In order to solve the problems of the technologies described above, according to another embodiment of the present invention, a kind of gateway device is provided, it comprises: management group deployment unit, be used for making described gateway device and the management backup group of the common formation of other gateway device that belongs in a network segment, so that described management backup group comprises at least two gateway devices and determines main management gateway and standby management gateway by the priority of the gateway device that comprises; The service groups deployment unit, be used for making described gateway device and at least two service backup groups of the common formation of described other gateway device, so that described service backup group is assigned separately a virtual ip address, comprises at least two gateway devices and determines main business gateway and standby Service Gateway by the priority of the gateway device that comprises; And management gateway performance element, be used for when described gateway device receives the DHCP Discover message of main frame transmission, if described management group deployment unit is defined as the main management gateway with described gateway device, carry out following functions: with described DHCP Discover message repeating to Dynamic Host Configuration Protocol server; Receive the DHCP Offer message that described dhcp server response sends in described DHCP Discover message, gateway field in described DHCP Offer message is extended this as the virtual ip address of the specified services backup group in described at least two service backup groups, and the DHCP Offer message repeating that will fill in after gateway field is given described main frame; Receive the DHCP Request message that described response of host sends in described DHCP Offer message, and forward it to described Dynamic Host Configuration Protocol server; And receive the DHCP ACK message that described dhcp server response sends in described DHCP Request message, gateway field in described DHCP ACK message is extended this as the virtual ip address of described specified services backup group, and the DHCP ACK message repeating after filling in is configured to its default gateway with the described main frame of instruction with described specified services backup group to described main frame.
For above-mentioned gateway device, in a kind of possible implementation, described management group deployment unit makes described gateway device and described other gateway device consult priority in each comfortable described management backup group by the VRRP protocol massages.
For above-mentioned gateway device, in a kind of possible implementation, described service groups deployment unit is set the priority of described gateway device in each described service backup group according to operator's manual configuration.
For above-mentioned gateway device, in a kind of possible implementation, it is characterized in that, described management gateway function performance element selects one of described at least two service backup groups as described specified services backup group based on predetermined algorithm.Wherein, described predetermined algorithm can be hash algorithm.
For above-mentioned gateway device, in a kind of possible implementation, described management gateway performance element also is used for, when described gateway device receives the DHCP Discover message of main frame transmission, if described management group deployment unit is defined as standby management gateway with described gateway device, make described gateway device directly abandon described DHCP Discover message.
For above-mentioned gateway device, in a kind of possible implementation, described gateway device is router.
In order to solve the problems of the technologies described above, according to still another embodiment of the invention, provide a kind of network system, comprise a plurality of main frames and a plurality of above-mentioned gateway device.
For above-mentioned network system, in a kind of possible implementation, also comprise switch, in order to connect described a plurality of main frame and described gateway device.
By can bear the function of DHCP relay in managing backup groups in a plurality of gateway device deploy and only managing backup group as the gateway device of main management gateway, even under the larger scene of host number, also can be based on the default gateway address of the automatic configure host of DHCP, not only to realize load balancing but also mutually back up between different entity gateway devices according to gateway configuration method, gateway device, network system that the embodiment of the present invention provides.
According to below with reference to accompanying drawing to detailed description of illustrative embodiments, it is clear that further feature of the present invention and aspect will become.
Description of drawings
The Figure of description that is included in specification and consists of the part of specification shows exemplary embodiment of the present invention, feature and aspect together with specification, and is used for explaining principle of the present invention.
Fig. 1 is the local area network building schematic diagram;
Fig. 2 is the local area network building schematic diagram based on VRRP;
Fig. 3 is the local area network building schematic diagram of realizing load balancing based on VRRP;
Fig. 4 is for using the network architecture schematic diagram of DHCP;
Fig. 5 is the flow chart according to the gateway configuration method of the embodiment of the present invention;
Fig. 6 is the schematic diagram according to an application scenarios of the gateway configuration method of the embodiment of the present invention;
Fig. 7 is the structured flowchart according to the gateway device of the embodiment of the present invention; And
Fig. 8 is the structured flowchart of gateway device according to another embodiment of the present invention.
Embodiment
Describe various exemplary embodiments of the present invention, feature and aspect in detail below with reference to accompanying drawing.The identical same or analogous element of Reference numeral presentation function in accompanying drawing.Although accompanying drawing unless otherwise indicated, needn't be drawn in proportion in the various aspects of embodiment shown in the drawings.
Here special-purpose word " exemplary " means " as example, embodiment or illustrative ".Here needn't be interpreted as being better than or being better than other embodiment as " exemplary " illustrated any embodiment.
In addition, for better explanation the present invention, provided numerous details in embodiment hereinafter.It will be appreciated by those skilled in the art that does not have these details, and the present invention can implement equally.In the other example, method, means, element and the circuit known for everybody are not described in detail, so that highlight purport of the present invention.
For a better understanding of the present invention, existing to DHCP(Dynamic Host Configuration Protocol, DHCP) describe:
DHCP is from BOOTP(Bootstrap Protocol, Bootstrap Protocol) develop, adopt customer end/server mode as shown in Figure 4, be used for to dhcp client dynamic IP address allocation and other relevant information.Wherein, comprise in network under the scene of DHCP relay of the network equipments such as being generally router or three-tier switch, the process of default gateway ip address that dhcp client is retrieved as its dynamic assignment is as follows:
1, the discovery stage: dhcp client sends DHCP Discover broadcasting packet to search Dynamic Host Configuration Protocol server to network, and DHCP relay receives this DHCP Discover message and it is transmitted to Dynamic Host Configuration Protocol server;
2, provide the stage: after Dynamic Host Configuration Protocol server receives DHCP Discover message, select an IP address that is not assigned with from the address pool of oneself, also then send to this dhcp client the DHCP Offer message that comprises this IP address and other configuration information, DHCP relay is given this dhcp client with this DHCP Offer message repeating;
3, the choice phase: if many Dynamic Host Configuration Protocol server are sent DHCP Offer message to this dhcp client, this dhcp client receives only first DHCP Offer message, also then sends DHCP Request broadcasting packet to network, take request as first DHCP Offer message sender's Dynamic Host Configuration Protocol server as its distributing IP address, forward this DHCP Request message by DHCP relay;
4, the stage of recognition: after receiving this DHCP Request message as first DHCP Offer message sender's Dynamic Host Configuration Protocol server, send to this dhcp client and comprise IP address that it provides and the DHCP ACK message of other configuration information, forward this DHCP ACK message by DHCP relay; And
5, configuration phase: this dhcp client configures its gateway address according to message content after receiving this DHCP ACK message.
Above-mentioned various DHCP messages such as DHCP Discover message, DHCP Offer message, DHCP Request message, DHCP ACK message etc. are UDP(User Datagram Protocol, User Datagram Protocol) message.
The gateway configuration method, gateway device and the network system that provide according to the embodiment of the present invention namely are based on DHCP and realize gateway configuration.As shown in Figure 5, the gateway configuration method according to the embodiment of the present invention comprises:
S1 is at management backup group of a plurality of gateway device deploy that belong to a network segment, so that described management backup group comprises at least two gateway devices and determines main management gateway and standby management gateway by the priority of the gateway device that comprises;
S2, in at least two service backup groups of described a plurality of gateway device deploy, so that described service backup group is assigned separately a virtual ip address, comprises at least two gateway devices and determines main business gateway and standby Service Gateway by the priority of the gateway device that comprises;
S3, the DHCP Discover message that described a plurality of gateway device Receiving Host sends, and only as the gateway device (being designated hereinafter simply as the main management gateway device) of described main management gateway as DHCP relay with described DHCP Discover message repeating to Dynamic Host Configuration Protocol server, and other gateway device can directly abandon received DHCP Discover message;
S4, described main management gateway device receives the DHCP Offer message that described dhcp server response sends in described DHCP Discover message, gateway field in described DHCP Offer message is extended this as the virtual ip address of the specified services backup group in described at least two service backup groups, and the DHCP Offer message repeating that will fill in after gateway field is given described main frame;
S5, described main management gateway device receives the DHCP Request message that described response of host sends in described DHCP Offer message, and forwards it to described Dynamic Host Configuration Protocol server; And
S6, described main management gateway device receives the DHCP ACK message that described dhcp server response sends in described DHCP Request message, gateway field in described DHCP ACK message is extended this as the virtual ip address of described specified services backup group, and the DHCP ACK message repeating after filling in is configured to its default gateway with the described main frame of instruction with described specified services backup group to described main frame.
In a kind of possible implementation, based on the VRRP agreement at described a plurality of gateway device deploy backup groups.For example, described a plurality of gateway device can be consulted priority in each comfortable described management backup group by the VRRP protocol massages.In addition, based on the VRRP agreement during in a plurality of service backup group of described a plurality of gateway device deploy, can set priority in each comfortable each described service backup group of described a plurality of gateway device according to operator's manual configuration, to guarantee realizing sharing business load on all entity gateway devices corresponding with the virtual gateway of each service backup group.
In a kind of possible implementation, in S4, described main management gateway device selects one of described at least two service backup groups as described specified services backup group based on the pre-defined algorithm of for example hash algorithm.Like this, distribute by certain algorithm as long as the virtual ip address of the default gateway of main frame is distributed in assurance, give the different different gateways of host assignment, can guarantee that service traffics realize load balancing between different gateways.
In addition, after the virtual ip address of the default gateway that has configured particular host by execution S3 ~ S6, if there is the service traffics demand in this main frame, this main frame is usually with ARP(Address Resolution Protocol of first broadcast transmission, address resolution protocol) request.In this case, only the gateway device (being designated hereinafter simply as the main business gateway device) as main business gateway in the specified services backup group responds this ARP request, so that the follow-up business flow of this main frame is forwarded by this main business gateway device, wherein, the virtual ip address of described specified services backup group is configured as the default gateway address of this main frame.
And, need to prove: 1) although Fig. 5 illustrates and first carries out S1, carries out S2 again, but those skilled in the art should be able to understand, also can first carry out S2, carry out S1 again, carry out even simultaneously S1, S2, as long as can set up management backup group and at least two service backup groups on a plurality of gateway devices of a network segment belonging to; And 2) although illustrating, Fig. 5 carries out S3 ~ S6 once, but those skilled in the art should be able to understand, on the basis of having set up a management backup group and at least two service backup groups, can repeat S3 ~ S6 fully, so that being carried out default gateway, any main frame in this network segment automatically configures.
By can bear the function of DHCP relay in managing backup groups in a plurality of gateway device deploy and only managing backup group as the gateway device of main management gateway, even under the larger scene of host number, also can be based on the default gateway address of the automatic configure host of DHCP, not only to realize load balancing but also mutually back up between different entity gateway devices according to the gateway configuration method that the embodiment of the present invention provides.
Fig. 6 illustrates the schematic diagram according to an application scenarios of the gateway configuration method of the embodiment of the present invention.As shown in Figure 6, router RT1, the RT2 as the gateway device that belong to the same network segment (for example, belonging to same VLAN) are connected with main frame 1, main frame 2, main frame 3 via switch, and all can communicate with Dynamic Host Configuration Protocol server.Wherein, the real IP address of supposing RT1, RT2 is respectively 100.1.1.1,100.1.1.2.
At first, S1, the S2 by execution graph 5 sets up a management backup group and two service backup groups as shown in the table on RT1, RT2.
Figure BDA00002832039000111
As above shown in the table, the management backup group can not have virtual ip address.RT1, the RT2 priority in the management backup group is respectively 200,150.Therefore, the high RT1 of management backup group medium priority is the main management gateway device, and the low RT2 of management backup group medium priority is standby management gateway equipment.Wherein, standby management gateway equipment can be promoted to the main management gateway device when the main management gateway device failure, and is reduced to standby management gateway equipment when former main management gateway device failure is recovered.
Service backup group 1 is assigned virtual ip address 100.1.1.3.RT1, the RT2 priority in the management backup group is respectively 120,100.Therefore, be the main business gateway device of service backup group 1 at the higher RT1 of service backup group 1 medium priority, be the standby Service Gateway equipment of service backup group 1 at the lower RT2 of service backup group 1 medium priority.Wherein, standby Service Gateway equipment can be promoted to the main business gateway device when the main business gateway device failure, and is reduced to standby Service Gateway equipment when former main business gateway device failure is recovered.
Service backup group 2 is assigned virtual ip address 100.1.1.4.RT1, the RT2 priority in the management backup group is respectively 100,120.Therefore, be the standby Service Gateway equipment of service backup group 2 at the lower RT1 of service backup group 2 medium priorities, be the main business gateway device of service backup group 2 at the higher RT2 of service backup group 2 medium priorities.
Need to prove, although represent priority as above with the numerical value form, those skilled in the art should be able to understand, the setting means of priority should be not limited to this, as long as can determine the active and standby relation of entity gateway device in backup group according to priority.In addition, the priority of gateway device in the management backup group can independently be decided by the VRRP message negotiation by gateway device; Yet the priority of gateway device in the service backup group realizes sharing business load preferably by operator's manual configuration to satisfy.
Then, on the basis of as above having set up management backup group, service backup group 1, service backup group 2, can configure by execution S3 ~ S6 shown in Figure 5 the default gateway of each main frame.Details are as follows as example take the default gateway of configure host 1:
S3, when main frame 1 is initiated DHCP Discover message, RT1 and RT2 can receive this DHCP Discover message, but only have the RT1 as the main management gateway device to forward this DHCP Discover message to Dynamic Host Configuration Protocol server as DHCP relay, and RT2 can select directly to abandon this DHCP Discover message.
S4, RT1 with this DHCP Discover message repeating after Dynamic Host Configuration Protocol server, Dynamic Host Configuration Protocol server is responded DHCP Offer message.After RT1 receives this DHCP Offer message, gateway field in this DHCP Offer message is extended this as the virtual ip address of service backup group 1 or service backup group 2, for example can fill in the virtual ip address 100.1.1.3 of service backup group 1, and the DHCP Offer message repeating after filling in is to main frame 1.
After S5, main frame 1 are received this DHCP Offer message, initiate DHCP Request request.As the RT1 of DHCP relay with this DHCP Request message repeating to Dynamic Host Configuration Protocol server.
After S6, Dynamic Host Configuration Protocol server are received this DHCP Request message, reply DHCP ACK message.RT1 as DHCP relay extends this as determined virtual ip address 100.1.1.3 in S4 with the gateway field in this DHCP ACK message, and the DHCP ACK message repeating after filling in is to main frame 1.After main frame 1 is received this DHCP ACK message, confirm the default gateway address as oneself with the virtual ip address 100.1.1.3 of service backup group 1.
So far, the configuration of the default gateway of main frame 1 finishes.Subsequently, if when there is the business datum demand in main frame 1, with first broadcast transmission ARP request.At this moment, because the main business gateway device of service backup group 1 is RT1, therefore reply this arp reply by RT1, so that the follow-up business flow of main frame 1 forwards by RT1.
Similarly, can again carry out S3 ~ S6 with the default gateway of configure host 2.S3 ~ S6 was different from last time carrying out, and for the consideration of load balancing, can the gateway field of DHCP Offer message be extended this as the virtual ip address 100.1.1.4 of service backup group 2 in S4.Like this, the ARP of follow-up main frame 2 request will be responded by the RT2 as the main business gateway device of service backup group 2, and the service traffics of main frame 2 will forward by RT2.
In addition, in the above-mentioned gateway configuration method according to the embodiment of the present invention, principle according to VRRP, the main gateway device (comprising main management gateway device, main business gateway device) of each backup group (comprise management backup group, service backup group) all can be with certain cycle, send the VRRP message with the mode of multicast other gateway device in the group, exists to inform it.The standby gateway device VRRP message that (comprising standby management gateway equipment, standby Service Gateway equipment), the real-time listening main gateway device sent, and when not hearing described VRRP message in Preset Time, the standby gateway device that priority is the highest is promoted to main gateway device.
Tool is sayed it, and when main gateway device worked, it can send a VRRP multicast message at set intervals, and it is in normal operating conditions to inform standby gateway device.If standby gateway device does not receive the VRRP multicast message from main gateway device for a long time, own state is converted to main gateway device.When many standby gateway devices are arranged in a backup group, in the manner described above, might produce a plurality of host exchanges.At this moment the priority in the VRRP multicast message that each main gateway device will be more received and own local priority, if local priority is less than the priority in the VRRP multicast message, the state with oneself is converted to standby gateway device, otherwise keeps the state of oneself constant.By such process, can the standby gateway device that this backup in-group priority is the highest be promoted to the new main gateway device of this backup group, namely realized the backup functionality of VRRP.
Still take scene shown in Figure 6 as example, when RT2 breaks down, be in the service backup group 2 of main business gateway device at RT2, will can not receive the VRRP message of RT2 transmission as the RT1 of its standby Service Gateway equipment, therefore, RT1 changes the main business gateway device of service backup group 2 into.In case RT2 recovers from fault, because the priority of RT2 in service backup group 2 is higher, RT2 will become the main business gateway device of service backup group 2 and RT1 will revert to the standby Service Gateway equipment of service backup group 2 again.Therebetween, that main frame 2 is faced is the virtual ip address 100.1.1.4 of service backup group 2 all the time, to the not perception of active and standby conversion in above-mentioned service backup group 2.
To sum up, in the above-mentioned gateway configuration method according to the embodiment of the present invention, each service backup group keeps higher independence, thereby has accelerated the fault perception, has further promoted the reliability of network system.
In addition, according to the embodiment of the present invention a kind of gateway device also is provided, can be applicable to the situation that a plurality of gateway devices belong to the same network segment.Fig. 7 shows the structured flowchart of this gateway device.As shown in Figure 7, gateway device 700 comprises management group deployment unit 710, service groups deployment unit 720, management gateway performance element 730, wherein:
Management group deployment unit 710 is used for making gateway device 700 and n other gateway device 7001 ~ 700n that belongs in a network segment jointly to form a management backup group, so that described management backup group comprises at least two gateway devices and determines main management gateway and standby management gateway by the priority of the gateway device that comprises.Wherein, n is the integer more than or equal to 1.
Service groups deployment unit 720 is used for making at least two service backup groups of gateway device 700 and the common formation of other gateway device 7001 ~ 700n, so that described service backup group is assigned separately a virtual ip address, comprises at least two gateway devices and determines main business gateway and standby Service Gateway by the priority of the gateway device that comprises.
Management gateway performance element 730 is used for if management group deployment unit 710 is defined as the main management gateway with gateway device 700, carrying out following functions when gateway device 700 receives the DHCP Discover message of main frame 600 transmissions:
With described DHCP Discover message repeating to Dynamic Host Configuration Protocol server 500;
Receive the DHCP Offer message that Dynamic Host Configuration Protocol server 500 sends in response to described DHCP Discover message, gateway field in described DHCP Offer message is extended this as the virtual ip address of the specified services backup group in described at least two service backup groups, and will fill in DHCP Offer message repeating after gateway field to main frame 600;
The DHCP Request message that Receiving Host 600 sends in response to described DHCP Offer message, and forward it to Dynamic Host Configuration Protocol server 500; And
Receive the DHCP ACK message that Dynamic Host Configuration Protocol server 500 sends in response to described DHCP Request message, gateway field in described DHCP ACK message is extended this as the virtual ip address of described specified services backup group, and the DHCP ACK message repeating after filling in is configured to its default gateway with instruction main frame 600 with described specified services backup group to main frame 600.
In a kind of possible implementation, comprising a plurality of gateway device deploy backup groups of gateway device 700 and other gateway device 7001 ~ 700n based on the VRRP agreement.For example, management group deployment unit 710 makes the interior priority of gateway device 700 and each comfortable described management backup group of other gateway device 7001 ~ 700n autonomous negotiating by the VRRP protocol massages.In addition, based on the VRRP agreement when comprising a plurality of service backup group of a plurality of gateway device deploy of gateway device 700 and other gateway device 7001 ~ 700n, service groups deployment unit 720 is preferably set the priority of gateway device 700 in each described service backup group according to operator's manual configuration, to guarantee realizing sharing business load on gateway device 700 and other gateway device 7001 ~ 700n.
In a kind of possible implementation, management gateway function performance element 730 selects one of described at least two service backup groups as described specified services backup group based on the pre-defined algorithm of for example hash algorithm.Like this, as long as guarantee that the default gateway ip address of distributing to main frame distributes by certain algorithm, namely give the different different gateways of host assignment as far as possible, realize load balancing with regard to the guaranteed service flow between the different entities gateway device.
In a kind of possible implementation, management gateway function performance element 730 also is used for, when gateway device 700 receives the DHCP Discover message of main frame 600 transmissions, if management group deployment unit 710 is defined as standby management gateway with gateway device 700, make gateway device 700 directly abandon described DHCP Discover message.
Gateway device according to the above embodiment of the present invention can be the router in scene shown in Figure 6, comprises RT1 and RT2.
Need to prove, be not limited to router according to the gateway device of the embodiment of the present invention, it can be the network equipment or the main process equipment that possesses arbitrarily routing function, for example have three layers of function of exchange the network switch, fire compartment wall, opened main process equipment of routing function etc. by software.
To sum up, by can bear the function of DHCP relay in managing backup groups in a plurality of gateway device deploy and only managing backup group as the gateway device of main management gateway, even under the larger scene of host number, also can be based on the default gateway address of the automatic configure host of DHCP, not only to realize load balancing but also mutually back up between different entity gateway devices according to the gateway device that the embodiment of the present invention provides.
The embodiment of the present invention also provides a kind of network system, and the structure of this network system can comprise a plurality of terminal equipments (main frame), switch as shown in Figure 6, and a plurality of gateway devices that provide according to the embodiment of the present invention also are provided.
The structural representation of another gateway device 800 of providing according to the embodiment of the present invention is provided Fig. 8, and the specific embodiment of the invention is not done restriction to the specific implementation of gateway device.As shown in Figure 8, this gateway device 800 can comprise:
Processor (processor) 810, communication interface (Communications Interface) 820, memory (memory) 830 and communication bus 840.Wherein:
Processor 810, communication interface 820 and memory 830 are completed mutual communication by communication bus 840.
Communication interface 820 is used for and net element communication such as client etc.
Processor 810 is used for executive program 832, specifically can carry out the correlation step in above-mentioned embodiment of the method shown in Figure 5.
Particularly, program 832 can comprise program code, and described program code comprises computer-managed instruction.
Processor 810 may be a central processor CPU, or specific integrated circuit ASIC(Application Specific Integrated Circuit), or be configured to implement one or more integrated circuits of the embodiment of the present invention.
Memory 830 is used for depositing program 832.Memory 830 may comprise the high-speed RAM memory, also may also comprise nonvolatile memory (non-volatile memory), for example at least one magnetic disc store.Program 832 specifically can be used for processor 810 is carried out:
At management backup group of a plurality of gateway device deploy that belong to a network segment, so that described management backup group comprises at least two gateway devices and determines main management gateway and standby management gateway by the priority of the gateway device that comprises;
In at least two service backup groups of described a plurality of gateway device deploy, so that described service backup group is assigned separately a virtual ip address, comprises at least two gateway devices and determines main business gateway and standby Service Gateway by the priority of the gateway device that comprises;
The DHCP Discover message that described a plurality of gateway device Receiving Host sends, and only as the gateway device of described main management gateway with described DHCP Discover message repeating to Dynamic Host Configuration Protocol server;
Gateway device as described main management gateway receives the DHCP Offer message that described dhcp server response sends in described DHCP Discover message, gateway field in described DHCP Offer message is extended this as the virtual ip address of the specified services backup group in described at least two service backup groups, and the DHCP Offer message repeating that will fill in after gateway field is given described main frame;
Gateway device as described main management gateway receives the DHCP Request message that described response of host sends in described DHCP Offer message, and forwards it to described Dynamic Host Configuration Protocol server;
Gateway device as described main management gateway receives the DHCP ACK message that described dhcp server response sends in described DHCP Request message, gateway field in described DHCP ACK message is extended this as the virtual ip address of described specified services backup group, and the DHCP ACK message repeating after filling in is configured to its default gateway with the described main frame of instruction with described specified services backup group to described main frame.
The those skilled in the art can be well understood to, and is the convenience described and succinct, and the specific works process of the equipment of foregoing description and module can be described with reference to the corresponding process in preceding method embodiment, does not repeat them here.
Those of ordinary skills can recognize, unit and the method step of each example of describing in conjunction with embodiment disclosed herein can be realized with the combination of electronic hardware or computer software and electronic hardware.These functions are carried out with hardware or software mode actually, depend on application-specific and the design constraint of technical scheme.The professional and technical personnel can specifically should be used for realizing described function with distinct methods to each, but this realization should not thought and exceeds scope of the present invention.
If described function realizes with the form of SFU software functional unit and during as independently production marketing or use, can be stored in a computer read/write memory medium.Based on such understanding, the part that technical scheme of the present invention contributes to prior art in essence in other words or the part of this technical scheme can embody with the form of software product, this computer software product is stored in a storage medium, comprise that some instructions are with so that a computer equipment (can be personal computer, server, the perhaps network equipment etc.) carry out all or part of step of the described method of each embodiment of the present invention.And aforesaid storage medium comprises: the various media that can be program code stored such as USB flash disk, portable hard drive, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disc or CD.
Above execution mode only is used for explanation the present invention; and be not limitation of the present invention; the those of ordinary skill in relevant technologies field; without departing from the spirit and scope of the present invention; can also make a variety of changes and modification; therefore all technical schemes that are equal to also belong to category of the present invention, and scope of patent protection of the present invention should be defined by the claims.

Claims (15)

1. a gateway configuration method, is characterized in that, the method is applied to the scene that main frame is communicated by letter with Dynamic Host Configuration Protocol server by a plurality of gateway devices that belong to a network segment, and the method comprises:
At management backup group of described a plurality of gateway device deploy, so that described management backup group comprises at least two gateway devices and determines main management gateway and standby management gateway by the priority of the gateway device that comprises;
In at least two service backup groups of described a plurality of gateway device deploy, so that described service backup group is assigned separately a virtual ip address, comprises at least two gateway devices and determines main business gateway and standby Service Gateway by the priority of the gateway device that comprises;
The DHCP Discover message that described a plurality of gateway device Receiving Host sends, and only as the gateway device of described main management gateway with described DHCP Discover message repeating to Dynamic Host Configuration Protocol server;
Gateway device as described main management gateway receives the DHCP Offer message that described dhcp server response sends in described DHCP Discover message, gateway field in described DHCP Offer message is extended this as the virtual ip address of the specified services backup group in described at least two service backup groups, and the DHCP Offer message repeating that will fill in after gateway field is given described main frame;
Gateway device as described main management gateway receives the DHCP Request message that described response of host sends in described DHCP Offer message, and forwards it to described Dynamic Host Configuration Protocol server;
Gateway device as described main management gateway receives the DHCP ACK message that described dhcp server response sends in described DHCP Request message, gateway field in described DHCP ACK message is extended this as the virtual ip address of described specified services backup group, and the DHCP ACK message repeating after filling in is configured to its default gateway with the described main frame of instruction with described specified services backup group to described main frame.
2. gateway configuration method according to claim 1, is characterized in that, in the step of a management backup group of described a plurality of gateway device deploy,
Described a plurality of gateway device is consulted priority in each comfortable described management backup group by the VRRP protocol massages.
3. gateway configuration method according to claim 1 and 2, is characterized in that, in the step of at least two service backup groups of described a plurality of gateway device deploy,
Described a plurality of gateway device is set priority in each comfortable each described service backup group according to operator's manual configuration.
4. the described gateway configuration method of any one according to claim 1 to 3, it is characterized in that, in the step of the virtual ip address of the specified services backup group in the gateway device as described main management gateway extends this as described at least two service backup groups with the gateway field in described DHCP Offer message
Gateway device as described main management gateway selects one of described at least two service backup groups as described specified services backup group based on predetermined algorithm.
5. gateway configuration method according to claim 4, is characterized in that, described predetermined algorithm is hash algorithm.
6. the described gateway configuration method of any one according to claim 1 to 5, is characterized in that, also comprises:
When the ARP request that receives described main frame, only as the described ARP request of the gateway device response of main business gateway in described specified services backup group, so that the follow-up business flow of described main frame is forwarded by this gateway device.
7. a gateway device, is characterized in that, comprising:
Management group deployment unit, be used for making described gateway device and the management backup group of the common formation of other gateway device that belongs in a network segment, so that described management backup group comprises at least two gateway devices and determines main management gateway and standby management gateway by the priority of the gateway device that comprises;
The service groups deployment unit, be used for making described gateway device and at least two service backup groups of the common formation of described other gateway device, so that described service backup group is assigned separately a virtual ip address, comprises at least two gateway devices and determines main business gateway and standby Service Gateway by the priority of the gateway device that comprises; And
The management gateway performance element is used for if described management group deployment unit is defined as the main management gateway with described gateway device, carrying out following functions when described gateway device receives the DHCP Discover message of main frame transmission:
With described DHCP Discover message repeating to Dynamic Host Configuration Protocol server;
Receive the DHCP Offer message that described dhcp server response sends in described DHCP Discover message, gateway field in described DHCP Offer message is extended this as the virtual ip address of the specified services backup group in described at least two service backup groups, and the DHCP Offer message repeating that will fill in after gateway field is given described main frame;
Receive the DHCP Request message that described response of host sends in described DHCP Offer message, and forward it to described Dynamic Host Configuration Protocol server; And
Receive the DHCP ACK message that described dhcp server response sends in described DHCP Request message, gateway field in described DHCP ACK message is extended this as the virtual ip address of described specified services backup group, and the DHCP ACK message repeating after filling in is configured to its default gateway with the described main frame of instruction with described specified services backup group to described main frame.
8. gateway device according to claim 7, is characterized in that, described management group deployment unit makes described gateway device and described other gateway device consult priority in each comfortable described management backup group by the VRRP protocol massages.
9. according to claim 7 or 8 described gateway devices, is characterized in that, described service groups deployment unit is set the priority of described gateway device in each described service backup group according to operator's manual configuration.
10. the described gateway device of any one according to claim 7 to 9, is characterized in that, described management gateway function performance element selects one of described at least two service backup groups as described specified services backup group based on predetermined algorithm.
11. gateway device according to claim 10 is characterized in that, described predetermined algorithm is hash algorithm.
12. the described gateway device of any one according to claim 7 to 11, it is characterized in that, described management gateway performance element also is used for, when described gateway device receives the DHCP Discover message of main frame transmission, if described management group deployment unit is defined as standby management gateway with described gateway device, make described gateway device directly abandon described DHCP Discover message.
13. according to claim 7 to 12, the described gateway device of any one, is characterized in that, described gateway device is router.
14. a network system comprises a plurality of main frames, it is characterized in that, also comprises the described gateway device of any one in a plurality of claims 7 to 13.
15. network system according to claim 14 is characterized in that, also comprises switch, in order to connect described a plurality of main frame and described gateway device.
CN201310049935.4A 2013-02-07 2013-02-07 Gateway configuration method, gateway device and network system Active CN103124240B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310049935.4A CN103124240B (en) 2013-02-07 2013-02-07 Gateway configuration method, gateway device and network system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310049935.4A CN103124240B (en) 2013-02-07 2013-02-07 Gateway configuration method, gateway device and network system

Publications (2)

Publication Number Publication Date
CN103124240A true CN103124240A (en) 2013-05-29
CN103124240B CN103124240B (en) 2016-03-30

Family

ID=48455100

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310049935.4A Active CN103124240B (en) 2013-02-07 2013-02-07 Gateway configuration method, gateway device and network system

Country Status (1)

Country Link
CN (1) CN103124240B (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106972958A (en) * 2017-03-13 2017-07-21 海信集团有限公司 Gateway device collocation method, apparatus and system
WO2019010778A1 (en) * 2017-07-13 2019-01-17 深圳市盛路物联通讯技术有限公司 Backup method and system for internet of things repeater
CN110651450A (en) * 2018-04-27 2020-01-03 华为技术有限公司 Network and network management method
CN111431774A (en) * 2020-03-10 2020-07-17 华为技术有限公司 Communication method and communication system based on master router and slave router networking
CN111447568A (en) * 2020-03-27 2020-07-24 深圳桔子智能科技发展有限公司 Gateway competition method, system and gateway
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
US20220141108A1 (en) * 2018-10-19 2022-05-05 Comcast Cable Communications, Llc Prioritized Message Routing
CN116781494A (en) * 2023-08-17 2023-09-19 天津南大通用数据技术股份有限公司 Main-standby switching judgment method based on existing network equipment
WO2024045765A1 (en) * 2022-08-30 2024-03-07 中兴通讯股份有限公司 Slave gateway configuration method, electronic device and computer-readable storage medium

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP3981189A4 (en) * 2019-06-07 2023-04-26 ARRIS Enterprises LLC Dynamic load balancing of gateway access points

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6768743B1 (en) * 1999-10-26 2004-07-27 3Com Corporation Method and system for address server redirection for multiple address networks
CN1533108A (en) * 2003-03-21 2004-09-29 ��Ϊ�������޹�˾ Method for realizing dynamic gateway load sharing and backup
CN101018193A (en) * 2007-01-25 2007-08-15 杭州华为三康技术有限公司 Load distribution method and system and device for allocating the backup packet and virtual IP address
CN102752152A (en) * 2012-07-24 2012-10-24 杭州华三通信技术有限公司 Method and device used for configuring VRRP (Virtual Router Redundancy Protocol) backup group

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6768743B1 (en) * 1999-10-26 2004-07-27 3Com Corporation Method and system for address server redirection for multiple address networks
CN1533108A (en) * 2003-03-21 2004-09-29 ��Ϊ�������޹�˾ Method for realizing dynamic gateway load sharing and backup
CN101018193A (en) * 2007-01-25 2007-08-15 杭州华为三康技术有限公司 Load distribution method and system and device for allocating the backup packet and virtual IP address
CN102752152A (en) * 2012-07-24 2012-10-24 杭州华三通信技术有限公司 Method and device used for configuring VRRP (Virtual Router Redundancy Protocol) backup group

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106972958A (en) * 2017-03-13 2017-07-21 海信集团有限公司 Gateway device collocation method, apparatus and system
WO2019010778A1 (en) * 2017-07-13 2019-01-17 深圳市盛路物联通讯技术有限公司 Backup method and system for internet of things repeater
CN110651450A (en) * 2018-04-27 2020-01-03 华为技术有限公司 Network and network management method
CN110651450B (en) * 2018-04-27 2021-05-07 华为技术有限公司 Network and network management method
US20220141108A1 (en) * 2018-10-19 2022-05-05 Comcast Cable Communications, Llc Prioritized Message Routing
US11582124B2 (en) * 2018-10-19 2023-02-14 Comcast Cable Communications, Llc Prioritized message routing
CN111431774A (en) * 2020-03-10 2020-07-17 华为技术有限公司 Communication method and communication system based on master router and slave router networking
CN111431774B (en) * 2020-03-10 2021-07-16 华为技术有限公司 Communication method and communication system based on master router and slave router networking
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
CN111447568A (en) * 2020-03-27 2020-07-24 深圳桔子智能科技发展有限公司 Gateway competition method, system and gateway
WO2024045765A1 (en) * 2022-08-30 2024-03-07 中兴通讯股份有限公司 Slave gateway configuration method, electronic device and computer-readable storage medium
CN116781494A (en) * 2023-08-17 2023-09-19 天津南大通用数据技术股份有限公司 Main-standby switching judgment method based on existing network equipment
CN116781494B (en) * 2023-08-17 2024-03-26 天津南大通用数据技术股份有限公司 Main-standby switching judgment method based on existing network equipment

Also Published As

Publication number Publication date
CN103124240B (en) 2016-03-30

Similar Documents

Publication Publication Date Title
US11528226B2 (en) Network validation with dynamic tunneling
CN103124240B (en) Gateway configuration method, gateway device and network system
US10779339B2 (en) Wireless roaming using a distributed store
EP2962431B1 (en) Spanning tree in fabric switches
US9960991B2 (en) Method, apparatus and system for determining service transmission path
CN103095495B (en) Network beginning collocation method and device, system
US8166187B2 (en) Distributed IP gateway based on sharing a MAC address and IP address concurrently between a first network switching device and a second network switching device
EP3096490B1 (en) Method for realizing network virtualization and related device and communication system
CN103795623A (en) Method and device for realizing traffic interflow between virtual devices
CN109768908B (en) VXLAN configuration method, equipment and system
CN110324159B (en) Link configuration method, controller and storage medium
US11546267B2 (en) Method for determining designated forwarder (DF) of multicast flow, device, and system
CN106357542B (en) The method and software defined network controller of multicast service are provided
EP2892196B1 (en) Method, network node and system for implementing point-to-multipoint multicast
JP5974911B2 (en) Communication system and network relay device
US9596176B2 (en) Pseudowire selection in a pseudowire redundancy network
US20170033977A1 (en) Method, device and system for processing failure of network service node
CN102891798A (en) Heartbeat message transmission method and heartbeat message transmission device
CN102143051A (en) Method and system for sharing virtual router redundancy protocol load
CN103095507B (en) Based on message transmitting method and the edge device of Ethernet virtualization internet network
CN105991447A (en) Segmented routing identification SID processing method and apparatus thereof
CN103414634A (en) Method and device for flooding service flow

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant