Embodiment
For making purpose of the present invention, technical scheme and advantage clearer, referring to the accompanying drawing embodiment that develops simultaneously, scheme of the present invention is described in further detail.
A kind of method of aggregated links load balancing is proposed in the embodiment of the present invention, be applied to access on the BEB equipment of described SPBM network by aggregated links in the SPBM network, arbitrary described BEB equipment utilization LSP message is described as N empty BEB equipment and an empty backbone network core bridges (Backbone Core Bridge with this BEB equipment, BCB) combination of equipment, N is that this BEB equipment accesses the quantity of the member port of described SPBM network by aggregated links.This BEB equipment receive that user's side sends to the message of described SPBM network the time, select a B-MAC address in the B-MAC address of the N that describes an empty BEB equipment, as source MAC, the message that receives is carried out the MAC-in-MAC encapsulation, and according to the target MAC (Media Access Control) address of outer Ethernet header and the source MAC selective polymerization link of the message after encapsulation and forward, can realize the load balancing of SPBM flow on aggregated links.
The maintenance of the neighbours of SPBM, topology and the calculating of forward-path rely on the ISIS-SPB agreement and realize.In ISIS-SPB, the Link State of all devices is described by link-state protocol (Link State Protocol, LSP), and topology foundation, path computing are also fully take LSP as foundation.Therefore in the specific embodiment of the invention, BEB equipment utilization structure and issue LSP message are realized this description, this SPBM network is thought had a plurality of BEB equipment on this link.
Be the flow that forwards between BEB due to the function of the BCB equipment in the SPBM network, the flow between different B EB has different outer Ethernet headers, thus the aggregated links between BCB equipment do not exist can't load balancing problem.Therefore, specific embodiments of the invention only realize on the BEB equipment in access the SPBM network by aggregated links, do not do improvement for BCB equipment and the BEB equipment that access the SPBM network by aggregated links, have together the processing of realization now.
Access the BEB equipment of SPBM network as example take arbitrary by aggregated links in the specific embodiment of the invention, the combination of this BEB device description N empty BEB equipment and a BCB equipment, structure N+1 bar LSP message, the topology information of described empty BCB equipment and each described empty BEB equipment is published in the SPBM network, equipment in the SPBM network can be thought exist N such BEB equipment and BCB equipment, and realize carrying out topology foundation and path computing by existing.Be described as the combination of N empty BEB equipment and an empty BCB equipment due to this BEB equipment, this BEB equipment does not exist in topology, so the LSP message of this BEB equipment is no longer constructed and sent to this BEB equipment.The form of the LSP message of structure is with the LSP message of existing BEB equipment structure, and it is how to construct the LSP message that the below describes in detail in the specific embodiment of the invention.
This BEB equipment guarantees namely that for empty BCB equipment and each empty BEB equipment of describing distributes respectively system banner (System-ID) unique in whole SPBM network, B-MAC address and shortest path source sign (SPSourceID) System-ID, B-MAC address and the SPSourceID overall situation are unique.
Unique in order to guarantee respectively as System-ID, B-MAC address and the SPSourceID overall situation of described empty BCB equipment and each empty BEB devices allocation, provided following two kinds of implementations in the specific embodiment of the invention:
The first is: by static configuration, guarantee that the overall situation is unique.
The second is: for N the empty BEB equipment of describing sorts from 1 to N; B-MAC address, System-ID and the SPSourceID that is respectively this BEB equipment for B-MAC address, System-ID and the SPSourceID of described each empty BEB devices allocation and the sequence number of corresponding empty BEB equipment and.
When being each described empty BEB devices allocation B-MAC address, System-ID and SPSourceID, it can be first the empty BEB devices allocation of sequence number minimum.To distribute System-ID as example, for the System-ID of arbitrary empty BEB devices allocation be the System-ID of this BEB equipment and this void BEB equipment sequence number and, after distributing end, search in the LSD (LSDB) of this locality, determine whether to exist the System-ID of repetition, the System-ID that if there is no repeats is to the empty BEB devices allocation of next one System-ID; If the System-ID that exist to repeat will add 1 for the System-ID of this void BEB devices allocation, again search in LSDB, until do not find repetition in LSDB, be at this moment the System-ID end of this void BEB devices allocation.
To the empty BEB equipment of the next one, be that sequence number is than the empty BEB devices allocation System-ID of the sequence number large 1 of this void BEB equipment, the System-ID that distributes is that sequence number is that the System-ID of last empty BEB devices allocation adds 1, and whether the System-ID that equally searches current distribution at LSDB exists repetition, by that analogy, until be that all empty BEB devices allocation System-ID finish.
During for BCB devices allocation B-MAC address, System-ID and SPSourceID, also adopt described method to carry out guaranteeing that the overall situation is unique.
Empty BCB equipment and the empty BEB equipment structure LSP message of this BEB equipment for describing
1) the empty BCB equipment structure LSP message of this BEB equipment for describing:
This LSP message carries and is the System-ID of this void BCB devices allocation, B-MAC address and SPSourceID; This LSP message also carries the annexation of this void BCB equipment and described N empty BEB equipment, and with the annexation of SPBM network.
Most of field of this LSP message is identical with the LSP message of this BEB equipment, and the field of change is as follows:
A, distribution System-ID, B-MAC address and SPSourceID guarantee that the overall situation is unique.
The structure of b, LSP-ID.
LSP-ID generates according to the System-ID that is this void BCB devices allocation.The generation method realizes with existing.
The structure of c, MT-Capability.
This field is described in the TLV144 of LSP message, in a LSP, 1 or a plurality of TLV144 may be arranged.TLV144 for all is handled as follows in the specific embodiment of the invention:
With SUB TLV01(SPB Instance) in the SPSourceID field extend this as the SPSourceID of distribution, with the U marker bit zero setting before all ECT fields.
And deletion SUB TLV03(SPB Service ID) the I-SID field in comprises the front T marker bit of I-SID, R marker bit and keeps the position, the B-MAC field of this SUB TLV is extended this as the B-MAC address of distribution.
Main purpose to the change of MT-Capability is to remove the B-MAC address of empty BCB equipment and the binding relationship of I-SID, makes other equipment in the SPBM network think that this is a BCB equipment, rather than a BEB equipment.
The structure of d, Extended IS Reachability.
This field is described in the TLV22 of LSP message.This LSP keeps this TLV field of this BEB equipment, adds on this basis N TLV22, and wherein N equals the aggregated links member port quantity of this BEB equipment access SPBM network.
The TLV22 that newly adds constructs according to following principle:
The IS neighbor field of each TLV22 is filled in the System-ID of an empty BEB equipment.
The content that the Port id field of each TLV22 is filled in is the port numbers of a described virtual N empty BEB equipment.During specific implementation, can add 1 port numbers that realizes N empty BEB equipment on the basis of this field fill substance of previous TLV22.
The transformation of Extended IS Reachability is mainly aimed to describe the topology information of this void BEB equipment, the TLV22 that keeps former BEB equipment is for the annexation of describing this void BCB equipment and SPBM network, and the N that newly an adds TLV22 is used for describing the annexation of empty BCB equipment and each empty BEB equipment.
By above-mentioned realization, the LSP message construction complete of empty BCB equipment.
2) the arbitrary empty BEB equipment structure LSP message of this BEB equipment for describing:
This LSP message carries and is the System-ID of this void BEB devices allocation, B-MAC address and SPSourceID; Wherein, unique in described SPBM network for System-ID and the SPSourceID of this void BEB devices allocation; Also carry the annexation of this void BEB equipment and described empty BCB equipment in this LSP message.
Most of field of this LSP message is identical with the LSP message of this BEB equipment, and the field of change is as follows:
A, distribution System-ID, B-MAC address and SPSourceID guarantee that the overall situation is unique.
The structure of b, LSP-ID.
The LSP-ID that carries in this LSP message generates according to the System-ID for this void BEB devices allocation, and the method that specifically generates realizes with existing.
The structure of c, MT-Capability.
This field is described in the TLV144 of LSP message, in a LSP, 1 or a plurality of TLV144 may be arranged.For all TLV144, the change of the specific embodiment of the invention is as follows:
With SUB TLV01(SPB Instance) in the SPSourceID field extend this as, be the SPSourceID of this void BEB devices allocation.
With SUB TLV03(SPB Service ID) in the B-MAC field extend this as, be the B-MAC address of this void BEB devices allocation.
The structure of d, Extended IS Reachability.
This information field is described in the TLV22 of LSP message.This LSP message deletion of empty BEB is this TLV field of BEB equipment originally, and respectively adds on this basis 1 TLV22.
The TLV22 that newly adds constructs according to following principle:
The IS neighbor field of TLV22 is filled in the System-ID of the empty BCB equipment of description.
The Port id field of TLV22 is filled in the port numbers that is connected with the empty BCB equipment of describing.
By above-mentioned realization, the LSP message construction complete of the arbitrary empty BEB equipment of this BEB device description.
This BEB equipment sends the N+1 bar LSP message of structure in the SPBM network, when other BEB equipment in the SPBM network receive corresponding LSP message, realize with existing, carries out topology according to the LSP message that receives and sets up and path computing.
Each BEB equipment receives the LSP message in the SPBM network, carries out that topology is set up and after path computing completes, by reference to the accompanying drawings, describes the process that this BEB equipment forwards in detail after receiving message.
Referring to Fig. 3, Fig. 3 be in the specific embodiment of the invention BEB equipment to user's side message processing procedure schematic flow sheet.Concrete steps are:
Step 301, BEB equipment receives the message that user's side sends to the SPBM network side.
Step 302, this BEB equipment are selected a B-MAC address in the B-MAC address of the N that describes an empty BEB equipment, as source MAC, the message that receives is carried out the MAC-in-MAC encapsulation.
Be described as N empty BEB equipment in this locality due to BEB equipment, receive need to be to the message of SPBM network side the time, no longer directly the MAC Address of this BEB equipment is encapsulated as the source MAC of outer Ethernet header, but select a B-MAC address in the B-MAC address of the N that describes an empty BEB equipment, the concrete selection mode specific embodiment of the invention provides following two kinds:
The first is: source MAC and the target MAC (Media Access Control) address of this BEB equipment interconnection receiving literary composition carry out Hash, whether determine Hash result at local record, if so, select the B-MAC address corresponding to Hash result of record, as source MAC; Otherwise, select a B-MAC address in the B-MAC address of the N that describes an empty BEB equipment by preset rules, as source MAC, and the B-MAC address of this Hash result and selection is recorded in binding.
In this implementation procedure, source MAC and the target MAC (Media Access Control) address of docking receiving literary composition carry out Hash calculation, be whether to receive this message before determining according to Hash result, if received, will use with the identical B-MAC address of selecting before and encapsulate this message as source MAC.
In order whether to receive this message before determining, need to be when selecting the B-MAC address for this message for the first time, record carries out the Hash result of Hash calculation to this message, and according to the B-MAC address of this Hash result selection.
If the Hash result that in the specific embodiment of the invention, docking receiving literary composition carries out Hash calculation not at local record, select the B-MAC address by preset rules can for, poll or random, can be also the balanced method of principle that is of can reaching of other.
The second is: for N the empty BEB equipment of describing sorts from 1 to N.
Source MAC and the target MAC (Media Access Control) address of this BEB equipment interconnection receiving literary composition carry out Hash, and mate the sequence number of each empty BEB equipment according to Hash result, and the B-MAC address of the empty BEB equipment that the sequence number that matches is corresponding is as source MAC.
Provided the source MAC of How to choose encapsulation in the specific embodiment of the invention, selection for the target MAC (Media Access Control) address in the MAC-in-MAC encapsulation, realize with existing, when learning the MAC Address of opposite end BEB equipment as this locality, directly with the MAC of opposite end BEB equipment as target MAC (Media Access Control) address; If study is not arrived, encapsulate multicast mac address, give each BEB equipment in this SPBM network with this message.
Step 303, this BEB equipment is according to target MAC (Media Access Control) address and the physical link on source MAC selective polymerization mouth and the forwarding of the outer Ethernet header of the message after encapsulating.
Selected the B-MAC address as source MAC in the specific embodiment of the invention, and after carrying out the MAC-in-MAC encapsulation, which bar physical link of selective polymerization mouth forwards the packet in the SPBM network, can use any method selective polymerization link that can reach the load balancing purpose, as carrying out Hash calculation by target MAC (Media Access Control) address and source MAC to the outer Ethernet header of encapsulated message, according to the Hash calculation physical link on the selective polymerization mouth as a result.And the adjustment that this hash algorithm can adapt to according to the number of current aggregated links is as due to after certain linkdown.
By above-described embodiment, realized the load balancing on the aggregated links for the BEB equipment in the SPBM network, improved the utilance of link.
Referring to Fig. 4, Fig. 4 be in the specific embodiment of the invention BEB equipment to SPBM network side message processing procedure schematic flow sheet.Concrete steps are:
Step 401, BEB equipment receive the message that described SPBM network side sends to user's side.
Step 402, if the B-MAC address of the target MAC (Media Access Control) address of the outer Ethernet header of this message and the local arbitrary described empty BEB equipment of describing is identical, or the target MAC (Media Access Control) address of the outer Ethernet header of this message is when being multicast mac address in this SPBM network, this message of decapsulation, and forward process ends according to the target MAC (Media Access Control) address of the message after decapsulation.
In existing the realization, when BEB equipment receives the message of network side, if determine whether the target MAC (Media Access Control) address of the outer Ethernet header of this message is the MAC Address of this BEB equipment; And in the specific embodiment of the invention, need to determine that whether this target MAC (Media Access Control) address is in the B-MAC address of the local empty BEB equipment of describing, namely as long as have this target MAC (Media Access Control) address in the B-MAC address of described N empty BEB equipment, just determine that this message need message to be processed for this equipment; If not identical with the B-MAC of each empty BEB equipment, but determine also to need this equipment to process when identical with multicast mac address.
Step 403, if the B-MAC address of the target MAC (Media Access Control) address of the outer Ethernet header of this message and local all empty BEB equipment of describing is all not identical, and with this SPBM network in multicast mac address when not identical, abandon this message.
Based on same inventive concept, also propose a kind of equipment in the specific embodiment of the invention, this equipment can be used for accessing BEB equipment in the SPBM network by aggregated links.Referring to Fig. 5, Fig. 5 is the structural representation of specific embodiment of the invention equipment.This equipment comprises: structural unit 501, receiving element 502 and processing unit 503.
Structural unit 501, be used for this equipment when sending LSP, this equipment is described as the combination of N empty BEB equipment and an empty BCB equipment, structure carries the LSP message into the B-MAC address of described empty BCB equipment and each described empty BEB devices allocation respectively, and the topology information of described empty BCB equipment and each described empty BEB equipment is published in the SPBM network; Wherein, N is the aggregated links member port quantity of the described SPBM network of this BEB equipment access, for B-MAC address overall situation in the SPBM network of described empty BCB equipment and each described empty BEB devices allocation unique.
Receiving element 502 is used for receiving the message that user's side sends to described SPBM network.
Processing unit 503, be used for when receiving element 502 receives user's side and sends to the message of described SPBM network, select a B-MAC address in the B-MAC address of N empty BEB equipment that structural unit 501 is described, as source MAC, the message that receives is carried out the MAC-in-MAC encapsulation, according to target MAC (Media Access Control) address and the physical link on source MAC selective polymerization mouth of the outer Ethernet header of the message after encapsulation and forward.
Preferably,
Receiving element 502 is further used for receiving the message that described SPBM network side sends to user's side.
Processing unit 503, be further used for when receiving element 502 receives described SPBM network side and sends to the message of user's side, if determine that the B-MAC address of target MAC (Media Access Control) address and the arbitrary described empty BEB equipment of local description of outer Ethernet header of this message is identical, or the target MAC (Media Access Control) address of the outer Ethernet header of this message is when being multicast mac address in this SPBM network, this message of decapsulation, and forward according to the target MAC (Media Access Control) address of the message after decapsulation; Otherwise, abandon the message of this reception.
Preferably,
Processing unit 503, the source MAC and the target MAC (Media Access Control) address that are used for message that the SPBM side that receives is sent carry out Hash, whether determine Hash result at local record, if so, select the B-MAC address corresponding to Hash result of record, as source MAC; Otherwise, select a B-MAC address in the B-MAC address of the N that describes an empty BEB equipment by preset rules, as source MAC, and the B-MAC address of this Hash result and selection is recorded in binding.
Preferably,
Structural unit 501 is further used for sorting from 1 to N for N the empty BEB equipment of describing.
Processing unit 503, the source MAC and the target MAC (Media Access Control) address that are used for docking receiving literary composition carry out Hash, and mate the sequence number of each empty BEB equipment according to Hash result, and the B-MAC address of the empty BEB equipment that the sequence number that matches is corresponding is as source MAC.
Preferably,
Structural unit 501 is further used for carrying system banner System-ID and shortest path source sign SPSourceID into this void BCB devices allocation in the LSP message of the B-MAC address of carrying described empty BCB equipment of structure; Wherein, unique for System-ID and SPSourceID overall situation in described SPBM network of this void BCB devices allocation; Also carry the annexation of this void BCB equipment and described N empty BEB equipment, and with the annexation of SPBM network.
Preferably,
Structural unit 501 is further used for carrying System-ID and SPSourceID into this void BEB devices allocation in the LSP message of the B-MAC address of carrying arbitrary described empty BEB equipment of structure; Wherein, unique for System-ID and SPSourceID overall situation in described SPBM network of this void BEB devices allocation; Also carry the annexation of this void BEB equipment and described empty BCB equipment.
The unit of above-described embodiment can be integrated in one, and also can separate deployment; A unit can be merged into, also a plurality of subelements can be further split into.
In sum, in the specific embodiment of the invention in the SPBM network BEB equipment utilization LSP message this BEB equipment is described as the combination of N empty BEB equipment and an empty BCB equipment, N is the aggregated links member port quantity of the described SPBM network of this BEB equipment access; When receiving the message of user's side transmission, select a B-MAC address in the B-MAC address of the N that describes an empty BEB equipment, as source MAC, the message that receives is carried out the MAC-in-MAC encapsulation, and according to the target MAC (Media Access Control) address of outer Ethernet header and the source MAC selective polymerization link of the message after encapsulation and forward, can realize the load balancing of SPBM flow on aggregated links, improve the utilance of link.
Give the concrete processing method to the message of SPBM network side transmitted in the specific embodiment of the invention, the specific embodiment of the invention can be fully compatible with existing SPBM mechanism, only needs to dispose on the BEB equipment that accesses the SPBM network by aggregated links to get final product.
The above is only preferred embodiment of the present invention, is not for limiting protection scope of the present invention.Within the spirit and principles in the present invention all, any modification of doing, be equal to replacement, improvement etc., within all should being included in protection scope of the present invention.