CN101404619B - Method for implementing server load balancing and a three-layer switchboard - Google Patents

Method for implementing server load balancing and a three-layer switchboard Download PDF

Info

Publication number
CN101404619B
CN101404619B CN2008102268300A CN200810226830A CN101404619B CN 101404619 B CN101404619 B CN 101404619B CN 2008102268300 A CN2008102268300 A CN 2008102268300A CN 200810226830 A CN200810226830 A CN 200810226830A CN 101404619 B CN101404619 B CN 101404619B
Authority
CN
China
Prior art keywords
port
server
address
mac
port group
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN2008102268300A
Other languages
Chinese (zh)
Other versions
CN101404619A (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 Ziguang Communication Technology Group Co ltd
Original Assignee
Hangzhou H3C 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 Hangzhou H3C Technologies Co Ltd filed Critical Hangzhou H3C Technologies Co Ltd
Priority to CN2008102268300A priority Critical patent/CN101404619B/en
Publication of CN101404619A publication Critical patent/CN101404619A/en
Application granted granted Critical
Publication of CN101404619B publication Critical patent/CN101404619B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention discloses a method for realizing the loading balance of a server, comprising: ports which are connected with a plurality of servers that are provided with the same IP address and different MAC addresses on a three-layer switch are combined into a polymerized port group; when the three-layer switch receives a service request message that a target IP address is the IP address of the server, the MAC address of the main port is found in an ARP table according to the IP address of the server. The out port of the service request message is ensured to be the polymerized port group. Then, one port is selected from the polymerized port group as the out port for sending out the service request message by the out port. The three-layer switch is also disclosed. With the technical scheme adopted, the loading balance of the server can be realized on the three-layer access switch with low cost.

Description

A kind of method and a kind of three-tier switch of realizing server load balancing
Technical field
The present invention relates to network communications technology field, refer to a kind of method and a kind of three-tier switch of realizing server load balancing especially.
Background technology
Have the target that a large amount of visits and user are the information service providers.But a large amount of visit capacities can be brought white elephant to server, and along with user number constantly increases, server becomes and sinks beneath one's burden, if can't in time handle a large number of users service request, will the situation of service disruption occur.When addressing these problems, can only adopt the server of stronger computing capability to replace original server, even so in the past, the load capacity of separate unit server also is limited, impossible infinite expanding, simultaneously, the price of server also rises along with server performance presents exponential type.Therefore, the scheme that adopts many low-cost servers to form the load balancing system day by day becomes main flow.
Form the load balancing systems with many low-cost servers and forms a server set by multiple servers with symmetrical manner, every station server all has the status of equality, service can externally be provided separately and need not assisting of other servers.And the request that load balancing equipment sends the outside is evenly distributed on a certain station server in the symmetrical structure, and receives the request that the requested service device is responded the client independently.
Fig. 1 is the schematic diagram of the server load balancing system of NAT mode of the prior art.Referring to Fig. 1, server load balancing comprises following basic element:
Load-balancing device: be responsible for the various service requests of distribution to each server;
Server: be responsible for response and handle various service requests;
VSIP: the virtual ip address that server cluster externally provides, use during for user request service;
Server ip address corresponding to the IP A among Fig. 1, IP B and IP C, uses during for the request of load-balancing device distribution services.
Fig. 2 is the flow chart of the server load balancing system handles service request of NAT mode shown in Figure 1.As shown in Figure 2, may further comprise the steps:
Step 201, client host is the load-balancing device that the service request of VSIP sends to the server cluster front end with destination address.
Step 202, load-balancing device are selected one server by dispatching algorithm.
Step 203, load-balancing device be by network address translation, behind the destination address with the address rewrite service request messages of selected server, service request messages sent to selected server.
Step 204, server sends to load-balancing device with the service response message, and wherein, the source IP address of this service response message is the IP of this server itself.
Step 205, load-balancing device is reduced to the empty VSIP that serves with the source IP address of service response message, returns to client host again, finishes whole load dispatch process.
Though the load-balancing technique of NAT mode has advantages such as high-performance, high likelihood, the transparency and extensibility are strong, also following shortcoming: load-balancing device is a separate equipment, and costs an arm and a leg.At present, the load-balancing device on the market all is specialized vendor's a autonomous device, and price is very expensive, and for most of middle-size and small-size data center servers, so expensive equipment is unable to reach.
Summary of the invention
The invention provides a kind of method that realizes server load balancing, this method makes it possible to realize server load balancing on three layers of access switch with low cost, and need not expensive special-purpose load-balancing device.
The present invention also provides a kind of three-tier switch, and this three-tier switch can be realized server load balancing.
For achieving the above object, technical scheme of the present invention specifically is achieved in that
The invention discloses a kind of method that realizes server load balancing, this method is applied to three-tier switch and connects to form the networking of the plural server of described server cluster as the gateway of server cluster, and this method comprises:
With the port trunking of described two the above servers of the connection on the three-tier switch together, form the aggregation port group, and to specify a port in the aggregation port group be master port;
Be identical Internet protocol IP address and the mutually different medium access control MAC addresses of plural server-assignment of forming described server cluster;
Described three-tier switch is saved in the MAC Address correspondence of server ip address and master port institute Connection Service device in the ARP table, and the MAC Address correspondence of the server that each port and each port connected in the aggregation port group is saved in the aggregation port group MAC table;
When described three-tier switch receives service request messages, purpose IP address search ARP table according to service request messages, when the corresponding MAC Address that finds is the MAC Address of master port, determine that then the outbound port of described service request messages is the aggregation port group from the ARP table;
Described three-tier switch selects a port as outbound port from the aggregation port group according to the load balancing algorithm of being scheduled to for the aggregation port group, and the outbound port of described service request messages by described selection sent to the server that this outbound port connects.
The invention also discloses a kind of three-tier switch, this three-tier switch connects to form the plural server of described server cluster as the gateway of server cluster, and described plural server has identical IP address and mutually different MAC Address, and this three-tier switch comprises:
The aggregation port group, each port in this aggregation port group connects to form the plural server of described server cluster correspondingly, and a designated port in this aggregation port group is a master port;
Memory module, be used to store ARP table and aggregation port group MAC table, corresponding MAC Address of preserving server ip address and master port institute Connection Service device in the described ARP table, corresponding MAC Address of preserving the server that each port and each port connected in the aggregation port group in the described aggregation port group MAC table;
Packet forwarding module, be used for when receiving service request messages, purpose IP address search ARP table according to service request messages, when find corresponding MAC Address from the ARP table is the MAC Address of master port, the outbound port of determining described service request messages is the aggregation port group, then send query requests to the polymerization module, a port in the aggregation port group that the polymerization module is returned sends to server that this outbound port connect with described service request messages by described outbound port as outbound port;
The polymerization module is used for after receiving the query requests that packet forwarding module sends, according to selecting a port to return to packet forwarding module from the aggregation port group for the predetermined load balancing algorithm of aggregation port group.
As seen from the above technical solution, this port that connection on the three-tier switch is had a plurality of servers of identical ip addresses and different MAC Address of the present invention is formed the aggregation port group; The MAC Address correspondence of server ip address and master port institute Connection Service device is saved in the ARP table, and the MAC Address correspondence of the server that each port and each port connected in the aggregation port group is saved in the aggregation port group MAC table; Three-tier switch receives purpose IP address when being the service request messages of server ip address, from the ARP table, find the MAC Address of master port according to server ip address, determining port is the aggregation port group, then from the aggregation port group, select a port as outbound port, from aggregation port group MAC table, find corresponding MAC Address according to described outbound port, behind the target MAC (Media Access Control) address in this MAC Address replacement service request messages, the technical scheme that service request messages is sent by outbound port, make it possible on three layers of access switch with low cost, realize server load balancing, and need not expensive special-purpose load-balancing device.
Description of drawings
Fig. 1 is the schematic diagram of the server load balancing system of NAT mode of the prior art;
Fig. 2 is the flow chart of the server load balancing system handles service request of NAT mode shown in Figure 1;
Fig. 3 is a kind of flow chart of realizing the method for server load balancing of the embodiment of the invention;
Fig. 4 is an actual networking schematic diagram using method shown in Figure 3;
Fig. 5 is the composition structural representation of a kind of three-tier switch of the embodiment of the invention.
Embodiment
The present invention mainly is at the extremely expensive problem of the server load balancing equipment cost of specialty in the existing server load balancing scheme, a kind of scheme that realizes server load balancing based on three layers of access switch link aggregation has been proposed, thereby can on access switch with low cost, realize the server load balancing function, and need not expensive professional server load-balancing device, a kind of load balancing scheme of high performance-price ratio is provided for the user.
Fig. 3 is a kind of flow chart of realizing the method for server load balancing of the embodiment of the invention, this method is applied to three-tier switch connects to form the plural server of described server cluster as the gateway of server cluster networking, as shown in Figure 3, this method comprises:
Step 301 with the port trunking of two above servers of the connection on the three-tier switch together, is formed the aggregation port group, and to specify a port in the aggregation port group be master port.
Step 302 is identical Internet protocol IP address and the mutually different medium access control MAC addresses of plural server-assignment of forming described server cluster.
Step 303, described three-tier switch is saved in the MAC Address correspondence of server ip address and master port institute Connection Service device in the ARP table, and the MAC Address correspondence of the server that each port and each port connected in the aggregation port group is saved in the aggregation port group MAC table.
Step 304, described three-tier switch receives purpose IP address when being the service request messages of server ip address, finding corresponding MAC Address according to server ip address from the ARP table is the MAC Address of master port, determining port is the aggregation port group, selects a port as outbound port from the aggregation port group according to predetermined load balancing algorithm; Three-tier switch finds corresponding MAC Address according to the port of described selection from aggregation port group MAC table, after replacing target MAC (Media Access Control) address in the described service request messages with this MAC Address of searching, the port of described service request messages by described selection sent to the server that this port connects.
For making purpose of the present invention, technical scheme and advantage clearer, below enumerate a concrete example, the present invention is described in more detail.
Fig. 4 is an actual networking schematic diagram using method shown in Figure 3.As shown in Figure 4, this networking plan comprises following feature:
A1, n platform externally provide the server of identical services, and (server 1~n) is linked on the three-tier switch by the port one~n on the three-tier switch, and n is the natural number greater than 1.
By static configuration port one~n is condensed together on a2, the three-tier switch, form the aggregation port group, wherein port one is a master port, as the sign of whole aggregation port group.
The IP address of a3, server is manual specifies, and the IP address of n station server is identical, represent with IP1 here, and in same virtual LAN VLAN (this is because each port of aggregation port group all belongs to same VLAN).Need to prove: the IP address of each server is identical, the isolation mech isolation test between the aggregation port of the mutual isolation dependence three-tier switch between each server, and guaranteeing can not intercommunication between each server.
The medium access control MAC addresses of a4, n station server has nothing in common with each other, be respectively MAC1, MAC2 ..., MACn.
A5, three-tier switch are the gateways of each server, dispose the ARP information of three-tier switch (gateway) on each server respectively.Here the ARP information at configuration three-tier switch on the server is specially: the ARP table of the MAC Address of the IP address of three-tier switch and described aggregation port group correspondence is preserved in configuration respectively on each server.The MAC Address of aggregation port group correspondence is specially the pairing MAC Address of VLAN Interface of the affiliated VLAN of this aggregation port group.
In Fig. 4, the ARP/MAC learning process of three-tier switch is:
B1, each server send the ARP request message to three-tier switch;
B2, three-tier switch receive ARP request message from each server by each aggregation port in the aggregation port group, treatment mechanism according to link aggregation, send ARP resume module in the ARP request meeting of having only master port (being port one) to receive, thereby the ARP list item that three-tier switch is learnt be (IP1, MAC1);
B3, switch can be learnt the MAC Address of each server, but according to link set mechanism, have only the MAC Address of learning on the master port just can write content-addressable memory, i.e. (MAC1, port one) when the ARP request of receiving each server; Port one in the content-addressable memory is actually n interior port of the whole aggregation port group of representative.In addition, though the mac address information of learning on each port in the aggregation port group can not write content-addressable memory, but can not be dropped yet, but the ARP request message of receiving according to each port in the aggregation port group is saved in the MAC address correspondence of the server that each port and each port connected in the aggregation port group MAC table, and aggregation port group MAC table is as shown in table 1:
MAC Address Port
MAC1 Port one
MAC2 Port 2
...... ......
MACn Port n
Table 1
As can be seen, three-tier switch is as the gateway of cluster server, and the ARP broadcast domain of the multiple servers with identical ip addresses in the cluster is controlled in the minimum zone.
In Fig. 4, the flow process of Operational Visit server is as follows:
The service request messages of c1, client-access server arrives three-tier switch earlier; The source IP address of this service request messages is the IP address of client, destination address is the IP address (being IP1) of server, and source MAC is last one MAC Address of jumping of three-tier switch, represents with MACx, target MAC (Media Access Control) address is the external MAC Address that provides of three-tier switch, represents with MACy;
C2, three-tier switch obtain a direct-connected route by routing inquiry, then look into the ARP table of self according to the purpose IP address (being IP1) of service request messages, and obtaining corresponding MAC Address is MAC1;
C3, since MAC1 corresponding port 1 represent the aggregation port group, so three-tier switch as can be known outbound port be an aggregation port group, its master port is a port one; According to predetermined aggregated links load balancing algorithm, for example, do Hash (Hash) algorithm with the source IP address and the source port number of service request messages, from port one~n, select a port as outbound port etc., suppose here to have selected port 2 as outbound port.
C4, three-tier switch are searched the aggregation port group MAC table of self maintained according to outbound port 2, and obtaining corresponding M AC address is MAC2;
C5, three-tier switch replace with MAC2 with the target MAC (Media Access Control) address of service request messages, and the source MAC of service request messages is replaced with the MAC Address of aggregation port group correspondence, send to server 2 from port 2 then.
C6, server 2 are handled service request messages, and generate the service response message.The source IP address of this service response message is the IP address (being IP1) of server 2, and purpose IP address is the IP address of client;
C7, according to the default route on the server 2, next jumps gateway is three-tier switch; According to the ARP table of server 2 self (in the ARP table corresponding be the MAC Address of aggregation port group) configuration with the IP address of three-tier switch, the target MAC (Media Access Control) address of service response message is the MAC Address of aggregation port group, and source MAC is the MAC Address MAC2 of server 2.
After c8, three-tier switch receive this service response message, the source MAC of this message is updated to the MAC Address MACy of three-tier switch external interface, forwards after target MAC (Media Access Control) address being updated to the MAC Address MACx of next jumping.
In Fig. 4, the health detection flow process of three-tier switch is:
Server in d1, the cluster occurs unusual, comprising: server delay machine, network interface card fault, fault or the like; Here it is unusual to suppose that server 2 occurs;
D2, three-tier switch detect port 2 and report thrashing message (DOWN), transfer port 2 to (Standby) state of awaiting orders from active (Active) state, simultaneously port 2 is deleted from the subport pond of aggregation port group, and corresponding renewal ARP table and aggregation port group MAC table.Here content is irrelevant with port 2 in the ARP table, therefore need not to upgrade, and the item corresponding with port 2 in the aggregation port group MAC table needs to delete;
D3, three-tier switch reselect server for the Business Stream of originally delivering to server 2 and handling, and for example, according to increasing progressively principle, selecting server 3 is destination server;
If d4 server 2 returns to normal condition, three-tier switch detects the recovery message (UP) that port 2 reports, transfer port 2 to active (Active) state from (Standby) state of awaiting orders, port 2 is joined in the subport pond of aggregation port group simultaneously, and corresponding renewal ARP table and aggregation port group MAC table.Here content is irrelevant with port 2 in the ARP table, therefore need not to upgrade, and in the aggregation port group MAC table corresponding with port 2 need be by relearning and increasing;
If the server that d5 is connected with master port occurs unusual, be that server 1 occurs unusually, port one is reported DOWN, and then three-tier switch is aggregation port group selection master port again, as select port 2 to be master port, and corresponding renewal ARP table and aggregation port group MAC table.Here ARP table is updated to that (IP1, MAC2), the deletion port one is pairing from aggregation port group MAC table.
By such scheme, can realize utilizing cheaply that the link set characteristic of three layers of access switch provides the load balancing support for server cluster, guarantee basic server health detection mechanism simultaneously, improved the reliability and the utilance of server cluster.
Fig. 5 is the composition structural representation of a kind of three-tier switch of the embodiment of the invention, this three-tier switch connects to form the plural server of described server cluster as the gateway of server cluster, and described plural server has identical IP address and mutually different MAC Address, as shown in Figure 5, this three-tier switch comprises: aggregation port group 501, memory module 502, packet forwarding module 503 and polymerization module 504, wherein
Each port in the aggregation port group 501 connects to form the plural server of described server cluster correspondingly, and a designated port in this aggregation port group is a master port;
Memory module 502, be used to store ARP table and aggregation port group MAC table, corresponding MAC Address of preserving server ip address and master port institute Connection Service device in the described ARP table, corresponding MAC Address of preserving the server that each port and each port connected in the aggregation port group in the described aggregation port group MAC table;
Packet forwarding module 503, be used for when receiving that purpose IP address is the service request messages of server ip address, finding corresponding MAC Address according to server ip address from the ARP table is the MAC Address of master port, determining port is the aggregation port group, then send query requests to the polymerization module, a port in the aggregation port group that the polymerization module is returned is as outbound port; From aggregation port group MAC table, find corresponding MAC Address according to described outbound port, after replacing target MAC (Media Access Control) address in the described service request messages with this MAC Address of searching, described service request messages is sent to the server that this outbound port connects by described outbound port;
Polymerization module 504 is used for selecting a port to return to packet forwarding module 503 from the aggregation port group according to predetermined load balancing algorithm after receiving the query requests that packet forwarding module sends.
In Fig. 5, packet forwarding module 503, when being further used for port from the aggregation port group and receiving service response message from server, its source MAC is replaced with the MAC Address of three-tier switch external interface, forwards after target MAC (Media Access Control) address being replaced with the MAC Address of next-hop device.
As shown in Figure 5, this three-tier switch further comprises: health detection module 505 is used for detecting the thrashing message that each port of aggregation port group reports and recovers message; If detect the thrashing message that the port in the aggregation port group reports, then this port is deleted from the aggregation port group, if what report fail message is master port, then also further specify master port for the aggregation port group again, and corresponding renewal ARP table and aggregation port group MAC table; If three-tier switch detects deleted port and reports recovery message, then this is reported the port that recovers message to join again in the aggregation port group, corresponding renewal ARP table and aggregation port group MAC table.
As shown in Figure 5, this three-tier switch also comprises: ARP module 506; Described polymerization module 504, be further used for port from the aggregation port group and receive ARP request message from each server, the ARP request message of receiving according to each port is saved in the MAC Address correspondence of the server that each port and each port connected in the aggregation port group MAC table, and will send to ARP module 506 from the ARP request message of master port; ARP module 506 is used for according to the ARP request message from master port the IP address of server and the MAC Address correspondence of master port institute Connection Service device being saved in the ARP table.
In sum, this port that connection on the three-tier switch is had a plurality of servers of identical ip addresses and different MAC Address of the present invention is formed the aggregation port group; The MAC Address correspondence of server ip address and master port institute Connection Service device is saved in the ARP table, and the MAC Address correspondence of the server that each port and each port connected in the aggregation port group is saved in the aggregation port group MAC table; Three-tier switch receives purpose IP address when being the service request messages of server ip address, from the ARP table, find the MAC Address of master port according to server ip address, determining port is the aggregation port group, then from the aggregation port group, select a port as outbound port, from aggregation port group MAC table, find corresponding MAC Address according to described outbound port, behind the target MAC (Media Access Control) address in this MAC Address replacement service request messages, the technical scheme that service request messages is sent by outbound port, make it possible on three layers of access switch with low cost, realize server load balancing, and need not expensive special-purpose load-balancing device.
The above is preferred embodiment of the present invention only, is not to be used to limit protection scope of the present invention, all any modifications of being made within the spirit and principles in the present invention, is equal to replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (10)

1. a method that realizes server load balancing is characterized in that, this method is applied to three-tier switch and connects to form the networking of the plural server of described server cluster as the gateway of server cluster, and this method comprises:
With the port trunking of described two the above servers of the connection on the three-tier switch together, form the aggregation port group, and to specify a port in the aggregation port group be master port;
Be identical Internet protocol IP address and the mutually different medium access control MAC addresses of plural server-assignment of forming described server cluster;
After each server of forming described server cluster received service request messages from three-tier switch, sending source MAC according to self ARP table to three-tier switch was the service response message of the MAC Address of aggregation port group correspondence for MAC Address, the target MAC (Media Access Control) address of this server itself;
After described three-tier switch receives the service response message, its source MAC is replaced with the MAC Address of three-tier switch external interface, forwards after its target MAC (Media Access Control) address being replaced with the MAC Address of next-hop device.
2. the method for claim 1 is characterized in that, describedly the outbound port of service request messages by described selection sent to the server that this outbound port connects comprises:
Three-tier switch finds corresponding MAC Address according to the port of described selection from aggregation port group MAC table, after replacing target MAC (Media Access Control) address in the described service request messages with this MAC Address of searching, the outbound port of service request messages by described selection sent to the server that this outbound port connects.
3. the method for claim 1 is characterized in that, this method further comprises:
Preserve the ARP table of the MAC Address of the IP address of described three-tier switch and described aggregation port group correspondence forming on the plural server of described server cluster configuration respectively;
After each server of forming described server cluster received service request messages from three-tier switch, sending source MAC according to self ARP table to three-tier switch was the service response message of the MAC Address of aggregation port group correspondence for MAC Address, the target MAC (Media Access Control) address of this server itself;
After described three-tier switch receives the service response message, its source MAC is replaced with the MAC Address of three-tier switch external interface, forwards after its target MAC (Media Access Control) address being replaced with the MAC Address of next-hop device.
4. the method for claim 1 is characterized in that, this method further comprises:
Described three-tier switch detects thrashing message and the recovery message that each port in the aggregation port group reports;
If three-tier switch detects the thrashing message that the port in the aggregation port group reports, then this port is deleted from the aggregation port group, if what report fail message is master port, then also further specify master port for the aggregation port group again, and corresponding renewal ARP table and aggregation port group MAC table;
If three-tier switch detects deleted port and reports recovery message, then this is reported the port that recovers message to join again in the aggregation port group, corresponding renewal aggregation port group MAC table.
5. the method for claim 1, it is characterized in that, described three-tier switch is saved in the MAC Address correspondence of server ip address and master port institute Connection Service device in the ARP table, the MAC Address correspondence of the server that each port and each port connected in the aggregation port group is saved in the aggregation port group MAC table comprise:
Each server all sends the ARP request message to three-tier switch;
After three-tier switch each port from the aggregation port group is received the ARP request message, the ARP request message of receiving according to master port is saved in the IP address of server and the MAC Address correspondence of master port institute Connection Service device in the ARP table, and the ARP request message of receiving according to each port in the aggregation port group is saved in the MAC Address correspondence of the server that each port and each port connected in the aggregation port group MAC table.
6. three-tier switch, it is characterized in that, this three-tier switch connects to form the plural server of described server cluster as the gateway of server cluster, and described plural server has identical IP address and mutually different MAC Address, and this three-tier switch comprises:
The aggregation port group, each port in this aggregation port group connects to form the plural server of described server cluster correspondingly, and a designated port in this aggregation port group is a master port;
Memory module, be used to store ARP table and aggregation port group MAC table, corresponding MAC Address of preserving server ip address and master port institute Connection Service device in the described ARP table, corresponding MAC Address of preserving the server that each port and each port connected in the aggregation port group in the described aggregation port group MAC table;
Packet forwarding module, be used for when receiving service request messages, purpose IP address search ARP table according to service request messages, when find corresponding MAC Address from the ARP table is the MAC Address of master port, the outbound port of determining described service request messages is the aggregation port group, then send query requests to the polymerization module, a port in the aggregation port group that the polymerization module is returned sends to server that this outbound port connect with described service request messages by described outbound port as outbound port;
The polymerization module is used for after receiving the query requests that packet forwarding module sends, according to selecting a port to return to packet forwarding module from the aggregation port group for the predetermined load balancing algorithm of aggregation port group.
7. three-tier switch as claimed in claim 6 is characterized in that,
Described packet forwarding module, a port in the aggregation port group that the polymerization module is returned as outbound port after, from aggregation port group MAC table, find corresponding MAC Address according to described outbound port, replace target MAC (Media Access Control) address in the described service request messages with this MAC Address of searching, and then described service request messages is sent to the server that this outbound port connects by described outbound port.
8. three-tier switch as claimed in claim 6 is characterized in that,
Described packet forwarding module, when being further used for port from the aggregation port group and receiving service response message from server, its source MAC is replaced with the MAC Address of three-tier switch external interface, forwards after target MAC (Media Access Control) address being replaced with the MAC Address of next-hop device.
9. three-tier switch as claimed in claim 6 is characterized in that, this three-tier switch further comprises: the health detection module is used for detecting the thrashing message that each port of aggregation port group reports and recovers message; If detect the thrashing message that the port in the aggregation port group reports, then this port is deleted from the aggregation port group, if what report fail message is master port, then also further specify master port for the aggregation port group again, and corresponding renewal ARP table and aggregation port group MAC table; If three-tier switch detects deleted port and reports recovery message, then this is reported the port that recovers message to join again in the aggregation port group, corresponding renewal aggregation port group MAC table.
10. three-tier switch as claimed in claim 6 is characterized in that, this three-tier switch also comprises: the ARP module,
Described polymerization module, be further used for port from the aggregation port group and receive ARP request message from each server, the ARP request message of receiving according to each port is saved in the MAC Address correspondence of the server that each port and each port connected in the aggregation port group MAC table, and will send to the ARP module from the ARP request message of master port;
Described ARP module is used for according to the ARP request message from master port the IP address of server and the MAC Address correspondence of master port institute Connection Service device being saved in the ARP table.
CN2008102268300A 2008-11-17 2008-11-17 Method for implementing server load balancing and a three-layer switchboard Active CN101404619B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2008102268300A CN101404619B (en) 2008-11-17 2008-11-17 Method for implementing server load balancing and a three-layer switchboard

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2008102268300A CN101404619B (en) 2008-11-17 2008-11-17 Method for implementing server load balancing and a three-layer switchboard

Publications (2)

Publication Number Publication Date
CN101404619A CN101404619A (en) 2009-04-08
CN101404619B true CN101404619B (en) 2011-06-08

Family

ID=40538494

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2008102268300A Active CN101404619B (en) 2008-11-17 2008-11-17 Method for implementing server load balancing and a three-layer switchboard

Country Status (1)

Country Link
CN (1) CN101404619B (en)

Families Citing this family (40)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101959181B (en) * 2009-07-20 2013-06-12 中兴通讯股份有限公司 Network architecture cooperated by various wireless networks and method
US8499093B2 (en) * 2010-05-14 2013-07-30 Extreme Networks, Inc. Methods, systems, and computer readable media for stateless load balancing of network traffic flows
CN101924698B (en) * 2010-07-22 2012-12-12 福建星网锐捷网络有限公司 Method, system and equipment for balancing two-layer domain load based on IP unicast route
CN101931589B (en) * 2010-07-27 2015-06-17 中国电信股份有限公司 Multiple-access-mode concurrent transmission method and device based on interface identifiers
CN102377633B (en) * 2010-08-06 2014-10-08 北京乾唐视联网络科技有限公司 Communication connection method and system of access network device
CN102143046B (en) * 2010-08-25 2015-03-11 华为技术有限公司 Load balancing method, equipment and system
CN102480377B (en) * 2010-11-25 2015-05-20 中兴通讯股份有限公司 Management method and system of aggregation link
CN102307140B (en) * 2011-08-17 2014-12-24 杭州华三通信技术有限公司 Port-trunking-based message processing method and device
CN102316028B (en) * 2011-08-24 2014-06-04 华为技术有限公司 Method and apparatus for sending internet protocol packet
CN103166870B (en) * 2011-12-13 2017-02-08 百度在线网络技术(北京)有限公司 Load balancing clustered system and method for providing services by using load balancing clustered system
CN102447638A (en) * 2012-01-12 2012-05-09 中兴通讯股份有限公司 Load balancing method and forwarding apparatus
CN102761618A (en) * 2012-07-03 2012-10-31 杭州华三通信技术有限公司 Method, equipment and system for realizing load balancing
CN103051534B (en) * 2012-11-20 2016-04-06 杭州迪普科技有限公司 A kind of message processing method and device
WO2014094218A1 (en) * 2012-12-18 2014-06-26 华为技术有限公司 Switch configuration method and cluster management device base on virtual networking
CN104079486A (en) * 2013-03-28 2014-10-01 国际商业机器公司 Gateway and method of transmitting data through gateway
CN103401799A (en) * 2013-07-30 2013-11-20 曙光信息产业(北京)有限公司 Method and device for realizing load balance
CN103763210B (en) * 2014-01-22 2017-03-08 杭州华三通信技术有限公司 A kind of flow load sharing method and apparatus based on link aggregation
EP3160092B1 (en) * 2014-06-28 2019-02-27 Huawei Technologies Co., Ltd. Method and device for network resource balancing
CN104092604B (en) * 2014-07-02 2018-02-09 新华三技术有限公司 message transmission control method and device
CN104301414A (en) * 2014-10-21 2015-01-21 无锡云捷科技有限公司 Server load balancing method based on network protocol stack
CN105721234B (en) * 2014-12-05 2019-04-05 杭州迪普科技股份有限公司 Port convergence method and device
WO2016106522A1 (en) * 2014-12-29 2016-07-07 Nokia Technologies Oy Method and apparatus for server load balancing
CN105592178B (en) * 2015-09-17 2018-12-25 新华三技术有限公司 A kind of back end method for determining position and device
EP3226494B1 (en) * 2016-03-30 2020-12-23 Intel Corporation Switch and method for receiving and forwarding ethernet packets
CN105743993B (en) * 2016-03-31 2019-03-05 杭州数梦工场科技有限公司 Message processing method and system
CN107659496B (en) * 2016-07-26 2021-02-19 新华三技术有限公司 Data processing method and device
CN106899500B (en) * 2016-12-16 2020-06-26 新华三技术有限公司 Message processing method and device for cross-virtual extensible local area network
CN109286564B (en) * 2017-07-20 2022-06-07 迈普通信技术股份有限公司 Message forwarding method and device
CN108259328B (en) * 2017-08-30 2020-06-05 新华三技术有限公司 Message forwarding method and device
CN107948087A (en) * 2017-12-07 2018-04-20 锐捷网络股份有限公司 A kind of method and apparatus of load balancing
CN108347481A (en) * 2018-01-31 2018-07-31 温州庄吉服饰有限公司 A kind of remote service security system
CN109274532B (en) * 2018-09-19 2022-03-01 杭州迪普科技股份有限公司 Method, device and system for issuing policy, centralized control equipment and readable storage medium
CN109347933B (en) * 2018-09-29 2021-07-20 卓米私人有限公司 Method and device for establishing connection
CN109347987A (en) * 2018-12-07 2019-02-15 迈普通信技术股份有限公司 Access request retransmission method and system
CN111181866B (en) * 2019-12-21 2023-06-30 武汉迈威通信股份有限公司 Port aggregation method and system based on port isolation
CN112039783B (en) * 2020-08-19 2022-08-09 恒安嘉新(北京)科技股份公司 Communication data output method, communication data output device, computer equipment and storage medium
CN112422447B (en) * 2020-11-13 2022-04-26 新华三技术有限公司合肥分公司 Method and device for selecting member port
CN113225785B (en) * 2021-04-20 2022-02-22 新华三信息安全技术有限公司 Message forwarding method and device
CN116760756B (en) * 2023-08-15 2023-12-01 湖南天冠电子信息技术有限公司 Method for testing terminal equipment by test switch and test switch networking system
CN116915777B (en) * 2023-09-13 2023-12-05 杭州立方控股股份有限公司 Intelligent parking management system and method for seat personnel cooperation

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1403934A (en) * 2001-09-06 2003-03-19 华为技术有限公司 Load balancing method and equipment for convective medium server
US20040267920A1 (en) * 2003-06-30 2004-12-30 Aamer Hydrie Flexible network load balancing
CN1859313A (en) * 2006-04-30 2006-11-08 西安交通大学 Method for realizing two-way load equalizing mechanism in multiple machine servicer system
US20070214282A1 (en) * 2006-03-13 2007-09-13 Microsoft Corporation Load balancing via rotation of cluster identity
US20080259797A1 (en) * 2007-04-18 2008-10-23 Aladdin Knowledge Systems Ltd. Load-Balancing Bridge Cluster For Network Nodes

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1403934A (en) * 2001-09-06 2003-03-19 华为技术有限公司 Load balancing method and equipment for convective medium server
US20040267920A1 (en) * 2003-06-30 2004-12-30 Aamer Hydrie Flexible network load balancing
US20070214282A1 (en) * 2006-03-13 2007-09-13 Microsoft Corporation Load balancing via rotation of cluster identity
CN1859313A (en) * 2006-04-30 2006-11-08 西安交通大学 Method for realizing two-way load equalizing mechanism in multiple machine servicer system
US20080259797A1 (en) * 2007-04-18 2008-10-23 Aladdin Knowledge Systems Ltd. Load-Balancing Bridge Cluster For Network Nodes

Also Published As

Publication number Publication date
CN101404619A (en) 2009-04-08

Similar Documents

Publication Publication Date Title
CN101404619B (en) Method for implementing server load balancing and a three-layer switchboard
US20200167369A1 (en) Scalable spine nodes with partial replication of routing information in a network environment
CN103259727B (en) A kind of message forwarding method and equipment
KR101337039B1 (en) Server-side load balancing using parent-child link aggregation groups
US8687522B2 (en) Distributed storage of routing information in a link state protocol controlled network
CN104901997B (en) System and method for the direct storage access in content center network
JP5774729B2 (en) Addressing scheme for hybrid communication networks
CN102347905B (en) Network equipment and forwarded information updating method
CN100525237C (en) Data transferring system, method and network transferring apparatus
CN109802985A (en) Data transmission method, device, equipment and read/write memory medium
CN105262667A (en) Method and device for controlling multicast transmission in Overlay network
CN101052022B (en) System and method for virtual special net user to access public net
CN102025630A (en) Load balancing method and load balancing system
CN104272708A (en) Two level packet distribution with stateless first level packet distribution to a group of servers and stateful second level packet distribution to a server within the group
CN104618243B (en) Method for routing, apparatus and system, Scheduling of Gateway method and device
JP5891877B2 (en) Relay device and relay method
CN113381931B (en) Method and device for supporting MLAG (Multi-level Access gateway) dual-active access in VXLAN (virtual extensible local area network)
US9407687B2 (en) Method, apparatus, and network system for acquiring content
CN103078804A (en) Method and device for processing equivalent multipath list as well as network equipment
US10382391B2 (en) Systems and methods for managing network address information
CN101827039B (en) Method and equipment for load sharing
CN104486402A (en) Combined equalizing method based on large-scale website
US10536368B2 (en) Network-aware routing in information centric networking
CN104734930B (en) Method and device for realizing access of Virtual Local Area Network (VLAN) to Variable Frequency (VF) network and Fiber Channel Frequency (FCF)
CN105991439A (en) Management method and device of data center server (DC server)

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
CP03 Change of name, title or address

Address after: 310052 Binjiang District Changhe Road, Zhejiang, China, No. 466, No.

Patentee after: NEW H3C TECHNOLOGIES Co.,Ltd.

Address before: 310053 Hangzhou hi tech Industrial Development Zone, Zhejiang province science and Technology Industrial Park, No. 310 and No. six road, HUAWEI, Hangzhou production base

Patentee before: HANGZHOU H3C TECHNOLOGIES Co.,Ltd.

CP03 Change of name, title or address
TR01 Transfer of patent right

Effective date of registration: 20230815

Address after: 24th Floor, Block B, Zhizhen Building, No. 7 Zhichun Road, Haidian District, Beijing, 100088

Patentee after: Beijing Ziguang Communication Technology Group Co.,Ltd.

Address before: 310052 Changhe Road, Binjiang District, Hangzhou, Zhejiang Province, No. 466

Patentee before: NEW H3C TECHNOLOGIES Co.,Ltd.

TR01 Transfer of patent right