A network communication method and device
By encapsulating signal degradation identification information in OAM packets, the problem of signal degradation caused by bit errors at the SR-TE tunnel intermediate node port is solved, more accurate APS switching is achieved, customer service is avoided, and service transmission efficiency is improved. accuracy.
Patent Information
- Application Number
- CN202211495188.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2018-06-08
- Publication Date
- 2024-08-27
- Estimated Expiration
- 2038-06-08
AI Technical Summary
The existing SR-TE tunnel APS protection mechanism cannot accurately detect signal degradation when a port error failure occurs at an intermediate node, causing service packets to be modified and unable to be processed normally, causing damage to customer services.
Identification information is encapsulated in OAM packets to identify signal degradation, ensuring that PE nodes can accurately determine and trigger APS switching to avoid damage to customer services.
By adding signal degradation identification information to OAM messages, the signal degradation problem of SR-TE tunnels can be more accurately identified and dealt with, ensuring the accuracy and stability of service transmission and reducing customer service losses.
Smart Images

Figure CN115987754B
Abstract
Description
[0001] This application is a divisional application of the Chinese patent application with application number 201810586061.9 and application date 2018-06-08. Technical Field
[0002] The present application relates to the field of communications, and in particular to a network communication method and device. Background Art
[0003] Automatic protection switching (APS) is a protection mechanism that when a communication device at one end finds that the currently used communication channel has a fault, it sends an APS request through an APS message and cooperates with the other end device to switch the communication channel.
[0004] Segment Routing Traffic Engineering (SR-TE) tunnels guide path forwarding based on segment routing. When a message enters the network, the source node adds a set of instructions (also called a label stack) to guide forwarding in the message frame header. Subsequent nodes query the forwarding table according to the instructions (also called labels) to obtain the next hop and outbound interface to forward the message. The SR-TE tunnel mechanism strictly displays the path and uses the outermost adjacency label (Adj-SID) to forward messages to the corresponding link port to achieve packet message forwarding.
[0005] In order to protect the SR-TE tunnel, APS protection of the SR-TE tunnel is usually deployed during network deployment. When the working SR-TE tunnel fails, APS will be triggered, and the service transmission will be switched from the working SR-TE tunnel to the protection SR-TE tunnel to avoid damage to customer services. In the existing APS protection mechanism of the SR-TE tunnel, operation, administration, and maintenance (OAM) messages are usually used to detect service path failures. However, in some failure scenarios, the existing OAM messages may not be able to detect the failure, resulting in damage to customer services. For example, when a port bit error failure occurs in an intermediate node in the working SR-TE tunnel, the port with the bit error failure randomly modifies the received message. If within the sending interval of the OAM message, the port just has no effect on the received OAM message, but the data of the service message is modified. In this case, the OAM message forwarded from the port is still a normal OAM message, while the data in the service message forwarded by the port has been modified. However, for the sink node, if it receives a normal OAM message, it will think that the working path is normal, will not trigger APS switching, and will continue to receive service messages through the current working path. In fact, due to the port error fault of the intermediate node, the service message has been modified. In this case, since the service message has been modified, the sink node may not be able to normally parse the received service message, and thus cannot further process the service message, which makes it impossible for the customer service to be effectively processed, resulting in damage to the customer service. Summary of the invention
[0006] In view of this, the embodiments of the present application provide a network communication method and device, which help to more accurately specify end-to-end SR-TE tunnel APS switching, thereby effectively reducing damage to customers' normal services and improving the accuracy of service transmission.
[0007] In the first aspect, the present application provides a network communication method, wherein the network includes a first service provider edge PE node and a second PE node, wherein the first PE node is connected to the second PE node through a working segment routing traffic engineering SR-TE tunnel and a protection SR-TE tunnel, respectively, and the path of the working SR-TE tunnel includes the first PE node, an intermediate node and the second PE node, wherein the intermediate node is a node located between the first PE node and the second PE node. The intermediate node receives a first operation, management and maintenance OAM message sent by the first PE node through the working SR-TE tunnel. The intermediate node determines that a port error fault occurs. The intermediate node encapsulates identification information in the first OAM message to obtain a second OAM message, wherein the identification information is used to identify that signal degradation SD occurs in the working SR-TE tunnel. The intermediate node sends the second OAM message to the second PE node through the working SR-TE tunnel, and the second OAM message is used to instruct the second PE node to switch to the protection SR-TE tunnel to communicate with the first PE node.
[0008] In one possible design, the second OAM message is a continuous monitoring (English: continuity check message, CCM) message, and the identification information is carried in a Flag field in the CCM message or a reserved field in the CCM message.
[0009] In the method provided by the present application, in the network architecture where the SR-TE tunnel is deployed, when the intermediate node in the SR-TE tunnel path senses a bit error fault, based on the existing OAM message, the bit error switching function is extended to support, and identification information that identifies link signal degradation is encapsulated in the received OAM message, and the message encapsulated with the identification information is sent to the PE node at the destination end, so that when the PE node at the destination end receives the extended OAM message, it can be informed that the current SR-TE tunnel has signal degradation based on the identification information carried in the message. The method of the present application effectively ensures that the SR-TE tunnel supports bit error switching of intermediate nodes, and can effectively avoid damage to customer services.
[0010] In the second aspect, the present application provides a network communication method, wherein the network includes a first service provider edge PE node and a second PE node, wherein the first PE node is connected to the second PE node through a working segment routing traffic engineering SR-TE tunnel and a protection SR-TE tunnel, respectively, and the path of the working SR-TE tunnel includes the first PE node, an intermediate node and the second PE node. The second PE node receives a first operation, management and maintenance OAM message sent by the intermediate node through the working SR-TE tunnel, wherein the first OAM message carries identification information, and the identification information is used to identify that signal degradation SD occurs in the working SR-TE tunnel. The second PE node determines that SD occurs in the working SR-TE tunnel based on the identification information. The second PE node switches to the protection SR-TE tunnel to communicate with the first PE node.
[0011] In one possible design, the first OAM message is a continuous monitoring (English: continuity check message, CCM) message, and the identification information is carried in a Flag field in the CCM message or a reserved field in the CCM message.
[0012] In one possible design, after the second PE node switches to the protection SR-TE tunnel, the method further includes:
[0013] The second PE node sends an automatic protection switching APS message to the first PE node through the protection SR-TE tunnel, where the APS message is used to instruct the first PE node to switch to the protection SR-TE tunnel to communicate with the second PE node.
[0014] In one possible design, before the second PE node receives the first OAM message sent by the intermediate node, the method also includes: the intermediate node determines that a port error fault occurs; the intermediate node receives the second OAM message sent by the first PE node; the intermediate node encapsulates the identification information in the second OAM message to obtain the first OAM message; and the intermediate node sends the first OAM message to the second PE node.
[0015] In the above method provided in the present application, after the second PE node receives the OAM message sent by the first PE node, it parses the OAM message to obtain the identification information, and can determine whether the working SR-TE tunnel has signal degradation according to the identification information. Compared with the prior art, it can more accurately specify the end-to-end SR-TE tunnel for APS switching. Specifically, in the prior art, for an end-to-end SR-TE tunnel, when a port error fault occurs in an intermediate node in the working SR-TE tunnel, the passing message data is randomly modified due to the port error fault. If the OAM message is not modified when passing through the port, that is, the data in the OMA message is not modified. At this time, after the second PE node receives the message, it parses the message and confirms that a normal OAM message has been received according to the field matching principle, so APS protection will not be triggered. The first PE node and the second PE node will continue to communicate through the working SR-TE tunnel. Usually, the sending cycle of the OAM message is usually long, for example, a cycle of 3.3ms. During this sending cycle, the port will receive other service messages, and the port error fault may cause the customer's normal service message to be modified. However, since the second PE node has previously received a normal OAM message, it believes that the working SR-TE tunnel has no faults, and therefore, will not trigger APS protection, and will continue to communicate with the first PE node on the working SR-TE tunnel. But at this time, the customer's service has been damaged by the port error fault of the intermediate node of the link. In the next sending cycle, unless the second PE node cannot receive the OAM message, the node will be triggered to perform APS protection, otherwise the first PE node and the second PE node will continue to communicate through the working SR-TE tunnel, which may cause the customer's service to continue to be damaged. That is to say, in the prior art, when a port error fault occurs in the intermediate node, causing the current transmission path to degrade the signal, the port error fault can only randomly modify the characteristics of the message, resulting in the host node may normally receive the OAM message, and thus fail to correctly trigger the possibility of APS switching. However, through the method described in the present application, after the intermediate node determines that a port bit error fault has occurred, identification information indicating that signal degradation has occurred on the current transmission path will be added to the OAM message. Therefore, after the second PE node receives the OAM message, although it fails to find that signal degradation has occurred on the current transmission path through normal field matching and message parsing, it can still identify that SD has occurred on the current transmission path through the identification information carried in the message, and thus can more accurately specify the end-to-end SR-TE tunnel for APS switching.
[0016] In a third aspect, the present application provides a network communication device, comprising a memory, the memory comprising computer-readable instructions; and a processor connected to the memory, the processor being used to execute the computer-readable instructions to perform the operations in the method in the first aspect or any possible design of the first aspect.
[0017] In a fourth aspect, the present application provides a network communication device, comprising a memory, the memory comprising computer-readable instructions; and a processor connected to the memory, the processor being used to execute the computer-readable instructions to perform the operations in the method in the second aspect or any possible design of the second aspect.
[0018] In a fifth aspect, the present application provides a communication system, comprising the network communication device provided in the third aspect and the network communication device included in the fourth aspect.
[0019] In a sixth aspect, an embodiment of the present application provides a computer-readable storage medium, which stores instructions, and when the computer-readable storage medium is run on a computer, it enables the computer to execute the instructions of the method in the first aspect, the second aspect, any possible implementation of the first aspect, or any possible implementation of the second aspect.
[0020] In the method provided by the present application, in the network architecture where the SR-TE tunnel is deployed, when the intermediate node in the SR-TE tunnel path senses a bit error fault, based on the existing OAM message, the bit error switching function is extended to support, effectively ensuring that the SR-TE tunnel supports the bit error switching of the intermediate node, which can effectively avoid damage to customer services. In addition, the method of the present application supports the docking of equipment from different manufacturers. In the scenario where the equipment does not support bit error switching, the received message will not be changed, and the normal function of the SR-TE tunnel will not be affected. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] Figure 1 A schematic diagram of a network system architecture applied in an embodiment of the present application.
[0022] Figure 2 A flowchart of a network communication method provided in an embodiment of the present application.
[0023] Figure 3a The following is a schematic diagram of the format of the CCM PDU specified in the existing protocol.
[0024] Figure 3b This is a schematic diagram of the format of the Flags field in the extended CCM PDU.
[0025] Figure 3c This is a schematic diagram of the expanded DMM PDU Flags field format.
[0026] Figure 4a This is a diagram of the APS PDU format.
[0027] Figure 4b This is a format diagram of the APS data field.
[0028] Figure 5 It is a flow chart of another network communication method provided in an embodiment of the present application.
[0029] Figure 6 It is a flow chart of another network communication method provided in an embodiment of the present application.
[0030] Figure 7 It is a schematic diagram of a network communication device provided in an embodiment of the present application.
[0031] Figure 8 It is a schematic diagram of a network communication device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0032] The application scenarios described in the embodiments of the present invention are intended to more clearly illustrate the technical solutions of the embodiments of the present invention, and do not constitute a limitation on the technical solutions provided by the embodiments of the present invention. Ordinary technicians in this field can know that with the evolution of network architecture and the emergence of new business scenarios, the technical solutions provided by the embodiments of the present invention are also applicable to similar technical problems.
[0033] Unless otherwise specified, ordinal numbers such as "1", "2", "first" and "second" mentioned in this application are used to distinguish multiple objects and are not used to limit the order of the multiple objects.
[0034] The nodes involved in this application may be routers, packet transmission network equipment, switches, firewalls, etc. For the convenience of description, in this application, the above-mentioned devices are collectively referred to as nodes.
[0035] The working channel described in this application may also be referred to as the working path, which refers to the path configured by the system for transmitting service traffic. In this application, the SR-TE tunnel configured by the system as a working channel is referred to as a working SE-TR tunnel. The protection channel described in this application may also be referred to as a protection path, which refers to the path configured by the system to replace the working path for transmitting service traffic when the working path cannot transmit service traffic. In this application, the SR-TE tunnel configured by the system as a protection channel is referred to as a protection SR-TE tunnel.
[0036] Two protection mechanisms are defined in the APS protocol: 1+1 protection switching mechanism and 1:N protection switching mechanism, where N is a natural number. In the 1+1 protection switching mechanism, the transmitter sends services on the working channel and the protection channel at the same time, and the receiver selects a communication channel to receive services. In the 1:N protection switching mechanism, a protection channel provides protection for N working channels at the same time. Under normal circumstances, the transmitter only transmits data on the corresponding working channel, and the protection channel transmits some low-priority data or does not transmit data. When a working channel fails, the transmitter bridges the data to be transmitted to the protection channel, and the receiver receives data from the protection channel at this time. If there is low-priority data being transmitted on the protection channel, at this time, the low-priority data must give way to the high-priority protected data and no longer be transmitted. When several working channels fail at the same time, only the data on the highest-priority working channel can be switched to the protection channel according to the priority of the working channel. In particular, when N=1, it is a 1:1 protection switching mechanism. The APS in this application can be either a 1+1 protection switching mechanism or a 1:N protection switching mechanism. The APS protocol described in this application can refer to any version of ITU-TG.8031 / Y.1342.
[0037] Figure 1 1 is a schematic diagram of a system architecture of a network 100 applied in an embodiment of the present application, and the network 100 includes multiple nodes. Figure 1As shown in the figure, two SR-TE tunnels are established between node A and node Z, namely tunnel 1 and tunnel 2. Node A and node Z both enable the SR-TE operation, administration and maintenance (OAM) detection function and configure APS protection. Among them, tunnel 1 is a working SR-TE tunnel, the path of tunnel 1 is A->B->C->D->E->Z, and the forwarding label stack is {100 101 102 103 104 14}. Tunnel 2 is a protection SR-TE tunnel, the path of tunnel 2 is A->F->G->H->I->Z, and the forwarding label stack is {105 106 107 108 109 14}. Among them, node A is an ingress node (also called a PE node). Node B, node C, node D, node E, node F, node G, node H and node I are transmission nodes (also called P nodes or intermediate nodes). Node Z is the egress node (also called PE node). The controller calculates the label stack of each SR-TE tunnel path and sends it to the ingress node A. Label 14 is the bottom label of the stack and is a reserved label used to identify the message as an OAM message. The following takes the OAM message as a CCM message as an example to introduce the SR-TE tunnel forwarding process.
[0038] Node A (Ingress node) sends a CCM message, which enters the working SR-TE tunnel, that is, tunnel 1, passes through tunnel 1, and reaches node Z (Egress node). The specific forwarding process is as follows:
[0039] a) Node A encapsulates the CCM message with a label stack {100 101 102 103 104 14} and forwards it to node B.
[0040] b) Node B queries the next hop and outbound interface based on label 100 in the packet header, removes label 100, and forwards the packet to node C.
[0041] c) Node C queries the next hop and outbound interface based on label 101 in the packet header, removes label 101, and forwards the packet to node D.
[0042] d) Node D queries the next hop and outbound interface based on label 102 in the packet header, removes label 102, and forwards the packet to node Z.
[0043] e) Node Z identifies the message as an OAM message based on the bottom label 14 of the stack.
[0044] Although this application Figure 1The application scenario of the present application is introduced by taking the example, but those skilled in the art can understand that the technical solution of the present application is applicable to various different network scenarios, and the present application does not make any specific limitation on this.
[0045] Figure 2 1 is a flow chart of a network communication method 200 provided according to an embodiment of the present application. The network architecture of the application method 200 includes at least node 1, node 2 and node 3. Node 1 is connected to node 3 through a working SR-TE tunnel and a protection SR-TE tunnel respectively. Among them, the working SR-TE tunnel protects the SR-TE tunnel, which is used to provide APS protection for the working SR-TE tunnel when a failure occurs in the working SR-TE tunnel. In the path of the working SR-TE tunnel, node 1 communicates with node 3 through node 2. For example, node 1 can be Figure 1 In the network architecture shown, node A and node 2 can be Figure 1 In the network architecture shown, node B and node 3 can be Figure 1 Node Z in the network architecture shown. A working SR-TE tunnel can be, for example Figure 1 Tunnel 1 shown, protecting the SR-TE tunnel, can be Figure 1 The network to which the method 200 is applied may be Figure 1 The network 100 is shown. The method 200 includes the following operations.
[0046] S201. Node 2 receives OAM message 1 sent by node 1 through a working SR-TE tunnel.
[0047] The OAM message 1 may be a CCM message, a link trace message (English: linktrace message, LTM), or a delay measurement message (English: delay measurement message, DMM).
[0048] S202: Node 2 determines that a port bit error fault occurs on itself.
[0049] When a node in the SR-TE tunnel determines that it has a port error fault, it is considered that the SR-TE tunnel has signal degradation SD. In this application, hardware failure (hard_bad) is also considered to be a type of port error fault, that is, when node 2 determines that it has a hardware fault, it determines that it has a port error fault. The above hardware failure can be, for example, forwarding chip damage, management bus damage, internal register failure, Peripheral Component Interconnect Express (PCIe) status failure, etc.
[0050] S203 : Node 2 encapsulates identification information in OAM message 1 to obtain OAM message 2 .
[0051] This identification information is used to identify that signal degradation occurs in a working SR-TE tunnel.
[0052] Node 2 may encapsulate the identification information in the OAM message in the following ways, but is not limited to the following ways.
[0053] Method 1
[0054] OAM messages are CCM messages. Based on the existing CCM messages, the tag field of the CCM messages is extended to identify error messages by occupying one or more bits in the tag field.
[0055] Combine the following Figure 3a as well as Figure 3b Let's further describe method 1.
[0056] Figure 3a This is a schematic diagram of the format of the CCM PDU specified in the existing protocol. For the specific description of the fields of the CCM PDU format, please refer to the relevant description in ITU-T G.8013 / Y.1731, which will not be repeated here. In the CCM PDU, a byte tag field is included. The tag field in the existing CCM message includes 8 bits, one of which is used as a remote defect indication RDI, 4 bits are reserved bits, and 3 bits are used to indicate the sending period.
[0057] Figure 3b This is a schematic diagram of the format of the Flags field in the extended CCM PDU, where the remote defect indication (RDI) field occupies one bit, the period (period) occupies three bits, and the above identification information for identifying signal degrade (SD) occupies one bit. For example, SD can be identified by bit 7. The remaining three are reserved bits. The meaning of each field is as follows:
[0058] RDI: Bit 8 is set to 1 when it refers to RDI, otherwise it is set to 0.
[0059] Period: Bits 3 to 1 indicate the transmission period of the CCM message. For example, in the existing protocol, the period value corresponding to 001 is 3.33 ms, that is, 300 frames per second, and the period value corresponding to 010 is 10 ms, that is, 100 frames per second.
[0060] Reserved: reserved bit. In the existing CCM message, the reserved bit occupies 4 bits. This application occupies one bit of the 4 reserved bits to identify SD, for example, bit 7 is used to identify SD caused by port bit error fault.
[0061] SD: When set to 1, it means that there is a signal degradation fault in the tunnel, otherwise it is set to 0.
[0062] It should be noted that in this application, Figure 3b This is only an exemplary description, and those skilled in the art will appreciate that the SD field may occupy bit 7, or other bits in the reserved field. The SD may occupy only one bit, or multiple bits in the reserved field.
[0063] Method 2
[0064] The OAM message is a CCM message, and carries the information identification by extending the reserved field in the CCM PDU shown in 3a. In the existing CCM message, the Reserved field occupies two bytes, and the identification information can be carried by occupying one or more bits in the Reserved field.
[0065] Method 3
[0066] OAM messages are CCM messages. Based on the existing CCM messages, Figure 3a The end TLV field in the CCM PDU shown in the figure carries the identification information. Under normal circumstances, in the existing CCM protocol message, the end TLV field is a value of all zero bytes. In this application, in order to indicate an error message, when an error occurs, the TLV field can be set to a non-zero value to indicate SD.
[0067] Method 4
[0068] OAM message is link trace message (LTM), which is an extension of the existing CCM protocol message. Figure 3a The reserved field in the LTM PDU shown in occupies one or more bits in the reserved field to carry the identification information.
[0069] Method 5
[0070] When the OAM message is a delay measurement message (DMM), one or more reserved bits of the tag field in the DMM PDU are extended on the basis of the existing DMM message to carry the identification information.
[0071] Figure 3c : is a schematic diagram of the format of the extended DMM PDU Flags field, in which the example in the figure can carry the identification information by occupying bit 8. Of course, those skilled in the art can understand that the above example should not constitute a limitation to the present application, and one or more other reserved bits can also be occupied to carry the identification information.
[0072] S204. Node 2 sends OAM message 2 carrying the identification information to node 3 through the working SR-TE tunnel.
[0073] After node 2 senses the port bit error fault, it encapsulates the identification information in OAM message 1, and continues to forward OAM message 1 carrying the identification information to the downstream node, removing the label hop by hop until it reaches node 3.
[0074] S205 , Node 3 receives OAM message 2 sent by Node 2 and carrying the identification information.
[0075] S206. Node 3 determines, based on the identification information, that SD occurs in the working SR-TE tunnel.
[0076] S207 , node 3 switches from the working SR-TE tunnel to the protection SR-TE tunnel to communicate with node 1 .
[0077] In S205-S207, after receiving the OAM message 2, node 3 identifies the bottom label 14 and identifies that the message is an OAM message. Node 3 parses the OAM message 2, obtains the identification information, and confirms that the working SR-TE tunnel has SD, then triggers the SR-TE APS protection of the local end, that is, switches the transmission path of the service from the working SR-TE tunnel to the protection SR-TE tunnel.
[0078] After S207, the method 200 may further include:
[0079] Node 3 sends an APS message to node 1 through the protection SR-TE tunnel, to instruct node 1 to switch from the working SR-TE tunnel to the protection SR-TE tunnel to communicate with node 3.
[0080] Node 1 receives the APS message sent by node 3 through the protection SR-TE tunnel and switches to the protection SR-TE tunnel to communicate with node 3.
[0081] When node 3 triggers the SR-TE APS switching at the local end, it will send an APS message to node 1 through the protection SR-TE tunnel for APS negotiation, and notify the switching status to the remote node 1 through the APS message, requesting node 1 to also switch. Specifically, first, node 3 sends the APS message to node 2 through the protection SR-TE tunnel. After node 2 receives the APS message, it continues to forward the APS message to node 1.
[0082] Combine the following Figure 4a and Figure 4b This section describes the APS negotiation process and message format.
[0083] Figure 4a APS PDU format diagram is shown. Figure 4a For the description of each field in the APS PDU, please refer to the relevant description in the existing protocol ITU-T G.8013 / Y.1731, which will not be repeated here. Figure 4a The APS data field in carries the APS protocol information, 6.
[0084] Among them, the Request / State field is used to identify the request type of the APS message. In this application, the Request / State field can take a value of 1001, for example, to identify SD.
[0085] The Requested Signal field can take the value of 1, which is used to indicate that the protection channel carries services.
[0086] The Bridged Signal field can take a value of 1, which is used to indicate that bridging has been performed, that is, indicating that switching has been performed on the local end.
[0087] As can be seen from the above, in the method provided by this application, in the network architecture where the SR-TE tunnel is deployed, when the intermediate node in the SR-TE tunnel path senses a bit error fault, based on the existing OAM message, the bit error switching function is extended to support, which effectively ensures that the SR-TE tunnel supports the bit error switching of the intermediate node, and can effectively avoid damage to customer services. In addition, the method of this application supports the docking of equipment from different manufacturers. In the scenario where the equipment does not support bit error switching, the received message will not be changed, and the normal function of the SR-TE tunnel will not be affected.
[0088] Figure 5It is a flow chart of another network communication method 500 provided according to an embodiment of the present application. The network of the application method 500 includes at least a first PE node, an intermediate node, and a second PE node, and the first PE node is connected to the second PE node through a working SR-TE tunnel and a protection SR-TE tunnel, respectively. The working SR-TE tunnel path includes the first PE node, the intermediate node, and the second PE node, that is, the intermediate node is a node located between the first PE node and the second PE node on the working SR-TE tunnel path. For example, the first PE node can be Figure 1 In the network architecture shown in FIG. 1 , the second PE node may be Figure 1 In the network architecture shown, the node Z, the intermediate node can be Figure 1 In the network architecture shown in Figure 1, the working SR-TE tunnel of Node B can be Figure 1 Tunnel 1 shown in the figure can protect the SR-TE tunnel. Figure 1 The network architecture of the reference method 500 can be Figure 1 The network architecture 100 is shown. The method 500 includes the following operations.
[0089] S501. A second PE node receives a first operation, management, and maintenance OAM message sent by an intermediate node through a working segment routing traffic engineering SR-TE tunnel.
[0090] The first OAM message carries identification information, where the identification information is used to identify that signal degradation SD occurs in the working SR-TE tunnel.
[0091] The identification information is encapsulated in the first OAM message after the intermediate node determines that a port error fault occurs. Specifically, the intermediate node determines that a port error fault occurs and receives a second OAM message sent by the first PE node. The intermediate node encapsulates the identification information in the second OAM message to obtain the first OAM message. The intermediate node sends the first OAM message to the second PE node.
[0092] The first OAM message may be a continuous monitoring CCM message. In a specific implementation, the CCM message includes a Flag field, and the Flag field carries the identification information. In another specific implementation, the CCM message includes a reserved field, and the reserved field carries the identification information.
[0093] The first OAM message may also be an LTM message. In a specific implementation, the LTM message includes a reserved field for carrying the identification information.
[0094] The first OAM message may also be a delay measurement DMM message, and in one specific implementation, the DMM message includes a Flag field, and the Flag field carries the identification information. In another specific implementation, the DMM message includes a Reserved field, and the Reserved field carries the identification information.
[0095] Regarding the specific manner in which the first OAM message carries the identification information, refer to the relevant description of S203 in method 200, which will not be repeated here.
[0096] S502: The second PE node determines, according to the identification information, that SD occurs in the working SR-TE tunnel.
[0097] S503: The second PE node switches to the protection SR-TE tunnel to communicate with the second PE node.
[0098] In a specific implementation, in method 500, after S503, the method further includes:
[0099] The first PE node sends an automatic protection switching APS message to the second PE node through the protection SR-TE tunnel, where the APS message is used to instruct the second PE node to switch from the working SR-TE tunnel to the protection SR-TE tunnel to communicate with the first PE node.
[0100] In the above method provided in the present application, after the second PE node receives the OAM message sent by the first PE node, it parses the OAM message to obtain the identification information, and can determine whether the working SR-TE tunnel has signal degradation according to the identification information. Compared with the prior art, it can more accurately specify the end-to-end SR-TE tunnel for APS switching. Specifically, in the prior art, for an end-to-end SR-TE tunnel, when a port error fault occurs in an intermediate node (for example, node B) in the working SR-TE tunnel, the passing message data is randomly modified due to the port error fault. If the OAM message is not modified when passing through the port, that is, the data in the OMA message is not modified. At this time, after node Z receives the message, it parses the message and confirms that a normal OAM message has been received according to the field matching principle, so APS protection will not be triggered. Node A and node Z will continue to communicate through the working SR-TE tunnel. Usually, the sending cycle of OAM messages is usually long, for example, a cycle of 3.3ms. During this sending cycle, the port will receive other service messages, and the port error fault may cause the customer's normal service messages to be modified. However, since node Z has previously received normal OAM messages and believes that the working SR-TE tunnel is not faulty, APS protection will not be triggered, and communication with node A will continue on the working SR-TE tunnel. But at this time, the customer's service has been damaged by the port error fault of the intermediate node in the link. In the next sending cycle, unless node Z cannot receive the OAM message, the node will be triggered to perform APS protection, otherwise node A and node Z will continue to communicate through tunnel 1, which may cause continuous damage to customer services. That is to say, in the prior art, when a port error fault occurs in an intermediate node, causing signal degradation in the current transmission path, the port error fault can only randomly modify the characteristics of the message, resulting in the host node may receive the OAM message normally, and thus fail to correctly trigger the APS switching. However, through the method described in the present application, after the intermediate node determines that a port bit error fault has occurred, it will add identification information indicating that signal degradation has occurred in the current transmission path to the OAM message. Therefore, after the host node receives the OAM message, although it fails to find that signal degradation has occurred in the current transmission path through normal field matching and message parsing, it can still identify that SD has occurred in the current transmission path through the identification information carried in the message, and thus can more accurately specify the end-to-end SR-TE tunnel for APS switching.
[0101] Figure 66 is a flow chart of another network communication method 600 provided according to an embodiment of the present application. The network applying the method 600 includes at least a first PE node, an intermediate node, and a second PE node, wherein the first PE node is connected to the second PE node through a working SR-TE tunnel and a protection SR-TE tunnel, respectively. For example, the first PE node may be Figure 1 In the network architecture shown in FIG. 1 , the second PE node may be Figure 1 In the network architecture shown, the node Z, the intermediate node can be Figure 1 In the network architecture shown in FIG. 1 , the working SR-TE tunnel may be Figure 1 The tunnel 1 shown in the figure, the protection SR-TE tunnel can be Figure 1 The network architecture of the reference method 600 can be Figure 1 The network architecture 100 is shown. The method 600 includes the following operations.
[0102] S601: The intermediate node determines that a port bit error fault occurs.
[0103] Specifically, the intermediate node is a node located between the first PE node and the second PE node on the path of the working SR-TE tunnel. When an intermediate node in the SR-TE tunnel determines that a port error fault occurs, it is considered that signal degradation SD occurs in the SR-TE tunnel. In the present application, hardware failure (hard_bad) is also considered to be a type of port error failure, that is, when the intermediate node determines that it has a hardware failure, it determines that a port error failure occurs. The above-mentioned hardware failure may be, for example, a damaged forwarding chip, a damaged management bus, an internal register failure, a Peripheral Component Interconnect Express (PCIe) status failure, etc.
[0104] S602: The intermediate node receives a first OAM message sent by the first PE node through the working SR-TE tunnel.
[0105] S603: The intermediate node encapsulates identification information in the first OAM message to obtain a second OAM message, where the identification information is used to identify that signal degradation SD occurs in the first SR-TE tunnel.
[0106] The first OAM message and the second OAM message may be continuous monitoring CCM messages. In a specific implementation, the CCM message includes a Flag field, and the Flag field is used to carry the identification information. In another specific implementation, the CCM message includes a reserved field, and the reserved field is used to carry the identification information.
[0107] The first OAM message and the second OAM message may also be LTM messages. In a specific implementation, the LTM message includes a reserved field for carrying the identification information.
[0108] The first OAM message and the second OAM message may also be delay measurement DMM messages, and in one specific implementation, the DMM message includes a Flag field, and the Flag field includes the identification information. In another specific implementation, the DMM message includes a reserved field, and the reserved field is used to carry the identification information.
[0109] Regarding the specific manner of carrying the identification information in the second OAM message, please refer to the relevant description of S203 in method 200, which will not be repeated here.
[0110] S604: The intermediate node sends the second OAM message including the identification information to the second PE node, where the second OAM message is used to instruct the second PE node to switch to the protection SR-TE tunnel to communicate with the first PE node.
[0111] As can be seen from the above, in the method provided by the present application, in the network architecture where the SR-TE tunnel is deployed, when the intermediate node in the SR-TE tunnel path senses a bit error fault, based on the existing OAM message, the bit error switching function is extended to support, and the identification information identifying the link degradation is encapsulated in the received OAM message, and the message encapsulated with the identification information is sent to the PE node at the destination, so that when the PE node at the destination receives the OAM message, it can be informed that the current SR-TE tunnel has signal degradation based on the identification information carried in the message. The method of the present application effectively ensures that the SR-TE tunnel supports bit error switching of intermediate nodes, and can effectively avoid damage to customer services. In addition, the method of the present application supports the docking of equipment from different manufacturers, and even in the scenario where the equipment does not support bit error switching, the received message will not be changed, and the normal function of the SR-TE tunnel will not be affected.
[0112] Above, structure Figure 2-Figure 6 The present invention describes a communication method according to an embodiment of the present application. Figure 7 and Figure 8The communication devices corresponding to the above-mentioned method embodiments are described.
[0113] Figure 7 is a schematic diagram of a communication device 700 provided in an embodiment of the present application. The communication device 700 can be applied to Figure 1 In the network architecture shown, for example, it can be applied to Figure 1 Node B in the network architecture shown. Figure 7As shown, the communication device 700 may include a processor 710, a memory 720 coupled to the processor 710, and a transceiver 730. The processor 710 may be a central processing unit (CPU), a network processor (NP), or a combination of a CPU and a NP. The processor may further include a hardware chip. The hardware chip may be an application-specific integrated circuit (ASIC), a programmable logic device (PLD), or a combination thereof. The PLD may be a complex programmable logic device (CPLD), a field programmable gate array (FPGA), a general array logic (GAL), or any combination thereof. The processor 710 may refer to one processor or may include multiple processors. The memory 720 may include a volatile memory, such as a random access memory (RAM); the memory may also include a non-volatile memory, such as a read-only memory (ROM), a flash memory, a hard disk (HDD) or a solid-state drive (SSD); the memory may also include a combination of the above-mentioned types of memories. The memory 720 may refer to one memory or may include multiple memories. The memory 720 stores computer-readable instructions, and the computer-readable instructions may include multiple software modules, such as a sending module 721, a processing module 722 and a receiving module 723. After the processor 710 executes the above-mentioned software modules, it may perform corresponding operations according to the instructions of each software module. In this embodiment, the operation performed by a software module actually refers to the operation performed by the processor 710 according to the instructions of the software module. In some embodiments, when a module is configured to perform an operation, it may actually mean that the processor 710 is configured to execute instructions in the module to complete the above operation.The receiving module 723 is used to receive the first operation, management and maintenance OAM message sent by the first PE node through the working SR-TE tunnel, the Internet Protocol IP address of the first OAM message is the IP address of the first PE node, and the destination IP address of the first OAM message is the IP address of the second PE node. The processing module 722 is used to determine that a port error fault occurs in the intermediate node, and is used to encapsulate identification information in the first OAM message to obtain a second OAM message, and the identification information is used to identify that the working SR-TE tunnel has signal degradation SD. The sending module 721 is used to send the second OAM message to the second PE node through the working SR-TE tunnel, and the second OAM message is used to instruct the second PE node to switch to the protection SR-TE tunnel to communicate with the first PE node. In addition, after the processor 710 executes the computer-readable instructions in the memory 720, it can execute some or all of the operations performed by the intermediate node in method 200, 500 or 600 according to the instructions of the computer-readable instructions.
[0114] Figure 8 Shown is a schematic diagram of a communication device 800 in an embodiment of the present application.
[0115] The communication device 800 can be applied to Figure 1 In the network architecture shown, for example, it can be applied to Figure 1 Node Z in the network architecture shown. Figure 8As shown, the communication device 800 may include a processor 810, a memory 820 coupled to the processor 810, and a transceiver 830. The processor 810 may be a central processing unit (CPU), a network processor (NP), or a combination of a CPU and a NP. The processor may further include a hardware chip. The hardware chip may be an application-specific integrated circuit (ASIC), a programmable logic device (PLD), or a combination thereof. The PLD may be a complex programmable logic device (CPLD), a field programmable gate array (FPGA), a general array logic (GAL), or any combination thereof. The processor 710 may refer to one processor or may include multiple processors. The memory 820 may include a volatile memory (English: volatile memory), such as a random access memory (English: random-access memory, abbreviated: RAM); the memory may also include a non-volatile memory (English: non-volatile memory), such as a read-only memory (English: read-on ly memory, abbreviated: ROM), a flash memory (English: flash memory), a hard disk (English: hard disk drive, abbreviated: HDD) or a solid-state drive (English: solid-state drive, abbreviated: SSD); the memory may also include a combination of the above-mentioned types of memories. The memory 820 may refer to one memory or may include multiple memories. The memory 820 stores computer-readable instructions, and the computer-readable instructions may include multiple software modules, such as a sending module 821, a processing module 822 and a receiving module 823. After the processor 810 executes the above-mentioned software modules, it may perform corresponding operations according to the instructions of each software module. In this embodiment, the operation performed by a software module actually refers to the operation performed by the processor 810 according to the instructions of the software module. In some embodiments, when a module is configured to perform an operation, it may actually mean that the processor 810 is configured to execute instructions in the module to complete the above operation.The receiving module 823 is used to receive the first operation, management and maintenance OAM message sent by the intermediate node through the working SR-TE tunnel, the source Internet Protocol IP address of the first OAM message is the IP address of the first PE node, the destination IP address of the first OAM message is the IP address of the second PE node, and the first OAM message carries identification information, and the identification information is used to identify that the working SR-TE tunnel has signal degradation SD. The processing module 822 is used to determine that the working SR-TE tunnel has SD according to the identification information, and switch to the protection SR-TE tunnel to communicate with the first PE node. The sending module 721 is used to send an automatic protection switching APS message to the first PE node through the protection SR-TE tunnel after the second PE node switches to the protection SR-TE tunnel, and the APS message is used to instruct the first PE node to switch to the protection SR-TE tunnel to communicate with the second PE node. In addition, after executing the computer-readable instructions in the memory 720, the processor 710 may execute part or all of the operations performed by the second PE node in the method 200, 500 or 600 according to the instructions of the computer-readable instructions.
[0116] The present application also provides a communication system, which can be applied to Figure 1 The communication system includes a first service provider edge PE node, an intermediate node and a second PE node, wherein the first PE node is connected to the second PE node through a working segment routing traffic engineering SR-TE tunnel and a protection SR-TE tunnel, respectively, and the path of the working SR-TE tunnel includes the first PE node, the intermediate node and the second PE node. The communication system can be, for example, the intermediate node can be Figure 7 The second PE node may be an intermediate node provided in the corresponding embodiment. Figure 8 The second PE node provided in the corresponding embodiment. The communication system is used to execute Figure 1-Figure 6 The method of any corresponding embodiment.
[0117] It should be understood that in the various embodiments of the present application, the size of the serial number of each process does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
[0118] Those skilled in the art will appreciate that the modules and method operations of the various examples described in the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application.
[0119] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the above-described device and system can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.
[0120] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from a website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium may be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integration. The available medium may be a magnetic medium, (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state drive Solid State Disk (SSD)), etc.
[0121] Each part of this specification is described in a progressive manner, and the same or similar parts between the various embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the device and system embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can be referred to the description of the method embodiment part.
[0122] The above description of the specification of this application can make any person skilled in the art use or realize the content of this application, and any modification based on the disclosed content should be considered obvious in the art, and the basic principles described in this application can be applied to other variations without departing from the inventive essence and scope of this application. Therefore, the content disclosed in this application is not limited to the described embodiments and designs, but can also be extended to the maximum scope consistent with the principles of this application and the disclosed new features.
Claims
1. A communication method, characterized in that: The method comprises: The intermediate node receives a first operation, management and maintenance OAM message sent by a first service provider edge PE node, the first PE node is connected to a second PE node through a working segment routing traffic engineering SR-TE tunnel, the first PE node is an ingress node of the working SR-TE tunnel, the second PE node is an egress node of the working SR-TE tunnel, and the intermediate node is a node located between the first PE node and the second PE node; In response to a port bit error fault, the intermediate node encapsulates identification information in the first OAM message to obtain a second OAM message, wherein the identification information is used to identify signal degradation SD of the working SR-TE tunnel; The intermediate node sends the second OAM message to the second PE node through the working SR-TE tunnel.
2. The method according to claim 1, characterized in that The second OAM message is a continuous monitoring CCM message, and the identification information is carried in a Flag field in the CCM message.
3. The method according to claim 1, characterized in that The second OAM message is a CCM message, and the identification information is carried in a reserved field in the CCM message.
4. A communication method, characterized in that: The method comprises: The second service provider edge PE node receives a first operation, management and maintenance OAM message generated and sent by an intermediate node through a working segment routing traffic engineering SR-TE tunnel, wherein the first OAM message carries identification information, and the identification information is used to identify the signal degradation SD of the working SR-TE tunnel, wherein the first PE node is an ingress node of the working SR-TE tunnel, the second PE node is an egress node of the working SR-TE tunnel, and the intermediate node is a node located between the first PE node and the second PE node; The second PE node determines the signal degradation SD of the working SR-TE tunnel according to the identification information.
5. The method according to claim 4, characterized in that The method also includes: the second PE node switching to a protection SR-TE tunnel to communicate with the first PE node.
6. The method according to claim 4 or 5, characterized in that: The first OAM message is a continuous monitoring CCM message, and the identification information is carried in a Flag field or a reserved field in the CCM message.
7. The method according to claim 5, characterized in that After the second PE node is switched to the protection SR-TE tunnel, the method further includes: The second PE node sends an automatic protection switching APS message to the first PE node through the protection SR-TE tunnel, where the APS message is used to instruct the first PE node to switch to the protection SR-TE tunnel to communicate with the second PE node.
8. The method according to any one of claims 4, 5 or 7, characterized in that: Before the second PE node receives the first OAM message, the method further includes: The intermediate node determines that a port bit error fault occurs; The intermediate node receives a second OAM message sent by the first PE node; The intermediate node encapsulates the identification information in the second OAM message to generate the first OAM message; The intermediate node sends the first OAM message to the second PE node.
9. A network communication device, characterized in that: The device is applied to an intermediate node, and includes: A receiving module, configured to receive a first operation, management and maintenance OAM message sent by a first service provider edge PE node of a working segment routing traffic engineering SR-TE tunnel, wherein the first PE node is connected to a second PE node through the working SR-TE tunnel, the first PE node is an ingress node of the working SR-TE tunnel, the second PE node is an egress node of the working SR-TE tunnel, and the intermediate node is a node located between the first PE node and the second PE node; A processing module, configured to encapsulate identification information in the first OAM message in response to a port bit error failure occurring in the intermediate node, to obtain a second OAM message, wherein the identification information is used to identify signal degradation SD of the working SR-TE tunnel; A sending module is used to send the second OAM message to the second PE node through the working SR-TE tunnel.
10. The device according to claim 9, characterized in that The second OAM message is a continuous monitoring CCM message, and the identification information is carried in a Flag field or a reserved field in the CCM message.
11. A communication device, applied to a second service provider edge PE node, characterized in that: The device comprises: A receiving module, configured to receive a first operation, management and maintenance OAM message generated and sent by an intermediate node through a working segment routing traffic engineering SR-TE tunnel, wherein the first OAM message carries identification information, and the identification information is used to identify the signal degradation SD of the working SR-TE tunnel, wherein the first PE node is an ingress node of the working SR-TE tunnel, the second PE node is an egress node of the working SR-TE tunnel, and the intermediate node is a node located between the first PE node and the second PE node; The processing module is used to determine the signal degradation SD of the working SR-TE tunnel according to the identification information.
12. The device according to claim 11, characterized in that The processing module is further configured to switch the second PE node to a protection SR-TE tunnel to communicate with the first PE node.
13. The device according to claim 11 or 12, characterized in that The first OAM message is a continuous monitoring CCM message, and the identification information is carried in a Flag field or a reserved field in the CCM message.
14. The device according to claim 11 or 12, characterized in that The processing module is also used for: After the second PE node switches to the protection SR-TE tunnel, an automatic protection switching APS message is sent to the first PE node through the protection SR-TE tunnel, where the APS message is used to instruct the first PE node to switch to the protection SR-TE tunnel to communicate with the second PE node.
15. A communication system, comprising a first service provider edge PE node, an intermediate node and a second PE node, wherein the first PE node is connected to the second PE node through a working segment routing traffic engineering SR-TE tunnel and a protection SR-TE tunnel, respectively, and the path of the working SR-TE tunnel includes the first PE node, the intermediate node and the second PE node, characterized in that: The intermediate node is used to execute the method according to any one of claims 1 to 3; The second PE node is used to execute the method according to any one of claims 4 to 7.
16. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores instructions, and when the instructions are executed on the processor, the method described in any one of claims 1 to 3 or the method described in any one of claims 4 to 7 is executed.
17. A computer program product, characterized in that The invention comprises a computer program, which, when executed on a processor, implements the method described in any one of claims 1 to 3 or the method described in any one of claims 4 to 7.
Citation Information
Patent Citations
Method of LSP linear protection switching in PTN
CN101719843A
Tunnel protection method and device of ring network
CN102088387A
Multi-protocol label switching (MPLS) traffic engineering (TE) tunnel fault detection method and device thereof
CN102752128A
Link failure detection method and device
CN104618189A
Hierarchical Processing and Propagation of Partial Faults in a Packet Network
US20080186865A1
