[go: up one dir, main page]

CN104836729B - A kind of method of linear protection switching, PE equipment and system - Google Patents

A kind of method of linear protection switching, PE equipment and system Download PDF

Info

Publication number
CN104836729B
CN104836729B CN201510257967.2A CN201510257967A CN104836729B CN 104836729 B CN104836729 B CN 104836729B CN 201510257967 A CN201510257967 A CN 201510257967A CN 104836729 B CN104836729 B CN 104836729B
Authority
CN
China
Prior art keywords
state
equipment
local
far
wtr
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
CN201510257967.2A
Other languages
Chinese (zh)
Other versions
CN104836729A (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.)
Raisecom Technology Co Ltd
Original Assignee
Raisecom Technology 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 Raisecom Technology Co Ltd filed Critical Raisecom Technology Co Ltd
Priority to CN201510257967.2A priority Critical patent/CN104836729B/en
Publication of CN104836729A publication Critical patent/CN104836729A/en
Application granted granted Critical
Publication of CN104836729B publication Critical patent/CN104836729B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/28Routing or path finding of packets in data switching networks using route fault recovery
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/22Alternate routing

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The present invention provides a kind of method of linear protection switching, PE equipment and system, when being applied to local PE equipment and far-end PE equipment while switching FS states or manual switching MS states in pressure or waiting for reply WTR states, including:When local PE equipment executes clear operation, local PE equipment enters reserve link without request NR P-states, selects reserve link transmission services;NR P-states are sent to far-end PE equipment.Technical solution of the present invention enhance network can management and control performance, effectively prevent the problem of service interruption of the longest 5s occurred in operating network development process.

Description

