CN101425972A - Tunnel switching method and device - Google Patents

Tunnel switching method and device Download PDF

Info

Publication number
CN101425972A
CN101425972A CNA2008101815790A CN200810181579A CN101425972A CN 101425972 A CN101425972 A CN 101425972A CN A2008101815790 A CNA2008101815790 A CN A2008101815790A CN 200810181579 A CN200810181579 A CN 200810181579A CN 101425972 A CN101425972 A CN 101425972A
Authority
CN
China
Prior art keywords
tunnel
sign
main tunnel
protection
message
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.)
Granted
Application number
CNA2008101815790A
Other languages
Chinese (zh)
Other versions
CN101425972B (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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN2008101815790A priority Critical patent/CN101425972B/en
Publication of CN101425972A publication Critical patent/CN101425972A/en
Application granted granted Critical
Publication of CN101425972B publication Critical patent/CN101425972B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Mobile Radio Communication Systems (AREA)

Abstract

The invention discloses a tunnel switching method and device. The method is applied in communication system of main tunnel and protection tunnel corresponding to main tunnel comprising following operations: setting a first sign at port table, wherein the first sign indicates if the main tunnel interrupts; switching between main tunnel and protection tunnel according to the set first sign, processing message on main tunnel or protection tunnel according to switching result. The invention shortens switching time.

Description

A kind of tunnel switching method and device
Technical field
The present invention relates to the communications field, in particular to a kind of tunnel switching method and device.
Background technology
T-MPLS (Transport Multi-Protocol Label Switching abbreviates transmission-multiple protocol label switching as) data forwarding face is the subclass of MPLS, and its data are transmitted based on the T-MPLS label.T-MPLS is connection-oriented technology, is the application of MPLS in transmitting net, and it is simplified some sophisticated functions of MPLS data forwarding face, and has increased based on functions such as connection-oriented OAM that transmits and protection recoveries.
Above-mentioned OAM is meant and can runs, can safeguard (Operations andMaintenance), also can be interpreted as and to run, can manage, can safeguard (Operation, Administration and Maintenance) promptly, the OAM monitoring comprises T-MPLS tomography (T-MPLS Section, abbreviate TMS as) monitoring, T-MPLS tunnel (T-MPLS Path, abbreviate TMP as) monitoring, T-MPLS passage (T-MPLS Channel, abbreviate TMC as) monitoring, TMC is used for whether occurring between the monitoring port and opens circuit, whether TMP is used for monitoring whole tunnel and occurs opening circuit, and whether TMC is used for monitoring pseudo-line and occurs opening circuit.
TMS monitoring is a kind of of OAM monitoring, carries out monitoring and protecting at the link between two direct-connected ports on the tunnel, when opening circuit between two ports of configuration TMS monitoring, will initiate OAM and alarm.Below the related notion that the present invention relates to is described.
Protection automatic switchover (Automatic Protection Switching; abbreviating APS as) module functions is that the flow in the network is carried out main tunnel and the switching of protection on the tunnel; when main tunnel failure; switch to the protection tunnel by main tunnel; when main tunnel restoration, switch go back to main tunnel by the protection tunnel.
Protection is switched: in the T-MPLS tunnel, can protect the tunnel, a common main tunnel can corresponding protection tunnel, and when main tunnel broke down, the monitoring alarm notification APS module by OAM switched to tunnel traffic on the protection tunnel.
Protection Class1+1: porch in the tunnel, flow can be replicated two parts, portion mails to main tunnel, portion mails to the protection tunnel, exit in the tunnel is judged respectively flow, if current main tunnel is effective, then the message that sends on the main tunnel is transmitted, with the packet loss on the protection tunnel; If current main tunnel is invalid,, the message on the protection tunnel is transmitted then with the packet loss that sends on the main tunnel.
Protection Class1: 1: the porch in the tunnel, tunnel state is judged, if main tunnel is effective, then flow is sent from main tunnel, if main tunnel is invalid, then flow is sent from the protection tunnel.
On high-end switch equipment, when the T-MPLS tunnel number that disposes on the port reaches a certain amount of,,, arrive APS again by the OAM alarm and switch because quantity is excessive when opening circuit appears in port, will inevitably increase widely the switching time in every tunnel.
Therefore, in present handoff procedure, need switch, on protocol interaction, expend a large amount of time by OAM alarm triggered APS protocol module.
Summary of the invention
Need switch by OAM alarm triggered APS protocol module at present handoff procedure, thus on protocol interaction bigger problem consuming time and propose the present invention, for this reason, the present invention aims to provide a kind of improved tunnel handover scheme, to address the above problem.
According to an aspect of the present invention, provide a kind of tunnel switching method.
According to tunnel switching method of the present invention, be applied to comprise the communication system in main tunnel and the protection tunnel corresponding with main tunnel, comprise following operation: first sign is set in port table, and wherein, whether first sign is used to indicate main tunnel to interrupt; Identify the switching of carrying out between main tunnel and the protection tunnel according to first of setting, and on main tunnel or protection tunnel, carry out message according to switching result and handle.
Preferably; when uplink; if the protection type is 1:1; then switching and message are handled and are comprised: under the situation of the first sign indication main tunnel interruption; if be used to indicate the main tunnel of the 3rd sign indication of main tunnel validity effective in the tunnel table; then be set to indicate main tunnel invalid, and be identified on the protection tunnel according to the 3rd after being provided with and carry out message transmissions by microcode the 3rd sign.
Preferably; when uplink; if the protection type is 1:1; then switching and message are handled and are comprised: identify under the situation of not interrupting in the main tunnel of indication first; if be used to indicate the main tunnel of the 3rd sign indication of main tunnel validity invalid in the tunnel table; then be set to indicate main tunnel effective, and be identified at according to the 3rd after being provided with and carry out message transmissions on the main tunnel by microcode the 3rd sign.
Preferably, said method also comprises: second sign is set in label list, and wherein, it is main tunnel or protection tunnel that second sign is used to indicate the tunnel at message place.
Preferably; when downlink transfer; if the protection type is 1+1; then switching and message are handled and are comprised: interrupt in the main tunnel of the first sign indication; and the tunnel at the second sign indication message place is under the situation in protection tunnel; if be used to indicate the main tunnel of the 3rd sign indication of main tunnel validity effective in the tunnel table, then be set to indicate main tunnel invalid, and be identified on the protection tunnel according to the 3rd after being provided with and carry out message transmissions by microcode the 3rd sign.
Preferably; when downlink transfer; if the protection type is 1+1; then switching and message are handled and are comprised: interrupt in the main tunnel of the first sign indication; and the second sign indication tunnel, message place is under the situation in main tunnel; if be used to indicate the main tunnel of the 3rd sign indication of main tunnel validity effective in the tunnel table, then be set to indicate main tunnel invalid by microcode the 3rd sign, and with packet loss.
Preferably; when downlink transfer; if the protection type is 1+1; then switching and message are handled and are comprised: do not interrupt in the main tunnel of the first sign indication; and the second sign indication tunnel, message place is under the situation in protection tunnel; if be used to indicate the main tunnel of the 3rd sign indication of main tunnel validity invalid in the tunnel table, then be set to indicate main tunnel effective by microcode the 3rd sign, and with packet loss.
Preferably; when downlink transfer; if the protection type is 1+1; then switching and message are handled and are comprised: do not interrupt in the main tunnel of the first sign indication; and the second sign indication tunnel, message place is under the situation in main tunnel; if the main tunnel of the 3rd sign indication of tunnel table is invalid, then is set to indicate main tunnel effective, and is identified at according to the 3rd after being provided with and carries out message transmissions on the main tunnel by microcode the 3rd sign.
According to another aspect of the present invention, provide a kind of tunnel switching device shifter.
According to tunnel of the present invention switching device shifter, be applied to comprise the communication system in main tunnel and the protection tunnel corresponding with it, said apparatus comprises: first is provided with module, is used at port table first sign being set, wherein, whether first sign is used to indicate main tunnel to interrupt; Handover module is used for according to first first of module setting being set and identifies the switching of carrying out between main tunnel and the protection tunnel; Processing module is used for message being handled on main tunnel or protection tunnel according to the switching result of handover module.
Preferably, said apparatus also comprises: second is provided with module, is used at label list second sign being set, and wherein, it is main tunnel or protection tunnel that second sign is used to indicate the tunnel at message place; Handover module also is used for according to first first sign and second that the module setting is set second of module setting being set and identifies the switching of carrying out between main tunnel and the protection tunnel.
Preferably, handover module comprises: updating submodule, be used for second sign that module is provided with being set according to first first sign and/or second that the module setting is set, and upgrade the 3rd sign, wherein, whether the 3rd sign is used to indicate main tunnel effective.
Preferably, processing module comprises: the first transmission submodule is used for message transmission on main tunnel; The second transmission submodule is used for message transmission on the protection tunnel; Abandon submodule, be used for packet loss.
By the present invention, employing is provided for indicating the method for the sign whether main tunnel interrupt in port table, having solved present handoff procedure need switch problem can be on protocol interaction consuming time by OAM alarm triggered APS protocol module, and then has shortened switching time.
Description of drawings
Accompanying drawing described herein is used to provide further understanding of the present invention, constitutes the application's a part, and illustrative examples of the present invention and explanation thereof are used to explain the present invention, do not constitute improper qualification of the present invention.In the accompanying drawings:
Fig. 1 is the flow chart according to the message processing method of the embodiment of the invention;
Fig. 2 is the flow chart of tunnel switching method under uplink situation according to the embodiment of the invention;
Fig. 3 is the flow chart of tunnel switching method under descending situation according to the embodiment of the invention;
Fig. 4 is first schematic diagram according to the tunnel switching method of the embodiment of the invention one;
Fig. 5 is second schematic diagram according to the tunnel switching method of the embodiment of the invention one;
Fig. 6 is first schematic diagram according to the tunnel switching method of the embodiment of the invention two;
Fig. 7 is second schematic diagram according to the tunnel switching method of the embodiment of the invention two;
Fig. 8 is the structured flowchart according to the tunnel switching device shifter of the embodiment of the invention;
Fig. 9 is the concrete structure block diagram according to the tunnel switching device shifter of the embodiment of the invention.
Embodiment
Functional overview
Consider that present handoff procedure switches the problem that can expend a large amount of time on protocol interaction to the APS protocol module again by the OAM alarm; the embodiment of the invention provides a kind of tunnel switching method and device; be applied to main tunnel and the quick switching of protecting the tunnel in the T-MPLS tunnel TMS monitoring and protecting; in port table, be provided for indicating main tunnel (also can be called work tunnel; this does not influence the essence of invention) sign of whether interrupting; being provided for indicating tunnel, message place in label list is main tunnel or protection tunnel mark; and the indication message still sends from the protection tunnel from main tunnel in the tunnel table; if disposed a large amount of T-MPLS tunnels on the port of equipment; when port breaks down; TMS alarm by OAM; flow on the network processing unit can be realized the quick switch function of T-MPLS protecting tunnel apace by microcode; and not by the APS module; therefore can shorten switching time, thereby can reduce the packet loss that produces owing to the time delay of switching.
In the hardware device that the embodiment of the invention relates to, comprise port table, label list and tunnel table, wherein, port table is used for describing the information of this each port of hardware device, label list is used to describe the information of the message relevant with this hardware device, and the tunnel table is used for describing the information in this each tunnel of hardware device.
Need to prove that under the situation of not conflicting, embodiment and the feature among the embodiment among the application can make up mutually.Describe the present invention below with reference to the accompanying drawings and in conjunction with the embodiments in detail.
Method embodiment
According to embodiments of the invention, provide a kind of tunnel switching method to be applied to comprise the communication system in main tunnel and the protection tunnel corresponding with this main tunnel.Fig. 1 is the flow chart according to the tunnel switching method of the embodiment of the invention, and as shown in Figure 1, this method comprises that following step S102 is to step S104:
Step S102 is provided with first sign in port table, wherein, whether first sign is used to indicate main tunnel to interrupt.
Step S104 identifies the switching of carrying out between main tunnel and the protection tunnel according to first of setting, and carries out message according to switching result on main tunnel or protection tunnel and handle.
By this embodiment, employing is provided for indicating the method for the sign whether main tunnel interrupt in port table, when TMS monitors link down on the tunnel, with the link down flag bit in the port table at the port place that monitors on the tunnel (promptly, the first above-mentioned sign) is set to 1 (representative effectively) (promptly, above-mentioned steps S102), can handle by microcode like this and carry out data flow is switched apace, and skip the APS module, solve present handoff procedure and need just can be transferred to the APS protocol module by OAM alarm and switch and on protocol interaction, to have expended the problem of a large amount of time, and then shortened switching time.
Describe the technical scheme that the T-MPLS tunnel TMS protection of the embodiment of the invention is switched fast from the angle of data forwarding below, below will be described in the concrete processing procedure of the execution of uplink situation and descending situation above-mentioned step S104 respectively.
Situation one: up processing
When uplink, if the protection type is 1:1, then switching and message processing procedure comprise:
Scene one: (promptly in first sign; the link down flag bit) under the situation that the main tunnel of indication interrupts; if the main tunnel of the 3rd sign (being used to indicate main tunnel validity) indication of tunnel table is effective; then be set to indicate main tunnel invalid by microcode the 3rd sign; and be identified at protection according to the 3rd after being provided with and carry out message transmissions (that is, following step S202 to step S224) on the tunnel.
Scene two: do not interrupt (promptly in the main tunnel of the first sign indication, recovery) under the situation, if the main tunnel of the 3rd sign indication of tunnel table is invalid, then be set to indicate main tunnel effective by microcode the 3rd sign, and be identified at message transmission on the main tunnel (that is, following step S202 to step S214, step S226 to step S234) according to the 3rd after being provided with.
Other scene for identical with existing handling process does not repeat them here.
Fig. 2 is the flow chart of tunnel switching method under uplink situation according to the embodiment of the invention, as shown in Figure 2, comprises that following step S202 is to step S234:
Step S202 according to ingress port information (configuration), inquires about the corresponding oral thermometer of going into, and obtains instance number.
Step S204 by instance number query case table, obtains private network tags and tunnel Taoist monastic name information.
Step S206 by tunnel Taoist monastic name inquiry tunnel table, obtains main tunnel (promptly; main protection) exports next and jump index information; and protection type (can be called tunnel type, this does not influence the essence of invention yet), the protection type here is meant 1+1 type or 1:1 type.
Step S208 judges tunnel type, if tunnel type is the 1+1 type, then proceeds to step S210, if tunnel type is the 1:1 type, then proceeds to step S212.
Step S210, the subsequent normal operations flow process that is to say, the porch in the tunnel, flow can be replicated two parts, portion mails to main tunnel, and portion mails to the protection tunnel, the exit in the tunnel, flow is judged respectively, if current main tunnel is effective, then the message that sends on the main tunnel is transmitted, the packet loss on the protection tunnel; If current main tunnel is invalid,, the message on the protection tunnel is transmitted then with the packet loss that sends on the main tunnel.
Step S212, next jumps the search index next skip list according to main tunnel exit, obtains outbound port information and (need to prove that under default situations, if main tunnel is effective, then message is from main tunnel transmission; If main tunnel is invalid, then message is from the protection tunnel transmission).
Step S214, outbound port information inquiry port table according to main tunnel, obtain link and whether have chain rupture sign (that is, the link down flag bit), if primary link interrupts, then proceed to step S216, if primary link recovers, that is, and when TMS monitors tunnel uplink recovery, the disconnected flag bit of link is set to 0 (it is invalid to represent) in the port table at the port place that monitors on the tunnel, then proceeds to step S226.
Step S216, this moment, the primary link interrupt flag bit was effective, that is and, main tunnel failure judges whether the current main tunnel of the sign of the 3rd in tunnel table indication is effective, if effective, then belongs to the situation of step S218, if invalid, then belongs to the situation of step S220.
Step S218, current main tunnel is effective in the tunnel table, proceeds to step S222.
Step S220, current main tunnel is invalid in the tunnel table, proceeds to step S224.
Step S222; the tunnel table is carried out microcode study; with main tunnel active position 0; that is, the 3rd sign is set to indicate main tunnel invalid, and this message winding is duplicated portion; again inquire about the tunnel table; find that main tunnel significance bit is invalid, then this message is sent from the protection tunnel, be back to step S204.
Step S224 transmits this message from the protection tunnel.
Step S226, this moment, the primary link interrupt flag bit was invalid, that is and, main tunnel restoration judges whether current main tunnel is effective in the tunnel table, if effective, then belongs to the situation of step S228, if invalid, then belongs to the situation of step S230.
Step S228, current main tunnel is effective in the tunnel table, proceeds to step S234.
Step S230, current main tunnel is invalid in the tunnel table, proceeds to step S232.
Step S232 carries out microcode study to the tunnel table, and with main tunnel active position 1, that is, the 3rd sign is set to indicate main tunnel effective, and this message winding is duplicated portion, inquires about the tunnel table again, is back to step S204.
Step S234 sends this message from main tunnel.
By this embodiment, provide under uplink situation, by in port table, being provided for indicating sign whether main tunnel interrupt and the quick switching processing method of message that the indication message still sends from the protection tunnel from main tunnel in the tunnel table.
Situation two: downlink processing
In downlink transmission process, except the first above-mentioned sign is set, second sign need be set in label list also, wherein, it is main tunnel or protection tunnel that second sign is used to indicate tunnel, message place.
When downlink transfer, if the protection type is 1+1, then switching and message are handled and are comprised:
Scene one: interrupt in the main tunnel of the first sign indication, and the second sign tunnel, indicating label place is under the situation in main tunnel, if the main tunnel of the 3rd sign indication of tunnel table is effective, then be set to indicate main tunnel invalid by microcode the 3rd sign, and with packet loss (that is, following step S301 to step S320).
Scene two: interrupt in the main tunnel of the first sign indication; and the second sign tunnel, indicating label place is under the situation in protection tunnel; if the main tunnel of the 3rd sign indication of tunnel table is effective; then be set to indicate main tunnel invalid by microcode the 3rd sign; and be identified at message transmission on the protection tunnel (that is, following step S301 to step S315, step S321 to step S324) according to the 3rd after being provided with.
Scene three: in the main tunnel restoration of the first sign indication, and the second sign tunnel, indicating label place is under the situation in main tunnel, if the main tunnel of the 3rd sign indication of tunnel table is invalid, then be set to indicate main tunnel effective by microcode the 3rd sign, and be identified at message transmission on the main tunnel (that is, following step S301 to step S314, step S315 to step S329) according to the 3rd after being provided with.
Scene four: in the main tunnel restoration of the first sign indication; and the second sign tunnel, indicating label place is under the situation in protection tunnel; if the main tunnel of the 3rd sign indication of tunnel table is invalid; then be set to indicate main tunnel effective by microcode the 3rd sign; and with packet loss (that is, following step S301 to step S314, step S325 to step S335).
Other scene for identical with existing handling process does not repeat them here.
Fig. 3 is the flow chart of tunnel switching method under descending situation according to the embodiment of the invention, as shown in Figure 3, comprises that following step S301 is to step S335:
Step S301 receives the label bag, analyzes the public network label and the private network tags information of packet from packet.
Step S302 is by public network searching label label list.
Step S303 judges whether this public network label and label list mate, and are under the situation that is in judged result, proceed to step S304, is under the situation not in judged result, proceeds to step S308.
Step S304 checks the whether set of tunnel end mark,, judges whether the terminal flag bit in tunnel effective in the label list, is under the situation that is in judged result, proceeds to step S305 that is, judged result for situation not under, proceed to step S306.
Step S305, this moment, expression arrived the tunnel end, and obtaining tunnel, label place is the protection tunnel or the information in main tunnel, by private network tags inquiry local label table, proceeds to step S307.
Step S306, the terminal flag bit in tunnel this moment is invalid, carries out the centre and transmits processing, that is, transmit by the public network label.
Step S307 judges whether this public network label and label list mate, and are under the situation that is in judged result, proceed to step S309, is under the situation not in judged result, proceeds to step S308.
Step S308 directly abandons this packet.
Step S309 obtains instance number and tunnel Taoist monastic name information from label list, by tunnel Taoist monastic name inquiry tunnel table, obtain the ingress port information and the protection type in main tunnel, and the protection type here is meant 1+1 type or 1:1 type.
Step S310 judges tunnel type, if tunnel type is the 1:1 type, then proceeds to step S311, if tunnel type is the 1+1 type, then proceeds to step S312.
Step S311, follow-up normal process that is to say, when the protection type is the 1:1 type, because the type is to switch at up going port, therefore, does not do any operation, directly transmits.
Step S312, obtaining current tunnel by the public network label list still is the information of protecting on the tunnel in main tunnel, and obtains master tunnel, current tunnel by the tunnel table and effectively still protect the tunnel effective.
Step S313 obtains work tunnel downstream ingress module No. information by the tunnel table.
Step S314 is according to the ingress port information in main tunnel (that is, inlet module number) inquiry port table, obtain whether chain rupture information of primary link, that is, judge whether the interrupt flag bit of primary link is effective, if primary link interrupts, then proceed to step S315, if primary link recovers, that is, and when TMS monitors tunnel uplink recovery, link down flag bit in the port table at the port place that monitors on the tunnel is set to 0 (it is invalid to represent), then proceeds to step S325.
Step S315, this moment, the primary link interrupt flag bit was effective, promptly; main tunnel failure judges that according to second sign message is in main tunnel or on the protection tunnel, if message is on main tunnel; then proceed to step S316, if message then proceeds to step S321 on the protection tunnel.
Step S316, this moment message on main tunnel, judge in the tunnel table whether the current main tunnel of the 3rd sign indication is effective, if effective, then belong to the situation of step S317, if invalid, then belong to the situation of step S318.
Step S317, current main tunnel is effective in the tunnel table, proceeds to step S319.
Step S318, current main tunnel is invalid in the tunnel table, proceeds to step S320.
Step S319 carries out microcode study to the tunnel table, and with main tunnel active position 0, that is, the 3rd sign is set to indicate main tunnel invalid (the protection tunnel is effective).
Step S320 is with packet loss.
Step S321, this moment message on the protection tunnel, judge whether current main tunnel effective in the tunnel table, if effective, then belong to the situation of step S322, if invalid, then belong to the situation of step S323.
Step S322, current main tunnel is effective in the tunnel table, proceeds to step S324.
Step S323, current main tunnel invalid (the protection tunnel is effective) proceeds to step S330 in the tunnel table.
Step S324 carries out microcode study to the tunnel table, and with main tunnel active position 0, that is, the 3rd sign is set to indicate main tunnel invalid, proceeds to step S330.
Step S325, this moment, the primary link interrupt flag bit was invalid, that is and, main tunnel restoration is judged message in main tunnel or on the protection tunnel, if message on main tunnel, then proceeds to step S326, if message then proceeds to step S331 on the protection tunnel.
Step S326, this moment message on main tunnel, judge whether the current main tunnel of the sign indication of the 3rd in the tunnel table effective, if effective, then belong to the situation of step S327, if invalid, then belong to the situation of step S328.
Step S327, current main tunnel is effective in the tunnel table, proceeds to step S330.
Step S328, current main tunnel is invalid in the tunnel table, proceeds to step S329.
Step S329 carries out microcode study to the tunnel table, and with main tunnel active position 1, that is, the 3rd sign is set to indicate main tunnel effective, proceeds to step S330.
Step S330; follow-up normal process; that is, message is directly transmitted, (be need to prove and do not abandon; under normal circumstances; if the protection type is the 1+1 type, when descending, if the tunnel table indicates main tunnel effective; and the message that receives is the message that the protection tunnel transmits, and then this message is directly abandoned).
Step S331, this moment message on the protection tunnel, judge whether current main tunnel effective in the tunnel table, if effective, then belong to the situation of step S332, if invalid, then belong to the situation of step S333.
Step S332, current main tunnel is effective in the tunnel table, proceeds to step S335.
Step S333, current main tunnel invalid (the protection tunnel is effective) proceeds to step S334 in the tunnel table.
Step S334 carries out microcode study to the tunnel table, and with main tunnel active position 1, that is, the 3rd sign is set to indicate main tunnel effective, proceeds to step S335.
Step S335 is with packet loss.
By this embodiment; providing under descending situation, is main tunnel or protection tunnel mark are carried out quick hand-off process to message method by being provided for indicating the sign whether main tunnel interrupt and being provided for indicating tunnel, message place in port table in label list.
The message processing scheme simple and flexible of the above embodiments directly strides across the APS module, and TMS directly writes the disconnected sign of link in port table, and data flow can directly be carried out microcode and be switched fast.Owing to use the microcode of network processing unit to switch fast, data flow just can be carried out the masterslave switchover in T-MPLS tunnel when the TMS of OAM alarm, rather than will transmit list accordingly by driving and make amendment waiting for a period of time, therefore, switch convenient, timely.
Be described in detail below in conjunction with the implementation procedure of example the embodiment of the invention.
Embodiment one
Fig. 4 is first schematic diagram according to the tunnel switching method of the embodiment of the invention one; Fig. 5 is second schematic diagram according to the tunnel switching method of the embodiment of the invention one, below in conjunction with Fig. 4 and Fig. 5 above-mentioned handoff procedure when the protection type is 1+1 is described (what mainly describe is descending switching).
As the description to above-mentioned Fig. 2, the transmission of data flow is chosen the flow that transmits in main tunnel in tunnel tail-end and is transmitted as shown in Figure 4 under the normal condition, abandons the flow that the protection tunnel transmits; In the prior art, when breaking down, because monitoring link, OAM breaks, alarming APS module execution switching needs certain hour, in this time, the flow in main tunnel opens circuit, and simultaneously, the flow on the protection tunnel is because the not change of the state of tunnel table, therefore, the flow of protection on the tunnel also can be dropped, like this, cause OAM alarm APS switch during this period of time in message all be dropped; By this embodiment; use microcode dynamically to switch; when OAM monitors link when disconnected (as shown in Figure 5); port table is carried out the disconnected sign of operation setting link; data flow on the protection tunnel is passed through from the tunnel; note abnormalities, directly carry out the switching of tunnel state, flow is switched on the protection tunnel.
By this embodiment, when the protection type is 1+1, under the situation of main tunnel failure, come the data flow (that is, message) in self-shield tunnel directly to transmit by the protection tunnel, avoided the situation that message is dropped in OAM alarms APS switching during this period of time.
Embodiment two
Fig. 6 is first schematic diagram according to the tunnel switching method of the embodiment of the invention two; Fig. 7 is second schematic diagram according to the tunnel switching method of the embodiment of the invention two, below in conjunction with Fig. 6 and Fig. 7 above-mentioned handoff procedure when the protection type is 1:1 is described (what mainly describe is up switching).
As the description to above-mentioned Fig. 3, the transmission of data flow is chosen effective tunnel (under initial situation, main tunnel is effective, and the protection tunnel is invalid) as shown in Figure 6 under the normal condition according to tunnel state when the tunnel head; In the prior art, when breaking down, because monitoring link, OAM breaks, alarming APS module execution switching needs certain hour, in this time, the flow in main tunnel opens circuit, and simultaneously, the flow on the protection tunnel is because the not change of the state of tunnel table, therefore, the flow of protection on the tunnel also can be dropped, like this, cause OAM alarm APS switch during this period of time in message all be dropped; By this embodiment; use microcode dynamically to switch; when OAM monitors link disconnected (as shown in Figure 7); port table is carried out the disconnected sign of operation setting link; data flow on the protection tunnel is passed through from the tunnel; note abnormalities, directly carry out the switching of tunnel state, flow is switched on the protection tunnel.
By this embodiment, when the protection type is 1:1, under the situation of main tunnel failure, data flow (that is, message) is transmitted by the protection tunnel, avoided the situation that message is dropped in OAM alarms APS switching during this period of time.
Device embodiment
According to embodiments of the invention, a kind of tunnel switching device shifter is provided, be applied to comprise the communication system in main tunnel and the protection tunnel corresponding with it, this device can be used to realize above-mentioned tunnel switching method.Fig. 8 is the structured flowchart according to the tunnel switching device shifter of the embodiment of the invention, and as shown in Figure 8, this device comprises: first is provided with module 82, second is provided with module 84, handover module 88, processing module 86, below said structure is described.
First is provided with module 82, is used at port table first sign being set, and wherein, whether first sign is used to indicate main tunnel to interrupt; Second is provided with module 84, is used at label list second sign being set, and wherein, it is main tunnel or protection tunnel that second sign is used to indicate tunnel, message place; Handover module 88 is connected to first and module 82 and second is set module 84 is set, and is used for according to first first sign and/or second that module 82 is provided with being set and second sign that module 84 is provided with is set carries out switching between main tunnel and the protection tunnel; Processing module 86; be connected to handover module 88; be used on main tunnel or protection tunnel, message being handled according to the switching result of handover module 88; wherein; under uplink situation; handover module 88 is provided with first of module 82 settings according to first and identifies the switching of carrying out between main tunnel and the protection tunnel, and under descending situation, handover module 88 is provided with second of module 84 settings according to first first sign and second that module 82 settings are set and identifies the switching of carrying out between main tunnel and the protection tunnel.
Fig. 9 is the concrete structure block diagram according to the tunnel switching device shifter of the embodiment of the invention, as shown in Figure 9, handover module 88 comprises updating submodule 92, and processing module 86 comprises: the first transmission submodule 94, second transmits submodule 96, abandons submodule 98, below said structure is described.
Updating submodule 92 is used for according to first first sign and/or second that the module setting is set second sign that module is provided with being set, and upgrades the 3rd sign, and wherein, whether the 3rd sign is used to indicate main tunnel effective.The first transmission submodule 94 is used for message transmission on main tunnel; The second transmission submodule 96 is used for message transmission on the protection tunnel; Abandon submodule 98, be used for packet loss.
By this embodiment; provide and in port table, to be provided for the sign of indicating main tunnel whether to interrupt; and to be provided for indicating tunnel, message place in label list be that main tunnel or protection tunnel mark realize device that message is handled; solved present handoff procedure and switched and on protocol interaction, to have expended the problem of a large amount of time to the APS protocol module again, and then shortened switching time by the OAM alarm.
To sum up; pass through the above embodiment of the present invention; when the user is configured in when having disposed many tunnels on the port; if opening circuit appears in the TMS monitoring port; data flow can be switched apace by microcode; solved at present and interruption occurred because OAM monitors link; reinform to APS and switch; need the regular hour; and this part the time postpone a meeting or conference and cause flow the problem of certain packet loss to occur; and can alleviate this situation effectively by the direct switching of microcode; dynamically switch fast by the TMS monitoring and protecting, can shorten by OAM and alarm the required time of APS switching, particularly evident under the more situation of setting tunnel number on the port; can significantly reduce the time of switching, make packet loss be reduced to minimum.
Obviously, those skilled in the art should be understood that, above-mentioned each module of the present invention or each step can realize with the general calculation device, they can concentrate on the single calculation element, perhaps be distributed on the network that a plurality of calculation element forms, alternatively, they can be realized with the executable program code of calculation element, thereby, they can be stored in the storage device and carry out by calculation element, perhaps they are made into each integrated circuit modules respectively, perhaps a plurality of modules in them or step are made into the single integrated circuit module and realize.Like this, the present invention is not restricted to any specific hardware and software combination.
The above is the preferred embodiments of the present invention only, is not limited to the present invention, and for a person skilled in the art, the present invention can have various changes and variation.Within the spirit and principles in the present invention all, any modification of being done, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (12)

1. tunnel switching method is applied to comprise the communication system in main tunnel and the protection tunnel corresponding with described main tunnel it is characterized in that described method comprises:
First sign is set in port table, and wherein, whether described first sign is used to indicate described main tunnel to interrupt;
Identify the switching of carrying out between described main tunnel and the described protection tunnel according to described first of setting, and on described main tunnel or described protection tunnel, carry out message according to switching result and handle.
2. method according to claim 1 is characterized in that, when uplink, if the protection type is 1:1, then described switching and described message are handled and comprised:
Under the situation of the described main tunnel interruption of the described first sign indication; if be used to indicate the described main tunnel of the 3rd sign indication of main tunnel validity effective in the tunnel table; then be set to indicate described main tunnel invalid, and be identified on the described protection tunnel according to the described the 3rd after being provided with and carry out message transmissions by described the 3rd sign of microcode.
3. method according to claim 1 is characterized in that, when uplink, if the protection type is 1:1, then described switching and described message are handled and comprised:
Identify under the situation of not interrupting in the described main tunnel of indication described first, if be used to indicate the described main tunnel of the 3rd sign indication of main tunnel validity invalid in the tunnel table, then be set to indicate described main tunnel effective, and be identified on the described main tunnel according to the described the 3rd after being provided with and carry out message transmissions by described the 3rd sign of microcode.
4. method according to claim 1 is characterized in that, also comprises:
Second sign is set in label list, and wherein, it is described main tunnel or described protection tunnel that described second sign is used to indicate the tunnel at message place.
5. method according to claim 4 is characterized in that, when downlink transfer, if the protection type is 1+1, then described switching and described message are handled and comprised:
Interrupt in the described main tunnel of the described first sign indication; and the tunnel at the described message of described second sign indication place is under the situation in described protection tunnel; if be used to indicate the described main tunnel of the 3rd sign indication of main tunnel validity effective in the tunnel table; then be set to indicate described main tunnel invalid, and be identified on the described protection tunnel according to the described the 3rd after being provided with and carry out message transmissions by described the 3rd sign of microcode.
6. method according to claim 4 is characterized in that, when downlink transfer, if the protection type is 1+1, then described switching and described message are handled and comprised:
Interrupt in the described main tunnel of the described first sign indication, and the described second sign indication tunnel, described message place is under the situation in described main tunnel, if be used to indicate the described main tunnel of the 3rd sign indication of main tunnel validity effective in the tunnel table, then be set to indicate described main tunnel invalid by described the 3rd sign of microcode, and with described packet loss.
7. method according to claim 4 is characterized in that, when downlink transfer, if the protection type is 1+1, then described switching and described message are handled and comprised:
Do not interrupt in the described main tunnel of the described first sign indication; and the described second sign indication tunnel, described message place is under the situation in described protection tunnel; if be used to indicate the described main tunnel of the 3rd sign indication of main tunnel validity invalid in the tunnel table; then be set to indicate described main tunnel effective by described the 3rd sign of microcode, and with described packet loss.
8. method according to claim 4 is characterized in that, when downlink transfer, if the protection type is 1+1, then described switching and described message are handled and comprised:
Do not interrupt in the described main tunnel of the described first sign indication, and the described second sign indication tunnel, described message place is under the situation in described main tunnel, if the described main tunnel of the 3rd sign indication of tunnel table is invalid, then be set to indicate described main tunnel effective, and be identified on the described main tunnel according to the described the 3rd after being provided with and carry out message transmissions by described the 3rd sign of microcode.
9. tunnel switching device shifter is applied to comprise the communication system in main tunnel and the protection tunnel corresponding with it it is characterized in that described device comprises:
First is provided with module, is used at port table first sign being set, and wherein, whether described first sign is used to indicate described main tunnel to interrupt;
Handover module is used for according to described first described first of module setting being set and identifies the switching of carrying out between described main tunnel and the described protection tunnel;
Processing module is used for described message being handled on described main tunnel or described protection tunnel according to the switching result of described handover module.
10. device according to claim 9 is characterized in that, described device also comprises:
Second is provided with module, is used at label list second sign being set, and wherein, it is described main tunnel or described protection tunnel that described second sign is used to indicate the tunnel at message place;
Described handover module also is used for according to described first described first sign and described second that the module setting is set described second of module setting being set and identifies the switching of carrying out between described main tunnel and the described protection tunnel.
11. device according to claim 10 is characterized in that, described handover module comprises:
Updating submodule is used for according to described first described first sign and/or described second that the module setting is set described second sign that module is provided with being set, and upgrades the 3rd sign, and wherein, whether described the 3rd sign is used to indicate described main tunnel effective.
12. device according to claim 9 is characterized in that, described processing module comprises:
The first transmission submodule is used for the described message of transmission on described main tunnel;
The second transmission submodule is used for the described message of transmission on described protection tunnel;
Abandon submodule, be used for described packet loss.
CN2008101815790A 2008-11-28 2008-11-28 Tunnel switching method and device Active CN101425972B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2008101815790A CN101425972B (en) 2008-11-28 2008-11-28 Tunnel switching method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2008101815790A CN101425972B (en) 2008-11-28 2008-11-28 Tunnel switching method and device

Publications (2)

Publication Number Publication Date
CN101425972A true CN101425972A (en) 2009-05-06
CN101425972B CN101425972B (en) 2011-05-25

Family

ID=40616315

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2008101815790A Active CN101425972B (en) 2008-11-28 2008-11-28 Tunnel switching method and device

Country Status (1)

Country Link
CN (1) CN101425972B (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2011029249A1 (en) * 2009-09-09 2011-03-17 中兴通讯股份有限公司 Protection method and device for an ethernet tunnel
CN102006222A (en) * 2010-11-16 2011-04-06 中兴通讯股份有限公司 Service link switching method and service link switching device
CN102025521A (en) * 2010-12-20 2011-04-20 中兴通讯股份有限公司 Message broadcasting method and device
WO2011050665A1 (en) * 2009-11-02 2011-05-05 中兴通讯股份有限公司 Method and device for implementing fast rerouting of ports
CN103716220A (en) * 2012-09-28 2014-04-09 杭州华三通信技术有限公司 Data transmission method and device
CN101656630B (en) * 2009-09-09 2015-09-16 中兴通讯股份有限公司 A kind of service protecting method and system
CN108023891A (en) * 2017-12-12 2018-05-11 北京安博通科技股份有限公司 A kind of tunnel switching method based on IPSEC, device and gateway
CN108023748A (en) * 2016-11-03 2018-05-11 北京创昱科技有限公司 A kind of micro-capacitance sensor communication control method, apparatus and system
CN108924046A (en) * 2018-07-16 2018-11-30 烽火通信科技股份有限公司 A kind of guard method and system of gre tunneling bearer service
CN112751741A (en) * 2019-10-31 2021-05-04 中兴通讯股份有限公司 Message transmission method and device

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2011029249A1 (en) * 2009-09-09 2011-03-17 中兴通讯股份有限公司 Protection method and device for an ethernet tunnel
CN101656630B (en) * 2009-09-09 2015-09-16 中兴通讯股份有限公司 A kind of service protecting method and system
WO2011050665A1 (en) * 2009-11-02 2011-05-05 中兴通讯股份有限公司 Method and device for implementing fast rerouting of ports
CN102006222A (en) * 2010-11-16 2011-04-06 中兴通讯股份有限公司 Service link switching method and service link switching device
CN102025521A (en) * 2010-12-20 2011-04-20 中兴通讯股份有限公司 Message broadcasting method and device
CN102025521B (en) * 2010-12-20 2014-08-13 中兴通讯股份有限公司 Message broadcasting method and device
CN103716220A (en) * 2012-09-28 2014-04-09 杭州华三通信技术有限公司 Data transmission method and device
CN103716220B (en) * 2012-09-28 2017-08-22 新华三技术有限公司 A kind of data transmission method and its device
CN108023748A (en) * 2016-11-03 2018-05-11 北京创昱科技有限公司 A kind of micro-capacitance sensor communication control method, apparatus and system
CN108023748B (en) * 2016-11-03 2023-08-01 紫石能源有限公司 Micro-grid communication control method, device and system
CN108023891A (en) * 2017-12-12 2018-05-11 北京安博通科技股份有限公司 A kind of tunnel switching method based on IPSEC, device and gateway
CN108924046A (en) * 2018-07-16 2018-11-30 烽火通信科技股份有限公司 A kind of guard method and system of gre tunneling bearer service
CN112751741A (en) * 2019-10-31 2021-05-04 中兴通讯股份有限公司 Message transmission method and device
CN112751741B (en) * 2019-10-31 2023-09-15 中兴通讯股份有限公司 Message transmission method and device

Also Published As

Publication number Publication date
CN101425972B (en) 2011-05-25

Similar Documents

Publication Publication Date Title
CN101425972B (en) Tunnel switching method and device
CN100429889C (en) System and method for detecting failure and route reconnection in communication network
CN101189838A (en) Ring network system, failure recovery method, failure detection method, node, and node program
US7660236B2 (en) System and method of multi-nodal APS control protocol signaling
CN1949700B (en) Method and apparatus for mixed network protection
JPH07297854A (en) Destination fixing connection management system for switching network, node management system and node
EP2506501A1 (en) Method and system for implementing ring network protection
CN111431786B (en) Steering mode ring protection method of Flexe ring network in SPN
CN102780635A (en) Method for realizing protection switching based on TRILL (transparent interconnection of lots of link) network, TOR (top of rack) switchboard and system
WO2011095101A1 (en) Linear 1: n protection method, device and system for packet transport network
CN102857316B (en) A kind of method and system realizing source looped network protection
EP2312792A1 (en) Protection protocol device for network node and method for processing protection switching thereof
CN100531092C (en) Intelligent optical network business re-routing trigging method
CN101394261A (en) State transition method and network node device
US20060034203A1 (en) Mobile communication system and service control device
RU2577782C2 (en) Wireless receiving device, method of sending fault information and method for notification of fault information
CN111130943B (en) Method for realizing fast ring network switching, switch and computer readable storage medium
CN103516534A (en) Method for realizing dual-homing protection switching, and home node
CN102882779A (en) VRRP (Virtual Router Redundancy Protocol) advertisement link protection method and system
CN102104534B (en) Method and system for protecting multicast service
CN103297259A (en) Method and device for protecting point-to-multipoint multicast service
EP2871786B1 (en) Single-optical fibre fault handling method and device
CN102223241B (en) Method and equipment for informing network change
CN101986620A (en) Rapid switching method, device and system of source-routed ring protection
CN111343659A (en) Method for processing network exception, communication system and related processing unit

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