CN101795238B - Network load balancing networking method, network load balancing networking equipment and network load balancing networking system - Google Patents

Network load balancing networking method, network load balancing networking equipment and network load balancing networking system Download PDF

Info

Publication number
CN101795238B
CN101795238B CN2010101446223A CN201010144622A CN101795238B CN 101795238 B CN101795238 B CN 101795238B CN 2010101446223 A CN2010101446223 A CN 2010101446223A CN 201010144622 A CN201010144622 A CN 201010144622A CN 101795238 B CN101795238 B CN 101795238B
Authority
CN
China
Prior art keywords
destination interface
message
address
request service
service message
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.)
Expired - Fee Related
Application number
CN2010101446223A
Other languages
Chinese (zh)
Other versions
CN101795238A (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.)
Ruijie Networks Co Ltd
Original Assignee
Fujian Star Net Communication 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 Fujian Star Net Communication Co Ltd filed Critical Fujian Star Net Communication Co Ltd
Priority to CN2010101446223A priority Critical patent/CN101795238B/en
Publication of CN101795238A publication Critical patent/CN101795238A/en
Application granted granted Critical
Publication of CN101795238B publication Critical patent/CN101795238B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)
  • Small-Scale Networks (AREA)

Abstract

The invention provides a network load balancing networking method, network load balancing networking equipment and a network load balancing networking system. The method comprises the following steps: after receiving a service requesting message which is transmitted by a client and points to a trunking server group, routing the service requesting message to a target port mapped by the trunking server group, wherein the target port and the trunking server group belong to an identical VLAN; according to the preset port loop function of the target port, re-forwarding the service requesting message received by the target port to the target port per se; and broadcasting the service requesting message routed and returned by the target port in the VLAN where the target port belongs, so that all servers in the trunking server group can receive the service requesting message through corresponding ports. Through the method, the equipment and the system, on the premise that the trunking servers directly perform data exchange with a client terminal through a third-layer switch without connecting a second-layer switch, the function of an NLB service is achieved, the second-layer switch is saved for a user and simultaneously networking reliability is improved.

Description

