Summary of the invention
In view of this, the invention provides the message forwarding method in a kind of TRILL network, can realize according to the forwarding of label to message, minimizing is searched mac address table, reduces the complexity of message repeating.
The present invention also provides a kind of route-bridge, can realize according to the forwarding of label to message, and minimizing is searched mac address table, reduces the complexity of message repeating.
In order to achieve the above object, the technical scheme of the present invention's proposition is:
A kind of multichain connects the message forwarding method in the transparent interconnection TRILL network, and the method is applied to the entrance RB in the TRILL network, comprising:
Entrance RB is that each local port distributes local unique label, with the MAC Address of local host and send the label that the local port of message distributes for receiving local host and learn in the local mac address list item;
Entrance RB receive by local host send after E-Packeting, in the local mac address table, search MAC Address list item corresponding to target MAC (Media Access Control) address to be E-Packeted, treat the TRILL that comprises entrance RB, entrance label and outlet RB, outlet label that E-Packets according to lookup result and encapsulate, the TRILL message after the encapsulation is sent to outlet RB; Described entrance label is that entrance RB is the label of reception port assignment described to be E-Packeted, and described outlet label is determined by the result that entrance RB searches according to target MAC (Media Access Control) address;
Described outlet label is used to indicate outlet RB and transmits according to the TRILL message of this outlet label after to decapsulation after finishing the decapsulation of described TRILL message.
When described entrance RB receive wait to E-Packet into the known unicast message time, then described outlet label is the switch label type, and described outlet RB transmits according to the message of outlet label after to decapsulation and comprises: the message of outlet RB after with decapsulation transmitted from the port of the corresponding outlet of outlet label RB;
When described entrance RB receive wait to E-Packet into the unknown unicast message time, described outlet label is the clean culture tag types, then described outlet RB transmits according to the message of outlet label after to decapsulation and comprises: the message of outlet RB after with decapsulation carries out target MAC (Media Access Control) address and searches, if find corresponding MAC Address, then from the port repeat of correspondence; If do not find, then carry out local port and flood;
When described entrance RB receive wait to E-Packet into known multicast message the time, described outlet label is the multicast label type, then described outlet RB transmits according to the message of outlet label after to decapsulation and comprises: the message of outlet RB after with decapsulation carries out multicast group to be searched, and according to lookup result message is carried out multicast replication and transmits;
When described entrance RB receive wait to E-Packet into unknown multicast packets or broadcasting packet the time, described outlet label is the broadcasting tag types, and then described outlet RB transmits according to the message of outlet label after to decapsulation and comprises: the message of outlet RB after to decapsulation carries out local port and floods.
When MAC Address was moved, described method also comprised: when entrance RB has detected main frame in this locality and moves into, upgrade the label of the MAC address entries association that this main frame of moving into is corresponding in the local mac address table.
When the reception of entrance RB port cisco unity malfunction described to be E-Packeted, the method further comprises:
Entrance RB sends the label invalid message to other each RB, and described label invalid message comprises the label Nickname of entrance RB and is the described label that receives port assignment to be E-Packeted;
It is the clean culture label with the tag update that comprises in the local mac address table in the MAC Address list item of the label Nickname of identical entrance RB and same label that described label invalid message is used to indicate the RB that receives the label invalid message.
A kind of multichain connects the message forwarding method in the transparent interconnection TRILL network, and the method is applied to the outlet RB in the TRILL network, comprising:
Outlet RB is local unique label for each local port distributes, and the MAC Address of local host and the label that sends the local port distribution of message for receiving local host are learnt in the local mac address list item;
After outlet RB receives the TRILL message that comprises entrance RB, entrance label, outlet RB and outlet label that is sent by entrance RB, carry out the TRILL decapsulation, and carry out the study of internal layer source MAC, internal layer source MAC, entrance RB and entrance label are learnt in the local mac address list item; Described entrance label is that entrance RB is the label of the port assignment of the message that sends of Receiving Host, and described outlet label is the determined label of result that entrance RB searches according to target MAC (Media Access Control) address;
Outlet RB transmits according to the message of outlet label after to decapsulation.
When described outlet label was the switch label type, described outlet RB transmitted according to the message of outlet label after to decapsulation and comprises: the message of outlet RB after with decapsulation transmitted from the port of the corresponding outlet of outlet label RB;
When described outlet label is the clean culture tag types, then described outlet RB transmits according to the message of outlet label after to decapsulation and comprises: the message of outlet RB after with decapsulation carries out target MAC (Media Access Control) address and searches, if find corresponding MAC Address, then from the port repeat of correspondence; If do not find, then carry out local port and flood;
When described outlet label is the multicast label type, then described outlet RB transmits according to the message of outlet label after to decapsulation and comprises: the message of outlet RB after with decapsulation carries out multicast group to be searched, and according to lookup result message is carried out multicast replication and transmits;
When described outlet label is the broadcasting tag types, then described outlet RB transmits according to the message of outlet label after to decapsulation and comprises: the message of outlet RB after to decapsulation carries out local port and floods.
In the situation of MAC Address migration, described outlet RB carries out decapsulation to the TRILL message that receives, and when carrying out the study of internal layer source MAC, the method also comprises:
Change when outlet RB judges the RB in the MAC Address list item that the internal layer source MAC in this TRILL message is corresponding in the local mac address table, then use the RB in the MAC Address list item that this source MAC is corresponding in the entrance RB renewal local mac address table in the message; And/or,
Change when outlet RB judges the label in the MAC Address list item that the internal layer source MAC in this TRILL message is corresponding in the local mac address table, then use the label in the MAC Address list item that this source MAC is corresponding in the entrance tag update local mac address list item in the message.
The method further comprises:
When outlet RB receives the label invalid message of label corresponding to the port of the label Nickname that comprises entrance RB that entrance RB sends and cisco unity malfunction, check the local mac address list item, when the Nickname of RB in the local mac address list item is the label that comprises in the Nickname of entrance RB in the label invalid message and the local mac address list item in the label invalid message, be the clean culture label with the tag update in the local mac address list item.
A kind of multichain connects the route-bridge in the transparent interconnection TRILL network, and this route-bridge is for receiving the entrance route-bridge RB of message, and this route-bridge comprises:
The tag processes unit is used to the local unique label of each port assignment; With the MAC Address of local host and send the label that the local port of message distributes for receiving local host and learn in the local mac address list item;
The message receiving element be used for to receive by waiting of sending of local host and E-Packets;
The message encapsulation unit is used for searching MAC Address list item corresponding to target MAC (Media Access Control) address to be E-Packeted at the local mac address table, treats to E-Packet according to lookup result to comprise the TRILL encapsulation of entrance RB, entrance label and outlet RB, outlet label; Described entrance label is that entrance RB is the label of reception port assignment described to be E-Packeted, and the result that described outlet label is searched according to target MAC (Media Access Control) address determines;
Described packet sending unit is used for the message that described message encapsulation unit carries out after TRILL encapsulates is sent to outlet RB, so that outlet RB transmits message according to purpose MAC and outlet label.
The main frame that receives when described message receiving element sends when waiting to E-Packet into the known unicast message, the outlet label of the TRILL message of described message encapsulation unit encapsulation is the switch label type, and the message after described interactive tag indicates outlet RB with decapsulation is transmitted from the port of the corresponding outlet of outlet label RB;
The main frame that receives when described message receiving element sends when waiting to E-Packet into the unknown unicast message, the outlet label of the TRILL message of described message encapsulation unit encapsulation is the clean culture tag types, message after described clean culture label indicates outlet RB to decapsulation carries out target MAC (Media Access Control) address and searches, if find corresponding MAC Address, then from the port repeat of correspondence; If do not find, then carry out local port and flood;
The main frame that receives when described message receiving element sends when waiting to E-Packet into known multicast message, the outlet label of the TRILL message of described message encapsulation unit encapsulation is the multicast label type, message after described multicast label indicates outlet RB to decapsulation carries out multicast group to be searched, and according to lookup result message is carried out multicast replication and transmits;
The main frame that receives when described message receiving element sends when waiting to E-Packet into unknown multicast packets or broadcasting packet, the outlet label of the TRILL message of described message encapsulation unit encapsulation is the multicast label type, and the message after described multicast label indicates outlet RB to decapsulation carries out local port and floods.
This route-bridge also comprises the tag update unit, when being used for having detected main frame in this locality and moving into, upgrades the label of the MAC address entries association that this main frame of moving into is corresponding in the local mac address table.
This route-bridge also comprises invalid transmitting element, when being used for the port cisco unity malfunction when the reception message of described message receiving element, send the label invalid message to other each RB, the Nickname that described label invalid message is used to indicate each RB that receives label invalid message RB in judging the local mac address list item is the clean culture label with the tag update in the local mac address list item when comprising the label that carries in the label invalid message in the Nickname of the entrance RB that carries in the label invalid message and this local mac address list item.
A kind of multichain connects the route-bridge in the transparent interconnection TRILL network, and this route-bridge is the outlet route-bridge RB that E-Packets, and this route-bridge comprises:
The tag processes unit is used to the local unique label of each port assignment; With the MAC Address of local host and send the label that the local port of message distributes for receiving local host and learn in the local mac address list item;
The message receiving element, be used for to receive by what entrance RB sent and comprise TRILL message after the TRILL encapsulation of entrance RB, entrance label and outlet RB, outlet label by entrance RB, described entrance label is that entrance RB is the label of the port assignment of the message that sends of Receiving Host, and described outlet label is determined by the result that entrance RB searches according to target MAC (Media Access Control) address;
The message decapsulation unit, the message that is used for described message receiving element is received carries out the TRILL decapsulation;
The address learning unit is used for the message after the decapsulation of message decapsulation unit is carried out the study of internal layer source MAC, and internal layer source MAC, entrance RB and entrance label are learnt in the local mac address list item;
The message repeating unit is used for transmitting according to the message of outlet label after to the decapsulation of described message decapsulation unit.
When the outlet label in the TRILL message that described message receiving element receives was the switch label type, described message repeating unit was used for the message after the decapsulation is transmitted from the corresponding port of outlet label;
When the outlet label in the TRILL message that described message receiving element receives is the clean culture tag types, described message repeating unit is used for that the message after the decapsulation is carried out target MAC (Media Access Control) address and searches, if find corresponding MAC Address, then from the port repeat of correspondence; If do not find, then carry out local port and flood;
When the outlet label in the TRILL message that described message receiving element receives was the multicast label type, described message repeating unit is used for that the message after the decapsulation is carried out multicast group to be searched, and according to lookup result message is carried out multicast replication and transmits;
When the outlet label in the TRILL message that described message receiving element receives was the broadcasting tag types, described message repeating unit was used for that the message after the decapsulation is carried out local port and floods.
Described address learning unit also is used for:
When the RB in MAC Address list item corresponding to the internal layer source MAC in judging the local mac address table in this TRILL message changes, use entrance RB in the message to upgrade RB in the MAC Address list item that this source MAC is corresponding in the local mac address table; And/or,
When the label in MAC Address list item corresponding to the internal layer source MAC in judging the local mac address table in this TRILL message changes, use the label in the MAC Address list item that this source MAC is corresponding in the entrance tag update local mac address table in the message.
This route-bridge also comprises invalid receiving element and tag update unit, wherein,
Described invalid receiving element when being used for the port cisco unity malfunction when the reception message of entrance RB, receives the label invalid message by entrance RB transmission, and described label invalid message comprises the Nickname of entrance RB and is the label of this port assignment;
Described tag update unit, be used for after described invalid receiving element receives the label invalid message, check the local mac address table, the Nickname of RB is the clean culture label with the tag update in the local mac address list item when comprising the label that carries in the label invalid message in the Nickname of the entrance RB that carries in the label invalid message and this local mac address list item in judging the local mac address list item.
In sum, message forwarding method in the TRILL network of the present invention, to distribute local unique label by being respectively local port by entrance RB and outlet RB, with the MAC Address of local host and send the label that the local port of message distributes for receiving local host and learn in the local mac address list item, when entrance RB receive by local host send after E-Packeting, in the local mac address table, search MAC Address list item corresponding to target MAC (Media Access Control) address to be E-Packeted, treat to E-Packet according to lookup result and comprise entrance RB, entrance label and outlet RB, the TRILL encapsulation of outlet label, TRILL message after the encapsulation is sent to outlet RB, comprise entrance RB by what outlet RB will receive, the entrance label, the TRILL message of outlet RB and outlet label carries out the TRILL decapsulation, and carry out the internal layer source MAC and learn, with the internal layer source MAC, entrance RB and entrance label are learnt in the local mac address list item, and transmit according to the message of outlet label after to decapsulation.Because the present invention sets up the corresponding relation between the port of label and Receiving Host message, after RB carries out the study of source MAC, can realize the message repeating based on label, thereby having reduced MAC Address searches, therefore, the inventive method has not only been avoided owing to search the time waste problem that large mac address table may cause, but also has reduced the forwarding complexity.
Embodiment
The technical problem that proposes in order to solve the present invention, the specific implementation of scheme of the present invention comprises:
Entrance RB is that each local port distributes local unique label, with the MAC Address of local host and send the label that the local port of message distributes for receiving local host and learn in the local mac address list item; Entrance RB receive by local host send after E-Packeting, in the local mac address table, search MAC Address list item corresponding to target MAC (Media Access Control) address to be E-Packeted, treat the TRILL that comprises entrance RB, entrance label and outlet RB, outlet label that E-Packets according to lookup result and encapsulate, the TRILL message after the encapsulation is sent to outlet RB; Described entrance label is that entrance RB is the label of reception port assignment described to be E-Packeted, and described outlet label is determined by the result that entrance RB searches according to target MAC (Media Access Control) address; Described outlet label is used to indicate outlet RB and transmits according to the TRILL message of this outlet label after to decapsulation after finishing the decapsulation of described TRILL message;
Outlet RB is local unique label for each local port distributes, and the MAC Address of local host and the label that sends the local port distribution of message for receiving local host are learnt in the local mac address list item; After outlet RB receives the TRILL message that comprises entrance RB, entrance label, outlet RB and outlet label that is sent by entrance RB, carry out the TRILL decapsulation, and carry out the study of internal layer source MAC, internal layer source MAC, entrance RB and entrance label are learnt in the local mac address list item; Described entrance label is that entrance RB is the label of the port assignment of the message that sends of Receiving Host, and described outlet label is the determined label of result that entrance RB searches according to target MAC (Media Access Control) address; Outlet RB transmits according to the message of outlet label after to decapsulation.
For making the purpose, technical solutions and advantages of the present invention clearer, the present invention is described in further detail below in conjunction with the accompanying drawings and the specific embodiments.
Fig. 2 is the workflow diagram of message forwarding method in the TRILL network of the present invention, and as shown in Figure 2, this flow process comprises:
Step 201: the definition tag types, each RB in the TRILL network needs to distribute local unique label for each local port.
Among the present invention, when each RB starts, the label that can have uniqueness for local this locality of each port assignment;
The present invention expands the structure of TRILL message, increases the cell of entrance label and outlet label in the TRILL message, and the TRILL message structure example after the expansion as shown in Figure 3.In the preferred embodiment of the present invention, add outlet label E gress Label and entrance label Ingress Label at the exit label Egress Nickname of TRILL message and the back of entry name Ingress Nickname.Inbound port when wherein Ingress Label cell represents that message enters entrance RB can only be switch label; Egress Label cell represents message corresponding outbound port information when sending message from outlet RB, and the information exchange of outbound port is crossed label value and disclosed, and namely can know the type of label according to the span of label, carries out corresponding the processing according to the type of label.
The present invention is divided into five classes according to type of message with label, and has defined value or the span of dissimilar labels, and described five kinds of tag types are defined as follows:
Broadcasting label (for example value is 0xFFFFFFFF): expression outlet RB need to carry out local port at outlet RB and flood when the message that receives with the outlet label of the type, copies sending received message from all local ports;
Multicast label (for example value is 0xFFFFFFFE): expression outlet RB is when the message that receives with the outlet label of the type, need to carry out local Layer 2 Multicast group at outlet RB searches, namely inquire about the multicast mac address table according to the internal layer target MAC (Media Access Control) address of message, according to lookup result the message that receives is carried out multicast replication, from the outbound port transmission of multicast mac address list item appointment;
Clean culture label (for example span is 0xFFFFFFFD): expression outlet RB need to will carry out the two layers of unicast mac address table in this locality at outlet RB and search when the message that receives with the outlet label of the type, transmits according to lookup result;
Switch label (for example span is 1-0x0FFFFFFC): expression outlet RB directly sends from local port corresponding to this outlet label and gets final product when the message that receives with the outlet label of the type.
Hold sticker (0x00FFFF01-0xFFFFFFF0): keep follow-up use.
Step 202: each RB learns locally-attached host MAC address and the corresponding label for the local port distribution in the local mac address list item.
Each RB in the network needs to learn the MAC Address of the main frame that is connected with self, different is, among the present invention, each RB also needs to learn the label corresponding with the local host MAC Address, and the present invention does not limit and adopts which kind of mode or agreement study to comprise the local host MAC Address and be the label of local port distribution.
In one instantiation, RB is behind the message that receives the local host transmission, the label that this host MAC address is corresponding with the port of the message that receives this main frame transmission associates, and this host MAC address and related label are together learnt in the local mac address table.
Step 203: entrance RB receive by main frame send after E-Packeting, entrance RB is according to the purpose MAC in waiting to E-Packet, carrying out purpose MAC in the local mac address table searches, when needs are transmitted by the TRILL tunnel, wait to E-Packet and carry out the TRILL encapsulation what main frame sent according to lookup result.
When the message that main frame is sent at entrance RB encapsulates, entrance label in the TRILL message is that upper label corresponding to port that receives the message of described main frame transmission of entrance RB is that entrance RB is the label of this port assignment, the outlet label is determined according to the result that purpose MAC searches, when finding (representing known) target MAC (Media Access Control) address, described outlet label is the label for the port assignment of the outlet RB that receives message; When searching less than (expression is unknown) target MAC (Media Access Control) address, described outlet label is determined according to the type of message that entrance RB receives.
Based on mentioned above principle, determine that the mode of outlet label is as follows:
If the known unicast message namely finds the unicast message of purpose MAC, then exporting label is the switch label type, namely exports label and is the local label that finds in the MAC Address list item;
If the unknown unicast message does not namely find the unicast message of purpose MAC, then exporting label is the clean culture tag types;
If unknown multicast packets does not namely find the multicast message of purpose MAC, then export label and be the broadcasting tag types;
If known multicast message namely finds the multicast message of purpose MAC, then exporting label is the multicast label type;
If broadcasting packet then exports label and is the broadcasting tag types.
Step 204: the TRILL message after the described encapsulation is carried out the TRILL routing table lookup, according to the route that finds, the TRILL message is sent to outlet RB.
In this step, after the TRILL message that obtains after the described encapsulation carries out route querying encapsulation, send to outlet RB by the TRILL message of middle RB after with described route querying encapsulation.
Step 205: after outlet RB carries out the TRILL decapsulation to the message that receives, carry out the study of internal layer source MAC, being that the entrance label is related with the internal layer source MAC (being the MAC Address of source host) of TRILL message with vpn label, is that Nickname and the entrance label of source host MAC Address, entrance RB learnt in the local mac list item with the internal layer source MAC of the message after the decapsulation.
After execution of step 205, need to message be transmitted according to the outlet label, specifically how to E-Packet and need to decide according to the outlet tag types, when the outlet label is switch label, execution in step 206; When the outlet label is the clean culture label, execution in step 207; When the outlet label is multicast label, execution in step 208; When the outlet label is the broadcasting label, execution in step 209.The below specifies the message repeating process:
Step 206: when outlet label when being switch label, will be carried out finishing current message repeating flow process after message after the source MAC study transmits from the port of the corresponding outlet of outlet label RB by outlet RB.
When the message that receives as described entrance RB is the known unicast message, described outlet label is switch label, be the label of port assignment of the outlet RB of the message that receives, then, described message the forwarding according to the outlet label comprises: the message that described outlet RB will carry out after the source MAC study is transmitted from the port of the corresponding outlet of outlet label RB.
Step 207: when outlet label when being the clean culture label, will carry out message after the source MAC study by outlet RB and carry out target MAC (Media Access Control) address and search, and after according to lookup result message being carried out multicast replication and transmits, finish current message repeating flow process.
When the message that receives as described entrance RB is the unknown unicast message, described outlet label is the clean culture label, then, describedly message is transmitted comprised according to the outlet label: described outlet RB will carry out message after the source MAC study and carry out target MAC (Media Access Control) address and search, if find corresponding target MAC (Media Access Control) address, then from port repeat corresponding to this target MAC (Media Access Control) address; If do not find, then flood.
Step 208: when outlet label when being multicast label, will carry out message after the source MAC study by outlet RB and carry out multicast group and search, and after according to lookup result message being carried out multicast replication and transmits, finish current message repeating flow process.
When the message that receives as described entrance RB is known multicast message, described outlet label is multicast label, then, describedly message is transmitted comprised according to the outlet label: described outlet RB will carry out message after the source MAC study and carry out multicast group and search, and according to lookup result message be carried out multicast replication and transmit.
Step 209: when the outlet label is the broadcasting label, after the port that will carry out the corresponding outlet of the label of message in MAC Address list item corresponding to the target MAC (Media Access Control) address that the finds RB after the source MAC study by outlet RB floods, finish current message repeating flow process.
When the message that receives as described entrance RB is unknown multicast packets or broadcasting packet, described outlet label is the broadcasting label, then, described message the forwarding according to the outlet label comprises: the message that described outlet RB will carry out after the source MAC study floods from the port that exports the corresponding outlet of label RB, also namely from all of the port message is copied forwarding.
Based on the message forwarding method in the above-mentioned TRILL network, the present invention also further discloses following when the MAC Address migration occurs, the RB in the datum plane real-time update mac address table and the method for label information:
After entrance RB detects this locality the main frame access of migration is arranged, upgrade related label in list item corresponding to the MAC Address of this main frame in the local mac address table.
Outlet RB in the TRILL tunnel, carry out decapsulation to the TRILL message and obtain making the following judgment and operating when carrying out the mac learning of internal layer source after the original Ether frame:
If the RB that this source MAC originally in the mac address table is corresponding changes, then use the entrance RB in the message to upgrade the RB in the corresponding list item of this source MAC in the mac address table; And/or
If label variations corresponding to this source MAC originally in the mac address table then used the label in the corresponding list item of this source MAC in the entrance tag update mac address table in the message.
It should be noted that also when the local port cisco unity malfunction of RB or other reasons cause can not the transceiving data message time, the present invention also further provides following handling process:
To other all RB announcement label invalid messages, message comprises label Nickname and the contents such as label corresponding to this port of this RB by the IGP agreement for step S1, this RB.
When other RB in step S2, the TRILL network receive this announcement, search each list item of local mac address table, if the label Nickname of the RB that the MAC Address list item is corresponding is the Nickname of the RB in the invalid message, and the label that this MAC Address list item is corresponding is the label in the invalid message, and then the tag update with the correspondence in the mac address table is the clean culture label.Above-mentioned IGP agreement is TRILL-ESADI.
So far, namely finished the whole workflow of message forwarding method in the TRILL network of the present invention.
Based on said method, Fig. 4 has provided the structure of route-bridge embodiment one of the present invention, and as shown in Figure 4, this route-bridge is for receiving the entrance RB of message, and this route-bridge comprises:
Tag processes unit 41 is used to the local unique label of each port assignment; With the MAC Address of local host and send the label that the local port of message distributes for receiving local host and learn in the local mac address list item;
Message receiving element 42 be used for to receive by waiting of sending of local host and E-Packets;
Message encapsulation unit 43, be used in the tag processes unit 41 study to the local mac address tables search MAC Address list item corresponding to target MAC (Media Access Control) address to be E-Packeted, wait to E-Packet and comprise the TRILL encapsulation of entrance RB, entrance label and outlet RB, outlet label what message receiving element 42 received according to lookup result; Described entrance label is that entrance RB is the label of reception port assignment described to be E-Packeted, and the result that described outlet label is searched according to target MAC (Media Access Control) address determines;
Described packet sending unit is used for the message that described message encapsulation unit carries out after TRILL encapsulates is sent to outlet RB, so that outlet RB transmits message according to purpose MAC and outlet label.
The main frame that receives when described message receiving element 42 sends when waiting to E-Packet into the known unicast message, the outlet label of the TRILL message of described message encapsulation unit 43 encapsulation is the switch label type, and the message after described interactive tag indicates outlet RB with decapsulation is transmitted from the port of the corresponding outlet of outlet label RB;
The main frame that receives when described message receiving element 42 sends when waiting to E-Packet into the unknown unicast message, the outlet label of the TRILL message of described message encapsulation unit 43 encapsulation is the clean culture tag types, message after described clean culture label indicates outlet RB to decapsulation carries out target MAC (Media Access Control) address and searches, if find corresponding MAC Address, then from the port repeat of correspondence; If do not find, then carry out local port and flood;
The main frame that receives when described message receiving element 42 sends when waiting to E-Packet into known multicast message, the outlet label of the TRILL message of described message encapsulation unit 43 encapsulation is the multicast label type, message after described multicast label indicates outlet RB to decapsulation carries out multicast group to be searched, and according to lookup result message is carried out multicast replication and transmits;
The main frame that receives when described message receiving element 42 sends when waiting to E-Packet into unknown multicast packets or broadcasting packet, the outlet label of the TRILL message of described message encapsulation unit 43 encapsulation is the multicast label type, and the message after described multicast label indicates outlet RB to decapsulation carries out local port and floods.
Further, this route-bridge also comprises tag update unit 45, when being used for having detected main frame in this locality and moving into, upgrades the label of the MAC address entries association that this main frame of moving into is corresponding in the local mac address table of tag processes unit 41 study.
Further, this route-bridge also comprises invalid transmitting element 46, when being used for the port cisco unity malfunction when the reception message of described message receiving element 42, send the label invalid message to other each RB, described label invalid message is used to indicate the Nickname of each RB that receives label invalid message RB in judging the local mac address list item and is the Nickname of the entrance RB that carries in the label invalid message, and when comprising the label that carries in the label invalid message in this local mac address list item, be the clean culture label with the tag update in the local mac address list item of tag processes unit 41 study.
Similarly, based on said method, Fig. 5 has provided the structure of route-bridge embodiment two of the present invention, and as shown in Figure 5, this route-bridge is the outlet RB that E-Packets, and comprising:
Tag processes unit 51 is used to the local unique label of each port assignment; With the MAC Address of local host and send the label that the local port of message distributes for receiving local host and learn in the local mac address list item;
Message receiving element 52, be used for to receive by what entrance RB sent and comprise TRILL message after the TRILL encapsulation of entrance RB, entrance label and outlet RB, outlet label by entrance RB, described entrance label is that entrance RB is the label of the port assignment of the message that sends of Receiving Host, and described outlet label is determined by the result that entrance RB searches according to target MAC (Media Access Control) address;
Message decapsulation unit 53, the message that is used for described message receiving element 52 is received carries out the TRILL decapsulation;
Address learning unit 54 is used for the message after 53 decapsulations of message decapsulation unit is carried out the study of internal layer source MAC, and internal layer source MAC, entrance RB and entrance label are learnt in the local mac address list item;
Message repeating unit 55 is used for transmitting according to the message of outlet label after to described message decapsulation unit 53 decapsulations.
When the outlet label in the TRILL message that described message receiving element 52 receives was the switch label type, described message repeating unit 55 was used for the message after 53 decapsulations of message decapsulation unit is transmitted from the corresponding port of outlet label that message receiving element 52 receives;
When the outlet label in the TRILL message that described message receiving element 52 receives is the clean culture tag types, described message repeating unit 55 is used for that the message after 53 decapsulations of message decapsulation unit is carried out target MAC (Media Access Control) address and searches, if find corresponding MAC Address, then from the port repeat of correspondence; If do not find, then carry out local port and flood;
When the outlet label in the TRILL message that described message receiving element 52 receives is the multicast label type, described message repeating unit 55 is used for that the message after 53 decapsulations of message decapsulation unit is carried out multicast group to be searched, and according to lookup result message is carried out multicast replication and transmits;
When the outlet label in the TRILL message that described message receiving element 52 receives was the broadcasting tag types, described message repeating unit 55 was used for that the message after 53 decapsulations of message decapsulation unit is carried out local port and floods.
Further, described address learning unit 54 also is used for:
When the RB in MAC Address list item corresponding to the internal layer source MAC in judging the local mac address table in this TRILL message changes, use entrance RB in the message to upgrade RB in the MAC Address list item that this source MAC is corresponding in the local mac address table; And/or,
When the label in MAC Address list item corresponding to the internal layer source MAC in judging the local mac address table in this TRILL message changes, use the label in the MAC Address list item that this source MAC is corresponding in the entrance tag update local mac address table in the message.
Further, this route-bridge also comprises invalid receiving element 56 and tag update unit 57, wherein,
Described invalid receiving element 56 when being used for the port cisco unity malfunction when the reception message of entrance RB, receives the label invalid message by entrance RB transmission, and described label invalid message comprises the Nickname of entrance RB and is the label of this port assignment;
Described tag update unit 57, be used for after described invalid receiving element 56 receives the label invalid message, check the local mac address table, the Nickname of RB is the clean culture label with the tag update in the local mac address list item of tag processes unit 51 study when comprising the label that carries in the label invalid message in the Nickname of the entrance RB that carries in the label invalid message and this local mac address list item in judging the local mac address list item.
So far, namely obtained route-bridge in the TRILL network of the present invention.The workflow of Fig. 4 and the described route-bridge of Fig. 5 specifically can referring to the workflow of the described method of Fig. 2, repeat no more here.
In a word, message forwarding method in the TRILL network of the present invention, distribute local unique label by being respectively local port by entrance RB and outlet RB, with the MAC Address of local host and send the label that the local port of message distributes for receiving local host and learn in the local mac address list item, when entrance RB receive by local host send after E-Packeting, in the local mac address table, search MAC Address list item corresponding to target MAC (Media Access Control) address to be E-Packeted, treat to E-Packet according to lookup result and comprise entrance RB, entrance label and outlet RB, the TRILL encapsulation of outlet label, TRILL message after the encapsulation is sent to outlet RB, comprise entrance RB by what outlet RB will receive, the entrance label, the TRILL message of outlet RB and outlet label carries out the TRILL decapsulation, and carry out the internal layer source MAC and learn, with the internal layer source MAC, entrance RB and entrance label are learnt in the local mac address list item, and transmit according to the message of outlet label after to decapsulation.Because the present invention sets up the corresponding relation between the port of label and Receiving Host message, after RB carries out the study of source MAC, can realize the message repeating based on label, thereby having reduced MAC Address searches, therefore, the inventive method has not only been avoided owing to search the time waste problem that large mac address table may cause, but also has reduced the forwarding complexity.
Further, when MAC Address is moved, the label of the inventive method MAC address entries association that this main frame of moving into is corresponding in entrance RB renewal local mac address table, and when outlet RB judges that RB in the MAC Address list item that the internal layer source MAC in this TRILL message is corresponding in the local mac address table or label change, use RB or label in the MAC Address list item that this source MAC is corresponding in entrance RB in the message or the entrance tag update local mac address table, the problem that also can not normally transmit with regard to having solved message that the MAC Address migration may cause.
At last, when entrance RB receives port cisco unity malfunction to be E-Packeted, the inventive method is by being sent the Nickname that comprises entrance RB and be the label invalid information of the label that receives port assignment to be E-Packeted to other each RB by this entrance RB, and then each receives that the RB of label invalid information checks the local mac address table, when the Nickname of RB in the MAC Address list item is the Nickname of entrance RB in the label invalid message, and when the acceptance of the bid of MAC Address list item is signed as the label in the label invalid message, be the clean culture label with the tag update in the MAC Address list item, the also problem with regard to having avoided can not normally transmitting owing to the message that the port cisco unity malfunction that receives message brings.
The above only is preferred embodiment of the present invention, and is in order to limit the present invention, within the spirit and principles in the present invention not all, any modification of making, is equal to replacement, improvement etc., all should be included within the scope of protection of the invention.