CN101924698A - Method, system and equipment for balancing two-layer domain load based on IP unicast route - Google Patents
Method, system and equipment for balancing two-layer domain load based on IP unicast route Download PDFInfo
- Publication number
- CN101924698A CN101924698A CN2010102361203A CN201010236120A CN101924698A CN 101924698 A CN101924698 A CN 101924698A CN 2010102361203 A CN2010102361203 A CN 2010102361203A CN 201010236120 A CN201010236120 A CN 201010236120A CN 101924698 A CN101924698 A CN 101924698A
- Authority
- CN
- China
- Prior art keywords
- layer
- multicast
- unicast
- correspondence table
- address
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Images
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The invention provides a method, a system and equipment for balancing a two-layer domain load based on an IP unicast route. The method comprises the following steps of: obtaining unicast route and two-layer multicasting corresponding list between an IP unicast address and two-layer multicasting index information and a two-layer multicasting and two-layer port corresponding list between the two-layer multicasting index information and a two-layer port list; and simultaneously sending a received IP unicast message to a plurality of corresponding servers in a server cluster according to the unicast route and two-layer multicasting corresponding list and the two-layer multicasting and two-layer port corresponding list, wherein the IP unicast address is the destination address of the IP unicast message, the two-layer multicasting index information is used for identifying the addresses of the servers in the server cluster, and the two-layer port list comprises port information corresponding to the servers with the same address. Network equipment comprises an IP unicast and member intelligent management device and a message sending device. The system comprises a client terminal, a plurality of servers and the network equipment. The embodiment of the invention improves the network reliability.
Description
Technical field
The present invention relates to the communication technology, relate in particular to a kind of balancing two-layer domain load method, system and equipment based on the IP unicast route.
Background technology
Internet protocol (Internet Protocol; Hereinafter to be referred as: IP) as requesting for comments (Request ForComments; Hereinafter to be referred as: RFC) a kind of agreement of 791 regulations is one of most important standard agreements in the internet, and it has stipulated internodal rule of communication in the internet.In the internet,, stipulated cover node identification rule, i.e. an IP address for each communication node of unique identification.The IP address is made up of 32 bits, can be divided into A, B, C, D four big classes at present.Wherein, A, B, C class address are unicast address, D class address is a multicast address, the data flow recipient of unicast address is appointment, and the data flow recipient of multicast address can be for a plurality of, and singlecast router is and uses A, B, C class address to carry out the method that the data flow addressing is transmitted in the internet.
In order to realize that there are a plurality of recipients an IP unicast address, a kind of method of the prior art realizes by increase a Layer 2 switch between three-tier switch and server cluster, user's request message arrives another interface by one three layer interface of three-tier switch earlier, and Layer 2 switch is provided with, make and do not learn MAC Address, after request message arrives Layer 2 switch, just in two layers of forwarding territory, flood, to arrive the server in the server cluster simultaneously.Another kind of method of the prior art is for to realize by reflex port is set in three-tier switch, user's request message arrives reflex port by one three layer interface of three-tier switch earlier, a plurality of two layers of forwarding port of reflex port and three-tier switch are arranged in same two layers of forwarding territory, by reflex port request message is carried out being flooded to this a plurality of two layers of forwarding ports behind the winding, arrive server simultaneously thereby arrive.
Yet first method of the prior art is owing to needing newly-increased Layer 2 switch to cause the networking cost height, may have Single Point of Faliure hidden danger, and whole net reliability is low; Second method is set to reflex port owing to one three layer interface and can not causes the port waste as the data forwarding port, and wastes one two layers and transmit territories.
Summary of the invention
The invention provides a kind of balancing two-layer domain load method, system and equipment based on the IP unicast route, when the Performance And Reliability that the load balancing that realizes server cluster is brought promotes, reduce networking cost, save Internet resources, improve network reliability.
The invention provides a kind of balancing two-layer domain load method, comprising based on the IP unicast route:
Obtain the singlecast router-Layer 2 Multicast correspondence table between IP unicast address and the Layer 2 Multicast index information, and the Layer 2 Multicast-two layer port correspondence table between described Layer 2 Multicast index information and the two layers of port list;
According to described singlecast router-Layer 2 Multicast correspondence table and described Layer 2 Multicast-two layer port correspondence table, the IP unicast message that receives is sent to multiple servers corresponding in the server cluster simultaneously;
Wherein, described IP unicast address is the destination address of described IP unicast message, described Layer 2 Multicast index information is the information that is used for identifying the address of described server cluster server, and described two layers of port list are the identical described server corresponding port information in address.
The invention provides a kind of network equipment, comprise IP unicast group and member's intelligent management apapratus and packet transmission device, wherein:
Described IP unicast group and member's intelligent management apapratus are used to obtain the singlecast router-Layer 2 Multicast correspondence table between IP unicast address and the Layer 2 Multicast index information, and the Layer 2 Multicast-two layer port correspondence table between described Layer 2 Multicast index information and the two layers of port list;
Described packet transmission device is used for according to described singlecast router-Layer 2 Multicast correspondence table and described Layer 2 Multicast-two layer port correspondence table, and the IP unicast message that receives is sent to multiple servers corresponding in the server cluster simultaneously;
Wherein, described IP unicast address is the destination address of described IP unicast message, described Layer 2 Multicast index information is the information that is used for identifying the address of described server cluster server, described two layers of port information that port list is the identical described server in address.
The invention provides a kind of balancing two-layer domain load system, comprise client, multiple servers and the above-mentioned network equipment based on the IP unicast route.
Balancing two-layer domain load method, system and equipment based on the IP unicast route of the present invention, by obtaining singlecast router-Layer 2 Multicast correspondence table and Layer 2 Multicast-two layer port correspondence table, according to singlecast router-Layer 2 Multicast correspondence table and Layer 2 Multicast-two layer port correspondence table, the IP unicast message that receives is sent on the multiple servers corresponding in the server cluster simultaneously; Present embodiment need not newly-increased Layer 2 switch and reflex port when the Performance And Reliability that the load balancing that has realized server cluster is brought promotes, reduced networking cost, has saved Internet resources, has improved the reliability of network.
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, apparently, 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, can also obtain other accompanying drawing according to these accompanying drawings.
Fig. 1 is the flow chart that the present invention is based on the balancing two-layer domain load method embodiment one of IP unicast route;
Fig. 2 is the flow chart that the present invention is based on the balancing two-layer domain load method embodiment two of IP unicast route;
Fig. 3 is the structural representation of network equipment embodiment one of the present invention;
Fig. 4 is the structural representation of network equipment embodiment two of the present invention;
Fig. 5 is the structural representation that the present invention is based on the balancing two-layer domain load system embodiment of IP unicast route.
Embodiment
For the purpose, technical scheme and the advantage that make the embodiment of the invention clearer, below in conjunction with the accompanying drawing in the embodiment of the invention, technical scheme in the embodiment of the invention is clearly and completely described, 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 belong to the scope of protection of the invention not making the every other embodiment that is obtained under the creative work prerequisite.
Fig. 1 is the flow chart that the present invention is based on the balancing two-layer domain load method embodiment one of IP unicast route, and as shown in Figure 1, present embodiment provides a kind of balancing two-layer domain load method based on the IP unicast route, can specifically comprise the steps:
In the present embodiment, the network equipment can be specially three-tier switch, and it has routing function, and route speed is more a lot of soon than the router of identical price.Wherein, singlecast router-Layer 2 Multicast correspondence table is used to reflect the destination address of IP unicast message and the corresponding relation between the Layer 2 Multicast index information, and Layer 2 Multicast-two layer port correspondence table is used to reflect the corresponding relation between Layer 2 Multicast index information and the two layers of port list.Wherein, described IP unicast address is the destination address of described IP unicast message, described Layer 2 Multicast index information is the information that is used for identifying the address of described server cluster server, and described two layers of port list are the identical described server corresponding port information in address.The IP unicast address is the node identification rule of each communication node in the unique identification internet, it can be divided into A, B, C, D four big classes usually, wherein the highest-order bit of category-A address is " 0 ", represents network number by 7 bits, represents local address by 24 bits; Preceding two the highest-order bit of category-B address are " 10 ", represent network number by 14 bits, represent local address by 16 bits; First three the highest-order bit of C class address is " 110 ", represents network number by 22 bits, represents local address by 8 bits; Preceding four the highest-order bit of D class address are " 1110 ", represent multicast address by 28 bits.Layer 2 Multicast index information in the present embodiment can be for according to certain mapping ruler, setting with server cluster in unique corresponding numerical value of the MAC Address of multiple servers or number information, be used for the MAC Address of representative server.Two layers of port list in the present embodiment can adopt an one-dimension array to represent, it represents one group of identical port information that links to each other with server of MAC Address.
Particularly, the mode that the network equipment obtains singlecast router-Layer 2 Multicast correspondence table and Layer 2 Multicast-two layer port correspondence table in this step can adopt the mode of automatic study, also can adopt the mode of active arrangement.Wherein, automatically the mode of study is that the network equipment waits IP unicast routing iinformation and the Layer 2 Multicast information obtained by the mutual message between study and each server, generates singlecast router-Layer 2 Multicast correspondence table and Layer 2 Multicast-two layer port correspondence table according to IP unicast routing iinformation and Layer 2 Multicast information.Wherein, the IP unicast routing iinformation can comprise IP unicast address and MAC Address, and Layer 2 Multicast information can comprise Layer 2 Multicast index information and two layers of port list of MAC Address correspondence.The ARP request message that the network equipment can specifically send by reception server obtains corresponding source MAC and source IP address from the ARP request message; Through judging, when this source IP address is pre-configured when presetting the IP unicast address, the network equipment is that source MAC distributes a Layer 2 Multicast index information, and two layers of port list of record source MAC correspondence, to obtain singlecast router-Layer 2 Multicast correspondence table and Layer 2 Multicast-two layer port correspondence table.Perhaps, the network equipment can also obtain singlecast router-Layer 2 Multicast correspondence table and Layer 2 Multicast-two layer port correspondence table according to the active arrangement mode, and the network equipment can generate singlecast router-Layer 2 Multicast correspondence table and Layer 2 Multicast-two layer port correspondence table according to the clustered deploy(ment) of reality and default collocation strategy active arrangement.
The network equipment is at the corresponding relation that gets access to IP unicast address and Layer 2 Multicast index information, and behind the corresponding relation between described Layer 2 Multicast index information and the two layers of port list, and behind the IP unicast message that receives the client transmission, according to singlecast router-Layer 2 Multicast correspondence table and described Layer 2 Multicast-two layer port correspondence table this IP unicast message being carried out two layers duplicates, be copied into and send to two layers of multiple servers in the port list corresponding server cluster after many parts simultaneously, realized the IP unicast message of certain IP unicast address of client-access can be arrived a plurality of servers simultaneously, and then reached the effect of load balance between the multiple servers in the server cluster.
Present embodiment provides a kind of balancing two-layer domain load method based on the IP unicast route, the network equipment obtains singlecast router-Layer 2 Multicast correspondence table and Layer 2 Multicast-two layer port correspondence table, according to singlecast router-Layer 2 Multicast correspondence table and Layer 2 Multicast-two layer port correspondence table, the IP unicast message that receives is sent on the multiple servers corresponding in the server cluster simultaneously; Present embodiment has reduced networking cost when the Performance And Reliability that the load balancing that has realized server cluster is brought promotes, saved Internet resources, has improved the reliability of network.
Fig. 2 is the flow chart that the present invention is based on the balancing two-layer domain load method embodiment two of IP unicast route, and as shown in Figure 2, present embodiment provides a kind of balancing two-layer domain load method based on the IP unicast route, can specifically comprise the steps:
Step 201, address resolution protocol (the Address ResolutionProtocol that network equipment reception server sends; Hereinafter to be referred as: ARP) request message, obtain medium access control MAC address, source and source IP address from described ARP request message.
The network equipment can obtain singlecast router-Layer 2 Multicast correspondence table and Layer 2 Multicast-two layer port correspondence table by dual mode in this step, is specially by the mode of automatic study and obtains, or obtain by the mode of active arrangement.In the present embodiment, the network equipment specifically obtains two information tables by automatic mode of learning, and promptly the network equipment obtains by the ARP request message that server sends to the network equipment.Particularly, the network equipment in the present embodiment can comprise IP unicast group and member's intelligent management apapratus, IP unicast route device and Layer 2 Multicast device, in the Layer 2 Multicast device in the present embodiment on the basis of multicast MAC multiple spot sending function, can increase clean culture MAC multiple spot sending function newly, and IP unicast route device and the Layer 2 Multicast device that separates combined.In this step, IP unicast group in the network equipment and member's intelligent management apapratus receive the ARP request message that sends from server, carry source MAC and source IP address in the ARP request message, then IP unicast group and member's intelligent management apapratus can obtain corresponding source IP address and source MAC according to this ARP request message.IP unicast group in the network equipment and member's intelligent management apapratus obtain the source IP address and the source MAC of different server correspondence by different servers and the message interaction process between the network equipment are learnt automatically.
Present embodiment provide based on the balancing two-layer domain load method of IP unicast route before above-mentioned steps 201, can also comprise: but the IP unicast address that the network equipment is shared a plurality of described servers be preconfigured to balancing two-layer domain load preset the IP unicast address, and the source IP address that carries in the described ARP request message is encapsulated as the described IP unicast address of presetting by described server.Be but that the IP unicast address setting that the network equipment is shared the Servers-all in the server cluster is the IP unicast address of balancing two-layer domain load, herein for presetting the IP unicast address, different servers uses identical MAC Address and this to preset the IP unicast address and encapsulates source MAC and source IP address in the ARP request message.
Step 202, when described source IP address is pre-configured when presetting the IP unicast address, the network equipment is that described source MAC distributes a Layer 2 Multicast index information, write down two layers of port list of described source MAC correspondence, to obtain singlecast router-Layer 2 Multicast correspondence table and Layer 2 Multicast-two layer port correspondence table.
The network equipment is in automatic learning process, when IP unicast group and member's intelligent management apapratus receive the ARP request message that server sends, earlier judge whether the source IP address that carries in this ARP request message is the above-mentioned IP unicast address of presetting, if this source IP address when presetting the IP unicast address, can be that IP unicast address A is that example describes to preset the IP unicast address herein.No matter source MAC is unicast mac address or multicast mac address, and the network equipment indicates that all this source MAC has " multicast " attribute.The network equipment is judging that this source IP address is when presetting the IP unicast address, for the source MAC that obtains distributes a Layer 2 Multicast index information, be source MAC and distribute a numbering or a numerical information that is used for unique this MAC Address of identification, can be that example describes with Layer 2 Multicast index information X herein.In addition, IP unicast group and member's intelligent management apapratus further obtain two layers of port list of source MAC correspondence again according to two layers of port that receive this ARP message, learn the ARP request message of a plurality of servers transmissions when the network equipment after, can write down two layers of port list that generate the source MAC correspondence, these two layers of port lists can be an one-dimension array, and this sentences two layers of port list Y is that example describes.Source IP address, source MAC and two layers of port list of carrying in IP unicast group and the member's intelligent management apapratus ARP message according to each server transmission of study generate singlecast router-Layer 2 Multicast correspondence table and Layer 2 Multicast-two layer port correspondence table, promptly<IP unicast address A, Layer 2 Multicast index information X〉and<Layer 2 Multicast index information X, two layers of port list Y 〉, wherein, two layers of port list Y can comprise N member, represent the N station server respectively.
Step 203, IP unicast group in the network equipment and member's intelligent management apapratus send to IP unicast route device in the described network equipment with described singlecast router-Layer 2 Multicast correspondence table, and described Layer 2 Multicast-two layer port correspondence table sent to Layer 2 Multicast device in the described network equipment.
IP unicast group and member's intelligent management apapratus generate singlecast router-Layer 2 Multicast correspondence table and described Layer 2 Multicast-two layer port correspondence table in study, promptly<IP unicast address A, Layer 2 Multicast index information X〉and<Layer 2 Multicast index information X, two layers of port list Y〉afterwards, singlecast router-Layer 2 Multicast correspondence table is carried at sends in the control flows in the IP unicast route device, Layer 2 Multicast-two a layer port correspondence table is carried in another control flows sends in the Layer 2 Multicast device.Be IP unicast group and member's intelligent management apapratus general<IP unicast address A, Layer 2 Multicast index information X〉send to the IP unicast route device, general<Layer 2 Multicast index information X, two layers of port list Y〉send to the Layer 2 Multicast device.
Step 204, the IP unicast route device is inquired about described singlecast router-Layer 2 Multicast correspondence table according to the purpose IP unicast address of the IP unicast message that receives from client, obtain the purpose Layer 2 Multicast index information of described purpose IP unicast address correspondence, and described purpose Layer 2 Multicast index information is sent to described Layer 2 Multicast device.
IP unicast route device in the network equipment receives the IP unicast message that client sends, in this IP unicast message, carry purpose IP unicast address, this IP unicast route device is according to this purpose IP unicast address lookup singlecast router-Layer 2 Multicast correspondence table, i.e. inquiry<IP unicast address A, Layer 2 Multicast index information X 〉, the index that gets access to the outlet port of this IP unicast message correspondence is purpose Layer 2 Multicast index information X.The IP unicast route device sends to this purpose Layer 2 Multicast index information in the Layer 2 Multicast device after inquiring corresponding purpose Layer 2 Multicast index information X.
Step 205, the Layer 2 Multicast device is inquired about described Layer 2 Multicast-two a layer port correspondence table according to described purpose two layer index information, obtain two layers of port list of described IP unicast message correspondence, and described IP unicast message is sent to multiple servers in described two layers of port list corresponding server cluster simultaneously.
The Layer 2 Multicast device is after the purpose two layer index information that receive the transmission of IP unicast route device, according to these purpose two layer index information inquiry Layer 2 Multicast-two layer port correspondence table, i.e. inquiry<Layer 2 Multicast index information X, two layers of port list Y 〉, the output port that gets access to this IP unicast message is two layers of port list Y.Suppose to comprise N member among these two layers of port list Y, then the Layer 2 Multicast device duplicates N part according to these two layers of port list Y for two layers with the IP unicast message that receives, and respectively the IP unicast message that duplicates is sent to multiple servers in the corresponding server cluster by two layers of port among two layers of port list Y simultaneously.
Present embodiment provides a kind of balancing two-layer domain load method based on the IP unicast route, the network equipment obtains singlecast router-Layer 2 Multicast correspondence table and Layer 2 Multicast-two layer port correspondence table by automatic mode of learning or active arrangement mode, according to singlecast router-Layer 2 Multicast correspondence table and Layer 2 Multicast-two layer port correspondence table, the IP unicast message that receives is sent on the multiple servers corresponding in the server cluster simultaneously; Present embodiment has reduced networking cost when the Performance And Reliability that the load balancing that has realized server cluster is brought promotes, saved Internet resources, has improved the reliability of network; And present embodiment is compared with first method of the prior art, need not to increase Layer 2 switch, network topology obtains simplifying, and has got rid of the problem of Single Point of Faliure, and have only the server in the server cluster just can receive client transmission IP unicast message, make fail safe increase greatly; Compare with second method of the prior art, present embodiment need not to be provided with reflex port in the network equipment, can not waste the port of the network equipment, transmits territories, thereby has saved the VLAN resource for two layers that also need not to provide extra.
One of ordinary skill in the art will appreciate that: all or part of step that realizes said method embodiment can be finished by the relevant hardware of program command, aforesaid program can be stored in the computer read/write memory medium, this program is carried out 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. 3 is the structural representation of network equipment embodiment one of the present invention, and as shown in Figure 3, present embodiment provides a kind of network equipment, can specifically carry out each step among the said method embodiment one, repeats no more herein.The network equipment that present embodiment provides can be specially three-tier switch, can specifically comprise IP unicast group and member's intelligent management apapratus 1 and packet transmission device 2.Wherein, IP unicast group and member's intelligent management apapratus 1 are used to obtain the singlecast router-Layer 2 Multicast correspondence table between IP unicast address and the Layer 2 Multicast index information, and the Layer 2 Multicast-two layer port correspondence table between described Layer 2 Multicast index information and the two layers of port list.Packet transmission device 2 is used for according to described singlecast router-Layer 2 Multicast correspondence table and described Layer 2 Multicast-two layer port correspondence table, and the IP unicast message that receives is sent to multiple servers corresponding in the server cluster simultaneously.
Fig. 4 is the structural representation of network equipment embodiment two of the present invention, and as shown in Figure 4, present embodiment provides a kind of network equipment, can specifically carry out each step among the said method embodiment two, repeats no more herein.The network equipment that present embodiment provides is on the basis of above-mentioned embodiment shown in Figure 3, and the mode that IP unicast group and member's intelligent management apapratus 1 obtain described singlecast router-Layer 2 Multicast correspondence table and described Layer 2 Multicast-two layer port correspondence table comprises automatic mode of learning and active arrangement mode.IP unicast group and member's intelligent management apapratus 1 can specifically comprise receiver module 11 and automatic acquisition module 12.Wherein, receiver module 11 is used for the ARP request message that reception server sends, and obtains medium access control MAC address, source and source IP address from described ARP request message.Automatically acquisition module 12 be used for when described source IP address be pre-configured when presetting the IP unicast address, for described source MAC distributes a Layer 2 Multicast index information, write down two layers of port list of described source MAC correspondence, to obtain singlecast router-Layer 2 Multicast correspondence table and Layer 2 Multicast-two layer port correspondence table.
Perhaps, IP unicast group in the network equipment that present embodiment provides and member's intelligent management apapratus 1 can comprise initiatively acquisition module 13, initiatively acquisition module 13 is used for generating singlecast router-Layer 2 Multicast correspondence table between IP unicast address and the Layer 2 Multicast index information according to default collocation strategy active arrangement, and the Layer 2 Multicast-two layer port correspondence table between described Layer 2 Multicast index information and the two layers of port list.
Further, the packet transmission device 2 in the network equipment that provides of present embodiment can specifically comprise IP unicast route device 21 and Layer 2 Multicast device 22.IP unicast group and member's intelligent management apapratus 1 in the network equipment that present embodiment provides also comprise sending module 14, sending module 14 is used for described singlecast router-Layer 2 Multicast correspondence table is sent to the IP unicast route device of the described network equipment, and described Layer 2 Multicast-two layer port correspondence table sent to Layer 2 Multicast device in the described network equipment.IP unicast route device 21 specifically is used for according to the purpose IP unicast address of the IP unicast message that receives from client described singlecast router-Layer 2 Multicast correspondence table being inquired about, obtain the purpose Layer 2 Multicast index information of described purpose IP unicast address correspondence, and described purpose Layer 2 Multicast index information is sent to Layer 2 Multicast device 22.Layer 2 Multicast device 22 specifically is used for according to described purpose two layer index information described Layer 2 Multicast-two a layer port correspondence table being inquired about, obtain two layers of port list of described IP unicast message correspondence, and described IP unicast message is sent to multiple servers in described two layers of port list corresponding server cluster simultaneously.
Further, IP unicast group and the member's intelligent management apapratus 1 in the network equipment that provides of present embodiment can also comprise preset module 15.Preset module 15 is used for presetting the IP unicast address with what but the IP unicast address that a plurality of described servers are shared was preconfigured to balancing two-layer domain load, and by described server the source IP address that carries in the described ARP request message is encapsulated as the described IP unicast address of presetting.
Present embodiment provides a kind of network equipment, obtain singlecast router-Layer 2 Multicast correspondence table and Layer 2 Multicast-two layer port correspondence table by automatic mode of learning or active arrangement mode, according to singlecast router-Layer 2 Multicast correspondence table and Layer 2 Multicast-two layer port correspondence table, the IP unicast message that receives is sent on the multiple servers corresponding in the server cluster simultaneously; Present embodiment has reduced networking cost when the Performance And Reliability that the load balancing that has realized server cluster is brought promotes, saved Internet resources, has improved the reliability of network.
Fig. 5 is the structural representation that the present invention is based on the balancing two-layer domain load system embodiment of IP unicast route, as shown in Figure 5, the balancing two-layer domain load system of the IP unicast route that provides of present embodiment can comprise client 501, a plurality of server 502 and the network equipment 503.The network equipment 503 in the present embodiment can be specially above-mentioned Fig. 3 or arbitrary network equipment shown in Figure 4, among the figure to comprise in the server cluster that two servers 502 are that example describes.
It should be noted that at last: above embodiment only in order to technical scheme of the present invention to be described, is not intended to limit; Although with reference to previous embodiment the present invention is had been described in detail, 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 modifications or replacement do not make the essence of appropriate technical solution break away from the spirit and scope of various embodiments of the present invention technical scheme.
Claims (11)
1. the balancing two-layer domain load method based on the IP unicast route is characterized in that, comprising:
Obtain the singlecast router-Layer 2 Multicast correspondence table between IP unicast address and the Layer 2 Multicast index information, and the Layer 2 Multicast-two layer port correspondence table between described Layer 2 Multicast index information and the two layers of port list;
According to described singlecast router-Layer 2 Multicast correspondence table and described Layer 2 Multicast-two layer port correspondence table, the IP unicast message that receives is sent to multiple servers corresponding in the server cluster simultaneously;
Wherein, described IP unicast address is the destination address of described IP unicast message, described Layer 2 Multicast index information is the information that is used for identifying the address of described server cluster server, and described two layers of port list are the identical described server corresponding port information in address.
2. method according to claim 1, it is characterized in that, when obtaining described singlecast router-Layer 2 Multicast correspondence table and described Layer 2 Multicast-two layer port correspondence table by automatic mode of learning, described singlecast router-Layer 2 Multicast correspondence table of obtaining between IP unicast address and the Layer 2 Multicast index information, and the Layer 2 Multicast-two layer port correspondence table between described Layer 2 Multicast index information and the two layers of port list comprises:
The ARP request message that reception server sends obtains medium access control MAC address, source and source IP address from described ARP request message;
When described source IP address is pre-configured when presetting the IP unicast address, for described source MAC distributes a Layer 2 Multicast index information, write down two layers of port list of described source MAC correspondence, to obtain singlecast router-Layer 2 Multicast correspondence table and Layer 2 Multicast-two layer port correspondence table.
3. method according to claim 1, it is characterized in that, when obtaining described singlecast router-Layer 2 Multicast correspondence table and described Layer 2 Multicast-two layer port correspondence table by the active arrangement mode, described singlecast router-Layer 2 Multicast correspondence table of obtaining between IP unicast address and the Layer 2 Multicast index information, and the Layer 2 Multicast-two layer port correspondence table between described Layer 2 Multicast index information and the two layers of port list comprises:
Generate singlecast router-Layer 2 Multicast correspondence table between IP unicast address and the Layer 2 Multicast index information according to default collocation strategy active arrangement, and the Layer 2 Multicast-two layer port correspondence table between described Layer 2 Multicast index information and the two layers of port list.
4. according to claim 2 or 3 described methods, it is characterized in that, described according to described singlecast router-Layer 2 Multicast correspondence table and described Layer 2 Multicast-two layer port correspondence table, the IP unicast message that receives is sent to multiple servers corresponding in the server cluster simultaneously comprise:
IP unicast group in the network equipment and member's intelligent management apapratus send to IP unicast route device in the described network equipment with described singlecast router-Layer 2 Multicast correspondence table, and described Layer 2 Multicast-two layer port correspondence table sent to Layer 2 Multicast device in the described network equipment;
Described IP unicast route device is inquired about described singlecast router-Layer 2 Multicast correspondence table according to the purpose IP unicast address of the IP unicast message that receives from client, obtain the purpose Layer 2 Multicast index information of described purpose IP unicast address correspondence, and described purpose Layer 2 Multicast index information is sent to described Layer 2 Multicast device;
Described Layer 2 Multicast device is inquired about described Layer 2 Multicast-two a layer port correspondence table according to described purpose two layer index information, obtain two layers of port list of described IP unicast message correspondence, and described IP unicast message is sent to multiple servers in described two layers of port list corresponding server cluster simultaneously.
5. method according to claim 2 also comprises:
Preset the IP unicast address with what but the IP unicast address that many described servers are shared was preconfigured to balancing two-layer domain load, and the IP unicast address, source of carrying in the described ARP request message is encapsulated as the described IP unicast address of presetting by described server.
6. a network equipment is characterized in that, comprises IP unicast group and member's intelligent management apapratus and packet transmission device, wherein:
Described IP unicast group and member's intelligent management apapratus are used to obtain the singlecast router-Layer 2 Multicast correspondence table between IP unicast address and the Layer 2 Multicast index information, and the Layer 2 Multicast-two layer port correspondence table between described Layer 2 Multicast index information and the two layers of port list;
Described packet transmission device is used for the IP unicast message that receives being sent to simultaneously the multiple servers of server cluster correspondence according to described singlecast router-Layer 2 Multicast correspondence table and described Layer 2 Multicast-two layer port correspondence table;
Wherein, described IP unicast address is the destination address of described IP unicast message, described Layer 2 Multicast index information is the information that is used for identifying the address of described server cluster server, described two layers of port information that port list is the identical described server in address.
7. the network equipment according to claim 6, it is characterized in that, when described IP unicast group and member's intelligent management apapratus obtained described singlecast router-Layer 2 Multicast correspondence table and described Layer 2 Multicast-two layer port correspondence table by automatic mode of learning, described IP unicast group and member's intelligent management apapratus comprised:
Receiver module is used for the ARP request message that reception server sends, and obtains medium access control MAC address, source and source IP address from described ARP request message;
Automatic acquisition module, be used for when described source IP address be pre-configured when presetting the IP unicast address, for described source MAC distributes a Layer 2 Multicast index information, write down two layers of port list of described source MAC correspondence, to obtain singlecast router-Layer 2 Multicast correspondence table and Layer 2 Multicast-two layer port correspondence table.
8. the network equipment according to claim 6, it is characterized in that, when described IP unicast group and member's intelligent management apapratus obtained described singlecast router-Layer 2 Multicast correspondence table and described Layer 2 Multicast-two layer port correspondence table by the active arrangement mode, described IP unicast group and member's intelligent management apapratus comprised:
The active acquisition module, be used for generating singlecast router-Layer 2 Multicast correspondence table between IP unicast address and the Layer 2 Multicast index information according to default collocation strategy active arrangement, and the Layer 2 Multicast-two layer port correspondence table between described Layer 2 Multicast index information and the two layers of port list.
9. according to the claim 7 or the 8 described network equipments, it is characterized in that described packet transmission device comprises IP unicast route device and Layer 2 Multicast device;
Described IP unicast group and member's intelligent management apapratus also comprise: sending module, be used for described singlecast router-Layer 2 Multicast correspondence table is sent to the IP unicast route device of the described network equipment, described Layer 2 Multicast-two layer port correspondence table sent to Layer 2 Multicast device in the described network equipment;
Described IP unicast route device is used for according to the purpose IP unicast address of the IP unicast message that receives from client described singlecast router-Layer 2 Multicast correspondence table being inquired about, obtain the purpose Layer 2 Multicast index information of described purpose IP unicast address correspondence, and described purpose Layer 2 Multicast index information is sent to described Layer 2 Multicast device;
Described Layer 2 Multicast device is used for according to described purpose two layer index information described Layer 2 Multicast-two a layer port correspondence table being inquired about, obtain two layers of port list of described IP unicast message correspondence, and described IP unicast message is sent to multiple servers in described two layers of port list corresponding server cluster simultaneously.
10. the network equipment according to claim 7 is characterized in that, described IP unicast group and member's intelligent management apapratus also comprise:
Preset module, what be used for that but IP unicast address that the described server of Jiang Duotai shares is preconfigured to balancing two-layer domain load presets the IP unicast address, and by described server the source IP address that carries in the described ARP request message is encapsulated as the described IP unicast address of presetting.
11. the balancing two-layer domain load system based on the IP unicast route is characterized in that, comprises client, multiple servers and according to each described network equipment among the claim 6-10.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2010102361203A CN101924698B (en) | 2010-07-22 | 2010-07-22 | Method, system and equipment for balancing two-layer domain load based on IP unicast route |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2010102361203A CN101924698B (en) | 2010-07-22 | 2010-07-22 | Method, system and equipment for balancing two-layer domain load based on IP unicast route |
Publications (2)
Publication Number | Publication Date |
---|---|
CN101924698A true CN101924698A (en) | 2010-12-22 |
CN101924698B CN101924698B (en) | 2012-12-12 |
Family
ID=43339353
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2010102361203A Active CN101924698B (en) | 2010-07-22 | 2010-07-22 | Method, system and equipment for balancing two-layer domain load based on IP unicast route |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101924698B (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102594668A (en) * | 2012-02-03 | 2012-07-18 | 福建星网锐捷网络有限公司 | Message forwarding method, device and exchange equipment |
CN102761618A (en) * | 2012-07-03 | 2012-10-31 | 杭州华三通信技术有限公司 | Method, equipment and system for realizing load balancing |
CN103200117A (en) * | 2013-03-04 | 2013-07-10 | 杭州华三通信技术有限公司 | Method and device of load balancing |
CN106210648A (en) * | 2016-08-05 | 2016-12-07 | 浙江宇视科技有限公司 | Cross-domain method of multicasting and device in a kind of video monitoring system |
CN111030913A (en) * | 2019-11-21 | 2020-04-17 | 天津天睿科技有限公司 | Network equipment cluster data synchronization method |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1410905A (en) * | 2002-11-14 | 2003-04-16 | 华中科技大学 | Full distribution type aggregation network servicer system |
CN1486038A (en) * | 2003-08-29 | 2004-03-31 | 北京港湾网络有限公司 | Control method for exact multicast forwarding |
US20070214282A1 (en) * | 2006-03-13 | 2007-09-13 | Microsoft Corporation | Load balancing via rotation of cluster identity |
US7454489B2 (en) * | 2003-07-01 | 2008-11-18 | International Business Machines Corporation | System and method for accessing clusters of servers from the internet network |
CN101404619A (en) * | 2008-11-17 | 2009-04-08 | 杭州华三通信技术有限公司 | Method for implementing server load balancing and a three-layer switchboard |
CN101442493A (en) * | 2008-12-26 | 2009-05-27 | 华为技术有限公司 | Method for distributing IP message, cluster system and load equalizer |
CN101534255A (en) * | 2009-04-02 | 2009-09-16 | 福建星网锐捷网络有限公司 | A method and device for realizing oriented processing of certain request |
JP2010103695A (en) * | 2008-10-22 | 2010-05-06 | Ntt Data Corp | Cluster system, cluster server and cluster control method |
-
2010
- 2010-07-22 CN CN2010102361203A patent/CN101924698B/en active Active
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1410905A (en) * | 2002-11-14 | 2003-04-16 | 华中科技大学 | Full distribution type aggregation network servicer system |
US7454489B2 (en) * | 2003-07-01 | 2008-11-18 | International Business Machines Corporation | System and method for accessing clusters of servers from the internet network |
CN1486038A (en) * | 2003-08-29 | 2004-03-31 | 北京港湾网络有限公司 | Control method for exact multicast forwarding |
US20070214282A1 (en) * | 2006-03-13 | 2007-09-13 | Microsoft Corporation | Load balancing via rotation of cluster identity |
JP2010103695A (en) * | 2008-10-22 | 2010-05-06 | Ntt Data Corp | Cluster system, cluster server and cluster control method |
CN101404619A (en) * | 2008-11-17 | 2009-04-08 | 杭州华三通信技术有限公司 | Method for implementing server load balancing and a three-layer switchboard |
CN101442493A (en) * | 2008-12-26 | 2009-05-27 | 华为技术有限公司 | Method for distributing IP message, cluster system and load equalizer |
CN101534255A (en) * | 2009-04-02 | 2009-09-16 | 福建星网锐捷网络有限公司 | A method and device for realizing oriented processing of certain request |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102594668A (en) * | 2012-02-03 | 2012-07-18 | 福建星网锐捷网络有限公司 | Message forwarding method, device and exchange equipment |
CN102761618A (en) * | 2012-07-03 | 2012-10-31 | 杭州华三通信技术有限公司 | Method, equipment and system for realizing load balancing |
CN103200117A (en) * | 2013-03-04 | 2013-07-10 | 杭州华三通信技术有限公司 | Method and device of load balancing |
CN103200117B (en) * | 2013-03-04 | 2016-06-08 | 杭州华三通信技术有限公司 | A kind of load-balancing method and device |
CN106210648A (en) * | 2016-08-05 | 2016-12-07 | 浙江宇视科技有限公司 | Cross-domain method of multicasting and device in a kind of video monitoring system |
CN106210648B (en) * | 2016-08-05 | 2019-07-16 | 浙江宇视科技有限公司 | Cross-domain method of multicasting and device in a kind of video monitoring system |
CN111030913A (en) * | 2019-11-21 | 2020-04-17 | 天津天睿科技有限公司 | Network equipment cluster data synchronization method |
Also Published As
Publication number | Publication date |
---|---|
CN101924698B (en) | 2012-12-12 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102859973B (en) | Method, apparatus and system for address resolution | |
EP2600573B1 (en) | Method for transmitting addresses correspondence relationship in second-layer protocol using link status routing | |
US9385949B2 (en) | Routing controlled by subnet managers | |
US8767749B2 (en) | Method and system for transparent LAN services in a packet network | |
US7936702B2 (en) | Interdomain bi-directional protocol independent multicast | |
CN102316028B (en) | Method and apparatus for sending internet protocol packet | |
CN101272324B (en) | Service quality control method and network appliance | |
US20130028163A1 (en) | Forwarding Internet Protocol Version 6 Link-Local Multicast to Support Roaming of Wireless Mobile Client Devices | |
CN104168184A (en) | Message forwarding method and device | |
CN102244614B (en) | Message forwarding method, system and routing switch | |
CN102957589A (en) | Method, network node and system for service data transmission | |
CN102801625A (en) | Method and device for double layered mutual communication in heterogeneous network | |
CN102882781B (en) | Method, route bridge and system for transmitting message | |
US10382391B2 (en) | Systems and methods for managing network address information | |
CN101924698B (en) | Method, system and equipment for balancing two-layer domain load based on IP unicast route | |
CN105187311A (en) | Message forwarding method and message forwarding device | |
CN102025522A (en) | Method for realizing multicast between different IP domains and boundary gateway router | |
CN100428681C (en) | Method for identifying multicast by using unicast address in IP network | |
CN101795238B (en) | Network load balancing networking method, network load balancing networking equipment and network load balancing networking system | |
CN104734877A (en) | Method, device and system for obtaining configuration server information | |
US9548887B2 (en) | Proactive creation of multicast state in an overlay transport network to achieve fast convergence on failover | |
CN104378302A (en) | Method for sending address corresponding relation in second layer protocol by utilizing link state routing | |
CN101309154B (en) | Datagram sending method, sending apparatus and transmission system | |
CN114697300B (en) | Data multicast realization method of high-timeliness communication system | |
CN112737946B (en) | Route advertising method, device, storage medium and system for IPv6 network |
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 | ||
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: Beijing Star-Net Ruijie Networks Co.,Ltd. |