Linear protection switching method, PE equipment and system
Technical Field
The present invention relates to network communication technologies, and in particular, to a method, a Provider Edge (PE) device, and a system for linear protection switching.
Background
The reliability requirements of the telecommunications level of the communication system include high reliability requirements of the network, and the service carried by the telecommunications network needs to meet the network failure recovery performance requirement of 50 ms. In order to achieve service self-healing performance required by a carrier level on Packet Transport Network (PTN) equipment, a G.8031 linear protection switching standard is provided for related standard organizations such as Ethernet services ITU-T. The linear protection switching is a protection mechanism for distributing corresponding protection resources for the working resources, and the switching of the network resources is realized by adopting a predictable mode, so that an operator can conveniently plan, deploy and manage the network, and the operation of a carrier level is realized. Before the fault occurs, a standby entity is assigned to the working entity, and when the network fault occurs, the standby entity is quickly switched by adopting a linear protection switching strategy, so that the quick self-healing of the service is realized.
The g.8031 standard adopts an Automatic Protection Switching (APS) protocol: the local terminal equipment sends an APS message to the opposite terminal equipment after the APS state is changed, the opposite terminal equipment judges the state carried by the APS protocol, the local APS state change can be triggered to process, and if not, the local APS state change is directly skipped. Such a mechanism and the implementation of the state machine of the current g.8031 standard will affect the protection switching performance of the two-end device of the g.8031 standard in the interoperation scenario, and service interruption of at most 5s may occur. Fig. 1 is a specific example of a maximum 5s service interruption that may occur in an interworking scenario.
As shown in fig. 1, a linear protection environment of a return mode is built, and assuming that an active link 1(line1) and a standby link 2(line2) are provided between a network-side edge 1(PE1) device and a PE2 device, the following operations are performed: after a Forced Switching (FS) command is executed on the PE1 device, the service protected by the linear protection switching mechanism is switched from the primary line1 to the standby line 2; and then executing an FS command on the PE2 device, where, according to the g.8031 protocol, the services on the PE1 device and the PE2 device are both carried on the standby line2, the PE1 device is in an FS state, and the PE2 device is in an FS state.
As shown in fig. 2, a CLEAR (CLEAR) command is executed on the PE1 device, according to the g.8031 protocol, in the return mode, the local PE1 device enters an active link unsolicited (NR-W) state, the service returns to the active link line1 for carrying, and locally and continuously sends 3 APS packets identifying the NR-W state to the opposite-end PE2 device. The state of the PE2 device is FS, and after receiving three APS messages in NR-W state, according to the g.8031 protocol, the state machine does not perform state operation, and is still in FS state, and the service is carried on the standby link line 2. Up to this point, the working link selection for the local and peer ends has deviated. This state is maintained until receiving APS protocol packets sent by the peer PE2 device at 5s intervals, and the standby link is not selected as the working link.
As described above, in the scenario of performing linear protection switching by using g.8031 protocol, a service interruption situation of at most 5s (i.e., APS protocol packet transmission interval) may occur in the process of two-end interoperation, which will seriously affect the promised service quality of the protected service in the actual networking application.
Disclosure of Invention
In order to solve the technical problem, the invention provides a linear protection switching method, a PE device and a system, which can enhance the controllable performance of a network and effectively avoid the longest service interruption of 5s during the network operation.
In order to achieve the object of the present invention, the present invention provides a method for linear protection switching, which is applied when a local PE device and a remote PE device are in a forced handover (FS) state, a manual handover (MS) state, or a wait for reply (WTR) state, and includes:
when the local PE equipment executes the clearing operation, the local PE equipment enters a standby link non-request (NR-P) state and selects a standby link to transmit services;
and sending the NR-P state to the far-end PE equipment.
Further, the method further comprises:
when the far-end PE equipment executes clearing operation, the far-end PE equipment enters an NR-P state and sends the NR-P state to local PE equipment;
the local PE equipment enters an NR-W state and sends the NR-W state to the remote PE equipment;
and the far-end PE equipment enters an NR-W state and selects the main link to transmit the service.
Further, when the local PE device and the remote PE device are both in a WTR state, the method further includes:
and respectively monitoring the time length of the local PE equipment and the far-end PE equipment in the WTR state.
Further, the method also includes, after:
when the time length of the WTR state monitored by the local PE equipment is greater than or equal to a first preset threshold value, the local PE equipment enters an NR-P state and sends the NR-P state to the far-end PE equipment; the local PE equipment still uses the standby link to transmit services;
when the time length of the WTR state monitored by the far-end PE equipment is greater than or equal to a second preset threshold value, the far-end PE equipment enters an NR-P state and sends the NR-P state to the local PE equipment; the local PE equipment enters an NR-W state and sends the NR-W state to the remote PE equipment; the far-end PE equipment enters an NR-W state, and a main link is selected for transmitting services; or,
when the time length of the WTR state monitored by the far-end PE equipment is greater than or equal to a second preset threshold value, the far-end PE equipment enters an NR-P state and sends the NR-P state to the local PE equipment; the remote E equipment still uses the standby link to transmit the service;
when the time length of the WTR state monitored by the local PE equipment is greater than or equal to a first preset threshold value, the local PE equipment enters an NR-P state and sends the NR-P state to the far-end PE equipment; the far-end PE equipment enters an NR-W state and sends the NR-W state to the local PE equipment; and the local PE equipment enters an NR-W state and selects a main link to transmit the service.
Further, the entering the NR-P state comprises: and modifying the state of an active link no request (NR-W) in the state machine defined by G.8031 into an NR-P state.
The invention also provides a network side edge PE device for linear protection switching, which is applied when the PE device and a far-end PE device are simultaneously in a forced switching FS state, a manual switching MS state or a waiting for replying a WTR state, and is characterized by comprising the following steps: a state selection unit and a transceiving unit; wherein,
the state selection unit is used for entering a standby link non-request NR-P state and selecting a standby link to transmit services when the clearing operation is locally executed;
and the receiving and sending unit is used for sending the NR-P state to the far-end PE equipment so as to prompt the far-end PE equipment to still use the standby link for transmitting the service.
Further, the transceiver unit is further configured to: receiving an NR-P state sent by the far-end PE equipment which executes clearing operation and enters the NR-P state; sending the main link non-request NR-W state to the far-end PE equipment to prompt the far-end PE equipment to enter the NR-W state, and selecting a main link to transmit services;
the state selection unit is further configured to: the NR-W state is entered.
Further, the monitoring unit is further included for: and when the PE equipment of the PE equipment and the far-end PE equipment are both in the WTR state, monitoring the time length of the PE equipment in the WTR state.
Further, the state selection unit is further configured to: when the monitoring unit monitors that the time length of the WTR state is greater than or equal to a preset threshold value of the PE device to which the monitoring unit belongs, the monitoring unit enters an NR-P state; when the receiving and sending unit receives the NR-P state sent by the far-end PE equipment, the receiving and sending unit enters an NR-W state;
the receiving and sending unit is further configured to send the NR-P status to the far-end PE device to prompt the far-end PE device to still use the standby link to transmit the service; receiving the NR-P state sent by the far-end PE equipment; and sending the NR-W state to the far-end PE equipment to prompt the far-end PE equipment to enter the NR-W state, and selecting a main link for transmitting the service.
The invention also provides a linear protection switching system, which is applied to the situation that the local network side PE equipment and the far-end PE equipment are simultaneously in a forced switching FS state, a manual switching MS state or a waiting reply WTR state, and is characterized by comprising the following steps: local PE equipment and remote PE equipment; wherein,
the local PE equipment is used for entering a standby link non-request NR-P state and selecting a standby link to transmit services when the local PE equipment executes clearing operation; sending the NR-P state to the far-end PE equipment;
and the far-end PE equipment is used for receiving the NR-P state sent by the local PE equipment, and after receiving the NR-P state, the state operation is not carried out, and the standby link is still used for transmitting the service.
Further, the remote PE device is further configured to:
when the far-end PE equipment executes clearing operation, entering an NR-P state and sending the NR-P state to local PE equipment; entering an NR-W state, and selecting a main link to transmit service;
the local PE device is further configured to enter an NR-W state and send the NR-W state to the remote PE device.
Further, when both the local PE device and the remote PE device are in a WTR state, the local PE device is further configured to monitor a time length of the local PE device itself in the WTR state;
the remote PE device is further configured to: and monitoring the time length of the WTR state of the self-monitoring device.
Further, when the time length for the local PE device to monitor the WTR state is greater than or equal to a first preset threshold, the local PE device is further configured to: entering an NR-P state and sending the NR-P state to the far-end PE equipment; the local PE equipment still uses the standby link to transmit services; the local PE equipment enters an NR-W state and sends the NR-W state to the remote PE equipment;
the remote PE device is further configured to: still using the standby link to transmit the service; when the time length of the WTR state monitored by the far-end PE equipment is greater than or equal to a second preset threshold value, the far-end PE equipment enters an NR-P state and sends the NR-P state to the local PE equipment; the far-end PE equipment enters an NR-W state, and a main link is selected for transmitting services; or,
when the time length of the far-end PE device monitoring the WTR state is greater than or equal to a second preset threshold, the far-end PE device is further configured to: entering an NR-P state and sending the NR-P state to the local PE equipment; the far-end PE still uses the standby link to transmit the service; the far-end PE equipment enters an NR-W state and sends the NR-W state to the local PE equipment;
the local PE equipment is also used for transmitting the service by using the standby link; when the time length of the WTR state monitored by the local PE equipment is greater than or equal to a first preset threshold value, the local PE equipment enters an NR-P state and sends the NR-P state to the far-end PE equipment; and the local PE equipment enters an NR-W state and selects a main link to transmit the service.
The technical scheme of the invention is applied to the situation that the local PE equipment and the far-end PE equipment are in a forced FS switching state or a manual MS switching state or a WTR waiting state, and comprises the following steps: when the local PE equipment executes the clearing operation, the local PE equipment enters a standby link non-request NR-P state and selects a standby link to transmit services; and sending the NR-P state to the far-end PE equipment. The technical scheme of the invention enhances the controllable performance of the network and effectively avoids the problem of service interruption of the longest 5s in the process of operating the network.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the invention without limiting the invention. In the drawings:
FIG. 1 is a schematic diagram of a prior art linear protected environment for building a return model;
fig. 2 is a schematic diagram of a conventional linear protection switching method;
fig. 3 is a flowchart of a linear protection switching method according to the present invention;
fig. 4 is a schematic structural diagram of a linear protection switching PE device according to the present invention;
FIG. 5 is a diagram illustrating a first embodiment of PE device state negotiation at two ends according to the present invention;
FIG. 6 is a diagram illustrating a second embodiment of PE device state negotiation at two ends according to the present invention;
fig. 7 is a schematic structural diagram of a linear protection switching system according to the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, embodiments of the present invention will be described in detail below with reference to the accompanying drawings. It should be noted that the embodiments and features of the embodiments in the present application may be arbitrarily combined with each other without conflict.
Fig. 3 is a flowchart of a linear protection switching method of the present invention, which is applied to a scenario when a local network side edge (PE) device and a remote PE device are in a forced handover (FS) state, a manual handover (MS) state, or a wait for reply (WTR) state at the same time, and the local PE device and the remote PE device transmit traffic on a standby link, as shown in fig. 3, including:
step 301: when the local PE equipment executes the clearing operation, the local PE equipment enters a standby link non-request (NR-P) state and still selects a standby link to transmit services;
wherein entering the NR-P state comprises: and modifying the active link unsolicited NR-W state in the state machine defined by G.8031 into an NR-P state.
The state machine defined by the g.8031 standard is shown in table 1, and the modified state machine of the present invention is shown in table 2.
TABLE 1
Step 302: and sending the NR-P state to the far-end PE equipment.
After receiving the NR-P state, the far-end PE device compares its own FS state or MS state or WTR with the received NR-P state, and according to a state transition table in the state machine defined by g.8031, the state machine does not perform state operation, and at this time, the far-end PE device is still in the FS state or MS state or WTR state, that is, the original state remains unchanged, and the standby link is still used to transmit the service.
TABLE 2
Further, the method further comprises: when the far-end PE equipment executes clearing operation, the far-end PE equipment enters an NR-P state and sends the NR-P state to the local PE equipment;
the local PE equipment enters a main link non-request (NR-W) state and sends the NR-W state to the remote PE equipment;
at this time, the far-end PE equipment is switched from the NR-P state to the NR-W state, enters the NR-W state, performs service transmission path switching operation, and selects the main link to transmit the service.
It should be noted that, when the far-end PE device enters the NR-P state and sends the NR-P state to the local PE device, the local PE device is still in the NR-P state, and at this time, after the local PE device receives the NR-P state sent by the far-end PE device, the state machine performs state operation according to the state table of the state machine defined by g.8031, the local PE device switches from the NR-P state to the NR-W state, performs a service transmission path switching operation, and switches from the standby link transmission service to the active link transmission service.
Further, when the local PE device and the remote PE device are both in the WTR state, the method further includes:
and respectively monitoring the time length of the local PE device and the far-end PE device in the WTR state. Further, the method also includes, after:
when the time length of the local PE equipment monitoring the WTR state is greater than or equal to a first preset threshold value, the local PE equipment enters an NR-P state and sends the NR-P state to the far-end PE equipment; the local PE equipment still uses the standby link to transmit the service;
when the time length of the WTR state monitored by the far-end PE equipment is greater than or equal to a second preset threshold value, the far-end PE equipment enters an NR-P state and sends the NR-P state to the local PE equipment; the local PE equipment enters an NR-W state and sends the NR-W state to the far-end PE equipment; the far-end PE equipment enters an NR-W state, and a main link is selected for transmitting services; or,
when the time length of the WTR state monitored by the far-end PE equipment is greater than or equal to a second preset threshold value, the far-end PE equipment enters an NR-P state and sends the NR-P state to the local PE equipment; the far-end PE equipment still uses the standby link to transmit the service;
when the time length of the local PE equipment monitoring the WTR state is greater than or equal to a first preset threshold value, the local PE equipment enters an NR-P state and sends the NR-P state to the far-end PE equipment; the remote PE equipment enters an NR-W state and sends the NR-W state to the local PE equipment; and the local PE equipment enters an NR-W state and selects the main link to transmit the service.
It should be noted that, when the time length of the local PE device monitoring the WTR state is greater than or equal to the first preset threshold, the local PE device enters the NR-P state, and the local PE device still transmits the service using the standby link; when the local PE device enters the NR-W state and sends the NR-W state to the remote PE device, the local PE device transmits the service by using the main link. Similarly, when the time length of the far-end PE device monitoring the WTR state is greater than or equal to a second preset threshold value, the far-end PE device enters the NR-P state, and the far-end PE device still uses the standby link to transmit services; when the far-end PE equipment enters an NR-W state and sends the NR-W state to the local PE equipment, the far-end PE equipment transmits services by using the main link.
The first preset threshold and the second preset threshold may be the same or different, and may be set according to actual conditions.
That is to say, when the time length of the local PE device monitoring the WTR state of the local PE device is greater than or equal to the first preset threshold, the local PE device switches from the WTR state to the NR-P state, the service is still transmitted in the standby link without switching, and the NR-P state is sent to the far-end PE device; after receiving the NR-P state, the far-end PE device compares its WTR state with the NR-P state, and according to the state transition table in the state machine defined by g.8031, the far-end PE device continues to maintain the original state, that is, the state is still the WTR state, and the service is still transmitted in the standby link without switching.
When the time length of the far-end PE equipment monitoring the WTR state is greater than or equal to a second preset threshold value, the far-end PE equipment is switched from the WTR state to the NR-P state, the service is still transmitted in the standby link without switching, and the NR-P state is sent to the local PE equipment; after the local PE device receives the NR-P state, because the local PE device is already in the NR-P state, according to a state transition table in a state machine defined by g.8031, the local PE device switches to the NR-W state, the service is transmitted in the active link, and the NR-W state is sent to the remote PE device, after the remote PE device receives the NR-W state, the remote PE device compares the NR-W state with the NR-P state of the local PE device, and according to the state transition table in the state machine defined by g.8031, the remote PE device switches to the NR-W state, and the service is transmitted in the active link.
In the invention, the value range of the threshold value is 0-12 minutes, preferably 5 minutes according to the communication standard.
Similarly, the operation when the time length for the remote end to monitor the WTR state of the PE device is greater than or equal to the second preset threshold is similar to the operation of the PE device at the local end, and is not described herein again.
The method of the invention transmits the NR-W state or the NR-P state in the form of an APS message.
It should be noted that how to send APS messages is a conventional technical means in the art, and is not described herein again.
In the method, when the local PE equipment executes the clearing operation, the local PE equipment is selected to enter an NR-P state, namely, a standby link is selected for transmitting the service, and at the moment, the far-end PE equipment still selects the standby link for transmitting the service, so that the local PE equipment and the far-end PE equipment keep consistent states (namely links for transmitting the service), and the deviation of link selection is avoided, thereby enhancing the controllability of the network and effectively avoiding the problem of service interruption of the longest 5s in the process of operating the network. Further, when the far-end PE device also executes the clearing operation, after receiving the negotiation packet sent by the opposite end, the switching is performed according to the g.8031 operation state machine, so that both the two-end PE devices select the active link to transmit the service, the states of the two-end PE devices are consistent, and the service interruption can be controlled within 50ms in the process.
Fig. 4 is a schematic structural diagram of a PE device for linear protection switching according to the present invention, which is applied when the PE device and a far-end PE device are simultaneously in a forced handover (FS) state, a manual handover (MS) state, or a wait-to-reply (WTR) state, and includes: a state selection unit and a transceiving unit. Wherein,
a state selection unit, configured to enter a standby link unsolicited (NR-P) state when a clear operation is locally performed, and select a standby link for service transmission;
and the receiving and sending unit is used for sending the NR-P state to the far-end PE equipment so as to prompt the far-end PE equipment to still use the standby link for transmitting the service.
Further, the transceiving unit is further configured to: receiving an NR-P state sent by remote PE equipment which executes clearing operation and enters the NR-P state; sending a main link non-request (NR-W) state to the far-end PE equipment to prompt the far-end PE equipment to enter the NR-W state, and selecting a main link to transmit services;
the state selection unit is further configured to: the NR-W state is entered.
Further, the monitoring unit is further included for: when the PE equipment and the far-end PE equipment which the PE equipment belongs to are both in the WTR state, the time length of the PE equipment which the PE equipment belongs to is in the WTR state is monitored.
Further, the state selection unit is further configured to: when the monitoring unit monitors that the time length of the WTR state is greater than or equal to a preset threshold value of the PE equipment to which the monitoring unit belongs, the monitoring unit enters an NR-P state; when receiving the NR-P state sent by the far-end PE equipment, the receiving and sending unit enters the NR-W state;
the receiving and sending unit is further used for sending the NR-P state to the far-end PE equipment so as to prompt the far-end PE equipment to still use the standby link for transmitting the service; receiving an NR-P state sent by far-end PE equipment; and sending the NR-W state to the far-end PE equipment to prompt the far-end PE equipment to enter the NR-W state, and selecting the main link to transmit the service.
Fig. 5 is a schematic diagram of a two-end PE device state negotiation according to a first embodiment of the present invention, as shown in fig. 5, when a local PE1 device and a remote PE2 device are both in a Forced Switching (FS) state or a Manual Switching (MS) state or a Wait To Reply (WTR) state, the local PE1 device performs a CLEAR operation (CLEAR), first enters an NR-P state and sends it to the PE2 device, the remote PE2 device does not respond to it, and in this process, both the two-end devices select a standby link to transmit traffic without service interruption; if the PE2 device also performs CLEAR operation, it first enters NR-P state and sends it to the PE1 device, after the PE1 device receives NR-P state, it enters NR-W state according to the g.8031 running state machine and sends it to the PE2 device, after the PE2 device receives NR-W, it also enters NR-W state according to the g.8031 running state machine, so both ends select the main link to transmit service and enter uniform state, the process can control service interruption within 50 ms.
The invention aims at the condition that the local PE equipment and the far-end PE equipment are in the same state, namely the local PE equipment and the far-end PE equipment are both WTR, the local PE equipment and the far-end PE equipment are both FS, and the local PE equipment and the far-end PE equipment are both MS.
Fig. 6 is a schematic diagram of a second embodiment of state negotiation of PE devices at two ends according to the present invention, as shown in fig. 6, when both the local PE1 device and the far-end PE2 device are in a Wait To Reply (WTR) state, g.8031 defines that WTR timer configurations at two ends may be inconsistent, and there is a precedence order for timeout of WTRs at two ends, assuming that PE1 enters the WTR timeout state first, enters an NR-P state according to a modified state machine and is sent to the PE2 device, and the far-end PE2 device does not respond to it, and in this process, both the devices at two ends select a standby link to transmit a service without service interruption; if the WTR timer of the PE2 device is also overtime, the device first enters the NR-P state and sends it to the PE1 device, after the PE1 device receives the NR-P state, the device enters the NR-W state according to the g.8031 running state machine and sends it to the PE2 device, after the PE2 device receives the NR-W, the device also enters the NR-W state according to the g.8031 running state machine, so that both ends select the primary link to transmit the service and enter the consistent state, and the process can control the service interruption within 50 ms.
Fig. 7 is a schematic structural diagram of a linear protection switching system according to the present invention, which is applied when a local network side edge (PE) device and a remote PE device are simultaneously in a forced handover (FS) state, a manual handover (MS) state, or a wait for reply (WTR) state, and includes: a local PE device and a remote PE device. Wherein,
the local PE equipment is used for entering a standby link non-request NR-P state and selecting a standby link to transmit services when the local PE equipment executes clearing operation; and sending the NR-P state to the far-end PE equipment.
And the far-end PE equipment is used for receiving the NR-P state sent by the local PE equipment, and after receiving the NR-P state, the state operation is not carried out, and the standby link is still used for transmitting the service.
Further, the remote PE device is further configured to: when the far-end PE equipment executes clearing operation, entering an NR-P state and sending the NR-P state to the local PE equipment; entering an NR-W state, and selecting a main link to transmit service;
and the local PE device is also used for entering the NR-W state and sending the NR-W state to the remote PE device.
Further, when both the local PE device and the remote PE device are in the WTR state, the local PE device is also configured to monitor a time length of the local PE device itself in the WTR state; a far-end PE device further configured to: and monitoring the time length of the WTR state of the self-monitoring device.
Further, when the time length for the local PE device to monitor the WTR state is greater than or equal to the first preset threshold, the local PE device is further configured to: entering an NR-P state and sending the NR-P state to the far-end PE equipment; the local PE equipment still uses the standby link to transmit the service; the local PE equipment enters an NR-W state and sends the NR-W state to the far-end PE equipment;
the remote PE device is further configured to: still using the standby link to transmit the service; when the time length of the WTR state monitored by the far-end PE equipment is greater than or equal to a second preset threshold value, the far-end PE equipment enters an NR-P state and sends the NR-P state to the local PE equipment; the far-end PE equipment enters an NR-W state, and a main link is selected for transmitting services; or,
when the time length of the far-end PE device monitoring the WTR state is greater than or equal to a second preset threshold, the far-end PE device is further configured to: entering an NR-P state and sending the NR-P state to local PE equipment; the far-end PE equipment still uses the standby link to transmit the service; the remote PE equipment enters an NR-W state and sends the NR-W state to the local PE equipment;
the local PE equipment is also used for transmitting the service by using the standby link; when the time length of the local PE equipment monitoring the WTR state is greater than or equal to a first preset threshold value, the local PE equipment enters an NR-P state and sends the NR-P state to the far-end PE equipment; and the local PE equipment enters an NR-W state and selects the main link to transmit the service.
Wherein entering the NR-P state comprises: and modifying the active link unsolicited NR-W state in the state machine defined by G.8031 into an NR-P state.
It will be understood by those skilled in the art that all or part of the steps of the above methods may be implemented by instructing the relevant hardware through a program, and the program may be stored in a computer readable storage medium, such as a read-only memory, a magnetic or optical disk, and the like. Alternatively, all or part of the steps of the above embodiments may be implemented using one or more integrated circuits. Accordingly, each module/unit in the above embodiments may be implemented in the form of hardware, and may also be implemented in the form of a software functional module. The present application is not limited to any specific form of hardware or software combination.
The above description is only a preferred example of the present invention, and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (12)

1. A linear protection switching method is applied to a local network side PE device and a remote PE device which are in a forced switching FS state or a manual switching MS state or a waiting to reply a WTR state at the same time, and is characterized by comprising the following steps:
when the local PE equipment executes the clearing operation, the local PE equipment enters a standby link non-request NR-P state and selects a standby link to transmit services;
the NR-P state is sent to the far-end PE equipment in the form of an automatic protection switching APS message;
wherein the entering the NR-P state comprises: and modifying the active link unsolicited NR-W state in the state machine defined by G.8031 into an NR-P state.
2. The method of claim 1, further comprising:
when the far-end PE equipment executes clearing operation, the far-end PE equipment enters an NR-P state and sends the NR-P state to local PE equipment;
the local PE equipment enters an NR-W state and sends the NR-W state to the remote PE equipment;
and the far-end PE equipment enters an NR-W state and selects the main link to transmit the service.
3. The method according to claim 1 or 2, wherein when the local PE device and the remote PE device are both in WTR state, the method further comprises:
and respectively monitoring the time length of the local PE equipment and the far-end PE equipment in the WTR state.
4. The method of claim 3, further comprising, after the method:
when the time length of the WTR state monitored by the local PE equipment is greater than or equal to a first preset threshold value, the local PE equipment enters an NR-P state and sends the NR-P state to the far-end PE equipment; the local PE equipment still uses the standby link to transmit services;
when the time length of the WTR state monitored by the far-end PE equipment is greater than or equal to a second preset threshold value, the far-end PE equipment enters an NR-P state and sends the NR-P state to the local PE equipment; the local PE equipment enters an NR-W state and sends the NR-W state to the remote PE equipment; the far-end PE equipment enters an NR-W state, and a main link is selected for transmitting services; or,
when the time length of the WTR state monitored by the far-end PE equipment is greater than or equal to a second preset threshold value, the far-end PE equipment enters an NR-P state and sends the NR-P state to the local PE equipment; the far-end PE equipment still uses the standby link to transmit services;
when the time length of the WTR state monitored by the local PE equipment is greater than or equal to a first preset threshold value, the local PE equipment enters an NR-P state and sends the NR-P state to the far-end PE equipment; the far-end PE equipment enters an NR-W state and sends the NR-W state to the local PE equipment; and the local PE equipment enters an NR-W state and selects a main link to transmit the service.
5. A network side edge PE device of linear protection switching is applied to the situation that the PE device and a far-end PE device are in a forced switching FS state or a manual switching MS state or a waiting to reply WTR state at the same time, and is characterized by comprising the following steps: a state selection unit and a transceiving unit; wherein,
the state selection unit is used for entering a standby link non-request NR-P state and selecting a standby link to transmit services when the clearing operation is locally executed;
a receiving and sending unit, configured to send the NR-P state to the far-end PE device in the form of an automatic protection switching APS packet, so as to prompt the far-end PE device to still use the standby link to transmit a service;
wherein the entering the NR-P state comprises: and modifying the active link unsolicited NR-W state in the state machine defined by G.8031 into an NR-P state.
6. The PE device of claim 5, wherein the transceiver unit is further configured to: receiving an NR-P state sent by the far-end PE equipment which executes clearing operation and enters the NR-P state; sending the main link non-request NR-W state to the far-end PE equipment to prompt the far-end PE equipment to enter the NR-W state, and selecting a main link to transmit services;
the state selection unit is further configured to: the NR-W state is entered.
7. The PE device according to claim 5 or 6, further comprising a monitoring unit configured to: and when the PE equipment of the PE equipment and the far-end PE equipment are both in the WTR state, monitoring the time length of the PE equipment in the WTR state.
8. The PE device of claim 7, wherein the state selection unit is further configured to: when the monitoring unit monitors that the time length of the WTR state is greater than or equal to a preset threshold value of the PE device to which the monitoring unit belongs, the monitoring unit enters an NR-P state; when the receiving and sending unit receives the NR-P state sent by the far-end PE equipment, the receiving and sending unit enters an NR-W state;
the receiving and sending unit is further configured to send the NR-P status to the far-end PE device to prompt the far-end PE device to still use the standby link to transmit the service; receiving the NR-P state sent by the far-end PE equipment; and sending the NR-W state to the far-end PE equipment to prompt the far-end PE equipment to enter the NR-W state, and selecting a main link for transmitting the service.
9. A linear protection switching system is applied to a local network side PE device and a far end PE device which are in a forced switching FS state or a manual switching MS state or a waiting to reply a WTR state at the same time, and is characterized by comprising the following steps: local PE equipment and remote PE equipment; wherein,
the local PE equipment is used for entering a standby link non-request NR-P state and selecting a standby link to transmit services when the local PE equipment executes clearing operation; sending the NR-P state to the far-end PE device in the form of an automatic protection switching APS message, where entering the NR-P state includes: modifying the state of an active link non-request NR-W in a state machine defined by G.8031 into an NR-P state;
and the far-end PE equipment is used for receiving the NR-P state sent by the local PE equipment, and after receiving the NR-P state, the state operation is not carried out, and the standby link is still used for transmitting the service.
10. The system of claim 9, wherein the remote PE device is further configured to:
when the far-end PE equipment executes clearing operation, entering an NR-P state and sending the NR-P state to local PE equipment; entering an NR-W state, and selecting a main link to transmit service;
the local PE device is further configured to enter an NR-W state and send the NR-W state to the remote PE device.
11. The system according to claim 9 or 10, wherein when both the local PE device and the remote PE device are in a WTR state, the local PE device is further configured to monitor a time length of the local PE device in the WTR state;
the remote PE device is further configured to: and monitoring the time length of the WTR state of the self-monitoring device.
12. The system of claim 11,
when the time length of the local PE device monitoring the WTR state is greater than or equal to a first preset threshold, the local PE device is further configured to: entering an NR-P state and sending the NR-P state to the far-end PE equipment; the local PE equipment still uses the standby link to transmit services; the local PE equipment enters an NR-W state and sends the NR-W state to the remote PE equipment;
the remote PE device is further configured to: still using the standby link to transmit the service; when the time length of the WTR state monitored by the far-end PE equipment is greater than or equal to a second preset threshold value, the far-end PE equipment enters an NR-P state and sends the NR-P state to the local PE equipment; the far-end PE equipment enters an NR-W state, and a main link is selected for transmitting services; or,
when the time length of the far-end PE device monitoring the WTR state is greater than or equal to a second preset threshold, the far-end PE device is further configured to: entering an NR-P state and sending the NR-P state to the local PE equipment; the far-end PE still uses the standby link to transmit the service; the far-end PE equipment enters an NR-W state and sends the NR-W state to the local PE equipment;
the local PE equipment is also used for transmitting the service by using the standby link; when the time length of the WTR state monitored by the local PE equipment is greater than or equal to a first preset threshold value, the local PE equipment enters an NR-P state and sends the NR-P state to the far-end PE equipment; and the local PE equipment enters an NR-W state and selects a main link to transmit the service.
CN201510257967.2A 2015-05-19 2015-05-19 A kind of method of linear protection switching, PE equipment and system Active CN104836729B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510257967.2A CN104836729B (en) 2015-05-19 2015-05-19 A kind of method of linear protection switching, PE equipment and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510257967.2A CN104836729B (en) 2015-05-19 2015-05-19 A kind of method of linear protection switching, PE equipment and system

Publications (2)

Publication Number Publication Date
CN104836729A CN104836729A (en) 2015-08-12
CN104836729B true CN104836729B (en) 2018-09-11

Family

ID=53814374

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510257967.2A Active CN104836729B (en) 2015-05-19 2015-05-19 A kind of method of linear protection switching, PE equipment and system

Country Status (1)

Country Link
CN (1) CN104836729B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108462601B (en) * 2017-11-22 2021-03-23 上海欣诺通信技术股份有限公司 Multi-protection-group switching method and device applied to optical transmission network and network element equipment
CN110138636B (en) * 2019-04-30 2021-03-23 浙江亿邦通信科技有限公司 Dynamic linear protection method and device

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100396045C (en) * 2005-01-13 2008-06-18 华为技术有限公司 Optical transmission network protection method
CN102088400A (en) * 2009-12-03 2011-06-08 华为技术有限公司 Provider edge (PE) equipment in virtual special network and switching method
CN101394261B (en) * 2007-09-17 2012-02-15 华为技术有限公司 State transition method and network node device
CN102474429A (en) * 2009-08-17 2012-05-23 上海贝尔股份有限公司 Method and means for state transition of Ethernet linear protection switching
WO2012162982A1 (en) * 2011-09-20 2012-12-06 华为技术有限公司 Aps service channel switching method and system, and aps device
CN101662329B (en) * 2008-08-29 2013-08-28 华为技术有限公司 Switching method, network nodes and network system
CN103580932A (en) * 2013-11-26 2014-02-12 盛科网络(苏州)有限公司 Status switching method and system based on Ethernet linear protection switching

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100396045C (en) * 2005-01-13 2008-06-18 华为技术有限公司 Optical transmission network protection method
CN101394261B (en) * 2007-09-17 2012-02-15 华为技术有限公司 State transition method and network node device
CN101662329B (en) * 2008-08-29 2013-08-28 华为技术有限公司 Switching method, network nodes and network system
CN102474429A (en) * 2009-08-17 2012-05-23 上海贝尔股份有限公司 Method and means for state transition of Ethernet linear protection switching
CN102088400A (en) * 2009-12-03 2011-06-08 华为技术有限公司 Provider edge (PE) equipment in virtual special network and switching method
WO2012162982A1 (en) * 2011-09-20 2012-12-06 华为技术有限公司 Aps service channel switching method and system, and aps device
CN103580932A (en) * 2013-11-26 2014-02-12 盛科网络(苏州)有限公司 Status switching method and system based on Ethernet linear protection switching

