CN112468394A - Protection switching method, node equipment and storage medium - Google Patents

Protection switching method, node equipment and storage medium Download PDF

Info

Publication number
CN112468394A
CN112468394A CN201910848740.3A CN201910848740A CN112468394A CN 112468394 A CN112468394 A CN 112468394A CN 201910848740 A CN201910848740 A CN 201910848740A CN 112468394 A CN112468394 A CN 112468394A
Authority
CN
China
Prior art keywords
message
node device
node
oam
signal degradation
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
CN201910848740.3A
Other languages
Chinese (zh)
Other versions
CN112468394B (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.)
China Mobile Communications Group Co Ltd
China Mobile Communications Ltd Research Institute
Original Assignee
China Mobile Communications Group Co Ltd
China Mobile Communications Ltd Research Institute
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 China Mobile Communications Group Co Ltd, China Mobile Communications Ltd Research Institute filed Critical China Mobile Communications Group Co Ltd
Priority to CN201910848740.3A priority Critical patent/CN112468394B/en
Publication of CN112468394A publication Critical patent/CN112468394A/en
Application granted granted Critical
Publication of CN112468394B publication Critical patent/CN112468394B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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/22Alternate routing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/34Source routing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/50Routing or path finding of packets in data switching networks using label swapping, e.g. multi-protocol label switch [MPLS]

Abstract

The embodiment of the invention discloses a protection switching method, node equipment and a storage medium. The method comprises the following steps: the method comprises the steps that a first node device identifies a received message under the condition that signal degradation is detected; when the first node equipment identifies that the message is an operation, maintenance and management (OAM) message, generating a new message based on a segment routing label in the OAM message; the specific area of the new message comprises a first identifier for representing signal degradation; and the first node equipment sends the new message.

Description