The network-building method of NLB, equipment and system
Technical field
The present invention relates to communication technical field, relate in particular to a kind of network-building method, equipment and system of NLB.
Background technology
NLB (Network Load Balancing, be called for short NLB) is that the data traffic in the automatic network in a kind of future reasonably is assigned on the multiple servers, to utilize the load-balancing technique of Servers-all resource substantially.Among the NLB through two or more computer resources are combined as Cluster Server; And allow all computers in this Cluster Server to use identical NLB IP address; Making a plurality of computers put together provides a kind of service; Be equal to a station server in client, improved the scalability and the availability of service.Break down or during off line, NLB can automatically redistribute load to other computers in trooping, thereby has also guaranteed the required Performance And Reliability of mission critical server when certain computer in the Cluster Server simultaneously.
Fig. 1 is the networking sketch map of typical NLB service in the prior art.As shown in Figure 1; In the NLB networking of prior art; Between Cluster Server and client, be provided with Layer 2 switch and three-tier switch, Cluster Server carries out data communication through the data routing and switching function of Layer 2 switch and three-tier switch with client terminal.
Particularly, as shown in Figure 1, when the user needs service that access server provides, send the port p1 that request message is given three-tier switch, three-tier switch is routed to p2 with this request message from port p1, and is forwarded on the layer 2-switched port p3.Because the target MAC (Media Access Control) address of this request message is the virtual mac address of Cluster Server group; Therefore Layer 2 switch can't be learnt this virtual MAC address; Further, since layer 2-switched port p3, p4 and p5 all in same VLAN (VirtualLocal Area Network is called for short VLAN); Therefore based on layer 2-switched data transfer mechanism; Under the prerequisite of Layer 2 switch study less than the address of request message, this request message will be broadcasted at all of the port in the layer 2-switched VLAN, thereby Cluster Server A and B are with receiving this request message simultaneously.The Cluster Server group is according to the result of NLB service interaction like this; Request by one of them server customer in response end; Response message is forwarded to layer 2-switched port p2 through layer 2-switched port p3, is routed to user's port p1 again by p2, and whole reciprocal process is accomplished.
But; There is following defective in this method: between Cluster Server group and client, be provided with two-layer switch; Thereby for mutual between the two data message; Need could arrive the opposite end through two-layer data exchange processing, this has reduced the security reliability of this data message and networking self undoubtedly.Especially for three-tier switch; Its inside has possessed layer 2-switched data transmission mechanism in fact; Just because the functional specification of three-tier switch self: corresponding to a purpose IP address, the destination interface in three-tier switch can only have one, makes if when between Cluster Server and client, directly being connected three-tier switch; The client message that three-tier switch receives can't route to a plurality of ports, and then can't normally realize the NLB service.Thereby in the networking mode of existing NLB service, Layer 2 switch is essentially the redundant equipment that is provided with between Cluster Server group and the client, has reduced the reliability of networking to a certain extent.
Summary of the invention
The embodiment of the invention provides a kind of network-building method, equipment and system of NLB; In order to need not to connect under the layer 2-switched prerequisite; Directly Cluster Server is connected to three-tier switch,, improves the reliability of networking to realize the NLB service.
For realizing above-mentioned purpose, the embodiment of the invention provides a kind of network-building method of NLB, comprising:
After receiving the request service message of the sensing Cluster Server group that client sends; The described request service message is routed to the destination interface that shines upon with said Cluster Server group, and said destination interface belongs to a VLAN with the corresponding all of the port of said Cluster Server group;
According to said preset port loop function, the described request service message that said destination interface is received is transmitted to said destination interface self again;
Said destination interface is transmitted to again in the VLAN of described request service message under said destination interface of said destination interface self and broadcasts.
For realizing above-mentioned purpose, the embodiment of the invention also provides a kind of three-tier switch equipment, comprising:
The message receiver module is used to receive the request service message of the sensing Cluster Server group that client sends;
The first message routing module is used for the described request service message is routed to the destination interface that shines upon with said Cluster Server group, and said destination interface belongs to a VLAN with the corresponding all of the port of said Cluster Server group;
Packet forwarding module is used for according to said preset port loop function, and the described request service message that said destination interface is received is transmitted to said destination interface self again;
The message broadcast module, the VLAN of described request service message under said destination interface that is used for said destination interface is transmitted to again said destination interface self broadcasted.
For realizing above-mentioned purpose, the embodiment of the invention also provides a kind of group network system of NLB, comprising: above-mentioned three-tier switch equipment, and the client and the Cluster Server group that are connected with said three-tier switch equipment respectively.
The network-building method of the NLB that the embodiment of the invention provides, equipment and system; Through three-tier switch is improved, a certain port that belongs to same VLAN with each server in the Cluster Server group is set to the destination interface with the mapping of Cluster Server group, and in this destination interface set inside port self-loop function; Make that working as three-tier switch passes through mapping relations; After giving destination interface with the request service message route of the client that receives, destination interface can be transmitted to self with this message former state through inner port self-loop function; Thereby message to this same vlan port transmission; Destination interface can be handled this message with layer 2-switched mechanism, and it is broadcast to the every other port in the same VLAN, makes all Cluster Servers all can receive this message; Thereby directly Cluster Server is being carried out data interaction through three-tier switch and client terminal; Need not to connect under the layer 2-switched prerequisite, realized the function of NLB service, further improved the reliability of networking.
Description of drawings
In order to be illustrated more clearly in the embodiment of the invention or technical scheme of the prior art; To do one to the accompanying drawing of required use in embodiment or the description of the Prior Art below introduces simply; Obviously, the accompanying drawing in describing below is some embodiments of the present invention, for those of ordinary skills; Under the prerequisite of not paying creative work property, can also obtain other accompanying drawing according to these accompanying drawings.
Fig. 1 is the networking sketch map of typical NLB service in the prior art;
Fig. 2 is the flow chart of the network-building method embodiment one of NLB of the present invention;
Fig. 3 is the flow chart of the network-building method embodiment two of NLB of the present invention;
Fig. 4 is the structural representation of three-tier switch apparatus embodiments one of the present invention;
Fig. 5 is the structural representation of three-tier switch apparatus embodiments two of the present invention;
Fig. 6 is the structural representation of the group network system embodiment of NLB of the present invention.
Embodiment
For the purpose, technical scheme and the advantage that make the embodiment of the invention clearer; To combine the accompanying drawing in the embodiment of the invention below; Technical scheme in the embodiment of the invention is carried out clear, intactly description; Obviously, described embodiment is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills are not making the every other embodiment that is obtained under the creative work prerequisite, all belong to the scope of the present invention's protection.
Fig. 2 is the flow chart of the network-building method embodiment one of NLB of the present invention, and as shown in Figure 2, present embodiment specifically comprises the steps:
Step 100; After receiving the request service message of the sensing Cluster Server group that client sends; This request service message is routed to the destination interface that shines upon with the Cluster Server group, and all of the port that this destination interface is corresponding with the Cluster Server group belongs to a VLAN;
In the present embodiment; When the NLB service being provided, can between Cluster Server and client, save Layer 2 switch for the user in order to be implemented in, thus can be through reducing the data exchange processing of one deck; To improve the reliability of NLB service networking; Function to three-tier switch inside is improved, and makes the request service message of client after only the data route through three-tier switch is handled, and can be sent in the Servers-all of Cluster Server group.
Particularly; Because for three-tier switch; It is equivalent to combining of two layer-switching technologies and three layers of retransmission technique in fact, and promptly three-tier switch inside has possessed the correlation function that Layer 2 switch system is arranged, therefore in the present embodiment; Can make full use of this Layer 2 switch system function that three-tier switch inside has; Three-tier switch is carried out certain improvement, make three-tier switch to make that all Cluster Servers all can be through belonging to the corresponding port of this same VLAN on all of the port of the request service message final route that receives from a port in the same VLAN; Receive this request service message, thus real realization NLB service function.
Particularly; In the present embodiment; At first in order to make three-tier switch behind the request service message that receives the client transmission from the port that is connected with client; This request service message is routed among the VLAN of Cluster Server group subordinate; With the Layer 2 switch treatment mechanism of further realization three-tier switch, on three-tier switch, be provided with a destination interface with the mapping of the virtual ip address of Cluster Server group, and this destination interface is set to another independently in the VLAN for the message that belongs to same vlan port; And each server in the Cluster Server group is joined among this VLAN, make that each server corresponding port belongs to a VLAN in destination interface and the Cluster Server group.
Thereby three-tier switch is after receive the request service message that client sends with client port; Through resolving the purpose IP address of this request service message; The destination of learning this request service message is the Cluster Server group; So three-tier switch will ask service message to route in the destination interface with the mapping of the virtual ip address of Cluster Server group, destination interface will receive this request service message.
Step 101, according to preset port loop function, the request service message that this destination interface is received is transmitted to destination interface self again;
Destination interface receives behind the request service message of the port transmission of client connection; Because the port that client connects and this destination interface be not in same VLAN; Therefore for the request service message that receives from other VLAN; If according to the processing mode of existing three-tier switch, three-tier switch can be routed to this request service message in unique corresponding port, for example with the Cluster Server group in the corresponding port of a certain station server in; Thereby make and have only a station server can receive this request service message in the Cluster Server group, realization NLB service function that can't be real.
Therefore; In the present embodiment, for fear of above-mentioned situation occurring, this destination interface in the three-tier switch has been carried out further improvement; Specifically referred to the port self-loop function in this destination interface set inside; This port self-loop function makes that destination interface all can reflect this message that receives to self for any message that this destination interface receives from other ports, be about to this message once more former state be transmitted to destination interface oneself.Thus; For the request service message that destination interface is transmitted to self once more; Be equivalent to the message of destination interface from receiving with the port that self belongs to same VLAN; And for the message that receives in the same VLAN, three-tier switch can receive this request service message once more to destination interface and handle according to layer 2-switched mechanism.
Step 102 is broadcasted among the VLAN of request service message under destination interface that the destination interface route is returned, so that the Servers-all in the Cluster Server group can both receive this request service message through corresponding port.
Particularly; Because the destination of this request service message that client is sent is the Cluster Server group; Therefore should ask purpose medium access control (Media Access Control the is called for short MAC) address of service message is the shared virtual mac address of Cluster Server group, for this virtual MAC address; Three-tier switch can't inquire corresponding port real with it, promptly can't learn this virtual mac address.Therefore; After receiving the request service message that belongs to same VLAN at destination interface; Can't learn at three-tier switch under the prerequisite of target MAC (Media Access Control) address of this request service message; Destination interface will ask service message in the VLAN of its subordinate, to be broadcasted, and make that all of the port in this VLAN can both receive this request service message.
And because in setting up procedure in advance; Servers-all in the Cluster Server group all has been added among the VLAN of this destination interface subordinate, promptly belongs to a VLAN with destination interface, therefore; With Servers-all in the Cluster Server group all can through in this VLAN, connect corresponding all of the port and receive this request service message; And then this Cluster Server group carries out inter-process, selects a station server with this request of response, thereby accomplishes real NLB service function.
Thus; Built-in function through to three-tier switch is improved; The Layer 2 switch mechanism function that makes three-tier switch inside have can be fully used; Even thereby make and a three-tier switch only to be set in Cluster Server group and client, can realize that also the request service message that client is sent is sent to each Cluster Server, and then realize the function that NLB serves.For the user; After Cluster Server group and client had been saved a Layer 2 switch, the data route that the data message that client is sent only need pass through one deck was handled and just can be arrived Cluster Server, has improved the security reliability of NLB service; Further facilitated user's management
The network-building method of the NLB of present embodiment, through three-tier switch is improved, a certain port that belongs to same VLAN with each server in the Cluster Server group is set to the destination interface with the mapping of Cluster Server group; And in this destination interface set inside port self-loop function; Make when three-tier switch through mapping relations, give destination interface with the request service message route of the client that receives after, destination interface is through inner port self-loop function; Can this message former state be transmitted to self; Thereby to the message that this same vlan port sends, destination interface can be handled this message with layer 2-switched mechanism, and it is broadcast to the every other port in the same VLAN; Comprise all of the port corresponding with each Cluster Server; Make all Cluster Servers all can receive this message, thereby directly Cluster Server is being carried out data interaction through three-tier switch and client terminal, need not to connect under the layer 2-switched prerequisite; Realize the function of NLB service, further improved the reliability of networking.
Fig. 3 is the flow chart of the network-building method embodiment two of NLB of the present invention, and as shown in Figure 3, present embodiment specifically comprises the steps:
Step 200 receives that client is sent, as to point to Cluster Server group request service message;
Step 201 is extracted purpose IP address from the request service message, this purpose IP address is the virtual ip address of Cluster Server group;
Step 202, the destination interface of inquiry and purpose IP map addresses;
Step 203 routes to the destination interface that inquires with the request service message, and all of the port that this destination interface is corresponding with the Cluster Server group belongs to a VLAN;
In three-tier switch; Data route between the port is achieved through the corresponding relation of IP address and port usually; And corresponding to an IP address, a purpose route outlet can only be arranged in three-tier switch, promptly an IP address can only corresponding independent port.Therefore in the present embodiment; When three-tier switch receives the request service message client transmission, that point to the Cluster Server group through the port that is connected with client after; In order to ask service message to be transmitted to corresponding port; To ask to extract the service message purpose IP address of wherein carrying from this, with the port of inquiry with this purpose IP map addresses.
Particularly; Because the destination of request service message is the Cluster Server group; So the purpose IP address that three-tier switch therefrom extracts is the virtual ip address of Cluster Server group; And because in the present embodiment, be provided with a destination interface with the virtual ip address mapping of Cluster Server group in the inner correspondence of three-tier switch, so the purpose IP address that the three-tier switch basis extracts will inquire this destination interface.After inquiring this destination interface, three-tier switch will ask service message to route to this destination interface from the port that is connected with client, and in the present embodiment, all of the port that this destination interface is corresponding with the Cluster Server group belongs among the VLAN.
Step 204, according to preset port loop function, the request service message that destination interface is received is transmitted to destination interface self again;
After destination interface receives this request service message from other ports,, should ask service message to reflect to self according to preset port self-loop function, soon this message once more former state be transmitted to destination interface oneself.Thus; After destination interface receives the request service message that feeds back to self; Be equivalent to from the port that self belongs to same VLAN received one and E-Packeted; Thereby for the message that receives in this same VLAN, three-tier switch can carry out route to this type of message according to layer 2-switched mechanism to be handled.
Step 205 is broadcasted among the VLAN of request service message under destination interface that the destination interface route is returned;
Particularly, in the present embodiment, this step 205 specifically can comprise following a few sub-steps:
Step 2050 is extracted target MAC (Media Access Control) address from the request service message, this target MAC (Media Access Control) address is the virtual mac address of Cluster Server group;
Step 2051, among the VLAN under destination interface, inquiry and this target MAC (Media Access Control) address corresponding port;
Step 2052 if can't inquire and the target MAC (Media Access Control) address corresponding port, is broadcasted among the VLAN of request service message under destination interface that the destination interface route is returned;
And based on layer 2-switched treatment mechanism, three-tier switch at first will ask to extract the service message target MAC (Media Access Control) address wherein from this, and according to searching the corresponding port with this purpose MAC in the VLAN of this target MAC (Media Access Control) address under destination interface.Particularly; Because the destination of this request service message is the Cluster Server group; So the target MAC (Media Access Control) address that three-tier switch extracts is the virtual mac address of Cluster Server group; Be that three-tier switch is further inquired about and this virtual mac address corresponding port in the VLAN under destination interface, with this virtual mac address of study in the VLAN under destination interface.
And because this virtual mac address is essentially a virtual address; Three-tier switch is in the process that VLAN searches; Be what can't inquire with this virtual address corresponding port, thereby three-tier switch do not finding under the prerequisite of corresponding port, can only be with broadcasting in the VLAN of this request service message under destination interface; Will ask service message to be broadcast on the ports all in this VLAN; Thus, the Servers-all in the Cluster Server group can both receive this request service message through port correspondence, that be subordinated to this VLAN, and then realizes the NLB service on this basis.
Step 206, the Servers-all in the Cluster Server group all receive this request service message through corresponding port in the VLAN;
Step 207 receives the response message that the Cluster Server group is returned according to the request service message;
Further; After this request service message is received in the Cluster Server winding; To between multiple servers, carry out the NLB service interaction; According to the result of NLB service interaction, the station server in this Cluster Server group will ask service message to respond to this, and generate corresponding response message through being sent to three-tier switch with this server corresponding port.Particularly, the source IP address of this response message is the virtual ip address of this Cluster Server group, and source MAC is the real MAC Address of this server, and IP address and MAC Address that the purpose IP address of this response message and target MAC (Media Access Control) address are client.
Step 208 according to the purpose IP address of response message, routes to the port that shines upon with client with this response message, so that client receives response message.
After three-tier switch receives the response message that the Cluster Server group returns; Extract the purpose IP address of wherein carrying; And inquiry and this purpose IP address corresponding port in three-tier switch, the i.e. port of inquiry and client mapping, this port are unique existence in three-tier switch.After inquiring this corresponding port; Three-tier switch routes to this and client corresponding port with this response message, thereby client can receive the response message that the Cluster Server group is returned through this port; So far, the whole reciprocal process of client and Cluster Server group is accomplished.Particularly, should with the client corresponding port promptly in step 200, three-tier switch receives the port of request service message.
The network-building method of the NLB of present embodiment, through three-tier switch is improved, a certain port that belongs to same VLAN with each server in the Cluster Server group is set to the destination interface with the mapping of Cluster Server group; And in this destination interface set inside port self-loop function; Make when three-tier switch through mapping relations, give destination interface with the request service message route of the client that receives after, destination interface is through inner port self-loop function; Can this message former state be transmitted to self; Thereby to the message that this same vlan port sends, destination interface can be handled this message with layer 2-switched mechanism, and it is broadcast to the every other port in the same VLAN; Comprise all of the port corresponding with each Cluster Server; Make all Cluster Servers all can receive this message, thereby directly Cluster Server is being carried out data interaction through three-tier switch and client terminal, need not to connect under the layer 2-switched prerequisite; Realize the function of NLB service, further improved the reliability of networking.
One of ordinary skill in the art will appreciate that: all or part of step that realizes said method embodiment can be accomplished through the relevant hardware of program command; Aforesaid program can be stored in the computer read/write memory medium; This program the step that comprises said method embodiment when carrying out; And aforesaid storage medium comprises: various media that can be program code stored such as ROM, RAM, magnetic disc or CD.
Fig. 4 is the structural representation of three-tier switch apparatus embodiments one of the present invention, and as shown in Figure 4, the three-tier switch equipment of present embodiment comprises: message receiver module 11, the first message routing module 12, packet forwarding module 13 and message broadcast module 14.
Wherein, message receiver module 11 is used to receive the request service message of the sensing Cluster Server group that client sends; The first message routing module 12 is used for this request service message is routed to the destination interface that shines upon with said Cluster Server group, and all of the port that this destination interface is corresponding with the Cluster Server group belongs to a VLAN; Packet forwarding module 13 is used for according to preset port loop function, and the request service message that destination interface is received is transmitted to destination interface self again; The VLAN of request service message under destination interface that 14 of message broadcast module are used for the destination interface route is returned broadcasts, so that the Servers-all in the Cluster Server group can both receive this request service message through corresponding port.
Particularly, the concrete course of work that all modules in the present embodiment are related can repeat no more at this with reference to the related content of the related related embodiment exposure of the network-building method of above-mentioned NLB service.
The three-tier switch equipment of present embodiment; Be set to the destination interface with the mapping of Cluster Server group through a certain port that belongs to same VLAN with each server in the Cluster Server group in inside, and in this destination interface set inside port self-loop function, make and pass through mapping relations when three-tier switch; After giving destination interface with the request service message route of the client that receives; Destination interface can be transmitted to self with this message former state through inner port self-loop function, thereby is directed against the message that this same vlan port sends; Destination interface can be handled this message with layer 2-switched mechanism; It is broadcast to the every other port in the same VLAN, comprises all of the port corresponding, make all Cluster Servers all can receive this message with each Cluster Server; Thereby directly Cluster Server is being carried out data interaction through three-tier switch and client terminal; Need not to connect under the layer 2-switched prerequisite, realized the function of NLB service, further improved the reliability of networking.
Fig. 5 is the structural representation of three-tier switch apparatus embodiments two of the present invention; As shown in Figure 5; On the basis of above-mentioned three-tier switch apparatus embodiments one, the three-tier switch equipment of present embodiment can also comprise the response message receiver module 15 and the second message routing module 16.Wherein, response message receiver module 15 is used for after the VLAN of request service message under destination interface that message broadcast module 14 is returned the destination interface route broadcasts, and receives the response message that the Cluster Server group is returned according to the request service message; The second message routing module 16 is used for the purpose IP address according to response message, response message is routed to the port that shines upon with client, so that client receives response message.
Further, the first message routing module 12 in the present embodiment can also comprise IP address extraction unit 121, the first interface querying unit 122 and message routing unit 123.Wherein IP address extraction unit 121 is used for extracting purpose IP address from the request service message, and purpose IP address is the virtual ip address of Cluster Server group; The first interface querying unit 122 is used to inquire about the destination interface with purpose IP map addresses; Message routing unit 123 then be used for the request service message route to the first interface querying unit 122 that inquire, with the corresponding destination interface in purpose IP address.
Further, in the present embodiment, message broadcast module 14 can also comprise MAC Address extraction unit 141, the second interface querying unit 142 and message radio unit 143.Wherein, MAC Address extraction unit 141 is used for extracting target MAC (Media Access Control) address from the request service message, and this target MAC (Media Access Control) address is the virtual mac address of said Cluster Server group; The second interface querying unit 142 is used for the VLAN under destination interface, inquiry and target MAC (Media Access Control) address corresponding port; 143 of message radio units are used for then will asking to broadcast among the VLAN of service message under destination interface if can't inquire and the target MAC (Media Access Control) address corresponding port.
Particularly, the related concrete course of work of above-mentioned all modules in the present embodiment can repeat no more at this with reference to the related content of the related related embodiment exposure of the network-building method of above-mentioned NLB service equally.
The three-tier switch equipment of present embodiment; Be set to the destination interface with the mapping of Cluster Server group through a certain port that belongs to same VLAN with each server in the Cluster Server group in inside, and in this destination interface set inside port self-loop function, make and pass through mapping relations when three-tier switch; After giving destination interface with the request service message route of the client that receives; Destination interface can be transmitted to self with this message former state through inner port self-loop function, thereby is directed against the message that this same vlan port sends; Destination interface can be handled this message with layer 2-switched mechanism; It is broadcast to the every other port in the same VLAN, comprises all of the port corresponding, make all Cluster Servers all can receive this message with each Cluster Server; Thereby realized need not to connect under the layer 2-switched prerequisite; Directly Cluster Server is carried out data interaction through three-tier switch and client terminal, also can realize the NLB function, further improved the reliability of networking.
Fig. 6 is the structural representation of the group network system embodiment of NLB of the present invention; As shown in Figure 6; The group network system of the NLB of present embodiment comprises three-tier switch equipment 1, and the client 2 and Cluster Server group 3 that are connected with this three-tier switch equipment 1 respectively.Particularly; All included modules of three-tier switch equipment in the present embodiment; And the related concrete course of work of all modules; The related content that can disclose with reference to the network-building method and the related related embodiment of three-tier switch equipment of above-mentioned NLB service equally repeats no more at this.
The group network system of the NLB of present embodiment; Be set to the destination interface with the mapping of Cluster Server group through a certain port that belongs to same VLAN with each server in the Cluster Server group in inside, and in this destination interface set inside port self-loop function, make and pass through mapping relations when three-tier switch; After giving destination interface with the request service message route of the client that receives; Destination interface can be transmitted to self with this message former state through inner port self-loop function, thereby is directed against the message that this same vlan port sends; Destination interface can be handled this message with layer 2-switched mechanism; It is broadcast to the every other port in the same VLAN, comprises all of the port corresponding, make all Cluster Servers all can receive this message with each Cluster Server; Thereby realized need not to connect under the layer 2-switched prerequisite; Directly Cluster Server is carried out data interaction through three-tier switch and client terminal, also can realize the NLB function, further improved the reliability of networking.
What should explain at last is: above embodiment is only in order to explaining technical scheme of the present invention, but not to its restriction; Although with reference to previous embodiment the present invention has been carried out detailed explanation, those of ordinary skill in the art is to be understood that: it still can be made amendment to the technical scheme that aforementioned each embodiment put down in writing, and perhaps part technical characterictic wherein is equal to replacement; And these are revised or replacement, do not make the spirit and the scope of the essence disengaging various embodiments of the present invention technical scheme of relevant art scheme.

