Background technology
Along with the continuous increase of server and switch quantity, data center network is more and more tended to the network architecture of flattening, so that maintenance management, this just requires to make up one large-scale two layers, and (Layer 2, L2) network.Traditional double layer network comes cancellation loop by Spanning-Tree Protocol (Spanning Tree Protocol, STP), and still, some intrinsic defectives of Spanning-Tree Protocol itself make it no longer be applicable to data center network, for example:
(1) Spanning-Tree Protocol is come cancellation loop by blocking redundant link, but data center network is difficult to bear this bandwidth waste;
(2) Spanning-Tree Protocol requires all data to transmit via root bridge, can affect forward efficiency like this;
(3) Spanning-Tree Protocol can't be carried TTL(Time To Live, life span) parameter, like this, in case double-layer loop occurs, can cause whole net paralysis;
(3) the Spanning-Tree Protocol convergence rate is slower, and again restraining has larger impact to data flow.
In order to solve the problems referred to above of Spanning-Tree Protocol, IETF(Internet Engineering Task Force, the Internet Engineering task groups) by formulating TRILL(TRansparent Interconnection of Lots of Links, the multilink transparent interconnection) agreement is with three layers of route technology IS-IS(Intermediate System-to-Intermediate System, Intermediate System-to-Intermediate System) mentality of designing is introduced double layer network, and it has been carried out necessary transformation.Thereby with two layers simple, flexibilities with three layers stablize, can expand and high-performance organically merges.
Fig. 1 and Fig. 2 are the configuration diagram of typical TRILL network.The TRILL network is by RB(RoutingBridge, routing bridge) double layer network that consists of.The Bridge equipment of operation TRILL agreement is called RB, also writes RBridge.According to the position in the TRILL network, RB can be divided into again three kinds of Ingress RB, Transit RB and EgressRB, represent respectively message enter the ingress of TRILL network, in the TRILL network intermediate node of process and the egress that leaves the TRILL network, as shown in Figure 1.The address of RB in the TRILL network is by the NickName(pet name) expression, NickName is the unique identification of RB in the TRILL network.Nickname is distributed automatically by system, need not configuration.
In the TRILL network, there are two class forwarding-table items: unicast forwarding list item and multicast forwarding list item.Wherein, the unicast forwarding list item is used for instructing the forwarding of the known unicast message of target MAC (Media Access Control) address, and the multicast forwarding list item is used in reference to the forwarding of leading many purposes message, and many purposes message comprises: the unicast message of target MAC (Media Access Control) address the unknown, broadcasting packet and multicast message.Each RB equipment in the TRILL network can be according to LSDB(Link State Database, LSD) in information calculations and select the tree root of multicast tree.
In order to improve the forward efficiency of data flow, can be according to each VLAN(VirtualLocal Area Network on each multicast tree, VLAN) or each multicast MAC(Media Access Control, media interviews control) the multicast forwarding list item is set up in the address, realizes that many purposes message is according to the beta pruning forwarding of root RB+VLAN or root RB+VLAN+MAC.Therefore, according to the key(keyword) difference, the multicast forwarding list item is divided into: category-A multicast forwarding list item, category-B multicast forwarding list item and C class multicast forwarding list item, wherein, category-A multicast forwarding list item is for being the tree root of multicast tree based on root RB() the multicast forwarding list item, category-B multicast forwarding list item is for being the tree root of multicast tree based on root RB() and the multicast forwarding list item of VLAN, C class multicast forwarding list item is the tree root that is multicast tree based on root RB(), VLAN and MAC(multicast MAC) the multicast forwarding list item.Like this, in the message repeating process, after RB receives many purposes message, can be according to C-〉B-〉the multicast forwarding list item of the sequential search coupling of tabling look-up of A, namely, in the C class is transmitted, search first, if search less than, then continue in category-B is transmitted, to search, also search less than, then in category-A is transmitted, search, after finding the multicast forwarding list item of coupling, according to the content in the multicast forwarding list item that mates or hit the many purposes message that receives is transmitted.
In a large-scale TRILL network, may there be a plurality of multicast tree, there are a plurality of VLAN on each multicast tree, there are a plurality of multicast mac address in each VLAN.Like this, the number of the multicast forwarding list item that comprises category-A, category-B and C class multicast forwarding list item in RB equipment is just very many.When TRILL network of network topology changes, the quantity that need to upgrade the multicast forwarding list item that issues just may be a lot, issue these a large amount of needed times of multicast forwarding list item just long, the efficient that the multicast forwarding list item issues is lower, and, with the time that data flow switches on the correct link also can be long.
Embodiment
For solve exist in the prior art when network topology changes, issue the needed time of multicast forwarding list item longer, the efficient that the multicast forwarding list item issues is lower, and, data flow is switched to also long problem of time on the correct link, and following examples of the application provide the delivery method of the multicast forwarding list item in a kind of TRILL network and the RB that can use the method.
For this three classes multicast forwarding list item of category-A multicast forwarding list item, category-B multicast forwarding list item and C class multicast forwarding list item, its contents in table mainly comprises two parts: the sign that whether has multicast receivers in the local network, this sign is used for judging whether and need to transmits carrying out this locality after the TRILL data message decapsulation of receiving, and, a port list that is used for the TRILL data message forwarding.Wherein, may include one or more ports (supporting at most at present 255 ports) in the port list, the information such as each port ports having index.
Port number limited in the RB access TRILL network of Access Layer, therefore, the content of a large amount of multicast forwarding list items may be identical.So, when based on the contents in table identical (whether exist the sign of multicast receivers identical in the local network, and port list being identical) of the category-B of identical root RB and category-A multicast forwarding list item, no longer need to issue this category-B multicast forwarding list item; Equally, when based on the contents in table identical (whether exist the sign of multicast receivers identical in the local network, and port list being identical) of the C class of identical root RB and VLAN and category-B multicast forwarding list item, no longer need to issue this C class multicast forwarding list item.Thereby, multiplexing by the multicast forwarding list item, namely, category-B multicast forwarding list item is multiplexing with the category-A multicast forwarding list item identical with its root RB, C class multicast forwarding list item is multiplexing with the category-B multicast forwarding list item identical with its root RB, VLAN, can effectively reduce the number of the multicast forwarding list item that issues, shortened the needed time of multicast forwarding list item that issues, the multicast forwarding list item issues efficient when having improved network topology change, and, shortened that effectively data flow is switched to time on the correct link, also do not caused the multiple of multicast traffic stream simultaneously.
Embodiment one
The delivery method of the multicast forwarding list item of the application's embodiment one can be carried out by any one RB in the TRILL network.As shown in Figure 3, the method may further comprise the steps:
Step S301 calculates the multicast forwarding list item, wherein, comprises in the multicast forwarding list item that calculates: category-A multicast forwarding list item and category-B multicast forwarding list item; Wherein, the form of category-A multicast forwarding list item can be as shown in table 1, and the form of category-B multicast forwarding list item can be as shown in table 2:
Table 1
The NickName of root RB |
The sign that whether has multicast receivers in the local network |
Port list |
Table 2
When network topology changed, the CPU(among the RB was control plane) can calculate the multicast forwarding list item according to the link-state information after the variation of the whole network.
Wherein, category-A multicast forwarding list item is the multicast forwarding list item based on the root RB of multicast tree, and category-B multicast forwarding list item is based on the root RB of multicast tree and the multicast forwarding list item of VLAN.
Step S302 issues the category-A multicast forwarding list item that calculates (issuing i.e. configuration) to datum plane;
When issuing, issue according to prior art and to get final product.Issue in the process actual, the category-A multicast forwarding list item that calculates all directly can be issued to datum plane, also can only issue contents in table the category-A multicast forwarding list item that changes has occured.
Step S303, for each the category-B multicast forwarding list item that calculates, only at the contents in table of the contents in table of this category-B multicast forwarding list item and the first category-A multicast forwarding list item not simultaneously, just this category-B multicast forwarding list item is issued to datum plane, wherein, the first category-A multicast forwarding list item is multicast forwarding list item identical with the root RB of this category-B multicast forwarding list item in the category-A multicast forwarding list item that calculates.
That is, when the contents in table of the contents in table of this category-B multicast forwarding list item and the first category-A multicast forwarding list item is identical, just no longer this category-B multicast forwarding list item is issued to datum plane.
Concrete, whether comprise in the contents in table: whether have the sign of multicast receivers in port list and the local network, therefore, contents in table is identical, that is, port list is identical, and exist the sign of multicast receivers also identical in the local network; Whether contents in table is different, that is, exist in the sign of multicast receivers at least one different in port list and the local network.
For example, a category-B multicast forwarding list item that calculates is as shown in table 3:
Table 3
At this moment, if the multicast forwarding list item identical with the root RB of this category-B multicast forwarding list item in the category-A multicast forwarding list item that calculates, namely the first category-A multicast forwarding list item is as shown in table 4, then, because whether exist the sign of multicast receivers identical in the local network in these two forwarding-table items, be 0; And port list is also identical, is Port1, Port3 and Port12, and therefore, category-B multicast forwarding list item as shown in table 3 does not need to be issued to datum plane.
Table 4
The NickName of root RB |
The sign that whether has multicast receivers in the local network |
Port list |
0x0100 |
0 |
Port1,Port3,Port12 |
Yet, if the multicast forwarding list item identical with the root RB of this category-B multicast forwarding list item in the category-A multicast forwarding list item that calculates, namely the first category-A multicast forwarding list item is shown among the table 5-7 any, then, because whether exist the sign of multicast receivers not identical in the local network in these two forwarding-table items, and/or port list is not identical, therefore, category-B multicast forwarding list item as shown in table 3 need to be issued to datum plane.
Table 5
The NickName of root RB |
The sign that whether has multicast receivers in the local network |
Port list |
0x0100 |
1(represents to exist in the local network multicast receivers) |
Port1,Port3,Port12 |
Table 6
The NickName of root RB |
The sign that whether has multicast receivers in the local network |
Port list |
0x0100 |
0 |
Port5,Port8 |
Table 7
In the technical scheme of the present embodiment, when (whether existing the sign of multicast receivers identical in the local network based on the contents in table of the category-B of identical root RB and category-A multicast forwarding list item is identical, and port list is identical) time, no longer issue this category-B multicast forwarding list item, only not simultaneously, just issue this category-B multicast forwarding list item, thereby, multiplexing by category-B multicast forwarding list item and the category-A multicast forwarding list item identical with its root RB, can effectively reduce the number of the multicast forwarding list item that issues, shortened the needed time of multicast forwarding list item that issues, the multicast forwarding list item issues efficient when having improved network topology change, and, shortened that effectively data flow is switched to time on the correct link, do not cause the multiple of multicast traffic stream simultaneously yet.
Embodiment two
Equally, also C class multicast forwarding list item and the category-B multicast forwarding list item identical with its root RB, VLAN can be carried out multiplexingly, like this, the delivery method of the multicast forwarding list item of the application's embodiment two as shown in Figure 4, may further comprise the steps:
Step S401 calculates the multicast forwarding list item, wherein, comprises in the multicast forwarding list item that calculates: category-A multicast forwarding list item, category-B multicast forwarding list item and C class multicast forwarding list item; Wherein, C class multicast forwarding list item is based on root RB, the VLAN of multicast tree and the multicast forwarding list item of multicast mac address.
During realization, can calculate first category-A multicast forwarding list item, calculate again category-B multicast forwarding list item, calculate at last C class multicast forwarding list item.
Wherein, the form of category-A multicast forwarding list item can be as shown in table 1, and the form of category-B multicast forwarding list item can be as shown in table 2, and the form of C class multicast forwarding list item can be as shown in table 8:
Table 8
Step S402 is issued to datum plane with the category-A multicast forwarding list item that calculates;
Step S403, for each the category-B multicast forwarding list item that calculates, only at the contents in table of the contents in table of this category-B multicast forwarding list item and the first category-A multicast forwarding list item not simultaneously, just this category-B multicast forwarding list item is issued to datum plane, wherein, the first category-A multicast forwarding list item is multicast forwarding list item identical with the root RB of this category-B multicast forwarding list item in the category-A multicast forwarding list item that calculates;
When a category-B multicast forwarding list item need to issue, whether the contents in table that checks its contents in table and the category-A multicast forwarding list item identical with the root RB of this category-B forwarding multicasting list item (will identical category-A multicast forwarding list item is called the first category-A multicast forwarding list item with the root RB of this category-B multicast forwarding list item) is identical, if content is identical, then no longer issue this category-B multicast forwarding list item, corresponding many purposes message is transmitted according to the first category-A multicast forwarding list item.If contents in table is different, then issue this category-B multicast forwarding list item, corresponding many purposes message is transmitted according to this category-B multicast forwarding list item.
Step S404, for each the C class multicast forwarding list item that calculates, only at the contents in table of the contents in table of this C class multicast forwarding list item and the first category-B multicast forwarding list item not simultaneously, just this C class multicast forwarding list item is issued to datum plane, wherein, the first category-B multicast forwarding list item is multicast forwarding list item identical with VLAN with the root RB of this C class multicast forwarding list item in the category-B multicast forwarding list item that calculates.
That is, when the contents in table of the contents in table of this C class multicast forwarding list item and the first category-B multicast forwarding list item is identical, just no longer this C class multicast forwarding list item is issued to datum plane.
For example, a C class multicast forwarding list item that calculates is as shown in table 9:
Table 9
At this moment, if the multicast forwarding list item identical with VLAN with the root RB of this C class multicast forwarding list item in the category-B multicast forwarding list item that calculates, namely the first category-B multicast forwarding list item is as shown in table 10, then, because whether exist the sign of multicast receivers identical in the local network in these two forwarding-table items, be 1; And port list is also identical, is Port2, Port10, and Port14, Port17 and Port29, therefore, C class multicast forwarding list item as shown in table 9 does not just need to be issued to datum plane.
Table 10
Yet, if the multicast forwarding list item identical with VLAN with the root RB of this C class multicast forwarding list item in the category-B multicast forwarding list item that calculates, namely the first category-B multicast forwarding list item is shown among the table 11-13 any, then, because whether exist the sign of multicast receivers not identical in the local network in these two forwarding-table items, and/or port list is not identical, therefore, C class multicast forwarding list item as shown in table 9 need to be issued to datum plane.
Table 11
Table 12
Table 13
By upper, when a C class multicast forwarding list item need to issue, check its contents in table and the category-B multicast forwarding list item identical with root RB, the VLAN of this C class multicast forwarding list item (will with the root RB of this C class multicast forwarding list item and VLAN all identical category-B multicast forwarding list item be called the first category-B multicast forwarding list item) contents in table whether identical.If contents in table is identical, then no longer issue this C class multicast forwarding list item, corresponding many purposes message is transmitted according to the first category-B multicast forwarding list item.If contents in table is different, then issue this C class multicast forwarding list item, corresponding many purposes message is transmitted according to this C class multicast forwarding list item.
When identical based on the contents in table of the category-B of identical root RB and category-A multicast forwarding list item, no longer issue this category-B multicast forwarding list item, only not simultaneously, just issue this category-B multicast forwarding list item; Equally, when identical based on the contents in table of the C class of identical root RB and VLAN and category-B multicast forwarding list item, no longer issue this C class multicast forwarding list item, only not simultaneously, just issue this C class multicast forwarding list item.Thereby, multiplexing by the multicast forwarding list item, namely, category-B multicast forwarding list item is multiplexing with the category-A multicast forwarding list item identical with its root RB, C class multicast forwarding list item is multiplexing with the category-B multicast forwarding list item identical with its root RB, VLAN, can effectively reduce the number of the multicast forwarding list item that issues, shorten the needed time of multicast forwarding list item that issues, the multicast forwarding list item issues efficient when improving network topology change, and, effectively shorten that data flow is switched to time on the correct link, also do not cause the multiple of multicast traffic stream simultaneously.
Method among above-described embodiment one and the embodiment two in the specific implementation, can be control plane by the CPU(among the RB) carry out.Because the processing speed of CPU is very fast, therefore, the speed that CPU calculates the multicast forwarding list item and carries out comparison is very fast, and required time is very short.And when issuing the multicast forwarding list item, owing to being the process that communicates between CPU and the forward process chip (being datum plane or forwarding engine), downloading speed is that the processing speed by CPU and forward process chip decides, and the processing speed of forward process chip is relatively slow, therefore, although having increased, the application carries out the required time of comparison step, but, owing to greatly having reduced the quantity of the multicast forwarding list item that need to issue, and, relatively the required time ratio issues required time and wants much shorter, therefore, when the application still improves network topology change effectively the multicast forwarding list item issue efficient, and, shorten that effectively data flow is switched to time on the correct link.
Embodiment three
For the method among above-described embodiment one and two, the application's embodiment three provides the RB in a kind of TRILL network, and as shown in Figure 5, this RB comprises with lower module: computing module 10, comparison module 20 and issue module 30, wherein:
Computing module 10 is used for calculating the multicast forwarding list item, wherein, comprises in the multicast forwarding list item: category-A multicast forwarding list item and category-B multicast forwarding list item;
Comparison module 20, for each the category-B multicast forwarding list item that calculates for computing module 10, relatively whether the contents in table of this category-B multicast forwarding list item is identical with the contents in table of the first category-A multicast forwarding list item, wherein, the first category-A multicast forwarding list item is multicast forwarding list item identical with the root RB of this category-B multicast forwarding list item in the category-A multicast forwarding list item that calculates;
Issue module 30, the category-A multicast forwarding list item that is used for computing module 10 is calculated is issued to datum plane; Also for each the category-B multicast forwarding list item that calculates for computing module 10, only the comparative result of comparison module 20 be the contents in table of this category-B multicast forwarding list item and the first category-A multicast forwarding list item contents in table not simultaneously, this category-B multicast forwarding list item is issued to datum plane.
In addition, also comprise in the multicast forwarding list item that computing module 10 calculates: C class multicast forwarding list item; Then, comparison module 20, also for each the C class multicast forwarding list item that calculates for computing module 10, relatively whether the contents in table of this C class multicast forwarding list item is identical with the contents in table of the first category-B multicast forwarding list item, wherein, the first category-B multicast forwarding list item is multicast forwarding list item identical with virtual LAN VLAN with the root RB of this C class multicast forwarding list item in the category-B multicast forwarding list item that calculates; Issue module 30, also for each the C class multicast forwarding list item that calculates for computing module 10, only the comparative result of comparison module 20 be the contents in table of this C class multicast forwarding list item and the first category-B multicast forwarding list item contents in table not simultaneously, this C class multicast forwarding list item is issued to datum plane.
Wherein, category-A multicast forwarding list item is the multicast forwarding list item based on the root RB of multicast tree, category-B multicast forwarding list item is based on the root RB of multicast tree and the multicast forwarding list item of VLAN, and C class multicast forwarding list item is based on root RB, the VLAN of multicast tree and the multicast forwarding list item of multicast mac address.Comprise in the contents in table: the sign that whether has multicast receivers in port list and the local network.
To sum up, the above embodiment of the application can reach following technique effect:
When identical based on the contents in table of the category-B of identical root RB and category-A multicast forwarding list item, no longer issue this category-B multicast forwarding list item, only not simultaneously, just issue this category-B multicast forwarding list item; Equally, when identical based on the contents in table of the C class of identical root RB and VLAN and category-B multicast forwarding list item, no longer issue this C class multicast forwarding list item, only not simultaneously, just issue this C class multicast forwarding list item.Thereby, multiplexing by the multicast forwarding list item, namely, category-B multicast forwarding list item is multiplexing with the category-A multicast forwarding list item identical with its root RB, C class multicast forwarding list item is multiplexing with the category-B multicast forwarding list item identical with its root RB, VLAN, can effectively reduce the number of the multicast forwarding list item that issues, shorten the needed time of multicast forwarding list item that issues, the multicast forwarding list item issues efficient when improving network topology change, and, effectively shorten that data flow is switched to time on the correct link, also do not cause the multiple of multicast traffic stream simultaneously.
The above only is the application's preferred embodiment, and is in order to limit the application, not all within the application's spirit and principle, any modification of making, is equal to replacement, improvement etc., all should be included within the scope of the application's protection.