Protection switching method, node equipment and storage medium
Technical Field
The present invention relates to the field of wireless communication technologies, and in particular, to a protection switching method, a node device, and a storage medium.
Background
The protection switching of the transmission network is a basic function, the service establishes a working path and also establishes a protection path, and when the working path fails, the switching to the protection path is triggered as soon as possible to ensure that the service performance is not affected as much as possible.
A worker path may be a link that includes multiple nodes. When the intermediate node fails, if the signal fails, the source-sink nodes at both ends can detect the failure and trigger the switching, but if the intermediate node has performance degradation, because many performance degradation detection methods are point-to-point detection, only the intermediate node with the degradation can detect the performance degradation, and the source-sink nodes at both ends cannot detect the degradation. Therefore, when the intermediate node detects signal degradation, it can send a notification message, so that the downstream sink node can know the signal degradation and trigger protection switching.
With the development of the fifth generation mobile communication technology (5G, 5th generation mobile networks), a transmission device introduces a three-layer Segment Routing (SR) technology, and identifies nodes that need to pass through a tunnel by a series of ordered Segment identifiers (Segment IDs), however, this transmission technology does not support protection switching due to performance degradation.
Disclosure of Invention
In order to solve the existing technical problem, embodiments of the present invention provide a protection switching method, a node device, and a storage medium.
In order to achieve the above purpose, the technical solution of the embodiment of the present invention is realized as follows:
the embodiment of the invention provides a method for protection switching, which comprises the following steps:
the method comprises the steps that a first node device identifies a received message under the condition that signal degradation is detected;
when the first node equipment identifies that the message is an Operation Administration and Maintenance (OAM) message, generating a new message based on a segment routing label in the OAM message; the specific area of the new message comprises a first identifier for representing signal degradation;
and the first node equipment sends the new message.
In the foregoing solution, the identifying, by the first node device, that the packet is an OAM packet includes:
and the first node equipment is matched with a first specific field in the message, and under the condition that the value of the first specific field is a first specific value, the message is determined to be an OAM message.
In the foregoing solution, the generating a new packet based on the segment routing label in the OAM packet includes:
the first node equipment generates a new message by taking a segment routing label in the OAM message as a label head;
and under the condition that the new message adopts an OAM message header, filling the first identifier in an OAM message header area or a load area of the new message.
In the foregoing solution, before the first node device sends the new packet, the method further includes:
and the first node equipment determines the relevant parameters representing the signal degradation, and fills the relevant parameters in the load area of the new message.
In the foregoing solution, the related parameter includes at least one of: bit error rate and packet loss rate.
The embodiment of the invention also provides a method for protection switching, which comprises the following steps:
the method comprises the steps that a second node device receives a message from a first node device, and identifies a first identifier in the message, wherein the first identifier is used for representing signal degradation;
and the second node equipment triggers path protection switching.
In the above scheme, the method further comprises: the second node equipment identifies the relevant parameters of the load area in the message, judges whether the numerical values of the relevant parameters reach a preset threshold value or not, and obtains a judgment result;
the triggering of the path protection switching by the second node device includes:
and the second node equipment triggers path protection switching under the condition that the judgment result is that the value of the relevant parameter reaches a preset threshold value.
In the foregoing solution, the related parameter includes at least one of: bit error rate and packet loss rate.
An embodiment of the present invention further provides a node device, where the node device is a first node device, and the node device includes: the device comprises a detection unit, an identification processing unit and a first communication unit; wherein the content of the first and second substances,
the detection unit is used for detecting signal degradation;
the identification processing unit is used for identifying the received message under the condition that the detection unit detects the signal degradation; when the message is identified to be an OAM message, generating a new message based on a segment routing label in the OAM message; the specific area of the new message comprises a first identifier for representing signal degradation;
and the first communication unit is used for sending the new message generated by the identification processing unit.
In the foregoing scheme, the identification processing unit is configured to match a first specific field in the message, and determine that the message is an OAM message when a value of the first specific field is a first specific value.
In the foregoing solution, the identification processing unit is configured to generate a new packet by using a segment routing label in the OAM message as a label header; and under the condition that the new message adopts an OAM message header, filling the first identifier in an OAM message header area or a load area of the new message.
In the foregoing solution, the node device further includes a determining unit, configured to determine a relevant parameter representing signal degradation, and fill the relevant parameter in a load area of the new packet.
In the foregoing solution, the related parameter includes at least one of: bit error rate and packet loss rate.
An embodiment of the present invention further provides a node device, where the node device is a second node device, and the node device includes: the device comprises a second communication unit, an identification unit and a trigger unit; wherein the content of the first and second substances,
the second communication unit is used for receiving a message from the first node device;
the identification unit is used for identifying a first identifier in the message, wherein the first identifier is used for representing signal degradation;
the trigger unit is used for triggering path protection switching.
In the above scheme, the identifying unit is further configured to identify a relevant parameter of the load region in the message, determine whether a value of the relevant parameter reaches a preset threshold, and obtain a determination result;
and the triggering unit is used for triggering path protection switching under the condition that the judgment result is that the value of the relevant parameter reaches a preset threshold value.
In the foregoing solution, the related parameter includes at least one of: bit error rate and packet loss rate.
The embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps of the method for protection switching applied to the first node device in the embodiment of the present invention; or, when executed by the processor, the program implements the steps of the method for protection switching applied to the second node device according to the embodiment of the present invention.
The embodiment of the present invention further provides a node device, which includes a memory, a processor, and a computer program stored in the memory and capable of running on the processor, where the processor implements the steps of the method for protection switching applied to the first node device in the embodiment of the present invention when executing the program; or, when the processor executes the program, the processor implements the steps of the method for protection switching applied to the second node device according to the embodiment of the present invention.
The method for protection switching, the node device and the storage medium provided by the embodiment of the invention comprise: the method comprises the steps that a first node device identifies a received message under the condition that signal degradation is detected; when the first node equipment identifies that the message is an OAM message, generating a new message based on a segment routing label in the OAM message; the specific area of the new message comprises a first identifier for representing signal degradation; the first node equipment sends the new message; and the second node equipment identifies the first identifier in the message and triggers the path protection switching. By adopting the technical scheme of the embodiment of the invention, the new message is generated through the segment routing label in the OAM message, the new message carries the first identification which represents the signal degradation, and the new message informs the downstream node that the current first node equipment generates the signal degradation, so that the new message is subjected to protection switching, and the protection switching caused by the signal degradation in the transmission network adopting the segment routing technology is realized.
Drawings
Fig. 1 is a first flowchart of a protection switching method according to an embodiment of the present invention;
fig. 2 is a schematic diagram illustrating segment routing-based information forwarding in the related art;
fig. 3 is a second flowchart of a protection switching method according to an embodiment of the present invention;
fig. 4 is a third schematic flowchart of a protection switching method according to an embodiment of the present invention;
fig. 5 is a first schematic structural diagram of a node device according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of a node device according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of a node device according to an embodiment of the present invention;
fig. 8 is a schematic diagram of a hardware composition structure of a node device according to an embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and specific embodiments.
The embodiment of the invention provides a protection switching method. Fig. 1 is a first flowchart of a protection switching method according to an embodiment of the present invention; as shown in fig. 1, the method includes:
step 101: the method comprises the steps that a first node device identifies a received message under the condition that signal degradation is detected;
step 102: when the first node equipment identifies that the message is an OAM message, generating a new message based on a segment routing label in the OAM message; the specific area of the new message comprises a first identifier for representing signal degradation;
step 103: and the first node equipment sends the new message.
The protection switching method of the embodiment is suitable for a network which performs information forwarding based on a three-layer Segment Routing (SR) technology. The transport tunnel is composed of a series of ordered Segment identifiers (Segment IDs) for identifying the node devices on the tunnel that need to pass through. The source node encapsulates the Segment identifier List (Segment List) in the header of the packet, and the source node device and the intermediate node device can forward information according to the path information represented by the Segment identifier List (Segment List) in the header of the packet. Fig. 2 is a schematic diagram illustrating segment routing-based information forwarding in the related art; as shown in fig. 2, the source node is node a, the sink node is node Z, and node B, node C, node D, node N, node O, and node P are all intermediate nodes. Node a encapsulates the segment identifier list representing the path information in the header, where the segment identifiers in this example may include g101, g105, g107, g103, and g105 in order, which respectively indicate that the transmission path is node a-node B-node C-node O-node P-node Z. When the message reaches one node device, the node device strips the outer layer label and forwards the information. For example, the node a forwards the packet to the node B according to the segment identifier g101 of the segment identifier list; after receiving the packet, the node B strips the outermost segment identifier g101 in the segment identifier list in the header of the packet, forwards the packet to the node C according to the next segment identifier g105, and so on, forwards the packet to the node Z. It can be seen that each intermediate node only performs stripping of the outermost label (segment identifier) and does not record tunnel information. Therefore, when the intermediate node is degraded, the path information of the intermediate node is unknown, so that the condition related to the degradation cannot be informed, and the source node or the sink node cannot be informed to perform protection switching.
Based on this, the first node device in this embodiment is an intermediate node device in the network, and may be, for example, node B, node C, node D, node N, node O, and node P in fig. 2.
In an alternative embodiment of the invention, the first node device detecting the signal degradation comprises: the first node equipment checks a Frame Check Sequence (FCS) of the message, and detects signal degradation based on a Check result; or, the first node device sends a signal and receives a response signal, determines an error rate or a packet loss rate based on the sent signal and the received response signal, and detects signal degradation based on the error rate or the packet loss rate.
As an example, taking FCS mode as an example for detecting signal degradation, when a source node sends a data frame, the FCS is calculated from the frame header and the data portion of the data frame, and the calculated FCS is represented by a four-byte cyclic redundancy check code at the frame end of the data frame; and after receiving the data frame, the destination node calculates the FCS again in the same way, and if the calculated FCS is different from the FCS carried in the received data frame, the FCS indicates that the data frame has errors in the transmission process, namely the first node equipment has signal degradation.
In an optional embodiment of the present invention, the identifying, by the first node device, that the packet is an OAM packet includes: and the first node equipment is matched with a first specific field in the message, and under the condition that the value of the first specific field is a first specific value, the message is determined to be an OAM message.
In this embodiment, a new packet is generated by copying a segment routing label in an OAM packet; the segment routing label may specifically be a segment identifier list comprising a plurality of segment identifiers.
In this embodiment, a value of a first specific field in the OAM message is a first specific value. Table 1 and table 2 are OAM encapsulation diagrams, respectively; table 1 shows an OAM encapsulation with a Path segment (Path segment) label added thereto, and table 2 shows an OAM encapsulation without a Path segment (Path segment) label added thereto. As shown in table 1 and table 2, whether the OAM message is matched is performed by a "GAL Label" field (i.e., a first specific field) in the message; if the value of the "GAL Label" field in the message is a first specific value (for example, the value is 13), it indicates that the message is an OAM message.
TABLE 1
Figure BDA0002196184610000071
TABLE 2
Figure BDA0002196184610000072
In an optional embodiment of the present invention, the generating a new packet based on the segment routing label in the OAM message includes: the first node equipment generates a new message by taking a segment routing label in the OAM message as a label head; and under the condition that the new message adopts an OAM message header, filling the first identifier in an OAM message header area or a load area of the new message.
In this embodiment, the first node device may generate a new packet by using a packet header of the OAM packet or another identifiable packet header. In one embodiment, if an OAM header is used, the first node device fills a first identifier in a header area or a payload area of the OAM header, and the first identifier indicates signal degradation. As another embodiment, if a new message is generated by using other identifiable message headers, the first identifier may be filled in through the identifiable area of the other identifiable message headers, and the first identifier represents signal degradation.
For example, as shown in table 1 or table 2, the first identifier may be filled in an OpCode region (i.e., coding region) or an OAM PDU payload region (i.e., payload region) of the packet, and a specific value (i.e., first identifier) is filled in the coding region or the payload region, for example, "1" is filled in, indicating that the current packet is a packet indicating signal degradation.
In this embodiment, when detecting signal degradation, the first node device generates and transmits a new packet based on each OAM packet if it recognizes a plurality of OAM packets.
By adopting the technical scheme of the embodiment of the invention, the new message is generated through the segment routing label in the OAM message, the new message carries the first identification which represents the signal degradation, and the new message informs the downstream node that the current first node equipment generates the signal degradation, so that the new message is subjected to protection switching, and the protection switching caused by the signal degradation in the transmission network adopting the segment routing technology is realized.
The embodiment of the invention also provides a protection switching method. Fig. 3 is a second flowchart of a protection switching method according to an embodiment of the present invention; as shown in fig. 3, the method includes:
step 201: the method comprises the steps that a first node device identifies a received message under the condition that signal degradation is detected;
step 202: when the first node equipment identifies that the message is an OAM message, generating a new message based on a segment routing label in the OAM message; the specific area of the new message comprises a first identifier for representing signal degradation;
step 203: the first node equipment determines relevant parameters representing signal degradation, and fills the relevant parameters in a load area of the new message;
step 204: and the first node equipment sends the new message.
In this embodiment, the detailed description of step 201, step 202, and step 204 may specifically refer to the description of step 101 to step 103 in the foregoing embodiment, and is not repeated here.
In this embodiment, the first node device may detect a relevant parameter characterizing signal degradation, for example, the relevant parameter includes at least one of: and the error rate, the packet loss rate and the like, and filling the relevant parameters into a load area of a new message so as to inform the first node device of the specific signal degradation state.
By adopting the technical scheme of the embodiment of the invention, a new message is generated through a segment routing label in an OAM message, the new message carries a first identifier which represents signal degradation, and the new message informs a downstream node that the current first node equipment generates signal degradation, so that the new message is subjected to protection switching, and the protection switching caused by the signal degradation in a transmission network adopting a segment routing technology is realized; and the relevant parameters for representing the signal degradation are filled in the new message, so that the downstream node is informed of the specific state of the signal degradation.
Based on the foregoing embodiment, an embodiment of the present invention further provides a protection switching method. Fig. 4 is a second flowchart of a protection switching method according to an embodiment of the present invention; as shown in fig. 4, the method includes:
step 301: the method comprises the steps that a second node device receives a message from a first node device, and identifies a first identifier in the message, wherein the first identifier is used for representing signal degradation;
step 302: and the second node equipment triggers path protection switching.
Based on the description of the foregoing embodiment with respect to fig. 2, the second node device in this embodiment is a sink node, for example, node Z in fig. 2.
In this embodiment, the message received by the second node device from the first node device is a new message generated by the first node device by copying a segment routing tag in an OAM message, and the new message carries a first identifier indicating signal degradation. It is understood that the packet received by the second node device may be an OAM packet, or may be a packet having an identifiable packet header, that is, a "new packet" in the foregoing embodiment. The first identifier is filled in an OAM message header area or a load area of the message, and the second node device determines signal degradation by identifying the first identifier in the OAM message header area or the load area.
For example, as shown in table 1 or table 2, the first identifier may be filled in an OpCode region (i.e., coding region) or an OAM PDU payload region (i.e., payload region) of the packet, and a specific value (i.e., the first identifier) is filled in the coding region or the payload region, for example, a "1" is filled in, which indicates that the current packet is a packet indicating signal degradation. The second node device identifies the first identifier indicating signal degradation by identifying a field corresponding to a coding region (e.g., an OpCode region in an OAM encapsulation structure) or a loading region (e.g., an OAM PDU loading region in the OAM encapsulation structure) in the message as a specific value (e.g., a value of "1").
And under the condition that the first identifier is identified, the second node equipment triggers path protection switching, namely, the first node equipment is triggered to be switched from a working path to a protection path.
In an optional embodiment of the invention, the method further comprises: the second node equipment identifies the relevant parameters of the load area in the message, judges whether the numerical values of the relevant parameters reach a preset threshold value or not, and obtains a judgment result; the triggering of the path protection switching by the second node device includes: and the second node equipment triggers path protection switching under the condition that the judgment result is that the value of the relevant parameter reaches a preset threshold value.
In this embodiment, the first node device may add the detected relevant parameters characterizing the signal degradation to the packet, where the relevant parameters include at least one of the following parameters: bit error rate, packet loss rate, etc. And the second node equipment identifies the relevant parameters representing the signal degradation carried in the message and judges whether to trigger the path protection switching according to whether the relevant parameters reach a preset threshold value. Aiming at different types of related parameters, corresponding preset thresholds can be configured respectively; for example, a first preset threshold may be configured for the error rate, and a second preset threshold may be configured for the packet loss rate. Judging whether the value of the error rate reaches a first preset threshold value or not; and triggering path protection switching under the condition that the numerical value of the error rate reaches a first preset threshold value. Or, judging whether the value of the packet loss rate reaches a second preset threshold value; and triggering path protection switching under the condition that the value of the packet loss rate reaches a second preset threshold value.
In this embodiment, the second node device may determine the trigger policy of protection switching according to a predetermined manner or configuration of the higher node device, and directly trigger protection switching if it is identified that the packet carries the first identifier, or trigger protection switching based on a condition that a relevant parameter carried in the packet exceeds a preset threshold.
By adopting the technical scheme of the embodiment of the invention, a new message is generated through a segment routing label in an OAM message, the new message carries a first identifier which represents signal degradation, and the new message informs a downstream node that the current first node equipment generates signal degradation, so that the new message is subjected to protection switching, and the protection switching caused by the signal degradation in a transmission network adopting a segment routing technology is realized; and the relevant parameters for representing the signal degradation are filled in the new message, so that the downstream node is informed of the specific state of the signal degradation.
The embodiment of the invention also provides node equipment, which is the first node equipment. Fig. 5 is a first schematic structural diagram of a node device according to an embodiment of the present invention; as shown in fig. 5, the node apparatus includes: a detection unit 41, an identification processing unit 42, and a first communication unit 43; wherein the content of the first and second substances,
the detection unit 41 for detecting signal degradation;
the identification processing unit 42 is configured to identify the received message when the detection unit 41 detects signal degradation; when the message is identified to be an OAM message, generating a new message based on a segment routing label in the OAM message; the specific area of the new message comprises a first identifier for representing signal degradation;
the first communication unit 43 is configured to send the new message generated by the identification processing unit 42.
In an optional embodiment of the present invention, the identification processing unit 42 is configured to match a first specific field in the message, and determine that the message is an OAM message when a value of the first specific field is a first specific value.
The identification processing unit 42 is configured to generate a new packet by using a segment routing label in the OAM message as a label header; and under the condition that the new message adopts an OAM message header, filling the first identifier in an OAM message header area or a load area of the new message.
In an alternative embodiment of the present invention, as shown in fig. 6, the node device further includes a determining unit 44, configured to determine a relevant parameter characterizing signal degradation, and fill the relevant parameter in a loading area of the new packet.
In an optional embodiment of the invention, the relevant parameter comprises at least one of: bit error rate and packet loss rate.
In the embodiment of the present invention, the detecting Unit 41, the identifying Unit 42, and the determining Unit 44 in the node device may be implemented by a Central Processing Unit (CPU), a Digital Signal Processor (DSP), a Micro Control Unit (MCU), or a Programmable Gate Array (FPGA) in the node device in practical application; the first communication unit 43 in the terminal can be implemented by a communication module (including a basic communication suite, an operating system, a communication module, a standardized interface, a protocol, etc.) and a transceiver antenna in practical application.
It should be noted that: in the node device provided in the foregoing embodiment, when performing protection switching, only the division of each program module is described as an example, and in practical applications, the processing allocation may be completed by different program modules according to needs, that is, the internal structure of the node device is divided into different program modules to complete all or part of the processing described above. In addition, the node device and the method embodiment of protection switching provided by the foregoing embodiments belong to the same concept, and specific implementation processes thereof are described in detail in the method embodiment and are not described herein again.
The embodiment of the invention also provides node equipment, which is second node equipment. Fig. 7 is a schematic structural diagram of a node device according to an embodiment of the present invention; as shown in fig. 7, the node apparatus includes: a second communication unit 51, an identification unit 52 and a trigger unit 53; wherein the content of the first and second substances,
the second communication unit 51 is configured to receive a packet from a first node device;
the identifying unit 52 is configured to identify a first identifier in the message, where the first identifier is used to indicate signal degradation;
the triggering unit 53 is configured to trigger path protection switching.
In an optional embodiment of the present invention, the identifying unit 52 is further configured to identify a relevant parameter of the load area in the message, determine whether a value of the relevant parameter reaches a preset threshold, and obtain a determination result;
the triggering unit 53 is configured to trigger path protection switching when the determination result indicates that the value of the relevant parameter reaches a preset threshold.
In the embodiment of the present invention, the identification unit 52 and the trigger unit 53 in the node device may be implemented by a CPU, a DSP, an MCU, or an FPGA in the node device in practical application; the second communication unit 51 in the terminal can be implemented by a communication module (including a basic communication suite, an operating system, a communication module, a standardized interface, a protocol, etc.) and a transceiver antenna in practical application.
It should be noted that: in the node device provided in the foregoing embodiment, when performing protection switching, only the division of each program module is described as an example, and in practical applications, the processing allocation may be completed by different program modules according to needs, that is, the internal structure of the node device is divided into different program modules to complete all or part of the processing described above. In addition, the node device and the method embodiment of protection switching provided by the foregoing embodiments belong to the same concept, and specific implementation processes thereof are described in detail in the method embodiment and are not described herein again.
The embodiment of the invention also provides node equipment. Fig. 8 is a schematic diagram of a hardware configuration structure of a node device according to an embodiment of the present invention, and as shown in fig. 8, the node device 60 includes a memory 62, a processor 61, and a computer program stored in the memory 62 and operable on the processor 61, and when the processor 61 executes the computer program, the step of implementing the protection switching method applied to a first node device or a second node device according to an embodiment of the present invention is implemented.
It is to be understood that node device 60 also includes a communication interface 63. The various components in node device 60 are coupled together by a bus system 64. It will be appreciated that the bus system 64 is used to enable communications among the components. The bus system 64 includes a power bus, a control bus, and a status signal bus in addition to the data bus. For clarity of illustration, however, the various buses are labeled as bus system 64 in fig. 8.
It will be appreciated that the memory 62 can be either volatile memory or nonvolatile memory, and can include both volatile and nonvolatile memory. Among them, the nonvolatile Memory may be a Read Only Memory (ROM), a Programmable Read Only Memory (PROM), an Erasable Programmable Read-Only Memory (EPROM), an Electrically Erasable Programmable Read-Only Memory (EEPROM), a magnetic random access Memory (FRAM), a Flash Memory (Flash Memory), a magnetic surface Memory, an optical disk, or a Compact Disc Read-Only Memory (CD-ROM); the magnetic surface storage may be disk storage or tape storage. Volatile Memory can be Random Access Memory (RAM), which acts as external cache Memory. By way of illustration and not limitation, many forms of RAM are available, such as Static Random Access Memory (SRAM), Synchronous Static Random Access Memory (SSRAM), Dynamic Random Access Memory (DRAM), Synchronous Dynamic Random Access Memory (SDRAM), Double Data Rate Synchronous Dynamic Random Access Memory (DDRSDRAM), Enhanced Synchronous Dynamic Random Access Memory (ESDRAM), Enhanced Synchronous Dynamic Random Access Memory (Enhanced DRAM), Synchronous Dynamic Random Access Memory (SLDRAM), Direct Memory (DRmb Access), and Random Access Memory (DRAM). The memory 62 described in connection with the embodiments of the invention is intended to comprise, without being limited to, these and any other suitable types of memory.
The method disclosed in the above embodiments of the present invention may be applied to the processor 61, or implemented by the processor 61. The processor 61 may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware or instructions in the form of software in the processor 61. The Processor 61 may be a general purpose Processor, a Digital Signal Processor (DSP), or other programmable logic device, discrete gate or transistor logic device, discrete hardware components, or the like. Processor 61 may implement or perform the methods, steps, and logic blocks disclosed in embodiments of the present invention. A general purpose processor may be a microprocessor or any conventional processor or the like. The steps of the method disclosed by the embodiment of the invention can be directly implemented by a hardware decoding processor, or can be implemented by combining hardware and software modules in the decoding processor. The software modules may be located in a storage medium located in the memory 62, and the processor 61 reads the information in the memory 62 and performs the steps of the aforementioned method in conjunction with its hardware.
In an exemplary embodiment, node Device 60 may be implemented by one or more Application Specific Integrated Circuits (ASICs), DSPs, Programmable Logic Devices (PLDs), Complex Programmable Logic Devices (CPLDs), Field Programmable Gate Arrays (FPGAs), general purpose processors, controllers, Micro Controllers (MCUs), microprocessors (microprocessors), or other electronic components for performing the foregoing methods.
In an exemplary embodiment, the present invention further provides a computer readable storage medium, such as a memory 62 comprising a computer program, which is executable by a processor 61 of a node device 60 to perform the steps of the aforementioned method.
A computer-readable storage medium is provided in an embodiment of the present invention, and has a computer program stored thereon, where the computer program, when executed by a processor, implements the steps of the method for protection switching applied to a first node device or a second node device in the embodiment of the present invention.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. The above-described device embodiments are merely illustrative, for example, the division of the unit is only a logical functional division, and there may be other division ways in actual implementation, such as: multiple units or components may be combined, or may be integrated into another system, or some features may be omitted, or not implemented. In addition, the coupling, direct coupling or communication connection between the components shown or discussed may be through some interfaces, and the indirect coupling or communication connection between the devices or units may be electrical, mechanical or other forms.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed on a plurality of network units; some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, all the functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may be separately regarded as one unit, or two or more units may be integrated into one unit; the integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit.
Those of ordinary skill in the art will understand that: all or part of the steps for implementing the method embodiments may be implemented by hardware related to program instructions, and the program may be stored in a computer readable storage medium, and when executed, the program performs the steps including the method embodiments; and the aforementioned storage medium includes: a removable storage device, a ROM, a RAM, a magnetic or optical disk, or various other media that can store program code.
Alternatively, the integrated unit of the present invention may be stored in a computer-readable storage medium if it is implemented in the form of a software functional module and sold or used as a separate product. Based on such understanding, the technical solutions of the embodiments of the present invention may be essentially implemented or a part contributing to the prior art may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the methods described in the embodiments of the present invention. And the aforementioned storage medium includes: a removable storage device, a ROM, a RAM, a magnetic or optical disk, or various other media that can store program code.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the appended claims.