Claims (9)

1. the network-building method of a NLB is characterized in that, comprising:
After receiving the request service message of the sensing Cluster Server group that client sends; The described request service message is routed to the destination interface that shines upon with said Cluster Server group, and said destination interface belongs to a VLAN with the corresponding all of the port of said Cluster Server group;
According to said preset port loop function, the described request service message that said destination interface is received is transmitted to said destination interface self again;
Said destination interface is transmitted to again in the VLAN of described request service message under said destination interface of said destination interface self and broadcasts.
2. the network-building method of NLB according to claim 1; It is characterized in that; After broadcasting in the said VLAN of described request service message under said destination interface that said destination interface route is returned, said method also comprises:
Receive the response message that said Cluster Server group is returned according to the described request service message;
According to the purpose IP address of said response message, said response message is routed to the port that shines upon with said client.
3. the network-building method of NLB according to claim 1 and 2 is characterized in that, the said destination interface that the described request service message is routed to Cluster Server group mapping specifically comprises:
From the described request service message, extract purpose IP address, said purpose IP address is the virtual ip address of said Cluster Server group;
Inquire about the said destination interface corresponding with said purpose IP address;
The described request service message is routed to the said destination interface corresponding with said purpose IP address.
4. the network-building method of NLB according to claim 1 and 2 is characterized in that, broadcasts specifically in the said VLAN of described request service message under said destination interface that said destination interface route is returned to comprise:
From the described request service message, extract target MAC (Media Access Control) address, said target MAC (Media Access Control) address is the virtual mac address of said Cluster Server group;
In the VLAN under said destination interface, inquiry and said target MAC (Media Access Control) address corresponding port;
If can't inquire and said target MAC (Media Access Control) address corresponding port, then with broadcasting in the VLAN of described request service message under said destination interface.
5. a three-tier switch equipment is characterized in that, comprising:
The message receiver module is used to receive the request service message of the sensing Cluster Server group that client sends;
The first message routing module is used for the described request service message is routed to the destination interface that shines upon with said Cluster Server group, and said destination interface belongs to a VLAN with the corresponding all of the port of said Cluster Server group;
Packet forwarding module is used for according to said preset port loop function, and the described request service message that said destination interface is received is transmitted to said destination interface self again;
The message broadcast module, the VLAN of described request service message under said destination interface that is used for said destination interface is transmitted to again said destination interface self broadcasted.
6. three-tier switch equipment according to claim 5 is characterized in that, also comprises:
The response message receiver module; Be used for after the VLAN of described request service message under said destination interface that said message broadcast module is returned said destination interface route broadcasted, receiving the response message that said Cluster Server group is returned according to the described request service message;
The second message routing module is used for the purpose IP address according to said response message, said response message is routed to the port that shines upon with said client.
7. according to claim 5 or 6 described three-tier switch equipment, it is characterized in that the said first message routing module also comprises:
IP address extraction unit is used for extracting purpose IP address from the described request service message, and said purpose IP address is the virtual ip address of said Cluster Server group;
The first interface querying unit is used to inquire about the said destination interface with said purpose IP map addresses;
The message routing unit is used for the described request service message is routed to the said destination interface corresponding with said purpose IP address.
8. according to claim 5 or 6 described three-tier switch equipment, it is characterized in that said message broadcast module also comprises:
The MAC Address extraction unit is used for extracting target MAC (Media Access Control) address from the described request service message, and said target MAC (Media Access Control) address is the virtual mac address of said Cluster Server group;
The second interface querying unit is used for the VLAN under said destination interface, inquiry and said target MAC (Media Access Control) address corresponding port;
The message radio unit is used for if can't inquire and said target MAC (Media Access Control) address corresponding port, then with broadcasting in the VLAN of described request service message under said destination interface.
9. the group network system of a NLB is characterized in that, comprising: like the arbitrary described three-tier switch equipment of claim 5~8, and the client and the Cluster Server group that are connected with said three-tier switch equipment respectively.
CN2010101446223A 2010-04-08 2010-04-08 Network load balancing networking method, network load balancing networking equipment and network load balancing networking system Expired - Fee Related CN101795238B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2010101446223A CN101795238B (en) 2010-04-08 2010-04-08 Network load balancing networking method, network load balancing networking equipment and network load balancing networking system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2010101446223A CN101795238B (en) 2010-04-08 2010-04-08 Network load balancing networking method, network load balancing networking equipment and network load balancing networking system

