Embodiment
The embodiment of the invention provides a kind of message transmitting method, system and forward node; Forward node receives the fault notification message that malfunctioning node sends; Said malfunctioning node is the next-hop node of said forward node, and message according to pre-configured subsequent use forwarding-table item, is transferred to the next-hop node of said malfunctioning node through the protection node of said malfunctioning node; Realized sectionalised protection thus, the flexibility of message transmissions when having improved tunnel failure to forward node in the tunnel.
Need to prove; The embodiment that the protection node of the present invention through malfunctioning node carries out message transmissions is different with the heavy-route technology; The heavy-route technology is mainly used in the IP network; In the IP network each is jumped routing node according to Routing Protocol dynamic-configuration routing table, and dynamically seeks next according to this routing table and jump routing node.Specifically; Each routing node in the IP network on from source node to the destination node link; All according to Routing Protocol dynamic-configuration routing table, suppose that current routing node has a plurality of next jumping routing node, then next in this routing table jumped the sequence arrangement of routing node according to priority; When this current routing node broke down, next jumped routing node according to the priority orders Dynamic Selection in the routing table.
Different with the heavy-route technology is; Message transmissions embodiment of the present invention is mainly used in the traditional ethernet; Traditional ethernet adopts the mode of static configuration; Each is jumped to preserve on routing node by pre-configured next of network manager and jumps routing node, and according to the result transmission message of this static configuration.Therefore, pre-configured subsequent use forwarding-table item disposes through static mode by the network manager on the forward node among the message transmissions embodiment of the present invention.
In order to make those skilled in the art person understand the technical scheme that the embodiment of the invention provides better, the technical scheme work that the embodiment of the invention provides is further specified below in conjunction with accompanying drawing and embodiment.
A kind of embodiment flow process of message transmitting method of the present invention is as shown in Figure 2:
Block diagram 201: forward node receives the fault notification message that malfunctioning node sends.
Wherein, Forward node is the node except that source node and destination node on the ethernet link tunnel; And forward node belongs to the different nodes of transmitting on the layer in the same Ethernet tunnel with malfunctioning node, and malfunctioning node is the next-hop node of this forward node usually.
Block diagram 202: message according to pre-configured subsequent use forwarding-table item, is transferred to the next-hop node of this malfunctioning node through the protection node of this malfunctioning node.
Concrete, pre-configured MAC transmits on forward node, comprises during this MAC transmits mainly use forwarding-table item, and message transmits on the tunnel the master with forwarding-table item according to main under the normal condition; Also comprise at least one subsequent use forwarding-table item during this MAC transmits, message is according to a subsequent use forwarding-table item under the failure condition, and the protection node through malfunctioning node and protection link transmission are to main next-hop node with this malfunctioning node on the tunnel.
Wherein, main with comprising source node address, destination node address, the VLAN sign that is used for message transmissions in forwarding-table item and the subsequent use forwarding-table item.
Wherein, malfunctioning node and its protection node are the same node of transmitting on the layer in the Ethernet.
The another kind of embodiment flow process of message transmitting method of the present invention is as shown in Figure 3, and certain node that this embodiment shows in the Ethernet breaks down, the process of the message transmissions when causing the Ethernet tunnel failure:
Block diagram 301: pre-configured MAC transmits on forward node.
The MAC that disposes on the forward node transmits and is used for behind the message that receives hop node transmission on it, transmitting message transmission to next-hop node according to this MAC.Disposed a master during the MAC of the embodiment of the invention transmits and used forwarding-table item, this master is with the source node address that comprises message transmissions in the forwarding-table item, destination node address and VLAN sign, this main with forwarding-table item to next-hop node that should forward node; Also disposed at least one subsequent use forwarding-table item during MAC transmits, also comprised source node address, destination node address and the VLAN sign of message transmissions in the subsequent use forwarding-table item, subsequent use forwarding-table item is to protection node that should the forward node next-hop node.The protection node of the next-hop node of forward node and this next-hop node is arranged on the same forwarding layer of Ethernet.
The message that transmits in the embodiment of the invention adopts the MAC-in-MAC encapsulation, in heading, inserts source node address, destination node address and VLAN sign during encapsulation.When message transmissions arrives each forward node, transmit this message according to the information in the heading.
Block diagram 302: judge whether detect malfunctioning node on the Ethernet tunnel, if then carry out block diagram 303; Otherwise, carry out block diagram 308.
Comprise several forward node on the Ethernet tunnel of setting up between source node and the destination node, forward node lays respectively at forwarding layers different in the Ethernet, and message is sent to destination node through the transmission layer by layer of forward node from source node.But, when any forward node in the above-mentioned forward node breaks down, all will cause the Ethernet tunnel fails, make message transmissions interrupt, whether the forward node that therefore needs to detect on the Ethernet tunnel in real time breaks down.
Usually whether break down in order to detect forward node; Periodically send the connectedness that CCM message is checked the tunnel by destination node to source node; When source node is not received CCM message in predetermined period, then confirm to detect malfunctioning node, otherwise explanation Ethernet tunnel is normal.
Block diagram 303: malfunctioning node redirect on it is sent out node and is sent fault notification message.
Node is sent out in the redirect on it of malfunctioning node reverse transfer fault notification message, and this fault notification message is used to inform the position of malfunctioning node, further can also be used to inform the particular type of fault.
Block diagram 304: this forward node is searched the subsequent use forwarding-table item of MAC in transmitting.
After forward node receives fault notification message; Confirm the position of malfunctioning node according to the information in this message; And search pre-configured MAC and transmit, because the ethernet link at current malfunctioning node place is unavailable, so the master of message in can't transmitting according to MAC again transmits with list item; And need search the subsequent use forwarding-table item of MAC in transmitting, and carry out message transmissions through this subsequent use forwarding-table item.
When in the MAC of forward node transmits, only having disposed a subsequent use forwarding-table item, search this subsequent use forwarding-table item and get final product; When in the MAC of forward node transmits, having disposed a plurality of subsequent use forwarding-table item, can therefrom select a subsequent use forwarding-table item according to the priority that is provided with in advance.
Block diagram 305: should be set to effectively by subsequent use forwarding-table item, and lead be set to forwarding-table item invalid.
Owing to can't carry out message transmissions with forwarding-table item through main, therefore lead being set to invalidly with forwarding-table item, a subsequent use forwarding-table item that finds simultaneously is set to effectively.
Block diagram 306: the protection node that message is transferred to this malfunctioning node according to this subsequent use forwarding-table item.
Forwarding port in the subsequent use forwarding-table item is corresponding to the protection node of malfunctioning node, and message is transferred to this protection node according to this subsequent use forwarding-table item.
Block diagram 307: the protection node is sent out node with next redirect of this message transmissions to this malfunctioning node, finishes current flow process.
The protection node is a forward node in the Ethernet, comprises source node address, destination node address and VLAN sign in the forwarding-table item that disposes on this protection node, and this forwarding-table item is corresponding to the next-hop node of malfunctioning node.The one section link that is equivalent to form between the last hop node, protection node, next-hop node of malfunctioning node is used to protect this malfunctioning node and the link between a hop node and the next-hop node on it.
Block diagram 308: message is transmitted on leading with the tunnel according to leading with forwarding-table item, finish current flow process.
Message transmissions is behind the next-hop node of malfunctioning node, and this next-hop node and follow-up forward node still transmit this message according to the main of configuration with forwarding-table item on the Ethernet tunnel that does not break down, until with this message transmissions to destination node.
Another flow process of message transmitting method of the present invention is as shown in Figure 4, and this embodiment shows the message transmissions flow process when detecting the Ethernet tunnel failure to fault recovery:
Block diagram 401: pre-configured MAC transmits on forward node.
The MAC that disposes on the forward node transmits and is used for behind the message that receives hop node transmission on it, transmitting message transmission to next-hop node according to this MAC.In MAC transmits, disposed a master and used forwarding-table item, this master is with the source node address that comprises message transmissions in the forwarding-table item, destination node address and VLAN sign, this main with forwarding-table item to next-hop node that should forward node; Also disposed at least one subsequent use forwarding-table item during MAC transmits, also comprised source node address, destination node address and the VLAN sign of message transmissions in the subsequent use forwarding-table item, subsequent use forwarding-table item is to protection node that should the forward node next-hop node.The protection node of the next-hop node of forward node and this next-hop node is arranged on the same forwarding layer of Ethernet.
Block diagram 402: judge whether detect malfunctioning node on the Ethernet tunnel, if then carry out block diagram 403; Otherwise, carry out block diagram 408.
Comprise several forward node on the Ethernet tunnel of setting up between source node and the destination node; When any forward node in the above-mentioned forward node breaks down; All will cause the Ethernet tunnel fails; Make message transmissions interrupt, therefore determine whether to detect malfunctioning node through periodically sending CCM message to source node by destination node.
Block diagram 403: malfunctioning node redirect on it is sent out node and is sent fault notification message.
Block diagram 404: the subsequent use forwarding-table item during this forward node is transmitted according to MAC, with the protection node of message transmissions to this malfunctioning node.
After forward node receives fault notification message; Confirm the position of malfunctioning node according to the information in this message; And search pre-configured MAC and transmit, because the ethernet link at current malfunctioning node place is unavailable, so the master of message in can't transmitting according to MAC again transmits with list item; And need search the subsequent use forwarding-table item of MAC in transmitting, and carry out message transmissions through this subsequent use forwarding-table item.
Owing to can't carry out message transmissions with forwarding-table item through main, therefore lead being set to invalidly with forwarding-table item, a subsequent use forwarding-table item that finds simultaneously is set to effectively.Forwarding port in the subsequent use forwarding-table item is corresponding to the protection node of malfunctioning node, and message is transferred to this protection node according to this subsequent use forwarding-table item.
Block diagram 405: the protection node is sent out node with next redirect of this message transmissions to this malfunctioning node.
Comprise source node address, destination node address and VLAN sign in the forwarding-table item that disposes on the protection node, this forwarding-table item is corresponding to the next-hop node of malfunctioning node.
Block diagram 406: whether the fault of judging this malfunctioning node is recovered, if then carry out block diagram 407; Otherwise, return block diagram 404.
Block diagram 407: forward node is led with forwarding-table item and is set to effectively, and subsequent use forwarding-table item be set to invalid.
Because detecting the fault of malfunctioning node recovers; Therefore malfunctioning node redirect on it is sent out node and is sent fault recovery message; A last redirect that receives this fault recovery message is sent out node and is searched MAC and transmit; Master in then MAC being transmitted is set to effectively from invalid with forwarding-table item, and has been set to effective subsequent use forwarding-table item and is set to invalidly, makes message to transmit with forwarding-table item according to main again.
Block diagram 408: message is transmitted on leading with the tunnel according to leading with forwarding-table item, finish current flow process.
When source node resend message, because main all normal with all forward node on the tunnel, so message mainly transmitted on the tunnel the master with forwarding-table item according to what dispose on each forward node, until with message transmissions to destination node.
A kind of Ethernet tunnel structure sketch map in conjunction with the invention described above method embodiment is as shown in Figure 5: wherein PE1 is source device (MAC Address is B-MAC1); PE2 is destination device (MAC Address is B-MAC2); P1 to P6 is the intermediate equipment that is used to E-Packet, and the tunnel that between PE1 and PE2, is used for message transmissions is for to begin from PE1, through the forward-path of P1, P2, P3 to PE2; On P1 to P6, having disposed MAC respectively transmits; Supposing that this MAC comprises a master with forwarding-table item and a subsequent use forwarding-table item in transmitting, is example with P1, and the MAC of its configuration transmits as shown in table 1 below:
Table 1
The list item title |
Source node address |
The destination node address |
The VLAN sign |
Corresponding node |
The main forwarding-table item of using |
B-MAC1 |
B-MAC2 |
B-VLAN1 |
P2 |
Subsequent use forwarding-table item |
B-MAC1 |
B-MAC2 |
B-VLAN1 |
P5 |
Can know in conjunction with Fig. 5 and last table 1, main with forwarding-table item corresponding to P2, subsequent use forwarding-table item is corresponding to P5, P5 is the protection equipment of P2, and P5 and P2 are two layers of forwarding unit in the Ethernet.Breaking down with P2 below is example, describes the transmission course of message in detail:
Tunnel between PE1 and PE2 just often, the master that each intermediate equipment disposes is set to effectively with forwarding-table item, it is invalid that subsequent use forwarding-table item is set to, message begins from PE1 according to forward-path, transfers to PE2 through behind the P1, P2, P3.When detecting P2 and break down; P2 sends fault notification message to P1, and P1 receives and searches MAC as shown in table 1 after this message and transmit, and the master of this MAC in transmitting be set to forwarding-table item invalid; Subsequent use simultaneously forwarding-table item is set to effectively; After subsequent packet was sent to P1 from PE1, the forward node that P1 is corresponding according to subsequent use forwarding-table item was forwarded to message on the P5; P5 is forwarded to P3 with forwarding-table item with message according to the master of its configuration, with forwarding-table item message is forwarded to PE2 according to main by P3 then.
After detecting the P2 fault recovery; Send fault recovery message by P2 to P1; Master in the P1 table 1 is set to effectively with forwarding-table item; It is invalid that subsequent use forwarding-table item is set to, and subsequent packet begins from PE1 with forwarding-table item according to the master who disposes on each intermediate equipment, transfers to PE2 from P1, P2, P3 successively.
Corresponding with message transmitting method embodiment of the present invention, the invention also discloses a kind of embodiment of message transfer system.
A kind of embodiment block diagram of message transfer system of the present invention is as shown in Figure 6.
This system comprises: forward node 610, malfunctioning node 620 and protection node 630.
Wherein, malfunctioning node 620 is used on it redirect and sends out node 610 and send fault notification message.Forward node 610 comprises receiving element 611, is used to receive the fault notification message that said malfunctioning node 620 sends; Transmission unit 612 is used for message transferring to the protection node 630 of said malfunctioning node 620 according to pre-configured subsequent use forwarding-table item.Said protection node 630 is used for node is sent out in next redirect of said message transmissions to said malfunctioning node 620.
The another kind of embodiment block diagram of message transfer system of the present invention is as shown in Figure 7.
This system comprises: forward node 710, malfunctioning node 720 and protection node 730.
Wherein, forward node 710 comprises: dispensing unit 711, and be used for pre-configured MAC and transmit, comprise main during said MAC transmits with forwarding-table item and at least one subsequent use forwarding-table item; Receiving element 712 is used to receive the fault notification message that said malfunctioning node 720 sends, and said malfunctioning node 720 is the next-hop node of said forward node 710; Unit 713 is set, is used for said master and is set to invalidly with forwarding-table item, and a said subsequent use forwarding-table item is set to effectively; Transmission unit 714 is used for message transferring to the protection node 730 of said malfunctioning node 720 according to pre-configured subsequent use forwarding-table item; Judging unit 715; When being used to receive fault recovery message; Judge the fault recovery of said malfunctioning node 720; Be provided with unit 713 and be further used for said master and be set to effectively with forwarding-table item this moment, and said subsequent use forwarding-table item is set to invalidly, and transmission unit 714 is further used for said message is transmitted with forwarding-table item according to said master.
Corresponding with message transmitting method of the present invention and system implementation example, the present invention also provides a kind of embodiment of forward node.
A kind of embodiment block diagram of forward node of the present invention is as shown in Figure 8, and this forward node comprises: receiving element 810 and transmission unit 820.
Wherein, receiving element 810 is used to receive the fault notification message that malfunctioning node sends, and said malfunctioning node is the next-hop node of said forward node; Transmission unit 820 is used for message transferring to the protection node of said malfunctioning node according to pre-configured subsequent use forwarding-table item.
The another kind of embodiment block diagram of forward node of the present invention is as shown in Figure 9, and this forward node comprises: dispensing unit 910, receiving element 920, unit 930, transmission unit 940 and judging unit 950 are set.
Wherein, dispensing unit 910 is used for pre-configured MAC to be transmitted, and comprises main with forwarding-table item and at least one subsequent use forwarding-table item during said MAC transmits; Receiving element 920 is used to receive the fault notification message that said malfunctioning node sends, and said malfunctioning node is the next-hop node of said forward node; Unit 930 is set is used for said master and is set to invalidly with forwarding-table item, and a said subsequent use forwarding-table item is set to effectively; Transmission unit 940 is used for message transferring to the protection node of said malfunctioning node according to pre-configured subsequent use forwarding-table item; When judging unit 950 is used to receive fault recovery message, judge the fault recovery of said malfunctioning node; When said malfunctioning node fault recovery, the said unit 930 that is provided with is further used for said master and is set to effectively with forwarding-table item, and said subsequent use forwarding-table item be set to invalid; Said transmission unit 940 is further used for, and said message is transmitted with forwarding-table item according to said master.
Description through the embodiment of the invention can be known; When the application embodiment of the invention is carried out message transmissions; Through being forward node configuration protection node, make any forward node break down to cause when the Ethernet tunnel transmission is interrupted that the link of a last hop node, protection node and next-hop node formation that can both be through this forward node transmitted message; Realized sectionalised protection thus, the flexibility of message transmissions when having improved tunnel failure to forward node in the tunnel; Owing to only malfunctioning node is protected, so the non-malfunctioning node on the tunnel is still available, has improved the availability of the link circuit resource in the network.
One of ordinary skill in the art will appreciate that all or part of step that realizes in the foregoing description method is to instruct relevant hardware to accomplish through program; Described program can be stored in the computer read/write memory medium; This program is when carrying out; Comprise the steps: that forward node receives the fault notification message that malfunctioning node sends, said malfunctioning node is the next-hop node of said forward node; Message according to pre-configured subsequent use forwarding-table item, is transferred to the next-hop node of said malfunctioning node through the protection node of said malfunctioning node.Described storage medium, as: ROM/RAM, magnetic disc, CD etc.
Though described the present invention through embodiment, those of ordinary skills know, the present invention has many distortion and variation and do not break away from spirit of the present invention, hope that appended claim comprises these distortion and variation and do not break away from spirit of the present invention.