Claims (18)

1. A method for protection switching, the method comprising:
the method comprises the steps that a first node device identifies a received message under the condition that signal degradation is detected;
when the first node equipment identifies that the message is an operation, maintenance and management (OAM) message, generating a new message based on a segment routing label in the OAM message; the specific area of the new message comprises a first identifier for representing signal degradation;
and the first node equipment sends the new message.
2. The method of claim 1, wherein the first node device recognizing that the packet is an OAM packet comprises:
and the first node equipment is matched with a first specific field in the message, and under the condition that the value of the first specific field is a first specific value, the message is determined to be an OAM message.
3. The method of claim 1, wherein generating the new packet based on the segment routing label in the OAM packet comprises:
the first node equipment generates a new message by taking a segment routing label in the OAM message as a label head;
and under the condition that the new message adopts an OAM message header, filling the first identifier in an OAM message header area or a load area of the new message.
4. The method according to any of claims 1 to 3, wherein before the first node device sends the new packet, the method further comprises:
and the first node equipment determines the relevant parameters representing the signal degradation, and fills the relevant parameters in the load area of the new message.
5. The method of claim 4, wherein the related parameters comprise at least one of: bit error rate and packet loss rate.
6. A method for protection switching, the method comprising:
the method comprises the steps that a second node device receives a message from a first node device, and identifies a first identifier in the message, wherein the first identifier is used for representing signal degradation;
and the second node equipment triggers path protection switching.
7. The method of claim 6, further comprising:
the second node equipment identifies the relevant parameters of the load area in the message, judges whether the numerical values of the relevant parameters reach a preset threshold value or not, and obtains a judgment result;
the triggering of the path protection switching by the second node device includes:
and the second node equipment triggers path protection switching under the condition that the judgment result is that the value of the relevant parameter reaches a preset threshold value.
8. The method of claim 7, wherein the related parameters comprise at least one of: bit error rate and packet loss rate.
9. A node device, the node device being a first node device, the node device comprising: the device comprises a detection unit, an identification processing unit and a first communication unit; wherein the content of the first and second substances,
the detection unit is used for detecting signal degradation;
the identification processing unit is used for identifying the received message under the condition that the detection unit detects the signal degradation; when the message is identified to be an OAM message, generating a new message based on a segment routing label in the OAM message; the specific area of the new message comprises a first identifier for representing signal degradation;
and the first communication unit is used for sending the new message generated by the identification processing unit.
10. The node device of claim 9, wherein the identification processing unit is configured to match a first specific field in the message, and determine that the message is an OAM message when a value of the first specific field is a first specific value.
11. The node device according to claim 9, wherein the identification processing unit is configured to generate a new packet by using a segment routing label in the OAM message as a label header; and under the condition that the new message adopts an OAM message header, filling the first identifier in an OAM message header area or a load area of the new message.
12. The node device according to any of claims 9 to 11, wherein the node device further comprises a determining unit configured to determine a relevant parameter characterizing signal degradation, and fill in the relevant parameter in a loading area of the new packet.
13. The node device of claim 12, wherein the related parameters comprise at least one of: bit error rate and packet loss rate.
14. A node device, the node device being a second node device, the node device comprising: the device comprises a second communication unit, an identification unit and a trigger unit; wherein the content of the first and second substances,
the second communication unit is used for receiving a message from the first node device;
the identification unit is used for identifying a first identifier in the message, wherein the first identifier is used for representing signal degradation;
the trigger unit is used for triggering path protection switching.
15. The node device according to claim 14, wherein the identifying unit is further configured to identify a relevant parameter of a load region in the message, determine whether a value of the relevant parameter reaches a preset threshold, and obtain a determination result;
and the triggering unit is used for triggering path protection switching under the condition that the judgment result is that the value of the relevant parameter reaches a preset threshold value.
16. The node device of claim 15, wherein the related parameters comprise at least one of: bit error rate and packet loss rate.
17. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 5; alternatively, the program is adapted to carry out the steps of the method of any one of claims 6 to 8 when executed by a processor.
18. A node device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor when executing the program implements the steps of the method of any one of claims 1 to 5; alternatively, the processor implements the steps of the method of any one of claims 6 to 8 when executing the program.
CN201910848740.3A 2019-09-09 2019-09-09 Protection switching method, node equipment and storage medium Active CN112468394B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910848740.3A CN112468394B (en) 2019-09-09 2019-09-09 Protection switching method, node equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910848740.3A CN112468394B (en) 2019-09-09 2019-09-09 Protection switching method, node equipment and storage medium