Publications (2)

Publication Number Publication Date
CN101795238A CN101795238A (en) 2010-08-04
CN101795238B true CN101795238B (en) 2012-08-15

Family

ID=42587668

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2010101446223A Expired - Fee Related CN101795238B (en) 2010-04-08 2010-04-08 Network load balancing networking method, network load balancing networking equipment and network load balancing networking system

Country Status (1)

Country Link
CN (1) CN101795238B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101909010B (en) * 2010-08-06 2012-10-10 福建星网锐捷网络有限公司 Port configuration method and device as well as switcher equipment
CA2753747C (en) * 2010-12-14 2019-08-13 International Business Machines Corporation Method for operating a node cluster system in a network and node cluster system
CN102647437B (en) * 2011-02-22 2015-04-08 中国铁路总公司 Centralized traffic control method and centralized traffic control system
CN103023942B (en) * 2011-09-27 2016-08-03 北京奇虎科技有限公司 A kind of server load balancing method, Apparatus and system
CN103795635B (en) * 2012-11-01 2017-04-12 华为技术有限公司 Processing method, device and system for controlling message broadcast
CN104253769B (en) * 2014-10-21 2017-10-31 迈普通信技术股份有限公司 The implementation method and device of a kind of Port Mirroring

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1980177A (en) * 2005-12-02 2007-06-13 中兴通讯股份有限公司 Method for realizing virtual special local network service broadcast

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1980177A (en) * 2005-12-02 2007-06-13 中兴通讯股份有限公司 Method for realizing virtual special local network service broadcast

