CN103124240B - Gateway configuration method, gateway device and network system - Google Patents

Gateway configuration method, gateway device and network system Download PDF

Info

Publication number
CN103124240B
CN103124240B CN201310049935.4A CN201310049935A CN103124240B CN 103124240 B CN103124240 B CN 103124240B CN 201310049935 A CN201310049935 A CN 201310049935A CN 103124240 B CN103124240 B CN 103124240B
Authority
CN
China
Prior art keywords
gateway
gateway device
management
message
main frame
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.)
Active
Application number
CN201310049935.4A
Other languages
Chinese (zh)
Other versions
CN103124240A (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

Abstract

The invention provides a kind of gateway configuration method, gateway device and network system, be applied to the scene that main frame is communicated with Dynamic Host Configuration Protocol server by the multiple gateway device belonging to a network segment, comprise: at multiple gateway device deploy one management backup group, and according to priority determine active/standby management gateway; Be assigned at least two service backup groups of a virtual ip address in described multiple gateway device deploy separately, and according to priority determine respective active/standby Service Gateway; DHCP is sent at main frame? when Discover message, only main management gateway can with the DHCP relay between hosted and Dynamic Host Configuration Protocol server, and by corresponding DHCP? Offer message, DHCP? gateway field in ACK message extends this as the virtual ip address of specified services backup group, to make this main frame, this specified services backup group is configured to its default gateway.Even if host number is larger, also can automatically configure based on DHCP the default gateway address not only realizing load balancing but also mutually back up.

Description

Gateway configuration method, gateway device and network system
Technical field
The present invention relates to networking technology area, particularly relate to a kind of gateway configuration method, gateway device and network system.
Background technology
Day by day deep along with the fast universal of network and application, various value-added service obtains 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.
Such as: 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, capital arranges an identical default route sensing gateway, is router-A, to realize the communication of each main frame and external network shown in Fig. 1.When gateway (being also router-A) breaks down, the communication of main frame and external network will be interrupted.
VRRP(VirtualRouterRedundancyProtocol, Virtual Router Redundancy Protocol) be a kind of protocol for error tolerance, can still provide highly reliable default link when certain router failure by VRRP, effectively avoid the network interruption after single link occurs fault.On the set of router can bearing gateway function, backup group is created based on VRRP, namely a virtual router is jointly formed by multiple router, different router has different priorities in this backup group, the router that priority is the highest will become active router and bear gateway forwards task, and virtual router only need be configured to default gateway by the main frame in the same network segment.
Such as, as shown in Figure 2, router-A, router B and router C are by a VRRP configuration common composition VRRP backup group, this VRRP backup group is a virtual router, there is virtual IP(InternetProtocol, procotol) address, this virtual IP address is namely as the IP address of the default gateway set by 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 is the standby router of this VRRP backup group.Under normal circumstances, router-A bears business as active router, and router B and router C all when router-A fault, can take over router-A and bear business as active router.
Born by different routers to make the service traffics of user, thus realize load balancing, multiple VRRP backup group can be created on multiple router, make each router can as active router in a VRRP backup group, as standby router in another VRRP backup group.Like this, multiple stage router will form multiple VRRP backup group simultaneously, each VRRP backup group comprises an active router and several are for router, the active router of each VRRP backup group is different, is also that same router is in the priority difference of each VRRP backup group and at its VRRP backup group with limit priority as active router.
As shown in Figure 3, three VRRP backup groups are had to exist:
VRRP backup group 1: corresponding virtual router 1, has virtual ip address 10.1.1.111, router-A is as active router, and router B and router C is as standby router.
VRRP backup group 2: corresponding virtual router 2, has 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, has 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, by the default gateway of the main frame in local area network (LAN) being set to respectively the virtual address of virtual router 1,2 and 3, the object sharing service traffics and backup mutually can be reached.
But under the scene that host number is larger, the workload of manual configuration gateway address is too large, easily not only cannot 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, under the scene that terminal equipment (main frame) quantity is larger, easily can carry out gateway configuration and both realized load balancing to make multiple gateway and mutually backed up.
In order to solve the problem, according to one embodiment of the invention, provide a kind of gateway configuration method, it is applied to the scene that main frame is communicated with Dynamic Host Configuration Protocol server by the multiple gateway device belonging to a network segment, and comprise: at described multiple gateway device deploy one management backup group, comprise at least two gateway devices to make described management backup group and by the priority determination main management gateway of comprised gateway device and standby management gateway; In described multiple gateway device deploy at least two service backup groups, be assigned a virtual ip address separately to make described service backup group, comprise at least two gateway devices and by the priority determination main business gateway of comprised gateway device and standby Service Gateway; The DHCPDiscover message that described multiple gateway device Receiving Host sends, and only as the gateway device of described main management gateway by described DHCPDiscover message repeating to Dynamic Host Configuration Protocol server; Gateway device as described main management gateway receives the DHCPOffer message that described dhcp server response sends in described DHCPDiscover message, the virtual ip address of the specified services backup group at least two service backup groups described in the gateway field in described DHCPOffer message is extended this as, and will the DHCPOffer message repeating after gateway field be filled in described main frame; Gateway device as described main management gateway receives the DHCPRequest message that described response of host sends in described DHCPOffer message, and forwards it to described Dynamic Host Configuration Protocol server; Gateway device as described main management gateway receives the DHCPACK message that described dhcp server response sends in described DHCPRequest message, gateway field in described DHCPACK message is extended this as the virtual ip address of described specified services backup group, and give described main frame by the DHCPACK message repeating after filling in, with main frame described in instruction, described specified services backup group is configured to its default gateway.
For above-mentioned gateway configuration method, in a kind of possible implementation, in the step of described multiple gateway device deploy one management backup group, described multiple gateway device consults the priority in the described management backup group of each leisure by VRRP protocol massages.
For above-mentioned gateway configuration method, in a kind of possible implementation, in the step of described multiple gateway device deploy at least two service backup groups, described multiple gateway device sets the priority in each described service backup group of each leisure according to the manual configuration of operator.
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 at least two service backup groups described at the gateway device as described main management gateway the gateway field in described DHCPOffer message being extended this as, as the gateway device of described main management gateway based on one of at least two service backup groups described in predetermined algorithms selection as described specified services backup group.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 receiving described main frame, only respond described ARP as the gateway device of main business gateway in described specified services backup group to ask, forwarded by this gateway device to make the follow-up business flow of described main frame.
In order to solve the problems of the technologies described above, according to another embodiment of the present invention, provide a kind of gateway device, it comprises: management group deployment unit, jointly form one for making described gateway device and other gateway device belonged in a network segment and manage backup group, comprise at least two gateway devices to make described management backup group and by the priority determination main management gateway of comprised gateway device with for management gateway; Service groups deployment unit, for making described gateway device and other gateway device described jointly form at least two service backup groups, being assigned a virtual ip address separately to make described service backup group, comprising at least two gateway devices and by the priority determination main business gateway of comprised gateway device and standby Service Gateway; And management gateway performance element, for receive at described gateway device main frame send DHCPDiscover message time, if described gateway device is defined as main management gateway by described management group deployment unit, then perform following functions: by described DHCPDiscover message repeating to Dynamic Host Configuration Protocol server; Receive the DHCPOffer message that described dhcp server response sends in described DHCPDiscover message, the virtual ip address of the specified services backup group at least two service backup groups described in the gateway field in described DHCPOffer message is extended this as, and will the DHCPOffer message repeating after gateway field be filled in described main frame; Receive the DHCPRequest message that described response of host sends in described DHCPOffer message, and forward it to described Dynamic Host Configuration Protocol server; And receive the DHCPACK message that described dhcp server response sends in described DHCPRequest message, gateway field in described DHCPACK message is extended this as the virtual ip address of described specified services backup group, and give described main frame by the DHCPACK message repeating after filling in, with main frame described in instruction, described specified services backup group is configured to its default gateway.
For above-mentioned gateway device, in a kind of possible implementation, the priority that described management group deployment unit makes described gateway device and other gateway device described consult in the described management backup group of each leisure by VRRP protocol massages.
For above-mentioned gateway device, in a kind of possible implementation, described service groups deployment unit sets the priority of described gateway device in each described service backup group according to the manual configuration of operator.
For above-mentioned gateway device, in a kind of possible implementation, it is characterized in that, described management gateway function performance element based on one of at least two service backup groups described in predetermined algorithms selection as described specified services backup group.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 for, when described gateway device receives the DHCPDiscover message of main frame transmission, if described gateway device is defined as standby management gateway by described management group deployment unit, then described gateway device is made directly to abandon described DHCPDiscover 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 multiple main frame and multiple above-mentioned gateway device.
For above-mentioned network system, in a kind of possible implementation, also comprise switch, in order to connect described multiple main frame and described gateway device.
By managing backup group in multiple gateway device deploy and only managing the function can bearing DHCP relay in backup group as the gateway device of main management gateway, even if under the scene that host number is larger, the gateway configuration method provided according to the embodiment of the present invention, gateway device, network system also can 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 below with reference to the accompanying drawings to detailed description of illustrative embodiments, further feature of the present invention and aspect will become clear.
Accompanying drawing explanation
Comprise in the description and form the Figure of description of a part for specification and specification together illustrates exemplary embodiment of the present invention, characteristic sum aspect, and for explaining principle of the present invention.
Fig. 1 is 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 realizing load balancing based on VRRP;
Fig. 4 is the network architecture schematic diagram of application DHCP;
Fig. 5 is the flow chart of the gateway configuration method according to the embodiment of the present invention;
Fig. 6 is the schematic diagram of an application scenarios of gateway configuration method according to the embodiment of the present invention;
Fig. 7 is the structured flowchart of the gateway device according to 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
Various exemplary embodiment of the present invention, characteristic sum aspect is described in detail below with reference to accompanying drawing.The same or analogous element of Reference numeral presentation function identical in accompanying drawing.Although the various aspects of embodiment shown in the drawings, unless otherwise indicated, accompanying drawing need not be drawn in proportion.
Word " exemplary " special here means " as example, embodiment or illustrative ".Here need not be interpreted as being better than or being better than other embodiment as any embodiment illustrated by " exemplary ".
In addition, in order to better the present invention is described, in embodiment hereafter, give numerous details.It will be appreciated by those skilled in the art that do not have these details, the present invention can implement equally.In other example, known method, means, element and circuit are not described in detail, so that highlight purport of the present invention.
For a better understanding of the present invention, existing to DHCP(DynamicHostConfigurationProtocol, DHCP) be described:
DHCP is from BOOTP(BootstrapProtocol, Bootstrap Protocol) develop, adopt customer end/server mode as shown in Figure 4, for dhcp client dynamic IP address allocation and other relevant information.Wherein, under comprising the scene of the DHCP relay being generally the network equipment such as router or three-tier switch in a network, the process that dhcp client is retrieved as the default gateway ip address of its dynamic assignment is as follows:
1, discovery phase: dhcp client sends DHCPDiscover broadcasting packet to search Dynamic Host Configuration Protocol server to network, and DHCP relay receives this DHCPDiscover message and is transmitted to Dynamic Host Configuration Protocol server;
2, the stage is provided: after Dynamic Host Configuration Protocol server receives DHCPDiscover message, from oneself address pool, select an IP address be not assigned with and then send to this dhcp client the DHCPOffer message comprising this IP address and other configuration information, this DHCPOffer message repeating is given this dhcp client by DHCP relay;
3, the choice phase: if multiple stage Dynamic Host Configuration Protocol server sends DHCPOffer message to this dhcp client, this dhcp client receives only first DHCPOffer message and then sends DHCPRequest broadcasting packet to network, to ask the Dynamic Host Configuration Protocol server as first DHCPOffer message sender to be its distributing IP address, forward this DHCPRequest message by DHCP relay;
4, the stage of recognition: after the Dynamic Host Configuration Protocol server as first DHCPOffer message sender receives this DHCPRequest message, send the DHCPACK message comprising IP address that it provides and other configuration information to this dhcp client, forward this DHCPACK message by DHCP relay; And
5, configuration phase: this dhcp client configures its gateway address according to message content after receiving this DHCPACK message.
The various DHCP message of above-mentioned such as DHCPDiscover message, DHCPOffer message, DHCPRequest message, DHCPACK message etc. are UDP(UserDatagramProtocol, User Datagram Protocol) message.
Namely gateway configuration is realized based on DHCP according to gateway configuration method, gateway device and network system that the embodiment of the present invention provides.As shown in Figure 5, comprise according to the gateway configuration method of the embodiment of the present invention:
S1, is belonging to multiple gateway device deploy one management backup group of a network segment, comprises at least two gateway devices and by the priority determination main management gateway of comprised gateway device and standby management gateway to make described management backup group;
S2, in described multiple gateway device deploy at least two service backup groups, be assigned a virtual ip address separately to make described service backup group, comprise at least two gateway devices and by the priority determination main business gateway of comprised gateway device and standby Service Gateway;
S3, the DHCPDiscover message that described multiple gateway device Receiving Host sends, and only as the gateway device (hereinafter referred to as main management gateway device) of described main management gateway as DHCP relay by described DHCPDiscover message repeating to Dynamic Host Configuration Protocol server, and other gateway device directly can abandon received DHCPDiscover message;
S4, described main management gateway device receives the DHCPOffer message that described dhcp server response sends in described DHCPDiscover message, the virtual ip address of the specified services backup group at least two service backup groups described in the gateway field in described DHCPOffer message is extended this as, and will the DHCPOffer message repeating after gateway field be filled in described main frame;
S5, described main management gateway device receives the DHCPRequest message that described response of host sends in described DHCPOffer message, and forwards it to described Dynamic Host Configuration Protocol server; And
S6, described main management gateway device receives the DHCPACK message that described dhcp server response sends in described DHCPRequest message, gateway field in described DHCPACK message is extended this as the virtual ip address of described specified services backup group, and give described main frame by the DHCPACK message repeating after filling in, with main frame described in instruction, described specified services backup group is configured to its default gateway.
In a kind of possible implementation, based on VRRP agreement at described multiple gateway device deploy backup group.Such as, described multiple gateway device consults the priority in the described management backup group of each leisure by VRRP protocol massages.In addition, based on VRRP agreement in described multiple gateway device deploy multiple service backup group time, the priority in each described service backup group of each leisure of described multiple gateway device can be set, to guarantee to realize sharing business load on all entity gateway devices corresponding with the virtual gateway of each service backup group according to the manual configuration of operator.
In a kind of possible implementation, in S4, described main management gateway device select based on the pre-defined algorithm of such as hash algorithm described in one of at least two service backup groups as described specified services backup group.Like this, as long as ensure that the virtual ip address distributing to the default gateway of main frame is by the distribution of certain algorithm, to the gateway that different host assignment is different, can ensure that service traffics realize load balancing between different gateway.
In addition, after being configured with the virtual ip address of the default gateway of particular host by execution S3 ~ S6, if there is service traffics demand in this main frame, this main frame usually by first broadcast transmission ARP(AddressResolutionProtocol, address resolution protocol) request.In this case, only respond this ARP as the gateway device (hereinafter referred to as main business gateway device) of main business gateway in specified services backup group to ask, forwarded by this main business gateway device to make the follow-up business flow of this main frame, wherein, the virtual ip address of described specified services backup group is configured as the default gateway address of this main frame.
And, it should be noted that: 1) first perform S1 although Fig. 5 illustrates, perform S2 again, but those skilled in the art should be able to understand, also can first perform S2, perform S1 again, perform S1, S2, as long as a management backup group and at least two service backup groups can be set up on the multiple gateway devices belonging to a network segment even simultaneously; And 2) although Fig. 5 illustrates perform S3 ~ S6 once, but those skilled in the art should be able to understand, on the basis establishing a management backup group and at least two service backup groups, can S3 ~ S6 be repeated completely, automatically configure to carry out default gateway to any main frame in this network segment.
By managing backup group in multiple gateway device deploy and only managing the function can bearing DHCP relay in backup group as the gateway device of main management gateway, even if under the scene that host number is larger, the gateway configuration method provided according to the embodiment of the present invention also can 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.
Fig. 6 illustrates the schematic diagram of an application scenarios of the gateway configuration method according to the embodiment of the present invention.As shown in Figure 6, router RT1, RT2 as gateway device of belonging to the same network segment (such as, 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, assuming that the real IP address of RT1, RT2 is respectively 100.1.1.1,100.1.1.2.
First, S1, S2 by performing Fig. 5 set up a management backup group as shown in the table and two service backup groups on RT1, RT2.
As shown above, manage backup group and can not have virtual ip address.RT1, RT2 priority in management backup group is respectively 200,150.Therefore, the RT1 that management backup group medium priority is high is main management gateway device, and the RT2 that management backup group medium priority is low is standby management gateway equipment.Wherein, standby management gateway equipment can be promoted to main management gateway device when 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, RT2 priority in management backup group is respectively 120,100.Therefore, being the main business gateway device of service backup group 1 at the RT1 that service backup group 1 medium priority is higher, is the standby Service Gateway equipment of service backup group 1 at the RT2 that service backup group 1 medium priority is lower.Wherein, standby Service Gateway equipment can be promoted to main business gateway device when 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, RT2 priority in management backup group is respectively 100,120.Therefore, being the standby Service Gateway equipment of service backup group 2 at the RT1 that service backup group 2 medium priority is lower, is the main business gateway device of service backup group 2 at the RT2 that service backup group 2 medium priority is higher.
It should be noted that, although represent that priority as above with numeric form, those skilled in the art should be able to understand, the setting means of priority should be not limited thereto, as long as can according to the active and standby relation of priority determination entity gateway device in backup group.In addition, the priority of gateway device in management backup group independently can be determined by VRRP message negotiation by gateway device; But the priority of gateway device in service backup group, preferably by operator's manual configuration, realizes sharing business load to meet.
Then, on the basis as above establishing management backup group, service backup group 1, service backup group 2, the default gateway of each main frame is configured by performing the S3 ~ S6 shown in Fig. 5.For the default gateway of configure host 1, details are as follows:
S3, when DHCPDiscover message initiated by main frame 1, RT1 and RT2 can receive this DHCPDiscover message, but only have the RT1 as main management gateway device can be used as DHCP relay and forward this DHCPDiscover message to Dynamic Host Configuration Protocol server, and RT2 can select directly to abandon this DHCPDiscover message.
S4, after RT1 is by this DHCPDiscover message repeating to Dynamic Host Configuration Protocol server, Dynamic Host Configuration Protocol server responds DHCPOffer message.After RT1 receives this DHCPOffer message, gateway field in this DHCPOffer message is extended this as the virtual ip address of service backup group 1 or service backup group 2, such as can fill in the virtual ip address 100.1.1.3 of service backup group 1, and by the DHCPOffer message repeating after filling in main frame 1.
After S5, main frame 1 receive this DHCPOffer message, initiate DHCPRequest request.As the RT1 of DHCP relay by this DHCPRequest message repeating to Dynamic Host Configuration Protocol server.
After S6, Dynamic Host Configuration Protocol server receive this DHCPRequest message, reply DHCPACK message.Gateway field in this DHCPACK message is extended this as determined virtual ip address 100.1.1.3 in S4 by the RT1 as DHCP relay, and by the DHCPACK message repeating after filling in main frame 1.After main frame 1 receives this DHCPACK message, confirm the default gateway address using the virtual ip address 100.1.1.3 of service backup group 1 as oneself.
So far, the default gateway configuration of main frame 1 terminates.Subsequently, if when main frame 1 exists business datum demand, by first broadcast transmission ARP request.At this moment, the main business gateway device due to service backup group 1 is RT1, therefore replys this arp reply by RT1, is forwarded by RT1 to make the follow-up business flow of main frame 1.
Similarly, S3 ~ S6 can again be performed with the default gateway of configure host 2.From previous to perform S3 ~ S6 different, for the consideration of load balancing, the gateway field of DHCPOffer message can be extended this as the virtual ip address 100.1.1.4 of service backup group 2 in S4.Like this, the RT2 by the main business gateway device as service backup group 2 responds by the ARP request of follow-up main frame 2, and the service traffics of main frame 2 will be forwarded by RT2.
In addition, according in the above-mentioned gateway configuration method of the embodiment of the present invention, according to the principle of VRRP, the main gateway device (comprising main management gateway device, main business gateway device) of each backup group (comprising management backup group, service backup group) all can with certain cycle, with the mode of multicast other gateway device transmission VRRP message in group, to inform that it exists.The standby gateway device VRRP message that (comprising standby management gateway equipment, standby Service Gateway equipment), real-time listening main gateway device sent, and when not hearing described VRRP message in Preset Time, standby gateway device the highest for priority is promoted to main gateway device.
Tool says it, and when main gateway device normally works, 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, be then main gateway device by oneself State Transferring.When having multiple stage for gateway device in a backup group, in the manner described above, multiple host exchange will likely be produced.At this moment each main gateway device will the priority of priority in relatively received VRRP multicast message and oneself this locality, if the priority of this locality is less than the priority in VRRP multicast message, be then standby gateway device by the State Transferring of oneself, otherwise keep the state of oneself constant.By such process, standby gateway device the highest for this backup in-group priority can be promoted to the new main gateway device of this backup group, namely achieve the backup functionality of VRRP.
Still for the scene shown in Fig. 6, when RT2 breaks down, be in the service backup group 2 of main business gateway device at RT2, will the VRRP message of RT2 transmission be can not receive as its RT1 for Service Gateway equipment, therefore, RT1 changes the main business gateway device of service backup group 2 into.Once RT2 recovers from fault, because the priority of RT2 in service backup group 2 is higher, then 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, main frame 2 faced by be the virtual ip address 100.1.1.4 of service backup group 2 all the time, to the active and standby conversion not perception in above-mentioned service backup group 2.
To sum up, according in the above-mentioned gateway configuration method of the embodiment of the present invention, each service backup group keeps higher independence, thus accelerates fault perception, improves the reliability of network system further.
In addition, additionally provide a kind of gateway device according to the embodiment of the present invention, can be applicable to the situation that multiple gateway device belongs 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 manage backup group for making gateway device 700 jointly form one with n other gateway device 7001 ~ 700n belonged in a network segment, comprises at least two gateway devices and by the priority determination main management gateway of comprised gateway device with for management gateway to make described management backup group.Wherein, n be more than or equal to 1 integer.
Service groups deployment unit 720 forms at least two service backup groups jointly for making gateway device 700 and other gateway device 7001 ~ 700n, is assigned a virtual ip address separately, comprises at least two gateway devices and by the priority determination main business gateway of comprised gateway device and standby Service Gateway to make described service backup group.
Management gateway performance element 730 for receive at gateway device 700 main frame 600 send DHCPDiscover message time, if gateway device 700 is defined as main management gateway by management group deployment unit 710, then perform following functions:
By described DHCPDiscover message repeating to Dynamic Host Configuration Protocol server 500;
Receive the DHCPOffer message that Dynamic Host Configuration Protocol server 500 sends in response to described DHCPDiscover message, the virtual ip address of the specified services backup group at least two service backup groups described in the gateway field in described DHCPOffer message is extended this as, and will the DHCPOffer message repeating after gateway field be filled in main frame 600;
The DHCPRequest message that Receiving Host 600 sends in response to described DHCPOffer message, and forward it to Dynamic Host Configuration Protocol server 500; And
Receive the DHCPACK message that Dynamic Host Configuration Protocol server 500 sends in response to described DHCPRequest message, gateway field in described DHCPACK message is extended this as the virtual ip address of described specified services backup group, and by the DHCPACK message repeating after filling in main frame 600, with instruct host 600, described specified services backup group is configured to its default gateway.
In a kind of possible implementation, based on VRRP agreement at the multiple gateway device deploy backup groups comprising gateway device 700 and other gateway device 7001 ~ 700n.Such as, management group deployment unit 710 makes gateway device 700 and the priority in the described management backup group of each leisure of other gateway device 7001 ~ 700n autonomous negotiating by VRRP protocol massages.In addition, based on VRRP agreement in the multiple gateway device deploy comprising gateway device 700 and other gateway device 7001 ~ 700n multiple service backup group time, service groups deployment unit 720 preferably sets the priority of gateway device 700 in each described service backup group according to the manual configuration of operator, to guarantee to realize sharing business load on gateway device 700 with other gateway device 7001 ~ 700n.
In a kind of possible implementation, management gateway function performance element 730 select based on the pre-defined algorithm of such as hash algorithm described in one of at least two service backup groups as described specified services backup group.Like this, as long as ensure that the default gateway ip address distributing to main frame is by the distribution of certain algorithm, namely gives the gateway that different host assignment is different, realizes load balancing with regard to guaranteed service flow between different entities gateway device as far as possible.
In a kind of possible implementation, management gateway function performance element 730 also for, when gateway device 700 receives the DHCPDiscover message of main frame 600 transmission, if gateway device 700 is defined as standby management gateway by management group deployment unit 710, then gateway device 700 is made directly to abandon described DHCPDiscover message.
Gateway device according to the above embodiment of the present invention can be the router in scene shown in Fig. 6, comprises RT1 and RT2.
It should be noted that, gateway device according to the embodiment of the present invention is not limited to router, it can be the network equipment or main process equipment that possess arbitrarily routing function, such as have the network switch of L3 Switching function, fire compartment wall, by software main process equipment opening routing function etc.
To sum up, by managing backup group in multiple gateway device deploy and only managing the function can bearing DHCP relay in backup group as the gateway device of main management gateway, even if under the scene that host number is larger, the gateway device provided according to the embodiment of the present invention also can 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.
The embodiment of the present invention additionally provides a kind of network system, and the structure of this network system as shown in Figure 6, can comprise multiple terminal equipment (main frame), switch, also comprises multiple gateway device provided according to the embodiment of the present invention.
The structural representation of another gateway device 800 of Fig. 8 for providing according to the embodiment of the present invention, the specific embodiment of the invention does not limit the specific implementation of gateway device.As shown in Figure 8, this gateway device 800 can comprise:
Processor (processor) 810, communication interface (CommunicationsInterface) 820, memory (memory) 830 and communication bus 840.Wherein:
Processor 810, communication interface 820 and memory 830 complete mutual communication by communication bus 840.
Communication interface 820, for the net element communication with such as client etc.
Processor 810, for executive program 832, specifically can perform the correlation step in the embodiment of the method shown in above-mentioned Fig. 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(ApplicationSpecificIntegratedCircuit), or be configured to the one or more integrated circuits implementing the embodiment of the present invention.
Memory 830, for depositing program 832.Memory 830 may comprise high-speed RAM memory, still may comprise nonvolatile memory (non-volatilememory), such as at least one magnetic disc store.Program 832 specifically may be used for processor 810 is performed:
Belong to multiple gateway device deploy one management backup group of a network segment, comprise at least two gateway devices to make described management backup group and by the priority determination main management gateway of comprised gateway device and standby management gateway;
In described multiple gateway device deploy at least two service backup groups, be assigned a virtual ip address separately to make described service backup group, comprise at least two gateway devices and by the priority determination main business gateway of comprised gateway device and standby Service Gateway;
The DHCPDiscover message that described multiple gateway device Receiving Host sends, and only as the gateway device of described main management gateway by described DHCPDiscover message repeating to Dynamic Host Configuration Protocol server;
Gateway device as described main management gateway receives the DHCPOffer message that described dhcp server response sends in described DHCPDiscover message, the virtual ip address of the specified services backup group at least two service backup groups described in the gateway field in described DHCPOffer message is extended this as, and will the DHCPOffer message repeating after gateway field be filled in described main frame;
Gateway device as described main management gateway receives the DHCPRequest message that described response of host sends in described DHCPOffer message, and forwards it to described Dynamic Host Configuration Protocol server;
Gateway device as described main management gateway receives the DHCPACK message that described dhcp server response sends in described DHCPRequest message, gateway field in described DHCPACK message is extended this as the virtual ip address of described specified services backup group, and give described main frame by the DHCPACK message repeating after filling in, with main frame described in instruction, described specified services backup group is configured to its default gateway.
Those skilled in the art can be well understood to, and for convenience and simplicity of description, the equipment of foregoing description and the specific works process of module, can describe with reference to the corresponding process in preceding method embodiment, not repeat them here.
Those of ordinary skill in the art can recognize, in conjunction with unit and the method step of each example of embodiment disclosed herein description, can realize with the combination of electronic hardware or computer software and electronic hardware.These functions perform with hardware or software mode actually, depend on application-specific and the design constraint of technical scheme.Professional and technical personnel can use distinct methods to realize described function to each specifically should being used for, but this realization should not thought and exceeds scope of the present invention.
If described function using the form of SFU software functional unit realize and as independently production marketing or use time, can be stored in a computer read/write memory medium.Based on such understanding, the part of the part that technical scheme of the present invention contributes to prior art in essence in other words or this technical scheme can embody with the form of software product, this computer software product is stored in a storage medium, comprising some instructions in order to make a computer equipment (can be personal computer, server, or the network equipment etc.) perform all or part of step of method described in each embodiment of the present invention.And aforesaid storage medium comprises: USB flash disk, portable hard drive, read-only memory (ROM, Read-OnlyMemory), random access memory (RAM, RandomAccessMemory), magnetic disc or CD etc. various can be program code stored medium.
Above execution mode is only for illustration of the present invention; and be not limitation of the present invention; the those of ordinary skill of relevant technical field; without departing from the spirit and scope of the present invention; can also make a variety of changes and modification; therefore all equivalent technical schemes also belong to category of the present invention, and scope of patent protection of the present invention should be defined by the claims.

Claims (39)

1. a gateway configuration method, is characterized in that, the method is applied to the scene that main frame is communicated with Dynamic Host Configuration Protocol server by the multiple gateway device belonging to a network segment, and the method comprises:
At described multiple gateway device deploy one management backup group, comprise at least two gateway devices to make described management backup group and by the priority determination main management gateway of comprised gateway device and standby management gateway;
In described multiple gateway device deploy at least two service backup groups, be assigned a virtual ip address separately to make described service backup group, comprise at least two gateway devices and by the priority determination main business gateway of comprised gateway device and standby Service Gateway;
The DHCPDiscover message that described multiple gateway device Receiving Host sends, and only as the gateway device of described main management gateway by described DHCPDiscover message repeating to Dynamic Host Configuration Protocol server;
Gateway device as described main management gateway receives the DHCPOffer message that described dhcp server response sends in described DHCPDiscover message, the virtual ip address of the specified services backup group at least two service backup groups described in the gateway field in described DHCPOffer message is extended this as, and will the DHCPOffer message repeating after gateway field be filled in described main frame;
Gateway device as described main management gateway receives the DHCPRequest message that described response of host sends in described DHCPOffer message, and forwards it to described Dynamic Host Configuration Protocol server;
Gateway device as described main management gateway receives the DHCPACK message that described dhcp server response sends in described DHCPRequest message, gateway field in described DHCPACK message is extended this as the virtual ip address of described specified services backup group, and give described main frame by the DHCPACK message repeating after filling in, with main frame described in instruction, described specified services backup group is configured to its default gateway.
2. gateway configuration method according to claim 1, is characterized in that, in the step of described multiple gateway device deploy one management backup group,
Described multiple gateway device consults the priority in the described management backup group of each leisure by VRRP protocol massages.
3. gateway configuration method according to claim 1 and 2, is characterized in that, in the step of described multiple gateway device deploy at least two service backup groups,
Described multiple gateway device sets the priority in each described service backup group of each leisure according to the manual configuration of operator.
4. gateway configuration method according to claim 1 and 2, it is characterized in that, in the step of the virtual ip address of the specified services backup group at least two service backup groups described at the gateway device as described main management gateway the gateway field in described DHCPOffer message being extended this as
As the gateway device of described main management gateway based on one of at least two service backup groups described in predetermined algorithms selection as described specified services backup group.
5. gateway configuration method according to claim 3, it is characterized in that, in the step of the virtual ip address of the specified services backup group at least two service backup groups described at the gateway device as described main management gateway the gateway field in described DHCPOffer message being extended this as
As the gateway device of described main management gateway based on one of at least two service backup groups described in predetermined algorithms selection as described specified services backup group.
6. gateway configuration method according to claim 4, is characterized in that, described predetermined algorithm is hash algorithm.
7. gateway configuration method according to claim 5, is characterized in that, described predetermined algorithm is hash algorithm.
8. gateway configuration method according to claim 1 and 2, is characterized in that, also comprise:
When the ARP request receiving described main frame, only respond described ARP as the gateway device of main business gateway in described specified services backup group and ask, forwarded by this gateway device to make the follow-up business flow of described main frame.
9. gateway configuration method according to claim 3, is characterized in that, also comprise:
When the ARP request receiving described main frame, only respond described ARP as the gateway device of main business gateway in described specified services backup group and ask, forwarded by this gateway device to make the follow-up business flow of described main frame.
10. gateway configuration method according to claim 4, is characterized in that, also comprise:
When the ARP request receiving described main frame, only respond described ARP as the gateway device of main business gateway in described specified services backup group and ask, forwarded by this gateway device to make the follow-up business flow of described main frame.
11. gateway configuration methods according to claim 5, is characterized in that, also comprise:
When the ARP request receiving described main frame, only respond described ARP as the gateway device of main business gateway in described specified services backup group and ask, forwarded by this gateway device to make the follow-up business flow of described main frame.
12. gateway configuration methods according to claim 6, is characterized in that, also comprise:
When the ARP request receiving described main frame, only respond described ARP as the gateway device of main business gateway in described specified services backup group and ask, forwarded by this gateway device to make the follow-up business flow of described main frame.
13. gateway configuration methods according to claim 7, is characterized in that, also comprise:
When the ARP request receiving described main frame, only respond described ARP as the gateway device of main business gateway in described specified services backup group and ask, forwarded by this gateway device to make the follow-up business flow of described main frame.
14. 1 kinds of gateway devices, is characterized in that, comprising:
Management group deployment unit, jointly form one for making described gateway device and other gateway device belonged in a network segment and manage backup group, comprise at least two gateway devices to make described management backup group and by the priority determination main management gateway of comprised gateway device with for management gateway;
Service groups deployment unit, for making described gateway device and other gateway device described jointly form at least two service backup groups, being assigned a virtual ip address separately to make described service backup group, comprising at least two gateway devices and by the priority determination main business gateway of comprised gateway device and standby Service Gateway; And
Management gateway performance element, for receive at described gateway device main frame send DHCPDiscover message time, if described gateway device is defined as main management gateway by described management group deployment unit, then perform following functions:
By described DHCPDiscover message repeating to Dynamic Host Configuration Protocol server;
Receive the DHCPOffer message that described dhcp server response sends in described DHCPDiscover message, the virtual ip address of the specified services backup group at least two service backup groups described in the gateway field in described DHCPOffer message is extended this as, and will the DHCPOffer message repeating after gateway field be filled in described main frame;
Receive the DHCPRequest message that described response of host sends in described DHCPOffer message, and forward it to described Dynamic Host Configuration Protocol server; And
Receive the DHCPACK message that described dhcp server response sends in described DHCPRequest message, gateway field in described DHCPACK message is extended this as the virtual ip address of described specified services backup group, and give described main frame by the DHCPACK message repeating after filling in, with main frame described in instruction, described specified services backup group is configured to its default gateway.
15. gateway devices according to claim 14, is characterized in that, the priority that described management group deployment unit makes described gateway device and other gateway device described consult in the described management backup group of each leisure by VRRP protocol massages.
16. gateway devices according to claims 14 or 15, it is characterized in that, described service groups deployment unit sets the priority of described gateway device in each described service backup group according to the manual configuration of operator.
17. gateway devices according to claims 14 or 15, is characterized in that, described management gateway function performance element based on one of at least two service backup groups described in predetermined algorithms selection as described specified services backup group.
18. gateway devices according to claim 16, is characterized in that, described management gateway function performance element based on one of at least two service backup groups described in predetermined algorithms selection as described specified services backup group.
19. gateway devices according to claim 17, is characterized in that, described predetermined algorithm is hash algorithm.
20. gateway devices according to claim 18, is characterized in that, described predetermined algorithm is hash algorithm.
21. gateway devices according to claims 14 or 15, it is characterized in that, described management gateway performance element also for, when described gateway device receives the DHCPDiscover message of main frame transmission, if described gateway device is defined as standby management gateway by described management group deployment unit, then described gateway device is made directly to abandon described DHCPDiscover message.
22. gateway devices according to claim 16, it is characterized in that, described management gateway performance element also for, when described gateway device receives the DHCPDiscover message of main frame transmission, if described gateway device is defined as standby management gateway by described management group deployment unit, then described gateway device is made directly to abandon described DHCPDiscover message.
23. gateway devices according to claim 17, it is characterized in that, described management gateway performance element also for, when described gateway device receives the DHCPDiscover message of main frame transmission, if described gateway device is defined as standby management gateway by described management group deployment unit, then described gateway device is made directly to abandon described DHCPDiscover message.
24. gateway devices according to claim 18, it is characterized in that, described management gateway performance element also for, when described gateway device receives the DHCPDiscover message of main frame transmission, if described gateway device is defined as standby management gateway by described management group deployment unit, then described gateway device is made directly to abandon described DHCPDiscover message.
25. gateway devices according to claim 19, it is characterized in that, described management gateway performance element also for, when described gateway device receives the DHCPDiscover message of main frame transmission, if described gateway device is defined as standby management gateway by described management group deployment unit, then described gateway device is made directly to abandon described DHCPDiscover message.
26. gateway devices according to claim 20, it is characterized in that, described management gateway performance element also for, when described gateway device receives the DHCPDiscover message of main frame transmission, if described gateway device is defined as standby management gateway by described management group deployment unit, then described gateway device is made directly to abandon described DHCPDiscover message.
27. gateway devices according to claims 14 or 15, it is characterized in that, described gateway device is router.
28. gateway devices according to claim 16, is characterized in that, described gateway device is router.
29. gateway devices according to claim 17, is characterized in that, described gateway device is router.
30. gateway devices according to claim 18, is characterized in that, described gateway device is router.
31. gateway devices according to claim 19, is characterized in that, described gateway device is router.
32. gateway devices according to claim 20, is characterized in that, described gateway device is router.
33. gateway devices according to claim 21, is characterized in that, described gateway device is router.
34. gateway devices according to claim 22, is characterized in that, described gateway device is router.
35. gateway devices according to claim 24, is characterized in that, described gateway device is router.
36. gateway devices according to claim 25, is characterized in that, described gateway device is router.
37. gateway devices according to claim 26, is characterized in that, described gateway device is router.
38. 1 kinds of network systems, comprise multiple main frame, it is characterized in that, also comprise the gateway device according to any one of multiple claim 14 to 37.
39., according to network system according to claim 38, is characterized in that, also comprise switch, in order to connect described multiple 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 CN103124240A (en) 2013-05-29
CN103124240B true 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 (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

Families Citing this family (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
CN107465537A (en) * 2017-07-13 2017-12-12 深圳市盛路物联通讯技术有限公司 The backup method and system of Internet of Things repeater
CN110651450B (en) * 2018-04-27 2021-05-07 华为技术有限公司 Network and network management method
US11108664B2 (en) * 2018-10-19 2021-08-31 Comcast Cable Communications, Llc Prioritized message routing
CN111431774B (en) * 2020-03-10 2021-07-16 华为技术有限公司 Communication method and communication system based on master router and slave router networking
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
CN117675555A (en) * 2022-08-30 2024-03-08 中兴通讯股份有限公司 Slave gateway configuration method, electronic device, and computer-readable storage medium
CN116781494B (en) * 2023-08-17 2024-03-26 天津南大通用数据技术股份有限公司 Main-standby switching judgment method based on existing network equipment

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 (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

Also Published As

Publication number Publication date
CN103124240A (en) 2013-05-29

Similar Documents

Publication Publication Date Title
CN103124240B (en) Gateway configuration method, gateway device and network system
US11528226B2 (en) Network validation with dynamic tunneling
US20180227969A1 (en) Wireless roaming using a distributed store
EP2375659B1 (en) Scalable distributed user plane partitioned two-stage forwarding information base lookup for subscriber internet protocol host routes
CN102084638B (en) Deterministic session load-balancing and redundancy of access servers in a computer network
EP2962431B1 (en) Spanning tree in fabric switches
US20100189117A1 (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
EP2993838B1 (en) Methods for setting a member identity of gateway device and corresponding management gateway devices
EP3197107B1 (en) Message transmission method and apparatus
CN107317768B (en) Traffic scheduling method and device
CN102025798A (en) Address allocation processing method, device and system
US11546267B2 (en) Method for determining designated forwarder (DF) of multicast flow, device, and system
WO2019091088A1 (en) Vxlan configuration method, device and system
CN106713039B (en) Ethernet port identification method and device and router
EP3764619B1 (en) Information backup method and related device
EP4016928A1 (en) Layer 2 leased line network system, configuration method, and device
US10873527B2 (en) Link protection method in SDN, switching device, and network controller
US11018990B2 (en) Route priority configuration method, device, and controller
WO2018068588A1 (en) Method and software-defined networking (sdn) controller for providing multicast service
US20220408332A1 (en) Method for advertising route, network element, system, and device
CN107995124B (en) Traffic scheduling method and device
CN102447703B (en) A kind of heat backup method and system, CGN equipment
US10999151B2 (en) Apparatus, system, and method for topology discovery across geographically redundant gateway devices
US20130086259A1 (en) Method for acquiring an ip address and network access device
EP3389231B1 (en) Cluster and forwarding method

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