Publications (2)

Publication Number Publication Date
CN112468394A true CN112468394A (en) 2021-03-09
CN112468394B CN112468394B (en) 2022-09-27

Family

ID=74807515

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910848740.3A Active CN112468394B (en) 2019-09-09 2019-09-09 Protection switching method, node equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112468394B (en)

Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1083711A2 (en) * 1999-09-09 2001-03-14 Nortel Networks Limited ATM protection switching method and apparatus
US7373401B1 (en) * 2001-12-31 2008-05-13 Nortel Networks Limited Label switched path OAM wrapper
CN101719843A (en) * 2009-12-18 2010-06-02 烽火通信科技股份有限公司 Method of LSP linear protection switching in PTN
EP2736203A1 (en) * 2012-11-22 2014-05-28 Huawei Technologies Co., Ltd. Method for label automatic allocation and retention in ring network protection
CN104426700A (en) * 2013-09-06 2015-03-18 华为技术有限公司 Network element and ring network protection method
CN104618189A (en) * 2015-02-04 2015-05-13 杭州华三通信技术有限公司 Link failure detection method and device
WO2015139534A1 (en) * 2014-03-21 2015-09-24 烽火通信科技股份有限公司 System, method and apparatus for achieving link-state pass through function based on ptn
US20150334004A1 (en) * 2013-01-02 2015-11-19 Infinera Corp. Optical Layer Protection Switching Applications
CN105281931A (en) * 2014-06-18 2016-01-27 中兴通讯股份有限公司 Error code detection method, device and system of POTN
CN107086956A (en) * 2017-05-27 2017-08-22 烽火通信科技股份有限公司 A kind of implementation method of Ethernet pretection switch
CN108632121A (en) * 2017-03-23 2018-10-09 中兴通讯股份有限公司 A kind of pretection switch method and device for looped network
WO2019007316A1 (en) * 2017-07-03 2019-01-10 中兴通讯股份有限公司 Method and device for achieving bidirectional segment routing tunnel, storage medium, and apparatus
CN109218176A (en) * 2017-06-30 2019-01-15 华为技术有限公司 A kind of method and device of Message processing
CN109981457A (en) * 2017-12-27 2019-07-05 华为技术有限公司 A kind of method of Message processing, network node and system

