CN102307150B - IRF flow protection method and apparatus thereof - Google Patents

IRF flow protection method and apparatus thereof Download PDF

Info

Publication number
CN102307150B
CN102307150B CN201110290467.0A CN201110290467A CN102307150B CN 102307150 B CN102307150 B CN 102307150B CN 201110290467 A CN201110290467 A CN 201110290467A CN 102307150 B CN102307150 B CN 102307150B
Authority
CN
China
Prior art keywords
stack member
member apparatus
protection path
message
irf
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201110290467.0A
Other languages
Chinese (zh)
Other versions
CN102307150A (en
Inventor
宋小恒
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
New H3C Technologies Co Ltd
Original Assignee
Hangzhou H3C Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hangzhou H3C Technologies Co Ltd filed Critical Hangzhou H3C Technologies Co Ltd
Priority to CN201110290467.0A priority Critical patent/CN102307150B/en
Publication of CN102307150A publication Critical patent/CN102307150A/en
Application granted granted Critical
Publication of CN102307150B publication Critical patent/CN102307150B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention provides a flow protection method and an apparatus thereof for an intelligent resilient framework (IRF). The method comprises the following steps that: when topology change event happens, a protection path forwarding function is enabled; when it is needed to send a message, if the protection path forwarding function is enabled, tunnel encapsulation is carried out on the message and then the message is sent on the protection path; when the protection path receives the message that has been processed by the tunnel encapsulation, if objective stack member equipment of the message is current stack member equipment, the message is processed normally; if not, the message is forwarded on the protection path. According to the invention, flow losses can be reduced when the topology changes.

Description

A kind of IRF flow rate protecting method and device
Technical field
The present invention relates to Stack Technology field, particularly a kind of IRF flow rate protecting method and device.
Background technology
IRF (Intelligent Resilient Framework, intelligent elastic framework) is that multiple devices are linked together by IRF port, carries out after necessary configuration, is virtualized into a virtual unit.IRF technology can be gathered hardware resource and the software disposal ability of multiple devices, realizes collaborative work, the unified management of multiple devices and uninterruptedly safeguards.
Each stack member apparatus in IRF system by and the stack member apparatus of own direct neighbor between mutual hello packet collect the topological relation of whole IRF, each stack member apparatus is in the known topology information of local record, and carries out following operation:
(1) known topology information is periodically sent from the IRF port of UP state;
(2) receiving after the topology information of neighbours' stack member apparatus, upgrading the topology information of local record;
(3) topology information oneself being recorded is synchronized on local other board, to keep the consistent of local all veneer upper topology information.
After above-mentioned flow process, all stack member apparatus all can be collected complete topology information, and elect the main frame equipment of IRF system.
In the time that changing appears in certain the stacking link in IRF system (can be link failure and link-recovery), each stack member apparatus response change in topology event, upgrades forwarding information table, thereby adjusts the forward-path of message in IRF system.
Referring to Fig. 1, Fig. 1 is typical IRF system schematic, wherein comprises stack member apparatus R1, R2, R3, R4.It is stacking that stack member apparatus R1-R4 forms annular, and network topology is R1-R2-R3-R4-R1.Stacking when normal, the message entering from R1 will arrive R3, and when R3 is forwarded to network, the forward-path of IRF internal system is R1-R2-R3.
Referring to Fig. 2, Fig. 2 is IRF link failure schematic diagram in the system of IRF shown in Fig. 1, as shown in Figure 2, the IRF link failure between R2 and R3, will trigger the change in topology event of IRF system, now each stack member apparatus response change in topology event, carry out respectively topological computing, refresh and transmit, form chain topology, R1 changes R1-R4-R3 into the topological path of R3, and message forwards the topological path along new.But, each stack member apparatus response change in topology event and the speed of transmitting according to newly refreshing the topology are inconsistent, for example, in the time that R2 finds to arrive the forward-path fault of R3, the source device R1 of message not yet finds change in topology, and message will still be forwarded to R2 along former topological path, if the topology of R2 changes, will abandon this message, until the topology of all stack member apparatus in IRF system is all consistent, and forward-path is all arranged to when consistent normally to E-Packet.
Same, in the time of IRF link-recovery between R2 in Fig. 2 and R3, because each stack member apparatus is inconsistent to the response speed of change in topology event, forward-path can not arrange in system simultaneously, for example, R4 has completed topological path setting, do not allow the message repeating of sending from R1 to R3, if and now R1 does not complete topological path setting, will object stack member apparatus be R3 message sends to R4, at this moment, R4 will abandon this message, thereby, when IRF link-recovery, also may lose message.
Visible, while there is change in topology in IRF system, because the response speed of each stack member apparatus is inconsistent, can cause traffic loss.
Summary of the invention
In view of this, the object of the present invention is to provide a kind of IRF flow rate protecting method, the method can reduce traffic loss in the time of change in topology.
In order to achieve the above object, the invention provides a kind of IRF flow rate protecting method, in described IRF, each stack member apparatus has the Protection path that arrives other stack member apparatus, and in Protection path is transmitted, disposing corresponding Protection path forwarding-table item, described Protection path forwarding-table item comprises the corresponding relation of object stack member apparatus frame number and outbound port; The method comprises:
When change in topology event detected, enable the Protection path forwarding capability of self;
Need to send message to other stack member apparatus time, if enabled Protection path forwarding capability, transmit the outbound port of middle correspondence at Protection path according to the object stack member apparatus of message, message is carried out sending from described outbound port after tunnel encapsulation, otherwise, normally send this message;
While receiving the message through tunnel encapsulation; whether the object stack member apparatus that judges message is current stack member apparatus; if; this message of normal process; otherwise; in Protection path is transmitted, search corresponding outbound port according to the object stack member apparatus of message, forward this message from the outbound port finding.
The present invention also provides a kind of stack member apparatus, and this stack member apparatus has the Protection path that arrives other stack member apparatus; This stack member apparatus comprises: setting unit, fault detection unit, packet sending and receiving unit;
Described setting unit, for arrive the Protection path of other stack member apparatus according to this stack member apparatus, transmit Protection path forwarding-table item corresponding to middle configuration at Protection path, described Protection path forwarding-table item comprises the corresponding relation of object stack member apparatus frame number and outbound port;
Described fault detection unit, for detection of whether change in topology event occurring, and in the time change in topology event being detected, enables Protection path forwarding capability;
Described packet sending and receiving unit, while arriving other stack member apparatus for sending message, if enabled Protection path forwarding capability, transmit the outbound port of middle correspondence at Protection path according to the object stack member apparatus of message, message is carried out sending from described outbound port after tunnel encapsulation, otherwise, normally send this message; When receiving the message through tunnel encapsulation; whether the object stack member apparatus that judges message is current stack member apparatus; if; this message of normal process; otherwise; in Protection path is transmitted, search corresponding outbound port according to the object stack member apparatus of message, forward this message from the outbound port finding.
From technical scheme above; the present invention is by arranging current stack member apparatus and arrive the Protection path of other stack member apparatus in advance; and in the time there is change in topology event, message is forwarded on Protection path, thereby can in the time of change in topology, reduce traffic loss.
Accompanying drawing explanation
Fig. 1 is typical IRF system schematic;
Fig. 2 is IRF link failure schematic diagram in the system of IRF shown in Fig. 1;
Fig. 3 is the schematic flow sheet of embodiment of the present invention IRF flow rate protecting method;
Fig. 4 is embodiment of the present invention the second Protection path method to set up schematic diagram;
Fig. 5 is the third Protection path method to set up schematic diagram of the embodiment of the present invention;
Fig. 6 is the 4th kind of Protection path method to set up schematic diagram of the embodiment of the present invention;
Fig. 7 is embodiment of the present invention IRF tag format schematic diagram;
Fig. 8 is the message format schematic diagram that the embodiment of the present invention has encapsulated IRF label;
Fig. 9 is the structural representation of embodiment of the present invention stack member apparatus.
Embodiment
In order to make object of the present invention, technical scheme and advantage clearer, below in conjunction with the accompanying drawing embodiment that develops simultaneously, technical scheme of the present invention is elaborated.
Referring to Fig. 3; Fig. 3 is the schematic flow sheet of embodiment of the present invention IRF flow rate protecting method; in this IRF, each stack member apparatus has the Protection path that arrives other stack member apparatus; and in Protection path is transmitted, disposing corresponding Protection path forwarding-table item, described Protection path forwarding-table item comprises the corresponding relation of object stack member apparatus frame number and outbound port.Here, described frame number is that IRF is the unique number that is different from other stack member apparatus of each stack member apparatus configuration.The method comprises the following steps:
Step 301, when change in topology event detected, enable the Protection path forwarding capability of self.
Here,, when self IRF port link failure being detected, the IRF port link failure recovery of self, or while receiving the linkdown notification of other stack member apparatus or link failure recovery notice, all can determine change in topology event has occurred in IRF.In the time there is change in topology event, each stack equipment will carry out topology and calculate, and refreshes and transmit.Refreshing in the process of transmitting, because the handling property of each stack equipment is obstructed, may cause path inconsistent, thereby cause traffic loss.In this step, for fear of traffic loss, can, in the time there is change in topology event, enable Protection path forwarding capability, thereby can E-Packet at Protection path, refresh until transmitted, more again E-Packet according to transmitting.
Step 302, need to send message when other stack member apparatus; if enabled Protection path forwarding capability; in transmitting, searches Protection path corresponding outbound port according to the object stack member apparatus of message; message is carried out sending from the outbound port finding after tunnel encapsulation; otherwise, normally send this message.
Here,, if enabled Protection path forwarding capability, explanation need to forward message at Protection path, therefore, can directly in Protection path is transmitted, search the outbound port of message, and message is carried out sending from the outbound port finding after tunnel encapsulation; If do not enable Protection path forwarding capability, only need according to transmitting this message of normal transmission.
In this step, message is carried out sending from the outbound port finding after tunnel encapsulation, is exactly in fact: by message by the protection tunnel transmission between current stack member apparatus and object stack member apparatus to object stack member apparatus.
Step 303, while receiving the message through tunnel encapsulation; whether the object stack member apparatus that judges message is current stack member apparatus; if; this message of normal process; otherwise; in Protection path is transmitted, search corresponding outbound port according to the object stack member apparatus of message, forward this message from the outbound port finding.
In this step, if the message through tunnel encapsulation receiving, if the object stack member apparatus of message is current stack member apparatus, can carry out tunnel termination, this message is separated to tunnel encapsulation, then, just can process this message according to receiving from IRF port the method that message is identical with processing; If the object stack member apparatus of message is not current stack member apparatus, only need transmits at Protection path and forward this message according to Protection path.
In actual applications, according to the difference of topology in IRF, can adopt the each stack member apparatus of accomplished in many ways to arrive the Protection path of other stack member apparatus, be elaborated for wherein four kinds below:
The first: under ring topology, Protection path can multiplexing original IRF link, and the Protection path that each stack member apparatus arrives other stack member apparatus is the physical pathway that arrives other stack member apparatus by IRF link.In this case; Protection path between stack member apparatus is along with topological variation changes; take Fig. 2 as example; in the time that the link between R2 and R3 breaks down; R1 is R1-R4-R3 to the Protection path of R3; if the link between R3 and R4 breaks down, R1 is R1-R2-R3 to the Protection path of R3.
It should be noted that; in the time that initial configuration arrives the Protection path forwarding-table item of other stack member apparatus; only need the object stack member apparatus frame number in the forwarding-table item of configuration protection path; corresponding outbound port does not need configuration; can be arbitrary value, because this corresponding outbound port is along with topological variation changes.
In such cases; in step 302, described in enable Protection path forwarding capability and comprise: carry out topology and calculate, refresh Protection path according to topological result of calculation and transmit; and Protection path enable flag is set to enable the value that Protection path forwarding capability is corresponding, for example 1.
Take Fig. 2 as example, after the link between R2 and R3 breaks down, ring topology changes chain topology into.The IRF port that R1 connects R4 is P1 port, and the port that R1 connects R2 is P2 port, and according to the chain topology after fault, the Protection path that R1 arrives R2 is R1-R2, and corresponding Protection path forwarding-table item is R2, P2; The Protection path that R1 arrives R3 is R1-R4-R3, and corresponding Protection path forwarding-table item is R3, P1; The Protection path that R1 arrives R4 is R1-R4, and corresponding Protection path forwarding-table item is R4, P1.Equally, concerning R2, R3, R4, all can determine and arrive the Protection path of other stack member apparatus according to the topology after fault, and then determine the outbound port that arrives other stack member apparatus, and the Protection path that refreshes accordingly self be transmitted.
The second: under ring topology; can between adjacent stacks member device, add new physical link, the Protection path that each stack member apparatus arrives other stack member apparatus is the physical pathway that arrives other stack member apparatus between adjacent stacks member device along the new physical link adding in advance.Embodiment of the present invention the second Protection path method to set up schematic diagram as shown in Figure 4; between each adjacent stacks member device, except original IRF link (link of the thinner lines representative in Fig. 4 between adjacent stacks member device), also newly increase an independent physical link (link of the thicker lines representative in Fig. 4 between adjacent stacks member device).Between each stack member apparatus, can arrive the other side by physical link newly-increased between adjacent stacks member device, realize communication, for example, R1 to the Protection path of R3 is: R1-R2-R3, or R1-R4-R3.Visible; under ring topology; add new physical link between adjacent stacks member device time; there will be the situation that has two Protection paths between two stack equipments, therefore, can set in advance the direction of Protection path (clockwise; or counterclockwise); in the time there is change in topology event, message is sent from the Protection path along preset direction, realize communication.
In such cases; the Protection path that each stack member apparatus arrives other stack member apparatus is to immobilize; can not change along with topological variation; therefore; in the time that initial configuration arrives the Protection path forwarding-table item of other stack member apparatus; object stack member apparatus frame number and corresponding outbound port can be directly set, and after this, this Protection path forwarding-table item remains unchanged.
Like this, in step 302, described in enable Protection path forwarding capability and comprise: Protection path enable flag is set to enable the value that Protection path forwarding capability is corresponding.
Take Fig. 4 as example, the port that R1 is connected to R4 along the new physical link adding is P3, and the port that is connected to R2 along the new physical link adding is P4.Suppose that default clockwise direction is Protection path direction, for R1, in the time there is change in topology event, R1 is R1-R4-R3-R2 to the Protection path of R2, and corresponding Protection path forwarding-table item is R2, P3; R1 is R1-R4-R3 to the Protection path of R3, and corresponding Protection path forwarding-table item is R3, P3, and R1 is R1-R4 to the Protection path of R4, and corresponding Protection path forwarding-table item is R4, P3.Equally; concerning R2, R3, R4; all can determine the Protection path that arrives other stack member apparatus along preset direction by the physical link of new interpolation, and then determine and arrive the outbound port of other stack member apparatus, and the Protection path that configures accordingly self is transmitted.
The third; under chain topology; can between adjacent stacks member device, add new physical link, the Protection path that each stack member apparatus arrives other stack member apparatus is the physical pathway that arrives other stack member apparatus between adjacent stacks member device along the new physical link adding in advance.The third Protection path method to set up schematic diagram of the embodiment of the present invention as shown in Figure 5; between each adjacent stacks member device, except original IRF link (link of the thinner lines representative in Fig. 5 between adjacent stacks member device), also newly increase an independent physical link (link of the thicker lines representative in Fig. 5 between adjacent stacks member device).Owing to being chain topology, on described new physical link, between each stack member apparatus, only there is a path that arrives the other side, therefore, do not need preset direction.
In such cases; the Protection path that each stack member apparatus arrives other stack member apparatus is to immobilize; can not change along with topological variation; therefore; in the time that initial configuration arrives the Protection path forwarding-table item of other stack member apparatus; object stack member apparatus frame number and corresponding outbound port can be directly set, and after this, this Protection path forwarding-table item remains unchanged.
Like this, in step 302, described in enable Protection path forwarding capability and comprise: Protection path enable flag is set to enable the value that Protection path forwarding capability is corresponding.
Take Fig. 5 as example, the port that R1 is connected to R2 along the new physical link adding is P4.In the time there is change in topology event, R1 is R1-R2 to the Protection path of R2, and corresponding Protection path forwarding-table item is R2, P4; R1 is R1-R4-R3 to the Protection path of R3, and corresponding Protection path forwarding-table item is R3, P4, and R1 is R1-R4 to the Protection path of R4, and corresponding Protection path forwarding-table item is R4, P4.Equally, concerning R2, R3, R4, all can determine the Protection path that arrives other stack member apparatus by the physical link of new interpolation, and then determine and arrive the outbound port of other stack member apparatus, and the Protection path that configures accordingly self is transmitted.
The 4th kind; each stack member apparatus is connected on same switch, and the Protection path that each stack member apparatus arrives other stack member apparatus is the physical pathway that same switch being connected in advance by all stack member apparatus arrives other stack member apparatus.The 4th kind of Protection path schematic diagram of the embodiment of the present invention as shown in Figure 6, can reach the other side by this switch between each stack member apparatus, realizes communication, and for example, R1 is R1-switch-R3 to the Protection path of R3.
In such cases; the Protection path that each stack member apparatus arrives other stack member apparatus is to immobilize; can not change along with topological variation; therefore; in the time that initial configuration arrives the Protection path forwarding-table item of other stack member apparatus; object stack member apparatus frame number and corresponding outbound port can be directly set, and after this, this Protection path forwarding-table item remains unchanged.
Like this, in step 302, described in enable Protection path forwarding capability and comprise: Protection path enable flag is set to enable the value that Protection path forwarding capability is corresponding.
Take Fig. 6 as example, the port that R1 connects switch is P5, and in the time there is change in topology event, R1 is R1-switch-R2 to the Protection path of R2, and corresponding Protection path forwarding-table item is R2, P5; R1 is R1-switch-R3 to the Protection path of R3, and corresponding Protection path forwarding-table item is R3, P5, and R1 is R1-switch-R4 to the Protection path of R4, and corresponding Protection path forwarding-table item is R4, P5.Equally, concerning R2, R3, R4, all can determine the Protection path that arrives other stack member apparatus by this switch, therefore, the Protection path that can configure accordingly self is transmitted.
Shown in Fig. 3, in the embodiment of the present invention, in the time there is change in topology event, by enabling Protection path forwarding capability, thereby message can be forwarded from Protection path, realize the object of traffic protection.
Can judge whether message to be forwarded from Protection path according to Protection path enable flag; if the value of Protection path enable flag is to enable the value that Protection path forwarding capability is corresponding; for example 1; can determine and message need to be forwarded from Protection path; if the value of Protection path enable flag is not enable the value that Protection path forwarding capability is corresponding; for example 0, can determine and not need message to forward from Protection path.
Shown in Fig. 3 in the embodiment of the present invention, when needs by message in the time that Protection path forwards, can first message be carried out to tunnel encapsulation.The described method that message is carried out to tunnel encapsulation is specifically as follows: in message, encapsulate IRF label, the frame of the object stack member apparatus of the frame of current stack member apparatus number, message is carried in IRF label as source frame number, object frame number number respectively;
Like this, whether the described object stack member apparatus that judges message is that the method for current stack member apparatus is specifically as follows: judge that object frame in the IRF label carrying in this message number is whether number identical with the frame of current stack member apparatus, if identical, the object stack member apparatus of message is current stack member apparatus, otherwise the object stack member apparatus of message is not current stack member apparatus.
Here, described IRF label can use the reserved MPLS label range of IRF system, suppose that reserved MPLS label range is that most-significant byte (bit) is all 1 scope, IRF label can adopt embodiment of the present invention IRF tag format schematic diagram as shown in Figure 7, wherein high 8bit is for being all 1, and object frame number takies 6 bit, the object stack member apparatus of unique identification message, source frame number takies 6 bit, the source stack member apparatus of unique identification message.
Can, by the IRF Tag Packaging of above-mentioned form to message, then will send at Protection path.The embodiment of the present invention has as shown in Figure 8 encapsulated the message format schematic diagram of IRF label, and wherein, first field is two layer message head, and second field is IRF label, the Ethernet message completing when the 3rd field before encapsulation.
In addition; for fear of loop; if judge that the object stack member apparatus of message is not current stack member apparatus; by message Protection path forward before; whether the source stack member apparatus that also further judges this message of transmission is current stack member apparatus; if so, there is loop in explanation, need to abandon this message.Therefore, in step 304, after judgement determines that the object stack member apparatus of message is not current stack member apparatus, before searching corresponding outbound port and forward this message from the outbound port finding according to the object stack member apparatus of message, further comprise: judge that source frame in the IRF label carrying in this message number is whether number identical with the frame of current stack member apparatus, if identical, abandon this message, otherwise, search corresponding outbound port and forward this message from the outbound port finding according to the object stack member apparatus of message.
It should be noted that, the message described in the present invention, refers to unicast message, if broadcasting packet, IRF system can be forwarded to broadcasting packet all stack member apparatus automatically, therefore, need to not send from Protection path.
From the above embodiments; the present invention, by Protection path is set, in the time there is change in topology event in IRF system, can send message at Protection path; thereby reduce the traffic loss causing when topological path changes, improved the reliability and stability of IRF system.
Above IRF flow rate protecting method of the present invention is had been described in detail, the present invention also provides a kind of stack member apparatus, traffic loss when this stack member apparatus can reduce change in topology.
Referring to Fig. 9, Fig. 9 is the structural representation of embodiment of the present invention stack member apparatus, and this stack member apparatus has the Protection path that arrives other stack member apparatus; This stack member apparatus comprises: setting unit 901, fault detection unit 902, packet sending and receiving unit 903; Wherein,
Setting unit 901, for arrive the Protection path of other stack member apparatus according to this stack member apparatus, and Protection path transmits Protection path forwarding-table item corresponding to middle configuration, described Protection path forwarding-table item comprises the corresponding relation of object stack member apparatus frame number and outbound port;
Fault detection unit 902, for detection of whether change in topology event occurring, and in the time change in topology event being detected, enables Protection path forwarding capability;
Packet sending and receiving unit 903, while arriving other stack member apparatus for sending message, if enabled Protection path forwarding capability, transmit the outbound port of middle correspondence at Protection path according to the object stack member apparatus of message, message is carried out sending from described outbound port after tunnel encapsulation, otherwise, normally send this message; When receiving the message through tunnel encapsulation; whether the object stack member apparatus that judges message is current stack member apparatus; if; this message of normal process; otherwise; in Protection path is transmitted, search corresponding outbound port according to the object stack member apparatus of message, forward this message from the outbound port finding.
In the time that this stack member apparatus place IRF is ring topology, Protection path can multiplexing original IRF link:
The Protection path that this stack member apparatus arrives other stack member apparatus is the physical pathway that arrives other stack member apparatus by IRF link;
Described setting unit
Described setting unit 901 arrives the Protection path of other stack member apparatus according to this stack member apparatus, transmit object stack member apparatus frame number in the corresponding Protection path forwarding-table item of middle configuration and arrange the frame number of described other stack member apparatus at Protection path;
When described fault detection unit 902 enables Protection path forwarding capability, for: carry out topology and calculate, refresh Protection path according to topological result of calculation and transmit, and Protection path enable flag is set to enable the value that Protection path forwarding capability is corresponding.
In the time that this stack member apparatus place IRF is ring topology, can between adjacent stacks member device, add new physical link, when there is change in topology event, as Protection path:
The Protection path that this stack member apparatus arrives other stack member apparatus is the physical pathway that arrives other stack member apparatus on preset direction between adjacent stacks member along the new physical link adding in advance;
Described setting unit 901 arrives the Protection path of other stack member apparatus according to this stack member apparatus, transmit the frame number that object stack member apparatus frame in the corresponding Protection path forwarding-table item of middle configuration number and outbound port be set to respectively described other stack member apparatus, the port that arrives described other stack member apparatus on preset direction by described physical link at Protection path;
Or,
When this stack member apparatus place IRF is chain when topology, can between adjacent stacks member device, add new physical link, when there is change in topology event, as Protection path:
The Protection path that this stack member apparatus arrives other stack member apparatus is the physical pathway that arrives other stack member apparatus between adjacent stacks member along the new physical link adding in advance;
Described in described setting unit 901, setting unit arrives the Protection path of other stack member apparatus according to this stack member apparatus, transmits the frame number that object stack member apparatus frame in the corresponding Protection path forwarding-table item of middle configuration number and outbound port be set to respectively described other stack member apparatus, the port that arrives described other stack member apparatus by described physical link at Protection path;
When described fault detection unit 902 enables Protection path forwarding capability, for: Protection path enable flag is set to enable the value that Protection path forwarding capability is corresponding.
In addition, can also use an independent switch to connect each stack member apparatus, in the time there is change in topology event, each stack member apparatus is realized communication by this switch:
The Protection path that this stack member apparatus arrives other stack member apparatus is the physical pathway that same switch being connected in advance by all stack member apparatus arrives other stack member apparatus;
Described setting unit 901 arrives the Protection path of other stack member apparatus according to this stack member apparatus, transmit the frame number that object stack member apparatus frame in the corresponding Protection path forwarding-table item of middle configuration number and outbound port be set to respectively described other stack member apparatus, the port that is connected to described switch at Protection path;
When described fault detection unit 902 enables Protection path forwarding capability, for: Protection path enable flag is set to enable the value that Protection path forwarding capability is corresponding.
When message is carried out tunnel encapsulation by described packet sending and receiving unit 903, be used for: encapsulate IRF label at message, the frame of the object stack member apparatus of the frame of current stack member apparatus number, message is carried in IRF label as source frame number, object frame number number respectively;
Described packet sending and receiving unit 903 is in the time that whether the object stack member apparatus that judges message is current stack member apparatus, be used for: judge that object frame in the IRF label that this message carries number is whether number identical with the frame of current stack member apparatus, if identical, the object stack member apparatus of message is current stack member apparatus, otherwise the object stack member apparatus of message is not current stack member apparatus.
Described packet sending and receiving unit 903 judgement determines that the object stack member apparatus of message is not after current stack member apparatus, before searching corresponding outbound port and forward this message from the outbound port finding according to the object stack member apparatus of message, be further used for: judge that source frame in the IRF label carrying in this message number is whether number identical with the frame of current stack member apparatus, if identical, abandon this message, otherwise, search corresponding outbound port and forward this message from the outbound port finding according to the object stack member apparatus of message.
The foregoing is only preferred embodiment of the present invention, in order to limit the present invention, within the spirit and principles in the present invention not all, any modification of making, be equal to replacement, improvement etc., within all should being included in the scope of protection of the invention.

Claims (12)

1. an intelligent elastic framework IRF flow rate protecting method, it is characterized in that, in described IRF, each stack member apparatus has the Protection path that arrives other stack member apparatus, and in Protection path is transmitted, disposing corresponding Protection path forwarding-table item, described Protection path forwarding-table item comprises the corresponding relation of object stack member apparatus frame number and outbound port; The method comprises:
In the time change in topology event being detected, enable the Protection path forwarding capability of self;
In the time that needs send message to other stack member apparatus, if enabled Protection path forwarding capability, in transmitting, searches Protection path corresponding outbound port according to the object stack member apparatus of message, message is carried out sending from described outbound port after tunnel encapsulation, otherwise, normally send this message;
While receiving the message through tunnel encapsulation; whether the object stack member apparatus that judges message is current stack member apparatus; if; this message of normal process; otherwise; in Protection path is transmitted, search corresponding outbound port according to the object stack member apparatus of message, forward this message from the outbound port finding.
2. IRF flow rate protecting method according to claim 1, is characterized in that, described IRF is ring topology;
The Protection path that current stack member apparatus arrives other stack member apparatus is the physical pathway that arrives other stack member apparatus by IRF link, and the object stack member apparatus frame number in corresponding Protection path forwarding-table item is the frame number of described other stack member apparatus;
The described Protection path forwarding capability that enables comprises: carry out topology and calculate, refresh Protection path and transmit, and Protection path enable flag is set to enable the value that Protection path forwarding capability is corresponding according to topological result of calculation.
3. IRF flow rate protecting method according to claim 1, is characterized in that,
Described IRF is ring topology;
The Protection path that current stack member apparatus arrives other stack member apparatus is the physical pathway that arrives other stack member apparatus on preset direction between adjacent stacks member device along the new physical link adding in advance, the object stack member apparatus frame in corresponding Protection path forwarding-table item number and outbound port be respectively described other stack member apparatus frame number, on preset direction, arrive the port of described other stack member apparatus by described new physical link;
Or,
Described IRF is chain topology;
The Protection path that current stack member apparatus arrives other stack member apparatus is the physical pathway that arrives other stack member apparatus between adjacent stacks member device along the new physical link adding in advance, the object stack member apparatus frame in corresponding Protection path forwarding-table item number and outbound port be respectively described other stack member apparatus frame number, arrive the port of described other stack member apparatus by described new physical link;
The described Protection path forwarding capability that enables comprises: Protection path enable flag is set to enable the value that Protection path forwarding capability is corresponding.
4. IRF flow rate protecting method according to claim 1, is characterized in that,
The Protection path that current stack member apparatus arrives other stack member apparatus is the physical pathway that same switch being connected in advance by all stack member apparatus arrives other stack member apparatus, the object stack member apparatus frame in corresponding Protection path forwarding-table item number and outbound port be set to respectively described other stack member apparatus frame number, be connected to the port of described switch;
The described Protection path forwarding capability that enables comprises: Protection path enable flag is set to enable the value that Protection path forwarding capability is corresponding.
5. according to the IRF flow rate protecting method described in claim 2,3 or 4, it is characterized in that, the described method that message is carried out to tunnel encapsulation is: in message, encapsulate IRF label, the frame of the object stack member apparatus of the frame of current stack member apparatus number, message is carried in IRF label as source frame number, object frame number number respectively;
Whether the described object stack member apparatus that judges message is that the method for current stack member apparatus is: judge that object frame in the IRF label carrying in this message number is whether number identical with the frame of current stack member apparatus, if identical, the object stack member apparatus of message is current stack member apparatus, otherwise the object stack member apparatus of message is not current stack member apparatus.
6. IRF flow rate protecting method according to claim 5, it is characterized in that, judgement determines that the object stack member apparatus of message is not after current stack member apparatus, before searching corresponding outbound port and forward this message from the outbound port finding according to the object stack member apparatus of message, further comprise: judge that source frame in the IRF label carrying in this message number is whether number identical with the frame of current stack member apparatus, if identical, abandon this message, otherwise, search corresponding outbound port and forward this message from the outbound port finding according to the object stack member apparatus of message.
7. a stack member apparatus, is characterized in that, this stack member apparatus has the Protection path that arrives other stack member apparatus; This stack member apparatus comprises: setting unit, fault detection unit, packet sending and receiving unit;
Described setting unit, for arrive the Protection path of other stack member apparatus according to this stack member apparatus, transmit Protection path forwarding-table item corresponding to middle configuration at Protection path, described Protection path forwarding-table item comprises the corresponding relation of object stack member apparatus frame number and outbound port;
Described fault detection unit, for detection of whether change in topology event occurring, and in the time change in topology event being detected, enables Protection path forwarding capability;
Described packet sending and receiving unit, while arriving other stack member apparatus for send message when needs, if enabled Protection path forwarding capability, in transmitting, searches Protection path corresponding outbound port according to the object stack member apparatus of message, message is carried out sending from described outbound port after tunnel encapsulation, otherwise, normally send this message; When receiving the message through tunnel encapsulation; whether the object stack member apparatus that judges message is current stack member apparatus; if; this message of normal process; otherwise; in Protection path is transmitted, search corresponding outbound port according to the object stack member apparatus of message, forward this message from the outbound port finding.
8. stack member apparatus according to claim 7, is characterized in that, this stack member apparatus place IRF is ring topology;
The Protection path that this stack member apparatus arrives other stack member apparatus is the physical pathway that arrives other stack member apparatus by IRF link;
Described setting unit arrives the Protection path of other stack member apparatus according to this stack member apparatus, transmit at Protection path the frame number that object stack member apparatus frame in the corresponding Protection path forwarding-table item of middle configuration number is described other stack member apparatus;
When described fault detection unit enables Protection path forwarding capability, for: carry out topology and calculate, refresh Protection path according to topological result of calculation and transmit, and Protection path enable flag is set to enable the value that Protection path forwarding capability is corresponding.
9. stack member apparatus according to claim 7, is characterized in that,
This stack member apparatus place IRF is ring topology;
The Protection path that this stack member apparatus arrives other stack member apparatus is the physical pathway that arrives other stack member apparatus on preset direction between adjacent stacks member along the new physical link adding in advance;
Described setting unit arrives the Protection path of other stack member apparatus according to this stack member apparatus, transmit the frame number that object stack member apparatus frame in the corresponding Protection path forwarding-table item of middle configuration number and outbound port be respectively described other stack member apparatus, the port that arrives described other stack member apparatus on preset direction by described new physical link at Protection path;
Or,
This stack member apparatus place IRF is chain topology;
The Protection path that this stack member apparatus arrives other stack member apparatus is the physical pathway that arrives other stack member apparatus between adjacent stacks member along the new physical link adding in advance;
Described setting unit arrives the Protection path of other stack member apparatus according to this stack member apparatus, transmit the frame number that object stack member apparatus frame in the corresponding Protection path forwarding-table item of middle configuration number and outbound port be respectively described other stack member apparatus, the port that arrives described other stack member apparatus by described new physical link at Protection path;
When described fault detection unit enables Protection path forwarding capability, for: Protection path enable flag is set to enable the value that Protection path forwarding capability is corresponding.
10. stack member apparatus according to claim 7, is characterized in that,
The Protection path that this stack member apparatus arrives other stack member apparatus is the physical pathway that same switch being connected in advance by all stack member apparatus arrives other stack member apparatus;
Described setting unit arrives the Protection path of other stack member apparatus according to this stack member apparatus, transmit the frame number that object stack member apparatus frame in the corresponding Protection path forwarding-table item of middle configuration number and outbound port be set to respectively described other stack member apparatus, the port that is connected to described switch at Protection path;
When described fault detection unit enables Protection path forwarding capability, for: Protection path enable flag is set to enable the value that Protection path forwarding capability is corresponding.
Stack member apparatus described in 11. according to Claim 8,9 or 10, is characterized in that,
When message is carried out tunnel encapsulation by described packet sending and receiving unit, for: encapsulate IRF label at message, the frame of the object stack member apparatus of the frame of current stack member apparatus number, message is carried in IRF label as source frame number, object frame number number respectively;
Described packet sending and receiving unit is in the time that whether the object stack member apparatus that judges message is current stack member apparatus, be used for: judge that object frame in the IRF label that this message carries number is whether number identical with the frame of current stack member apparatus, if identical, the object stack member apparatus of message is current stack member apparatus, otherwise the object stack member apparatus of message is not current stack member apparatus.
12. stack member apparatus according to claim 11, is characterized in that,
Described packet sending and receiving unit judges determines that the object stack member apparatus of message is not after current stack member apparatus, before searching corresponding outbound port and forward this message from the outbound port finding according to the object stack member apparatus of message, be further used for: judge that source frame in the IRF label carrying in this message number is whether number identical with the frame of current stack member apparatus, if identical, abandon this message, otherwise, search corresponding outbound port and forward this message from the outbound port finding according to the object stack member apparatus of message.
CN201110290467.0A 2011-09-28 2011-09-28 IRF flow protection method and apparatus thereof Active CN102307150B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110290467.0A CN102307150B (en) 2011-09-28 2011-09-28 IRF flow protection method and apparatus thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110290467.0A CN102307150B (en) 2011-09-28 2011-09-28 IRF flow protection method and apparatus thereof

Publications (2)

Publication Number Publication Date
CN102307150A CN102307150A (en) 2012-01-04
CN102307150B true CN102307150B (en) 2014-06-18

Family

ID=45380962

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110290467.0A Active CN102307150B (en) 2011-09-28 2011-09-28 IRF flow protection method and apparatus thereof

Country Status (1)

Country Link
CN (1) CN102307150B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102638408A (en) * 2012-04-27 2012-08-15 华为技术有限公司 Method for sending topology change (TC) message and method and device for refreshing forwarding table
CN112039766B (en) * 2020-09-04 2022-08-02 苏州盛科通信股份有限公司 Protection switching implementation method and device based on Ethernet

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101977153A (en) * 2010-11-15 2011-02-16 杭州华三通信技术有限公司 Flow regulation method and equipment

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101605102B (en) * 2009-07-16 2012-03-14 杭州华三通信技术有限公司 Load sharing method and apparatus in IRF stacking

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101977153A (en) * 2010-11-15 2011-02-16 杭州华三通信技术有限公司 Flow regulation method and equipment

Also Published As

Publication number Publication date
CN102307150A (en) 2012-01-04

Similar Documents

Publication Publication Date Title
CN102025646B (en) Link switching method and device thereof
CN102333028B (en) Method and communication equipment for sending messages by using layered bi-layer virtual private network
CN101938377B (en) link aggregation error protection method, equipment and system
CN102571426B (en) Double-homing protection method and device
CN102377601B (en) LSP (Local Switched Path) fault notification method and LSP fault notification device
CN104243239B (en) The condition detection method and device of controller in a kind of SDN clusters
CN105871674B (en) The guard method of ring protection link failure, equipment and system
CN102882780B (en) Looped network tunnel configuration method based on overlapping trees, ring network protection method and system
CN101860492A (en) Quick switching method, device and system
CN103281247A (en) Universal routing method and universal routing system of data center network
CN104270309A (en) Method for achieving multi-hop BFD under IP RAN equipment
CN102255757A (en) Link switching method and device
CN102891769A (en) Link fault informing method and apparatus
CN105591800A (en) Traffic protection method and device
CN103368849A (en) OAM (Operations, Administration and Management) message processing method and device
CN103368844B (en) Message processing method and LSR in MPLS network
CN108989200A (en) data packet forwarding method, device and system
US9197441B2 (en) Method and system for service protection
CN102158383A (en) Data transmission method, device and system for E1 bidirectional ring network
CN102307150B (en) IRF flow protection method and apparatus thereof
CN101888323B (en) Ethernet ring network-based PBB-TE protection method
CN102315972B (en) Method for realizing label switching path (LSP) switching and device
CN102882779A (en) VRRP (Virtual Router Redundancy Protocol) advertisement link protection method and system
CN102104533A (en) Method for optimizing RRPP (rapid ring protection protocol) single ring network data transmitting path and ring network node
WO2015032203A1 (en) Network element and method for ring network protection

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CP03 Change of name, title or address

Address after: 310052 Binjiang District Changhe Road, Zhejiang, China, No. 466, No.

Patentee after: Xinhua three Technology Co., Ltd.

Address before: 310053 Hangzhou hi tech Industrial Development Zone, Zhejiang province science and Technology Industrial Park, No. 310 and No. six road, HUAWEI, Hangzhou production base

Patentee before: Huasan Communication Technology Co., Ltd.

CP03 Change of name, title or address