Also Published As

Publication number Publication date
CN101795238A (en) 2010-08-04

Similar Documents

Publication Publication Date Title
CN107465590B (en) Network infrastructure system, method of routing network traffic and computer readable medium
CN102726021B (en) Data center network architecture flexibly
CN101795238B (en) Network load balancing networking method, network load balancing networking equipment and network load balancing networking system
US8549120B2 (en) System and method for location based address assignment in the distribution of traffic in a virtual gateway
CN102859973B (en) Method, apparatus and system for address resolution
CN101442493B (en) Method for distributing IP message, cluster system and load equalizer
CN102244614B (en) Message forwarding method, system and routing switch
US10079694B2 (en) Scalable virtual networks in SDN-based ethernet networks using VLANs
EP2901630B1 (en) Method operating in a fixed access network and user equipments
WO2015150756A1 (en) Data center networks
US20150263862A1 (en) Communication system, control apparatus, communication control method, transfer control method, and transfer control program
CN101488918A (en) Multi-network card server access method and system
US20220345331A1 (en) Two-layer private line network system, configuration method, and device
CN112965824A (en) Message forwarding method and device, storage medium and electronic equipment
CN107317752B (en) Method and device for forwarding data message
CN101909010B (en) Port configuration method and device as well as switcher equipment
CN102594668A (en) Message forwarding method, device and exchange equipment
CN110089078B (en) Method and apparatus for providing a traffic forwarder via a dynamic overlay network
CN112491984B (en) Container editing engine cluster management system based on virtual network bridge
CN102882781A (en) Method, route bridge and system for transmitting message
CN102340436B (en) Cross-network message forwarding method and switch system
CN101383772A (en) Method and device for automatically discovering and establishing MAC route information table
CN106375355B (en) Load balancing processing method and device
CN104734930B (en) Method and device for realizing access of Virtual Local Area Network (VLAN) to Variable Frequency (VF) network and Fiber Channel Frequency (FCF)
CN105897542B (en) Tunnel establishment method and video monitoring system

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
CP01 Change in the name or title of a patent holder

Address after: Cangshan District of Fuzhou City, Fujian province 350002 Jinshan Road No. 618 Garden State Industrial Park 19 floor

Patentee after: RUIJIE NETWORKS Co.,Ltd.

Address before: Cangshan District of Fuzhou City, Fujian province 350002 Jinshan Road No. 618 Garden State Industrial Park 19 floor

Patentee before: Fujian Star-net Ruijie Network Co.,Ltd.

CP01 Change in the name or title of a patent holder
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20120815

CF01 Termination of patent right due to non-payment of annual fee