Patent Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1083711A2 (en) * 1999-09-09 2001-03-14 Nortel Networks Limited ATM protection switching method and apparatus
US7373401B1 (en) * 2001-12-31 2008-05-13 Nortel Networks Limited Label switched path OAM wrapper
CN101719843A (en) * 2009-12-18 2010-06-02 烽火通信科技股份有限公司 Method of LSP linear protection switching in PTN
EP2736203A1 (en) * 2012-11-22 2014-05-28 Huawei Technologies Co., Ltd. Method for label automatic allocation and retention in ring network protection
US20150334004A1 (en) * 2013-01-02 2015-11-19 Infinera Corp. Optical Layer Protection Switching Applications
CN104426700A (en) * 2013-09-06 2015-03-18 华为技术有限公司 Network element and ring network protection method
WO2015139534A1 (en) * 2014-03-21 2015-09-24 烽火通信科技股份有限公司 System, method and apparatus for achieving link-state pass through function based on ptn
CN105281931A (en) * 2014-06-18 2016-01-27 中兴通讯股份有限公司 Error code detection method, device and system of POTN
CN104618189A (en) * 2015-02-04 2015-05-13 杭州华三通信技术有限公司 Link failure detection method and device
CN108632121A (en) * 2017-03-23 2018-10-09 中兴通讯股份有限公司 A kind of pretection switch method and device for looped network
CN107086956A (en) * 2017-05-27 2017-08-22 烽火通信科技股份有限公司 A kind of implementation method of Ethernet pretection switch
CN109218176A (en) * 2017-06-30 2019-01-15 华为技术有限公司 A kind of method and device of Message processing
WO2019007316A1 (en) * 2017-07-03 2019-01-10 中兴通讯股份有限公司 Method and device for achieving bidirectional segment routing tunnel, storage medium, and apparatus
CN109218195A (en) * 2017-07-03 2019-01-15 中兴通讯股份有限公司 A kind of method and device for realizing the tunnel two-way segment routing
CN109981457A (en) * 2017-12-27 2019-07-05 华为技术有限公司 A kind of method of Message processing, network node and system

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
A. GIORGETTI;A. SGAMBELLURI;F. PAOLUCCI;F. CUGINI;P. CASTOLDI: "Segment routing for effective recovery and multi-domain traffic engineering", 《JOURNAL OF OPTICAL COMMUNICATIONS AND NETWORKING》 *
黄建洋等: "一种SDN中基于SR的多故障恢复与规避机制", 《电子学报》 *