Also Published As

Publication number Publication date
CN104836729A (en) 2015-08-12

Similar Documents

Publication Publication Date Title
US9270524B2 (en) Method and device for LACP link switching and data transmission
US9628324B2 (en) Openflow switch and failure recovery method in openflow network
EP2533474A1 (en) Method, apparatus and system for forwarding data
JP6796656B2 (en) Basic service set identifier BSSID update
CN101895437A (en) Method and equipment of distributed bidirectional forwarding detection (BFD)
US20150341235A1 (en) Packet Processing Method, Forwarder, Packet Processing Device, and Packet Processing System
CN109842507A (en) A kind of network slice management method and equipment
KR20110008311A (en) Methods and Devices for Managing a Network
CN111343019A (en) Reconnection method, reconnection device and storage medium
CN106878072A (en) A kind of message transmitting method and device
CN104836729B (en) A kind of method of linear protection switching, PE equipment and system
CN105763442A (en) PON system and method avoiding interruption of LACP aggregation link in main-standby switching process
CN107534917A (en) Switching method, main equipment, slave unit and system in a kind of master-slave type network
US7860090B2 (en) Method for processing LMP packets, LMP packet processing unit and LMP packet processing node
CN104935507B (en) A kind of method of linear protection switching, PE equipment and system
US9071538B2 (en) Method for dynamically adjusting switching loop and network equipment
EP3537671B1 (en) Protection switching method and system, and nodes
US11811900B2 (en) Packet processing method and first network device
WO2016054913A1 (en) Bidirectional forwarding detection control method and apparatus
CN102223302B (en) Event processing method and equipment based on PSC (Protection State Coordination) message
CN106301835A (en) A BFD chain building method and its device, router
CN111224803A (en) Multi-master detection method in stacking system and stacking system
CN103560869A (en) VPLS link switching device, auxiliary switching device thereof and method thereof
EP3761754B1 (en) Method and device for managing wlan state, storage medium, and electronic device
US20130294290A1 (en) Method, apparatus, and system for establishing pvc link

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
EXSB Decision made by sipo to initiate substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant