Summary of the invention
In order to overcome above-mentioned prior art deficiency, the invention provides a kind of implementation method of multiple network device link aggregation, this method can increase bandwidth by link and equipment, and the redundant and backup of link and equipment is provided, and increases the availability of the link and the network equipment.
Technical scheme of the present invention is achieved in that the present invention realizes its function according to following steps:
At first, with the local port tag extension in the standard link gather be global port sign between many network equipments;
Secondly, choose the plurality of network port on many network equipments, and every equipment can have one or more network ports, the network port on every equipment constitutes a local link group, the network port in many network equipments constitutes a global link group, and whole links that all of the port of global link group is drawn constitute aggregated link;
Once more, on every network equipment, start aggregation of links facility with global port sign;
Then, for the virtual network port of every equipment in many network equipments identical IP address and MAC Address, identical system priority and different device flag number are set;
At last, for selected port is provided with identical key assignments, and with the slave unit of selected port as the virtual network port.
Described is global port sign between many network equipments with the local port tag extension, the method of expansion is: for the port designations Port identifier of 4 bytes among the IEEE802.3ad, keep its high 16 constant as port priority Port Priority, port numbers Port Number boil down to least-significant byte (0~7) with low 16,8~15 as device flag number, device flag number be the virtual network port for every network equipment be provided with different from twos 255 positive integer.
Described many network equipments are meant switch, router, and main frame, and these network equipments are data communications equipment DCE, perhaps serve as the main frame of data communications equipment DCE.
Described aggregated link two ends are many network equipments, and promptly multiple network equipment is to multiple network equipment.
Described aggregated link two ends, one end are many network equipments, and the other end is the separate unit network equipment, and promptly single network device is to multiple network equipment.
The number of the network port depends on the end that ability of aggregation is little in the described global link group, if the link number that an end of this aggregated link allows to assemble is P, M platform equipment is arranged, every equipment on average has X the network port, and the link number that the other end allows mostly is Q most, and N platform equipment is arranged, every equipment on average has Y the network port, and Q<=P must have (M*x=N*y)<=Q so, and x ∈ (1~X), y ∈ (1~y).Many the network equipments to many network equipment situations under, many equipment are assembled can assemble unlimited a plurality of link; The separate unit network equipment to many network equipment situations under, the link number in many device links group be less than or equal to equipment in single device one end the link number that can assemble.
The described aggregation of links facility that on every network equipment, starts with global port sign, be on software, to load to have the aggregation of links module of global port sign, perhaps on hardware, open aggregation of links function with global port sign, perhaps open the aggregation of links function with global port sign on firmware, the aggregation of links facility with global port sign after the startup shows as a virtual network port.
Described virtual network port for every equipment in many network equipments is provided with identical IP address and MAC Address, identical system priority and different device flags number, be under the address of existing IPv4 family and Ethernet Ethernet Media layer, be the virtual network port arrangement of every equipment in many network equipments identical IP address and MAC Address, and the management end of the aggregation of links facility by having the global port sign is provided with the system priority of defined in the IEEE802.3ad standard, and the system priority of the virtual network port of all-network equipment has identical value, and the management end of the aggregation of links facility by having the global port sign to be that the device flag of the virtual network port of many network equipments number is provided with different from twos 255 positive integer value.
Describedly identical key assignments is set for selected port, and with the slave unit of selected port as the virtual network port, the management end that is the aggregation of links facility by having the global port sign is the key assignments that selected port is provided with defined in the identical IEEE802.3ad standard, and the selected port to all devices of many network equipments is provided with identical value, and variable or the data structure item of revising the expression master-slave equipment of the selected network port on software are the slave unit sign, the virtual network port is recorded as the main equipment of oneself, the master-slave equipment of perhaps revising selected port on hardware is masked as slave unit, is the main equipment of oneself with the virtual network port label.
The present invention makes it work as a logical links with the Port BindingBundling of many network equipments together, has increased the access bandwidth of the network equipment, and the redundancy of link and equipment is provided, and increases the availability of the link and the network equipment.The hardware of the method realizes can be used as a module on the network equipment, the function that makes it provide many equipment to assemble.
Embodiment
With reference to shown in Figure 1, A, B are two network equipments that are connected by a plurality of links that flock together, A, B can be in switch, router and the main frame any one, and n is two network ports on the equipment, the frame of broken lines representative link group wherein among A, the B.A, B add link group with a plurality of network ports of this locality respectively, make a plurality of multilink bundlings between the two.
With reference to shown in Figure 2, described among the figure many equipment assemble in single device to the situation of multiple devices.A1..Am is the multiple devices of aggregated link one end, B is the equipment of the aggregated link other end, n is the network port on the individual device, the frame of broken lines of the network port that comprises the multiple devices A1..Am equipment of aggregated link one end is represented the many device link group of aggregation of links at this end, and the frame of broken lines in the equipment B of the aggregated link other end is represented the link-local group of aggregation of links in the equipment B of the aggregated link other end.The multiple devices A1..Am of aggregated link one end adds link group by the network port with this equipment respectively, form many device links group, the equipment B of the aggregated link other end is by adding link group with the local port of correspondence, makes between it and the A1..Am a plurality of multilink bundlings together.
With reference to shown in Figure 3, the numeral among the figure on the arrow: 1.LACP packet; 2. non-LACP packet; 3. general data bag; 4.Marker response data packet; 5.Marker packet.Wherein, upstream data bag representative by the network port receive, need be by the packet of this device processes, the packet that on behalf of this equipment, downlink data packet will send.
For receiving the upstream data bag that formation receives from the network port to bag, this method at first analyzes LACP packet 1 at one-level bag analyzer, transfers to the aggregation of links control module and handles, and this module can be adjusted the setting of link group according to the content of LACP packet 1; For non-LACP packet 2, the secondary packet analyzer can be analyzed it, isolate general data bag 3 and two kind of Marker packet, general data bag 3 can directly be received by this locality bag receiver, and transfer to the upper strata and handle, Marker response data packet 4 can be given the Marker receiver and be received, and 5 of Marker packets can be handled the back by the Marker reactor and return along former link.The Marker packet generates in the Marker generator.
For the downlink data packet that will send, they can at first arrive local bag distributor, select a suitable port by this locality bag distributor in the link-local group, and this packet is placed on the bag transmit queue, wait to be sent.
With reference to shown in Figure 4, the many equipment gatherings among the figure bundle the front end link on total interface machine (load equalizer) 1..n, form a link group of crossing over many interface message processor (IMP)s.On the total interface machine 1..n external port all is configured to identical IP and MAC Address, is tied to the unity logic link, make whole cluster externally show as single Web portal.
During service that this virtual IP address of client-access in the telecommunication network is provided, distribute between exchange opportunity at first wraps in request msg the link in the link-local group---just the front end link of interface message processor (IMP) 1..n---, packet can be transmitted to server 1..m in the cluster by interface message processor (IMP) 1..n then.Interface message processor (IMP) 1..n links to each other by switching network with server 1..m, and interface message processor (IMP) is directly issued this server for after certain request chooses server by switching network.
In normal data exchange process, many equipment are assembled the packet delivery of serving as switch and are collected sending behind the switch of task to each interface message processor (IMP) and with the packet on the interface message processor (IMP).Assemble by many equipment, this method can be finished analysis and processing to packet at link layer, and the load-balancing function of whole cluster network inlet also needs the cooperation of other functions.
When an interface message processor (IMP) front end link failure, the aggregation of links meeting in the switch detects the link of inefficacy, selects other link transmission data of link group then.After the link failure in the link group, selected new link is decided on the port selection strategy of employing, down can be according to next the bar link to the selective sequential inefficacy link of port number delivery such as the poll strategy.
With reference to shown in Figure 5, described among the figure many equipment assemble in multiple devices to the situation of multiple devices.Wherein A1..Am is the network equipment of aggregated link one end, B1..Bn is the network equipment of the aggregated link other end, the multiple devices at two ends are linked to each other by a plurality of links, they add the local network port many device links group of one's own side's one end respectively, make between the network equipment B1..Bn of the network equipment A1..Am of aggregated link one end and the aggregated link other end a plurality of multilink bundlings together.L is the link that equipment outwards connects.
Many equipment are assembled the aggregation of links that can be used between many network equipments and many network equipments.The present invention can utilize many network equipments to reach the expansion and the redundancy of link, can utilize the method spread bandwidth such as many switches, link redundancy is provided, even the redundancy of device level can be provided.
With reference to shown in Figure 6, the implementing procedure that many device links are assembled has been described among the figure.Whole process at first is the expansion to standard link gather, with the local port tag extension in the standard link gather is global port sign between many network equipments, be the process that aggregation of links facility circulation that a usefulness has a global port sign is provided with all devices then, process is as follows: at first, choose the equipment that will dispose, selected one or more network ports, on this equipment, start aggregation of links facility then with global port sign, be virtual network port arrangement identical MAC and IP address, identical system priority and different device flags number, for the selected network port is provided with identical key assignments, at last with the slave unit of selected port as the virtual network port.
The setting of many equipment aggregated link group
Many device links are assembled the aggregation of links technology based on the IEEE802.3ad standard, by with the local port tag extension in the standard link gather being the global port sign between many network equipments, making needs the network port sign of gathering unique between multiple devices, the method of this expansion is as follows: for the port designations Port identifier of 4 bytes described in the IEEE802.3ad, keep its high 16 constant as port priority Port Priority, with low 16 port numbers Port Number boil down to least-significant byte (0~7), 8~15 as device flag number.
Be to use the aggregation of links facility with global port sign that many network equipments are provided with then, the process that the network port of many network equipments is flocked together, this process are every equipment of many network equipments to be repeated the process of following steps:
1) in this equipment, chooses one or more network ports;
2) on this equipment, start aggregation of links facility with global port sign, this is meant to load to have the aggregation of links module of global port sign on software, on hardware, be meant and open aggregation of links function, on firmware, be meant and open aggregation of links function with global port sign with global port sign;
3) under the address of existing IPv4 family and Ethernet Ethernet Media layer, be virtual network port arrangement fixed IP addresses and MAC Address.The virtual network port here is meant the equipment entity that aggregation of links facility with global port sign is showed.
4) for the virtual network port is provided with identical system priority, the system priority here is the system priority of IEEE802.3ad defined.
5) for the virtual network port is provided with device flag number, the device flag here number is the different in twos positive integer that is provided with for every equipment in many network equipments;
6) for selected port identical key assignments is set, the key assignments here is the key assignments of IEEE802.3ad defined;
7) with the slave unit of selected port as the virtual network port, concrete grammar is: variable or the data structure item of revising the expression master-slave equipment of the selected network port on software are the slave unit sign, the virtual network port is recorded as the main equipment of oneself, the master-slave equipment of perhaps revising selected port on hardware is masked as slave unit, is the main equipment of oneself with the virtual network port label.
The dynamic management of many equipment aggregated link group
Many equipment aggregated link group can also can be carried out dynamic management by LACP with manually carrying out static management.The equipment at aggregated link two ends can be consulted the setting of both sides' link group by exchange LACP message, the LACP message is analyzed by special aggregation of links control module, and according to the information in the message link-local group is provided with and adjusts, to guarantee normally carrying out of transfer of data.Certain link such as aggregated link one end need leave this link group, and the link group of this end can send the LACP bag to the link group of the other end, tells the other end that corresponding port is deleted from link group.
The collection of packet and distribution
When many equipment aggregated link group operate as normal, wherein each port normally receives packet, is received by the link-local group then, mails to the upper-layer protocol stack and handles; For the packet that needs send, many equipment are assembled facility and can be selected one of them port to distribute in the link-local group.
Enhanced scalability
The two ends that many equipment are assembled can comprise a plurality of links of multiple devices, the maximum number of links that is comprised is the maximum number of links Q that the less end of link capacity is comprised, therefore the N platform equipment in these many device links are assembled, the number of links of average every equipment is M<=Q/N.The number of devices of each end of many equipment aggregated link can be 1~N, if two ends all have only an equipment, the aggregation of links that then degenerates into standard is referring to Fig. 1; If an end has only an equipment, and the other end has many, then be singly to many situations, sees Fig. 4, and the application such as single IP of many interface message processor (IMP)s can be provided; If two ends all have many, be the situation of multi-to-multi then, see Fig. 5, application such as many device link expansions and redundancy can be provided.
Realization as hardware module
This method can realize with hardware, such as ASIC,,,, assembles the network equipment for providing many equipment in use by reasonable disposition as a module of the network equipment, and the bandwidth of a scalable network equipment, and link redundancy even equipment redundancy are provided.A plurality of network interface cards of multiple servers can also be gathered together, high-speed data channel and link redundancy are provided.