Summary of the invention
In view of this, the invention provides method and the routing bridge of maintenance of neighbor relation in a kind of TRILL network.Can reduce the quantity that sends hello packet, reduce the consumption of link bandwidth, improve the CPU disposal ability of RB.
For solving the problems of the technologies described above, technical scheme of the present invention is achieved in that
A method for maintenance of neighbor relation in TRILL network, described method comprises:
Current RB receives the hello packet that in TRILL network, other RB of same link send, and carry out DRB election according to the hello packet receiving, if self is elected as DRB, selected assigned vlan and in assigned vlan the cycle send hello packet and notify other RB; If other RB are elected as DRB, receive the hello packet that carries assigned vlan that DRB sends, obtain described assigned vlan and cycle transmission hello packet in described assigned vlan.
A routing bridge for maintenance of neighbor relation in TRILL network, described routing bridge comprises: receiving element, election unit, transmitting element and reception acquiring unit;
Described receiving element, the hello packet sending for receiving other RB of TRILL network same link;
Described election unit, carries out DRB election for the hello packet receiving according to described receiving element;
Described transmitting element, in the time that described election unit place RB is elected as DRB, selected assigned vlan and in assigned vlan the cycle send hello packet and notify other RB;
Described reception acquiring unit, in the time that other RB are elected as DRB, receives the hello packet that carries assigned vlan that DRB sends, and obtains described assigned vlan and cycle transmission hello packet in described assigned vlan.
In sum, after DRB elects successfully, TRILL network is in the time of a stable state, the only cycle transmission hello packet in unique assigned vlan of RB on link, can reduce the quantity that sends hello packet, reduce the consumption of link bandwidth, improve the CPU disposal ability of RB.
Embodiment
For making object 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.
Referring to Fig. 1, Fig. 1 be in the embodiment of the present invention in TRILL network the method flow diagram of maintenance of neighbor relation.Concrete steps are:
Step 101, current RB receives the hello packet that in TRILL network, other RB of same link send, and carries out DRB election according to the hello packet receiving.
This step is the hello packet sending between RB before DRB election to carry out DRB election consistent with existing realization, the hello packet that enables to send within the scope of VLAN at self.
Step 102, if current RB is elected as DRB, selected assigned vlan and in assigned vlan the cycle send hello packet and notify other RB.
In this step, after the selected assigned vlan of DRB, only in this assigned vlan, the cycle sends hello packet, and other enable not send in VLAN hello packet.
Step 103, if other RB are elected as DRB, receives the hello packet that carries assigned vlan that DRB sends, and obtains assigned vlan and cycle transmission hello packet in this assigned vlan.
In this step, other RB are elected as DRB, and current RB is that the RB that is not elected as DRB obtains after assigned vlan, and only in the assigned vlan obtaining, the cycle sends hello packet.
If current RB receives the hello packet in non-described assigned vlan, in the non-described assigned vlan of correspondence, send and reply hello packet, and re-start DRB election according to the hello packet receiving.
If current RB is at the DRB re-electing, while being elected as DRB, again selected assigned vlan and in described selected assigned vlan again the cycle send hello packet and notify other RB; If when other RB are elected as DRB, receive the hello packet that carries again selected assigned vlan that DRB sends, obtain again selected assigned vlan and cycle transmission hello packet in the assigned vlan that this is selected again.
If current RB is elected as DRB, and described assigned vlan be send the hello packet in non-described assigned vlan RB enable VLAN, using described assigned vlan as again selected assigned vlan.
After DRB election, receive the hello packet of RB transmission that newly adds network in non-designated VLAN time, the RB that had participated in election sends hello packet in assigned vlan, therefore only has the RB newly adding just may in certain VLAN outside assigned vlan, send hello packet.If receive such message, in corresponding VLAN, can send and reply hello packet, and re-start DRB election according to the hello packet of new RB.If due to the more high reason of RB priority newly adding, DRB changes, check the assigned vlan carrying in the hello packet of the DRB re-electing out, if assigned vlan wherein changes, automatically change sends hello packet in assigned vlan, and if the VLAN that enables of the RB newly adding comprise the assigned vlan before re-electing, assigned vlan is constant as far as possible, use original assigned vlan, avoid the frequent variations of assigned vlan to cause unstable networks.The selected of assigned vlan should obtain from the common factor that enables VLAN of each RB.
If current RB is DRB, this current RB also distributes respectively unique AVF for respectively enabling VLAN on link, and cycle transmission hello packet is notified other RB in assigned vlan.
If current RB is not elected as DRB, what this current RB reception DRB sent carries the hello packet that respectively enables the AVF of VLAN on link, obtain the VLAN that enables that is assigned with AVF of self, when the cycle sends hello packet in assigned vlan, carry from the AVF as the described VLAN of enabling.
In the present invention, RB, in order to show it self is the AVF of those VLAN, carries an Assigned AVF sub-TLV in the hello packet sending, and shows it self is the AVF of those VLAN, conflicts and suppresses processing so that reception can recognize AVF.The VLAN mentioning in the present invention is each RB must enable VLAN.Referring to Fig. 2, Fig. 2 is Assigned AVF sub-TLV formal definition schematic diagram.
Type:Assigned AVF in Fig. 2,10;
Length:4 × N, N is avf information quantity.
In Fig. 2, each avfInformation formal definition schematic diagram is referring to Fig. 3, and Fig. 3 is Assigned avfInformation formal definition schematic diagram.
In Fig. 3, RESV, for retaining position, fills out 0;
Start VLAN is initial VLAN;
End VLAN is for finishing VLAN.
Lift specific embodiment below, describe the method for the present invention's maintenance of neighbor relation in TRILL network referring to accompanying drawing in detail.Referring to Fig. 4, Fig. 4 is general double layer network structural representation in TRILL network.In Fig. 4, RB401, RB402 and RB403 are the RB on same link.Wherein, RB401 enables VLAN1-VLAN10; RB402 enables VLAN2-VALN6; RB403 enables VLAN4-VLAN9.
The operating process of carrying out each RB of DRB when election in Fig. 4 is consistent, describes in detail as an example of RB401 example now.The hello packet that RB401 reception RB402 and RB403 send, and send hello packet to RB402 and RB403 simultaneously.RB401 carries out DRB election, and because RB401 priority is higher, RB401 is elected as DRB.RB401 selectes assigned vlan, is assumed to be VLAN5, and distributes respectively AVF for the VLAN that enables of each RB on link.Then in VLAN5, sending hello packet notice RB402 and RB403 assigned vlan is VLAN5, and enables for it AVF that VLAN distributes.
RB402 and RB403 receive the hello packet that RB401 sends, and obtaining assigned vlan is VLAN5, and the AVF that enables VLAN of self, sends afterwards hello packet in VLAN5, and carries the AVF that self enables VLAN.
In Fig. 4, RB404 is the RB newly adding in network, enabling VLAN is VLAN5-VLAN10, send respectively hello packet to RB401, RB402 and RB403, RB401 receives the hello packet outside VLAN5, as the hello packet in VLAN6, in VLAN6, send and reply hello packet and re-start DRB election, if election results RB401 or DRB, and VLAN5 to be RB404 enable VLAN, continuing selected VLAN5 is assigned vlan.And distribute AVF for enabling VLAN, and send hello packet notice RB402, RB403 and RB404.When RB402, RB403 and RB404 receive hello packet, operating process is the same, repeats no more here.
Based on above-mentioned same inventive concept, the present invention also proposes the routing bridge of maintenance of neighbor relation in a kind of TRILL network.Referring to Fig. 5, Fig. 5 is the routing bridge structural representation of maintenance of neighbor relation in TRILL network in the specific embodiment of the invention.This routing bridge comprises: receiving element 501, election unit 502, transmitting element 503 and reception acquiring unit 504.
Receiving element 501, the hello packet sending for receiving other RB of TRILL network same link.
Election unit 502, carries out DRB election for the hello packet receiving according to receiving element 501;
Transmitting element 503, in the time that election unit 502 election self place RB is DRB, selected assigned vlan and in assigned vlan the cycle send hello packet and notify other RB.
Receive acquiring unit 504, in the time that other RB are elected as DRB, receive the hello packet that carries assigned vlan that DRB sends, obtain described assigned vlan and cycle transmission hello packet in described assigned vlan.
Preferably,
Receiving element 501, is further used for receiving the hello packet in non-described assigned vlan.
Election unit 502, is further used for re-starting DRB election.
Transmitting element 503 while being further used for the hello packet in receiving element 501 receives non-designated VLAN, sending and replys hello packet in the non-designated VLAN of correspondence.
Preferably,
Transmitting element 503, is elected as DRB if be further used for self place RB, and described assigned vlan be send the hello packet in non-described assigned vlan RB enable VLAN, using described assigned vlan as again selected assigned vlan.
Preferably,
Transmitting element 503, is further used for, in the time that election unit 502 elections self place RB is DRB, also distribute respectively unique AVF for respectively enabling VLAN on link, and cycle transmission hello packet being notified other RB in this assigned vlan.
Receive acquiring unit 504, be further used in the time that other RB are elected as DRB, what reception DRB sent carries the hello packet that respectively enables the AVF of VLAN on link, obtain the VLAN that enables that is assigned to AVF of self, only in described assigned vlan, the cycle sends the AVF that carries self place RB when hello packet and enable described in being VLAN.
The unit of above-described embodiment can be integrated in one, and also can separate deployment; Can merge into a unit, also can further split into multiple subelements.
In sum, after DRB elects successfully, TRILL network is in the time of a stable state, RB on link only in unique assigned vlan the cycle send hello packet, in the time that the each port of RB on link enables multiple VLAN, in TRILL network, can greatly reduce the hello packet that neighbours refresh mutual, a large amount of hello packet that reduce redundancy send, can reduce the quantity that sends hello packet, reduce the consumption of link bandwidth, improve the CPU disposal ability of RB.Solve the AVF conflict producing under the method that the present invention proposes and check and suppress processing by carry Assigned AVF sub-TLV in hello packet simultaneously.
The above, be only preferred embodiment of the present invention, is not intended to limit protection scope of the present invention.Within the spirit and principles in the present invention all, any amendment of doing, be equal to replacement, improvement etc., within all should being included in protection scope of the present invention.