Also Published As

Publication number Publication date
CN112468394B (en) 2022-09-27

Similar Documents

Publication Publication Date Title
CN109391560B (en) Network congestion notification method, proxy node and computer equipment
CN110061914B (en) Message forwarding method and device
US10868734B2 (en) Service function chain detection path method and device
KR102606129B1 (en) Network communication method and device
CN110740072B (en) Fault detection method, device and related equipment
CN102571492B (en) Method and device for detecting failure of routing equipment
CN109586959B (en) Fault detection method and device
CN105281931A (en) Error code detection method, device and system of POTN
CN111614580B (en) Data forwarding method, device and equipment
US20230091414A1 (en) Packet Processing Method, Device, and System
CN113438161A (en) Method and network device for generating segment identification SID
CN105610594B (en) Service chain fault diagnosis method and device
CN109510771B (en) Multicast transmission method and related equipment
CN112003816B (en) Data transmission method, device, equipment and storage medium
CN112468394B (en) Protection switching method, node equipment and storage medium
CN110011819B (en) Method, device, equipment and system for generating SD (secure digital) alarm information
CN112468311B (en) Protection switching method, node equipment and storage medium
US20230208756A1 (en) Operation, Administration, and Maintenance OAM Packet Processing Method and Device
WO2019165803A1 (en) Message processing method and apparatus, and message encapsulating method, apparatus and system
CN113489626B (en) Method and device for detecting and notifying path fault
CN110971477B (en) Communication method, device, system and storage medium
CN115914087A (en) Message forwarding method, device, equipment, system and storage medium
WO2020253791A1 (en) Fault transmission method and apparatus
CN112825501A (en) Signal degradation processing method, device and system
CN112737949A (en) Fault detection method and device, electronic equipment and computer readable medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant